re PR c++/44277 ([C++0x] Add warning to facilitate nullptr conversion.)
[gcc.git] / gcc / ChangeLog
1 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2
3 PR c++/44277
4 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
5
6 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
7
8 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
9
10 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
11
12 * config/i386/i386.md (splitters for int-float conversion): Use
13 SUBREG_REG on SUBREGs in splitter constraints.
14
15 2011-11-01 Jakub Jelinek <jakub@redhat.com>
16
17 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
18 prototype.
19 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
20 function.
21 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
22 (ssepackfltmode): New mode attr.
23 (vec_pack_ufix_trunc_<mode>): New expander.
24
25 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
26
27 PR target/50940
28 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
29 Compare <ssevecmode>mode with V4SFmode, not V4SImode.
30
31 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
32
33 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
34 * config/rs6000/476.h: New file.
35 * config/rs6000/476.opt: Likewise.
36 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
37 (SET_TARGET_LINK_STACK): Likewise.
38 (TARGET_ASM_CODE_END): Define.
39 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
40 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
41 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
42 code if TARGET_LINK_STACK.
43 (rs6000_emit_load_toc_table): Likewise.
44 (output_function_profiler): Likewise
45 (macho_branch_islands): Likewise
46 (machopic_output_stub): Likewise
47 (get_ppc476_thunk_name): New function.
48 (rs6000_code_end): Likewise.
49 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
50 Convert to a define_expand.
51 (load_toc_v4_PIC_1_normal): New define_insn.
52 (load_toc_v4_PIC_1_476): Likewise.
53 (load_toc_v4_PIC_1b_normal): Likewise.
54 (load_toc_v4_PIC_1b_476): Likewise.
55
56 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
57
58 PR target/50910
59 * config/avr/avr.opt (-mbranch-cost=): New option.
60 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
61 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
62 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
63 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
64 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
65
66 2011-11-01 Tom de Vries <tom@codesourcery.com>
67
68 PR tree-optimization/50908
69 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
70 before update_vuses, test for 1 predecessor rather than two.
71 (delete_block_update_dominator_info): New function, part of it factored
72 out of ...
73 (replace_block_by): Use delete_block_update_dominator_info. Call
74 update_vuses after deleting bb1 and updating dominator info, instead of
75 before.
76
77 2011-11-01 David S. Miller <davem@davemloft.net>
78
79 * config/sparc/sparc.c (sparc_expand_vcond): New function.
80 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
81 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
82 (vconduv8qiv8qi): Likewise.
83
84 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
85
86 PR debug/50869
87 * cselib.c (cfa_base_preserved_regno): Initialize.
88 (cselib_expand_value_rtx_1): Don't expand it.
89 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
90 Check it's only zero if result is NULL.
91
92 2011-11-01 Jakub Jelinek <jakub@redhat.com>
93
94 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
95 expander.
96
97 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
98 (sseintvecmodelower): New mode iterator.
99 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
100 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
101 (floatunsv4siv4sf2): Macroize into...
102 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
103
104 2011-10-31 David S. Miller <davem@davemloft.net>
105
106 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
107
108 * dwarf2out.c (cached_next_real_insn): New.
109 (dwarf2out_end_epilogue): Set it to NULL_RTX.
110 (dwarf2out_var_location): Remove cached_next_real_insn local static.
111
112 2011-10-31 Richard Henderson <rth@redhat.com>
113
114 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
115 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
116 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
117 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
118 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
119 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
120 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
121 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
122 * config/i386/i386.md (splitters for int-float conversion): Likewise.
123 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
124 (bdesc_args): Likewise.
125 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
126 (ix86_vectorize_builtin_conversion): Remove.
127 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
128
129 2011-10-31 Martin Jambor <mjambor@suse.cz>
130
131 * ipa-prop.c (mark_modified): Moved up in the file.
132 (is_parm_modified_before_call): Renamed to
133 is_parm_modified_before_stmt, moved up in the file.
134 (load_from_unmodified_param): New function.
135 (compute_complex_assign_jump_func): Also attempt to create pass
136 through jump functions for values loaded from (addressable)
137 parameters.
138
139 2011-10-31 Jakub Jelinek <jakub@redhat.com>
140
141 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
142 in a loop and has different type from op0, cast it to op0's type
143 before the loop first. For slp give up. Don't crash if op1_vectype
144 is NULL.
145
146 2011-10-31 Paul Brook <paul@codesourcery.com>
147
148 * cgraphunit.c: Don't mark clones as static constructors.
149
150 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
151
152 * gcc-ar: Do not include stdio.h.
153
154 2011-10-31 Diego Novillo <dnovillo@google.com>
155
156 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
157 TYPE_ADDR_SPACE.
158 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
159 TYPE_ADDR_SPACE.
160
161 2011-10-30 David S. Miller <davem@davemloft.net>
162
163 * config/sparc/sparc.c (vector_init_bshuffle): New function.
164 (vector_init_fpmerge): New function.
165 (sparc_expand_vector_init): Use them to improve non-const cases.
166
167 * dwarf2out.c (dwarf2out_var_location): When processing several
168 consecutive location notes, cache the result of next_real_insn().
169
170 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
171
172 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
173 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
174 (vec_dupv4sf): Remove expander.
175 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
176 (vec_dupv2df): Remove expander.
177 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
178 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
179 (*vec_dupv4si): Merge *vec_dupv4si_avx.
180 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
181
182 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
183
184 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
185 * optabs.c (supportable_convert_operation): New function.
186 * optabs.h (supportable_convert_operation): New prototype.
187 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
188 behavior for NONE modifier case.
189 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
190
191 2011-10-30 Jakub Jelinek <jakub@redhat.com>
192
193 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
194 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
195 function.
196 (vect_vect_recog_func_ptrs): Add it.
197
198 2011-10-30 David S. Miller <davem@davemloft.net>
199
200 * reorg.c (label_before_next_insn): New function.
201 (relax_delay_slots): Use it instead of prev_label.
202 * rtl.h (prev_label): Delete declaration.
203 * emit-rtl.c (prev_label): Remove.
204
205 2011-10-30 Revital Eres <revital.eres@linaro.org>
206
207 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
208 as BB_DISABLE_SCHEDULE.
209 (mark_loop_unsched): New function.
210 (sms_schedule): Call it.
211
212 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
213
214 PR target/50617
215 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
216 (cmpib_comparison_operator): Likewise.
217 (following_cal, output_and, output_ior, output_move_double,
218 output_fp_move_double, output_block_move, output_block_clear,
219 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
220 output_movb, output_parallel_movb, output_parallel_addb, output_call,
221 output_indirect_call, output_millicode_call, output_mul_insn,
222 output_div_insn, output_mod_insn, singlemove_string,
223 output_arg_descriptor, output_global_address, print_operand,
224 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
225 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
226 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
227 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
228 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
229 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
230 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
231 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
232 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
233 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
234 exported functions and variables with "pa_".
235 * config/pa/predicates.md: Likewise.
236 * config/pa/pa64-hpux.h: likewise.
237 * config/pa/som.h: Likewise.
238 * config/pa/elf.h: Likewise.
239 * config/pa/pa64-linux.h: Likewise.
240 * config/pa/pa.md: Likewise.
241 * config/pa/pa.c: Likewise.
242 * config/pa/pa-linux.h: Likewise.
243 * config/pa/pa.h: Likewise.
244 * config/pa/constraints.md: Likewise.
245
246 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
247
248 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
249 Update all uses.
250 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
251 * config/i386/i386.c: Update all uses.
252
253 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
254
255 * config/i386/i386.md (lshlv16qi3): Remove expander.
256 (lshrv16qi3): New expander.
257 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
258 using any_shiftrt code iterator. Cleanup.
259 (ashlv16qi3): Cleanup.
260 (ashrv2di3): Ditto.
261
262 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
263
264 PR target/50691
265 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
266 references.
267 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
268 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
269
270 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
271
272 PR target/50887
273 * config/avr/avr.opt (-maccumulate-args): New option.
274 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
275 avr_starting_frame_offset.
276 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
277 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
278 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
279 (UNSPECV_WRITE_SP): New constant.
280 (*addhi3_sp_R): Rewrite to...
281 (*addhi3_sp): ...this new insn.
282 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
283 (movhi_sp_r): ...this new insn.
284 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
285 (avr_starting_frame_offset): New.
286 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
287 (avr_starting_frame_offset): New function.
288 (avr_outgoing_args_size): New static function.
289 (avr_initial_elimination_offset): Use it.
290 (avr_simple_epilogue): Use it.
291 (avr_asm_function_end_prologue): Use it.
292 (expand_epilogue): Use it.
293 (expand_prologue): Use it. Break out code to...
294 (avr_prologue_setup_frame): ...this new static function.
295 (avr_can_eliminate): Allow eliminating to frame pointer if there
296 is one.
297 (avr_frame_pointer_required_p): Use frame pointer if target has a
298 nonlocal label.
299 * config/avr/constraints.md (R): Remove.
300 (Csp): New constraint.
301 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
302
303 2011-10-29 Andi Kleen <ak@linux.intel.com>
304
305 * gcc-ar.c (target_machine): Add.
306
307 2011-10-29 Anatoly Sokolov <aesok@post.ru>
308
309 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
310 cris_constant_index_p, cris_base_p, cris_index_p,
311 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
312 cris_legitimate_address_p): New functions.
313 (TARGET_LEGITIMATE_ADDRESS_P): Define.
314 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
315 from rtx to const_rtx.
316 (cris_print_operand_address, cris_address_cost,
317 cris_side_effect_mode_ok): Use
318 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
319 cris_biap_index_p and cris_bdap_index_p.
320 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
321 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
322 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
323 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
324 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
325 cris_biap_index_p and cris_bdap_index_p.
326 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
327 cris_base_p.
328 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
329 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
330 prototype.
331 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
332
333 2011-10-21 Andi Kleen <ak@linux.intel.com>
334
335 * ggc-page (PAGE_ALIGN): Add.
336 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
337 Replace ROUND_UP with PAGE_ALIGN.
338
339 2011-10-20 Andi Kleen <ak@linux.intel.com>
340
341 * ggc-page (alloc_anon): Add check argument.
342 (alloc_page): Add fallback to 1 page allocation.
343 Adjust alloc_anon calls to new argument.
344
345 2011-10-18 Andi Kleen <ak@linux.intel.com>
346
347 * ggc-page (release_pages): First free large continuous
348 chunks in the madvise path.
349
350 2011-10-18 Andi Kleen <ak@linux.intel.com>
351
352 * ggc-page.c (alloc_pages): Always round up entry_size.
353
354 2011-10-19 Andi Kleen <ak@linux.intel.com>
355
356 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
357 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
358 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
359 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
360 (install): Depend on install-gcc-ar.
361 (install-gcc-ar): Add.
362 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
363 * gcc-ar.c: Add new file.
364
365 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
366
367 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
368 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
369 type for V2DF.
370 (VStype_div): Use vector types for V2DF/V4SF.
371 (VStype_sqrt): Use *sqrt types.
372 (VS_spdp_type): Change type to vecdouble.
373 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
374 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
375 vsx_xvcvspuxds): Likewise.
376 (*vsx_fms<mode>4): Set type via <VStype_mul>.
377 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
378 <VStype_simple>.
379 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
380 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
381 power7-dsqrt): Correct insn latency.
382 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
383 (power7-veccmp): Delete.
384 (power7-vecfloat): Correct latency/dispatch/VSU values.
385 (define_bypass "power7-vecfloat"): Correct latency and types.
386 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
387 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
388
389 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
390
391 * config/i386/i386.md (shift_insn): Rename code attribute from
392 shiftrt_insn. Also handle ashift RTX.
393 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
394 (vshift): New code attribute.
395 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
396 (any_lshift): Move and rename code iterator from ...
397 * config/i386/sse.md (lshift): ... here.
398 (lshift_insn): Remove code attribute.
399 (lshift): Remove code attribute.
400 (vlshr<mode>3): Use lshiftrt RTX.
401 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
402 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
403 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
404 any_lshift code iterator. Update asm template.
405 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
406 usign any_lshift code iterator.
407 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
408 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
409 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
410
411 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
412
413 PR target/49313
414 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
415 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
416 to the libgcc insn.
417 (*parityqihi2): Same for 8-bit parity.
418
419 2011-10-28 Julian Brown <julian@codesourcery.com>
420
421 PR rtl-optimization/47918
422 * reload1.c (set_initial_label_offsets): Use initial offsets
423 for labels on the nonlocal_goto_handler_labels chain.
424
425 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
426
427 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
428 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
429 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
430 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
431 config/t-darwin.
432 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
433 (GP_SAVE_INLINE): Likewise.
434 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
435 RESTORE_FP_SUFFIX): Set to empty strings.
436 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
437 (debug_stack_info): Print savres_strategy.
438 (rs6000_savres_routine_name): Implement for Darwin.
439 (rs6000_make_savres_rtx): Adjust used register for Darwin.
440 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
441 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
442 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
443 * config/rs6000/darwin-gpsave.asm: New file.
444
445 2011-10-28 Jakub Jelinek <jakub@redhat.com>
446
447 * config/i386/sse.md (VI4SD_AVX2): Removed.
448 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
449 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
450 Add another expander using VI48_128 iterator for
451 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
452 for TARGET_AVX2.
453 (vlshr<mode>3): Likewise. Change register_operand predicate to
454 nonimmediate_operand on last operand in the VI12_128 expander.
455 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
456 (vashrv4si3, vashrv8si3): New expanders.
457 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
458 avx2_<lshift>vv2di): Removed.
459 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
460 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
461 iterator. Simplify pattern.
462
463 2010-10-28 Richard Guenther <rguenther@suse.de>
464
465 PR driver/50876
466 * lto-wrapper.c (get_options_from_collect_gcc_options):
467 Properly count arguments.
468 (run_gcc): Use an obstack to collect argv, properly separate
469 switches and their arguments.
470
471 2011-10-28 Jakub Jelinek <jakub@redhat.com>
472
473 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
474 vector mode from vectype's mode.
475
476 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
477
478 PR rtl-optimization/49720
479 * simplify-rtx.c (simplify_relational_operation_1): Detect
480 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
481 simplifies to (eq/ne x (cst2 - cst1))" case.
482
483 2011-10-27 David S. Miller <davem@davemloft.net>
484
485 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
486 (*snedi_zero): Likewise.
487 (*snedi_zero_trunc): Likewise.
488 (snedi_special_vis3): New expander.
489 (*snedi_zero_vis3): New insn.
490 (*snedi_zero_trunc_vis3): Likewise.
491 (*sltu_insn_vis3): Likewise.
492 (*sltu_insn_vis3_trunc): Likewise.
493 (addxc): Likewise.
494 (*addxc_trunc_sp64_vis3): Likewise.
495 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
496 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
497 sequences on DImode values.
498
499 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
500 constraint.
501
502 * regcprop.c (copyprop_hardreg_forward_1): Reject the
503 transformation when we narrow the mode on big endian.
504
505 2011-10-27 Jakub Jelinek <jakub@redhat.com>
506
507 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
508 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
509 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
510
511 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
512 overrides for -masm=intel memory.
513 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
514 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
515 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
516 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
517 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
518 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
519 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
520
521 2011-10-27 Martin Jambor <mjambor@suse.cz>
522
523 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
524 to parm_ainfo.
525 (ipa_compute_jump_functions_for_edge): Likewise.
526 (ipa_compute_jump_functions): Likewise.
527 (ipa_analyze_indirect_call_uses): Likewise.
528 (ipa_analyze_call_uses): Likewise.
529 (ipa_analyze_params_uses): Likewise.
530 (ipa_analyze_node): Likewise.
531
532 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
533
534 PR target/50875
535 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
536 constraints. Change alternative 1 to "x,m,1".
537
538 2011-10-27 Jakub Jelinek <jakub@redhat.com>
539
540 * Makefile.in (build/gencheck.o): Depend on tree.def and
541 c-family/c-common.def.
542
543 * tree-ssa-strlen.c: Include expr.h.
544 (get_stridx): Don't use c_strlen, instead use string_constant
545 and compute string length from it.
546 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
547
548 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
549
550 PR rtl-optimization/46603
551 PR bootstrap/50879
552 * reload.c (push_reload): In the out case, restore previous behavior
553 for subregs that don't have word mode.
554
555 2011-10-27 Ian Lance Taylor <iant@google.com>
556
557 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
558 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
559 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
560 defined.
561
562 2011-10-27 Richard Henderson <rth@redhat.com>
563
564 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
565 selector. Save the qimode constant selector for later use by the
566 qimode vec_perm pattern.
567
568 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
569
570 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
571 to unit_req_factor to the right enum type.
572 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
573 hwloop_optimize): Remove unused variables.
574
575 2010-10-27 Richard Guenther <rguenther@suse.de>
576
577 PR middle-end/50731
578 * tree-vect-generic.c (do_binop): Handle scalar operands.
579
580 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
581
582 PR target/37191
583 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
584 from different units in a single alternative.
585
586 2011-10-26 David S. Miller <davem@davemloft.net>
587
588 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
589 if we're comparing DImode and comparison is other than EQ or NE.
590
591 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
592 LEU/LTU/GEU/GTU is attempted.
593 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
594 and split.
595 (*neg_seqsi_sign_extend): Likewise.
596 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
597 *neg_sgeu_extend_sp64): New insns.
598
599 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
600 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
601 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
602 (*mov<I:mode>_cc_reg_sp64): Likewise.
603 (*movsf_cc_v9): Likewise.
604 (*movsf_cc_reg_sp64): Likewise.
605 (*movdf_cc_v9): Likewise.
606 (*movdf_cc_reg_sp64): Likewise.
607 (*movtf_cc_hq_v9): Likewise.
608 (*movtf_cc_reg_hq_sp64): Likewise.
609 (*movtf_cc_v9): Likewise.
610 (*movtf_cc_reg_sp64): Likewise.
611 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
612 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
613
614 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
615
616 * reload.c (reload_inner_reg_of_subreg): Change type of return value
617 and type of OUTPUT parameter to bool and adjust. Document MODE and
618 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
619 and improve associated comment.
620 (push_reload): Clarify and update comments about reloading of subregs.
621 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
622 for the reloading of subregs in the out case as well.
623
624 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
625
626 PR debug/50826
627 * var-tracking.c (rtx_debug_expr_p): New.
628 (use_type): Don't use debug exprs to track non-VTA variables.
629
630 2011-10-26 Jeff Law <law@redhat.com>
631
632 * doc/invoke.texi (sink-frequency-threshold): Document.
633 * tree-ssa-sink.c: Include params.h.
634 (select_best_block): New function.
635 (statement_sink_location): Use it.
636 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
637
638 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
639
640 PR target/48108
641 * config/darwin.c (top level): Amend comments concerning LTO output.
642 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
643 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
644 (LTO_NAMES_SECTION): Rename.
645 (darwin_asm_named_section): Record LTO section counts and switches
646 in a vec of darwin_lto_section_e.
647 (darwin_file_start): Remove unused code.
648 (darwin_file_end): Put an LTO section termination label. Handle
649 output of the wrapped LTO sections, index and names table.
650
651 2011-10-26 Alan Modra <amodra@gmail.com>
652
653 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
654 declaration.
655 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
656 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
657 simple_return in pattern, emit instruction, and set jump_label.
658 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
659 simple_return rather than return.
660 (emit_cfa_restores): New function.
661 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
662 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
663 when using out-of-line gpr restore. Add missing LR and FP regs
664 cfa_restores for out-of-line fpr restore. Consolidate code setting
665 up cfa_restores. Formatting. Use LR_REGNO define.
666 (rs6000_output_mi_thunk): Use simple_return rather than return.
667 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
668 (return_internal*): Likewise.
669 (any_return, return_pred, return_str): New iterators.
670 (return, conditional return insns): Provide both return and
671 simple_return variants.
672 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
673 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
674 Move r11 and r0 later to suit shrink-wrapping.
675
676 2011-10-26 Richard Guenther <rguenther@suse.de>
677
678 * lto-wrapper.c (run_gcc): Properly init/free obstack.
679
680 2011-10-26 Jakub Jelinek <jakub@redhat.com>
681
682 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
683 * config/i386/predicates.md (vsib_address_operand,
684 vsib_mem_operator): New predicates.
685 * config/i386/i386.c (ix86_print_operand_address): Handle
686 UNSPEC_VSIBADDR addresses.
687 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
688 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
689 UNSPEC_VSIBADDR address.
690 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
691 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
692
693 2011-10-26 Tom de Vries <tom@codesourcery.com>
694
695 PR tree-optimization/50763
696 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
697 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
698
699 2011-10-26 Richard Guenther <rguenther@suse.de>
700
701 PR lto/41844
702 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
703 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
704 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
705 (run_gcc): Use it. Filter out language specific options.
706
707 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
708
709 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
710 32-bit target does.
711
712 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
713
714 PR driver/46617
715 * gcc.c (main): Fix fatal_error string for translation.
716
717 2011-10-25 Ian Lance Taylor <iant@google.com>
718
719 * tree-eh.c (do_return_redirection): Remove return_value_p
720 parameter. Change all callers.
721 (lower_try_finally_nofallthru): Remove local return_val.
722 (lower_try_finally_onedest): Likewise.
723 (lower_try_finally_copy): Likewise.
724 (lower_try_finally_switch): Likewise.
725
726 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
727
728 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
729 remove "&& !TARGET_64BIT"
730 (*mmx_maskmovq_rex): Removed.
731
732 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
733
734 PR rtl-optimization/46603
735 * reload.c (push_reload): In the out case, reload the subreg as well
736 as the reg if it has word mode.
737
738 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
739
740 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
741 suppress debug info for the parent type.
742
743 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
744
745 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
746
747 2011-10-25 Richard Henderson <rth@redhat.com>
748
749 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
750 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
751
752 * config/rs6000/altivec.md (vec_extract_evenv8hi,
753 vec_extract_evenv16qi, vec_extract_oddv4si,
754 vec_extract_oddv4sf): Remove.
755
756 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
757 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
758 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
759 vec_interleave_highv4sf, vec_interleave_lowv4sf,
760 vec_interleave_highv4si, vec_interleave_lowv4si,
761 vec_interleave_highv8hi, vec_interleave_lowv8hi,
762 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
763
764 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
765 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
766 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
767 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
768 vec_interleave_low_optab, vec_extract_even_optab,
769 vec_extract_odd_optab with expand_vec_perm.
770 (can_vec_perm_for_code_p): New.
771 * optabs.h: Update.
772 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
773 fallback via can_vec_perm_for_code_p.
774 (vect_strided_load_supported): Likewise.
775 * tree-vect-generic.c (expand_vector_operations_1): Never lower
776 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
777 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
778
779 * target.def (vec_perm_const_ok): Change parameters to mode and
780 array of indicies.
781 * doc/tm.texi: Rebuild.
782 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
783 parameters to mode and array of indicies.
784 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
785 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
786 Change parameters to mode and array of indicies.
787 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
788 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
789 parameters to mode and rtx inputs. Try lowering to QImode
790 vec_perm_const before trying fully variable permutation.
791 * optabs.h: Update decls.
792 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
793 VECTOR_CST to pass to can_vec_perm_p.
794 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
795 from int pointer to unsigned char pointer.
796 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
797 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
798
799 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
800 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
801 VEC_INTERLEAVE_LOW_EXPR): Likewise.
802
803 2011-10-25 Mike Stump <mikestump@comcast.net>
804
805 * reload.c (regno_clobbered_p): Fix typo.
806
807 2011-10-25 Dodji Seketeli <dodji@redhat.com>
808
809 * input.c (expand_location): Rewrite using linemap_resolve_location
810 and linemap_expand_location. Add a comment.
811
812 2011-10-25 Jakub Jelinek <jakub@redhat.com>
813
814 PR tree-optimization/50596
815 * tree-vect-stmts.c (vect_mark_relevant): Only use
816 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
817 (vectorizable_store): If is_pattern_stmt_p look through
818 VIEW_CONVERT_EXPR on lhs.
819 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
820 Use unsigned type instead of signed.
821 (vect_recog_bool_pattern): Optimize also stores into bool memory in
822 addition to casts from bool to integral types.
823 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
824 created, don't create it again.
825
826 2011-10-25 Kai Tietz <ktietz@redhat.com>
827
828 * config/i386/i386.c (ix86_frame_pointer_required): Require
829 frame-pointer, if setjmp is used for 32-bit ms-abi.
830
831 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
832
833 * builtins.c (set_builtin_user_assembler_name): Remove extra
834 newline added in October 11th, 2011 change.
835
836 2011-10-24 David S. Miller <davem@davemloft.net>
837
838 * config/sparc/little-endian.opt: Delete.
839 * config.gcc: Remove references to config/sparc/little-endian.opt
840 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
841 * config/sparc/linux64.h: Delete references to -mlittle-endian.
842 * config/sparc/netbsd-elf.h: Likewise.
843 * config/sparc/openbsd64.h: Likewise.
844 * config/sparc/sparc.h: Likewise.
845 * config/sparc/sp64-elf.h: Likewise and delete overrides for
846 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
847 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
848 to MASK_LITTLE_ENDIAN.
849 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
850
851 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
852 Only use D, Y, and Z constraints in vector insns.
853
854 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
855 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
856 called *movsi_insn.
857 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
858 into *movdi_insn_sp32.
859 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
860 one pattern called *movdi_insn_sp64.
861 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
862 Consolidate into one pattern called *movsf_insn.
863 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
864 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
865 into *movdf_insn_sp32.
866 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
867 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
868 *movdf_insn_sp64.
869 (*zero_extendsidi2_insn_sp64_novis3,
870 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
871 called *zero_extendsidi2_insn_sp64.
872 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
873 Consolidate into one pattern named *sign_extendsidi2_insn.
874 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
875 Consolidate into one pattern named *mov<VM32:mode>_insn.
876 (*mov<VM64:mode>_insn_sp64_novis3,
877 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
878 named *mov<VM64:mode>_insn_sp64.
879 (*mov<VM64:mode>_insn_sp32_novis3,
880 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
881 named *mov<VM64:mode>_insn_sp32.
882
883 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
884
885 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
886 (zero_length_string): Change assertion to accept strinfo without
887 length but with stmt instead.
888 Set the endptr pointer also if starting a new chain.
889 (adjust_related_strinfos): Ignore strinfos marked for delayed
890 length computation.
891 (handle_builtin_strcpy): Mark earlier strinfo elements also for
892 delayed length computation.
893
894 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
895
896 PR target/50820
897 Port from 4.6 branch r180379
898 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
899 handling and indirect jump/calls on devices > 128k.
900
901 2011-10-24 Anatoly Sokolov <aesok@post.ru>
902 Georg-Johann Lay <avr@gjlay.de>
903
904 PR target/49824
905 * doc/extend.texi (Declaring Attributes of Functions):
906 Document OS_main and OS_task attributes.
907 (Specifying Attributes of Variables): Move up
908 subsection "AVR Variable Attributes" as of alphabetical order.
909
910 2011-10-24 Richard Guenther <rguenther@suse.de>
911
912 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
913 to vector element type.
914 (vectorizable_assignment): Bail out for non-mode-precision operations.
915 (vectorizable_shift): Likewise.
916 (vectorizable_operation): Likewise.
917 (vectorizable_type_demotion): Likewise.
918 (vectorizable_type_promotion): Likewise.
919 (vectorizable_store): Handle non-mode-precision stores.
920 (vectorizable_load): Handle non-mode-precision loads.
921 (get_vectype_for_scalar_type_and_size): Return a vector type
922 for non-mode-precision integers.
923 * tree-vect-loop.c (vectorizable_reduction): Bail out for
924 non-mode-precision reductions.
925
926 2011-10-24 Julian Brown <julian@codesourcery.com>
927
928 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
929 setting CC_REVERSED for FP comparisons.
930
931 2011-10-24 Richard Guenther <rguenther@suse.de>
932
933 PR tree-optimization/50838
934 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
935 a MEM_REF base if we change it.
936
937 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
938
939 PR bootstrap/50836
940 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
941
942 PR rtl-optimization/50833
943 * function.c (thread_prologue_and_epilogue_insns): Expect the
944 return insn optimization only if optimize.
945
946 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
947
948 * config/avr/avr.c: Break long lines.
949 Define target hooks on the fly if applicable.
950 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
951 overridden later.
952 (targetm): Move definition to end of file.
953 (avr_can_eliminate): Make static on the fly.
954 (avr_frame_pointer_required_p): Ditto.
955 (avr_hard_regno_scratch_ok): Ditto.
956 (avr_builtin_setjmp_frame_value): Make static on the fly.
957 Indent according to coding rules.
958 (avr_case_values_threshold): Ditto.
959 (avr_attribute_table): Move down.
960
961 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
962
963 PR tree-optimization/50730
964 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
965 analysis if encountered unsupported data-ref.
966
967 2011-10-23 David S. Miller <davem@davemloft.net>
968
969 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
970 cpu adjustment.
971 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
972 append -mcpu=v9 when -mv8plus is given.
973
974 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
975 between float and non-float regs when VIS3.
976 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
977 use a restore when the source is a float register.
978 (sparc_split_regreg_legitimate): When VIS3 allow moves between
979 float and integer regs.
980 (sparc_register_move_cost): Adjust to account for VIS3 moves.
981 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
982 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
983 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
984 float and integer regs we sometimes need a FP_REGS class
985 intermediate move to satisfy the reload. When this happens
986 specify an extra cost of 2.
987 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
988 (*movdi_insn_sp32_v9): Likewise.
989 (*movdi_insn_sp64): Likewise.
990 (*movsf_insn): Likewise.
991 (*movdf_insn_sp32_v9): Likewise.
992 (*movdf_insn_sp64): Likewise.
993 (*zero_extendsidi2_insn_sp64): Likewise.
994 (*sign_extendsidi2_insn): Likewise.
995 (*movsi_insn_vis3): New insn.
996 (*movdi_insn_sp32_v9_vis3): New insn.
997 (*movdi_insn_sp64_vis3): New insn.
998 (*movsf_insn_vis3): New insn.
999 (*movdf_insn_sp32_v9_vis3): New insn.
1000 (*movdf_insn_sp64_vis3): New insn.
1001 (*zero_extendsidi2_insn_sp64_vis3): New insn.
1002 (*sign_extendsidi2_insn_vis3): New insn.
1003 (TFmode reg/reg split): Make sure both REG operands are float.
1004 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
1005 easy constant to integer reg alternatives.
1006 (*mov<VM64:mode>_insn_sp64): Likewise.
1007 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
1008 (*mov<VM32:mode>_insn_vis3): New insn.
1009 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
1010 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
1011 (VM64 reg<-->reg split): New splitter for 32-bit.
1012
1013 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
1014 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
1015 Declare it.
1016 * config/sparc/sparc.md (DImode reg/reg split): Use it.
1017 (DFmode reg/reg split): Likewise.
1018
1019 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
1020 generating fzero and fone instructions.
1021 (DImode const_int --> reg splitter): Only trigger for integer regs.
1022
1023 * config/sparc/predicates.md (input_operand): Disallow vector
1024 constants other than 0 and -1.
1025 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
1026 NO_REGS for vector constants other than 0 and -1.
1027
1028 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
1029 SPARC_INT_REG_P): Define.
1030 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
1031 (REGNO_OK_FOR_INDEX_P): Likewise.
1032 * config/sparc/sparc.c (gen_df_reg): Likewise.
1033 (eligible_for_return_delay): Likewise.
1034 (eligible_for_sibcall_delay): Likewise.
1035 (sparc_legitimate_address_p): Likewise.
1036 (emit_save_or_restore_regs): Likewise.
1037 (registers_ok_for_ldd_peep): Likewise.
1038 * config/spac/sparc.md (DI mode splitters): Likewise.
1039 (SF mode const splitters): Likewise.
1040 (DF mode splitters): Likewise.
1041 (32-bit DI mode logical op splitters): Likewise.
1042
1043 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1044
1045 PR c++/50841
1046 Revert:
1047 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1048
1049 PR c++/50810
1050 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1051
1052 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
1053
1054 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
1055 (VI248_256): Remove mode iterator.
1056 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
1057 instead of gen_avx2_lshlv4di3.
1058 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
1059 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
1060
1061 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
1062
1063 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
1064 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
1065 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
1066 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
1067 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
1068 iterator. Use sseintprefix mode attribute.
1069 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
1070 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
1071 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
1072 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
1073 iterator. Use sseintprefix mode attribute.
1074 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
1075 attributes.
1076 (*avx2_gatherdi<mode>): Ditto.
1077 (*avx2_gatherdi<mode>256): Ditto.
1078 (VI48_AVX2): Remove mode iterator.
1079 (gthrlastfp): Remove mode attribute.
1080
1081 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1082
1083 PR c++/50810
1084 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1085
1086 2011-10-23 Tom de Vries <tom@codesourcery.com>
1087
1088 PR tree-optimization/50763
1089 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
1090 out of ...
1091 (same_succ_flush_bbs): Use same_succ_flush_bb.
1092 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
1093 release_last_vdef and delete_basic_block.
1094 (unlink_virtual_phi): New function.
1095 (update_vuses): Add and use vuse1_phi_args argument. Set var to
1096 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
1097 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
1098 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
1099 to limit replacement of uses. Propagate phi argument for phis with a
1100 single argument.
1101 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
1102 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
1103 vuse1_phi_args as argument to call to update_vuses. Call
1104 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
1105 CDI_DOMINATORS info.
1106 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
1107 call to free_dominance_info. Only call calculate_dominance_info once.
1108
1109 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
1110
1111 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
1112
1113 PR tree-optimization/44683
1114 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
1115 we can be sure that there are no signed zeros involved.
1116
1117 2011-10-23 Jan Hubicka <jh@suse.cz>
1118
1119 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
1120
1121 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
1122
1123 PR target/50788
1124 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
1125 Remove (match_dup 0).
1126 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
1127 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
1128 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
1129 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
1130 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
1131 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
1132
1133 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
1134
1135 PR tree-optimization/50819
1136 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
1137 the last argument.
1138 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
1139 vect_analyze_data_ref_dependences.
1140 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
1141 the last argument. Check load-after-store dependence for unknown
1142 dependencies in basic blocks.
1143 (vect_analyze_data_ref_dependences): Update call to
1144 vect_analyze_data_ref_dependences.
1145 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
1146 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
1147 (vect_slp_analyze_bb_1): Update call to
1148 vect_analyze_data_ref_dependences. Don't call
1149 vect_bb_vectorizable_with_dependencies.
1150
1151 2011-10-22 David S. Miller <davem@davemloft.net>
1152
1153 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
1154 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1155 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
1156 (sparc_secondary_reload): New function.
1157
1158 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
1159 (struct processor_costs): Move from here..
1160 * config/sparc/sparc.c (struct processor_costs): To here.
1161 (sparc_costs): Mark static.
1162
1163 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
1164 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
1165 Get rid of declarations.
1166
1167 2011-10-21 Paul Brook <paul@codesourcery.com>
1168
1169 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
1170 c6x_asm_init_sections): New functions.
1171 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
1172
1173 2011-10-21 Jakub Jelinek <jakub@redhat.com>
1174
1175 PR target/50813
1176 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
1177 V4DImode and V8SImode for !TARGET_AVX2.
1178
1179 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1180
1181 PR bootstrap/50825
1182 * sched-deps.c (add_dependence): If not doing predication, promote
1183 REG_DEP_CONTROL to REG_DEP_ANTI.
1184
1185 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
1186
1187 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
1188 instead of X to avr_legitimize_reload_address.
1189 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
1190 first argument's type from rtx to rtx*.
1191 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
1192 Pass PX to push_reload instead of &X. Change log messages for
1193 better distinction.
1194
1195 2011-10-21 Roland Stigge <stigge@antcom.de>
1196
1197 PR translation/47064
1198 * params.def: Fix typo "compilatoin" -> "compilation".
1199
1200 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
1201 Kirill Yukhin <kirill.yukhin@intel.com>
1202
1203 PR target/50740
1204 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
1205 if max_level allows that.
1206
1207 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1208
1209 * reg-notes.def (DEP_CONTROL): New.
1210 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
1211 not doing speculation.
1212 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
1213 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
1214 * function.c (record_hard_reg_sets, record_hard_reg_uses,
1215 record_hard_reg_uses_1): Remove; move to rtlanal.c.
1216 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
1217 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
1218 (MUST_RECOMPUTE_SPEC_P): New macro.
1219 (real_insn_for_shadow): New function.
1220 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
1221 toggle_cancelled_flags): New static functions.
1222 (schedule_insn): Relax an assert to only check for empty hard back
1223 dependencies. Skip cancelled dependencies. Call
1224 check_clobbered_conditions.
1225 (copy_insn_list): Remove function, renamed moved to lists.c.
1226 (save_backtrack_point): Use new spelling copy_INSN_LIST.
1227 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
1228 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
1229 (estimate_insn_tick): Ignore cancelled dependencies.
1230 (haifa_speculate_insn): Move declaration.
1231 (try_ready): Move code into recompute_todo_spec and call it. Tweak
1232 some asserts. Ensure predicated patterns are restored if necessary.
1233 Dump DEP_CONTROL flag.
1234 (haifa_change_pattern): Merge with sched_change_pattern.
1235 (sched_change_pattern): Remove function.
1236 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
1237 uses changed to simply not test NON_FLUSH_JUMP_P.
1238 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
1239 REG_DEP_CONTROL.
1240 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
1241 (reg_pending_control_uses, control_dependency_cache): New static
1242 variables.
1243 (sched_get_reverse_condition_uncached): New function.
1244 (sd_find_dep_between): Remove pointless assert. Look in
1245 control_dependency_cache.
1246 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
1247 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
1248 and control_dependency_cache.
1249 (sd_unresolve_dep): Use dep_spec_p.
1250 (add_dependence): Now a wrapper around add_dependence_1, handling
1251 REG_DEP_CONTROL specially.
1252 (flush_pending_lists): Clear pending_jump_insns.
1253 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
1254 (sched_analyze_2): Unconditionally add to pending memory flushes,
1255 keep previous behaviour but apply it to pending_jump_insns instead.
1256 (sched_analyze_insn): Defer adding jump reg dependencies using
1257 reg_pending_control_uses; add them to the control_uses list. Handle
1258 pending_jump_insns and control_uses when adding dependence lists.
1259 (deps_analyze_insn): Update INSN_COND_DEPS.
1260 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
1261 last_pending_memory_flush.
1262 (init_deps): Initialize pending_jump_insns.
1263 (free_deps): Free control_uses.
1264 (remove_from_deps): Remove from pending_jump_insns.
1265 (init_deps_global): Allocate reg_pending_control_uses).
1266 (finish_deps_global): Free it.
1267 (add_dependence_1): Renamed from add_dependence. Handle
1268 REG_DEP_CONTROL.
1269 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
1270 (copy_INSN_LIST, concat_INSN_LIST): Declare.
1271 * sched-int.h (struct deps_reg): Add control_uses.
1272 (struct deps_desc): Add pending_jump_insns.
1273 (struct _haifa_deps_insn_data): Add cond_deps.
1274 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
1275 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
1276 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
1277 (DEP_CONTROL): New macro.
1278 (DEP_TYPES): Include it.
1279 (HARD_DEP): Adjust definition.
1280 (DEP_CANCELLED): New macro.
1281 (enum SCHED_FLAGS): Add DO_PREDICATION.
1282 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
1283 * sched-rgn.c (concat_INSN_LIST): Remove function.
1284 (deps_join): Handle pending_jump_insns.
1285 (free_pending_lists): Likewise.
1286 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
1287 schedule.
1288
1289 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
1290
1291 PR target/50820
1292 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
1293 (__tablejump__): Consistently use EIND for indirect jump/call.
1294 (__tablejump_elpm__): Ditto.
1295
1296 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1297
1298 * config/c6x/c6x.md (attr "op_pattern"): New.
1299 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
1300 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
1301 Likewise.
1302 * config/c6x/c6x-mult.md: Regenerate.
1303 * config/c6x/c6x.c: Include "regrename.h".
1304 (unit_req_table): New typedef.
1305 (unit_reqs): Use it for the declaration.
1306 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
1307 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
1308 static functions.
1309 (count_unit_reqs): New arg reqs. All callers changed. Use
1310 get_unit_reqs, and don't merge here.
1311 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
1312 using unit_req_factor.
1313 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
1314 count_unit_reqs.
1315 (c6x_reorg): Add reg notes problem, and call df_analyze.
1316 * Makefile.in ($(out_object_file)): Depend on regrename.h.
1317
1318 2011-10-21 Kai Tietz <ktietz@redhat.com>
1319
1320 * fold-const.c (simple_operand_p_2): Handle integral
1321 casts from boolean-operands.
1322
1323 2011-10-21 Jan Hubicka <jh@suse.cz>
1324
1325 * cgraph.c (dump_cgraph_node): Dump alias flag.
1326 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
1327 no destination.
1328 (get_alias_symbol): New function.
1329 (output_weakrefs): Output also weakrefs with no destinatoin.
1330 (lto_output_node): Output weakref alias flag when at function boundary.
1331
1332 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
1333
1334 PR target/50809
1335 * config/arm/driver-arm.c (vendors): Make static.
1336
1337 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
1338
1339 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
1340 (ix86_emit_swsqrtsf): Force a into register.
1341
1342 2011-10-20 Mike Stump <mikestump@comcast.net>
1343
1344 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
1345 after validate_change wipes it out.
1346
1347 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1348
1349 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
1350 before using the shufb instruction.
1351
1352 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
1353
1354 PR target/50766
1355 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
1356 memory operand order.
1357 (bmi2_bzhi_<mode>3): Ditto.
1358 (bmi2_pdep_<mode>3): Ditto.
1359 (bmi2_pext_<mode>3): Ditto.
1360
1361 2011-10-20 Richard Henderson <rth@redhat.com>
1362
1363 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
1364 * optabs.c (can_vec_perm_expr_p): Update to match.
1365 (expand_vec_perm_expr): Likewise.
1366 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
1367 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
1368 * doc/tm.texi.in: Likewise.
1369
1370 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
1371
1372 PR target/50572
1373 * config/i386/i386.c (processor_target_table): Change Atom
1374 align_loops_max_skip to 15.
1375
1376 2011-10-20 Richard Henderson <rth@redhat.com>
1377
1378 * target.def (builtin_vec_perm): Remove.
1379 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1380
1381 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
1382 (IX86_BUILTIN_VEC_PERM_*): Remove.
1383 (bdesc_args): Remove vec_perm builtins
1384 (ix86_expand_builtin): Likewise.
1385 (ix86_expand_vec_perm_const_1): Rename from
1386 ix86_expand_vec_perm_builtin_1.
1387 (extract_vec_perm_cst): Merge into...
1388 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
1389 ix86_vectorize_builtin_vec_perm_ok.
1390 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1391
1392 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
1393 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1394
1395 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
1396 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1397
1398 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
1399
1400 PR target/47989
1401 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
1402 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
1403 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
1404 implements vectorized single float division and vectorized sqrtf(x)
1405 with reciprocal sequence with additional Newton-Raphson step with
1406 -ffast-math.
1407
1408 2011-10-20 Dodji Seketeli <dodji@redhat.com>
1409
1410 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
1411 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
1412 it was done in ggc-page.c.
1413
1414 PR other/50659
1415 * doc/cppopts.texi: Use @smallexample/@end smallexample in
1416 documentation for -fdebug-cpp instead of @quotation/@end quotation
1417 that is not supported by contrib/texi2pod.pl.
1418
1419 2011-10-19 Jan Hubicka <jh@suse.cz>
1420
1421 * ipa-inline.c (inline_small_functions): Always update all calles after
1422 inlining.
1423
1424 2011-10-19 Jan Hubicka <jh@suse.cz>
1425
1426 PR bootstrap/50709
1427 * ipa-inline.c (inline_small_functions): Fix checking code to not make
1428 effect on fibheap stability.
1429
1430 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
1431
1432 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
1433
1434 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1435
1436 PR target/50106
1437 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
1438 reg size from 1-3.
1439
1440 2011-10-20 Richard Guenther <rguenther@suse.de>
1441
1442 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
1443 and rotates to the set of expensive operations.
1444
1445 2011-10-19 David S. Miller <davem@davemloft.net>
1446
1447 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
1448 (sparc_emit_set_const32): Likewise.
1449 (sparc_emit_set_const64_longway): Likewise.
1450 (sparc_emit_set_const64): Likewise.
1451 (sparc_legitimize_pic_address): Likewise.
1452 (memory_ok_for_ldd): Likewise.
1453
1454 2011-10-20 Dehao Chen <dehao@google.com>
1455
1456 * profile.c (compute_branch_probabilities): Compute and dump the
1457 overlap between the static estimation and the instrumentation profile.
1458 (OVERLAP_BASE): New macro.
1459 (compute_frequency_overlap): New function
1460
1461 2011-10-19 Jakub Jelinek <jakub@redhat.com>
1462
1463 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
1464 d->op1 instead of d->op0 for the second vpshufb.
1465 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
1466 (ix86_expand_vec_perm_const): If mask indicates two operands are
1467 needed, but both are the same and expanding them as d.op0 == d.op1
1468 failed, retry with d.op0 != d.op1.
1469 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
1470 also for d.nelt == 32.
1471
1472 PR middle-end/50754
1473 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
1474 VEC_PERM_EXPR.
1475
1476 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
1477
1478 * regrename.h: New file.
1479 * regrename.c: Include it. Also include "emit-rtl.h".
1480 (struct du_head, struct du_chain, du_head_p DEF_VEC and
1481 DEF_VEC_ALLOC_P): Move to regrename.h.
1482 (do_replace): Remove declaration.
1483 (insn_rr): New variable.
1484 (cur_operand): New static variable.
1485 (regrename_chain_from_id): Renamed from chain_from_id and no longer
1486 static. All callers changed.
1487 (record_operand_use): New static function.
1488 (scan_rtx_reg): Use it.
1489 (find_best_rename_reg): New function, broken out of rename_chains.
1490 (rename_chains): Use it. Don't update chain regno and nregs here, ...
1491 (regrename_do_replace): ... do it here instead. Renamed from
1492 do_replace, and no longer static. All callers changed.
1493 (regrename_analyze): No longer static. New arg bb_mask.
1494 All callers changed. If bb_mask is nonzero, use it to limit the
1495 number of basic blocks we analyze. If we failed to analyze a block,
1496 clear insn operand data.
1497 (record_out_operands): New arg insn_info. Update cur_operand if it is
1498 nonnull.
1499 (build_def_use): If insn_rr is nonnull, pass an insn_info to
1500 record_out_operands, and update cur_operand here as well.
1501 (regrename_init, regrename_finish): New functions.
1502 (regrename_optimize): Use them.
1503 * Makefile.in (regrename.o): Adjust dependencies.
1504
1505 2011-10-19 Tom de Vries <tom@codesourcery.com>
1506
1507 PR tree-optimization/50769
1508 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
1509 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
1510 dummy argument .MEM to phi when increasing number of arguments of phi by
1511 redirecting edges to the block with phi.
1512
1513 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1514
1515 PR bootstrap/50777
1516 * configure.ac: Save and restore CXXFLAGS around
1517 gcc_AC_CHECK_DECLS uses.
1518 Check for madvise() declaration with g++ if --enable-build-with-cxx.
1519 * configure: Regenerate.
1520 * config.in: Regenerate.
1521 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
1522
1523 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
1524
1525 PR debug/49310
1526 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
1527 (variable_part): Replace offset with union.
1528 (enum onepart_enum, onepart_enum_t): New.
1529 (variable_def): Drop cur_loc_changed, add onepart.
1530 (value_chain_def, const_value_chain): Remove.
1531 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
1532 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
1533 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
1534 (value_chain_pool, value_chains): Remove.
1535 (dropped_values): New.
1536 (struct parm_reg): Only if HAVE_window_save.
1537 (vt_stack_adjustments): Don't record register arguments.
1538 (dv_as_rtx): New.
1539 (dv_onepart_p): Return a onepart_enum_t.
1540 (onepart_pool): New.
1541 (dv_pool): Remove.
1542 (dv_from_rtx): New.
1543 (variable_htab_free): Release onepart aux data. Reset flags.
1544 (value_chain_htab_hash, value_chain_htab_eq): Remove.
1545 (unshare_variable): Use onepart field. Propagate onepart aux
1546 data or offset. Drop cur_loc_changed.
1547 (val_store): Cope with NULL insn. Rephrase dump output. Check
1548 for unsuitable locs. Add FIXME on using cselib locs.
1549 (val_reset): Remove FIXME of unfounded concerns.
1550 (val_resolve): Check for unsuitable locs. Add FIXME on using
1551 cselib locs.
1552 (variable_union): Use onepart field, adjust access to offset.
1553 (NO_LOC_P): New.
1554 (VALUE_CHANGED, DECL_CHANGED): Update doc.
1555 (set_dv_changed): Clear NO_LOC_P when changed.
1556 (find_loc_in_1pdv): Use onepart field.
1557 (intersect_loc_chains): Likewise.
1558 (unsuitable_loc): New.
1559 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
1560 (add_value_chain, add_value_chains): Remove.
1561 (add_cselib_value_chains, remove_value_chain): Likewise.
1562 (remove_value_chains, remove_cselib_value_chains): Likewise.
1563 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
1564 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
1565 (variable_merge_over_cur): Likewise. Adjust access to offset.
1566 Drop cur_loc_changed.
1567 (variable_merge_over_src): Use onepart field.
1568 (remove_duplicate_values): Likewise.
1569 (variable_post_merge_new_vals): Likewise.
1570 (find_mem_expr_in_1pdv): Likewise.
1571 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
1572 and value chains.
1573 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
1574 (variable_different_p): Use onepart field. Move onepart test out
1575 of the loop.
1576 (argument_reg_set): Drop.
1577 (add_uses, add_stores): Preserve but do not record in dynamic
1578 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
1579 Avoid unsuitable address expressions.
1580 (EXPR_DEPTH): Unlimit.
1581 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
1582 (prepare_call_arguments): Use DECL_RTL_IF_SET.
1583 (dump_var): Adjust access to offset.
1584 (variable_from_dropped, recover_dropped_1paux): New.
1585 (variable_was_changed): Drop cur_loc_changed. Use onepart.
1586 Preserve onepart aux in empty_var. Recover empty_var and onepart
1587 aux from dropped_values.
1588 (find_variable_location_part): Special-case onepart. Adjust
1589 access to offset.
1590 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
1591 access to offset. Initialize onepaux. Drop value chains.
1592 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
1593 (VEC (variable, heap), VEC (rtx, stack)): Define.
1594 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
1595 ignore_cur_loc. Add expanding, pending, depth.
1596 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
1597 (loc_exp_dep_insert, loc_exp_dep_set): New.
1598 (notify_dependents_of_resolved_value): New.
1599 (update_depth, vt_expand_var_loc_chain): New.
1600 (vt_expand_loc_callback): Revamped.
1601 (resolve_expansions_pending_recursion): New.
1602 (INIT_ELCD, FINI_ELCD): New.
1603 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
1604 parameter, adjust all callers.
1605 (vt_expand_loc_dummy): Drop.
1606 (vt_expand_1pvar): New.
1607 (emit_note_insn_var_location): Operate on non-debug decls only.
1608 Revamp multi-part cur_loc recomputation and one-part expansion.
1609 Drop cur_loc_changed. Adjust access to offset.
1610 (VEC (variable, heap)): Drop.
1611 (changed_variables_stack, changed_values_stack): Drop.
1612 (check_changed_vars_0, check_changed_vars_1): Remove.
1613 (check_changed_vars_2, check_changed_vars_3): Remove.
1614 (values_to_stack, remove_value_from_changed_variables): New.
1615 (notify_dependents_of_changed_value, process_changed_values): New.
1616 (emit_notes_for_changes): Revamp onepart updates.
1617 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
1618 and value chains. Propagate onepaux. Recover empty_var and onepaux
1619 from dropped_values.
1620 (emit_notes_for_differences_2): Drop value chains.
1621 (emit_notes_in_bb): Adjust.
1622 (vt_emit_notes): Drop value chains, changed_variables_stack.
1623 Initialize and release dropped_values.
1624 (create_entry_value): Revamp.
1625 (vt_add_function_parameter): Use new interface.
1626 (note_register_arguments): Remove.
1627 (vt_initialize): Drop value chains and register arguments.
1628 (vt_finalize): Drop value chains. Release windowed_parm_regs only
1629 if HAVE_window_save.
1630 * rtl.h: Document various pass-local uses of RTL flags.
1631 * tree.h (DECL_RTL_KNOWN_SET): New.
1632 * doc/invoke.texi (param max-vartrack-expr-depth): Update
1633 description and default.
1634
1635 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
1636
1637 PR target/50447
1638 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
1639 (adjust_len): Ditto.
1640 (addhi3): Don't pipe through short; use gen_int_mode instead.
1641 Prior to reload, expand to gen_addhi3_clobber.
1642 (*addhi3): Use avr_out_plus_noclobber if applicable, use
1643 out_plus_noclobber in cc and adjust_len attribute.
1644 (addhi3_clobber): 2 new RTL peepholes.
1645 (addhi3_clobber): New insn.
1646 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
1647 * config/avr/avr.c (avr_out_plus_noclobber): New function.
1648 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
1649 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
1650 Set cc0 to set_zn for adiw on 16-bit values.
1651 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
1652 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
1653
1654 2011-10-19 Richard Guenther <rguenther@suse.de>
1655
1656 PR middle-end/50780
1657 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
1658 the condition is properly gimple before using it.
1659 * tree-eh (stmt_could_throw_1_p): Properly extract the
1660 operation type from comparisons.
1661
1662 2011-10-19 Roland Stigge <stigge@antcom.de>
1663
1664 PR translation/48638
1665 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
1666
1667 2011-10-19 Roland Stigge <stigge@antcom.de>
1668
1669 PR translation/49517
1670 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
1671
1672 2011-10-19 Richard Guenther <rguenther@suse.de>
1673
1674 PR middle-end/50768
1675 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
1676
1677 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
1678
1679 PR rtl-optimization/50340
1680 * sel-sched-ir.c (update_target_availability): LHS register
1681 availability is not known if the unavailable LHS of the other
1682 expression is a different register.
1683
1684 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1685
1686 PR target/50310
1687 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
1688 floating-point comparisons.
1689
1690 2011-10-19 Jan Hubicka <jh@suse.cz>
1691
1692 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
1693 destination declared.
1694 (output_weakrefs): New function.
1695 * varpool.c (varpool_create_variable_alias): Handle external aliases.
1696
1697 2011-10-19 Jakub Jelinek <jakub@redhat.com>
1698
1699 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
1700 second argument instead of mode.
1701
1702 2011-10-18 Jakub Jelinek <jakub@redhat.com>
1703
1704 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
1705 mode SUBREG of operands[0] as target.
1706 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
1707 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
1708 (expand_vec_perm_1): Handle identity and some broadcast
1709 permutations.
1710 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
1711 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
1712 For d->testing_p return true earlier to avoid creating more GC
1713 garbage.
1714 (expand_vec_perm_vpermq_perm_1): New function.
1715 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
1716 earlier to avoid creating more GC garbage. Fix handling of
1717 V16HImode. Avoid some SUBREGs in SET_DEST.
1718 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
1719 vector modes.
1720 (expand_vec_perm_vpshufb4_vpermq2): New function.
1721 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
1722 and expand_vec_perm_vpshufb4_vpermq2.
1723
1724 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1725
1726 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
1727 before exiting.
1728
1729 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1730
1731 PR tree-optimization/50717
1732 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
1733 parameter. Calculate 'type' from stmt.
1734 (convert_mult_to_widen): Update call the is_widening_mult_p.
1735 (convert_plusminus_to_widen): Likewise.
1736
1737 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1738
1739 * config/spu/spu.c (struct machine_function): New data structure.
1740 (spu_init_machine_status): New function.
1741 (spu_option_override): Install it.
1742 (get_pic_reg): Set and use cfun->machine->pic_reg.
1743 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
1744 (need_to_save_reg): Use cfun->machine->pic_reg instead of
1745 checking crtl->uses_pic_offset_table.
1746 (spu_expand_prologue): Likewise.
1747
1748 2011-10-18 Jakub Jelinek <jakub@redhat.com>
1749
1750 PR tree-optimization/50735
1751 * function.c (gimplify_parameters): Use create_tmp_var instead of
1752 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
1753 or vector type, set DECL_GIMPLE_REG_P.
1754
1755 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1756
1757 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
1758 * config/arm/arm.opt: Add 'native' processor_type and
1759 arm_arch enum values.
1760 * config/arm/arm.h (host_detect_local_cpu): New prototype.
1761 (EXTRA_SPEC_FUNCTIONS): New define.
1762 (MCPU_MTUNE_NATIVE_SPECS): New define.
1763 (DRIVER_SELF_SPECS): New define.
1764 * config/arm/driver-arm.c: New file.
1765 * config/arm/x-arm: New file.
1766 * doc/invoke.texi (ARM Options): Document -mcpu=native,
1767 -mtune=native and -march=native.
1768
1769 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
1770
1771 PR rtl-optimization/50205
1772 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
1773 p->x is a register. Forbid substitution when the same register is
1774 found in a different mode.
1775 (count_occurrences_equiv): Assert that 'what' is a register.
1776
1777 2011-10-18 Richard Guenther <rguenther@suse.de>
1778
1779 PR tree-optimization/50767
1780 * tree-ssa-pre.c (create_expression_by_pieces): Update the
1781 folded statement.
1782
1783 2011-10-18 Julian Brown <julian@codesourcery.com>
1784
1785 * config/arm/arm.c (arm_block_move_unaligned_straight)
1786 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
1787 (arm_movmemqi_unaligned): New.
1788 (arm_gen_movmemqi): Support unaligned block copies.
1789
1790 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
1791
1792 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
1793 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
1794 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
1795 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1796 (op_code_prio): Likewise.
1797 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
1798 * optabs.c (optab_for_tree_code): Handle
1799 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1800 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
1801 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
1802 * genopinit.c (optabs): Initialize the new optabs.
1803 * expr.c (expand_expr_real_2): Handle
1804 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1805 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
1806 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
1807 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
1808 VEC_WIDEN_LSHIFT_LO_EXPR): New.
1809 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
1810 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1811 vect_recog_widen_shift_pattern.
1812 (vect_handle_widen_mult_by_const): Rename...
1813 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
1814 Add a new argument, update documentation.
1815 (vect_recog_widen_mult_pattern): Assume that only second
1816 operand can be constant. Update call to
1817 vect_handle_widen_op_by_const.
1818 (vect_recog_over_widening_pattern): Fix typo.
1819 (vect_recog_widen_shift_pattern): New.
1820 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
1821 widening shifts.
1822 (supportable_widening_operation): Likewise.
1823 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
1824 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1825 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1826 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
1827 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
1828 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
1829 Likewise.
1830 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
1831 New.
1832 * config/arm/iterators.md (V_innermode): New.
1833 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
1834 for widening shift.
1835
1836 2011-10-18 Richard Guenther <rguenther@suse.de>
1837
1838 * tree-ssa-alias.h (struct pt_solution): Remove
1839 vars_contains_restrict member.
1840 (pt_solutions_same_restrict_base): Remove.
1841 (pt_solution_set): Adjust.
1842 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
1843 vars_contains_restrict handling.
1844 (dump_points_to_solution): Likewise.
1845 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
1846 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
1847 field.
1848 (new_var_info): Do not initialize it.
1849 (ipa_escaped_pt): Adjust.
1850 (make_constraint_from_restrict): Make the tag global.
1851 (make_constraint_from_global_restrict): New function.
1852 (make_constraint_from_heapvar): Remove.
1853 (create_variable_info_for): Do not make restrict vars point
1854 to NONLOCAL.
1855 (intra_create_variable_infos): Likewise.
1856 (find_what_var_points_to): Remove vars_contains_restrict handling.
1857 (pt_solution_set): Adjust.
1858 (pt_solution_ior_into): Likewise.
1859 (pt_solutions_same_restrict_base): Remove.
1860 (compute_points_to_sets): Do not test is_restrict_var.
1861 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
1862 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
1863
1864 2011-10-18 Tom de Vries <tom@codesourcery.com>
1865
1866 PR tree-optimization/50672
1867 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
1868 factored out of ...
1869 (mark_virtual_phi_result_for_renaming): Use
1870 mark_virtual_operand_for_renaming.
1871 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
1872 * tree-ssa-tail-merge.c (release_last_vdef): New function.
1873 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
1874 deleted basic block.
1875 (tail_merge_optimize): Add argument to call to purge_bbs.
1876
1877 2011-10-18 Richard Guenther <rguenther@suse.de>
1878
1879 PR middle-end/50716
1880 * expr.c (get_object_or_type_alignment): New function.
1881 (expand_assignment): Use it.
1882 (expand_expr_real_1): Likewise.
1883
1884 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1885
1886 PR bootstrap/50760
1887 * input.c (dump_line_table_statistics): Use long, not size_t.
1888
1889 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
1890
1891 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
1892
1893 2011-10-17 Simon Baldwin <simonb@google.com>
1894 Ian Lance Taylor <iant@google.com>
1895
1896 * configure.ac: Add --with-native-system-header-dir. Set and
1897 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
1898 when setting target_header_dir.
1899 * config.gcc: Always set native_system_header_dir.
1900 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
1901 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
1902 use i386/t-djgpp.
1903 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
1904 native_system_header_dir.
1905 (spu-*-elf*): Set native_system_header_dir.
1906 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
1907 @NATIVE_SYSTEM_HEADER_DIR@.
1908 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
1909 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
1910 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1911 STANDARD_INCLUDE_COMPONENT.
1912 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
1913 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1914 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
1915 STANDARD_INCLUDE_COMPONENT.
1916 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
1917 * config/i386/t-mingw-w32: Likewise.
1918 * config/i386/t-mingw-w64: Likewise.
1919 * config/spu/t-spu-elf: Likewise.
1920 * config/i386/t-djgpp: Remove.
1921 * config/t-gnu: Remove.
1922 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
1923 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1924 STANDARD_INCLUDE_COMPONENT.
1925 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
1926 * config/spu/spu-elf.h: Likewise.
1927 * config/vms/xm-vms.h: Likewise.
1928 * config/gnu.h: Likewise.
1929 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
1930 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
1931 NATIVE_SYSTME_HEADER_COMPONENT.
1932 * doc/install.texi (Configuration): Document
1933 --with-native-system-header-dir. Mention it in the documentation
1934 for --with-sysroot and --with-build-sysroot.
1935 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
1936 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
1937 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
1938 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1939 * doc/fragments.texi (Target Fragment): Don't document
1940 NATIVE_SYSTEM_HEADER_DIR.
1941 * configure, doc/tm.texi: Rebuild.
1942
1943 2011-10-17 Richard Henderson <rth@redhat.com>
1944
1945 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
1946 is the constraint.
1947
1948 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
1949 patterns.
1950 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
1951 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
1952
1953 2011-10-17 David S. Miller <davem@davemloft.net>
1954
1955 * config/sparc/sparc-modes.def: Add single entry vector modes for
1956 DImode and SImode.
1957 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
1958 mode iterators.
1959 (mov<V32:mode>): Revert back to plain SFmode pattern.
1960 (*movsf_insn): Likewise.
1961 (mov<V64:mode>): Revert back to plain DFmode pattern.
1962 (*movdf_insn_sp32): Likewise.
1963 (*movdf_insn_sp32_v9): Likewise.
1964 (*movdf_insn_sp64): Likewise.
1965 (V64 mode splitters) Likewise.
1966 (addsi3): Remove VIS alternatives.
1967 (subsi3): Likewise.
1968 (and<V64I:mode>3): Revert to DImode only pattern.
1969 (and<V64I:mode>3_sp32): Likewise.
1970 (*and<V64I:mode>3_sp64): Likewise.
1971 (and<V32I:mode>3): Likewise.
1972 (*and_not_<V64I:mode>_sp32): Likewise.
1973 (*and_not_<V64I:mode>_sp64): Likewise.
1974 (*and_not_<V32I:mode>): Likewise.
1975 (ior<V64I:mode>3): Likewise.
1976 (*ior<V64I:mode>3_sp32): Likewise.
1977 (*ior<V64I:mode>3_sp64): Likewise.
1978 (ior<V32I:mode>3): Likewise.
1979 (*or_not_<V64I:mode>_sp32): Likewise.
1980 (*or_not_<V64I:mode>_sp64): Likewise.
1981 (*or_not_<V32I:mode>): Likewise.
1982 (xor<V64I:mode>3): Likewise.
1983 (*xor<V64I:mode>3_sp32): Likewise.
1984 (*xor<V64I:mode>3_sp64): Likewise.
1985 (xor<V32I:mode>3): Likewise.
1986 (V64I mode splitters): Likewise.
1987 (*xor_not_<V64I:mode>_sp32): Likewise.
1988 (*xor_not_<V64I:mode>_sp64): Likewise.
1989 (*xor_not_<V32I:mode>): Likewise.
1990 (one_cmpl<V64I:mode>2): Likewise.
1991 (*one_cmpl<V64I:mode>2_sp32): Likewise.
1992 (*one_cmpl<V64I:mode>2_sp64): Likewise.
1993 (one_cmpl<V32I:mode>2): Likewise.
1994 (VM32, VM64, VMALL): New mode iterators.
1995 (vbits, vconstr, vfptype): New mode attributes.
1996 (mov<VMALL:mode>): New expander.
1997 (*mov<VM32:mode>_insn): New insn.
1998 (*mov<VM64:mode>_insn_sp64): New insn.
1999 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
2000 specifically for the register to memory case.
2001 (vec_init<mode>): New expander.
2002 (VADDSUB): New mode iterator.
2003 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
2004 with...
2005 (<plusminus_insn><mode>3): New consolidated pattern.
2006 (VL): New mode iterator for logical operations.
2007 (vlsuf): New more attribute.
2008 (vlop): New code iterator.
2009 (vlinsn, vlninsn): New code attributes.
2010 (<code><mode>3): New insn to non-negated vector logical ops.
2011 (*not_<code><mode>3): Likewise for negated variants.
2012 (*nand<mode>_vis): New insn.
2013 (vlnotop): New code iterator.
2014 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
2015 (one_cmpl<mode>2): New insn.
2016 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
2017 (bshuffle<VM64:mode>_vis): Likewise.
2018 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
2019 (fp<plusminus_insn>64_vis): Use V1DI mode.
2020 (VASS mode iterator): Use V1SI not SI mode.
2021 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
2022 single-entry vector mode changes.
2023 (sparc_expand_builtin): Likewise.
2024 (sparc_expand_vector_init): New function.
2025 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
2026
2027 2011-10-17 Kai Tietz <ktietz@redhat.com>
2028
2029 * fold-const.c (simple_operand_p_2): New function.
2030 (fold_truthop): Rename to
2031 (fold_truth_andor_1): function name.
2032 Additionally remove branching creation for logical and/or.
2033 (fold_truth_andor): Handle branching creation for logical and/or here.
2034
2035 2011-10-17 Andi Kleen <ak@linux.intel.com>
2036
2037 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
2038
2039 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
2040
2041 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
2042 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
2043 (adjust_len): Add alternative "call".
2044 (isa, enabled): New insn attributes.
2045 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
2046 mcu_mega attribute.
2047 (*sbrx_branch<mode>): Ditto.
2048 (*sbrx_and_branch<mode>): Ditto.
2049 (*sbix_branch): Ditto.
2050 (*sbix_branch_bit7): Ditto.
2051 (*sbix_branch_tmp): Ditto.
2052 (*sbix_branch_tmp_bit7): Ditto.
2053 (jump): Ditto.
2054 (negsi2): Use attribute "isa" instead of assembler dialect.
2055 (extendhisi2): Ditto.
2056 (call_insn, call_value_insn): Set adjust_len attribute.
2057 (indirect_jump): Indent to coding rules.
2058 (call_prologue_saves): Use isa attribute instead of mcu_mega.
2059 (epilogue_restores): Ditto. Fix setting of SP as described in the
2060 RTX pattern.
2061 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
2062 and *indirect_jump_avr6.
2063 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
2064 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
2065 (*tablejump_rjmp, *tablejump_lib): Remove.
2066 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
2067
2068 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2069
2070 PR c++/50757
2071 * doc/invoke.texi ([Wnonnull]): Update.
2072
2073 2011-10-17 Richard Henderson <rth@redhat.com>
2074
2075 PR 50746
2076 * optabs.c (expand_vec_perm_expr): Fix indexing error.
2077
2078 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
2079
2080 * configure.ac: Display `yes' if the SystemTap header has been found.
2081 * configure: Regenerate.
2082
2083 2011-10-08 Andi Kleen <ak@linux.intel.com>
2084
2085 PR other/50636
2086 * config.in, configure: Regenerate.
2087 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
2088 * ggc-page.c (USING_MADVISE): Add.
2089 (page_entry): Add discarded field.
2090 (alloc_page): Check for discarded pages.
2091 (release_pages): Add USING_MADVISE branch.
2092
2093 2011-10-17 Richard Guenther <rguenther@suse.de>
2094
2095 PR tree-optimization/50729
2096 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
2097 (simplify_conversion_using_ranges): Properly test the
2098 intermediate result.
2099
2100 2011-10-15 Tom Tromey <tromey@redhat.com>
2101 Dodji Seketeli <dodji@redhat.com>
2102
2103 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
2104 * ggc-none.c (ggc_round_alloc_size): New public stub function.
2105 * ggc-page.c (ggc_alloced_size_order_for_request): New static
2106 function. Factorized from ggc_internal_alloc_stat.
2107 (ggc_round_alloc_size): New public function. Uses
2108 ggc_alloced_size_order_for_request.
2109 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
2110 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
2111 from ggc_internal_alloc_zone_stat.
2112 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
2113 * toplev.c (general_init): Initialize
2114 line_table->alloced_size_for_request.
2115
2116 2011-10-15 Tom Tromey <tromey@redhat.com>
2117 Dodji Seketeli <dodji@redhat.com>
2118
2119 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
2120 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
2121 new counters.
2122 (dump_line_table_statistics): Define new function.
2123 * input.h (dump_line_table_statistics): Declare new function.
2124 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
2125
2126 2011-10-15 Tom Tromey <tromey@redhat.com>
2127 Dodji Seketeli <dodji@redhat.com>
2128
2129 * doc/cppopts.texi: Document -fdebug-cpp.
2130 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
2131
2132 2011-10-15 Tom Tromey <tromey@redhat.com>
2133 Dodji Seketeli <dodji@redhat.com>
2134
2135 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
2136 location parameter.
2137 * diagnostic.c (diagnostic_report_current_module): Add a location
2138 parameter to the function definition. Use it instead of
2139 input_location. Resolve the virtual location rather than just
2140 looking up its map and risking to touch a resulting macro map.
2141 (default_diagnostic_starter): Pass the relevant diagnostic
2142 location to diagnostic_report_current_module.
2143 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
2144 (virt_loc_aware_diagnostic_finalizer): Likewise.
2145 (diagnostic_report_current_function): Pass the
2146 relevant location to diagnostic_report_current_module.
2147 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
2148 new function.
2149 * toplev.c (general_init): By default, use the new
2150 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
2151 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
2152
2153 2011-10-15 Tom Tromey <tromey@redhat.com>
2154 Dodji Seketeli <dodji@redhat.com>
2155
2156 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
2157 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
2158 preprocessor related options.
2159
2160 2011-10-15 Tom Tromey <tromey@redhat>
2161 Dodji Seketeli <dodji@redhat.com>
2162
2163 * input.h (struct expanded_location): Move to libcpp/line-map.h.
2164 (LOCATION_COLUMN): New accessor
2165 (in_system_header_at): Use linemap_location_in_system_header_p.
2166 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
2167 touching the internals of struct line_map. Use the public API instead.
2168 (diagnostic_report_diagnostic): Don't use relational operator '<'
2169 on virtual locations. Use linemap_location_before_p instead.
2170 * input.c (expand_location): Adjust to expand to the tokens'
2171 spelling location when macro location tracking is on.
2172
2173
2174 2011-10-08 Andi Kleen <ak@linux.intel.com>
2175
2176 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
2177
2178 2011-10-13 Andi Kleen <ak@linux.intel.com>
2179
2180 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
2181
2182 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
2183
2184 PR tree-optimization/50727
2185 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
2186 DEF_STMT to the list of statements to be replaced by the
2187 pattern statements.
2188
2189 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
2190
2191 PR rtl-optimization/50615
2192 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
2193
2194 2011-10-16 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR tree-optimization/50596
2197 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
2198 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2199 vect_recog_bool_pattern.
2200 (check_bool_pattern, adjust_bool_pattern_cast,
2201 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
2202
2203 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
2204
2205 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
2206 treat the first load of the node as the first element in its
2207 interleaving chain.
2208 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
2209 necessary and possible.
2210 (vect_build_slp_tree): Add new argument. Allow load groups of any size
2211 in basic blocks. Keep all the loads for further permutation check.
2212 Use the new argument to determine if there is a permutation. Update
2213 the recursive calls.
2214 (vect_supported_load_permutation_p): Allow subchains of interleaving
2215 chains in basic block vectorization.
2216 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
2217 Check load permutation based on the new parameter.
2218 (vect_schedule_slp_instance): Don't start from the first element in
2219 interleaving chain unless the loads are permuted.
2220
2221 2011-10-15 Jan Hubicka <jh@suse.cz>
2222
2223 PR target/48668
2224 PR target/50689
2225 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
2226 after function body.
2227
2228 2011-10-15 Richard Henderson <rth@redhat.com>
2229
2230 * tree-vect-slp.c: Include langhooks.h.
2231 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
2232 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
2233 mask creation for VEC_PERM_EXPR.
2234 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
2235 not the builtin.
2236 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
2237 * Makefile.in (tree-vect-slp.o): Update dependency.
2238 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
2239
2240 2011-10-15 Alan Modra <amodra@gmail.com>
2241
2242 PR bootstrap/50738
2243 * ifcvt.c (dead_or_predicable): Revert accidental commit with
2244 HAVE_simple_return test.
2245
2246 2011-10-15 Alan Modra <amodra@gmail.com>
2247
2248 * ifcvt.c (dead_or_predicable): Disable if-conversion when
2249 doing so is likely to kill a shrink-wrapping opportunity.
2250
2251 PR rtl-optimization/49941
2252 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
2253
2254 * rtl.h (set_return_jump_label): Declare.
2255 * function.c (set_return_jump_label): New function, extracted..
2256 (thread_prologue_and_epilogue_insns): ..from here. Use it in
2257 another instance to set return jump_label.
2258 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
2259 * reorg.c (find_end_label): Likewise.
2260
2261 2011-10-14 David S. Miller <davem@davemloft.net>
2262
2263 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
2264 with a more complete cpp test.
2265 * config/sparc/linux64.h: Likewise.
2266 * config/sparc/linux.h: Likewise.
2267 * config/sparc/sparc.opt (sparc_debug): New target variable.
2268 (mdebug): New target option.
2269 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
2270 TARGET_DEBUG_OPTIONS): New defines.
2271 * config/sparc/sparc.c (debug_target_flag_bits,
2272 debug_target_flags): New functions.
2273 (sparc_option_override): Add name strings back to cpu_table[].
2274 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
2275 out the target flags before and after override processing as well
2276 as the selected cpu. If MASK_V8PLUS, make sure that the selected
2277 cpu is at least v9.
2278
2279 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
2280
2281 PR target/49263
2282 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
2283 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
2284 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
2285 and instruction commutative.
2286 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
2287 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
2288 tstsi_t_zero_extract_subreg_xor_little,
2289 tstsi_t_zero_extract_subreg_xor_big): New insns.
2290 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
2291 asm output.
2292 (*andsi_compact): Reorder alternatives so that K08 is considered first.
2293
2294 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
2295
2296 PR target/50354
2297 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
2298 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
2299
2300 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
2301
2302 * invoke.texi (AVR Options): Avoid \leq{}.
2303
2304 2011-10-14 Kai Tietz <ktietz@redhat.com>
2305
2306 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
2307 transformation the operands have compatible types.
2308
2309 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2310
2311 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
2312 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
2313 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
2314 mode iterator and any_extend code iterator.
2315 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
2316 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
2317 also for TARGET_SSE4_1 using pmuldq insn.
2318 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
2319 (sse2_sse4_1): New code attr.
2320 (udot_prodv4si): Macroize using any_extend code iterator.
2321 (<s>dot_prodv8si): New expander.
2322
2323 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
2324
2325 * config/i386/i386.c (atom_cost): Changed cost for loading
2326 QImode using movzbl.
2327
2328 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2329
2330 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
2331 change on October 11th, 2011.
2332
2333 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2334
2335 * config/i386/sse.md (vec_interleave_high<mode>,
2336 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
2337 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
2338 (ix86_expand_vec_perm_builtin_1): Call it.
2339
2340 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
2341
2342 Fix thinko from r179765
2343 * config/avr/avr.c (avr_option_override): Don't override
2344 flag_omit_frame_pointer if not actually needed.
2345
2346 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
2347
2348 PR target/46278
2349 * doc/invoke.texi (AVR Options): Document -mstrict-X.
2350
2351 * config/avr/avr.opt (-mstrict-X): New option.
2352 (avr_strict_X): New variable reflecting -mstrict-X.
2353 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
2354 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
2355 (avr_legitimate_address_p): Pass outer_code to
2356 avr_reg_ok_for_addr_p and use that function in case PLUS.
2357 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
2358 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
2359 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
2360
2361 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2362
2363 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
2364 of VI_128.
2365
2366 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
2367 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
2368 Use <sseinsnmode> instead of TI in mode attr.
2369
2370 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2371
2372 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
2373 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
2374 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
2375 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
2376
2377 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2378
2379 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
2380 (arm_output_strex): Support strexd.
2381 (arm_output_it): New helper to output it in Thumb2 mode only.
2382 (arm_output_sync_loop): Support DI mode. Change comment to
2383 not support const_int.
2384 (arm_expand_sync): Support DI mode.
2385 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
2386 and LDREXD.
2387 * config/arm/iterators.md (NARROW): move from sync.md.
2388 (QHSD): New iterator for all current ARM integer modes.
2389 (SIDI): New iterator for SI and DI modes only.
2390 * config/arm/sync.md (sync_predtab): New mode_attr.
2391 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
2392 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
2393 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
2394 (sync_nandsi): Fold into sync_nand<mode>.
2395 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
2396 (sync_new_nandsi): Fold into sync_new_nand<mode>.
2397 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
2398 (sync_old_nandsi): Fold into sync_old_nand<mode>.
2399 (sync_compare_and_swap<mode>): Support SI & DI.
2400 (sync_lock_test_and_set<mode>): Likewise.
2401 (sync_<sync_optab><mode>): Likewise.
2402 (sync_nand<mode>): Likewise.
2403 (sync_new_<sync_optab><mode>): Likewise.
2404 (sync_new_nand<mode>): Likewise.
2405 (sync_old_<sync_optab><mode>): Likewise.
2406 (sync_old_nand<mode>): Likewise.
2407 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
2408 (arm_sync_lock_test_and_setsi): Likewise.
2409 (arm_sync_new_<sync_optab>si): Likewise.
2410 (arm_sync_new_nandsi): Likewise.
2411 (arm_sync_old_<sync_optab>si): Likewise.
2412 (arm_sync_old_nandsi): Likewise.
2413 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
2414 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
2415 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
2416 (arm_sync_new_nand<mode> NARROW): Likewise.
2417 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
2418 (arm_sync_old_nand<mode> NARROW): Likewise.
2419
2420 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2421
2422 PR target/48126
2423 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
2424
2425 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2426
2427 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
2428
2429 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2430
2431 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
2432
2433 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2434
2435 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
2436 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
2437
2438 2011-10-14 Richard Guenther <rguenther@suse.de>
2439
2440 PR tree-optimization/50723
2441 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
2442
2443 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
2444
2445 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
2446 objc/objc-map.c.
2447
2448 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2449
2450 PR c++/17212
2451 * doc/invoke.texi ([Wformat-zero-length]): Update.
2452
2453 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
2454
2455 PR bootstrap/50699
2456 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
2457 build for powerpc targets. (darwin_patch_builtins): Only build for
2458 powerpc targets.
2459
2460 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2461
2462 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
2463 (avx_cvtdq2pd256_2): ... this.
2464 (sseunpackfltmode): New mode attr.
2465 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
2466 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
2467 using VI2_AVX2 iterator.
2468 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
2469
2470 2011-10-13 David S. Miller <davem@davemloft.net>
2471
2472 * config/sparc/sparc.md (plusminus): New code iterator.
2473 (plusminus_insn): New code attr.
2474 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
2475 using plusminus and plusminus_insn.
2476 (fpadd64_vis, fpsub64_vis): Likewise.
2477
2478 2011-10-13 Richard Henderson <rth@redhat.com>
2479
2480 * doc/md.texi (vec_perm): Document fallback to byte permutation.
2481 * genopinit.c (optabs): Add vec_perm_const.
2482 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
2483 Reject non-vector modes. Allow fallback to byte permutation.
2484 (expand_vec_perm_expr_1): Split out from ...
2485 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
2486 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
2487 * tree-vect-generic.c (lower_vec_perm): Update for name change.
2488
2489 2011-10-13 Richard Henderson <rth@redhat.com>
2490
2491 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
2492
2493 * config/rs6000/spu.md (vec_permv16qi): New pattern.
2494
2495 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
2496 * config/i386/i386-protos.h: Update.
2497 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
2498 (vec_perm_const<VEC_PERM_CONST>): New expander.
2499
2500 * optabs.c (expand_vector_broadcast): New.
2501 (expand_binop): Expand scalar shifts of vectors to vector shifts
2502 of vectors, if the former isn't supported.
2503 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
2504 here; always simplify to scalar shift of vector if possible.
2505
2506 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
2507 test for vector splat.
2508
2509 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2510
2511 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
2512
2513 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2514 Richard Guenther <rguenther@suse.de>
2515
2516 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
2517 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
2518
2519 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2520
2521 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
2522 * config/i386/i386.c (ix86_build_const_vector): Handle
2523 also V32QI, V16QI, V16HI and V8HI modes.
2524 (emit_reduc_half): New function.
2525 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
2526 Use emit_reduc_half helper function.
2527
2528 2011-10-13 Lawrence Crowl <crowl@google.com>
2529 Diego Novillo <dnovillo@google.com>
2530
2531 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
2532 (input_function): ... here.
2533 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
2534 (output_function): ... here.
2535
2536 2011-10-13 Gabriel Charette <gchare@google.com>
2537 Diego Novillo <dnovillo@google.com>
2538
2539 * streamer-hooks.h (struct streamer_hooks): Add hooks
2540 input_location and output_location.
2541 * lto-streamer-in.c (lto_input_location): Use
2542 streamer_hooks.input_location, if set.
2543 * lto-streamer-out.c (lto_output_location): Use
2544 streamer_hooks.output_location, if set.
2545
2546 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
2547
2548 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
2549 * config/sparc/sparc.opt (mfix-at697f): New option.
2550 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
2551 (sparc_reorg): New function.
2552
2553 2011-10-13 Richard Guenther <rguenther@suse.de>
2554
2555 PR tree-optimization/50712
2556 * ipa-split.c (split_function): Always re-gimplify parameters
2557 when they are not gimple vals before passing them. Properly
2558 check for type compatibility.
2559
2560 2011-10-13 Tom de Vries <tom@codesourcery.com>
2561
2562 * function.c (gimplify_parameters): Set number of arguments of call to
2563 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
2564
2565 2011-10-13 Tom de Vries <tom@codesourcery.com>
2566
2567 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
2568 for static const strings.
2569 * varasm.c (build_constant_desc): Generate the memory location of the
2570 constant using gen_const_mem.
2571
2572 2011-10-13 Richard Guenther <rguenther@suse.de>
2573
2574 PR tree-optimization/50698
2575 * tree-data-ref.c (split_constant_offset_1): Also process
2576 offsets of &MEM.
2577
2578 2011-10-12 David S. Miller <davem@davemloft.net>
2579
2580 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
2581 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
2582 unspecs.
2583 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
2584 of a vec_concat.
2585 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
2586 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
2587 Reimplement as unspecs and remove inaccurate comments.
2588 (vis3_shift_patname): New code attr.
2589 (<vis3_shift_insn><vbits>_vis): Rename to
2590 "v<vis3_shift_patname><mode>3".
2591 (vis3_addsub_ss_patname): New code attr.
2592 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
2593 "<vis3_addsub_ss_patname><mode>3".
2594 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
2595 accommodate pattern name changes.
2596
2597 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
2598 to zero when assembler lacks support for such instructions.
2599 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
2600 and MASK_FMAF in defaults when assembler lacks necessary support.
2601
2602 2011-10-12 Jakub Jelinek <jakub@redhat.com>
2603
2604 * config/i386/sse.md (vec_unpacks_lo_<mode>,
2605 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
2606 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
2607 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
2608 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
2609
2610 * config/i386/sse.md (vec_avx2): New mode_attr.
2611 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
2612 (mul<mode>3): ... this.
2613
2614 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
2615 * config/i386/i386.c (ix86_expand_vec_perm): Handle
2616 V16QImode and V32QImode for TARGET_AVX2.
2617 (MAX_VECT_LEN): Increase to 32.
2618 (expand_vec_perm_blend): Add support for 32-byte integer
2619 vectors with TARGET_AVX2.
2620 (valid_perm_using_mode_p): New function.
2621 (expand_vec_perm_pshufb): Add support for 32-byte integer
2622 vectors with TARGET_AVX2.
2623 (expand_vec_perm_vpshufb2_vpermq): New function.
2624 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
2625 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
2626 with TARGET_AVX2.
2627 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
2628 and expand_vec_perm_vpshufb2_vpermq_even_odd.
2629 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
2630 32-byte integer vector modes.
2631 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
2632 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
2633 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
2634 4 new operands.
2635 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
2636 match_dup, instead add 4 new operands and require they have
2637 right cross-lane values.
2638 (avx2_permv4di): Change into define_expand.
2639 (avx2_permv4di_1): New instruction.
2640 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
2641 for "xm" constrained operand.
2642 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
2643
2644 * config/i386/sse.md (avx2_gathersi<mode>,
2645 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
2646 match_scratch, change memory_operand to register_operand,
2647 add (mem:BLK (scratch)) use.
2648 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
2649 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
2650 add earlyclobber to the output operand and match_scratch,
2651 add (mem:BLK (scratch)) use, change the other mem to match_operand.
2652 Use %p6 instead of %c6 in the pattern.
2653 * config/i386/i386.c (ix86_expand_builtin): Adjust for
2654 operand 2 being a Pmode register_operand instead of memory_operand.
2655
2656 2011-10-12 Kai Tietz <ktietz@redhat.com>
2657
2658 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
2659
2660 2011-10-12 Steve Ellcey <sje@cup.hp.com>
2661
2662 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
2663
2664 2011-10-12 Richard Guenther <rguenther@suse.de>
2665
2666 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
2667 of the first store we visit in a basic-block.
2668 (get_continuation_for_phi): Search for a candidate VUSE that
2669 might dominates all others. Do pairwise disambiguation against
2670 that candidate.
2671
2672 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
2673
2674 PR tree-optimization/50189
2675 * tree-vrp.c (extract_range_from_assert): Use the type of
2676 the variable, not the limit.
2677
2678 2011-10-12 Richard Guenther <rguenther@suse.de>
2679
2680 PR tree-optimization/50700
2681 * tree-object-size.c (addr_object_size): Simplify and treat
2682 MEM_REF bases consistently.
2683
2684 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
2685
2686 * function.c (prepare_shrink_wrap, bb_active_p): New function.
2687 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
2688 prepare_shrink_wrap, then recompute bb_active_p for the last block.
2689
2690 2011-10-12 Joseph Myers <joseph@codesourcery.com>
2691
2692 PR c/50565
2693 * convert.c (convert_to_integer): Do not narrow operands of
2694 pointer subtraction.
2695
2696 2011-10-12 Nick Clifton <nickc@redhat.com>
2697
2698 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
2699 emit a .eabi_attribute assembler directive, possibly with a
2700 comment attached.
2701 * config/arm/arm.c (arm_file_start): Use the new macro.
2702 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
2703
2704 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
2705
2706 PR target/49939
2707 * config/avr/avr.md (*movqi): Rename to movqi_insn.
2708 (*call_insn): Rename to call_insn.
2709 (*call_value_insn): Rename to call_value_insn.
2710 * config/avr/avr.c (avr_2word_insn_p): New static function.
2711 (jump_over_one_insn_p): Use it.
2712
2713 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
2714
2715 * expr.h (copy_blkmode_to_reg): Declare.
2716 * expr.c (copy_blkmode_to_reg): New function.
2717 (expand_assignment): Don't expand register RESULT_DECLs before
2718 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
2719 RESULT_DECL register.
2720 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
2721 * stmt.c (expand_return): Move BLKmode-to-register code into
2722 copy_blkmode_to_reg.
2723
2724 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
2725
2726 PR target/49965
2727 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
2728 (mov<F:mode>cc): Likewise.
2729
2730 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2731
2732 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
2733
2734 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2735
2736 * tree.h (built_in_decls): Delete old interface with two parallel
2737 arrays to hold standard builtin declarations, and replace it with
2738 a function based interface that can support creating builtins on
2739 the fly in the future. Change all uses, and poison the old
2740 names. Make sure 0 is not a legitimate builtin index.
2741 (implicit_built_in_decls): Ditto.
2742 (built_in_info): Ditto.
2743 (BUILTIN_VALID_P): Ditto.
2744 (builtin_decl_explicit): Ditto.
2745 (builtin_decl_implicit): Ditto.
2746 (set_builtin_decl): Ditto.
2747 (set_builtin_decl_implicit_p): Ditto.
2748 (builtin_decl_explicit_p): Ditto.
2749 (builtin_decl_implicit_p): Ditto.
2750 * tree-complex.c (expand_complex_libcall): Ditto.
2751 * tree-loop-distribution.c (generate_memset_zero): Ditto.
2752 * tree-ssa-strlen.c (get_string_length): Ditto.
2753 (handle_builtin_strcpy): Ditto.
2754 (handle_builtin_strcat): Ditto.
2755 * tree.c (iterative_hash_expr): Ditto.
2756 (local_define_builtin): Ditto.
2757 (build_common_builtin_nodes): Ditto.
2758 * builtins.c (built_in_decls): Ditto.
2759 (implicit_built_in_decls): Ditto.
2760 (built_in_info): Ditto
2761 (expand_builtin_classify_type): Ditto.
2762 (mathfn_built_in_1): Ditto.
2763 (expand_builtin_cexpi): Ditto.
2764 (expand_builtin_mempcpy_args): Ditto.
2765 (expand_builtin_stpcpy): Ditto.
2766 (gimplify_va_arg_expr): Ditto.
2767 (expand_builtin_sync_operation): Ditto.
2768 (build_builtin_expect_predicate): Ditto.
2769 (fold_builtin_memory_op): Ditto.
2770 (fold_builtin_strcpy): Ditto.
2771 (fold_builtin_stpcpy): Ditto.
2772 (fold_builtin_strncpy): Ditto.
2773 (fold_builtin_interclass_mathfn): Ditto.
2774 (fold_builtin_classify): Ditto.
2775 (fold_builtin_2): Ditto.
2776 (fold_builtin_strstr): Ditto.
2777 (fold_builtin_strrchr): Ditto.
2778 (fold_builtin_strpbrk): Ditto.
2779 (fold_builtin_strcat): Ditto.
2780 (fold_builtin_strncat): Ditto.
2781 (fold_builtin_strcspn): Ditto.
2782 (fold_builtin_fputs): Ditto.
2783 (fold_builtin_sprintf): Ditto.
2784 (fold_builtin_snprintf): Ditto.
2785 (expand_builtin_memory_chk): Ditto.
2786 (fold_builtin_memory_chk): Ditto.
2787 (fold_builtin_stxcpy_chk): Ditto.
2788 (fold_builtin_strncpy_chk): Ditto.
2789 (fold_builtin_strcat_chk): Ditto.
2790 (fold_builtin_strncat_chk): Ditto.
2791 (fold_builtin_sprintf_chk_1): Ditto.
2792 (fold_builtin_snprintf_chk_1): Ditto.
2793 (fold_builtin_printf): Ditto.
2794 (fold_builtin_fprintf): Ditto.
2795 (fold_call_stmt): Ditto.
2796 (set_builtin_user_assembler_name): Ditto.
2797 * tree-emutls.c (emutls_common_1): Ditto.
2798 * omp-low.c (scan_omp): Ditto.
2799 (lower_rec_input_clauses): Ditto.
2800 (lower_reduction_clauses): Ditto.
2801 (expand_parallel_call): Ditto.
2802 (expand_task_call): Ditto.
2803 (maybe_catch_exception): Ditto.
2804 (optimize_omp_library_calls): Ditto.
2805 (expand_omp_for_generic): Ditto.
2806 (expand_omp_for_static_nochunk): Ditto.
2807 (expand_omp_for_static_chunk): Ditto.
2808 (expand_omp_sections): Ditto.
2809 (expand_omp_atomic_fetch_op): Ditto.
2810 (expand_omp_atomic_pipeline): Ditto.
2811 (expand_omp_atomic_mutex): Ditto.
2812 (lower_omp_single_simple): Ditto.
2813 (lower_omp_single_copy): Ditto.
2814 (lower_omp_master): Ditto.
2815 (lower_omp_ordered): Ditto.
2816 (lower_omp_critical): Ditto.
2817 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
2818 * builtins.c (DEF_BUILTIN_STUB): Ditto.
2819 (BUILT_IN_NONE): Ditto.
2820 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
2821 * gimple-low.c (lower_function_body): Ditto.
2822 (lower_builtin_setjmp): Ditto.
2823 * c-decl.c (merge_decls): Ditto.
2824 * tree-eh.c (lower_resx): Ditto.
2825 (lower_resx): Ditto.
2826 (lower_eh_dispatch): Ditto.
2827 * function (gimplify_parameters): Ditto.
2828 * c-typeck.c (build_function_call_vec): Ditto.
2829 * gimplify.c (build_stack_save_restore): Ditto.
2830 (gimplify_vla_decl): Ditto.
2831 (gimplify_modify_expr_to_memcpy): Ditto.
2832 (gimplify_modify_expr_to_memset): Ditto.
2833 (gimplify_variable_sized_compare): Ditto.
2834 (gimplify_function_tree): Ditto.
2835 * calls.c (emit_call_1): Ditto.
2836 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
2837 * tree-nested.c (convert_nl_goto_reference): Ditto.
2838 (convert_tramp_reference_op): Ditto.
2839 (finalize_nesting_tree_1): Ditto.
2840 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
2841 (tree_ssa_prefetch_arrays): Ditto.
2842 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
2843 * system.h (built_in_decls): Ditto.
2844 (implicit_built_in_decls): Ditto.
2845 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2846 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
2847 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
2848 (ix86_veclibabi_svml): Ditto.
2849 (ix86_veclibabi_acml): Ditto.
2850 * config/vms/vms.c (vms_patch_builtins): Ditto.
2851 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
2852 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
2853 (rs6000_builtin_vectorized_libmass): Ditto.
2854 (rs6000_init_builtins): Ditto.
2855 * config/darwin.c (darwin_override_options): Ditto.
2856 (darwin_patch_builtin): Ditto.
2857 (darwin_rename_builtins): Ditto.
2858 * config/pa/pa.c (pa_init_builtins): Ditto.
2859
2860 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2861
2862 * tree.h (copy_ref_info): Expose existing function.
2863 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
2864 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
2865
2866 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
2867
2868 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
2869 prototype.
2870 (avr_regno_mode_code_ok_for_base_p): New prototype.
2871 * config/avr/avr.h (BASE_REG_CLASS): Remove.
2872 (REGNO_OK_FOR_BASE_P): Remove.
2873 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
2874 (REG_OK_FOR_BASE_STRICT_P): Remove.
2875 (MODE_CODE_BASE_REG_CLASS): New define.
2876 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
2877 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
2878 (avr_regno_mode_code_ok_for_base_p): New function.
2879 (avr_reg_ok_for_addr_p): New static function.
2880 (avr_legitimate_address_p): Use it. Beautify.
2881
2882 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
2883
2884 PR target/50447
2885 * config/avr/avr.md (cc): Add out_plus attribute alternative.
2886 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
2887 avr_out_plus for all CONST_INT addends.
2888 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
2889 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
2890 CC_OUT_PLUS.
2891 (avr_out_plus_1): Change prototype and report effect on cc0.
2892 (avr_out_plus): Ditto.
2893 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
2894
2895 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
2896
2897 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
2898 the extra break.
2899
2900 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2901
2902 * doc/invoke.texi: Document new warning.
2903 * common.opt (Wvector-operation-performance): Define new warning.
2904 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
2905 vector operation.
2906 (exapnd_vector_parallel): Warn about expanded vector operation.
2907 (lower_vec_shuffle): Warn about expanded vector operation.
2908 * c-typeck.c (c_build_vec_perm_expr): Store correct location
2909 when creating VEC_PERM_EXPR.
2910
2911 2011-10-11 Richard Guenther <rguenther@suse.de>
2912
2913 PR tree-optimization/50204
2914 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
2915 two argument handling from ...
2916 (get_continuation_for_phi): ... here. Handle arbitrary number
2917 of PHI args.
2918
2919 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
2920
2921 * modulo-sched.c: Fix comment typo. Mention the possibility
2922 of using scheduling windows of II+1 cycles.
2923
2924 2011-10-11 Tristan Gingold <gingold@adacore.com>
2925
2926 * doc/invoke.texi (C Dialect Options): Document
2927 -fallow-parameterless-variadic-functions.
2928 * c-parser.c (c_parser_parms_list_declarator): Handle it.
2929
2930 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2931
2932 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
2933 to 0 if frame pointer is needed for unwinding.
2934
2935 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
2936
2937 PR bootstrap/50665
2938 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
2939 optab_index to enum direct_optab_index.
2940 (vec_perm_optab): Update.
2941
2942 2011-10-10 Anatoly Sokolov <aesok@post.ru>
2943
2944 * config/cris/cris.c (cris_preferred_reload_class): New function.
2945 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2946 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
2947
2948 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2949
2950 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
2951 !AVR_HAVE_JMP_CALL.
2952 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
2953 (*tablejump_enh, *tablejump): Remove insns.
2954 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
2955 EIJMP for indirect jump. Use LPM Z+ where available.
2956
2957 2011-10-10 Richard Henderson <rth@redhat.com>
2958
2959 * doc/md.texi (vec_perm_const): Fix typo in cindex.
2960
2961 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
2962 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
2963
2964 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
2965
2966 2011-10-10 Richard Guenther <rguenther@suse.de>
2967
2968 PR middle-end/50389
2969 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2970 mark symbols for renaming. Append the VUSE to all statements
2971 that possibly can have one.
2972
2973 2011-10-10 Richard Guenther <rguenther@suse.de>
2974
2975 * ipa-split.c (pass_split_functions): Add verification TODOs.
2976 (pass_feedback_split_functions): Likewise.
2977
2978 2011-10-10 Richard Guenther <rguenther@suse.de>
2979
2980 PR middle-end/50195
2981 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
2982 only when optimizing.
2983
2984 2011-10-10 Nick Clifton <nickc@redhat.com>
2985
2986 PR middle-end/49801
2987 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
2988 df_get_live_out instead of accessing the bitmaps directly.
2989 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
2990 df_live_add_problem and df_analyze.
2991
2992 2011-10-10 Michael Matz <matz@suse.de>
2993
2994 PR middle-end/50638
2995 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
2996
2997 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2998
2999 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
3000 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
3001 (node_sched_params): Remove first_reg_move and nreg_moves.
3002 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
3003 (update_node_sched_params): Move up file.
3004 (print_node_sched_params): Print the stage. Don't dump info related
3005 to first_reg_move and nreg_moves.
3006 (set_columns_for_row): New function.
3007 (set_columns_for_ps): Move up file and use set_columns_for_row.
3008 (schedule_reg_move): New function.
3009 (schedule_reg_moves): Call extend_node_sched_params and
3010 schedule_reg_move. Extend size of uses bitmap. Initialize
3011 num_consecutive_stages. Return false if a move could not be
3012 scheduled.
3013 (apply_reg_moves): Don't emit moves here.
3014 (permute_partial_schedule): Handle register moves.
3015 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
3016 to the same stage-count test as ddg nodes.
3017 (generate_prolog_epilog): Update calls accordingly.
3018 (sms_schedule): Allow move-scheduling to add a new first stage.
3019
3020 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3021
3022 * modulo-sched.c (ps_insn): Adjust comment.
3023 (ps_reg_move_info): New structure.
3024 (partial_schedule): Add reg_moves field.
3025 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
3026 (node_sched_params): Turn first_reg_move into an identifier.
3027 (ps_reg_move): New function.
3028 (ps_rtl_insn): Cope with register moves.
3029 (ps_first_note): Adjust comment and assert that the instruction
3030 isn't a register move.
3031 (node_sched_params): Replace with...
3032 (node_sched_param_vec): ...this vector.
3033 (set_node_sched_params): Adjust accordingly.
3034 (print_node_sched_params): Take a partial schedule instead of a ddg.
3035 Use ps_rtl_insn and ps_reg_move.
3036 (generate_reg_moves): Rename to...
3037 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
3038 move in the partial schedule, but don't emit it here. Don't perform
3039 register substitutions here either.
3040 (apply_reg_moves): New function.
3041 (duplicate_insns_of_cycles): Use register indices directly,
3042 rather than finding instructions using PREV_INSN. Use ps_reg_move.
3043 (sms_schedule): Call schedule_reg_moves before committing to
3044 a partial schedule. Try the next ii if the schedule fails.
3045 Use apply_reg_moves instead of generate_reg_moves. Adjust
3046 call to print_node_sched_params. Free node_sched_param_vec
3047 instead of node_sched_params.
3048 (create_partial_schedule): Initialize reg_moves.
3049 (free_partial_schedule): Free reg_moves.
3050
3051 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3052
3053 * modulo-sched.c (ps_insn): Replace node field with an identifier.
3054 (SCHED_ASAP): Replace with..
3055 (NODE_ASAP): ...this macro.
3056 (SCHED_PARAMS): New macro.
3057 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
3058 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
3059 (node_sched_params): Remove asap.
3060 (ps_rtl_insn, ps_first_note): New functions.
3061 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
3062 asap values.
3063 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
3064 (generate_reg_moves): Pass ids to the SCHED_* macros.
3065 (update_node_sched_params): Take a ps insn identifier rather than
3066 a node as parameter. Use ps_rtl_insn.
3067 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
3068 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
3069 (optimize_sc): Update for above field and SCHED_* macro changes.
3070 Update calls to try_scheduling_node_in_cycle and
3071 update_node_sched_params.
3072 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
3073 macro changes. Use ps_rtl_insn and ps_first_note.
3074 (sms_schedule): Pass ids to the SCHED_* macros.
3075 (get_sched_window): Adjust for above field and SCHED_* macro changes.
3076 Use NODE_ASAP instead of SCHED_ASAP.
3077 (try_scheduling_node_in_cycle): Remove node parameter. Update
3078 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
3079 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
3080 (ps_insert_empty_row): Adjust for above field changes.
3081 (compute_split_row): Use ids rather than nodes.
3082 (verify_partial_schedule): Adjust for above field changes.
3083 (print_partial_schedule): Use ps_rtl_insn.
3084 (create_ps_insn): Take an id rather than a node.
3085 (ps_insn_find_column): Adjust for above field changes.
3086 Use ps_rtl_insn.
3087 (ps_insn_advance_column): Adjust for above field changes.
3088 (add_node_to_ps): Remove node parameter. Update call to
3089 create_ps_insn.
3090 (ps_has_conflicts): Use ps_rtl_insn.
3091 (ps_add_node_check_conflicts): Replace node parameter than an id.
3092
3093 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3094
3095 * modulo-sched.c (undo_replace_buff_elem): Delete.
3096 (generate_reg_moves): Don't build and return an undo list.
3097 (free_undo_replace_buff): Delete.
3098 (sms_schedule): Adjust call to generate_reg_moves.
3099 Don't call free_undo_replace_buff.
3100
3101 2011-10-10 Matthias Klose <doko@ubuntu.com>
3102
3103 * common/config/m32c: Remove empty directory.
3104
3105 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
3106
3107 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
3108
3109 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
3110
3111 PR target/50652
3112 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
3113 atmega164a to 0x100.
3114
3115 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
3116
3117 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
3118 the replacement if the conversion to the LHS type is not useless.
3119
3120 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
3121
3122 PR tree-optimization/50635
3123 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
3124 DEF_STMT to the list of statements to be replaced by the
3125 pattern statements.
3126 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
3127
3128 2011-10-09 Anatoly Sokolov <aesok@post.ru>
3129
3130 * system.h: Commit forgotten hunk in previous patch.
3131 (OUTPUT_ADDR_CONST_EXTRA): Poison.
3132
3133 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
3134
3135 PR libobjc/50428
3136 * doc/objc.texi (Garbage Collection): Updated example to protect
3137 +initialize against execution in subclasses.
3138
3139 2011-10-07 Richard Henderson <rth@redhat.com>
3140
3141 * doc/extend.texi (__builtin_shuffle): Improve the description to
3142 include the modulus of the selector. Mention OpenCL.
3143 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
3144
3145 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
3146 * genopinit.c (optabs): Rename vshuffle to vec_perm.
3147 * c-typeck.c (c_build_vec_perm_expr): Rename from
3148 c_build_vec_shuffle_expr. Update for name changes.
3149 * optabs.c (expand_vec_perm_expr_p): Rename from
3150 expand_vec_shuffle_expr_p.
3151 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
3152 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
3153 (vec_perm_optab): Rename from vshuffle_optab.
3154 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
3155 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
3156 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
3157
3158 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
3159 ix86_expand_vshuffle.
3160 * config/i386/i386-protos.h: Update.
3161 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
3162 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
3163
3164 2011-10-07 Richard Henderson <rth@redhat.com>
3165
3166 * config/i386/predicates.md (avx2_pblendw_operand): New.
3167 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
3168 (avx2_pblendw, *avx2_pblendw): New expander and insn.
3169
3170 2011-10-07 Richard Henderson <rth@redhat.com>
3171
3172 * config/i386/i386.c (bdesc_args): Update code for
3173 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
3174 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
3175 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
3176 * config/i386/sse.md (mode iterator V16): Add V2TI.
3177 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
3178 (mode attr ssse3_avx2): Add V2TI.
3179 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
3180
3181 2011-10-07 David S. Miller <davem@davemloft.net>
3182
3183 PR 50655
3184 * configure.ac: Add .register directives to VIS3 test.
3185 * configure: Regenerate.
3186
3187 2011-10-07 Richard Henderson <rth@redhat.com>
3188
3189 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
3190
3191 2011-10-07 Richard Henderson <rth@redhat.com>
3192
3193 PR 49752
3194 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
3195
3196 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
3197
3198 * config/arm/predicates.md (shift_amount_operand): Remove constant
3199 range check.
3200 (shift_operator): Check range of constants for all shift operators.
3201
3202 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3203
3204 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
3205 Load GOT pointer for non-pic builds.
3206 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
3207 (s390_emit_call): Likewise.
3208
3209 2011-10-07 Tom de Vries <tom@codesourcery.com>
3210
3211 PR middle-end/50527
3212 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
3213 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
3214 throw.
3215 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
3216 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
3217 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3218 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3219 * tree-ssa-ccp.c (evaluate_stmt): Set align for
3220 BUILT_IN_ALLOCA_WITH_ALIGN.
3221 (fold_builtin_alloca_for_var): Rename to ...
3222 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
3223 BUILT_IN_ALLOCA_WITH_ALIGN argument.
3224 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
3225 fold_builtin_alloca_with_align.
3226 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3227 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
3228 DEF_BUILTIN_STUB.
3229 * ipa-pure-const.c (special_builtin_state): Handle
3230 BUILT_IN_ALLOCA_WITH_ALIGN.
3231 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
3232 (call_may_clobber_ref_p_1): Same.
3233 * function.c (gimplify_parameters): Lower vla to
3234 BUILT_IN_ALLOCA_WITH_ALIGN.
3235 * gimplify.c (gimplify_vla_decl): Same.
3236 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3237 * tree-mudflap.c (mf_xform_statements): Same.
3238 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3239 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
3240 * varasm.c (incorporeal_function_p): Same.
3241 * tree-object-size.c (alloc_object_size): Same.
3242 * gimple.c (gimple_build_call_from_tree): Same.
3243
3244 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
3245
3246 * function.c (frame_required_for_rtx): Remove function.
3247 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
3248 changed. Compute a set of mentioned registers and compare against
3249 the new arg rather than calling frame_required_for_rtx.
3250 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
3251 reg set. Convert the unconverted_simple_returns mechanism to store
3252 jump insns rather than their basic blocks. Also check the
3253 orig_entry_edge destination for new blocks.
3254
3255 2011-10-07 Jakub Jelinek <jakub@redhat.com>
3256
3257 PR tree-optimization/50650
3258 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
3259 call vect_is_simple_cond here, instead fail if cond_expr isn't
3260 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
3261 for cond_expr's first operand.
3262 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
3263 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
3264
3265 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3266
3267 * config/s390/s390.md (DWH, dwh): New mode macros.
3268 ("umulsidi3"): Extend to support "umulditi3" as well.
3269
3270 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
3271 H.J. Lu <hongjiu.lu@intel.com>
3272
3273 PR target/50603
3274 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
3275 integer PLUS RTX to a register to improve address combine.
3276
3277 2011-10-06 Richard Henderson <rth@redhat.com>
3278
3279 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
3280 parameter; use it to decide whether to merge two notes.
3281 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
3282 for the deallocation case as well.
3283
3284 2011-10-06 Anatoly Sokolov <aesok@post.ru>
3285
3286 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
3287 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
3288 * doc/tm.texi: Regenerate.
3289 * target.def (output_addr_const_extra): Use
3290 hook_bool_FILEptr_rtx_false.
3291 * targhooks.c (default_asm_output_addr_const_extra): Remove.
3292 * targhooks.h (default_asm_output_addr_const_extra): Remove.
3293 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
3294 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
3295
3296 2011-10-06 David S. Miller <davem@davemloft.net>
3297
3298 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
3299 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
3300 SI mode 64-bit code gen case explicitly zero-extend and truncate.
3301 (*popcount<mode>_sp64): Split up into...
3302 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
3303 SImode case use truncate.
3304 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
3305 subtract so the compiler can optimize it.
3306 (SIDI): Remove unused mode iterator.
3307
3308 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3309
3310 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
3311 on the orig_entry_edge. Don't account for it in prologue_clobbered.
3312
3313 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3314
3315 PR tree-optimization/50596
3316 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
3317 (NUM_PATTERNS): Change to 6.
3318 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
3319 function.
3320 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
3321 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
3322 if it already has one, and don't set STMT_VINFO_VECTYPE in it
3323 if it is already set.
3324 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
3325 COND_EXPR in pattern stmts.
3326 (vect_is_simple_cond): No longer static.
3327
3328 2001-10-06 Richard Henderson <rth@redhat.com>
3329
3330 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
3331 * config/i386/sse.md (sseshuffint): Remove.
3332 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
3333 (VSHUFFLE_AVX2): New mode iterator.
3334 (vshuffle<mode>): Use it.
3335 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
3336
3337 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
3338 for vector_all_ones_operand.
3339 (ix86_expand_int_vcond): Distinguish between comparison mode
3340 and data mode. Allow them to differ.
3341 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
3342
3343 2001-10-06 Richard Henderson <rth@redhat.com>
3344
3345 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
3346 mask operand. Tidy the code.
3347
3348 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3349
3350 * tree-vect-patterns.c (vect_pattern_recog_1): Use
3351 vect_recog_func_ptr typedef for the first argument.
3352 (vect_pattern_recog): Rename vect_recog_func_ptr variable
3353 to vect_recog_func, use vect_recog_func_ptr typedef for it.
3354
3355 PR tree-optimization/49279
3356 * tree-ssa-structalias.c (find_func_aliases): Don't handle
3357 CAST_RESTRICT.
3358 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
3359 restrict propagation.
3360 * tree-ssa.c (useless_type_conversion_p): Don't return false
3361 if TYPE_RESTRICT differs.
3362
3363 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3364
3365 * function.c (thread_prologue_and_epilogue_insns): Build a vector
3366 of unconverted simple return blocks rather than trying to
3367 recompute them later based on bb_flags bitmap tests.
3368
3369 2011-10-06 Michael Matz <matz@suse.de>
3370
3371 * tree-flow.h (get_var_ann): Don't declare.
3372 * tree-flow-inline.h (get_var_ann): Remove.
3373 (set_is_used): Use var_ann, not get_var_ann.
3374 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
3375 * tree-profile.c (gimple_gen_edge_profiler): Call
3376 find_referenced_var_in.
3377 (gimple_gen_interval_profiler): Ditto.
3378 (gimple_gen_pow2_profiler): Ditto.
3379 (gimple_gen_one_value_profiler): Ditto.
3380 (gimple_gen_average_profiler): Ditto.
3381 (gimple_gen_ior_profiler): Ditto.
3382 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
3383 (gimple_gen_ic_func_profiler): Call add_referenced_var.
3384 * tree-mudflap.c (execute_mudflap_function_ops): Call
3385 add_referenced_var.
3386
3387 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3388
3389 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
3390 don't set SSA_NAME_DEF_STMT that has been already set by
3391 gimple_build_assign_with_ops.
3392 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
3393 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
3394 Likewise.
3395
3396 * tree.h (avoid_folding_inline_builtin): New prototype.
3397 * builtins.c (avoid_folding_inline_builtin): No longer static.
3398 * gimple-fold.c (gimple_fold_builtin): Give up if
3399 avoid_folding_inline_builtin returns true.
3400
3401 2011-10-06 Richard Guenther <rguenther@suse.de>
3402
3403 * tree-vect-generic.c (vector_element): Look at previous
3404 generated results.
3405
3406 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
3407
3408 PR target/39950
3409 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
3410 __powerpc__, __PPC__, __unix__.
3411
3412 2011-10-06 Michael Matz <matz@suse.de>
3413
3414 * i386/i386.opt (recip_mask, recip_mask_explicit,
3415 x_recip_mask_explicit): New variables and cl_target member.
3416 (mrecip=): New option.
3417 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
3418 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
3419 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
3420 TARGET_RECIP_VEC_SQRT): New tests.
3421 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
3422 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
3423 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
3424 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
3425 * i386/i386.c (ix86_option_override_internal): Set recip_mask
3426 for -mrecip and -mrecip=options.
3427 (ix86_function_specific_save): Save recip_mask_explicit.
3428 (ix86_function_specific_restore): Restore recip_mask_explicit.
3429
3430 * doc/invoke.texi (ix86 Options): Document the new option.
3431
3432 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3433
3434 PR target/49049
3435 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
3436
3437 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
3438
3439 PR target/50305
3440 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
3441 output of a previous pass through legitimize_reload_address.
3442 Do not attempt to optimize addresses if the base register is
3443 equivalent to a constant.
3444
3445 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3446
3447 * function.c (thread_prologue_and_epilogue_insns): Mark
3448 last_bb_active as possibly unused. It is unused for targets which
3449 do neither have "return" nor "simple_return" expanders.
3450
3451 2011-10-06 Richard Guenther <rguenther@suse.de>
3452
3453 * fold-const.c (fold_ternary_loc): Also fold non-constant
3454 vector CONSTRUCTORs. Make more efficient.
3455 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
3456 (cprop_into_stmt): Don't propagate into virtual operands.
3457 (optimize_stmt): Really dump original statement.
3458
3459 2011-10-06 Nick Clifton <nickc@redhat.com>
3460
3461 * config/rx/rx.md (smin3): Revert previous delta.
3462
3463 2011-10-06 Richard Guenther <rguenther@suse.de>
3464
3465 PR tree-optimization/38884
3466 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
3467 reads from aggregate SSA names.
3468
3469 2011-10-05 Jakub Jelinek <jakub@redhat.com>
3470
3471 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
3472 argument, truncate it at the beginning instead of allocating there
3473 and freeing at the end.
3474 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
3475 pass its address to vect_pattern_recog_1.
3476
3477 2011-10-05 David S. Miller <davem@davemloft.net>
3478
3479 * config/sparc/sparc.opt (POPC): New option.
3480 * doc/invoke.texi: Document it.
3481 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
3482 default on Niagara-2 and later.
3483 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3484 * config/sparc/sparc.md (SIDI): New mode iterator.
3485 (ffsdi2): Delete commented out pattern and comments.
3486 (popcount<mode>2, clz<mode>2): New expanders.
3487 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
3488 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
3489
3490 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3491
3492 PR middle-end/50607
3493 * c-tree.h (c_expr_t): New typedef for struct c_expr.
3494 (C_EXPR_APPEND): New macro.
3495 * c-parser.c (c_parser_get_builtin_args): Preserve
3496 original_tree_code of c_expr structure.
3497 (c_parser_postfix_expression): Adjust to the new function.
3498
3499 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3500
3501 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
3502 if profiling after the prologue.
3503
3504 2011-10-05 Jakub Jelinek <jakub@redhat.com>
3505
3506 PR tree-optimization/50613
3507 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
3508 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
3509 and if it is neither that not SSA_NAME, give up.
3510
3511 2011-10-05 Richard Henderson <rth@redhat.com>
3512
3513 * tree-vect-generic.c (vector_element): Never fail. Use
3514 build_zero_cst. Tidy up type references.
3515 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
3516 code duplication. Do update_stmt here ...
3517 (expand_vector_operations_1): ... not here.
3518
3519 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
3520 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
3521 duplication. Handle V2DI without SSE4.1.
3522 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
3523 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
3524
3525 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
3526
3527 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
3528 of "found". Simplify return value calculation.
3529 (distance_agu_use): Ditto.
3530
3531 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3532
3533 PR bootstrap/50621
3534 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
3535 if the function was not shrink-wrapped.
3536 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
3537 to an insn.
3538 * function.c (thread_prologue_and_epilogue_insns): Make sure the
3539 shrink_wrapped flag is set even if there is no dump file.
3540
3541 2011-10-05 DJ Delorie <dj@redhat.com>
3542 Nick Clifton <nickc@redhat.com>
3543
3544 * config/rx/rx.opt (mpid): Define.
3545 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
3546 (MULTILIB_DIRNAMES): Add pid.
3547 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
3548 (rx_num_interrupt_regs): New variable.
3549 (rx_gp_base_regnum): New function. Returns the number of the
3550 small data area register.
3551 (rx_pid_base_regnum): New function. Returns the number of the pid
3552 base register.
3553 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
3554 (rx_pid_data_operand): New function. Returns whether an object is
3555 in the position independent data area.
3556 (rx_legitimize_address): New function. Puts undecided PID
3557 objects in the PID data area.
3558 (rx_is_legitimate_address): Add support for PID operands.
3559 (rx_print_operand_address): Likewise.
3560 (rx_print_operand): Likewise.
3561 (rx_maybe_pidify_operand): New function. Determine if an operand
3562 is suitable for PID addressing.
3563 (rx_gen_move_template): Add PID support.
3564 (rx_conditional_register_usage): Likewise.
3565 (rx_option_override): Initialise rx_num_interrupt_regs.
3566 (rx_is_legitimate_constant): Add support for PID constants.
3567 (TARGET_LEGITIMIZE_ADDRESS): Define.
3568 * config/rx/constraints.md (Rpid): Define.
3569 (Rpda): Define.
3570 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
3571 (tablejump): Add PID support.
3572 (mov<>): Likewise.
3573 (mov<>_internal): Likewise.
3574 (addsi3): Convert to an expander. Add PID support.
3575 (pid_addr): New pattern.
3576 * config/rx/rx.h (CPP_SPEC): Define.
3577 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
3578 (CASE_VECTOR_PC_RELATIVE): Define.
3579 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
3580 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
3581 * doc/invoke.texi (RX Options): Document -mpid command line option.
3582
3583 2011-10-05 Richard Guenther <rguenther@suse.de>
3584
3585 PR tree-optimization/38885
3586 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
3587 from constants.
3588
3589 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3590
3591 * doc/invoke.texi (-fshrink-wrap): Document.
3592 * opts.c (default_options_table): Add it.
3593 * common.opt (fshrink-wrap): Add.
3594 * function.c (emit_return_into_block): Remove useless declaration.
3595 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
3596 requires_stack_frame_p, gen_return_pattern): New static functions.
3597 (emit_return_into_block): New arg simple_p. All callers changed.
3598 Use gen_return_pattern.
3599 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
3600 * config/i386/i386.md (return): Expand into a simple_return.
3601 (simple_return): New expander):
3602 (simple_return_internal, simple_return_internal_long,
3603 simple_return_pop_internal_long, simple_return_indirect_internal):
3604 Renamed from return_internal, return_internal_long,
3605 return_pop_internal_long and return_indirect_internal; changed to use
3606 simple_return.
3607 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
3608 simple returns.
3609 (ix86_pad_returns): Likewise.
3610 * function.h (struct rtl_data): Add member shrink_wrapped.
3611 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
3612 are not jumps or sibcalls can't be compared.
3613
3614 2011-10-05 Richard Guenther <rguenther@suse.de>
3615
3616 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
3617 vector type.
3618 (simplify_unary_expression): Handle BIT_FIELD_REFs.
3619 (try_to_simplify): Handle BIT_FIELD_REFs.
3620
3621 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
3622
3623 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
3624 * config/avr/avr.c (avr_out_addto_sp): New function.
3625 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
3626 * config/avr/avr.md (adjust_len): Add "addto_sp".
3627 (*movhi_sp): Remove insn.
3628 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
3629
3630 2011-10-05 Richard Guenther <rguenther@suse.de>
3631
3632 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
3633 with an embedded expression valueize and fold that as well.
3634 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
3635 results from gimple_fold_stmt_to_constant_1.
3636
3637 2011-10-05 Nick Clifton <nickc@redhat.com>
3638
3639 * config/rx/rx.md (tablejump): Add missing label.
3640 (adddi3_internal): Mark operand 0 as early-clobbered.
3641 (smaxsi3): Revert previous delta.
3642 (adc_internal): Fix whitespace in generated asm.
3643 (adc_flags): Likewise.
3644
3645 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3646
3647 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
3648 with the new widening_optab_handler.
3649
3650 2011-10-05 Richard Guenther <rguenther@suse.de>
3651
3652 PR tree-optimization/50609
3653 * gimple-fold.c (fold_array_ctor_reference): Also handle
3654 vector typed constructors.
3655 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
3656 for vector typed constructors.
3657
3658 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
3659
3660 * config/i386/i386.c (ix86_emit_binop): New static function.
3661 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
3662 instructions.
3663 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
3664
3665 2011-10-04 David S. Miller <davem@davemloft.net>
3666
3667 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
3668 UNSPEC_XMUL): New unspecs.
3669 (muldi3_v8plus): Use output_v8plus_mult.
3670 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
3671 New VIS 3.0 combiner patterns.
3672 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
3673 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
3674 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
3675 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
3676 builtins patterns.
3677 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
3678 (output_v8plus_mult): New function.
3679 * config/sparc/sparc-protos.h: Declare it.
3680 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
3681 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
3682 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
3683 * doc/extend.texi: Document new builtins.
3684
3685 2011-10-04 Richard Henderson <rth@redhat.com>
3686
3687 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
3688 Avoid save_expr unless two_arguments.
3689
3690 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
3691
3692 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
3693 * config/i386/mingw32.h (CPP_SPEC): Likewise.
3694
3695 2011-10-04 David S. Miller <davem@davemloft.net>
3696
3697 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
3698 under Linux.
3699
3700 2011-10-04 Jakub Jelinek <jakub@redhat.com>
3701
3702 PR tree-optimization/50604
3703 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
3704 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
3705 last argument to memcpy has size_type_node type instead of ssizetype.
3706 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
3707 instead of TREE_TYPE (len) as type for newlen.
3708
3709 PR tree-optimization/50522
3710 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
3711 TYPE_RESTRICT.
3712 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
3713 unconditionally.
3714
3715 * fold-const.c (fold_unary_loc): Don't optimize
3716 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
3717 casting the inner pointer if it isn't TYPE_RESTRICT.
3718 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
3719 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
3720
3721 2011-10-04 Joseph Myers <joseph@codesourcery.com>
3722
3723 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
3724
3725 2011-10-04 Jan Hubicka <jh@suse.cz>
3726
3727 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
3728 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
3729 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
3730 * lto-cgraph.c (order_base): New static var.
3731 (lto_output_node): Stream in order.
3732 (lto_output_varpool_node): Stream out order.
3733 (input_node): Stream in order.
3734 (input_varpool_node): Stream out order.
3735 (input_cgraph_1): Initialize order base; update call of
3736 lto_input_toplevel_asms.
3737
3738 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
3739
3740 PR target/50566
3741 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
3742 prototype.
3743 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
3744 from here...
3745 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
3746 function. Log if avr_log.legitimize_reload_address.
3747
3748 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
3749
3750 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
3751
3752 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3753
3754 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
3755 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
3756
3757 2011-10-03 David S. Miller <davem@davemloft.net>
3758
3759 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
3760 GSR_REG an input operand to UNSPEC instead of a parallel USE.
3761 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
3762 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
3763 Reference GSR_REG in DI mode, simplify convoluted expressions by using
3764 zero_extract.
3765 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
3766
3767 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
3768
3769 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
3770
3771 2011-10-03 Jakub Jelinek <jakub@redhat.com>
3772 Ian Lance Taylor <iant@google.com>
3773
3774 * godump.c (go_output_typedef): Support printing enum values that
3775 don't fit in a signed HOST_WIDE_INT.
3776
3777 2011-10-03 Anatoly Sokolov <aesok@post.ru>
3778
3779 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
3780 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3781 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3782 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
3783
3784 2011-10-03 Anatoly Sokolov <aesok@post.ru>
3785
3786 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
3787 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3788 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3789 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
3790
3791 2011-10-03 Steve Ellcey <sje@cup.hp.com>
3792
3793 PR target/49967
3794 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
3795 (gcc_cv_ld_static_option): Ditto.
3796 (gcc_cv_ld_dynamic_option): Ditto.
3797 * configure: Regenerate.
3798
3799 2011-10-03 David S. Miller <davem@davemloft.net>
3800
3801 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
3802 and 'si' patterns which describe the GSR changes explicitly in the
3803 RTL using zero_extract.
3804 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
3805
3806 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
3807 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
3808
3809 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3810
3811 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
3812 if given expression can be expanded by the target.
3813 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
3814 using target vector instructions.
3815 * optabs.h: New optab vshuffle.
3816 (expand_vec_shuffle_expr_p): New prototype.
3817 (expand_vec_shuffle_expr): New prototype.
3818 (vshuffle_optab): New optab.
3819 * genopinit.c: Adjust to support vecshuffle.
3820 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
3821 * expr.c (expand_expr_real_2): Adjust.
3822 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
3823 recognizing the cases of two and three arguments.
3824 (convert_arguments) (build_binary_op)
3825 (scalar_to_vector) (build_array_ref): Spurious whitespace.
3826 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
3827 * tree.def: New tree code VEC_SHUFFLE_EXPR.
3828 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
3829 * tree-vect-generic.c (vector_element): New function. Returns an
3830 element of the vector at the given position.
3831 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
3832 by the backend or expand an expression piecewise.
3833 (expand_vector_operations_1): Adjusted.
3834 (gate_expand_vector_operations_noop): New gate function.
3835 * Makefile.in (tree-vect-generic.o): New include.
3836 * gimple.c (get_gimple_rhs_num_ops): Adjust.
3837 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
3838 * passes.c: Move veclower down.
3839 * tree-pretty-print.c (dump_generic_node): Recognize
3840 VEC_SHUFFLE_EXPR as valid expression.
3841 * c-parser.c (c_parser_get_builtin_args): Helper function for the
3842 builtins with variable number of arguments.
3843 (c_parser_postfix_expression): Use a new helper function for
3844 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
3845 * tree-ssa-operands: Adjust.
3846 * c-family/c-common.c: New __builtin_shuffle keyword.
3847 * c-family/c-common.h: New __builtin_shuffle keyword.
3848 * gcc/doc/extend.texi: Adjust.
3849
3850 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
3851 between the vector and the type of the mask when shuffling.
3852 (vecshuffle<mode>): New expansion.
3853 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
3854 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
3855 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
3856
3857 2011-10-03 Jakub Jelinek <jakub@redhat.com>
3858
3859 PR tree-optimization/50587
3860 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
3861 arg0 is not a SSA_NAME.
3862
3863 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
3864
3865 * ipa-inline-analysis.c (MAX_TIME): Update comment.
3866
3867 2011-10-02 Richard Henderson <rth@redhat.com>
3868 David S. Miller <davem@davemloft.net>
3869
3870 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
3871 conditional insn type setting, we always emit a shift.
3872 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
3873 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
3874 * config/sparc/predicates.md (const_one_operand): Delete.
3875
3876 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
3877
3878 * invoke.texi (SPARC Options): Refer to GNU/Linux.
3879
3880 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
3881
3882 * config/mips/mips.c (mips_frame_barrier): New function.
3883 (mips_expand_prologue): Call it after allocating stack space.
3884 (mips_deallocate_stack): New function.
3885 (mips_expand_epilogue): Call mips_frame_barrier and
3886 mips_deallocate_stack.
3887
3888 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
3889
3890 PR target/49696
3891 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
3892 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
3893 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
3894
3895 2011-10-02 Jan Hubicka <jh@suse.cz>
3896
3897 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
3898
3899 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
3900 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
3901 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
3902 functions are reachable when address is taken.
3903 * tree-sra.c (modify_function): Free dominance info.
3904
3905 2011-10-02 Jan Hubicka <jh@suse.cz>
3906
3907 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
3908
3909 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
3910 (reset_inline_summary): New function.
3911 (compute_inline_parameters, inline_node_removal_hook,
3912 inline_edge_removal_hook): Use it.
3913 (inline_free_summary): Reset holders correctly.
3914 (inline_generate_summary): Free summary before computing it.
3915
3916 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
3917
3918 PR preprocessor/36819
3919 * incpath.c (merge_include_chains): Call free_path on
3920 heads[QUOTE] and tails[QUOTE].
3921
3922 2011-10-02 Jan Hubicka <jh@suse.cz>
3923
3924 PR lto/47247
3925 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
3926 when resolution is already availbale from plugin.
3927 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
3928 * cgraph.c (ld_plugin_symbol_resolution): Add
3929 prevailing_def_ironly_exp.
3930 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
3931 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
3932 externally visible.
3933 * varasm.c (resolution_to_local_definition_p): Add
3934 LDPR_PREVAILING_DEF_IRONLY_EXP.
3935 (resolution_local_p): Likewise.
3936
3937 2011-10-01 David S. Miller <davem@davemloft.net>
3938
3939 * config/sparc/sparc.opt (VIS3): New option.
3940 * doc/invoke.texi: Document it.
3941 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
3942 not capable of such instructions.
3943 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
3944 to 0x300 when TARGET_VIS3.
3945 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
3946 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
3947 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
3948 (V64N8, VASS): New mode iterators.
3949 (vis3_shift, vis3_addsub_ss): New code iterators.
3950 (vbits, vconstr): New mode attributes.
3951 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
3952 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
3953 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
3954 fmean16_vis, fpadd64_vis, fpsub64_vis,
3955 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
3956 VIS 3.0 instruction patterns.
3957 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
3958 default when targetting capable cpus. TARGET_VIS3 implies
3959 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
3960 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
3961 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
3962 is ignored.
3963 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
3964 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
3965 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
3966 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
3967 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
3968 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
3969 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
3970 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
3971 * doc/extend.texi: Document new VIS 3.0 builtins.
3972
3973 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
3974
3975 * ira-color.c (assign_hard_reg): Fix typo.
3976
3977 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
3978
3979 * doc/extend.texi: Add missing ','.
3980
3981 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
3982
3983 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
3984 Enable -fmodulo-sched at -O2 and above.
3985 * config/c6x/c6x.md (doloop_end): New expander.
3986 (mvilc, sploop, spkernel, loop_end): New patterns.
3987 (loop_end with memory destination splitter): New.
3988 * config/c6x/c6x.c: Include "hw-doloop.h".
3989 (enum unitreqs): New.
3990 (unit_req_table): New typedef.
3991 (unit_reqs): New static variable.
3992 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
3993 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
3994 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
3995 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
3996 (struct c6x_sched_context): New member last_scheduled_iter0.
3997 (init_sched_state): Initialize it.
3998 (c6x_variable_issue): Update it.
3999 (sploop_max_uid_iter0): New static variable.
4000 (c6x_sched_reorder_1): Be careful about issuing sploop.
4001 (c6x_reorg): Call c6x_hwlooops before the final schedule.
4002
4003 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
4004
4005 PR target/50566
4006 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
4007 * config/avr/avr.c (avr_address_cost): Use it.
4008 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
4009 (avr_log_vadump): Unknown %-codes finish printing.
4010
4011 2011-09-30 Jakub Jelinek <jakub@redhat.com>
4012
4013 PR inline-asm/50571
4014 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
4015 input constraints allow mem and not reg, pass true instead of
4016 false as second argument to maybe_fold_reference.
4017
4018 PR tree-optimization/46309
4019 * fold-const.c (make_range, merge_ranges): Remove prototypes.
4020 (make_range_step): New function.
4021 (make_range): Use it.
4022 * tree.h (make_range_step): New prototypes.
4023 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
4024 * tree-ssa-reassoc.c: Include diagnostic-core.h.
4025 (struct range_entry): New type.
4026 (init_range_entry, range_entry_cmp, update_range_test,
4027 optimize_range_tests): New functions.
4028 (reassociate_bb): Call optimize_range_tests.
4029
4030 2011-09-30 Jakub Jelinek <jakub@redhat.com>
4031 Richard Guenther <rguenther@suse.de>
4032
4033 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
4034 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
4035 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
4036 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
4037 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
4038 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
4039
4040 2011-09-30 Jan Beulich <jbeulich@suse.com>
4041
4042 * lto-cgraph.c (output_cgraph): Remove processing of
4043 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
4044 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
4045 lto_input_toplevel_asms() instead.
4046 * lto-section-in.c (lto_section_name): Add "asm" entry.
4047 * lto-streamer-in.c (lto_input_toplevel_asms): New.
4048 * lto-streamer-out.c (lto_output_toplevel_asms): New.
4049 * lto-streamer.h (LTO_minor_version): Bump.
4050 (enum lto_section_type): Add LTO_section_asm.
4051 (struct lto_asm_header): New.
4052 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
4053 * tree-streamer.h (streamer_write_string_cst): Declare.
4054 * tree-streamer-out.c (write_string_cst): Rename to
4055 streamer_write_string_cst and make global. Handle incoming string
4056 being NULL.
4057 (streamer_write_tree_header): Adjust call to renamed function.
4058
4059 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
4060
4061 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
4062 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
4063 modulo_last_stage): New static variables.
4064 (set_modulo_params, discard_delay_pairs_above): New functions.
4065 (struct delay_pair): New member stages.
4066 (htab_i2_traverse, htab_i1_traverse): New static functions.
4067 (record_delay_slot_pair): New arg stages. All callers changed.
4068 Record it.
4069 (pair_delay): Take stages into account.
4070 (add_delay_dependencies): Don't do so for stage pairs.
4071 (struct sched_block_state): New member modulo_epilogue.
4072 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
4073 (unschedule_insns_until): Decrease modulo_insns_scheduled.
4074 Set HARD_DEP without using or.
4075 (resolve_dependencies): New static function.
4076 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
4077 If it is true, allow only insns with INSN_EXACT_TICK set.
4078 (schedule_block): Return bool, always true for normal scheduling,
4079 true or false depending on modulo scheduling success otherwise.
4080 Add bookkeeping for modulo scheduling, and call resolve_dependencies
4081 on everything left over after a modulo schedule.
4082 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
4083 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
4084 declarations.
4085 (set_modulo_params, discard_delay_pairs_above): Declare.
4086 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
4087 * doc/invoke.texi (--param): Document it.
4088
4089 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
4090 New arg modulo_scheduling. All callers changed. Move note handling
4091 code here from schedule_ebbs.
4092 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
4093 out of schedule_ebbs.
4094 (schedule_ebbs): Call them. Remove note handling code moved to
4095 schedule_ebb.
4096 * sched-int.h (schedule_ebb, schedule_ebbs_init,
4097 schedule_ebbs_finish): Declare.
4098
4099 2011-09-30 Richard Guenther <rguenther@suse.de>
4100
4101 PR middle-end/50574
4102 * tree-cfg.c (verify_gimple_comparison): Compare component
4103 mode sizes for vector comparisons.
4104
4105 2011-09-30 Revital Eres <revital.eres@linaro.org>
4106
4107 * ddg.c (autoinc_var_is_used_p): New function.
4108 (create_ddg_dep_from_intra_loop_link,
4109 add_cross_iteration_register_deps): Call it.
4110 * ddg.h (autoinc_var_is_used_p): Declare.
4111 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
4112 (sms_schedule): Handle instructions with REG_INC.
4113
4114 2011-09-30 Revital Eres <revital.eres@linaro.org>
4115
4116 * modulo-sched.c (generate_reg_moves): Skip instructions that
4117 do not set a register and verify no regmoves are created for
4118 !single_set instructions.
4119
4120 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
4121
4122 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
4123 insns.
4124
4125 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4126
4127 PR target/50099
4128 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
4129 (qhs_zextenddi_op): New.
4130 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
4131 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
4132 Distinguish between ARM and Thumb2 states.
4133
4134 2011-09-30 David S. Miller <davem@davemloft.net>
4135
4136 * config/sparc/sparc.opt (VIS2): New option.
4137 * doc/invoke.texi: Document it.
4138 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
4139 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
4140 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
4141 (define_attr type): New insn type 'edgen'.
4142 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
4143 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
4144 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
4145 patterns.
4146 * niagara.md: Handle edgen.
4147 * niagara2.md: Likewise.
4148 * ultra1_2.md: Likewise.
4149 * ultra3.md: Likewise.
4150 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
4151 to 0x200 when TARGET_VIS2.
4152 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
4153 default when targetting capable cpus. TARGET_VIS2 implies
4154 TARGET_VIS, clear and it when TARGET_FPU is disabled.
4155 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
4156 (sparc_expand_builtin): Fix predicate indexing when builtin returns
4157 void.
4158 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
4159 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
4160 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
4161 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
4162 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
4163 * doc/extend.texi: Document new VIS 2.0 builtins.
4164
4165 2011-09-29 Nick Clifton <nickc@redhat.com>
4166 Bernd Schmidt <bernds@codesourcery.com>
4167
4168 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
4169 * config/frv/frvend.c: Likewise.
4170 * config/frv/frv.c (frv_function_prologue): Move misplaced
4171 CALL_ARG_LOCATION notes back to their proper locations.
4172
4173 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
4174
4175 PR target/50566
4176 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
4177 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
4178 from avr_rtx_costs.
4179 (avr_legitimate_address_p): Use avr_edump to print log information
4180 filtered by avr_log.
4181 (extra_constraint_Q): Ditto.
4182 (avr_legitimize_address): Ditto.
4183 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
4184 (final_prescan_insn): Use avr_log.rtx_costs as filter.
4185
4186 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
4187
4188 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
4189 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
4190 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
4191 NEON vector and structure modes to be tied.
4192
4193 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4194
4195 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
4196 forward declaration.
4197 (remove_duplicate_close_phi): Detect and repair creation of
4198 duplicate close-phis for a containing loop.
4199
4200 2011-09-27 Andi Kleen <ak@linux.intel.com>
4201
4202 * gcc.c (get_local_tick). Rename to get_random_number. Read from
4203 /dev/urandom. Add getpid call.
4204 (compare_debug_dump_opt_spec_function): Drop getpid call.
4205
4206 2011-09-26 Andi Kleen <ak@linux.intel.com>
4207
4208 * toplev.c (init_local_tick): Try reading random seed
4209 from /dev/urandom.
4210
4211 2011-09-26 Andi Kleen <ak@linux.intel.com>
4212
4213 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
4214 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
4215 Handle numerical random seed.
4216 * lto-streamer.h (lto_file_decl_data): Change id to
4217 unsigned HOST_WIDE_INT.
4218 * toplev.c (random_seed): Add.
4219 (init_random_seed): Change for numerical random seed.
4220 (get_random_seed): Return as HOST_WIDE_INT.
4221 (set_random_seed): Crc32 existing string.
4222 * toplev.h (get_random_seed): Change to numercal return.
4223 * tree.c (get_file_function_name): Remove CRC. Handle
4224 numerical random seed.
4225
4226 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
4227
4228 PR target/50566
4229 * config.gcc (extra_objs): Add avr-log.o for $target in:
4230 avr-*-rtems*, avr-*-*.
4231 * config/avr/t-avr (avr-log.o): New rule to compile...
4232 * config/avr/avr-log.c: ...this new file.
4233 * config/avr/avr.opt (mlog=): New option.
4234 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
4235 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
4236 (avr_log_set_avr_log): New prototype.
4237 (avr_log_t): New typedef.
4238 (avr_log): New declaration.
4239 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
4240
4241 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
4242
4243 * expr.c (do_store_flag): Expand vector comparison by
4244 building an appropriate VEC_COND_EXPR.
4245 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
4246 (c_objc_common_truthvalue_conversion): Adjust.
4247 * tree-vect-generic.c (do_compare): Helper function.
4248 (expand_vector_comparison): Check if hardware supports
4249 vector comparison of the given type or expand vector piecewise.
4250 (expand_vector_operation): Treat comparison as binary
4251 operation of vector type.
4252 (expand_vector_operations_1): Adjust.
4253
4254 2011-09-29 Richard Guenther <rguenther@suse.de>
4255
4256 * tree.c (build_opaque_vector_type): Make opaque vectors
4257 variant types of the corresponding non-opaque type. Make
4258 sure to share opaque vector types properly.
4259
4260 2011-09-29 David S. Miller <davem@davemloft.net>
4261
4262 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
4263 UNSPEC_ARRAY32): New unspec.
4264 (define_attr type): New type 'array'.
4265 (array{8,16,32}<P:mode>_vis): New patterns.
4266 * config/sparc/ultra1_2.md: Add reservations for 'array'.
4267 * config/sparc/ultra3.md: Likewise.
4268 * config/sparc/niagara.md: Likewise.
4269 * config/sparc/niagara2.md: Likewise.
4270 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
4271 array builtins.
4272 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
4273 __vis_array32): New.
4274 * doc/extend.texi: Document new VIS builtins.
4275
4276 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
4277 (VIS pixel-compare insn): Just use <gcond:name>.
4278
4279 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
4280 code iterator used, so just use <code>. There are two mode iterators
4281 so explicitly use <GCM:gcm_name>.
4282
4283 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
4284
4285 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
4286 Darwin >= 9.
4287
4288 2011-09-28 David S. Miller <davem@davemloft.net>
4289
4290 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
4291 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
4292 (UNSPEC_FCMP): New unspec.
4293 (gcond): New code iterator.
4294 (gcond_name): New code attr.
4295 (GCM): New mode iterator.
4296 (gcm_name): New mode attr.
4297 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
4298
4299 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
4300
4301 PR target/49486
4302 * config/sh/sh.md (negdi2): Move expansion into split to
4303 allow more combination options. Add T_REG clobber.
4304 (abssi2): New expander.
4305 (*negdi2, *abssi2, *negabssi2): New insns.
4306 (cneg): Change from insn to insn_and_split. Rename to
4307 negsi_cond. Add alternative for non-SH4.
4308
4309 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
4310
4311 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
4312 (neon_move_hi_quad_<mode>): Likewise.
4313 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
4314
4315 2011-09-28 Nick Clifton <nickc@redhat.com>
4316
4317 * config/rx/predicates.md (rx_minmax_operand): New predicate.
4318 Accepts immediates and a restricted subset of MEMs.
4319 * config/rx/rx.md (int_modes): New iterator.
4320 (smaxsi3, sminsi3): Delete and replace with...
4321 (smax<int_mode>3, smin<int_mode>3): New patterns.
4322 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
4323
4324 2011-09-28 Richard Guenther <rguenther@suse.de>
4325
4326 PR middle-end/50460
4327 * fold-const.c (try_move_mult_to_index): Handle &a.array the
4328 same as &a.array[0].
4329
4330 2011-09-28 Kai Tietz <ktietz@redhat.com>
4331
4332 * configure.ac: Add test for new section attribute
4333 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
4334 * config.in: Regenerated.
4335 * configure: Regenerated.
4336 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
4337 new section flag "e" for excluded sections, if supported.
4338 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
4339
4340 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
4341
4342 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
4343 throughout file.
4344
4345 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
4346
4347 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
4348 throughout file.
4349
4350 2011-09-27 Sriraman Tallam <tmsriram@google.com>
4351
4352 * output.h (SECTION_EXCLUDE): New macro.
4353 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
4354
4355 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
4356
4357 * fwprop.c (forward_propagate_and_simplify): After checking
4358 reg/subreg combinations, check whether the modes are the same.
4359
4360 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
4361 Richard Sandiford <rdsandiford@googlemail.com>
4362
4363 * config/mips/mips.c (mips_add_cfa_restore): New function.
4364 (mips16e_save_restore_reg): Use it.
4365 (mips_restore_reg): Likewise. Split double FPRs for
4366 REG_CFA_RESTORE notes.
4367
4368 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
4369
4370 PR middle-end/50386
4371 PR middle-end/50326
4372 * tree-sra.c (build_ref_for_model): Use the type of the field as
4373 the type of the COMPONENT_REF.
4374
4375 2011-09-27 Jeff Law <law@redhat.com>
4376
4377 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
4378 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
4379 (find_if_case_1): Use the probability of the THEN clause when
4380 determining if speculation is profitable.
4381 (find_if_case_2): Similarly for the ELSE clause.
4382
4383 2011-09-27 Jakub Jelinek <jakub@redhat.com>
4384
4385 * common.opt: Add -foptimize-strlen option.
4386 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
4387 (tree-sssa-strlen.o): Add dependencies.
4388 * opts.c (default_options_table): Enable -foptimize-strlen
4389 by default at -O2 if not -Os.
4390 * passes.c (init_optimization_passes): Add pass_strlen
4391 after pass_object_sizes.
4392 * timevar.def (TV_TREE_STRLEN): New timevar.
4393 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
4394 * tree-pass.h (pass_strlen): Declare.
4395 * tree-ssa-strlen.c: New file.
4396 * c-decl.c (merge_decls): If compatible stpcpy prototype
4397 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
4398
4399 2011-09-27 Tom de Vries <tom@codesourcery.com>
4400
4401 PR middle-end/43864
4402 * tree-ssa-tail-merge.c: New file.
4403 (struct same_succ_def): Define.
4404 (same_succ, const_same_succ): New typedef.
4405 (struct bb_cluster_def): Define.
4406 (bb_cluster, const_bb_cluster): New typedef.
4407 (struct aux_bb_info): Define.
4408 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
4409 (gvn_uses_equal): New function.
4410 (same_succ_print, same_succ_print_traverse, update_dep_bb)
4411 (stmt_update_dep_bb, local_def, same_succ_hash)
4412 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
4413 (same_succ_reset): New function.
4414 (same_succ_htab, same_succ_edge_flags)
4415 (deleted_bbs, deleted_bb_preds): New var.
4416 (debug_same_succ): New function.
4417 (worklist): New var.
4418 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
4419 (init_worklist, delete_worklist, delete_basic_block_same_succ)
4420 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
4421 (print_cluster, debug_cluster, update_rep_bb)
4422 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
4423 (all_clusters): New var.
4424 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
4425 (merge_clusters, set_cluster): New function.
4426 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
4427 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
4428 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
4429 (find_clusters_1, find_clusters): New function.
4430 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
4431 (update_bbs): New var.
4432 (apply_clusters): New function.
4433 (update_debug_stmt, update_debug_stmts): New function.
4434 (tail_merge_optimize): New function.
4435 tree-pass.h (tail_merge_optimize): Declare.
4436 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
4437 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
4438 (tree-ssa-tail-merge.o): New rule.
4439 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
4440 default at OPT_LEVELS_2_PLUS.
4441 * tree-ssa-sccvn.c (vn_valueize): Move to ...
4442 * tree-ssa-sccvn.h (vn_valueize): Here.
4443 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
4444 * common.opt (ftree-tail-merge): New switch.
4445 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
4446 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
4447 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
4448 (-ftree-tail-merge, max-tail-merge-comparisons)
4449 (max-tail-merge-iterations): New item.
4450
4451 2011-09-27 Jan Hubicka <jh@suse.cz>
4452
4453 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
4454
4455 2011-09-27 Jan Hubicka <jh@suse.cz>
4456
4457 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
4458 parameters passed by reference; handle loads from non-SSA scalars
4459 and update comments.
4460
4461 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
4462
4463 PR rtl-optimization/50249
4464 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
4465 instead of opnum and type. All callers changed. Remove useless
4466 declaration.
4467 Search forward for other reloads of the same type for the same operand
4468 using the same register; if any are found, return false.
4469 (reload_regs_reach_end_p): Same argument changes; all callers changed.
4470
4471 2011-09-27 Andi Kleen <ak@linux.intel.com>
4472 Jan Hubicka <jh@suse.cz>
4473
4474 * doc/invoke.texi (ffat-lto-objects): Document.
4475 * toplev.c (compile_file): Do not output assembly when doing slim lto;
4476 Output __gnu_slim_lto when doing slim lto.
4477 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
4478 (cgraph_optimize): Return early when doing slim lto.
4479 * opts.c (finish_options): Complain about lack of linker plugin
4480 when doing slim lto.
4481 * common.opt (ffat-lto-objects): New.
4482
4483 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
4484
4485 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
4486 between signed and unsigned.
4487
4488 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
4489
4490 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
4491 vectorization.
4492 (vectorizable_type_promotion): Likewise.
4493 (vect_analyze_stmt): Call vectorizable_type_demotion and
4494 vectorizable_type_promotion for basic blocks.
4495 (supportable_widening_operation): Don't assume loop vectorization.
4496 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
4497 basic blocks. Update vectorization factor for basic block
4498 vectorization.
4499 (vect_analyze_slp_instance): Allow multiple types for basic block
4500 vectorization. Recheck unrolling factor after construction of SLP
4501 instance.
4502
4503 2011-09-27 Richard Guenther <rguenther@suse.de>
4504
4505 * tree-object-size.c (compute_object_sizes): Fix dumping of
4506 folded statement.
4507
4508 2011-09-27 Richard Guenther <rguenther@suse.de>
4509
4510 PR tree-optimization/50363
4511 * tree-ssa-pre.c (create_expression_by_pieces): Handle
4512 pointer conversions in POINTER_PLUS_EXPRs properly.
4513
4514 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
4515
4516 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
4517 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
4518 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
4519 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
4520 that produce subreg moves. Define using VQX iterators.
4521
4522 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
4523
4524 * config/avr/avr.md (ashrqi3): Split alternative "n"
4525 into its remaining parts C03, C04, C05, C06, C07 and describe
4526 impact in CC by attribute "cc" appropriately.
4527 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
4528 by digging RTX.
4529
4530 2011-09-27 Jakub Jelinek <jakub@redhat.com>
4531
4532 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
4533 from 3 x MAX_MACHINE_MODE.
4534 (CONSTM1_RTX): Define.
4535 * emit-rtl.c (const_tiny_rtx): Change into array of
4536 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
4537 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
4538 CONSTM1_RTX.
4539 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
4540 MODE_VECTOR_INT modes.
4541 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
4542 Optimize if one operand is CONSTM1_RTX.
4543 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
4544 into mask | x.
4545
4546 2011-09-26 David S. Miller <davem@davemloft.net>
4547
4548 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
4549 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
4550 * config/sparc/visintrin.h: Update edge and pixel-compare
4551 intrinsics to return 'long' instead of 'int'.
4552 * doc/extend.texi: Update documentation to match.
4553 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
4554 flat, allow any instruction. Otherwise, when V9 allow parallels
4555 which consist only of sets to registers outside of %o0 to %o5.
4556 (sparc_vis_init_builtins): Update VIS builtin types for edge
4557 and pixel-compare.
4558
4559 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
4560 is enabled, mark %gsr as global.
4561 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
4562 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
4563
4564 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
4565 which will now define __VIS and __VIS__ when -mvis is enabled.
4566 * config/sparc/t-sparc: Likewise.
4567 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
4568 and add t-sparc to tmake_file for all sparc targets.
4569 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
4570 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
4571
4572 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
4573 builtins for VIS vector addition and subtraction.
4574 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
4575 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
4576 __vis_fpsub32, __vis_fpsub32s): New.
4577 * doc/extend.texi: Document new VIS intrinsics.
4578
4579 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4580
4581 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
4582 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
4583 EQ/NE comparisons against +/-1 in the case of unused-after,
4584 non-ld-regs target.
4585
4586 2011-09-26 Jakub Jelinek <jakub@redhat.com>
4587
4588 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
4589 gctx.into_ssa after push_gimplify_context.
4590
4591 * gimple.c (gimple_build_call_valist): New function.
4592 * gimple.h (gimple_build_call_valist): New prototype.
4593 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
4594 (update_gimple_call): Likewise.
4595 (update_call_from_tree): Use finish_update_gimple_call.
4596 * tree-ssa-propagate.h (update_gimple_call): New prototype.
4597
4598 2011-09-26 Richard Guenther <rguenther@suse.de>
4599
4600 PR tree-optimization/50472
4601 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
4602 volatile references.
4603
4604 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
4605
4606 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
4607 * target.def: (addr_space_subset_p): Likewise.
4608
4609 2011-09-26 Tom de Vries <tom@codesourcery.com>
4610
4611 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
4612 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
4613 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
4614 of new var.
4615
4616 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4617
4618 PR target/50465
4619 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
4620 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
4621 output_reload_insisf.
4622 (adjust_len): Set default to "no".
4623 Remove alternative "yes". Add alternatives: "mov8", "mov16",
4624 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
4625 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
4626 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
4627 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
4628 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
4629 *lshrsi3_const): Set attribute "adjust_len".
4630 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
4631 (output_movsisf): Don't pass insn to output_reload_insisf.
4632 (adjust_insn_length): Handle new alternatives to adjust_len.
4633 Remove handling of ADJUST_LEN_YES. Clean-up code.
4634
4635 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
4636
4637 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
4638 may_trap_p to detect loads that may trap of fault.
4639
4640 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4641
4642 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
4643 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
4644 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
4645 prototype.
4646 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
4647 * config/avr/avr.c: Rename output_reload_insisf_1 to
4648 output_reload_in_const.
4649 (avr_popcount_each_byte): Handle SFmode, too.
4650 (output_reload_in_const): Change so it can handle HI loads, too.
4651 Use avr_popcount_each_byte to work out if scratch register must be
4652 created on the fly.
4653 (output_reload_inhi): Rewrite using output_reload_in_const and...
4654 (output_movhi): ...use it to print constants' loads.
4655 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
4656
4657 2011-09-25 David S. Miller <davem@davemloft.net>
4658
4659 * config/sparc/constraints.md (C, P, Z): New constraints for
4660 const_doube, const_int, and const_vector "all ones" values.
4661 Make unused constraint letters comment match reality.
4662 * config/sparc/predicates.md (const_all_ones_operand,
4663 register_or_zero_or_all_ones_operand): New predicates.
4664 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
4665 as well as zero constants when VIS.
4666 (sparc_legitimate_constant_p): Likewise.
4667 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
4668 (movsf_insn): Likewise
4669 (movdi_insn_sp64): Add fone alternative.
4670 (movdf_insn_sp32_v9): Likewise.
4671 (movdf_insn_sp64): Likewise.
4672
4673 * configure.ac: Add feature check to make sure the assembler
4674 supports the FMAF, HPC, and VIS 3.0 instructions found on
4675 Niagara-3 and later cpus.
4676 * configure: Rebuild.
4677 * config.in: Likewise.
4678 * config/sparc/sparc.opt: New option '-mfmaf'.
4679 * config/sparc/sparc.md: Add float fused multiply-add patterns.
4680 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
4681 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
4682 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
4683 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
4684 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
4685 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
4686 disabled.
4687 (sparc_rtx_costs): Handle 'FMA'.
4688 * doc/invoke.texi: Document -mfmaf.
4689
4690 2011-09-25 Jakub Jelinek <jakub@redhat.com>
4691
4692 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
4693 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
4694 DECL_BY_REFERENCE parameters.
4695
4696 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
4697
4698 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
4699 if there is no outgoing edge.
4700
4701 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
4702 integral types.
4703
4704 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
4705
4706 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
4707 of vect_analyze_bb here.
4708 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
4709
4710 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
4711
4712 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
4713 Allow not simple iv if analyzing basic block.
4714 (create_data_ref): Update call to dr_analyze_innermost.
4715 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
4716 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4717 * tree-predcom.c (find_looparound_phi): Likewise.
4718 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
4719
4720 2011-09-24 David S. Miller <davem@davemloft.net>
4721
4722 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
4723 (SPARC_GSR_REG): Define.
4724 (FIXED_REGISTERS): Mark GSR as fixed.
4725 (CALL_USED_REGISTERS): Mark GSR as call used.
4726 (HARD_REGNO_NREGS): GSR is always 1 register.
4727 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
4728 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
4729 (REGISTER_NAMES): Add "%gsr".
4730 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
4731 (UNSPEC_WRGSR): New unspec.
4732 (GSR_REG): New constant.
4733 (type): Add new insn type 'gsr'.
4734 (fpack16_vis, fpackfix_vis, fpack32_vis,
4735 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
4736 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
4737 rdgsr_v8plus): New expanders and insns.
4738 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
4739 using patterns which show that this is a plus in addition to a
4740 modification of GSR_REG, instead of an unspec.
4741 * config/sparc/ultra1_2.md: Handle 'gsr'.
4742 * config/sparc/ultra3.md: Likewise.
4743 * config/sparc/niagara.md: Likewise.
4744 * config/sparc/niagara2.md: Likewise.
4745 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
4746 end of table.
4747 (sparc_option_override): Make -mvis imply -mv8plus.
4748 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
4749 for %gsr.
4750 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
4751 __builtin_vis_read_gsr.
4752 (sparc_expand_buildin): Handle builtins that take one argument and
4753 return void.
4754 (sparc_fold_builtin): Never fold writes to %gsr.
4755 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
4756 * doc/extend.texi: Document new VIS intrinsics.
4757
4758 2011-09-23 Jan Hubicka <jh@suse.cz>
4759
4760 * ipa-inline-transform.c (inline_call): Add comment.
4761 * ipa-inline.h (inline_param_summary): New structure and vector.
4762 (struct inline_edge_summary): Add param field.
4763 * ipa-inline-analysis.c (CHANGED): New constant.
4764 (add_clause): Handle CHANGED and NOT_CONSTANT.
4765 (predicate_probability): New function.
4766 (dump_condition): Dump CHANGED predicate.
4767 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
4768 of unknown function wide invariant.
4769 (evaluate_conditions_for_edge): Handle change probabilities.
4770 (inline_edge_duplication_hook): Copy param summaries.
4771 (inline_edge_removal_hook): Free param summaries.
4772 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
4773 sizes; dump param summaries.
4774 (will_be_nonconstant_predicate): Use CHANGED predicate.
4775 (record_modified_bb_info): New structure.
4776 (record_modified): New function.
4777 (param_change_prob): New function.
4778 (estimate_function_body_sizes): Compute param summaries.
4779 (estimate_edge_size_and_time): Add probability argument.
4780 (estimate_node_size_and_time): Add inline_param_summary argument;
4781 handle predicate probabilities.
4782 (remap_predicate): Fix formating.
4783 (remap_edge_change_prob): New function.
4784 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
4785 (remap_edge_predicates): ... this one.
4786 (inline_merge_summary): Remap edge summaries; handle predicate
4787 probabilities; remove param summaries after we are done.
4788 (do_estimate_edge_time): Update.
4789 (do_estimate_edge_growth): Update.
4790 (read_inline_edge_summary): Read param info.
4791 (inline_read_summary): Fix formating.
4792 (write_inline_edge_summary): Write param summaries.
4793
4794 2011-09-23 Jakub Jelinek <jakub@redhat.com>
4795
4796 * config/i386/i386.c (ix86_print_operand): Handle %~.
4797 (ix86_print_operand_punct_valid_p): Return true also for '~'.
4798 * config/i386/sse.md (i128): New mode_attr.
4799 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
4800 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
4801 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
4802 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
4803 patterns, use "<sseinsnmode>" for "mode" attribute.
4804 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
4805 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
4806 %~128 in the patterns, use "OI" for "mode" attribute.
4807
4808 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4809
4810 PR target/50447
4811 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
4812 "tstsi", "compare".
4813 (*cmpqi_sign_extend): Use s8_operand.
4814 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
4815 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
4816 prototypes.
4817 (out_tsthi, out_tstsi): Remove prototypes.
4818 (avr_out_tsthi, avr_out_tstsi): New prototypes.
4819 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
4820 (avr_asm_len): Negative length now sets *plen to -length.
4821 (compare_sign_p): Return bool instead of int.
4822 (compare_diff_p, compare_eq_p): Ditto and make static.
4823 (avr_out_tsthi): New function.
4824 (avr_out_tstsi): New function.
4825 (avr_out_compare): New function.
4826 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
4827 ADJUST_LEN_COMPARE.
4828
4829 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4830
4831 PR target/50447
4832 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
4833 (addsi3): Rewrite using QI scratch register. Adjust text
4834 peepholes using plus:SI.
4835 (*addsi3_zero_extend.hi): New insn.
4836 (*subsi3_zero_extend.hi): New insn.
4837 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
4838 (*subsi3_zero_extend): Ditto.
4839 (subsi3): Change predicate #2 to register_operand.
4840 * config/avr/avr-protos.h (avr_out_plus): New prototype.
4841 (avr_out_plus_1): New static function.
4842 (avr_out_plus): New function.
4843 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
4844
4845 2011-09-23 Jakub Jelinek <jakub@redhat.com>
4846
4847 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
4848 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
4849
4850 2011-09-23 Ian Lance Taylor <iant@google.com>
4851
4852 * godump.c (go_define): Treat a single character in single quotes,
4853 or a string, as an operand.
4854
4855 2011-09-23 Martin Jambor <mjambor@suse.cz>
4856
4857 * ipa-prop.h (jump_func_type): Updated comments.
4858 (ipa_known_type_data): New type.
4859 (ipa_jump_func): Use it to describe known type jump functions.
4860 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
4861 reflect the new known type jump function contents.
4862 (compute_known_type_jump_func): Likewise.
4863 (combine_known_type_and_ancestor_jfs): Likewise.
4864 (try_make_edge_direct_virtual_call): Likewise.
4865 (ipa_write_jump_function): Likewise.
4866 (ipa_read_jump_function): Likewise.
4867 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
4868 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
4869 (propagate_accross_jump_function): Likewise.
4870
4871 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4872
4873 PR target/50446
4874 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
4875 (rotlqi3_4): Turn insn into expander.
4876 (*rotlqi3): New insn.
4877 (rotlhi3, rotlsi3): Support rotate left/right by 1.
4878 (*rotlhi2.1, *rotlhi2.15): New insns.
4879 (*rotlsi2.1, *rotlsi2.31): New insns.
4880 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
4881
4882 2011-09-23 Bin Cheng <bin.cheng@arm.com>
4883
4884 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
4885
4886 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4887
4888 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
4889
4890 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4891
4892 * reload.c (find_reloads): Set operand_mode to Pmode for address
4893 operands consisting of just a CONST_INT.
4894
4895 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
4896
4897 PR target/50482
4898 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
4899 blendv, force op_true to register if it doesn't satisfy
4900 nonimmediate_operand predicate.
4901
4902 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
4903
4904 PR middle-end/50113
4905 PR middle-end/50061
4906 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
4907 get the locate.where_pad value for register-only arguments.
4908 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
4909 (arm_pad_reg_upward): Handle null types.
4910
4911 2011-09-22 Jan Hubicka <jh@suse.cz>
4912
4913 * ipa-inline-analysis.c: Fix overly long lines.
4914
4915 2011-09-22 Jan Hubicka <jh@suse.cz>
4916
4917 * ipa-inline-transform.c (inline_call): Always update jump functions
4918 after inlining.
4919 * ipa-inline.c (ipa_inline): Likewise; do not call
4920 ipa_create_all_structures_for_iinln.
4921 (ipa_inline): Always free jump functions.
4922 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
4923 (remap_edge_predicates): Fix pasto.
4924 (inline_merge_summary): Remove nlined edge predicate; remove hack.
4925 (inline_analyze_function): Always initialize jump functions.
4926 (inline_generate_summary): Likewise.
4927 (inline_write_summary): Always write jump functions when ipa-cp
4928 is not doing that.
4929 (inline_read_summary): Always read jump functions when ipa-cp
4930 is not doing that.
4931 * ipa-prop.c (iinlining_processed_edges): Remove.
4932 (update_indirect_edges_after_inlining): Do not use
4933 iinlining_processed_edges; instead set param_index to -1.
4934 (propagate_info_to_inlined_callees): Only try to indirect inlining
4935 when asked to do so; update jump functions of indirect calls, too;
4936 remove jump functions of the inlined edge.
4937 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
4938 (ipa_create_all_structures_for_iinln): Remove.
4939 (ipa_free_all_structures_after_iinln): Do not free
4940 iinlining_processed_edges.
4941 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
4942
4943 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4944
4945 * config/arm/predicates.md (expandable_comparison_operator): New
4946 predicate, extracted from...
4947 (arm_comparison_operator): ...here.
4948 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
4949 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
4950 (movdfcc): Use expandable_comparison_operator.
4951
4952 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
4953
4954 PR target/50447
4955 PR target/50465
4956 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
4957 (avr_popcount_each_byte): New prototype.
4958 * config/avr/avr.c (avr_popcount): New static function.
4959 (avr_popcount_each_byte): New function.
4960 (avr_out_bitop): New function.
4961 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
4962 avr_out_bitop. Cleanup code.
4963 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
4964 (Ca4, Co4, Cx4): New constraints.
4965 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
4966 alternative.
4967 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
4968 (andsi3, iorsi3, xorsi3): Ditto.
4969 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
4970
4971 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
4972
4973 PR tree-optimization/50451
4974 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
4975 constant operands in reduction.
4976 (vect_get_slp_defs): Don't create vector operand for NULL scalar
4977 operand.
4978
4979 2011-09-22 David S. Miller <davem@davemloft.net>
4980
4981 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
4982 fpack16, fpack32, fpackfix as const.
4983
4984 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
4985 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
4986 constants. Use them everywhere.
4987
4988 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
4989
4990 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
4991 Added AND special case. Adapted comments.
4992 (sh_rtx_costs): Added XOR and IOR case.
4993
4994 2011-09-21 Jan Hubicka <jh@suse.cz>
4995
4996 * ipa-inline-analsis.c (compute_inline_parameters): Set
4997 cfun and current_function_decl.
4998
4999 2011-09-21 Jan Hubicka <jh@suse.cz>
5000
5001 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
5002 handled components in parameter of builtin_constant_p.
5003 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
5004
5005 2011-09-21 Jan Hubicka <jh@suse.cz>
5006
5007 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
5008 * ipa-inline.h (estimate_edge_time): Fix pasto.
5009 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
5010
5011 2011-09-21 Jakub Jelinek <jakub@redhat.com>
5012
5013 * config/i386/i386.c (ix86_expand_sse_movcc): Use
5014 blendvps, blendvpd and pblendvb if possible.
5015
5016 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
5017
5018 PR target/50464
5019 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
5020 operand 1 predicate to register_operand and operand 2 predicate
5021 to nonimmediate_operand.
5022 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
5023 xop_pcmov, force op_true to register. Also, force op_false to
5024 register if it doesn't satisfy nonimmediate_operand predicate.
5025
5026 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
5027
5028 * config/i386/bmi2intrin.h (_mulx_u64): New.
5029 (_mulx_u32): Ditto.
5030
5031 2011-09-21 Jan Hubicka <jh@suse.cz>
5032
5033 PR tree-optimization/50433
5034 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
5035 Use get_base_address.
5036
5037 2011-09-21 Jakub Jelinek <jakub@redhat.com>
5038
5039 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
5040 nonimmediate_operand instead of register_operand predicate for operands
5041 1 and 2, force them into registers if expanding them as comparison.
5042 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
5043 V8HImode force into register just operand 1.
5044
5045 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
5046
5047 PR target/45099
5048 * config/avr/avr.c (avr_function_arg_advance): Change error to
5049 warning if a fixed register is needed as function argument.
5050
5051 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
5052
5053 PR target/50449
5054 PR target/50465
5055 * config/avr/avr.md (adjust_len): New insn attribute.
5056 (*reload_insi, *reload_insf): Use it.
5057 (*movsi, *movsf): Use new interface of output_movsisf.
5058 * config/avr/avr-protos.h (output_movsisf): Change prototype.
5059 * config/avr/avr.c (output_movsisf): Ditto.
5060 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
5061 lengths of insns *reload_insi, *reload_insf.
5062 (output_reload_insisf_1): New static function.
5063 (output_reload_insisf): Use it.
5064
5065 2011-09-21 David S. Miller <davem@davemloft.net>
5066
5067 * config/sparc/sparc.c (def_builtin): Change from macro into function.
5068 (def_builtin_const): New.
5069 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
5070 other than alignaddr and falignaddr.
5071
5072 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
5073 UNSPEC_FCMPEQ): New unspec codes.
5074 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
5075 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
5076 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
5077 new pixel compare VIS patterns.
5078 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
5079 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
5080 __vis_fcmpeq16, __vis_fcmpeq32): New.
5081 * doc/extend.texi: Document new pixel compare VIS intrinsics.
5082
5083 2011-09-21 Tom de Vries <tom@codesourcery.com>
5084
5085 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
5086
5087 2011-09-20 David S. Miller <davem@davemloft.net>
5088
5089 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
5090 (aligneddrl<P:mode>_vis): New pattern.
5091 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
5092 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
5093 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
5094 alignaddrl insn, and adjust edge operations for updated types.
5095 * config/sparc/visintrin.h: Likewise.
5096 * doc/extend.texi: Make typing in VIS documentation match reality.
5097
5098 2011-09-20 Terry Guo <terry.guo@arm.com>
5099
5100 * config/arm/arm-arches.def: Add armv6s-m.
5101 * config/arm/arm-tables.opt: Regenerate.
5102
5103 2011-09-20 Wei Guozhi <carrot@google.com>
5104
5105 PR rtl-optimization/49452
5106 * postreload.c (reload_combine): Invalidate use information when across
5107 volatile insn.
5108
5109 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
5110
5111 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
5112 Remove maintenance overhead.
5113 (haifa_sched_init, sched_finish): Update.
5114
5115 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
5116
5117 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
5118 to calculate unit, prefix_rep and prefix_data16 attributes.
5119 (*mov<mode>_internal): Ditto for unit attribute.
5120 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
5121 (*movv2sf_internal): Ditto.
5122 * config/i386/sse.md (VI1248_256): Remove mode iterator.
5123 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
5124 (*avx2_eq<mode>3): Ditto.
5125 (avx2_gt<mode>3): Ditto.
5126
5127 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
5128
5129 * config/i386/i386.md (maxmin): New code iterator.
5130 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
5131 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
5132 code iterator.
5133 (*avx2_<maxmin:code><mode>3): Macroize isn from
5134 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
5135 maxmin code iterator.
5136 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
5137 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
5138 <umaxmin:code>v16qi3.
5139
5140 2011-09-19 Alan Modra <amodra@gmail.com>
5141 Michael Meissner <meissner@linux.vnet.ibm.com>
5142
5143 PR target/50341
5144 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
5145 split the load of the indirect function's TOC from the call to
5146 prevent the compiler from moving the load of the new TOC above
5147 code that references the current function's TOC.
5148 (call_indirect_aix<ptrsize>_internal): Ditto.
5149 (call_indirect_aix<ptrsize>_nor11): Ditto.
5150 (call_indirect_aix<ptrsize>_internal2): Ditto.
5151 (call_value_indirect_aix<ptrsize>): Ditto.
5152 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5153 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5154 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5155
5156 2011-09-19 Jakub Jelinek <jakub@redhat.com>
5157
5158 * config/i386/sse.md (*sse4_1_extractps): Change into
5159 define_insn_and_split, add =x 0 n and =x x n alternatives
5160 and split them after reload.
5161
5162 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
5163
5164 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
5165
5166 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
5167
5168 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
5169
5170 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
5171
5172 PR tree-optimization/50413
5173 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
5174 a basic block if one of its data-refs can't be analyzed.
5175
5176 2011-09-19 Paul Brook <paul@codesourcery.com>
5177
5178 * config/arm/predicates.md (shift_amount_operand): Check constant
5179 shift count is in range.
5180 (const_shift_operand): Remove.
5181
5182 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
5183 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5184
5185 PR target/50091
5186 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
5187 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
5188
5189 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
5190
5191 * config/i386/bmiintrin.h: Remove tmp.
5192 * config/i386/tbmintrin.h: Likewise.
5193
5194 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
5195
5196 PR tree-optimization/50414
5197 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
5198 MIN_EXPR.
5199
5200 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
5201
5202 PR tree-optimization/50412
5203 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
5204 acceses that require epilogue loop if vectorizing outer loop.
5205
5206 2011-09-17 David S. Miller <davem@davemloft.net>
5207
5208 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
5209 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
5210 New unspecs.
5211 (define_attr type): New type 'edge'.
5212 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
5213 edge32l_vis): New patterns.
5214 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
5215 * config/sparc/ultra3.md: Likewise.
5216 * config/sparc/niagara.md: Likewise.
5217 * config/sparc/niagara2.md: Likewise.
5218 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
5219 builtins for VIS edge instructions.
5220 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
5221 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
5222 intrinsics.
5223 (__v8qi, __v4qi): Make unsigned.
5224 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
5225 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
5226 __vis_fpack32): Fix types.
5227 * doc/extend.texi: Document new 'edge' VIS intrinsics.
5228
5229 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
5230 divide costs.
5231 (niagara3_costs): New.
5232 (sparc_option_override): Use it.
5233 * gcc/config/sparc/niagara2.md: Adjust with more accurate
5234 Niagara-3 reservations.
5235
5236 2011-09-17 Jakub Jelinek <jakub@redhat.com>
5237
5238 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
5239 (sse2_avx, sseinsnmode): Add V2TI.
5240 (REDUC_SMINMAX_MODE): New mode iterator.
5241 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
5242 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
5243 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
5244 (sse2_lshrv1ti3): Rename to...
5245 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
5246 iterator. Move before umaxmin expanders.
5247 * config/i386/i386.h (VALID_AVX256_REG_MODE,
5248 SSE_REG_MODE_P): Accept V2TImode.
5249 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
5250 V16HImode, V8SImode and V4DImode.
5251
5252 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
5253 and V4DImode.
5254 (ix86_build_signbit_mask): Likewise.
5255 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
5256 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
5257 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
5258 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
5259 (<code><mode>3) ... this.
5260 (avx2_<code><mode>3 smaxmin expand): Rename to...
5261 (<code><mode>3) ... this.
5262 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
5263 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
5264 VI8_AVX2 mode iterator.
5265 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
5266 VI8_AVX2 mode iterator.
5267 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
5268 New expanders.
5269
5270 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
5271
5272 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
5273 throughout file.
5274
5275 2011-09-16 David S. Miller <davem@davemloft.net>
5276
5277 * config/sparc/visintrin.h: New file.
5278 * config.gcc: Add it to extra_headers on sparc.
5279
5280 2011-09-16 Jakub Jelinek <jakub@redhat.com>
5281
5282 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
5283 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
5284 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
5285 reduc_smin_v4sf): Adjust callers.
5286 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
5287 New expanders.
5288
5289 * config/i386/sse.md (vec_extract_hi_<mode>,
5290 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
5291 vextracti128 instead of vextractf128 for -mavx2 and
5292 integer vectors. For V4DFmode fix up mode attribute.
5293 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
5294 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
5295 instead of V8SF mode attribute.
5296 (avx2_extracti128): Change into define_expand.
5297 * config/i386/i386.c (ix86_expand_vector_extract): Handle
5298 32-byte vector modes if TARGET_AVX.
5299
5300 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
5301
5302 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
5303 (umulqi3_highpart, smulqi3_highpart): Ditto.
5304 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
5305 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
5306 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
5307
5308 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
5309
5310 PR target/50358
5311 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
5312 (*maddqi4, *maddqi4.const): New insns.
5313 (*msubqi4, *msubqi4.const): New insns.
5314 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
5315 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
5316 HImode by 1 in the case of multiplying with a CONST_INT.
5317 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
5318
5319 2011-09-15 Jan Hubicka <jh@suse.cz>
5320
5321 PR lto/50430
5322 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
5323 error_mark_node in the DECL_INITIAL of vtable.
5324
5325 2011-09-15 Diego Novillo <dnovillo@google.com>
5326
5327 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
5328 @SYSROOT_CFLAGS_FOR_TARGET@.
5329 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
5330 * configure: Regenerate.
5331 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
5332 Remove setting of GCC_UNDER_TEST.
5333
5334 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
5335
5336 * config/i386/i386.c (output_fp_compare): Return %v prefixed
5337 instruction mnemonics for TARGET_AVX.
5338
5339 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
5340 "type" attribute calculation.
5341 (*movdf_internal): Ditto.
5342 (*movsf_internal): Ditto.
5343
5344 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
5345
5346 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
5347
5348 2011-09-15 Jason Merrill <jason@redhat.com>
5349
5350 PR c++/50361
5351 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
5352
5353 2011-09-15 Jan Hubicka <jh@suse.cz>
5354
5355 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
5356 simplify obviously true clauses.
5357 (and_predicates, or_predicates): Add conditions parameter.
5358 (inline_duplication_hoook): Update.
5359 (mark_modified): New function.
5360 (unmodified_parm): New function.
5361 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
5362 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
5363 Use unmodified_parm.
5364 (estimate_function_body_sizes): Update.
5365 (remap_predicate): Update.
5366
5367 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
5368
5369 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
5370 read-after-read dependencies in basic block SLP.
5371
5372 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5373
5374 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
5375 throughout file.
5376
5377 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5378
5379 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
5380 throughout file.
5381
5382 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5383
5384 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
5385 throughout file.
5386
5387 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5388
5389 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
5390 throughout file.
5391 * config/rs6000/constraints.md: Likewise.
5392
5393 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5394
5395 * config/microblaze/microblaze.md: Use match_test rather than
5396 eq/ne symbol_ref throughout file.
5397
5398 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5399
5400 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
5401 throughout file.
5402
5403 2011-09-14 Tom de Vries <tom@codesourcery.com>
5404
5405 PR middle-end/50251
5406 * explow.c (emit_stack_restore): Set crtl->need_drap if
5407 stack_restore is emitted.
5408
5409 2011-09-14 Julian Brown <julian@codesourcery.com>
5410
5411 * config/arm/arm.c (arm_override_options): Add unaligned_access
5412 support.
5413 (arm_file_start): Emit attribute for unaligned access as appropriate.
5414 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
5415 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
5416 (insv, extzv): Add unaligned-access support.
5417 (extv): Change to expander. Likewise.
5418 (extzv_t1, extv_regsi): Add helpers.
5419 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
5420 (unaligned_storesi, unaligned_storehi): New.
5421 (*extv_reg): New (previous extv implementation).
5422 * config/arm/arm.opt (munaligned_access): Add option.
5423 * config/arm/constraints.md (Uw): New constraint.
5424 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
5425 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
5426 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
5427 volatile accesses when -fstrict-volatile-bitfields is in effect.
5428 (extract_bit_field_1): Likewise.
5429
5430 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5431
5432 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
5433 a scalar integer before applying integer-only optimisations to
5434 inner arithmetic.
5435
5436 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
5437
5438 * config/mips/mips.c (mips_expand_epilogue): Generate a
5439 simple_return only if the return address is in r31.
5440
5441 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
5442
5443 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
5444 NULL for a jump that is a cc0 insn, pick the previous insn for
5445 move_before.
5446
5447 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5448
5449 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
5450 throughout file.
5451
5452 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5453
5454 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
5455 throughout file.
5456
5457 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5458
5459 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
5460 symbol_ref throughout file.
5461
5462 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5463
5464 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
5465 throughout file.
5466
5467 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5468
5469 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
5470 throughout file.
5471
5472 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5473
5474 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
5475 throughout file.
5476 * config/arm/neon.md: Likewise.
5477 * config/arm/vfp.md: Likewise.
5478 * config/arm/thumb2.md: Likewise.
5479 * config/arm/cortex-m4.md: Likewise.
5480
5481 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
5482
5483 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
5484 define_insn patterns for combine.
5485
5486 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
5487
5488 * reorg.c: Always define make_return_insns.
5489
5490 2011-09-13 Jan Hubicka <jh@suse.cz>
5491
5492 PR other/49533
5493 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
5494
5495 2011-09-13 Jan Hubicka <jh@suse.cz>
5496
5497 PR other/49533
5498 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
5499
5500 2011-09-13 Paul Brook <paul@codesourcery.com>
5501
5502 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5503 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
5504 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
5505 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
5506 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
5507 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
5508 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
5509 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
5510 enabling unwind tables.
5511 (c6x_debug_unwind_info): New function.
5512 (TARGET_ARM_EABI_UNWINDER): Define.
5513 (TARGET_DEBUG_UNWIND_INFO): Define.
5514 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
5515 (TARGET_EXTRA_CFI_SECTION): Remove.
5516 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
5517 * ginclude/unwind-arm-common.h: New file.
5518
5519 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
5520
5521 PR target/50358
5522 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
5523 * config/avr/avr.md: (extend_s): New code attribute.
5524 (mul_r_d): New code attribute.
5525 (*maddqihi4, *umaddqihi4): New insns.
5526 (*msubqihi4, *umsubqihi4): New insns.
5527 (*usmaddqihi4, *sumaddqihi4): New insns.
5528 (*usmsubqihi4, *susubdqihi4): New insns.
5529 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
5530 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
5531 (*umsubqihi4.uconst.ashift): New insn-and-split.
5532 (*msubqihi4.sconst.ashift): New insn-and-split.
5533 (*sumaddqihi4.uconst): New insn-and-split.
5534 (*sumsubqihi4.uconst): New insn-and-split.
5535 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
5536 PLUS:HI and MINUS:HI.
5537
5538 2011-09-13 Revital Eres <revital.eres@linaro.org>
5539
5540 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
5541 (optimize_sc): Adjust call to remove_node_from_ps.
5542 (sms_schedule): Add print info.
5543
5544 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
5545
5546 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
5547 flags specially.
5548
5549 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5550
5551 PR bootstrap/50010
5552 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
5553 NOTE_INSN_CFI notes, with the exception of
5554 NOTE_INSN_SWITCH_TEXT_SECTIONS.
5555
5556 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
5557 Richard Sandiford <rdsandiford@googlemail.com>
5558
5559 * config/mips/mips.c (mips_epilogue): New structure.
5560 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
5561 restoring registers.
5562 (mips_epilogue_emit_cfa_restores): New function.
5563 (mips_epilogue_set_cfa): Likewise.
5564 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
5565 the current CFA register from the stack, redefine the CFA in terms
5566 of the stack pointer.
5567 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
5568 to the epilogue instructions.
5569
5570 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
5571
5572 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
5573 argument.
5574 (mips16e_build_save_restore): Update accordingly.
5575
5576 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5577
5578 PR rtl-optimization/50212
5579 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5580 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
5581
5582 PR debug/50299
5583 * calls.c (load_register_parameters): Use use_reg_mode instead
5584 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
5585 entry.
5586 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
5587 for stack CALL_INSN_FUNCTION_USAGE uses.
5588 * expr.h (use_reg_mode): New prototype.
5589 (use_reg): Changed into inline around use_reg_mode.
5590 * expr.c (use_reg): Renamed to...
5591 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
5592 mode to that mode instead of VOIDmode.
5593 * var-tracking.c (prepare_call_arguments): Don't track parameters
5594 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
5595 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
5596 EXPR_LIST mode.
5597
5598 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
5599
5600 PR target/43746
5601 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
5602 (progmem_section): New Variable.
5603 (avr_asm_init_sections): Initialize it.
5604 (TARGET_ASM_SELECT_SECTION): Define to...
5605 (avr_asm_select_section): ... this new Function.
5606 (avr_replace_prefix): New Function.
5607 (avr_asm_function_rodata_section): Use it.
5608 (avr_insert_attributes): Don't add section attribute for PROGMEM.
5609 (avr_section_type_flags): Use avr_progmem_p instead of section
5610 name to detect if object is in PROGMEM.
5611 (avr_asm_named_section): Set section name prefix for objects in
5612 PROGMEM.
5613
5614 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5615
5616 PR bootstrap/50352
5617 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
5618 sprintf format string.
5619
5620 2011-09-12 Richard Guenther <rguenther@suse.de>
5621
5622 PR tree-optimization/50343
5623 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
5624 that the reduction is over an SSA name before checking its definition.
5625
5626 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5627
5628 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
5629 throughout file.
5630
5631 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5632
5633 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
5634 throughout file.
5635 * config/mips/sb1.md: Likewise.
5636 * config/mips/predicates.md: Replace (match_test "!...")
5637 with (not (match_test "..."))
5638 * config/mips/constraints.md: Likewise.
5639
5640 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
5641
5642 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
5643 * config/arm/arm-tables.opt: Regenerate.
5644 * config/arm/arm-tune.md: Regenerate.
5645 * config/arm/arm.c (arm_file_start): Output .arch directive when
5646 user passes -mcpu=generic-*.
5647 (arm_issue_rate): Add genericv7a support.
5648 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
5649 (ASM_CPU_SPEC): New define.
5650 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
5651 * config/arm/semi.h (ASM_SPEC): Likewise.
5652 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
5653 and -mtune=generic-*.
5654
5655 2011-09-09 Richard Guenther <rguenther@suse.de>
5656
5657 PR tree-optimization/50328
5658 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
5659 constant or default-def operand.
5660
5661 2011-09-09 Richard Guenther <rguenther@suse.de>
5662
5663 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
5664 last statement.
5665
5666 2011-09-09 Richard Guenther <rguenther@suse.de>
5667
5668 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
5669 instead of a statement.
5670 * gimple-fold.c (fold_stmt_inplace): Likewise.
5671 * sese.c (graphite_copy_stmts_from_block): Adjust.
5672 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5673 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
5674 fold_stmt.
5675 (forward_propagate_addr_into_variable_array_index): Likewise.
5676 (forward_propagate_addr_expr_1): adjust.
5677 (associate_plusminus): Likewise.
5678 (ssa_forward_propagate_and_combine): Likewise.
5679 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
5680 (execute_cse_reciprocals): Likewise.
5681 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
5682
5683 2011-09-09 Nick Clifton <nickc@redhat.com>
5684
5685 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
5686 Return a positive value to indicate that the bits at the
5687 bottom of the register should be cleared.
5688
5689 2011-09-09 Richard Guenther <rguenther@suse.de>
5690
5691 * tree-ssa-operands.c (swap_tree_operands): Always adjust
5692 existing operand positions.
5693
5694 2011-09-09 Richard Guenther <rguenther@suse.de>
5695
5696 PR middle-end/50333
5697 * tree-data-ref.c (split_constant_offset): Do not try to handle
5698 ternary ops.
5699
5700 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
5701
5702 PR tree-optimization/50318
5703 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
5704 typo in use of mult_rhs1 and mult_rhs2.
5705
5706 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
5707
5708 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
5709 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
5710
5711 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
5712
5713 * config/arm/arm.md (push_multi): Emit predicates.
5714 (push_fp_multi): Likewise.
5715 * config/arm/arm.c (vfp_output_fstmd): Likewise.
5716
5717 2011-09-08 Dodji Seketeli <dodji@redhat.com>
5718
5719 PR c++/33255 - Support -Wunused-local-typedefs warning
5720 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
5721 (pushdecl): Use the new record_locally_defined_typedef.
5722 (store_parm_decls): Allocate cfun->language.
5723 (finish_function): Use the new maybe_warn_unused_local_typedefs,
5724 and free cfun->language.
5725 (c_push_function_context): Allocate cfun->language here only if needed.
5726 (c_pop_function_context): Likewise, mark cfun->language
5727 for collection only when it should be done.
5728 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
5729 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
5730 maybe_record_local_typedef_use.
5731 * doc/invoke.texi: Update documentation for
5732 -Wunused-local-typedefs.
5733
5734 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
5735
5736 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
5737 (ix86_avoid_lea_for_add): Likewise.
5738 (ix86_avoid_lea_for_addr): Likewise.
5739 (ix86_split_lea_for_addr): Likewise.
5740
5741 * config/i386/i386.c (LEA_MAX_STALL): New.
5742 (increase_distance): Likewise.
5743 (insn_defines_reg): Likewise.
5744 (insn_uses_reg_mem): Likewise.
5745 (distance_non_agu_define_in_bb): Likewise.
5746 (distance_agu_use_in_bb): Likewise.
5747 (ix86_lea_outperforms): Likewise.
5748 (ix86_ok_to_clobber_flags): Likewise.
5749 (ix86_avoid_lea_for_add): Likewise.
5750 (ix86_avoid_lea_for_addr): Likewise.
5751 (ix86_split_lea_for_addr): Likewise.
5752 (distance_non_agu_define): Search in pred BBs added.
5753 (distance_agu_use): Search in succ BBs added.
5754 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
5755 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
5756 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
5757
5758 * config/i386/i386.md: Split added to transform non destructive
5759 add into move and add.
5760 (lea_1): transformed into insn_and_split to avoid AGU stalls.
5761 (lea<mode>_2): Likewise.
5762
5763 2011-09-08 Martin Jambor <mjambor@suse.cz>
5764
5765 PR tree-optimization/50287
5766 * ipa-split.c (split_function): Do not create SSA names for
5767 non-gimple-registers.
5768
5769 2011-09-08 Richard Guenther <rguenther@suse.de>
5770
5771 PR tree-optimization/19831
5772 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
5773 skip builtins with vdefs that do not really store something.
5774 (propagate_necessity): For calls to free that we can associate
5775 with an allocation function do not mark the freed pointer
5776 definition necessary.
5777 (eliminate_unnecessary_stmts): Remove a call to free if
5778 the associated call to an allocation function is not necessary.
5779
5780 2011-09-08 Richard Guenther <rguenther@suse.de>
5781
5782 PR tree-optimization/19831
5783 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
5784 allocation functions as necessary.
5785
5786 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
5787
5788 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
5789 cut from ...
5790 (darwin_default_min_version): Amended to provide defaults
5791 for the cross directory case.
5792 (darwin_driver_init): call darwin_default_min_version unconditionally.
5793 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
5794 * config/darwin9.h: Likewise.
5795 * config/darwin10.h: Likewise.
5796 * config/rs6000/darwin7.h: Likewise.
5797
5798 2011-09-08 Jakub Jelinek <jakub@redhat.com>
5799
5800 PR target/50310
5801 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
5802 code early if TARGET_AVX.
5803 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
5804
5805 2011-09-07 Jakub Jelinek <jakub@redhat.com>
5806
5807 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
5808 duplicates.
5809
5810 PR target/50310
5811 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
5812 "mode" attribute computation.
5813
5814 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
5815
5816 * regrename.c (struct du_head): Make nregs signed.
5817 (closed_chains): Remove.
5818 (create_new_chain): Return the new chain.
5819 (chain_from_id): New static function.
5820 (dump_def_use_chain): Change argument to be an int, indicating
5821 the first ID to print. All callers changed.
5822 (merge_overlapping_regs): Use chain_from_id. Assert that
5823 chains don't conflict with themselves.
5824 (rename_chains): Take no argument. Iterate over id_to_chain
5825 rather to find chains to rename. Clear tick before the main loop.
5826 (struct incoming_reg_info): New struct.
5827 (struct bb_rename_info): New struct.
5828 (init_rename_info, set_incoming_from_chain, merge_chains): New
5829 static functions.
5830 (regrename_analyze): New static function, broken out of
5831 regrename_optimize. Record and make use of open chain information
5832 at basic block boundaries, and merge chains where possible.
5833 (scan_rtx_reg): Make this_nregs signed. Don't update
5834 closed_chains.
5835 (build_def_use): Return a bool to indicate success. All callers
5836 changed. Don't initialize global data here.
5837 (regrename_optimize): Move most code out of here into
5838 regrename_analyze.
5839 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
5840 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
5841 static inline functions.
5842 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
5843
5844 * bb-reorder.c (insert_section_boundary_note): Don't check
5845 optimize_function_for_speed_p.
5846 (gate_handle_partition_blocks): Do it here instead.
5847 (gate_handle_reorder_blocks): Move preliminary checks here ...
5848 (rest_of_handle_reorder_blocks): ... from here.
5849
5850 2011-09-07 Martin Jambor <mjambor@suse.cz>
5851
5852 PR middle-end/50301
5853 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
5854 function index bounds.
5855 (perhaps_add_new_callers): Likewise.
5856
5857 2011-09-07 Martin Jambor <mjambor@suse.cz>
5858
5859 PR tree-optimization/49911
5860 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
5861 enumerations to the corresponding plain integer type.
5862
5863 2011-09-07 Richard Guenther <rguenther@suse.de>
5864
5865 PR tree-optimization/50319
5866 * tree-if-conv.c (set_bb_predicate): Assert we only set
5867 canonical predicates.
5868 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
5869 around canonical predicates.
5870 (predicate_bbs): Do not re-gimplify already canonical
5871 predicates. Properly unshare them though.
5872 (find_phi_replacement_condition): Simplify.
5873
5874 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
5875
5876 PR target/49030
5877 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
5878 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
5879 reusing the old code from get_arm_condition_code. Return ARM_NV
5880 for invalid comparison codes.
5881 (get_arm_condition_code): Redefine in terms of
5882 maybe_get_arm_condition_code.
5883 * config/arm/predicates.md (arm_comparison_operator): Use
5884 maybe_get_arm_condition_code.
5885
5886 2011-09-07 Richard Guenther <rguenther@suse.de>
5887
5888 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
5889 Canonicalize negated predicates by swapping edges.
5890 (forward_propagate_into_cond): Likewise.
5891
5892 2011-09-07 Richard Guenther <rguenther@suse.de>
5893
5894 PR tree-optimization/50213
5895 * tree-flow.h (simple_iv_increment_p): Declare.
5896 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
5897 POINTER_PLUS_EXPR.
5898 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
5899 not propagate simple IV counter increments.
5900
5901 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
5902 Iain Sandoe <iains@gcc.gnu.org>
5903
5904 * config/rs6000/rs6000.c (compute_save_world_info): Test
5905 cfun->has_nonlocal_label to determine if the out-of-line save
5906 world call may be used.
5907
5908 2011-09-07 Nick Clifton <nickc@redhat.com>
5909
5910 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
5911 label on the parallel part of the insn.
5912
5913 2011-09-07 Jakub Jelinek <jakub@redhat.com>
5914
5915 PR debug/50191
5916 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
5917 avoid_constant_pool_reference first instead of last.
5918
5919 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5920
5921 * doc/configfiles.texi (Configuration Files): Update documentation
5922 about tm_p.h and remove FIXME comment.
5923
5924 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
5925
5926 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
5927 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
5928
5929 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
5930
5931 * config/darwin10.h Remove duplicate LIB_SPEC.
5932
5933 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
5934
5935 PR middle-end/44382
5936 * target.def (reassociation_width): New hook.
5937
5938 * doc/tm.texi.in (reassociation_width): Likewise.
5939
5940 * doc/tm.texi (reassociation_width): Likewise.
5941
5942 * doc/invoke.texi (tree-reassoc-width): New param documented.
5943
5944 * hooks.h (hook_int_uint_mode_1): New default hook.
5945
5946 * hooks.c (hook_int_uint_mode_1): Likewise.
5947
5948 * config/i386/i386.h (ix86_tune_indices): Add
5949 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5950
5951 (TARGET_REASSOC_INT_TO_PARALLEL): New.
5952 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
5953
5954 * config/i386/i386.c (initial_ix86_tune_features): Add
5955 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5956
5957 (ix86_reassociation_width): New function.
5958
5959 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
5960
5961 * tree-ssa-reassoc.c (get_required_cycles): New function.
5962 (get_reassociation_width): Likewise.
5963 (swap_ops_for_binary_stmt): Likewise.
5964 (rewrite_expr_tree_parallel): Likewise.
5965
5966 (rewrite_expr_tree): Refactored. Part of code moved into
5967 swap_ops_for_binary_stmt.
5968
5969 (reassociate_bb): Now checks reassociation width to be used and
5970 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
5971
5972 2011-09-06 Richard Guenther <rguenther@suse.de>
5973
5974 PR tree-optimization/47025
5975 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
5976 uses nothing.
5977 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
5978 BUILT_IN_FREE.
5979 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
5980 definitely points to.
5981 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5982 BUILT_IN_VA_START doesn't let its va_list argument escape.
5983 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
5984 not make any previous stores necessary.
5985
5986 2011-09-06 Martin Jambor <mjambor@suse.cz>
5987
5988 * ipa-inline.h (struct inline_summary): Move versionable flag...
5989 * cgraph.h (struct cgraph_local_info): ...here
5990 * ipa-cp.c (determine_versionability): Use the new versionable flag.
5991 (determine_versionability): Likewise.
5992 (ipcp_versionable_function_p): Likewise.
5993 (ipcp_generate_summary): Likewise.
5994 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
5995 versionable flag.
5996 (compute_inline_parameters): Do not clear the versionable flag.
5997 (inline_read_section): Do not stream the versionable flag.
5998 (inline_write_summary): Likewise.
5999 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
6000 (input_overwrite_node): Likewise.
6001
6002 2011-09-06 Richard Guenther <rguenther@suse.de>
6003
6004 PR tree-optimization/48149
6005 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
6006 (vn_valueize): Move earlier.
6007 (valueize_expr): Use vn_valueize.
6008 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
6009 operands.
6010 (simplify_unary_expression): Simplify.
6011
6012 2011-09-06 Richard Guenther <rguenther@suse.de>
6013
6014 PR tree-optimization/48317
6015 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
6016 trailing array.
6017 (sizeof_vn_nary_op): New inline function.
6018 (vn_nary_op_lookup_pieces): Adjust.
6019 (vn_nary_op_insert_pieces): Likewise.
6020 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
6021 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
6022 any number of operands.
6023 (vn_nary_length_from_stmt): New function.
6024 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
6025 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
6026 sized temporary.
6027 (vn_nary_op_lookup): Likewise.
6028 (vn_nary_op_lookup_stmt): Likewise.
6029 (vn_nary_op_insert_into): Likewise.
6030 (vn_nary_op_insert_stmt): Likewise.
6031 (visit_use): Handle CONSTRUCTOR as nary.
6032 * tree-ssa-pre.c (phi_translate_1): Adjust.
6033 (create_expression_by_pieces): Likewise.
6034 (compute_avail): Likewise.
6035
6036 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
6037
6038 * config/arm/arm.c (arm_preferred_simd_mode): Check
6039 TARGET_NEON_VECTORIZE_DOUBLE instead of
6040 TARGET_NEON_VECTORIZE_QUAD.
6041 (arm_autovectorize_vector_sizes): Likewise.
6042 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
6043 mask of mvectorize-with-neon-double. Add RejectNegative.
6044 (mvectorize-with-neon-double): New.
6045
6046 2011-09-06 Richard Guenther <rguenther@suse.de>
6047
6048 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
6049
6050 2011-09-06 Tom de Vries <tom@codesourcery.com>
6051
6052 * recog.c (asm_labels_ok): New function.
6053 (check_asm_operands): Use asm_labels_ok.
6054
6055 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
6056
6057 PR target/49606
6058 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
6059 (PMODE_INSN): New macro.
6060 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
6061 (mips_got_load, mips_expand_synci_loop): Likewise.
6062 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
6063 cprestore patterns.
6064 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
6065 copygp_mips16 patterns.
6066 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
6067 and use_cprestore patterns.
6068 (mips_override_options): Check for incompatible -mabi and -mlong
6069 combinations.
6070 * config/mips/mips.md (unspec_got<mode>): Rename to...
6071 (unspec_got_<mode>): ...this.
6072 (copygp_mips16): Use the Pmode iterator.
6073 (potential_cprestore, cprestore, use_cprestore): Likewise.
6074 (clear_cache, indirect_jump): Use PMODE_INSN.
6075 (indirect_jump<mode>): Rename to...
6076 (indirect_jump_<mode>): ...this.
6077 (tablejump): Use PMODE_INSN.
6078 (tablejump<mode>): Rename to...
6079 (tablejump_<mode>): ...this.
6080 (exception_receiver): Handle restore_gp_si and restore_gp_di.
6081 (restore_gp): Use the Pmode iterator.
6082 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
6083 PMODE_INSN.
6084
6085 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
6086
6087 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
6088 Fix the type of the BIT_AND_EXPR.
6089
6090 2011-09-05 David S. Miller <davem@davemloft.net>
6091
6092 * config.host: Add driver-sparc.o and sparc/x-sparc on
6093 native sparc*-*-linux* builds.
6094 * config/sparc/driver-sparc.c: Correct Linux strings.
6095 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
6096 * config/sparc/linux64.h: Likewise.
6097 * doc/invoke.texi: Document that Linux also supports
6098 -mcpu=native and -mtune=native on sparc.
6099
6100 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
6101 PROCESSOR_NIAGARA4): New.
6102 * config/sparc/sparc.opt: Handle new processor types.
6103 * config/sparc/sparc.md: Add to "cpu" attribute.
6104 * config/sparc/sparc.h (TARGET_CPU_niagara3,
6105 TARGET_CPU_niagara4): New, treat as niagara2.
6106 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
6107 * config/sparc/sol2.h: Likewise.
6108 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
6109 * config/sparc/sparc.c (sparc_option_override): Add
6110 niagara3 and niagara4 handling.
6111 (sparc32_initialize_trampoline): Likewise.
6112 (sparc64_initialize_trampoline): Likewise.
6113 (sparc_use_sched_lookahead): Likewise.
6114 (sparc_issue_rate): Likewise.
6115 (sparc_register_move_cost): Likewise.
6116 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
6117 and niagara4 as appropriate.
6118 * doc/invoke.texi: Document new processor types.
6119 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
6120 and --with-tune options.
6121
6122 * config/sparc/sol2-64.h: Move ...
6123 * config/sparc/default-64.h: ... to here. Update comment.
6124 * config.gcc: Update Solaris sparc to use default-64.h, also
6125 prefix this header into the list on sparc64-*-linux.
6126 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
6127 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
6128 to MASK_HARD_QUAD.
6129
6130 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
6131
6132 PR target/50289
6133 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
6134 that contain global register variable.
6135
6136 2011-09-05 Richard Guenther <rguenther@suse.de>
6137
6138 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
6139
6140 2011-09-05 Richard Guenther <rguenther@suse.de>
6141
6142 * stor-layout.c (layout_type): Use size_binop for array size
6143 calculations.
6144
6145 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
6146
6147 * config/avr/avr.h (progmem_section): Remove Declaration.
6148 * config/avr/avr.c (progmem_section): Make static and rename to
6149 progmem_swtable_section.
6150 (avr_output_addr_vec_elt): No need to switch sections.
6151 (avr_asm_init_sections): Use output_section_asm_op as section
6152 callback for progmem_swtable_section.
6153 (avr_output_progmem_section_asm_op): Remove Function.
6154 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
6155 (avr_asm_function_rodata_section): New static Function.
6156 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
6157 alignment 2**1 for jump tables.
6158
6159 2011-09-04 Jan Hubicka <jh@suse.cz>
6160
6161 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
6162 parameter is SSA name.
6163
6164 2011-09-04 Richard Guenther <rguenther@suse.de>
6165
6166 Revert
6167 2011-08-31 Richard Guenther <rguenther@suse.de>
6168
6169 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
6170 special-casing.
6171
6172 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
6173
6174 PR debug/49901
6175 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
6176
6177 2011-09-04 Jakub Jelinek <jakub@redhat.com>
6178 Ira Rosen <ira.rosen@linaro.org>
6179
6180 PR tree-optimization/50208
6181 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
6182 argument. Check that def_stmt is inside the loop.
6183 (vect_recog_widen_mult_pattern): Update calls to
6184 vect_handle_widen_mult_by_cons.
6185 (vect_operation_fits_smaller_type): Check that def_stmt is
6186 inside the loop.
6187
6188 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
6189
6190 * tree-vectorizer.c (vect_print_dump_info): Print line
6191 number when dumping to a file.
6192 (vectorize_loops): Add new messages to dump file.
6193
6194 2011-09-03 Martin Jambor <mjambor@suse.cz>
6195
6196 * ipa-prop.h (ipa_jump_func_t): New typedef.
6197 (struct ipa_edge_args): Removed field argument_count, field
6198 jump_functions turned into a vector.
6199 (ipa_set_cs_argument_count): Removed.
6200 (ipa_get_cs_argument_count): Updated to work on vectors.
6201 (ipa_get_ith_jump_func): Likewise.
6202 * ipa-prop.c (ipa_count_arguments): Removed.
6203 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
6204 jump functions. Update caller.
6205 (compute_pass_through_member_ptrs): Likewise.
6206 (compute_cst_member_ptr_arguments): Likewise.
6207 (ipa_compute_jump_functions_for_edge): Get number of arguments from
6208 the statement, allocate vector.
6209 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
6210 (duplicate_ipa_jump_func_array): Removed.
6211 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
6212 (ipa_read_node_info): Allocate vector.
6213
6214 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6215
6216 PR middle-end/50232
6217 * config/pa/pa.md (return): Define "return" insn pattern.
6218 (epilogue): Use it when no epilogue is needed.
6219 * config/pa/pa.c (pa_can_use_return_insn): New function.
6220 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
6221
6222 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
6223
6224 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
6225 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
6226 Force at least BITS_PER_UNIT alignment on the new variable.
6227
6228 2011-09-02 Gary Funck <gary@intrepid.com>
6229
6230 * opts.c (print_specific_help): Fix off-by-one compare in
6231 assertion check.
6232 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6233 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
6234 Increase by +5 to allow for more languages.
6235 * optc-gen.awk: Generate #if that ensures that the number of
6236 languages is within the implementation-defined limit.
6237
6238 2011-09-02 Michael Matz <matz@suse.de>
6239
6240 PR middle-end/50260
6241 * ipa-split.c (split_function): Call add_referenced_var.
6242
6243 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
6244 (cond_if_else_store_replacement_1): Ditto.
6245 * tree-ssa-pre.c (get_representative_for): Ditto.
6246 (create_expression_by_pieces): Ditto.
6247 (insert_into_preds_of_block): Ditto.
6248 * tree-sra.c (create_access_replacement): Ditto.
6249 (get_replaced_param_substitute): Ditto.
6250
6251 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
6252
6253 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
6254 automata_options.
6255 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
6256 (l1w, s1w, l2w, s2w): Define in the main automaton.
6257 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
6258 units.
6259 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
6260 (c6x_unit_names): Add the new units.
6261 (c6x_unit_codes): New static array.
6262 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
6263 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
6264 UNIT_QID_SIDE_OFFSET): New macros.
6265 (RESERVATION_S2): Adjust value.
6266 (c6x_option_override): Compute c6x_unit_codes.
6267 (assign_reservations): Take the unit_mask of the last instruction
6268 into account. Detect floating point reservations by looking for
6269 the new units. Don't assign reservations if the field is already
6270 nonzero.
6271 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
6272 (init_sched_state): Initialize it.
6273 (c6x_clear_sched_context): Free it.
6274 (insn_set_clock): Clear reservation.
6275 (prev_cycle_state): New static variable.
6276 (c6x_init_sched_context): Save it.
6277 (c6x_sched_init): Allocate space for it and clear it.
6278 (c6x_sched_dfa_pre_cycle_insn): New static function.
6279 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
6280 (c6x_variable_issue): Only record units in the unit_mask that
6281 were not set at the start of the cycle.
6282 (c6x_variable_issue): Compute and store the unit_mask from the
6283 current state.
6284 (reorg_split_calls): Ensure the new information remains correct.
6285 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
6286 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
6287 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
6288 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
6289 Add special reservations.
6290 * config/c6x/c6x-sched.md: Regenerate.
6291
6292 2011-09-02 Martin Jambor <mjambor@suse.cz>
6293
6294 * ipa-prop.h (ipa_node_params): Removed fields
6295 called_with_var_arguments and node_versionable.
6296 (ipa_set_called_with_variable_arg): Removed.
6297 (ipa_is_called_with_var_arguments): Likewise.
6298 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
6299 (determine_versionability): Do not check for type attributes and va
6300 builtins. Record versionability into inline summary.
6301 (initialize_node_lattices): Do not check
6302 ipa_is_called_with_var_arguments.
6303 (propagate_constants_accross_call): Likewise, ignore arguments we do
6304 not have PARM_DECLs for, set variable flag for parameters that were
6305 not passed a value.
6306 (create_specialized_node): Dump info that we cannot change signature.
6307 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
6308 number of arguments.
6309 (ipa_make_edge_direct_to_target): Likewise.
6310 (ipa_update_after_lto_read): Likewise.
6311 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
6312 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
6313 they were remapped.
6314
6315 2011-09-02 Richard Guenther <rguenther@suse.de>
6316
6317 PR tree-optimization/27460
6318 PR middle-end/29269
6319 * doc/md.texi (vcond): Document.
6320 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
6321 optab with two modes.
6322 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
6323 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
6324 (vcond_optab): Adjust.
6325 (vcondu_optab): Likewise.
6326 (expand_vec_cond_expr_p): Adjust prototype.
6327 * optabs.c (get_vcond_icode): Adjust.
6328 (expand_vec_cond_expr_p): Likewise.
6329 (expand_vec_cond_expr): Likewise.
6330 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
6331 vector type.
6332 (vectorizable_condition): Allow differing types for comparison
6333 and result.
6334 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
6335 for the comparison.
6336 * config/i386/sse.md (vcond<mode>): Split to
6337 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
6338 vcond<V_128:mode><VI124_128:mode> and
6339 vcondu<V_128:mode><VI124_128:mode>.
6340 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
6341 (vconduv2di): Likewise.
6342 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
6343 (vcondu<mode>): Likewise.
6344 * config/ia64/vect.md (vcond<mode>): Likewise.
6345 (vcondu<mode>): Likewise.
6346 (vcondv2sf): Likewise.
6347 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
6348 * config/rs6000/paired.md (vcondv2sf): Likewise.
6349 * config/rs6000/vector.md (vcond<mode>): Likewise.
6350 (vcondu<mode>): Likewise.
6351 * config/spu/spu.md (vcond<mode>): Likewise.
6352 (vcondu<mode>): Likewise.
6353
6354 2011-09-02 Richard Guenther <rguenther@suse.de>
6355
6356 * pretty-print.h (pp_unsigned_wide_integer): New.
6357 * tree-pretty-print.c (dump_generic_node): Print unsigned
6358 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
6359
6360 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
6361
6362 PR target/49987
6363 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
6364 valid CONST_VECTOR operands.
6365 (rs6000_expand_vector_init): Likewise.
6366
6367 2011-09-02 Martin Jambor <mjambor@suse.cz>
6368
6369 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
6370 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
6371 BINFO_VTABLE. Parameter delta removed, all callers updated.
6372 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
6373 BINFO_VTABLE.
6374 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
6375 all calls.
6376 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
6377 handling of thunk_delta.
6378 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
6379 (devirtualization_time_bonus): Do not handle thunk deltas.
6380 (ipcp_discover_new_direct_edges): Likewise.
6381 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6382 (try_make_edge_direct_simple_call): Likewise.
6383 (try_make_edge_direct_virtual_call): Likewise.
6384 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
6385 parameter set as unused.
6386 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
6387 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
6388 parameter set as unused.
6389 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
6390 (input_edge_opt_summary): Likewise.
6391 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
6392 BINFO_VIRTUALS at all.
6393 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
6394
6395 2011-09-02 Richard Guenther <rguenther@suse.de>
6396
6397 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
6398 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
6399
6400 2011-08-31 Richard Guenther <rguenther@suse.de>
6401
6402 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
6403 handling here, from ...
6404 (expand_expr_real_1): ... here.
6405 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
6406 and VEC_COND_EXPR.
6407 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
6408 a GIMPLE_TERNARY_RHS.
6409 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
6410 and VEC_COND_EXPR here ...
6411 (verify_gimple_assign_single): ... not here.
6412 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
6413 * tree-object-size.c (cond_expr_object_size): Adjust.
6414 (collect_object_sizes_for): Likewise.
6415 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
6416 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
6417 (ssa_forward_propagate_and_combine): Adjust.
6418 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
6419 as ternary.
6420 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
6421 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
6422 * tree-vect-stmt.c (vectorizable_condition): Likewise.
6423 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
6424 (extract_range_from_assignment): Likewise.
6425
6426 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6427
6428 * config/i386/i386.md: Use (match_test ...) for attribute tests.
6429 * config/i386/mmx.md: Likewise.
6430 * config/i386/sse.md: Likewise.
6431 * config/i386/predicates.md (call_insn_operand): Use
6432 (not (match_test "...")) instead of (match_test "!...")
6433 * config/i386/constraints.md (w): Likewise.
6434
6435 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6436
6437 * doc/md.texi: Describe the use of match_tests in attribute tests.
6438 * rtl.def (MATCH_TEST): Update commentary.
6439 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
6440 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
6441
6442 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6443
6444 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
6445 (attr_string): Use copy_md_ptr_loc.
6446
6447 2011-08-31 Martin Jambor <mjambor@suse.cz>
6448
6449 PR middle-end/49886
6450 * ipa-inline-analysis.c (compute_inline_parameters): Set
6451 can_change_signature of noes with typde attributes.
6452 * ipa-split.c (split_function): Do not skip any arguments if
6453 can_change_signature is set.
6454
6455 2011-08-31 Martin Jambor <mjambor@suse.cz>
6456
6457 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
6458 check removed.
6459
6460 2011-08-31 Richard Guenther <rguenther@suse.de>
6461
6462 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
6463 special-casing.
6464
6465 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
6466
6467 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
6468
6469 2011-08-31 Tom de Vries <tom@codesourcery.com>
6470
6471 PR middle-end/43513
6472 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
6473 * tree-ssa-ccp.c (params.h): Include.
6474 (fold_builtin_alloca_for_var): New function.
6475 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
6476
6477 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
6478
6479 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
6480 Handle FMA option.
6481
6482 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
6483
6484 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
6485 b3 and b4 unsigned.
6486
6487 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
6488
6489 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
6490 when code is SET.
6491
6492 2011-08-30 Richard Guenther <rguenther@suse.de>
6493
6494 PR middle-end/48571
6495 * gimple.h (maybe_fold_offset_to_address): Remove.
6496 (maybe_fold_offset_to_reference): Likewise.
6497 (maybe_fold_stmt_addition): Likewise.
6498 (may_propagate_address_into_dereference): Likewise.
6499 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
6500 array references.
6501 * gimple-fold.c (canonicalize_constructor_val): Likewise.
6502 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
6503 addresses instead.
6504 (may_propagate_address_into_dereference): Remove.
6505 (maybe_fold_offset_to_array_ref): Likewise.
6506 (maybe_fold_offset_to_reference): Likewise.
6507 (maybe_fold_offset_to_address): Likewise.
6508 (maybe_fold_stmt_addition): Likewise.
6509 (fold_gimple_assign): Do not reconstruct array references but
6510 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
6511 MEM_REF addresses.
6512 (gimple_fold_stmt_to_constant_1): Likewise.
6513 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6514 * gimplify.c (gimplify_conversion): Likewise.
6515 (gimplify_expr): Likewise.
6516
6517 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
6518
6519 * config/i386/fmaintrin.h: New.
6520 * config.gcc: Add fmaintrin.h.
6521 * config/i386/i386.c
6522 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
6523 <IX86_BUILTIN_VFMADDSD3>: Likewise.
6524 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
6525 (*fmai_fmadd_<mode>): Likewise.
6526 (*fmai_fmsub_<mode>): Likewise.
6527 (*fmai_fnmadd_<mode>): Likewise.
6528 (*fmai_fnmsub_<mode>): Likewise.
6529 * config/i386/immintrin.h: Add fmaintrin.h.
6530
6531 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
6532
6533 * genautomata.c (NO_COMB_OPTION): New macro.
6534 (no_comb_flag): New static variable.
6535 (gen_automata_option): Handle NO_COMB_OPTION.
6536 (comb_vect_p): False if no_comb_flag.
6537 (add_vect): Move computation of min/max values. Return early if
6538 no_comb_flag.
6539 * doc/md.texi (automata_option): Document no-comb-vect.
6540
6541 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
6542 "__x86.get_pc_thunk".
6543
6544 * bb-reorder.c (insert_section_boundary_note): Only do it if
6545 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
6546
6547 2011-08-30 Christian Bruel <christian.bruel@st.com>
6548
6549 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
6550 flag_profile_use.
6551
6552 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6553
6554 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
6555 to off. Document switch.
6556 * doc/invoke.texi (-msave-toc-indirect): Ditto.
6557
6558 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6559
6560 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
6561 conditionals and comments inside macro arguments.
6562
6563 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
6564 Richard Guenther <rguenther@suse.de>
6565
6566 * tree.h (constant_boolean_node): Adjust prototype.
6567 * fold-const.c (fold_convert_loc): Move aggregate conversion
6568 leeway down.
6569 (constant_boolean_node): Make value parameter boolean, add
6570 vector type handling.
6571 (fold_unary_loc): Use constant_boolean_node.
6572 (fold_binary_loc): Preserve types properly when folding
6573 COMPLEX_EXPR <__real x, __imag x>.
6574 * gimplify.c (gimplify_expr): Handle vector comparison.
6575 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
6576 comparison.
6577 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
6578 comparisons.
6579
6580 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6581
6582 PR middle-end/48722
6583 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
6584 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
6585 (verify_rtl_sharing): Likewise and verify_rtx_sharing
6586 in there too.
6587 (unshare_all_rtl_in_chain): For CALL_INSNs
6588 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
6589
6590 2011-08-29 Richard Guenther <rguenther@suse.de>
6591
6592 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
6593 on the built ADDR_EXPR.
6594
6595 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6596
6597 PR debug/50215
6598 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
6599 before adding ENTRY_VALUE to val->locs.
6600
6601 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
6602
6603 PR bootstrap/50218
6604 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
6605 comp.
6606
6607 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
6608
6609 * doc/rtl.texi (simple_return): Document.
6610 (parallel, PATTERN): Here too.
6611 * doc/md.texi (return): Mention it's allowed to expand to simple_return
6612 in some cases.
6613 (simple_return): Document standard pattern.
6614 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
6615 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
6616 * reorg.c (function_return_label, function_simple_return_label):
6617 New static variables, replacing...
6618 (end_of_function_label): ... this.
6619 (simplejump_or_return_p): New static function.
6620 (optimize_skip, steal_delay_list_from_fallthrough,
6621 fill_slots_from_thread): Use it.
6622 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
6623 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
6624 (find_end_label): Take a new arg which is one of the two return
6625 rtxs. Depending on which, set either function_return_label or
6626 function_simple_return_label. All callers changed.
6627 (make_return_insns): Make both kinds.
6628 (dbr_schedule): Adjust for two kinds of end labels.
6629 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
6630 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
6631 (gen_expand, gen_split): Use ANY_RETURN_P.
6632 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
6633 * rtl.def (SIMPLE_RETURN): New code.
6634 * ifcvt.c (find_if_case_1): Be more careful about
6635 redirecting jumps to the EXIT_BLOCK.
6636 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
6637 returnjump_p_1): Handle SIMPLE_RETURNs.
6638 * print-rtl.c (print_rtx): Likewise.
6639 * rtl.c (copy_rtx): Likewise.
6640 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
6641 * combine.c (simplify_set): Likewise.
6642 * resource.c (find_dead_or_set_registers, mark_set_resources):
6643 Likewise.
6644 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
6645 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
6646 (init_emit_regs): Initialize simple_return_rtx.
6647 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
6648 force_nonfallthru_and_redirect.
6649 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
6650 (GR_SIMPLE_RETURN): New enum value.
6651 (simple_return_rtx): New macro.
6652 * basic-block.h (force_nonfallthru_and_redirect): Adjust
6653 declaration.
6654 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
6655 argument. All callers changed. Be careful about what kinds of
6656 returnjumps to generate.
6657 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
6658 ix86_pad_short_function): Likewise.
6659 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
6660 of return.
6661 * config/mips/mips.md (any_return): New code_iterator.
6662 (optab): Add cases for return and simple_return.
6663 (return): Expand to a simple_return.
6664 (simple_return): New pattern.
6665 (*<optab>, *<optab>_internal for any_return): New patterns.
6666 (return_internal): Remove.
6667 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
6668 a simple_return_internal.
6669
6670 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6671
6672 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
6673 (vec_extract_lo_<mode>): Prevent both operands in memory.
6674 (vec_extract_lo_v16hi): Ditto.
6675 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
6676
6677 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6678
6679 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
6680 (*sse2_mulv4si3): Ditto.
6681 (mulv2di3): Ditto.
6682 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
6683 notes to REG_EQUAL.
6684
6685 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6686
6687 PR target/50202
6688 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
6689 when all outputs are unused.
6690 (sse4_2_pcmpistr): Ditto.
6691
6692 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
6693
6694 * config/i386/i386.md (round<mode>2): New expander.
6695 * config/i386/i386.c (enum ix86_builtins): Add
6696 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
6697 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
6698 descriptions.
6699 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
6700 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
6701
6702 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
6703
6704 PR middle-end/50083
6705 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
6706 only when TARGET_C99_FUNCTIONS.
6707 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
6708 <BUILT_IN_RINT{,F,L}>: Ditto.
6709
6710 2011-08-26 Michael Matz <matz@suse.de>
6711 Jakub Jelinek <jakub@redhat.com>
6712
6713 PR lto/50165
6714 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
6715 don't call strlen twice, use memcpy.
6716
6717 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
6718
6719 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
6720 * config/i386/bmiintrin.h: Likewise.
6721 * config/i386/lzcntintrin.h: Likewise.
6722
6723 * config/i386/immintrin.h: Include <lzcntintrin.h>,
6724 <bmiintrin.h> and <bmi2intrin.h>.
6725
6726 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6727
6728 PR target/50166
6729 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
6730 * configure: Regenerate.
6731
6732 2011-08-26 Jakub Jelinek <jakub@redhat.com>
6733
6734 PR c/50179
6735 * c-typeck.c (c_process_expr_stmt): Skip over nops and
6736 call mark_exp_read even if exprv is ADDR_EXPR.
6737
6738 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
6739
6740 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
6741 to df_set_dead_notes_for_mw.
6742
6743 2011-08-26 Richard Guenther <rguenther@suse.de>
6744
6745 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
6746
6747 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
6748 Tom de Vries <tom@codesourcery.com>
6749
6750 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
6751 (struct ivopts_data): Add loop_single_exit_p field.
6752 (niter_for_exit): Change parameter desc_p into return value. Return
6753 desc if desc->may_be_zero. Free desc if unused.
6754 (niter_for_single_dom_exit): Change return type.
6755 (find_induction_variables): Handle changed return type of
6756 niter_for_single_dom_exit. Dump may_be_zero.
6757 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
6758 (set_use_iv_cost): Add and handle comp parameter.
6759 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
6760 comp argument to set_use_iv_cost.
6761 (strip_wrap_conserving_type_conversions, expr_equal_p)
6762 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
6763 (may_eliminate_iv): Add comp parameter. Handle new return type of
6764 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
6765 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
6766 and may_eliminate_iv.
6767 (rewrite_use_compare): Move call to iv_elimination_compare to ...
6768 (may_eliminate_iv): Here.
6769 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
6770
6771 2011-08-26 Tom de Vries <tom@codesourcery.com>
6772
6773 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
6774 accessing TREE_TYPE.
6775
6776 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
6777
6778 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
6779 (*ior_scc_scc_cmp): Likewise
6780 (*and_scc_scc): Likewise.
6781 (*and_scc_scc_cmp): Likewise.
6782 (*and_scc_scc_nodom): Likewise.
6783 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
6784
6785 2011-08-26 Jakub Jelinek <jakub@redhat.com>
6786
6787 * rtlanal.c (nonzero_bits1): Handle CLRSB.
6788
6789 2011-08-26 Richard Guenther <rguenther@suse.de>
6790
6791 * expr.c (string_constant): Handle &MEM_REF.
6792
6793 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
6794
6795 * config/arm/arm.c (struct four_ints): New type.
6796 (count_insns_for_constant): Delete function.
6797 (find_best_start): Delete function.
6798 (optimal_immediate_sequence): New function.
6799 (optimal_immediate_sequence_1): New function.
6800 (arm_gen_constant): Move constant splitting code to
6801 optimal_immediate_sequence.
6802 Rewrite constant negation/invertion code.
6803
6804 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
6805
6806 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
6807 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
6808 Remove prototype. Remove static function type.
6809 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
6810 Add arch attribute.
6811 * config/arm/constraints.md (Pj, PJ): New constraints.
6812
6813 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6814
6815 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
6816 ("cortex_a9_multiply_long"): New and use above. Handle all
6817 long multiply cases.
6818 ("cortex_a9_multiply"): Handle smmul and smmulr.
6819 ("cortex_a9_mac"): Handle smmla.
6820
6821 2011-08-25 Richard Henderson <rth@redhat.com>
6822
6823 PR 50132
6824 PR 49864
6825 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
6826 non-constant stack adjutment.
6827 * expr.c (find_args_size_adjust): Break out from ...
6828 (fixup_args_size_notes): ... here.
6829 * rtl.h (find_args_size_adjust): Declare.
6830
6831 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
6832
6833 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
6834 sse4 and sse4_noavx.
6835 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
6836 (*pushdf_rex64): Change Y2 register constraint to x.
6837 (*movdf_internal_rex64): Ditto.
6838 (*zero_extendsidi2_rex64): Ditto.
6839 (*movdi_internal): Change Y2 register constraint to x
6840 and update "isa" attribute.
6841 (*pushdf): Ditto.
6842 (*movdf internal): Ditto.
6843 (zero_extendsidi2_1): Ditto.
6844 (*truncdfdf_mixed): Ditto.
6845 (*truncxfdf2_mixed): Ditto.
6846 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
6847 register constraint to x.
6848 (*movv2sf_internal_rex64): Ditto.
6849 (*mov<mode>_internal): Change Y2 register constraint to x
6850 and add "isa" attribute.
6851 (*movv2sf_internal): Ditto.
6852 (*vec_extractv2si_1): Ditto.
6853 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
6854 constraints to x and update "isa" attribute.
6855 (*vec_interleave_highv2df): Change Y3 registerconstraint
6856 to x and update "isa" attribute.
6857 (*vec_interleave_lowv2df): Ditto.
6858 (*vec_concatv2df): Change Y2 register constraint to x and
6859 update "isa" attribute.
6860 (sse2_loadld): Ditto.
6861 (*vec_extractv2di_1): Ditto.
6862 (*vec_dupv4si): Ditto.
6863 (*vec_dupv2di): Ditto.
6864 (*vec_concatv4si): Ditto.
6865 (vec_concatv2di): Ditto.
6866 * config/i386/constraints.md (Y2): Remove.
6867 (Y3): Ditto.
6868 (Y4): Ditto.
6869
6870 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6871
6872 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
6873 dump_def_use_chain): Don't declare.
6874 (mark_conflict, create_new_chain): Move before users.
6875 (regrename_optimize): Move to near end of file.
6876
6877 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6878
6879 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
6880 (secondary_input_reload_class): Remove Prototype.
6881 * config/avr/avr.c (byte_immediate_operand): Remove Function.
6882 * config/avr/avr.md (setmemhi): Use u8_operand.
6883 (strlenhi): Use const0_rtx for comparison.
6884 * config/avr/avr.h (avr_reg_order): Remove Declaration.
6885
6886 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6887
6888 * config/avr/avr.c (reg_class_tab): Make local to
6889 avr_regno_reg_class. Return smallest register class available.
6890
6891 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6892
6893 * config/avr/avr.c (STR_PREFIX_P): New Define.
6894 (avr_asm_declare_function_name): Use it.
6895 (avr_asm_named_section): Use it.
6896 (avr_section_type_flags): Use it.
6897
6898 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6899
6900 * doc/md.texi (automata_option): Document collapse-ndfa.
6901 * genautomata.c (COLLAPSE_OPTION): New macro.
6902 (collapse_flag): New static variable.
6903 (struct description): New member normal_decls_num.
6904 (struct automaton): New members advance_ainsn and collapse_ainsn.
6905 (gen_automata_option): Check for COLLAPSE_OPTION.
6906 (collapse_ndfa_insn_decl): New static variable.
6907 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
6908 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
6909 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
6910 necessary. Use normal_decls_num rather than decls_num, remove
6911 test for special decls.
6912 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
6913 (make_automaton); Likewise. Use the new advance_cycle_insn member
6914 of struct automaton.
6915 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
6916 is set.
6917 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
6918 transition. Create the necessary transitions for it.
6919 (create_ainsns): Return void. Take an automaton_t argument, and
6920 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
6921 callers changed.
6922 (COLLAPSE_NDFA_VALUE_NAME): New macro.
6923 (output_tables): Output code to define it.
6924 (output_internal_insn_code_evaluation): Output code to accept
6925 const0_rtx as collapse-ndfa transition.
6926 (output_default_latencies, output_print_reservation_func,
6927 output_print_description): Reorganize loops to use normal_decls_num
6928 as loop bound; remove special case for advance_cycle_insn_decl.
6929 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
6930 (check_automata_insn_issues): Check for collapse_ainsn.
6931 (expand_automate): Allocate sufficient space. Initialize
6932 normal_decls_num.
6933
6934 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6935
6936 * config/avr/avr.md: Fix indentation from r177991.
6937
6938 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6939
6940 * regrename.c (struct du_head): Remove member terminated.
6941 (create_new_chain): Don't initialize it.
6942 (scan_rtx_reg): Don't set or test it, test the open_chains_set
6943 bitmap instead.
6944 (tick, this_tick): New global variables, moved out of
6945 regrename_optimize.
6946 (current_id, open_chains, closed_chains, open_chains_set,
6947 live_in_chains, live_hard_regs): Reorder declarations.
6948 (dump_def_use_chain): Move function earlier in the file.
6949 (rename_chains): New static function, broken out of
6950 regrename_optimize.
6951 (regrename_optimize): Use it. Remove #if 0'ed code.
6952
6953 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6954
6955 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
6956
6957 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
6958
6959 PR target/50172
6960 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
6961
6962 2011-08-24 Richard Guenther <rguenther@suse.de>
6963
6964 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
6965 ref in the basic-block case. Move stripping array-refs
6966 to the place we create an access-function for it. Remove
6967 bogus stripping down a MEM_REF to its base.
6968
6969 2011-08-24 Richard Guenther <rguenther@suse.de>
6970
6971 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
6972 with -fno-strict-overflow.
6973
6974 2011-08-24 Richard Guenther <rguenther@suse.de>
6975
6976 * tree-vectorizer.c (vect_print_dump_info): Avoid the
6977 file and location clutter when dumping to dump files.
6978
6979 2011-08-24 Simon Baldwin <simonb@google.com>
6980
6981 * gengtype-state.c (write_state): Remove timestamped header line.
6982
6983 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6984
6985 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
6986 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
6987 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
6988 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
6989 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
6990 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
6991 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
6992 rules.
6993 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
6994
6995 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6996
6997 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
6998
6999 2011-08-24 Richard Guenther <rguenther@suse.de>
7000
7001 PR tree-optimization/50067
7002 * tree-data-ref.c (dr_analyze_indices): Do not add an access
7003 function for a MEM_REF base that has no evolution in the loop
7004 nest or that is not analyzable.
7005
7006 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
7007
7008 * ira.c (ira_init_register_move_cost): Check small subclasses
7009 through ira_reg_class_max_nregs and ira_available_class_regs.
7010
7011 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
7012
7013 * config/i386/constraints.md (Yp): New register constraint.
7014 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
7015 Yp register constraint.
7016 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
7017 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
7018 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
7019
7020 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
7021
7022 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
7023
7024 2011-08-23 Mark Heffernan <meheff@google.com>
7025
7026 PR middle-end/38509
7027 * common.opt (Wfree-nonheap-object): New option.
7028 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
7029 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
7030 to warning.
7031 (expand_builtin): Make warning conditional.
7032
7033 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
7034
7035 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
7036 (length_immediate): Handle imulx, ishiftx and rotatex.
7037 (imm_disp): Ditto.
7038 (isa): Add bmi2.
7039 (enabled): Handle bmi2.
7040 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
7041 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
7042 (*bmi2_umulditi3_1): New insn pattern.
7043 (*bmi2_umulsidi3_1): Ditto.
7044 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
7045 (*bmi2_ashl<mode>3_1): New insn pattern.
7046 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
7047 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
7048 (*bmi2_ashlsi3_1_zext): New insn pattern.
7049 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
7050 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
7051 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
7052 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
7053 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
7054 flags dependency.
7055 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
7056 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
7057 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
7058 flags dependency.
7059 (*bmi2_rorx<mode>3_1): New insn pattern.
7060 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
7061 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
7062 (*rotatert<mode>3_1 splitter): Ditto.
7063 (*bmi2_rorxsi3_1_zext): New insn pattern.
7064 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
7065 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
7066 (*rotatertsi3_1_zext splitter): Ditto.
7067
7068 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
7069
7070 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
7071 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
7072 (ix86_handle_option): Handle OPT_mbmi2 case.
7073 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
7074 (x86_64-*-*): Likewise.
7075 * config/i386/bmi2intrin.h: New file.
7076 * config/i386/cpuid.h (bit_BMI2): New.
7077 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7078 BMI2 feature.
7079 * config/i386/i386-c.c (ix86_target_macros_internal):
7080 Conditionally define __BMI2__.
7081 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
7082 Handle BMI2 option.
7083 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
7084 (print_reg): New code.
7085 (ix86_print_operand): Likewise.
7086 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
7087 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
7088 IX86_BUILTIN_PEXT64.
7089 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
7090 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
7091 IX86_BUILTIN_PEXT64.
7092 * config/i386/i386.h (TARGET_BMI2): New.
7093 * config/i386/i386.md (UNSPEC_PDEP): New.
7094 (UNSPEC_PEXT): Likewise.
7095 (*bmi2_bzhi_<mode>3): Likewise.
7096 (*bmi2_pdep_<mode>3): Likewise.
7097 (*bmi2_pext_<mode>3): Likewise.
7098 * config/i386/i386.opt (mbmi2): New.
7099 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
7100 is defined.
7101 * doc/extend.texi: Document BMI2 built-in functions.
7102 * doc/invoke.texi: Document -mbmi2.
7103
7104 2011-08-23 Jakub Jelinek <jakub@redhat.com>
7105
7106 PR middle-end/50161
7107 * simplify-rtx.c (simplify_const_unary_operation): If
7108 op is CONST_INT, don't look at op_mode, but use instead mode.
7109 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
7110 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
7111 operation and TRUNCATE/ZERO_EXTEND if needed.
7112 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
7113 Document that operand mode must be same as operation mode,
7114 or VOIDmode.
7115 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
7116 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
7117 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
7118 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
7119 use the mode of operand for the operation and add truncate
7120 or zero_extend around if needed.
7121 * config/c6x/c6x.md (ctzdi2): Likewise.
7122 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
7123
7124 2011-08-12 Michael Matz <matz@suse.de>
7125
7126 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
7127 (gimple_expand_cfg): Merge alignment info for coalesced pointer
7128 SSA names.
7129
7130 2011-08-23 Richard Guenther <rguenther@suse.de>
7131
7132 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
7133 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
7134 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
7135 from ...
7136 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
7137 (mem_refs_may_alias_p): Adjust.
7138 * tree-data-ref.h (dr_may_alias_p): Adjust.
7139 * tree-data-ref.c: Include tree-affine.h.
7140 (dr_analyze_indices): Do nothing for the non-loop case.
7141 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
7142 more cases in the non-loop case.
7143 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
7144 calls to dr_may_alias_p.
7145 (write_alias_graph_to_ascii_ecc): Likewise.
7146 (write_alias_graph_to_ascii_dot): Likewise.
7147 (build_alias_set_optimal_p): Likewise.
7148
7149 2011-08-23 Richard Guenther <rguenther@suse.de>
7150
7151 PR tree-optimization/50162
7152 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
7153
7154 2011-08-23 Richard Guenther <rguenther@suse.de>
7155
7156 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
7157 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
7158 (create_data_ref): Also dump access functions for the created data-ref.
7159
7160 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
7161 Kirill Yukhin <kirill.yukhin@intel.com>
7162
7163 PR target/50155
7164 * config/i386/sse.md (VI_AVX2): New.
7165 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
7166 (*<plusminus_insn><mode>3): Ditto.
7167 (<sse2_avx2>_andnot<mode>3): Ditto.
7168 (*andnot<mode>3): Fix order of cond operands.
7169 Add asserts for correct TARGET_xxx.
7170 (*<any_logic:code><mode>3): Ditto.
7171
7172 2011-08-22 Anatoly Sokolov <aesok@post.ru>
7173
7174 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
7175 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
7176 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
7177 regclass argument type to reg_class_t. Change 'max' and 'v' vars
7178 and return types to unsigned char. Use reg_class_contents instead
7179 of class_contents.
7180 (TARGET_CLASS_MAX_NREGS): Define.
7181
7182 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
7183
7184 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
7185 to make computed_jump_p return true.
7186
7187 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7188
7189 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
7190 (PICFLAG_FOR_TARGET): Substitute.
7191 * aclocal.m4: Regenerate.
7192 * configure: Regenerate.
7193
7194 2011-08-22 Dodji Seketeli <dodji@redhat.com>
7195
7196 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
7197 after reading in the pch.
7198
7199 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
7200
7201 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
7202 * configure: Regenerated.
7203
7204 2011-08-22 Jakub Jelinek <jakub@redhat.com>
7205
7206 PR tree-optimization/50133
7207 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
7208 from stmt instead of some statement around gsi.
7209
7210 PR middle-end/50141
7211 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
7212 innerdecl is a VAR_DECL.
7213
7214 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7215
7216 * config/i386/avx2intrin.h: New file.
7217 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
7218 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
7219 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
7220 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
7221 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
7222 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
7223 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
7224 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
7225 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
7226 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
7227 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
7228 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
7229 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
7230 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
7231 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
7232 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
7233 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
7234 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
7235 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
7236 VOID_FTYPE_PV8SI_V8SI_V8SI,
7237 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
7238 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
7239 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
7240 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
7241 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
7242 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
7243 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
7244 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
7245 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
7246 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
7247 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
7248 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
7249 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
7250 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
7251 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
7252 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
7253 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
7254 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
7255 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
7256 V4DI_FTYPE_V4DI_INT_CONVERT,
7257 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
7258 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
7259 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
7260 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
7261 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
7262 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
7263 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
7264 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
7265 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
7266 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
7267 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
7268 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
7269 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
7270 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
7271 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
7272 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
7273 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
7274 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
7275 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
7276 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
7277 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
7278 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
7279 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
7280 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
7281 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
7282 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
7283 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
7284 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
7285 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
7286 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
7287 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
7288 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
7289 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
7290 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
7291 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
7292 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
7293 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
7294 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
7295 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
7296 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
7297 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
7298 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
7299 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
7300 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
7301 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
7302 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
7303 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
7304 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
7305 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
7306 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
7307 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
7308 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
7309 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
7310 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
7311 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
7312 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
7313 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
7314 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
7315 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
7316 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
7317 IX86_BUILTIN_VBROADCASTSS_PS256,
7318 IX86_BUILTIN_VBROADCASTSD_PD256,
7319 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
7320 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
7321 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
7322 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
7323 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
7324 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
7325 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
7326 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
7327 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
7328 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
7329 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
7330 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
7331 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
7332 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
7333 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
7334 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
7335 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
7336 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
7337 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
7338 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
7339 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
7340 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
7341 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
7342 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
7343 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
7344 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
7345 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
7346 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
7347 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
7348 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
7349 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
7350 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
7351 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
7352 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
7353 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
7354 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
7355 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
7356 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
7357 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
7358 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
7359 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
7360 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
7361 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
7362 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
7363 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
7364 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
7365 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
7366 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
7367 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
7368 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
7369 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
7370 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
7371 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
7372 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
7373 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
7374 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
7375 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
7376 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
7377 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
7378 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
7379 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
7380 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
7381 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
7382 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
7383 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
7384 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
7385 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
7386 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
7387 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
7388 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
7389 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
7390 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
7391 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
7392 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
7393 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
7394 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
7395 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
7396 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
7397 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
7398 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
7399 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
7400 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
7401 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
7402 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
7403 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
7404 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
7405 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
7406 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
7407 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
7408 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
7409 IX86_BUILTIN_VBROADCASTSD_PD256,
7410 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
7411 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
7412 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
7413 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
7414 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
7415 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
7416 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
7417 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
7418 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
7419 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
7420 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
7421 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
7422 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
7423 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
7424 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
7425 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
7426 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
7427 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
7428 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
7429 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
7430 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
7431 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
7432 IX86_BUILTIN_GATHERDIV8SI.
7433 (ix86_preferred_simd_mode): Support AVX2 modes.
7434 (ix86_expand_args_builtin): Support AVX2 builtins.
7435 (ix86_expand_special_args_builtin): Likewise.
7436 (ix86_expand_builtin): Likewise.
7437 * config/i386/i386.md (UNSPEC_VPERMSI): New.
7438 (UNSPEC_VPERMDF): Likewise.
7439 (UNSPEC_VPERMSF): Likewise.
7440 (UNSPEC_VPERMDI): Likewise.
7441 (UNSPEC_VPERMTI): Likewise.
7442 (UNSPEC_GATHER): Likewise.
7443 (ssemodesuffix): Extend.
7444 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
7445 is defined.
7446 * config/i386/predicates.md (const1248_operand): New.
7447 * config/i386/sse.md (VI1_AVX2): New mode iterator.
7448 (VI2_AVX2): Likewise.
7449 (VI4_AVX2): Likewise.
7450 (VI8_AVX2): Likewise.
7451 (VIMAX_AVX2): Likewise.
7452 (SSESCALARMODE): Likewise.
7453 (VI12_AVX2): Likewise.
7454 (VI24_AVX2): Likewise.
7455 (VI124_AVX2): Likewise.
7456 (VI248_AVX2): Likewise.
7457 (VI48_AVX2): Likewise.
7458 (VI4SD_AVX2): Likewise.
7459 (V48_AVX2): Likewise.
7460 (AVX256MODE2P): Likewise.
7461 (AVXMODE48P_DI): Likewise.
7462 (sse2_avx2): New mode attribute.
7463 (ssse3_avx2): Likewise.
7464 (sse4_1_avx2): Likewise.
7465 (avx_avx2): Likewise.
7466 (ssebytemode): Likewise.
7467 (AVXTOSSEMODE): Likewise.
7468 (AVXMODE48P_DI): Likewise.
7469 (gthrfirstp): Likewise.
7470 (gthrlastp): Likewise.
7471 (lshift): New code_iterator
7472 (lshift): New code attribute.
7473 (lshift): Likewise.
7474 (ssescalarmodesuffix): Update.
7475 (sseunpackmode): Likewise.
7476 (ssepackmode): Likewise.
7477 (avx2_vec_dupv4sf): New insn pattern.
7478 (avx2_vec_dupv8sf): Likewise.
7479 (avx2_interleave_highv4di): Likewise.
7480 (avx2_interleave_lowv4di): Likewise.
7481 (avx2_umulv4siv4di3): Likewise
7482 (*avx2_umulv4siv4di3): Likewise
7483 (avx2_pmaddwd): Likewise.
7484 (*avx2_pmaddwd): Likewise.
7485 (avx2_lshrqv4di3): Likewise.
7486 (avx2_lshlqv4di3): Likewise.
7487 (avx2_lshl<mode>3): Likewise.
7488 (avx2_<umaxmin:code><mode>3): Likewise.
7489 (*avx2_<umaxmin:code><mode>3): Likewise.
7490 (avx2_<smaxmin:code><mode>3): Likewise.
7491 (*avx2_<smaxmin:code><mode>3): Likewise.
7492 (avx2_eq<mode>3): Likewise.
7493 (*avx2_eq<mode>3): Likewise.
7494 (avx2_gt<mode>3): Likewise.
7495 (avx2_interleave_highv32qi): New.
7496 (avx2_interleave_lowv32qi): Likewise.
7497 (avx2_interleave_highv16hi): Likewise.
7498 (avx2_interleave_lowv16hi): Likewise.
7499 (avx2_interleave_highv8si): Likewise.
7500 (avx2_interleave_lowv8si): Likewise.
7501 (avx2_pshufd): Likewise.
7502 (avx2_pshufd_1): Likewise.
7503 (avx2_pshuflwv3): Likewise.
7504 (avx2_pshuflw_1): Likewise.
7505 (avx2_pshufhwv3): Likewise.
7506 (avx2_pshufhw_1): Likewise.
7507 (avx2_uavgv32qi3): Likewise.
7508 (*avx2_uavgv32qi3): Likewise.
7509 (avx2_uavgv16hi3): Likewise.
7510 (*avx2_uavgv16hi3): Likewise.
7511 (avx2_pmovmskb): Likewise.
7512 (avx2_phaddwv16hi3): Likewise.
7513 (avx2_phadddv8si3): Likewise.
7514 (avx2_phaddswv16hi3): Likewise.
7515 (avx2_phsubwv16hi3): Likewise.
7516 (avx2_phsubdv8si3): Likewise.
7517 (avx2_phsubswv16hi3): Likewise.
7518 (avx2_pmaddubsw256): Likewise.
7519 (avx2_umulhrswv16hi3): Likewise.
7520 (*avx2_umulhrswv16hi3): Likewise.
7521 (avx2_packusdw): Likewise.
7522 (avx2_pblendd<mode>): Likewise.
7523 (avx2_<code>v16qiv16hi2): Likewise.
7524 (avx2_<code>v8qiv8si2): Likewise.
7525 (avx2_<code>v8hiv8si2): Likewise.
7526 (avx2_<code>v4qiv4di2): Likewise.
7527 (avx2_<code>v4hiv4di2): Likewise.
7528 (avx2_<code>v4siv4di2): Likewise.
7529 (avx2_pbroadcast<mode>): Likewise.
7530 (avx2_permvarv8si): Likewise.
7531 (avx2_permv4df): Likewise.
7532 (avx2_permvarv8sf): Likewise.
7533 (avx2_permv4di): Likewise.
7534 (avx2_permv2ti): Likewise.
7535 (avx2_vec_dupv4df): Likewise.
7536 (avx2_vbroadcasti128_<mode>): Likewise.
7537 (avx2_vec_set_lo_v4di): Likewise.
7538 (avx2_vec_set_hi_v4di): Likewise.
7539 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
7540 (avx2_extracti128): Likewise.
7541 (avx2_inserti128): Likewise.
7542 (avx2_ashrvv8si): Likewise.
7543 (avx2_ashrvv4si): Likewise.
7544 (avx2_<lshift>vv8si): Likewise.
7545 (avx2_<lshift>v<mode>): Likewise.
7546 (avx2_<lshift>vv2di): Likewise.
7547 (avx2_gathersi<mode>): Likewise.
7548 (*avx2_gathersi<mode>): Likewise.
7549 (avx2_gatherdi<mode>): Likewise.
7550 (*avx2_gatherdi<mode>): Likewise.
7551 (avx2_gatherdi<mode>256): Likewise.
7552 (*avx2_gatherdi<mode>256): Likewise.
7553 (<plusminus_insn><mode>3): Use VI mode iterator.
7554 (*<plusminus_insn><mode>3): Use VI mode iterator.
7555 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
7556 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
7557 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
7558 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
7559 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
7560 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
7561 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
7562 Use VI2_AVX2 mode iterator.
7563 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
7564 Use VI2_AVX2 mode iterator.
7565 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
7566 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
7567 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
7568 Use VI4_AVX2 mode iterator.
7569 (ashr<mode>3): Use VI24_AVX2 mode iterator.
7570 (lshr<mode>3): Use VI248_AVX2 mode iterator.
7571 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
7572 Use VIMAX_AVX2 mode iterator.
7573 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
7574 Use VI mode iterator.
7575 (*andnot<mode>3): Update for AVX2.
7576 (*<any_logic:code><mode>3): Likewise.
7577 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
7578 Use VI1_AVX mode iterator.
7579 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
7580 Use VI2_AVX mode iterator.
7581 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
7582 Use VI1_AVX mode iterator.
7583 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
7584 Use VI8_AVX2 mode iterator.
7585 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
7586 Use VI1_AVX2 mode iterator.
7587 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
7588 Use VI124_AVX2 mode iterator.
7589 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
7590 Use SSESCALARMODE mode iterator.
7591 (abs<mode>2): Use VI124_AVX2 mode iterator.
7592 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
7593 Use VI8_AVX2 mode iterator.
7594 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
7595 Use VI1_AVX2 mode iterator.
7596 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
7597 Use VI1_AVX2 mode iterator.
7598 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
7599 Use VI2_AVX2 mode iterator.
7600 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
7601 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
7602 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
7603 avx_maskstore<ssemodesuffix><avxsizesuffix>.
7604 Use V48_AVX2 mode iterator.
7605 * doc/extend.texi: Document AVX2 built-in functions.
7606 * doc/invoke.texi: Document -mavx2.
7607
7608 2011-08-22 Matthias Klose <doko@debian.org>
7609
7610 Revert:
7611 2011-07-11 Arthur Loiret <aloiret@debian.org>
7612 Matthias Klose <doko@debian.org>
7613 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7614 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7615 convention.
7616 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7617
7618 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
7619
7620 PR bootstrap/50146
7621 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
7622 to #ifndef HONOR_REG_ALLOC_ORDER block.
7623
7624 2011-08-21 Richard Henderson <rth@redhat.com>
7625
7626 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
7627 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
7628 * resource.c (next_insn_no_annul): Likewise.
7629 (mark_set_resources): Likewise.
7630 * reorg.c (delete_from_delay_slot): Likewise.
7631 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
7632 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
7633
7634 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
7635
7636 * config/i386/i386.md (any_div): Remove.
7637 (sgnprefix): Update for removal.
7638 (u): Ditto.
7639
7640 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
7641
7642 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
7643 for ira_reg_class_max_nregs. Increase pressure by 1.
7644 (mark_pseudo_regno_subword_dead): Use allocno class
7645 for ira_reg_class_max_nregs.
7646
7647 2011-08-20 Richard Henderson <rth@redhat.com>
7648
7649 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
7650 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
7651 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
7652 config/c6x/ltf.c: Adjust include path for soft-fp.
7653
7654 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
7655
7656 PR other/46770
7657 * config.gcc (tm_file): Add initfini-array.h if
7658 .init_arrary/.fini_array are supported.
7659
7660 * crtstuff.c: Don't generate .ctors nor .dtors sections if
7661 USE_INITFINI_ARRAY is defined.
7662
7663 * output.h (default_elf_init_array_asm_out_constructor): New.
7664 (default_elf_fini_array_asm_out_destructor): Likewise.
7665 * varasm.c (elf_init_array_section): Likewise.
7666 (elf_fini_array_section): Likewise.
7667 (get_elf_initfini_array_priority_section): Likewise.
7668 (default_elf_init_array_asm_out_constructor): Likewise.
7669 (default_elf_fini_array_asm_out_destructor): Likewise.
7670
7671 * config/initfini-array.h: New.
7672
7673 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
7674
7675 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
7676 OK for ST_REGS and FP_REGS before taking those classes into account.
7677
7678 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
7679
7680 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
7681 before checking for annulled branches.
7682
7683 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
7684
7685 * config/i386/i386.c (ix86_binary_operator_ok): Use
7686 satisfies_constraint_L.
7687
7688 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
7689 Michael Matz <matz@suse.de>
7690
7691 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
7692 trunc (a + copysign (nextafter (0.5, 0.0), a)).
7693
7694 2011-08-20 Anatoly Sokolov <aesok@post.ru>
7695
7696 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7697 * doc/tm.texi: Regenerate.
7698 * targhooks.c (default_preferred_output_reload_class): Don't use
7699 PREFERRED_OUTPUT_RELOAD_CLASS macro.
7700 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
7701
7702 2011-08-20 Jakub Jelinek <jakub@redhat.com>
7703
7704 PR tree-optimization/48739
7705 * tree-ssa.c: Include cfgloop.h.
7706 (execute_update_addresses_taken): When updating ssa, if in loop closed
7707 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
7708 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
7709
7710 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
7711
7712 PR rtl-optimization/49936
7713 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
7714 for calculation of max register move costs.
7715
7716 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7717
7718 * c-parser.c (c_parser_postfix_expression): Convert operands of
7719 __builtin_complex to their semantic types.
7720
7721 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
7722
7723 PR middle-end/49721
7724 * explow.c (convert_memory_address_addr_space): Also permute the
7725 conversion and addition of constant for zero-extend.
7726
7727 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7728
7729 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
7730 * doc/extend.texi (__builtin_complex): Document.
7731
7732 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7733
7734 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
7735 beyond conversions.
7736 (convert_mult_to_widen): Convert constant inputs to the right type.
7737 (convert_plusminus_to_widen): Don't automatically reject inputs that
7738 are not an SSA_NAME.
7739 Convert constant inputs to the right type.
7740
7741 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7742
7743 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
7744 to the correct type.
7745
7746 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7747
7748 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
7749 unsigned inputs of different modes.
7750 (convert_plusminus_to_widen): Likewise.
7751
7752 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7753
7754 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
7755 'type'.
7756 Use 'type' from caller, not inferred from 'rhs'.
7757 Don't reject non-conversion statements. Do return lhs in this case.
7758 (is_widening_mult_p): Add new argument 'type'.
7759 Use 'type' from caller, not inferred from 'stmt'.
7760 Pass type to is_widening_mult_rhs_p.
7761 (convert_mult_to_widen): Pass type to is_widening_mult_p.
7762 (convert_plusminus_to_widen): Likewise.
7763
7764 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7765
7766 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
7767 Ensure the the larger type is the first operand.
7768
7769 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7770
7771 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
7772 unsupported unsigned multiplies to signed.
7773 (convert_plusminus_to_widen): Likewise.
7774
7775 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7776
7777 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
7778 conversion statement separating multiply-and-accumulate.
7779
7780 2011-08-19 Richard Guenther <rguenther@suse.de>
7781
7782 PR tree-optimization/50067
7783 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
7784 offset only if we accounted for it.
7785
7786 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7787
7788 * config/arm/arm.md (maddhidi4): Remove '*' from name.
7789 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
7790 * optabs.c (find_widening_optab_handler_and_mode): New function.
7791 (expand_widen_pattern_expr): Use find_widening_optab_handler.
7792 (expand_binop_directly): Likewise.
7793 (expand_binop): Likewise.
7794 * optabs.h (find_widening_optab_handler): New macro define.
7795 (find_widening_optab_handler_and_mode): New prototype.
7796 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
7797 type precision rules.
7798 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
7799 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
7800 (is_widening_mult_rhs_p): Allow widening by more than one mode.
7801 Explicitly disallow mis-matched input types.
7802 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
7803 input types to fit the new handler.
7804 (convert_plusminus_to_widen): Likewise.
7805
7806 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7807
7808 * expr.c (expand_expr_real_2): Use widening_optab_handler.
7809 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
7810 (gen_insn): $N now means $a must be wider than $b, not consecutive.
7811 * optabs.c (widened_mode): New function.
7812 (expand_widen_pattern_expr): Use widening_optab_handler.
7813 (expand_binop_directly): Likewise.
7814 (expand_binop): Likewise.
7815 * optabs.h (widening_optab_handlers): New struct.
7816 (optab_d): New member, 'widening'.
7817 (widening_optab_handler): New function.
7818 (set_widening_optab_handler): New function.
7819 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
7820 widening_optab_handler.
7821 (convert_plusminus_to_widen): Likewise.
7822
7823 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7824
7825 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
7826 pedantic.
7827 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
7828 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
7829
7830 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7831
7832 * opth-gen.awk: Do not declare target save/restore structures and
7833 functions if IN_RTS defined.
7834
7835 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7836
7837 PR target/49437
7838 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
7839 when stack was realigned in interrupt handler prologue.
7840
7841 2011-08-18 Joseph Myers <joseph@codesourcery.com>
7842
7843 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
7844 (quals_from_declspecs): Assert _Noreturn not present.
7845 (grokdeclarator): Handle _Noreturn.
7846 (build_null_declspecs): Initialize noreturn_p.
7847 (declspecs_add_scspec): Handle RID_NORETURN.
7848 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
7849 (c_parser_attributes): Handle RID_NORETURN.
7850 * c-tree.h (struct c_declspecs): Add noreturn_p.
7851 * ginclude/stdnoreturn.h: New.
7852 * Makefile.in (USER_H): Add stdnoreturn.h.
7853
7854 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
7855
7856 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
7857 (OPTION_MASK_ISA_AVX_UNSET): Update.
7858 (OPTION_MASK_ISA_AVX2_UNSET): New.
7859 (ix86_handle_option): Handle OPT_mavx2 case.
7860 * config/i386/cpuid.h (bit_AVX2): New.
7861 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7862 AVX2 feature.
7863 * config/i386/i386-c.c (ix86_target_macros_internal):
7864 Conditionally define __AVX2__.
7865 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
7866 Define "core-avx2" processor alias. Handle avx2 option.
7867 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
7868 * config/i386/i386.h (TARGET_AVX2): New.
7869 * config/i386/i386.opt (mavx2): New.
7870 * doc/invoke.texi: Document -mavx2.
7871
7872 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
7873
7874 PR rtl-optimization/49890
7875 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
7876 subclasses of class which is superset of a pressure class.
7877
7878 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
7879 Igor Zamyatin <igor.zamyatin@intel.com>
7880
7881 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
7882 with HOST_WIDE_INT for isa_flag.
7883 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
7884 isa variables.
7885
7886 * config/i386/i386.c (ix86_target_string): Replace int with
7887 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
7888 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
7889 (pta_flags): Removed.
7890 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
7891 (pta): Use HOST_WIDE_INT on flags.
7892 (builtin_isa): Use HOST_WIDE_INT on isa.
7893 (ix86_add_new_builtins): Likewise.
7894 (def_builtin): Use HOST_WIDE_INT on mask.
7895 (def_builtin_const): Likewise.
7896 (builtin_description): Likewise.
7897
7898 * config/i386/i386.opt (ix86_isa_flags): Replace int with
7899 HOST_WIDE_INT.
7900 (ix86_isa_flags_explicit): Likewise.
7901 (x_ix86_isa_flags_explicit): Likewise.
7902
7903 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
7904
7905 PR rtl-optimization/50107
7906 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
7907 (ira_hard_reg_in_set_p): New.
7908
7909 * ira-color.c (calculate_saved_nregs): New.
7910 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
7911 hard regs.
7912 (allocno_reload_assign, fast_allocation): Use
7913 ira_hard_reg_set_intersection_p instead of
7914 ira_hard_reg_not_in_set_p.
7915
7916 * ira.c (setup_reg_renumber): Use
7917 ira_hard_reg_set_intersection_p instead of
7918 ira_hard_reg_not_in_set_p.
7919 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
7920 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
7921
7922 * ira-costs.c (ira_tune_allocno_costs): Use
7923 ira_hard_reg_set_intersection_p instead of
7924 ira_hard_reg_not_in_set_p.
7925
7926 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
7927 Igor Zamyatin <igor.zamyatin@intel.com>
7928
7929 * hwint.h (HOST_WIDE_INT_1): New.
7930
7931 * opt-functions.awk (switch_bit_fields): Initialize the
7932 host_wide_int field.
7933 (host_wide_int_var_name): New.
7934 (var_type_struct): Check and return HOST_WIDE_INT.
7935
7936 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
7937
7938 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
7939
7940 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
7941 check masks for HOST_WIDE_INT.
7942
7943 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
7944 (option_enabled): Likewise.
7945 (get_option_state): Likewise.
7946
7947 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
7948 to HOST_WIDE_INT.
7949
7950 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7951 Marc Glisse <marc.glisse@normalesup.org>
7952
7953 PR libstdc++-v3/1773
7954 * target.def (decl_mangling_context): New C++ hook.
7955 * doc/tm.texi: Regenerate.
7956 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
7957 * config/sol2-protos.h: Group by source file.
7958 (solaris_cxx_decl_mangling_context): Declare.
7959 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
7960 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
7961 Use $<.
7962 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
7963 Add sol2-stubs.o to extra_objs.
7964
7965 2011-08-18 Jakub Jelinek <jakub@redhat.com>
7966
7967 PR target/50009
7968 * stor-layout.c (update_alignment_for_field): Don't ICE on
7969 packed flexible array members if ms_bitfield_layout_p.
7970
7971 PR target/50092
7972 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
7973 on the result before returning it.
7974
7975 PR debug/50017
7976 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
7977 is a debug stmt, use location of the first non-debug stmt after it.
7978
7979 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7980
7981 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
7982 (arm_size_rtx_costs): Likewise.
7983
7984 2011-08-18 Richard Guenther <rguenther@suse.de>
7985
7986 * tree.h (tree_int_cst_msb): Remove.
7987 * tree.c (tree_int_cst_msb): Likewise.
7988 (tree_int_cst_sign_bit): Move from ...
7989 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
7990
7991 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7992
7993 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
7994 * doc/tm.texi: Regenerate.
7995 * target.def (rtx_costs): Add an opno parameter.
7996 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7997 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
7998 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7999 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
8000 * cse.c (COST_IN): Add an opno parameter.
8001 (notreg_cost): Likewise. Update call to rtx_cost.
8002 (COST, fold_rtx): Update accordingly.
8003 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
8004 * expmed.c (emit_store_flag): Likewise.
8005 * optabs.c (avoid_expensive_constant): Add an opno parameter.
8006 Update call to rtx_cost.
8007 (expand_binop_directly, expand_binop): Likewise.
8008 (expand_twoval_binop, prepare_cmp_insn): Likewise.
8009 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
8010 (set_src_cost, get_full_set_src_cost): Update accordingly.
8011 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
8012 to target hook.
8013 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
8014 (default_adress_cost): Update calls to rtx_cost.
8015
8016 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
8017 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
8018 (arm_rtx_costs): Add an opno parameter.
8019 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
8020 adjust any recursive rtx-cost calls.
8021 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
8022 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8023 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8024 * config/cris/cris.c (cris_rtx_costs): Likewise.
8025 * config/frv/frv.c (frv_rtx_costs): Likewise.
8026 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8027 * config/i386/i386.c (ix86_rtx_costs): Likewise.
8028 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8029 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8030 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8031 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8032 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8033 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8034 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8035 * config/mep/mep.c (mep_rtx_cost): Likewise.
8036 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8037 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
8038 (mips_zero_extend_cost): Add an opno parameter.
8039 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8040 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
8041 to rtx_cost.
8042 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
8043 rtx-cost calls.
8044 * config/pa/pa.c (hppa_rtx_costs): Likewise.
8045 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8046 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
8047 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8048 (rs6000_debug_rtx_costs): Likewise.
8049 * config/s390/s390.c (s390_rtx_costs): Likewise.
8050 * config/score/score-protos.h (score_rtx_costs): Likewise.
8051 * config/score/score.c (score_rtx_costs): Likewise.
8052 * config/sh/sh.c (andcosts): Update call to rtx_cost.
8053 (sh_rtx_costs): Add an opno parameter.
8054 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8055 * config/spu/spu.c (spu_rtx_costs): Likewise.
8056 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8057 * config/v850/v850.c (v850_rtx_costs): Likewise.
8058 * config/vax/vax.c (vax_rtx_costs): Likewise.
8059 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8060
8061 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
8062
8063 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
8064 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
8065 rtx_cost.
8066 * calls.c (precompute_register_parameters): Likewise.
8067 * combine.c (expand_compound_operation, make_extraction): Likewise.
8068 (force_to_mode, distribute_and_simplify_rtx): Likewise.
8069 * dse.c (find_shift_sequence): Likewise.
8070 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
8071 * expr.c (compress_float_constant): Likewise.
8072 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8073 * gcse.c (want_to_gcse_p): Likewise.
8074 * ifcvt.c (noce_try_sign_mask): Likewise.
8075 * loop-doloop.c (doloop_optimize): Likewise.
8076 * loop-invariant.c (create_new_invariant): Likewise.
8077 * optabs.c (avoid_expensive_constant): Likewise.
8078 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
8079 (try_replace_in_use, reload_cse_move2add): Likewise.
8080 * reload1.c (calculate_elim_costs_all_insns): Likewise.
8081 (note_reg_elim_costly): Likewise.
8082 * rtlanal.c (insn_rtx_cost): Likewise.
8083 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8084 * stmt.c (lshift_cheap_p): Likewise.
8085 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
8086 * config/avr/avr.c (final_prescan_insn): Likewise.
8087 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8088 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
8089
8090 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
8091
8092 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
8093 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
8094 * cfgloopanal.c (seq_cost): Likewise.
8095 * loop-invariant.c (create_new_invariant): Likewise.
8096 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
8097 (reload_cse_move2add): Use get_full_set_rtx_cost.
8098
8099 2011-08-18 Richard Guenther <rguenther@suse.de>
8100
8101 * expr.c (get_inner_reference): Fix typo in last change.
8102
8103 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
8104 Joseph Myers <joseph@codesourcery.com>
8105
8106 PR tree-optimization/49963
8107 * hwint.c (absu_hwi): Define.
8108 * hwint.h (absu_hwi): Declare.
8109 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
8110 of abs_hwi.
8111 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8112 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8113
8114 2011-08-18 Richard Guenther <rguenther@suse.de>
8115
8116 * expr.c (get_inner_reference): Sign-extend the constant
8117 twos-complement offset before doing arbitrary precision
8118 arithmetic on it.
8119 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
8120 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
8121 to get_constraint_for_ptr_offset.
8122
8123 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
8124
8125 PR target/50068
8126 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
8127
8128 2011-08-17 Richard Guenther <rguenther@suse.de>
8129
8130 * tree.h (convert_to_ptrofftype_loc): New function.
8131 (convert_to_ptrofftype): Define.
8132 * builtins.c (expand_builtin_bzero): Use size_type_node.
8133 (fold_builtin_bzero): Likewise.
8134 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
8135 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
8136 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
8137 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
8138 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
8139 * fold-const.c (build_range_check): Negate using the original type.
8140 (fold_unary_loc): Use fold_build_pointer_plus_loc.
8141 * gimple-fold.c (gimple_adjust_this_by_delta): Use
8142 convert_to_ptrofftype.
8143 * gimplify.c (gimplify_self_mod_expr): Likewise.
8144 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
8145 (graphite_create_new_loop_guard): Likewise.
8146 * graphite-sese-to-poly.c (my_long_long): Remove.
8147 (scop_ivs_can_be_represented): Adjust.
8148 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
8149 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
8150 * tree-loop-distribution.c (build_size_arg_loc): Use
8151 size_type_node.
8152 (generate_memset_zero): Simplify.
8153 * tree-mudflap.c: Use fold_convert, not convert.
8154 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
8155 its own type.
8156 (determine_offset): Likewise for DR_STEP.
8157 (valid_initializer_p): Likewise.
8158 * tree-profile.c (prepare_instrumented_value): Convert the pointer
8159 to an integer type of same size.
8160 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
8161 to sizetype without need.
8162 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8163 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
8164 * tree-ssa-loop-manip.c (create_iv): Likewise.
8165 (determine_exit_conditions): Adjust comment.
8166 * tree-ssa-pre.c (create_expression_by_pieces): Use
8167 convert_to_ptrofftype.
8168 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
8169 * varasm.c (array_size_for_constructor): Compute using double_ints.
8170
8171 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8172
8173 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
8174 when generating an integer result where possible. Short-cut
8175 comparison against 0 also for QImode.
8176
8177 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8178
8179 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
8180 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
8181 prototype.
8182 * config/spu/spu.c (spu_legitimize_reload_address): New function.
8183 (spu_legitimate_address_p): Do not check displacement if the base
8184 is an eliminable stack register.
8185
8186 2011-08-16 Anatoly Sokolov <aesok@post.ru>
8187
8188 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
8189 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8190 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
8191 m32c_preferred_output_reload_class): Remove.
8192 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
8193 Change rclass argument and return types to reg_class_t. Use
8194 reg_class_subset_p instead of class_sizes.
8195 (m32c_preferred_output_reload_class): Make static. Change rclass
8196 argument and return types to reg_class_t.
8197 (TARGET_PREFERRED_RELOAD_CLASS,
8198 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8199
8200 2011-08-16 Kai Tietz <ktietz@redhat.com>
8201
8202 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
8203
8204 2011-08-16 Richard GUenther <rguenther@suse.de>
8205
8206 PR tree-optimization/50082
8207 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
8208 warnings here, instead of ...
8209 (ssa_forward_propagate_and_combine): ... here.
8210 (forward_propagate_into_comparison_1): Adjust.
8211 (forward_propagate_into_comparison): Likewise.
8212 (forward_propagate_into_gimple_cond): Likewise.
8213 (forward_propagate_into_cond): Likewise.
8214
8215 2011-08-16 Andreas Schwab <schwab@redhat.com>
8216
8217 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
8218 instead of ggc_alloc_zone_vec_rtvec_def.
8219
8220 2011-08-16 Richard Guenther <rguenther@suse.de>
8221
8222 * tree.h (ptrofftype_p): New helper function.
8223 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
8224 offset verification.
8225 (verify_gimple_assign_binary): Likewise.
8226 * tree.c (build2_stat): Likewise.
8227 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
8228 (reset_evolution_in_loop): Likewise.
8229 * tree-chrec.h (build_polynomial_chrec): Likewise.
8230
8231 2011-08-16 Liang Wang <lwang1@marvell.com>
8232
8233 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
8234 ggc_alloc_zone_vec_rtvec_def.
8235
8236 2011-08-16 Richard Guenther <rguenther@suse.de>
8237
8238 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
8239 helper factored out from ...
8240 (extract_range_from_binary_expr_1): ... here. Re-structure
8241 to not glob handling too different tree codes.
8242
8243 2011-08-15 Richard Henderson <rth@redhat.com>
8244
8245 PR middle-end/50006
8246 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
8247 setting out to include allocate_stack named pattern as well.
8248 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
8249 * stmt.c (expand_stack_restore): Likewise.
8250
8251 2011-08-15 Richard Guenther <rguenther@suse.de>
8252
8253 PR middle-end/50082
8254 * fold-const.c (maybe_canonicalize_comparison_1): Properly
8255 convert the modified operand to the other operand type.
8256 (fold_comparison): Call maybe_canonicalize_comparison_1 with
8257 useless conversions stripped from comparison operands.
8258
8259 2011-08-15 Richard Guenther <rguenther@suse.de>
8260
8261 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
8262 (extract_range_from_unary_expr_1): Restructure.
8263
8264 2011-08-15 Richard Guenther <rguenther@suse.de>
8265
8266 PR tree-optimization/50058
8267 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
8268 copy matching.
8269
8270 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8271
8272 PR target/50022
8273 * config/arm/arm.c (output_move_double): Add 2 parameters
8274 to count the number of insns emitted and whether to emit or not.
8275 Use the flag to decide when to emit and count number of instructions
8276 that will be emitted.
8277 Handle case where output_move_double might be called for calculating
8278 lengths with an invalid constant.
8279 (arm_count_output_move_double_insns): Define.
8280 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
8281 (output_move_double): Adjust prototype.
8282 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
8283 output_move_double.
8284 ("*movdi_vfp_cortexa8"): Likewise and add attribute
8285 for ce_count.
8286 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
8287 ("*movdf_soft_insn"): Likewise.
8288 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
8289 ("*cirrus_thumb2_movdi"): Likewise.
8290 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
8291 ("*cirrus_movdf_hard_insn"): Likewise.
8292 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
8293 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
8294 ("mov<mode>_internal VMMX"): Likewise.
8295 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
8296
8297 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
8298
8299 * config/i386/i386.c (ix86_expand_round_sse4): New function.
8300 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
8301 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
8302 for TARGET_ROUND.
8303
8304 (rint<mode>2): Simplify TARGET_ROUND check.
8305 (floor<mode>2): Ditto.
8306 (ceil<mode>2): Ditto.
8307 (btrunc<mode>2): Ditto.
8308
8309 2011-08-14 Anatoly Sokolov <aesok@post.ru>
8310
8311 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
8312 as mmix_preferred_output_reload_class.
8313
8314 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
8315
8316 * PR target/49903
8317 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
8318 (branch_unspec): New insn.
8319 (branch): Beauty farm.
8320 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
8321 to be IF_THEN_ELSE.
8322 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
8323 New static functions.
8324 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
8325 Use CONST_INT_P. Beauty.
8326
8327 2011-08-12 Richard Henderson <rth@redhat.com>
8328
8329 PR rtl-opt/49994
8330 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
8331 * sched-deps.c (init_deps): Clear it.
8332 (deps_analyze_insn): Consume it.
8333 (sched_analyze_insn): Fill it.
8334
8335 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8336
8337 PR target/48328
8338 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
8339 for tbh instructions.
8340
8341 2011-08-12 Diego Novillo <dnovillo@google.com>
8342
8343 * data-streamer.h (streamer_write_zero): Rename from output_zero.
8344 (streamer_write_uhwi): Rename from lto_output_uleb128.
8345 (streamer_write_hwi): Rename from output_sleb128.
8346 (streamer_write_string): Rename from lto_output_string.
8347 (streamer_string_index): Rename from lto_string_index.
8348 (streamer_write_string_with_length): Rename from
8349 lto_output_string_with_length.
8350 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
8351 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
8352 (streamer_read_string): Rename from lto_input_string.
8353 (streamer_read_indexed_string): Rename from input_string_internal.
8354 (streamer_read_uhwi): Rename from lto_input_uleb128.
8355 (streamer_read_hwi): Rename from lto_input_sleb128.
8356 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
8357 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
8358 (streamer_write_enum): Rename from lto_output_enum.
8359 (streamer_read_enum): Rename from lto_input_enum.
8360 (streamer_write_record_start): Rename from output_record_start.
8361 (streamer_read_record_start): Rename from input_record_start.
8362 (streamer_write_bitpack): Rename from lto_output_bitpack.
8363 (streamer_read_bitpack): Rename from lto_input_bitpack.
8364 (streamer_write_char_stream): Rename from lto_output_1_stream.
8365 (streamer_read_uchar): Rename from lto_input_1_unsigned.
8366 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
8367 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
8368 (streamer_read_string_cst): Rename from input_string_cst.
8369 (streamer_read_chain): Rename from lto_input_chain.
8370 (streamer_alloc_tree): Rename from lto_materialize_tree.
8371 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
8372 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
8373 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
8374 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
8375 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
8376 (streamer_write_chain): Rename from lto_output_chain.
8377 (streamer_write_tree_header): Rename from lto_output_tree_header.
8378 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
8379 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
8380 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
8381 (streamer_write_builtin): Rename from lto_output_builtin_tree.
8382 (streamer_check_handled_ts_structures): Rename from
8383 check_handled_ts_structures.
8384 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
8385 (streamer_tree_cache_insert_at): Rename from
8386 lto_streamer_cache_insert_at.
8387 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
8388 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
8389 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
8390 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
8391 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
8392 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
8393 (write_identifier): Rename from output_identifier.
8394 (write_ts_common_tree_pointers): Rename from
8395 lto_output_ts_common_tree_pointers.
8396 (write_ts_vector_tree_pointers): Rename from
8397 lto_output_ts_vector_tree_pointers.
8398 (write_ts_complex_tree_pointers): Rename from
8399 lto_output_ts_complex_tree_pointers.
8400 (write_ts_decl_minimal_tree_pointers): Rename from
8401 lto_output_ts_decl_minimal_tree_pointers.
8402 (write_ts_decl_common_tree_pointers): Rename from
8403 lto_output_ts_decl_common_tree_pointers.
8404 (write_ts_decl_non_common_tree_pointers): Rename from
8405 lto_output_ts_decl_non_common_tree_pointers.
8406 (write_ts_decl_with_vis_tree_pointers): Rename from
8407 lto_output_ts_decl_with_vis_tree_pointers.
8408 (write_ts_field_decl_tree_pointers): Rename from
8409 lto_output_ts_field_decl_tree_pointers.
8410 (write_ts_function_decl_tree_pointers): Rename from
8411 lto_output_ts_function_decl_tree_pointers.
8412 (write_ts_type_common_tree_pointers): Rename from
8413 lto_output_ts_type_common_tree_pointers.
8414 (write_ts_type_non_common_tree_pointers): Rename from
8415 lto_output_ts_type_non_common_tree_pointers.
8416 (write_ts_list_tree_pointers): Rename from
8417 lto_output_ts_list_tree_pointers.
8418 (write_ts_vec_tree_pointers): Rename from
8419 lto_output_ts_vec_tree_pointers.
8420 (write_ts_exp_tree_pointers): Rename from
8421 lto_output_ts_exp_tree_pointers.
8422 (write_ts_block_tree_pointers): Rename from
8423 lto_output_ts_block_tree_pointers.
8424 (write_ts_binfo_tree_pointers): Rename from
8425 lto_output_ts_binfo_tree_pointers.
8426 (write_ts_constructor_tree_pointers): Rename from
8427 lto_output_ts_constructor_tree_pointers.
8428 (write_ts_target_option): Rename from lto_output_ts_target_option.
8429 (write_ts_translation_unit_decl_tree_pointers): Rename from
8430 lto_output_ts_translation_unit_decl_tree_pointers.
8431 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
8432 Rename from lto_streamer_cache_add_to_node_array.
8433 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
8434 (record_common_node): Rename from lto_record_common_node.
8435
8436 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
8437 declarations.
8438 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
8439 function.
8440 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
8441 unused function.
8442 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
8443 (ipa-reference.o): Likewise.
8444 * lto-section-out.c: Include data-streamer.h.
8445 * ipa-reference.c: Include data-streamer.h.
8446
8447 2011-08-12 Nick Clifton <nickc@redhat.com>
8448
8449 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
8450 * doc/md.texi (cmpstrn): Note that the comparison stops if both
8451 fetched bytes are zero.
8452 (cmpstr): Likewise.
8453 (cmpmem): Note that the comparison does not stop if both of the
8454 fetched bytes are zero.
8455
8456 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
8457
8458 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
8459 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
8460 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
8461 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
8462 to integer_type_node.
8463 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
8464 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
8465 * builtins.c (expand_builtin_in): Ditto.
8466 (mathfn_built_in_1): Ditto.
8467 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
8468 BUILT_IN_IFLOOR.
8469 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
8470 BUILT_IN_IROUND.
8471 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
8472 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
8473 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
8474
8475 2011-08-12 Richard Guenther <rguenther@suse.de>
8476
8477 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
8478
8479 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
8480
8481 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
8482
8483 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
8484
8485 * config/arm/arm.c (get_label_padding): New function.
8486 (create_fix_barrier, arm_reorg): Use it.
8487
8488 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
8489
8490 PR target/49781
8491 * config/i386/i386.md (*lea_5_zext): New.
8492 (*lea_6_zext): Ditto.
8493 * config/i386/predicates.md (const_32bit_mask): New predicate.
8494 (lea_address_operand): Reject AND.
8495 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
8496 const_32bit_mask immediate.
8497 (ix86_print_operand_address): Handle AND.
8498 (memory_address_length): Ditto.
8499
8500 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
8501 Brian Hackett <bhackett1024@gmail.com>
8502
8503 * plugin.def: Add event for finish_decl.
8504 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
8505 * c-decl.c (finish_decl): Invoke callbacks on above event.
8506 * doc/plugins.texi: Document above event.
8507
8508 2011-08-11 Richard Guenther <rguenther@suse.de>
8509
8510 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
8511 lookups, make looking through aggregate copies stronger.
8512
8513 2011-08-11 Richard Henderson <rth@redhat.com>
8514
8515 PR bootstrap/50018
8516 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
8517
8518 2011-08-11 Richard Guenther <rguenther@suse.de>
8519
8520 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
8521 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
8522 (vrp_visit_stmt): Likewise.
8523
8524 2011-08-11 Richard Guenther <rguenther@suse.de>
8525
8526 PR middle-end/50040
8527 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
8528 load of the other piece with TREE_NO_WARNING.
8529 * tree-flow.h (warn_uninit): Adjust prototype.
8530 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
8531 the base variable and the expression that is used separately.
8532 Properly query all TREE_NO_WARNING flags.
8533 (struct walk_data): Remove.
8534 (warn_uninitialized_var): Likewise.
8535 (warn_uninitialized_vars): Do not walk gimple pieces but simply
8536 look at all SSA uses of the statement. Handle unused memory
8537 separately.
8538 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
8539
8540 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
8541
8542 * config/rx/rx.md (movsicc): Allow register to register transfers.
8543 (*movsicc): Likewise.
8544 (*stcc): Restrict this pattern to EQ and NE compares.
8545 (*stcc_reg): New pattern. Works for any comparison but only for
8546 register transfers.
8547
8548 2011-08-11 Diego Novillo <dnovillo@google.com>
8549
8550 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
8551 Call stream_write_tree instead of output_record_start.
8552 (lto_output_ts_binfo_tree_pointers): Likewise.
8553
8554 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
8555 Convert it to a macro.
8556 (stream_read_tree): Likewise.
8557
8558 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
8559 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
8560
8561 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
8562 and tree_read_bitfields.
8563 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
8564 (lto_write_tree): Call it.
8565 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
8566 * streamer-hooks.h (struct streamer_hooks): Remove fields
8567 name, is_streamable and alloc_tree. Update all users.
8568 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
8569 (lto_materialize_tree): ... here.
8570 Handle CALL_EXPR codes.
8571 Remove call to lto_streamer_cache_append.
8572 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
8573 * tree-streamer.h (tree_read_bitfields): Declare.
8574
8575 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
8576 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
8577 * tree-streamer.h (stream_read_tree): New. Replace all calls
8578 to lto_input_tree with it.
8579 (stream_write_tree): New. Replace all calls to lto_output_tree,
8580 lto_output_tree_ref and lto_output_tree_or_ref with it.
8581 * lto-streamer-in.c (lto_read_tree): Inline code from
8582 lto_streamer_read_tree.
8583 (lto_input_tree): Move from tree-streamer-in.c.
8584 * lto-streamer-out.c (lto_output_tree_ref): Make static.
8585 Remove handling of NULL values for EXPR.
8586 Do not handle EXPRs that are not indexable.
8587 (lto_write_tree): Move from tree-streamer-out.c.
8588 Inline lto_streamer_write_tree.
8589 (lto_output_tree): Move from tree-streamer-out.c.
8590 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
8591 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
8592 (lto_preload_common_nodes): Likewise.
8593 Remove assertions and adjustments for nodes
8594 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
8595 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
8596 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
8597 * lto-streamer.h (lto_input_tree): Declare.
8598 (lto_output_tree_ref): Remove.
8599 * streamer-hooks.h (struct streamer_hooks): Remove fields
8600 preload_common_nodes, indexable_with_decls_p,
8601 pack_value_fields, unpack_value_fields and output_tree_header.
8602 Update all users.
8603 * tree-streamer-in.c (lto_materialize_tree): Make extern.
8604 (lto_input_tree_pointers): Likewise.
8605 (lto_read_tree): Move to lto-streamer-in.c.
8606 (lto_input_integer_cst): Make extern.
8607 (lto_get_pickled_tree): Likewise.
8608 (lto_get_builtin_tree): Likewise.
8609 (lto_input_tree): Move to lto-streamer-in.c.
8610 * tree-streamer-out.c (pack_value_fields): Make extern.
8611 (lto_output_tree_or_ref): Remove. Replace all callers with
8612 calls to stream_write_tree.
8613 (lto_output_builtin_tree): Make extern.
8614 (lto_streamer_write_tree): Inline into lto_write_tree.
8615 (lto_output_tree_pointers): Make extern.
8616 (lto_output_tree_header): Likewise.
8617 (lto_output_integer_cst): Likewise.
8618 (lto_write_tree): Move to lto-streamer-out.c.
8619 (lto_output_tree): Likewise.
8620 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
8621 (preload_common_nodes): Likewise.
8622 (lto_streamer_cache_create): Call it.
8623 * tree-streamer.h: Include streamer-hooks.h.
8624 (stream_write_tree): New.
8625 (stream_read_tree): New.
8626 (lto_input_tree): Remove.
8627 (lto_materialize_tree): Declare.
8628 (lto_input_tree_pointers): Declare.
8629 (lto_get_pickled_tree): Declare.
8630 (lto_get_builtin_tree): Declare.
8631 (lto_input_integer_cst): Declare.
8632 (lto_output_tree_header): Declare.
8633 (pack_value_fields): Declare.
8634 (lto_output_tree_pointers): Declare.
8635 (lto_output_integer_cst): Declare.
8636 (lto_output_builtin_tree): Declare.
8637
8638 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8639
8640 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
8641 only if producer writes to the register given by regno.
8642
8643 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8644 Alexander Monakov <amonakov@ispras.ru>
8645
8646 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
8647 (sched_get_condition_with_rev_uncached): ... this. Factor out
8648 condition caching logic into ...
8649 (sched_get_condition_with_rev): ... this. Reimplement. Do not
8650 attempt to use cache for instructions with zero luid.
8651 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
8652 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
8653
8654 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8655
8656 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
8657 get_seqno_for_a_jump. Update the caller.
8658 (get_seqno_by_succs): New. Use it ...
8659 (get_seqno_for_a_jump): ... here to find a seqno if looking at
8660 predecessors was not sufficient.
8661 (get_seqno_by_preds): Include head in iteration range, exclude insn.
8662
8663 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8664
8665 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
8666
8667 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8668
8669 * sel-sched-ir.h (register_unavailable_p): Declare.
8670 * sel-sched-ir.c (register_unavailable_p): New. Use it...
8671 (set_unavailable_target_for_expr): ... here to properly test
8672 availability of a register.
8673 (speculate_expr): Ditto.
8674 * sel-sched.c (substitute_reg_in_expr): Ditto.
8675 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
8676
8677 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8678
8679 * sel-sched.c (verify_target_availability): Fix usage of
8680 hard_regno_nregs.
8681
8682 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8683
8684 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
8685 recognized by cannot_copy_insn_p hook and volatile instructions.
8686
8687 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8688
8689 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
8690
8691 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
8692
8693 * doc/md.texi (define_bypass): Say that the instruction names can
8694 be filename-style globs.
8695 * Makefile.in (FNMATCH_H): Define.
8696 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
8697 * genattrtab.c: Include fnmatch.h.
8698 (bypass_list): Change field name from "insn" to "pattern".
8699 (gen_bypass_1): Update accordingly.
8700 (process_bypasses): Use fnmatch to check for matches between
8701 insn reservations and define_bypasses.
8702 * genautomata.c: Include fnmatch.h.
8703 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
8704 and out_pattern respectively.
8705 (gen_bypass, insert_bypass): Update accordingly.
8706 (for_each_matching_insn, process_bypass_2, process_bypass_1)
8707 (process_bypass): New functions.
8708 (process_decls): Use process_bypass. Update after field name changes.
8709
8710 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
8711
8712 PR target/49687
8713 * config/avr/avr.md (smulqi3_highpart): New insn.
8714 (umulqi3_highpart): New insn.
8715 (*subqi3.ashiftrt7): New insn.
8716 (smulhi3_highpart): New expander.
8717 (umulhi3_highpart): Nex expander.
8718 (*smulhi3_highpart_call): New insn.
8719 (*umulhi3_highpart_call): New insn.
8720 (extend_u): New code attribute.
8721 (extend_prefix): Rename code attribute to extend_su.
8722 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
8723 widening QI/HI multiply.
8724
8725 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
8726
8727 PR tree-optimization/50039
8728 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
8729 that DEF_STMT has a stmt_vec_info.
8730
8731 2011-08-10 Richard Guenther <rguenther@suse.de>
8732
8733 * tree.h (can_trust_pointer_alignment): Remove.
8734 * builtins.c (can_trust_pointer_alignment): Remove.
8735
8736 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8737
8738 * c-typeck.c (scalar_to_vector): New function. Try scalar to
8739 vector conversion.
8740 (stv_conv): New enum for scalar_to_vector return type.
8741 (build_binary_op): Adjust.
8742 * doc/extend.texi: Description of scalar to vector expansion.
8743
8744 2011-08-10 Richard Guenther <rguenther@suse.de>
8745
8746 * tree.h (get_pointer_alignment): Remove max-align argument.
8747 (get_object_alignment): Likewise.
8748 * builtins.c (get_object_alignment_1): Adjust.
8749 (get_object_alignment): Remove max-align argument.
8750 (get_pointer_alignment): Likewise.
8751 (expand_builtin_strlen): Adjust.
8752 (expand_builtin_memcpy): Likewise.
8753 (expand_builtin_mempcpy_args): Likewise.
8754 (expand_builtin_strncpy): Likewise.
8755 (expand_builtin_memset_args): Likewise.
8756 (expand_builtin_memcmp): Likewise.
8757 (expand_builtin_strcmp): Likewise.
8758 (expand_builtin_strncmp): Likewise.
8759 (get_builtin_sync_mem): Likewise.
8760 (fold_builtin_memset): Likewise.
8761 (fold_builtin_memory_op): Likewise.
8762 (expand_builtin_memory_chk): Likewise.
8763 * emit-rtl.c (get_mem_align_offset): Likewise.
8764 (set_mem_attributes_minus_bitpos): Likewise.
8765 * expr.c (expand_assignment): Likewise.
8766 (expand_expr_real_1): Likewise.
8767 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
8768 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
8769 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
8770 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
8771 * value-prof.c (gimple_stringops_transform): Likewise.
8772
8773 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
8774
8775 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
8776 * doc/tm.texi: Regenerate.
8777
8778 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
8779
8780 PR target/29560
8781 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
8782 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
8783 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
8784 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
8785 shift target is unused.
8786
8787 2011-08-10 Richard Guenther <rguenther@suse.de>
8788
8789 PR tree-optimization/49937
8790 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
8791 using get_object_alignment_1.
8792
8793 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
8794
8795 * config/i386/i386.c (ix86_emit_i387_round): New function.
8796 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
8797 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
8798 Use ix86_emit_i387_round to expand round function for i387 math.
8799 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
8800 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
8801
8802 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8803
8804 * config/sync.c: Move to ../libgcc.
8805 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
8806 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
8807 Remove.
8808
8809 2011-08-09 Anatoly Sokolov <aesok@post.ru>
8810
8811 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
8812 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
8813 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
8814 Change 'from' and 'to' arguments type to reg_class_t.
8815 (TARGET_REGISTER_MOVE_COST): Define.
8816
8817 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
8818
8819 PR target/50026
8820 Revert:
8821 PR rtl-optimization/49990
8822 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
8823 ignore classes which can not change mode.
8824 (find_costs_and_classes): Ditto.
8825
8826 2011-08-09 Richard Guenther <rguenther@suse.de>
8827
8828 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
8829 information for ranges with only negative values.
8830 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
8831 BIT_AND_EXPR handling to handle ranges with negative values.
8832
8833 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
8834
8835 * config/i386/i386.c: Remove traling spaces.
8836 * config/i386/sse.md: Likewise.
8837 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
8838 (*fma_fmsub_<mode>): Likewise.
8839 (*fma_fnmadd_<mode>): Likewise.
8840 (*fma_fnmsub_<mode>): Likewise.
8841
8842 2011-08-09 Nick Clifton <nickc@redhat.com>
8843
8844 * config/rx/rx.md: Disable extender peepholes at -O3.
8845
8846 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
8847
8848 PR target/49781
8849 * config/i386/i386.md (reload_noff_load): New.
8850 (reload_noff_store): Ditto.
8851 * config/i386/i386.c (ix86_secondary_reload): Use
8852 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
8853 double-word moves from/to non-offsetable addresses instead of
8854 generating XMM temporary.
8855
8856 2011-08-09 Anatoly Sokolov <aesok@post.ru>
8857
8858 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
8859
8860 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
8861
8862 PR tree-optimization/50014
8863 * tree-vect-loop.c (vectorizable_reduction): Get def type before
8864 calling vect_get_vec_def_for_stmt_copy ().
8865
8866 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
8867
8868 PR rtl-optimization/49990
8869 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
8870 ignore classes which can not change mode.
8871 (find_costs_and_classes): Ditto.
8872
8873 2011-08-08 Richard Henderson <rth@redhat.com>
8874
8875 PR middle-end/49990
8876 * config/i386/i386.c (ix86_expand_prologue): Call
8877 for SEH target gen_prologue_use instead of gen_blockage
8878 at prologue's end.
8879
8880 2011-08-08 Martin Jambor <mjambor@suse.cz>
8881
8882 PR middle-end/49923
8883 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
8884 memory alignment.
8885
8886 2011-08-08 Diego Novillo <dnovillo@google.com>
8887
8888 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
8889 (DATA_STREAMER_H): New.
8890 (GIMPLE_STREAMER_H): New.
8891 (TREE_STREAMER_H): New.
8892 (STREAMER_HOOKS_H): New.
8893 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
8894 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
8895 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
8896 (data-streamer.o): New.
8897 (data-streamer-in.o): New.
8898 (data-streamer-out.o): New.
8899 (gimple-streamer-in.o): New.
8900 (gimple-streamer-out.o): New.
8901 (streamer-hooks.o): New.
8902 (tree-streamer.o): New.
8903 (tree-streamer-in.o): New.
8904 (tree-streamer-out.o): New.
8905 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
8906 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
8907 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8908 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
8909 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8910 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
8911 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
8912 (ipa-inline-analysis.o): Likewise.
8913 (ipa-pure-const.o): Likewise.
8914 * data-streamer-in.c: New.
8915 * data-streamer-out.c: New.
8916 * data-streamer.c: New.
8917 * data-streamer.h: New.
8918 * gimple-streamer-in.c: New.
8919 * gimple-streamer-out.c: New.
8920 * gimple-streamer.h: New.
8921 * ipa-inline-analysis.c: Include data-streamer.h.
8922 * ipa-prop.c: Include data-streamer.h.
8923 * ipa-pure-const.c: Include data-streamer.h.
8924 * lto-cgraph.c: Include data-streamer.h.
8925 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
8926 (lto_input_widest_uint_uleb128): Likewise.
8927 (lto_input_sleb128): Likewise.
8928 (bp_unpack_var_len_unsigned): Likewise.
8929 (bp_unpack_var_len_int): Likewise.
8930 * lto-section-out.c (lto_output_uleb128_stream): Move to
8931 data-streamer-out.c.
8932 (lto_output_widest_uint_uleb128_stream): Likewise.
8933 (lto_output_sleb128_stream): Likewise.
8934 (bp_pack_var_len_unsigned): Likewise.
8935 (bp_pack_var_len_int): Likewise.
8936 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
8937 (struct string_slot): Remove. Update all users.
8938 (lto_tag_check_set): Make extern.
8939 (lto_tag_check_range): Move to lto-streamer.h.
8940 (lto_tag_check): Likewise.
8941 (hash_string_slot_node): Remove. Update all users.
8942 (eq_string_slot_node): Remove. Update all users.
8943 (string_for_index): Move to data-streamer-in.c
8944 (input_string_internal): Likewise.
8945 (input_string_cst): Move to tree-streamer-in.c.
8946 (input_identifier): Likewise.
8947 (lto_input_string): Move to data-streamer-in.c
8948 (input_record_start): Move to data-streamer.h
8949 (canon_file_name): Use new definition of struct string_slot
8950 from data-streamer.h. Set S_SLOT.LEN.
8951 (lto_input_location): Make extern.
8952 (lto_input_chain): Move to tree-streamer-in.c.
8953 (lto_init_eh): Make extern.
8954 (input_phi): Move to gimple-streamer-in.c.
8955 (input_gimple_stmt): Likewise.
8956 (input_bb): Likewise.
8957 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
8958 (unpack_ts_real_cst_value_fields): Likewise.
8959 (unpack_ts_fixed_cst_value_fields): Likewise.
8960 (unpack_ts_decl_common_value_fields): Likewise.
8961 (unpack_ts_decl_wrtl_value_fields): Likewise.
8962 (unpack_ts_decl_with_vis_value_fields): Likewise.
8963 (unpack_ts_function_decl_value_fields): Likewise.
8964 (unpack_ts_type_common_value_fields): Likewise.
8965 (unpack_ts_block_value_fields): Likewise.
8966 (unpack_ts_translation_unit_decl_value_fields): Likewise.
8967 (unpack_value_fields): Likewise.
8968 (lto_materialize_tree): Likewise.
8969 (lto_input_ts_common_tree_pointers): Likewise.
8970 (lto_input_ts_vector_tree_pointers): Likewise.
8971 (lto_input_ts_complex_tree_pointers): Likewise.
8972 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
8973 (lto_input_ts_decl_common_tree_pointers): Likewise.
8974 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
8975 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
8976 (lto_input_ts_field_decl_tree_pointers): Likewise.
8977 (lto_input_ts_function_decl_tree_pointers): Likewise.
8978 (lto_input_ts_type_common_tree_pointers): Likewise.
8979 (lto_input_ts_type_non_common_tree_pointers): Likewise.
8980 (lto_input_ts_list_tree_pointers): Likewise.
8981 (lto_input_ts_vec_tree_pointers): Likewise.
8982 (lto_input_ts_exp_tree_pointers): Likewise.
8983 (lto_input_ts_block_tree_pointers): Likewise.
8984 (lto_input_ts_binfo_tree_pointers): Likewise.
8985 (lto_input_ts_constructor_tree_pointers): Likewise.
8986 (lto_input_ts_target_option): Likewise.
8987 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
8988 (lto_input_tree_pointers): Likewise.
8989 (lto_get_pickled_tree): Likewise.
8990 (lto_get_builtin_tree): Likewise.
8991 (lto_read_tree): Likewise.
8992 (lto_input_integer_cst): Likewise.
8993 (lto_input_tree): Likewise.
8994 * lto-streamer-out.c: Include data-streamer.h,
8995 gimple-streamer.h and streamer-hooks.h.
8996 (struct string_slot): Move to data-streamer.h.
8997 (hash_string_slot_node): Likewise.
8998 (eq_string_slot_node): Likewise.
8999 (lto_string_index): Move to data-streamer-out.c.
9000 (lto_output_string_with_length): Likewise.
9001 (lto_output_string): Likewise.
9002 (output_string_cst): Move to tree-streamer-out.c.
9003 (output_identifier): Likewise.
9004 (output_zero): Move to data-streamer-out.c
9005 (output_uleb128): Likewise.
9006 (output_sleb128): Likewise.
9007 (output_record_start): Move to data-streamer.h
9008 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
9009 (pack_ts_real_cst_value_fields): Likewise.
9010 (pack_ts_fixed_cst_value_fields): Likewise.
9011 (pack_ts_decl_common_value_fields): Likewise.
9012 (pack_ts_decl_wrtl_value_fields): Likewise.
9013 (pack_ts_decl_with_vis_value_fields): Likewise.
9014 (pack_ts_function_decl_value_fields): Likewise.
9015 (pack_ts_type_common_value_fields): Likewise.
9016 (pack_ts_block_value_fields): Likewise.
9017 (pack_ts_translation_unit_decl_value_fields): Likewise.
9018 (pack_value_fields): Likewise.
9019 (lto_output_chain): Likewise.
9020 (lto_output_ts_common_tree_pointers): Likewise.
9021 (lto_output_ts_vector_tree_pointers): Likewise.
9022 (lto_output_ts_complex_tree_pointers): Likewise.
9023 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
9024 (lto_output_ts_decl_common_tree_pointers): Likewise.
9025 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
9026 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
9027 (lto_output_ts_field_decl_tree_pointers): Likewise.
9028 (lto_output_ts_function_decl_tree_pointers): Likewise.
9029 (lto_output_ts_type_common_tree_pointers): Likewise.
9030 (lto_output_ts_type_non_common_tree_pointers): Likewise.
9031 (lto_output_ts_list_tree_pointers): Likewise.
9032 (lto_output_ts_vec_tree_pointers): Likewise.
9033 (lto_output_ts_exp_tree_pointers): Likewise.
9034 (lto_output_ts_block_tree_pointers): Likewise.
9035 (lto_output_ts_binfo_tree_pointers): Likewise.
9036 (lto_output_ts_constructor_tree_pointers): Likewise.
9037 (lto_output_ts_target_option): Likewise.
9038 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
9039 (lto_output_tree_pointers): Likewise.
9040 (lto_output_tree_header): Likewise.
9041 (lto_output_builtin_tree): Likewise.
9042 (lto_write_tree): Likewise.
9043 (lto_output_integer_cst): Likewise.
9044 (lto_output_tree): Likewise.
9045 (output_phi): Move to gimple-streamer-out.c.
9046 (output_gimple_stmt): Likewise.
9047 (output_bb): Likewise.
9048 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
9049 (streamer_hooks): Move to streamer-hooks.c.
9050 (check_handled_ts_structures): Move to tree-streamer.c
9051 (lto_streamer_cache_add_to_node_array): Likewise.
9052 (lto_streamer_cache_insert_1): Likewise.
9053 (lto_streamer_cache_insert): Likewise.
9054 (lto_streamer_cache_insert_at): Likewise.
9055 (lto_streamer_cache_append): Likewise.
9056 (lto_streamer_cache_lookup): Likewise.
9057 (lto_streamer_cache_get): Likewise.
9058 (lto_record_common_node): Likewise.
9059 (lto_preload_common_nodes): Likewise.
9060 (lto_streamer_cache_create): Likewise.
9061 (lto_streamer_cache_delete): Likewise.
9062 (streamer_hooks_init): Move to streamer-hooks.c.
9063 * lto-streamer.h: Include diagnostic.h
9064 (struct output_block, struct lto_input_block,
9065 struct data_in, struct bitpack_d): Remove forward declarations.
9066 (struct bitpack_d): Move to data-streamer.h.
9067 (struct lto_streamer_cache_d): Move to tree-streamer.h.
9068 (struct streamer_hooks): Move to streamer-hooks.h.
9069 (bp_pack_var_len_unsigned): Move to data-streamer.h.
9070 (bp_pack_var_len_int): Likewise.
9071 (bp_unpack_var_len_unsigned): Likewise.
9072 (bp_unpack_var_len_int): Likewise.
9073 (lto_input_location): Declare.
9074 (lto_tag_check_set): Declare.
9075 (lto_init_eh): Declare.
9076 (lto_output_tree_ref): Declare.
9077 (lto_output_location): Declare.
9078 (bitpack_create): Move to data-streamer.h.
9079 (bp_pack_value): Likewise.
9080 (lto_output_bitpack): Likewise.
9081 (lto_input_bitpack): Likewise.
9082 (bp_unpack_value): Likewise.
9083 (lto_output_1_stream): Likewise.
9084 (lto_input_1_unsigned): Likewise.
9085 (lto_output_int_in_range): Likewise.
9086 (lto_input_int_in_range): Likewise.
9087 (bp_pack_int_in_range): Likewise.
9088 (bp_unpack_int_in_range): Likewise.
9089 (lto_output_enum): Likewise.
9090 (lto_input_enum): Likewise.
9091 (bp_pack_enum): Likewise.
9092 (bp_unpack_enum): Likewise.
9093 * streamer-hooks.c: New.
9094 * streamer-hooks.h: New.
9095 * tree-streamer-in.c: New.
9096 * tree-streamer-out.c: New.
9097 * tree-streamer.c: New.
9098 * tree-streamer.h: New.
9099
9100 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9101
9102 * gthr-posix95.h: Remove.
9103 * gthr.h [_PTHREADS95]: Remove.
9104 * configure.ac (enable_threads): Remove posix95.
9105 * configure: Regenerate.
9106 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
9107
9108 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
9109
9110 PR target/49781
9111 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
9112 SImode addresses.
9113 (ix86_print_operand_address): Handle zero-extended addresses.
9114 (memory_address_length): Add length of addr32 prefix for
9115 zero-extended addresses.
9116 (ix86_secondary_reload): Handle moves to/from double-word general
9117 registers from/to zero-extended addresses.
9118 * config/i386/predicates.md (lea_address_operand): Reject
9119 zero-extended operands.
9120
9121 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
9122
9123 PR other/48007
9124 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
9125
9126 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
9127 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
9128
9129 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
9130 (_Unwind_Context_Reg_Val): Likewise.
9131 (_Unwind_Get_Unwind_Word): Likewise.
9132 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
9133 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
9134 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
9135 for EXTENDED_CONTEXT_BIT.
9136 (__frame_state_for): Likewise.
9137 (uw_init_context_1): Likewise.
9138 (_Unwind_GetGR): Updated.
9139 (_Unwind_SetGR): Likewise.
9140 (_Unwind_GetGRPtr): Likewise.
9141 (_Unwind_SetGRPtr): Likewise.
9142 (_Unwind_SetGRValue): Likewise.
9143 (_Unwind_GRByValue): Likewise.
9144 (uw_install_context_1): Likewise.
9145
9146 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
9147 ASSUME_EXTENDED_UNWIND_CONTEXT.
9148 * doc/tm.texi: Regenerated.
9149
9150 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9151
9152 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
9153
9154 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9155
9156 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
9157 Linux/GNU-specific.
9158 (DEC Alpha Options, -mtune): Likewise.
9159 (MIPS Options, -march): native is supported on IRIX.
9160
9161 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9162
9163 * config/sparc/driver-sparc.c: New file.
9164 * config/sparc/x-sparc: New file.
9165 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
9166 * config/sparc/sparc.opt (native): New value for enum processor_type.
9167 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
9168 * config/sparc/sparc.c (sparc_option_override): Abort if
9169 PROCESSOR_NATIVE gets here.
9170 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
9171 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
9172 DRIVER_SELF_SPECS): Define.
9173 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
9174 (SPARC Options, -mtune): Likewise.
9175 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
9176 Substitute result.
9177 * configure: Regenerate.
9178 * Makefile.in (EXTRA_GCC_LIBS): Set.
9179 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
9180 (cpp$(exeext)): Likewise.
9181
9182 2011-08-08 Richard Guenther <rguenther@suse.de>
9183
9184 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
9185 split out from ...
9186 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
9187 by composition.
9188
9189 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
9190
9191 PR tree-optimization/50005
9192 * ipa-inline-analysis (remap_predicate): Add cast to
9193 silence signed/unsigned comparison warning.
9194
9195 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
9196
9197 * modulo-sched.c (get_sched_window): Use a table for the debug output.
9198 Print the current ii.
9199 (sms_schedule_by_order): Reduce whitespace in dump line.
9200
9201 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
9202
9203 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
9204 and one loop for successors. Fix upper bound of memory range.
9205
9206 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9207
9208 PR target/50001
9209 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
9210 (TARGET_INSTANTIATE_DECLS): New define.
9211
9212 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
9213 Mikael Morin <mikael.morin@sfr.fr>
9214
9215 * Makefile.in (INCLUDES_FOR_TARGET): New.
9216 (LIBGCC2_CFLAGS): Use it.
9217 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
9218
9219 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9220
9221 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
9222 frame->save_regs_using_mov calculation.
9223
9224 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9225
9226 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
9227 * config/i386/sse.md (castmode): New mode attribute.
9228 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
9229 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
9230
9231 2011-08-05 Jan Hubicka <jh@suse.cz>
9232
9233 PR middle-end/49494
9234 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
9235
9236 2011-08-05 Jan Hubicka <jh@suse.cz>
9237
9238 PR middle-end/49500
9239 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
9240 handle aliases.
9241 (create_emultls_var):New function.
9242 (ipa_lower_emutls): Handle aliases correctly.
9243
9244 2011-08-05 Jan Hubicka <jh@suse.cz>
9245
9246 PR middle-end/49735
9247 * ipa-inline.c (recursive_inlining): Look through aliases.
9248
9249 2011-08-05 Jason Merrill <jason@redhat.com>
9250
9251 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
9252 declarations to beginning of function.
9253
9254 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
9255
9256 PR rtl-optimization/49900
9257 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
9258 ensure basic blocks stay in the same order.
9259
9260 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
9261
9262 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
9263 store_bit_field.
9264 (s390_expand_atomic): Same.
9265
9266 2011-08-05 Richard Henderson <rth@redhat.com>
9267
9268 PR rtl-opt/49977
9269 * dwarf2cfi.c (scan_insn_after): Split out of ...
9270 (scan_trace): ... here. Correctly place notes wrt sequences.
9271
9272 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
9273 Richard Henderson <rth@redhat.com>
9274
9275 PR rtl-opt/49982
9276 * expr.c (fixup_args_size_notes): Look through no-op moves.
9277
9278 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9279
9280 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
9281 of "m" for operand 0. Add type and mode attribute.
9282 (*pushxf_nointeger"): Use "<" constraint for operand 0.
9283 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
9284 constraint instead of "o" for opreand 1.
9285 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
9286 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
9287 operand 0, alternative 4.
9288 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
9289
9290 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9291
9292 * config/i386/predicates.md (lea_address_operand): Rename from
9293 no_seg_address_operand.
9294 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
9295 (*lea_1_zext): Ditto.
9296 (*lea_2): Ditto.
9297 (*lea_2_zext): Ditto.
9298
9299 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9300
9301 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
9302 parts.base and parts.index.
9303 * config/i386/predicates.md (aligned_operand): Ditto.
9304 (cmpxchg8b_pic_memory_operand): Ditto.
9305
9306 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9307
9308 * config/soft-fp: Move to ../libgcc.
9309 * Makefile.in (SFP_MACHINE): Remove.
9310 (libgcc-support): Remove $(SFP_MACHINE) dependency.
9311 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
9312 * config/arm/t-arm-softfp: Move to
9313 ../libgcc/config/arm/t-softfp.
9314 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
9315 * config/c6x/t-c6x-softfp: Remove.
9316 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
9317 * config/i386/t-fprules-softfp: Move to
9318 ../libgcc/config/t-softfp-tf.
9319 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
9320 * config/ia64/t-fprules-softfp: Remove.
9321 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
9322 * config/lm32/t-fprules-softfp: Remove.
9323 * config/moxie/sfp-machine.h: Remove.
9324 * config/moxie/t-moxie-softfp: Remove.
9325 * config/rs6000/darwin-ldouble-format: Move to
9326 ../libgcc/config/rs6000/ibm-ldouble-format.
9327 * config/rs6000/darwin-ldouble.c: Move to
9328 ../libgcc/config/rs6000/ibm-ldouble.c
9329 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
9330 * config/rs6000/libgcc-ppc64.ver: Likewise.
9331 * config/rs6000/sfp-machine.h: Likewise.
9332 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
9333 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
9334 (LIB2FUNCS_EXTRA): Remove.
9335 (TARGET_LIBGCC2_CFLAGS): Remove.
9336 * config/rs6000/t-aix52: Likewise
9337 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
9338 $(srcdir)/config/rs6000/darwin-ldouble.c.
9339 (SHLIB_MAPFILES): Remove.
9340 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
9341 $(srcdir)/config/rs6000/darwin-ldouble.c.
9342 * config/rs6000/t-fprules-softfp: Move to
9343 ../libgcc/config/t-softfp-sfdf.
9344 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
9345 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
9346 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
9347 $(srcdir)/config/rs6000/darwin-ldouble.c.
9348 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
9349 * config/score/t-score-softfp: Remove.
9350 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
9351 soft-fp/t-softfp from tmake_file.
9352 (arm*-*-uclinux*): Likewise.
9353 (arm*-*-ecos-elf): Likewise.
9354 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
9355 (arm*-*-rtems*): Likewise.
9356 (arm*-*-elf): Likewise.
9357 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
9358 tmake_file.
9359 (moxie-*-uclinux*): Likewise.
9360 (moxie-*-rtems*): Likewise.
9361 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
9362 tmake_file.
9363 (lm32-*-rtems*): Likewise.
9364 (lm32-*-uclinux*): Likewise.
9365 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
9366 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
9367 (powerpc-*-linux*, powerpc64-*-linux*): Remove
9368 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
9369 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
9370 tmake_file.
9371 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
9372 tmake_file.
9373 (tic6x-*-uclinux): Likewise.
9374 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
9375 soft-fp/t-softfp from tmake_file.
9376 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
9377 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
9378 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
9379 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
9380 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
9381
9382 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9383
9384 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
9385 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
9386 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
9387 TPBIT, TPBIT_FUNCS.
9388 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
9389 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
9390 Remove.
9391 * config/arm/t-vxworks: Likewise.
9392 * config/arm/t-wince-pe: Likewise.
9393 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
9394 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9395 * config/bfin/t-bfin-elf: Likewise.
9396 * config/bfin/t-bfin-linux: Likewise.
9397 * config/bfin/t-bfin-uclinux: Likewise.
9398 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
9399 Remove.
9400 * config/fr30/t-fr30: Likewise.
9401 * config/frv/t-frv: Likewise.
9402 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
9403 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9404 * config/m32c/t-m32c: Likewise.
9405 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
9406 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9407 * config/mcore/t-mcore: Likewise.
9408 * config/mep/t-mep: Likewise.
9409 * config/microblaze/t-microblaze: Likewise.
9410 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
9411 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9412 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
9413 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9414 * config/mn10300/t-linux: Remove.
9415 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9416 * config/pdp11/t-pdp11: Likewise.
9417 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
9418 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
9419 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9420 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
9421 * config/rs6000/t-aix52: Likewise.
9422 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
9423 $(srcdir)/config/rs6000/ppc64-fp.c.
9424 * config/rs6000/t-fprules-fpbit: Remove.
9425 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
9426 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9427 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
9428 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9429 * config/sparc/t-elf: Likewise.
9430 * config/sparc/t-leon: Likewise.
9431 * config/sparc/t-leon3: Likewise.
9432 * config/spu/t-spu-elf: Likewise.
9433 (DPBIT_FUNCS): Remove.
9434 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9435 * config/v850/t-v850: Likewise.
9436 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
9437 (avr-*-*): Likewise.
9438 (h8300-*-rtems*): Set libgcc_tm_file.
9439 (h8300-*-elf*): Likewise.
9440 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
9441 tmake_file.
9442 (powerpc-*-eabisim*): Likewise.
9443 (powerpc-*-elf*): Likewise.
9444 (powerpc-*-eabialtivec*): Likewise.
9445 (powerpc-xilinx-eabi*): Likewise.
9446 (powerpc-*-eabi*): Likewise.
9447 (powerpc-*-rtems*): Likewise.
9448 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
9449 (powerpcle-*-elf*): Likewise.
9450 (powerpcle-*-eabisim*): Likewise.
9451 (powerpcle-*-eabi*): Likewise.
9452 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
9453 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
9454 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
9455 Remove.
9456
9457 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9458
9459 * Makefile.in (UNWIND_H): Remove.
9460 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
9461 ../libgcc/Makefile.in.
9462 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
9463 (LIBUNWINDDEP): Remove.
9464 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
9465 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
9466 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
9467 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
9468 Don't copy $(UNWIND_H).
9469 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
9470 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
9471 * aclocal.m4: Regenerate.
9472 * configure: Regenerate.
9473 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
9474 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
9475 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
9476 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
9477 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
9478 * config/arm/libunwind.S, config/arm/pr-support.c,
9479 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
9480 ../libgcc/config/arm.
9481 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
9482 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
9483 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
9484 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
9485 ($(T)frvend$(objext)): Likewise.
9486 * config/ia64/t-glibc (LIB2ADDEH): Remove.
9487 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
9488 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
9489 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
9490 ../libgcc/config/ia64.
9491 * config/ia64/t-hpux (LIB2ADDEH): Remove.
9492 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
9493 * config/ia64/t-vms (LIB2ADDEH): Remove.
9494 * config/ia64/vms.h (UNW_IVMS_MODE,
9495 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
9496 * config/picochip/t-picochip (LIB2ADDEH): Remove.
9497 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
9498 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
9499 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
9500 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
9501 $(srcdir)/../libgcc to refer to unwinder sources.
9502 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
9503 * config/t-darwin (LIB2ADDEH): Remove.
9504 * config/t-freebsd (LIB2ADDEH): Remove.
9505 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
9506 * config/t-libunwind-elf: Move to ../libgcc/config.
9507 * config/t-linux (LIB2ADDEH): Remove.
9508 * config/t-sol2 (LIB2ADDEH): Remove.
9509 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
9510 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
9511
9512 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
9513
9514 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
9515
9516 * doc/invoke.texi: Document core-avx-i.
9517
9518 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9519
9520 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
9521
9522 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
9523
9524 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
9525 result of multiple results reduction when extracting the final
9526 value using scalar code.
9527
9528 2011-08-05 Richard Guenther <rguenther@suse.de>
9529
9530 PR tree-optimization/49984
9531 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
9532
9533 2011-08-05 Richard Guenther <rguenther@suse.de>
9534
9535 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
9536 return true for constant integer ranges.
9537 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
9538 BIT_IOR_EXPR handling.
9539
9540 2011-08-04 Kai Tietz <ktietz@redhat.com>
9541
9542 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
9543 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
9544
9545 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
9546
9547 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
9548 pattern def statement, and its access macro.
9549 (NUM_PATTERNS): Set to 5.
9550 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
9551 pattern def statement.
9552 (vect_transform_loop): Likewise.
9553 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
9554 function vect_recog_over_widening_pattern ().
9555 (vect_operation_fits_smaller_type): New function.
9556 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
9557 Likewise.
9558 (vect_pattern_recog_1): Move the code that marks pattern
9559 statements to vect_mark_pattern_stmts (), and call it. Update
9560 documentation.
9561 * tree-vect-stmts.c (vect_supportable_shift): New function.
9562 (vect_analyze_stmt): Handle pattern def statement.
9563 (new_stmt_vec_info): Initialize pattern def statement.
9564
9565 2011-08-04 Richard Henderson <rth@redhat.com>
9566
9567 PR target/49964
9568 * config/i386/i386.c (ix86_expand_call): Don't create nested
9569 PARALLELs for TARGET_VZEROUPPER.
9570 (ix86_split_call_vzeroupper): Fix extraction of the original call.
9571 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
9572 recognize nested PARALLELs.
9573 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
9574 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
9575 *sibcall_value_pop_vzeroupper): Likewise.
9576
9577 2011-08-04 Richard Henderson <rth@redhat.com>
9578
9579 PR middle-end/49968
9580 * calls.c (expand_call): Use fixup_args_size_notes for
9581 emit_stack_restore.
9582 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
9583 in non-standard modes.
9584
9585 2011-08-04 Jakub Jelinek <jakub@redhat.com>
9586
9587 * gcc.c (self_spec): New variable.
9588 (static_specs): Add self_spec.
9589 (main): Call do_self_spec on "self_spec" specs after reading
9590 user specs files. Move compare_debug handling right after that.
9591
9592 2011-08-04 Richard Guenther <rguenther@suse.de>
9593
9594 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
9595 (value_range_nonnegative_p): New function.
9596 (ssa_name_nonnegative_p): Use it.
9597 (value_range_constant_singleton): New function.
9598 (op_with_constant_singleton_value_range): Use it.
9599 (extract_range_from_binary_expr_1): New function, split out from ...
9600 (extract_range_from_binary_expr): ... this. Remove fallback
9601 constant folding done here.
9602
9603 2011-08-04 Richard Guenther <rguenther@suse.de>
9604
9605 PR tree-optimization/49806
9606 * tree-vrp.c (op_with_boolean_value_range_p): New function.
9607 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
9608 a new statement for a final conversion to bool.
9609
9610 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
9611
9612 * gengtype-state.c: Include "bconfig.h" if
9613 GENERATOR_FILE is defined, "config.h" otherwise.
9614 * gengtype.c: Likewise.
9615 * gengtype-lex.l: Likewise.
9616 * gengtype-parse.c: Likewise.
9617 * Makefile.in (gengtype-lex.o-warn): New variable.
9618 (plugin_resourcesdir): Likewise.
9619 (plugin_bindir): Likewise.
9620 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
9621 (MOSTLYCLEANFILES): Add gengtype$(exeext).
9622 (native): Depend on gengtype$(exeext) is $enable_plugin
9623 is set to "yes".
9624 (gtype.state): Depend on s-gtype. Use temporary file.
9625 (gengtype-lex.o): New rule.
9626 (gengtype-parse.o): Likewise.
9627 (gengtype-state.o): Likewise.
9628 (gengtype$(exeext)): Likewise.
9629 (install-gengtype): Likewise.
9630 (gengtype.o): Likewise.
9631 (build/gengtype.o): Depend on version.h.
9632 (build/gengtype-state): Depend on double-int.h, version.h,
9633 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
9634 (install-plugin): Depend on install-gengtype.
9635
9636 2011-08-04 Jakub Jelinek <jakub@redhat.com>
9637
9638 PR middle-end/49905
9639 * tree.h (init_attributes): New prototype.
9640 * attribs.c (init_attributes): No longer static.
9641
9642 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9643
9644 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
9645 maybe_suffix.
9646
9647 2011-08-03 David Li <davidxl@google.com>
9648
9649 * tree-optimize.c (execute_fixup_cfg): Fix up entry
9650 outgoing edge counts after inlining.
9651
9652 2011-08-03 David Li <davidxl@google.com>
9653
9654 * profile.c (compute_branch_probabilities): Compute
9655 function frequency after profile annotation.
9656
9657 2011-08-04 Alan Modra <amodra@gmail.com>
9658
9659 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
9660 use_backchain_to_restore_sp initialisation.
9661 (rs6000_legitimate_offset_address_p): Simplify offset test.
9662
9663 2011-08-03 Richard Henderson <rth@redhat.com>
9664
9665 * config/spu/spu.md: Use define_c_enum instead of define_constants.
9666 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
9667 (UNSPECV_NOP): New.
9668
9669 2011-08-03 Richard Henderson <rth@redhat.com>
9670
9671 PR target/34888
9672 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
9673
9674 2011-08-03 Jakub Jelinek <jakub@redhat.com>
9675
9676 PR tree-optimization/49948
9677 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
9678
9679 2011-08-03 Anatoly Sokolov <aesok@post.ru>
9680
9681 * config/m32c/m32c.c (class_sizes): Remove.
9682 (reduce_class): Change arguments and return type to reg_class_t.
9683 Change type cc var to HARD_REG_SET. Change type best var to
9684 reg_class_t. Change type best_size var to unsigned int. Remove
9685 initialization class_sizes var. Use reg_class_size array instead
9686 of class_sizes. Use reg_class_contents array instead
9687 of class_contents.
9688
9689 2011-08-03 Richard Guenther <rguenther@suse.de>
9690
9691 PR middle-end/49958
9692 * fold-const.c (fold_binary_loc): Only associate
9693 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
9694 overflow wraps.
9695
9696 2011-08-03 Alan Modra <amodra@gmail.com>
9697
9698 PR rtl-optimization/49941
9699 * jump.c (mark_jump_label): Comment.
9700 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
9701 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
9702 (mark_used_flags): Don't mark RETURN.
9703
9704 2011-08-03 Richard Guenther <rguenther@suse.de>
9705
9706 PR tree-optimization/49938
9707 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
9708 deal with a POLYNOMIAL_CHREC.
9709
9710 2011-08-03 Revital Eres <revital.eres@linaro.org>
9711
9712 * modulo-sched.c (calculate_stage_count,
9713 calculate_must_precede_follow, get_sched_window,
9714 try_scheduling_node_in_cycle, remove_node_from_ps): Add
9715 declaration.
9716 (update_node_sched_params, set_must_precede_follow, optimize_sc):
9717 New functions.
9718 (reset_sched_times): Call update_node_sched_params.
9719 (sms_schedule): Call optimize_sc.
9720 (get_sched_window): Change function arguments.
9721 (sms_schedule_by_order): Update call to get_sched_window.
9722 Call set_must_precede_follow.
9723 (calculate_stage_count): Add function argument.
9724
9725 2011-08-02 Richard Henderson <rth@redhat.com>
9726
9727 PR target/49864
9728 PR target/49879
9729 * reg-notes.def (REG_ARGS_SIZE): New.
9730 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
9731 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
9732 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
9733 different stack levels.
9734 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
9735 (maybe_move_args_size_note): New.
9736 (combine_stack_adjustments_for_block): Use it.
9737 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
9738 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
9739 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
9740 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
9741 (cur_cfa): New.
9742 (queued_args_size): Remove.
9743 (add_cfi_args_size): Assert size is non-negative.
9744 (stack_adjust_offset, dwarf2out_args_size): Remove.
9745 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
9746 (notice_args_size, notice_eh_throw): New.
9747 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
9748 (dwarf2out_frame_debug_adjust_cfa): Likewise.
9749 (dwarf2out_frame_debug_cfa_offset): Likewise.
9750 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
9751 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
9752 (change_cfi_row): Don't emit args_size.
9753 (maybe_record_trace_start_abnormal): Split out from ...
9754 (maybe_record_trace_start): Here. Set args_size_undefined.
9755 (create_trace_edges): Update to match.
9756 (scan_trace): Handle REG_ARGS_SIZE.
9757 (connect_traces): Connect args_size between EH insns.
9758 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
9759 * explow.c (suppress_reg_args_size): New.
9760 (adjust_stack_1): Split out from ...
9761 (adjust_stack): ... here.
9762 (anti_adjust_stack): Use it.
9763 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
9764 * expr.c (mem_autoinc_base): New.
9765 (fixup_args_size_notes): New.
9766 (emit_single_push_insn_1): Rename from emit_single_push_insn.
9767 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
9768 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
9769 * reload1.c (reload_as_needed): Likewise.
9770 * rtl.h (fixup_args_size_notes): Declare.
9771
9772 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
9773
9774 PR bootstrap/49914
9775 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
9776 of abs.
9777 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
9778 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
9779
9780 2011-08-02 Richard Henderson <rth@redhat.com>
9781
9782 * config/h8300/h8300.c (push, pop): Return the insn.
9783 (h8300_swap_into_er6): Generate correct unwind info.
9784 (h8300_swap_out_of_er6): Likewise.
9785 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
9786 complex cfa expression.
9787 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
9788
9789 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9790
9791 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
9792
9793 2011-08-02 Richard Henderson <rth@redhat.com>
9794
9795 PR target/49878
9796 * config/h8300/h8300.c (h8300_move_ok): New.
9797 * config/h8300/h8300-protos.h: Declare it.
9798 * config/h8300/h8300.md (P): New mode iterator.
9799 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
9800 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
9801 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
9802 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
9803 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
9804 and pushqi1_h8300hs_normal; use PRE_MODIFY and
9805 register_no_sp_elim_operand.
9806 (*pushhi1_h8300hs_<P>): Similarly.
9807 (pushqi1, pushhi1, pushhi1_h8300): Remove.
9808 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
9809
9810 2011-08-02 Richard Henderson <rth@redhat.com>
9811
9812 PR target/49881
9813 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
9814
9815 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9816
9817 * c-parser.c (enum c_parser_prec): New enum, moved from within
9818 c_parser_binary_expression.
9819 (c_parser_binary_expression): Add PREC argument. Stop parsing
9820 if operator has lower or equal precedence than PREC.
9821 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
9822 callers.
9823 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
9824 Adjust c_finish_omp_atomic caller.
9825 (c_parser_omp_taskyield): New function.
9826 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
9827 (c_parser_omp_clause_name): Handle final and mergeable clauses.
9828 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
9829 functions.
9830 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
9831 and PRAGMA_OMP_CLAUSE_MERGEABLE.
9832 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
9833 (c_parser_omp_clause_reduction): Handle min and max.
9834 * c-typeck.c (c_finish_omp_clauses): Don't complain about
9835 const qualified predetermined vars in firstprivate clause.
9836 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9837 Handle MIN_EXPR and MAX_EXPR.
9838 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
9839 and OMP_CLAUSE_MERGEABLE.
9840 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
9841 and OMP_ATOMIC_CAPTURE_NEW.
9842 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
9843 OMP_CLAUSE_MERGEABLE.
9844 (omp_clause_code_name): Likewise.
9845 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9846 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
9847 and OMP_CLAUSE_MERGEABLE.
9848 (OMP_CLAUSE_FINAL_EXPR): Define.
9849 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
9850 OMP_CLAUSE_MERGEABLE.
9851 (expand_task_call): Likewise.
9852 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
9853 (expand_omp_atomic_fetch_op): Handle cases where old or new
9854 value is needed afterwards.
9855 (expand_omp_atomic): Call expand_omp_atomic_load resp.
9856 expand_omp_atomic_store.
9857 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
9858 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
9859 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
9860 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9861 * tree-nested.c (convert_nonlocal_omp_clauses,
9862 convert_local_omp_clauses): Likewise.
9863 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
9864 OMP_ATOMIC_CAPTURE_NEW): New.
9865 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
9866 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
9867 New inlines.
9868 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
9869 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
9870 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9871
9872 2011-08-02 Kai Tietz <ktietz@redhat.com>
9873
9874 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
9875 boolean-type.
9876 (ssa_forward_propagate_and_combine): Interprete result of
9877 forward_propagate_comparison.
9878 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
9879 boolean-typed operands for comparisons.
9880
9881 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
9882
9883 * config/avr/libgcc.S: Gather related function in the
9884 same input section.
9885 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
9886 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
9887 references.
9888 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
9889 __udivmodsi4, __divmodsi4, __prologue_saves__,
9890 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
9891 __do_copy_data, __do_clear_bss, __do_global_ctors,
9892 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
9893
9894 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
9895
9896 PR target/47766
9897 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
9898 (stack_protect_test): The pattern compares ptr_mode value.
9899
9900 2011-08-02 Alan Modra <amodra@gmail.com>
9901
9902 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
9903 note for save_LR_around_toc_setup sequence.
9904
9905 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9906
9907 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
9908
9909 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
9910 Joseph Myers <joseph@codesourcery.com>
9911
9912 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
9913 * hwint.c: Include diagnostic-core.h.
9914 (abs_hwi): New.
9915 (gcd): Moved here...
9916 (pos_mul_hwi): New.
9917 (mul_hwi): New.
9918 (least_common_multiple): Moved here...
9919 * hwint.h (gcd): ... from here.
9920 (least_common_multiple): ... from here.
9921 (HOST_WIDE_INT_MIN): New.
9922 (HOST_WIDE_INT_MAX): New.
9923 (abs_hwi): Declared.
9924 (gcd): Declared.
9925 (pos_mul_hwi): Declared.
9926 (mul_hwi): Declared.
9927 (least_common_multiple): Declared.
9928 * omega.c (check_pos_mul): Removed.
9929 (check_mul): Removed.
9930 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
9931 mul_hwi instead of check_mul.
9932
9933 2011-08-01 Richard Henderson <rth@redhat.com>
9934
9935 PR target/49881
9936 * config/avr/avr.h (PUSH_ROUNDING): New.
9937 * config/avr/avr.md (pushqi1): Rename from *pushqi.
9938 (*pushhi, *pushsi, *pushsf): Remove.
9939 (MPUSH): New mode iterator.
9940 (push<MPUSH>1): New expander.
9941
9942 2011-08-01 Anatoly Sokolov <aesok@post.ru>
9943
9944 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
9945 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9946 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
9947 mmix_preferred_output_reload_class): Remove.
9948 * config/mmix/mmix.c (mmix_preferred_reload_class,
9949 mmix_preferred_output_reload_class): Make static. Change rclass
9950 argument and return type to reg_class_t.
9951 (TARGET_PREFERRED_RELOAD_CLASS,
9952 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9953
9954 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
9955
9956 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
9957 handling.
9958
9959 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9960
9961 PR target/47766
9962 * config/i386/i386.md (PTR): New.
9963 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
9964 (stack_protect_test): Likewise.
9965 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
9966 (stack_tls_protect_set_<mode>): Likewise.
9967 (stack_tls_protect_test_<mode>): Likewise.
9968
9969 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
9970
9971 PR target/49927
9972 * config/i386/i386.c (ix86_address_subreg_operand): New.
9973 (ix86_decompose_address): Use ix86_address_subreg_operand.
9974 (ix86_legitimate_address_p): Do not assert that subregs satisfy
9975 register_no_elim_operand in DImode.
9976
9977 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
9978
9979 PR tree-optimization/49926
9980 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
9981 in a chain doesn't have uses both inside and outside the loop.
9982
9983 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
9984
9985 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
9986 * config/avr/avr-devices.c (avr_mcu_types): Use it.
9987 * config/avr/avr-mcus.def (AVR_MCU): Use it.
9988 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
9989 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
9990 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
9991 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
9992 to detect if XJMP must not be skipped.
9993
9994 2011-08-02 Alan Modra <amodra@gmail.com>
9995
9996 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
9997 Delete.
9998 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
9999 (rs6000_emit_prologue): Don't prematurely return when
10000 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
10001 save_toc_in_prologue case.
10002 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
10003 calls_alloca.
10004
10005 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
10006
10007 * config/avr/avr-devices.c: Delete SVN property svn:executable.
10008 * config/avr/predicates.md: Ditto.
10009 * config/avr/driver-avr.c: Ditto.
10010 * config/avr/genopt.sh: Set SVN property svn:executable to *.
10011
10012 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
10013
10014 * calls.c (emit_library_call_value_1): Declare size only if
10015 BLOCK_REG_PADDING is defined.
10016
10017 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
10018
10019 PR target/49547
10020 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
10021 (x86_64-*-*): Likewise.
10022 * config/i386/i386.opt (mlzcnt): New.
10023 * config/i386/abmintrin.h: File removed.
10024 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
10025 * config/i386/lzcntintrin.h: ... here. New file.
10026 (__lzcnt): Rename to ...
10027 (__lzcnt32): ... this.
10028 * config/i386/bmiintrin.h (head): Update copyright year.
10029 (__lzcnt_u16): Removed.
10030 (__lzcnt_u32): Likewise.
10031 (__lzcnt_u64): Likewise.
10032 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
10033 is defined, remove abmintrin.h.
10034 * config/i386/cpuid.h (bit_LZCNT): New.
10035 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10036 LZCNT feature.
10037 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10038 __LZCNT__ if needed.
10039 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
10040 (ix86_option_override_internal): Handle LZCNT option.
10041 (ix86_valid_target_attribute_inner_p): Likewise.
10042 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
10043 * config/i386/i386.h (TARGET_LZCNT): New.
10044 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
10045 * config/i386/i386.md (clz<mode>2): Update insn constraint.
10046 (clz<mode>2_lzcnt): Likewise.
10047 * doc/invoke.texi: Mention -mlzcnt option.
10048 * doc/extend.texi: Likewise.
10049
10050 2011-08-01 Julian Brown <julian@codesourcery.com>
10051
10052 * configure.ac (fixed-point): Add ARM support.
10053 * configure: Regenerate.
10054 * config/arm/arm.c (arm_fixed_mode_set): New struct.
10055 (arm_set_fixed_optab_libfunc): New.
10056 (arm_set_fixed_conv_libfunc): New.
10057 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
10058 ARM-specific names.
10059 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
10060 return values in SImode.
10061 (arm_return_in_msb): Return fixed-point types in the msb.
10062 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
10063 upwards.
10064 (arm_scalar_mode_supported_p): Support fixed-point modes.
10065 (arm_vector_mode_supported_p): Support vector fixed-point modes.
10066 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
10067 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
10068 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
10069 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
10070 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
10071 New mode iterators.
10072 (qaddsub_suf): New mode attribute.
10073 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
10074 vector modes.
10075 * config/arm/predicates.md (sat_shift_operator): New predicate.
10076 * config/arm/arm-fixed.md: New.
10077 * config/arm/arm.md: Include arm-fixed.md.
10078 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
10079
10080 2011-08-01 Julian Brown <julian@codesourcery.com>
10081
10082 * calls.c (emit_library_call_value_1): Support padding for libcall
10083 arguments and return values.
10084 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
10085 downwards in big-endian mode.
10086
10087 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10088
10089 PR debug/49887
10090 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
10091 * config/sol2-protos.h: Likewise.
10092 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
10093 solaris_code_end.
10094 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
10095 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
10096 solaris_file_end.
10097 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
10098
10099 2011-08-01 Julian Brown <julian@codesourcery.com>
10100
10101 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
10102
10103 2011-08-01 Julian Brown <julian@codesourcery.com>
10104
10105 * final.c (output_addr_const): Print fixed-point constants as
10106 decimal not hex.
10107
10108 2011-08-01 Richard Guenther <rguenther@suse.de>
10109
10110 * stor-layout.c (initialize_sizetypes): Properly sign-extend
10111 bitsiztype TYPE_MAX_VALUE.
10112
10113 2011-08-01 Julian Brown <julian@codesourcery.com>
10114
10115 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
10116 comparison helpers.
10117
10118 2011-07-31 Richard Henderson <rth@redhat.com>
10119
10120 * config/h8300/crti.asm: Add flags to .section directive.
10121 * config/h8300/crtn.asm: Likewise.
10122
10123 2011-07-31 Richard Henderson <rth@redhat.com>
10124
10125 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
10126 * tree.c (build_common_tree_nodes): Likewise.
10127
10128 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10129
10130 PR target/49880
10131 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
10132 (divsi3_i1): Likewise.
10133
10134 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10135
10136 PR tree-optimization/49749
10137 * tree-ssa-reassoc.c (get_rank): New forward declaration.
10138 (PHI_LOOP_BIAS): New macro.
10139 (phi_rank): New function.
10140 (loop_carried_phi): Likewise.
10141 (propagate_rank): Likewise.
10142 (get_rank): Add calls to phi_rank and propagate_rank.
10143
10144 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
10145
10146 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
10147 of TARGET_64BIT.
10148 (PTRDIFF_TYPE): Likewise.
10149
10150 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
10151
10152 PR target/49920
10153 * config/i386/i386.md (strset): Do not expand strset_singleop
10154 when %eax or $edi are fixed.
10155 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
10156 (*strsetsi_1): Ditto.
10157 (*strsethi_1): Ditto.
10158 (*strsetqi_1): Ditto.
10159 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
10160 (*rep_stossi): Ditto.
10161 (*rep_stosqi): Ditto.
10162 (*strlenqi_1): Ditto.
10163 (cmpstrnsi): Also fail when %ecx is fixed.
10164 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
10165 (*cmpstrnqi_1): Ditto.
10166 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
10167 (*strmovsi_1): Ditto.
10168 (*strmovhi_1): Ditto.
10169 (*strmovqi_1): Ditto.
10170 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
10171 (*rep_movsi): Ditto.
10172 (*rep_movqi): Ditto.
10173
10174 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
10175
10176 PR target/47908
10177 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
10178 Disable instruction scheduling for non-ColdFire targets.
10179 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10180
10181 2011-07-31 Revital Eres <revital.eres@linaro.org>
10182
10183 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
10184 of anti-dep edge from a branch.
10185 (add_cross_iteration_register_deps): Create anti-dep edge from
10186 a branch.
10187
10188 2011-07-31 Revital Eres <revital.eres@linaro.org>
10189
10190 * modulo-sched.c: Change comment.
10191 (reset_sched_times): Fix print message.
10192 (print_partial_schedule): Add print info.
10193
10194 2011-07-31 Tom de Vries <tom@codesourcery.com>
10195
10196 PR middle-end/43513
10197 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
10198 get_object_alignment and TYPE_ALIGN.
10199
10200 2011-07-30 Tom de Vries <tom@codesourcery.com>
10201
10202 PR middle-end/43513
10203 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
10204 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
10205
10206 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10207
10208 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
10209 <sys/sbd.h>.
10210 (cpu_types): New array.
10211 (cputype): New function.
10212 (host_detect_local_cpu): Only define buf, f if !__sgi__.
10213 Use scaninvent instead of /proc/cpuinfo if __sgi__.
10214 * config.host: Also use driver-native.o, mips/x-native on
10215 mips-sgi-irix*.
10216 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
10217 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
10218 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
10219
10220 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10221
10222 PR middle-end/49897
10223 PR middle-end/49898
10224 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
10225 in nested parallel and outer is a gimple_reg, mark it as addressable
10226 and set its bit in task_shared_vars bitmap too.
10227
10228 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
10229
10230 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
10231
10232 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10233
10234 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
10235 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
10236 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
10237 AMASK_LOCKPFTCHOK): Define.
10238 (host_detect_local_cpu): Remove buf, f, cpu_names.
10239 Define cpu_types, implver, amask.
10240 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
10241 native CPU.
10242 * config.host: Also use driver-alpha.o, alpha/x-alpha on
10243 alpha*-dec-osf*.
10244 * config/alpha/osf5.h [__alpha__ || __alpha]
10245 (host_detect_local_cpu): Declare.
10246 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
10247 (DRIVER_SELF_SPECS): Define.
10248
10249 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
10250
10251 PR target/47715
10252 * config/i386/i386.md (*load_tp_x32): New.
10253 (*load_tp_x32_zext): Ditto.
10254 (*add_tp_x32): Ditto.
10255 (*add_tp_x32_zext): Ditto.
10256 (*load_tp_<mode>): Disable for TARGET_X32 targets.
10257 (*add_tp_<mode>): Ditto.
10258 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
10259 ptr_mode and convert to Pmode if needed.
10260
10261 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
10262
10263 PR target/49687
10264 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
10265 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
10266 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
10267 Add X to register footprint: Clobber r26/r27.
10268
10269 2011-07-29 Richard Guenther <rguenther@suse.de>
10270
10271 * builtins.c (fold_builtin_signbit): Build the comparison
10272 with a proper type.
10273
10274 2011-07-29 Richard Guenther <rguenther@suse.de>
10275
10276 PR tree-optimization/49893
10277 * tree-predcom.c (suitable_reference_p): Volatile references
10278 are not suitable.
10279
10280 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
10281
10282 PR target/49313
10283 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
10284 (__ctzsi2): Result for 0 may be undefined.
10285 (__ctzhi2): Result for 0 may be undefined.
10286 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
10287 (__popcountsi2): Ditto. And don't clobber r26.
10288 (__popcountdi2): Ditto. And don't clobber r27.
10289 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
10290 (parityhi2): New expand.
10291 (paritysi2): New expand.
10292 (popcounthi2): New expand.
10293 (popcountsi2): New expand.
10294 (clzhi2): New expand.
10295 (clzsi2): New expand.
10296 (ctzhi2): New expand.
10297 (ctzsi2): New expand.
10298 (ffshi2): New expand.
10299 (ffssi2): New expand.
10300 (copysignsf3): New insn.
10301 (bswapsi2): New expand.
10302 (*parityhi2.libgcc): New insn.
10303 (*parityqihi2.libgcc): New insn.
10304 (*paritysihi2.libgcc): New insn.
10305 (*popcounthi2.libgcc): New insn.
10306 (*popcountsi2.libgcc): New insn.
10307 (*popcountqi2.libgcc): New insn.
10308 (*popcountqihi2.libgcc): New insn-and-split.
10309 (*clzhi2.libgcc): New insn.
10310 (*clzsihi2.libgcc): New insn.
10311 (*ctzhi2.libgcc): New insn.
10312 (*ctzsihi2.libgcc): New insn.
10313 (*ffshi2.libgcc): New insn.
10314 (*ffssihi2.libgcc): New insn.
10315 (*bswapsi2.libgcc): New insn.
10316
10317 2011-07-29 Richard Guenther <rguenther@suse.de>
10318
10319 * tree-vrp.c (get_value_range): Only set parameter default
10320 definitions to varying, leave others at undefined.
10321 (extract_range_from_binary_expr): Fix undefined handling.
10322 (vrp_visit_phi_node): Handle merged undefined state.
10323
10324 2011-07-29 Wei Guozhi <carrot@google.com>
10325
10326 PR rtl-optimization/49799
10327 * combine.c (make_compound_operation): Check if the bit field is valid
10328 before change it to bit field extraction.
10329
10330 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
10331
10332 PR rtl-optimization/49891
10333 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
10334 newly created returnjumps.
10335
10336 2011-07-28 DJ Delorie <dj@redhat.com>
10337
10338 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
10339 local frame in a naked function, and produce a suitable error for
10340 that specific case.
10341
10342 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
10343 registers to be reloaded in HI classes when the target is HI.
10344
10345 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10346
10347 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
10348 bound_one, bound_two.
10349
10350 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10351
10352 PR middle-end/48648
10353 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
10354 CLAST assignments.
10355 (translate_clast): Same.
10356 (translate_clast_assignment): New.
10357
10358 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10359
10360 PR tree-optimization/49876
10361 * sese.c (rename_uses): Do not return false on gloog_error: set
10362 the new_expr to integer_zero_node and continue code generation.
10363 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
10364
10365 2011-07-28 Jakub Jelinek <jakub@redhat.com>
10366
10367 PR debug/49846
10368 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
10369 arguments also check if they aren't initialized with a MODE_INT
10370 mode of the same size.
10371
10372 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
10373
10374 * expr.c (get_bit_range): Handle *MEM_REF's.
10375
10376 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
10377
10378 * rtlanal.c (tablejump_p): False for returns.
10379 * reorg.c (first_active_target_insn): New static function.
10380 (find_end_label): Set JUMP_LABEL for a new returnjump.
10381 (optimize_skip, get_jump_flags, rare_destination,
10382 mostly_true_jump, get_branch_condition,
10383 steal_delay_list_from_target, own_thread_p,
10384 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
10385 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
10386 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
10387 * jump.c (delete_related_insns): Likewise.
10388 (jump_to_label_p): New function.
10389 (redirect_target): New static function.
10390 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
10391 (redirect_jump_1): Assert that the new label is nonnull.
10392 (redirect_jump): Likewise.
10393 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
10394 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
10395 exit block.
10396 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
10397 changed. Ensure that the right label is passed to redirect_jump.
10398 * function.c (emit_return_into_block,
10399 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
10400 ret_rtx in their JUMP_LABEL.
10401 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
10402 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
10403 pass ret_rtx as label.
10404 * cfglayout.c (fixup_reorder_chain): Use
10405 force_nonfallthru_and_redirect rather than force_nonfallthru.
10406 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
10407 * rtl.h (ANY_RETURN_P): New macro.
10408 (jump_to_label_p): Declare.
10409 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
10410 JUMP_LABELs.
10411 (mark_target_live_regs): Likewise.
10412 * basic-block.h (force_nonfallthru_and_redirect): Declare.
10413 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
10414 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
10415 alpha_tablejump_best_label): Remove functions.
10416 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
10417 alpha_tablejump_best_label): Remove declarations.
10418 * config/sh/sh.c (barrier_align, split_branches): Adjust for
10419 ret_rtx in JUMP_LABELs.
10420 * config/arm/arm.c (is_jump_table): Likewise.
10421
10422 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10423
10424 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
10425 special predicate. Remove explicit mode checks.
10426
10427 2011-07-28 Jakub Jelinek <jakub@redhat.com>
10428
10429 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
10430 DW_AT_data_member_location containing just DW_OP_plus_uconst.
10431
10432 PR debug/49871
10433 * dwarf2out.c (size_of_die, value_format, output_die): Use
10434 DW_FORM_udata instead of DW_FORM_data[48] for
10435 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
10436
10437 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10438
10439 * config/i386/i386.md (*tls_global_dynamic_64): Update
10440 length attribute.
10441
10442 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10443
10444 PR target/47715
10445 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
10446 tls_symbolic_operand check. Update code sequence for TARGET_X32.
10447 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
10448 (tls_dynamic_gnu2_64): Ditto.
10449 (*tls_dynamic_gnu2_lea_64): Ditto.
10450 (*tls_dynamic_gnu2_call_64): Ditto.
10451 (*tls_dynamic_gnu2_combine_64): Ditto.
10452
10453 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10454
10455 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
10456
10457 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10458
10459 PR target/47364
10460 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
10461
10462 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10463
10464 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
10465 before the core constraints. Adjust attributes.
10466 ("*thumb2_movdf_vfp"): Likewise.
10467
10468 2011-07-28 Kai Tietz <ktietz@redhat.com>
10469
10470 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
10471 (simplify_truth_ops_using_ranges): Likewise.
10472 (build_assert_expr_for): Likewise.
10473 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
10474 and handle BIT_NOT_EXPR for truth-operation.
10475
10476 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
10477
10478 PR target/49313
10479 Undo r176835 from trunk
10480 2011-07-27 Georg-Johann Lay
10481
10482 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
10483
10484 PR target/49687
10485 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
10486 Add _muluhisi3, _mulshisi3, _usmulhisi3.
10487 * config/avr/libgcc.S (__mulsi3): Rewrite.
10488 (__mulhisi3): Rewrite.
10489 (__umulhisi3): Rewrite.
10490 (__usmulhisi3): New.
10491 (__muluhisi3): New.
10492 (__mulshisi3): New.
10493 (__mulohisi3): New.
10494 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
10495 declare.
10496 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
10497 (pseudo_register_or_const_int_operand): New.
10498 (combine_pseudo_register_operand): New.
10499 (u16_operand): New.
10500 (s16_operand): New.
10501 (o16_operand): New.
10502 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
10503 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
10504 (any_extend, any_extend2): New code iterators.
10505 (extend_prefix): New code attribute.
10506 (mulsi3): Rewrite. Turn insn to expander.
10507 (mulhisi3): Ditto.
10508 (umulhisi3): Ditto.
10509 (usmulhisi3): New expander.
10510 (*mulsi3): New insn-and-split.
10511 (mulu<mode>si3): New insn-and-split.
10512 (muls<mode>si3): New insn-and-split.
10513 (mulohisi3): New insn-and-split.
10514 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
10515 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
10516 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
10517 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
10518 insn-and-split.
10519 (*mulsi3_call): Rewrite.
10520 (*mulhisi3_call): Rewrite.
10521 (*umulhisi3_call): Rewrite.
10522 (*usmulhisi3_call): New insn.
10523 (*muluhisi3_call): New insn.
10524 (*mulshisi3_call): New insn.
10525 (*mulohisi3_call): New insn.
10526 (extendqihi2): Use combine_pseudo_register_operand as predicate
10527 for operand 1.
10528 (extendqisi2): Ditto.
10529 (zero_extendqihi2): Ditto.
10530 (zero_extendqisi2): Ditto.
10531 (zero_extendhisi2): Ditto.
10532 (extendhisi2): Ditto. Don't early-clobber operand 0.
10533
10534 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10535
10536 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
10537
10538 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10539
10540 PR tree-optimization/49471
10541 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
10542 iv only when the largest type is unsigned. Do not call
10543 lang_hooks.types.type_for_size.
10544
10545 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10546
10547 PR middle-end/45450
10548 * graphite-poly.c (apply_poly_transforms): Disable legality check
10549 after an openscop read.
10550
10551 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10552
10553 PR middle-end/47691
10554 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
10555 copy_bb_and_scalar_dependences.
10556 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
10557 (graphite_copy_stmts_from_block): Update call to rename_uses.
10558 (copy_bb_and_scalar_dependences): Update call to
10559 graphite_copy_stmts_from_block.
10560 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10561
10562 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
10563
10564 PR target/49313
10565 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
10566 (__ctzsi2): Result for 0 may be undefined.
10567 (__ctzhi2): Result for 0 may be undefined.
10568 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
10569 (__popcountsi2): Ditto. And don't clobber r26.
10570 (__popcountdi2): Ditto. And don't clobber r27.
10571 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
10572 (parityhi2): New expand.
10573 (paritysi2): New expand.
10574 (popcounthi2): New expand.
10575 (popcountsi2): New expand.
10576 (clzhi2): New expand.
10577 (clzsi2): New expand.
10578 (ctzhi2): New expand.
10579 (ctzsi2): New expand.
10580 (ffshi2): New expand.
10581 (ffssi2): New expand.
10582 (copysignsf3): New insn.
10583 (bswapsi2): New expand.
10584 (*parityhi2.libgcc): New insn.
10585 (*parityqihi2.libgcc): New insn.
10586 (*paritysihi2.libgcc): New insn.
10587 (*popcounthi2.libgcc): New insn.
10588 (*popcountsi2.libgcc): New insn.
10589 (*popcountqi2.libgcc): New insn.
10590 (*popcountqihi2.libgcc): New insn-and-split.
10591 (*clzhi2.libgcc): New insn.
10592 (*clzsihi2.libgcc): New insn.
10593 (*ctzhi2.libgcc): New insn.
10594 (*ctzsihi2.libgcc): New insn.
10595 (*ffshi2.libgcc): New insn.
10596 (*ffssihi2.libgcc): New insn.
10597 (*bswapsi2.libgcc): New insn.
10598
10599 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
10600
10601 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
10602 the mode of symbolic_opreand RTXes.
10603
10604 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
10605
10606 * config/i386/predicates.md (x86_64_movabs_operand): Return false
10607 for pic_32bit_operand RTXes.
10608 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
10609 in DImode.
10610
10611 2011-07-27 Kai Tietz <ktietz@redhat.com>
10612
10613 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
10614 for 32-bit, too.
10615 (ix86_handle_abi_attribute): Allow function attributes
10616 ms_abi/sysv_abi in 32-bit mode, too.
10617 * doc/extend.texi: Adjust attribute documentation.
10618
10619 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
10620 expression handling.
10621 (and_var_with_comparison_1): Likewise.
10622
10623 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
10624
10625 * params.h (ALLOW_STORE_DATA_RACES): New.
10626 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
10627 * Makefile.in (expr.o): Depend on PARAMS_H.
10628 * machmode.h (get_best_mode): Add argument.
10629 * fold-const.c (optimize_bit_field_compare): Add argument to
10630 get_best_mode.
10631 (fold_truthop): Same.
10632 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
10633 * expr.c (emit_group_store): Same.
10634 (copy_blkmode_from_reg): Same.
10635 (write_complex_part): Same.
10636 (optimize_bitfield_assignment_op): Add argument.
10637 Add argument to get_best_mode.
10638 (get_bit_range): New.
10639 (expand_assignment): Calculate maxbits and pass it down accordingly.
10640 (store_field): New argument.
10641 (expand_expr_real_2): New argument to store_field. Include params.h.
10642 * expr.h (store_bit_field): New argument.
10643 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
10644 into account maxbits.
10645 * calls.c (store_unaligned_arguments_into_pseudos): New argument
10646 to store_bit_field.
10647 * expmed.c (store_bit_field_1): New argument. Use it.
10648 (store_bit_field): Same.
10649 (store_fixed_bit_field): Same.
10650 (store_split_bit_field): Same.
10651 (extract_bit_field_1): Pass new argument to get_best_mode.
10652 (extract_bit_field): Same.
10653 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
10654 * doc/invoke.texi: Document parameter allow-store-data-races.
10655
10656 2011-07-27 Jakub Jelinek <jakub@redhat.com>
10657
10658 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
10659
10660 2011-07-27 Kai Tietz <ktietz@redhat.com>
10661
10662 * tree-vrp.c (extract_range_from_binary_expr): Remove
10663 TRUTH-binary cases and add new bitwise-cases.
10664 (extract_range_from_assignment): Likewise.
10665 (register_edge_assert_for_1): Likeiwise.
10666 (register_edge_assert_for): Likewise.
10667 (simplify_truth_ops_using_ranges): Likewise.
10668 (simplify_stmt_using_ranges): Likewise.
10669
10670 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
10671
10672 PR target/47372
10673 * config/i386/i386.c (ix86_delegitimize_address): Call
10674 simplify_gen_subreg for PIC with mode of x only if modes of
10675 x and orig_x are different.
10676
10677 2011-07-26 Jakub Jelinek <jakub@redhat.com>
10678
10679 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
10680 to GC allocated copy of the string.
10681 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
10682 before .debug_line, not after it.
10683
10684 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10685
10686 PR middle-end/47046
10687 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
10688 evolution_function_is_affine_p on CHREC_RIGHT.
10689
10690 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10691
10692 * tree-data-ref.c (max_stmt_executions_tree): Do not call
10693 lang_hooks.types.type_for_size.
10694
10695 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10696
10697 PR middle-end/47653
10698 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
10699 loops using wrapping semantics.
10700
10701 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10702
10703 PR middle-end/48805
10704 * tree-scalar-evolution.c (instantiate_scev_r): Return
10705 chrec_dont_know for ADDR_EXPR.
10706
10707 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10708 H.J. Lu <hongjiu.lu@intel.com>
10709
10710 PR target/47369
10711 PR target/49853
10712 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
10713 if legitimize_tls_address returned operand in wrong mode. Allow
10714 SImode and DImode symbolic operand for PIC. Call convert_to_mode
10715 if legitimize_pic_address returned operand in wrong mode.
10716
10717 2011-07-26 Martin Jambor <mjambor@suse.cz>
10718
10719 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
10720 return false for invariants.
10721
10722 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10723
10724 * config/i386/i386.md (add->lea splitter): Implement using SWI
10725 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
10726 (add->lea zext splitter): Change operand 2 predicate to
10727 x86_64_nonmemory_operand.
10728
10729 2011-07-26 Richard Guenther <rguenther@suse.de>
10730
10731 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
10732 frequency makes everything hot.
10733
10734 2011-07-26 Richard Guenther <rguenther@suse.de>
10735
10736 PR tree-optimization/49840
10737 * tree-vrp.c (range_fits_type_p): Properly handle full
10738 double-int precision.
10739
10740 2011-07-26 Martin Jambor <mjambor@suse.cz>
10741
10742 PR bootstrap/49786
10743 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
10744 counts.
10745 (update_specialized_profile): Likewise.
10746
10747 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10748 H.J. Lu <hongjiu.lu@intel.com>
10749
10750 PR target/47381
10751 PR target/49832
10752 PR target/49833
10753 * config/i386/i386.md (i): Change SImode attribute to "e".
10754 (g): Change SImode attribute to "rme".
10755 (di): Change SImode attribute to "nF".
10756 (general_operand): Change SImode attribute to x86_64_general_operand.
10757 (general_szext_operand): Change SImode attribute to
10758 x86_64_szext_general_operand.
10759 (immediate_operand): Change SImode attribute to
10760 x86_64_immediate_operand.
10761 (nonmemory_operand): Change SImode attribute to
10762 x86_64_nonmemory_operand.
10763 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
10764 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
10765 (*lea_1): Use SWI48 mode iterator.
10766 (*lea_1_zext): New insn pattern.
10767 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
10768 (*bt<mode>): Ditto.
10769 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
10770 Update operand constraints.
10771 (addsi_1_zext): Ditto.
10772 (*add<mode>2): Ditto.
10773 (*addsi_3_zext): Ditto.
10774 (*subsi_1_zext): Ditto.
10775 (*subsi_2_zext): Ditto.
10776 (*subsi_3_zext): Ditto.
10777 (*addsi3_carry_zext): Ditto.
10778 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
10779 (*mulsi3_1_zext): Ditto.
10780 (*andsi_1): Ditto.
10781 (*andsi_1_zext): Ditto.
10782 (*andsi_2_zext): Ditto.
10783 (*<any_or:code>si_1_zext): Ditto.
10784 (*<any_or:code>si_2_zext): Ditto.
10785 (*test<mode>_1): Use <general_operand> predicate for operand 1.
10786 (*and<mode>_2): Ditto.
10787 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
10788 (add->lea splitter): Check operand modes in insn constraint. Extend
10789 operands less than SImode wide to SImode.
10790 (add->lea zext splitter): Do not extend input operands to DImode.
10791 (*lea_general_1): Handle only QImode and HImode operands.
10792 (*lea_general_2): Ditto.
10793 (*lea_general_3): Ditto.
10794 (*lea_general_1_zext): Remove.
10795 (*lea_general_2_zext): Ditto.
10796 (*lea_general_3_zext): Ditto.
10797 (*lea_general_4): Check operand modes in insn constraint. Extend
10798 operands less than SImode wide to SImode.
10799 (ashift->lea splitter): Ditto.
10800 * config/i386/i386.c (ix86_print_operand_address): Print address
10801 registers with 'q' modifier on 64bit targets.
10802 * config/i386/predicates.md (pic_32bit_opreand): Define as special
10803 predicate. Reject non-SI and non-DI modes.
10804
10805 2011-07-25 Andrew Pinski <apinski@cavium.com>
10806
10807 PR tree-opt/49671
10808 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
10809 TREE_THIS_NOTRAP into the inner most MEM_REF.
10810 Always copy TREE_THIS_VOLATILE.
10811 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
10812 arguments are not volatile references.
10813
10814 2011-07-25 Richard Henderson <rth@redhat.com>
10815
10816 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
10817 * final.c (final_scan_insn): Don't test for it.
10818 (rest_of_clean_state): Likewise.
10819
10820 2011-07-25 Richard Henderson <rth@redhat.com>
10821
10822 PR debug/49841
10823 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
10824 (emit_frame_save): Likewise.
10825 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
10826 insn onto a dummy blockage insn after the join label.
10827
10828 2011-07-25 Richard Henderson <rth@redhat.com>
10829
10830 * dwarf2cfi.c (dw_trace_info): Add ID member.
10831 (get_trace_index): Remove. Change users to use ID member.
10832 (before_next_cfi_note): New.
10833 (connect_traces): Remove unreachable traces before the main loop.
10834 Look across one trace and generate remember/restore_state if needed.
10835
10836 2011-07-25 Richard Henderson <rth@redhat.com>
10837
10838 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
10839
10840 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
10841
10842 * genattr.c (write_upcase, gen_attr <enum definition writing>):
10843 Move to ...
10844 * genattr-common.c ... here.
10845 (main): Call gen_attr.
10846 * optc-gen.awk: Make generated program include insn-attr-common.h .
10847 * Makefile.in (oprions.o): Depend on insn-attr-common.h
10848
10849 2011-07-25 Anatoly Sokolov <aesok@post.ru>
10850
10851 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10852 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
10853 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
10854 m32c_print_operand, m32c_print_operand_address): Remove.
10855 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
10856 Change return type to bool. Change argument type to bool.
10857 (m32c_print_operand, m32c_print_operand_address): Make static.
10858 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
10859 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10860
10861 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10862
10863 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
10864 attributes): Document mmap.
10865
10866 2011-07-25 Anatoly Sokolov <aesok@post.ru>
10867
10868 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10869 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
10870 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
10871 mmix_print_operand, mmix_print_operand_address): Remove.
10872 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
10873 Change return type to bool. Change argument type to bool.
10874 (mmix_print_operand, mmix_print_operand_address): Make static.
10875 (mmix_intval, mmix_output_condition): Change 'x' argument type
10876 to const_rtx.
10877 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
10878 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10879
10880 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
10881
10882 PR target/39386
10883 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
10884 shift counter for x << x and x >> x shifts.
10885
10886 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10887
10888 PR target/47124
10889 * config.gcc: Reject *-*-solaris2 configuration.
10890
10891 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
10892
10893 PR tree-optimization/49809
10894 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
10895 gimple_get_lhs instead of gimple_assign_lhs.
10896
10897 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10898
10899 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
10900
10901 2011-07-25 Richard Guenther <rguenther@suse.de>
10902
10903 PR tree-optimization/49822
10904 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
10905 more. Make sure to preserve stmts with side-effects. Properly
10906 handle virtual defs, follow a longer def chain.
10907
10908 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
10909
10910 PR plugins/45348
10911 PR plugins/48425
10912 PR plugins/46577
10913 * Makefile.in: Do not flatten c-family directory when installing
10914 plugin headers.
10915
10916 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
10917
10918 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
10919 original nodes if we are dealing with virtual clones.
10920
10921 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
10922
10923 * common/config/c6x/c6x-common.c: New file.
10924
10925 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
10926
10927 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
10928
10929 2011-07-25 Richard Guenther <rguenther@suse.de>
10930
10931 PR tree-optimization/49715
10932 * tree-vrp.c: Include expr.h and optabs.h.
10933 (range_fits_type_): New function.
10934 (simplify_float_conversion_using_ranges): Likewise.
10935 (simplify_stmt_using_ranges): Call it.
10936 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
10937 * optabs.c (can_float_p): Export.
10938 * optabs.h (can_float_p): Declare.
10939
10940 2011-07-25 Richard Guenther <rguenther@suse.de>
10941
10942 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
10943 (get_value_range): For out-of-range SSA names or names created
10944 after propagation return a read-only varying range.
10945 (dump_all_value_ranges): Adjust.
10946 (vrp_initialize): Likewise.
10947 (vrp_finalize): Likewise.
10948
10949 2011-07-24 Richard Henderson <rth@redhat.com>
10950
10951 PR debug/49831
10952 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
10953 them entirely.
10954
10955 2011-07-24 Richard Henderson <rth@redhat.com>
10956
10957 PR debug/49825
10958 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
10959 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
10960
10961 2011-07-24 Richard Henderson <rth@redhat.com>
10962
10963 PR debug/49827
10964 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
10965
10966 2011-07-24 Richard Henderson <rth@redhat.com>
10967
10968 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
10969 Zero args_size for abnormal edges. Adjust all callers.
10970
10971 2011-07-24 Richard Henderson <rth@redhat.com>
10972
10973 PR debug/49825
10974 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
10975
10976 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
10977
10978 PR bootstrap/49835
10979 * collect2.c (demangle_flag): Removed.
10980
10981 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
10982
10983 * configure.ac (demangler_in_ld): Default to yes.
10984 * configure: Regenerated.
10985 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
10986 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
10987 --no-demangle options straight through to ld. When
10988 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
10989 way that has the intended effect on Windows.
10990
10991 2011-07-23 Richard Henderson <rth@redhat.com>
10992
10993 * dwarf2cfi.c: Include basic-block.h.
10994 (dw_label_info): Remove.
10995 (trace_work_list, trace_index): New.
10996 (remember_row, emit_cfa_remember): Remove.
10997 (dw_trace_info_hash, dw_trace_info_eq): New.
10998 (get_trace_index, get_trace_info): New.
10999 (save_point_p): New.
11000 (free_cfi_row): Remove.
11001 (add_cfi): Do not emit DW_CFA_remember_state.
11002 (cfa_row_equal_p): New.
11003 (barrier_args_size): Remove.
11004 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
11005 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
11006 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
11007 (dwarf2out_cfi_begin_epilogue): Remove.
11008 (dwarf2out_frame_debug_restore_state): Remove.
11009 (connect_traces, create_pseudo_cfg): New.
11010 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
11011 * Makefile.in (dwarf2cfi.o): Update.
11012
11013 2011-07-23 Richard Henderson <rth@redhat.com>
11014
11015 * dwarf2cfi.c (dw_trace_info): New.
11016 (dw_label_info): New.
11017 (cie_return_save): New.
11018 (cur_trace): New.
11019 (queued_args_size): Rename from args_size. Update all users.
11020 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
11021 (def_cfa_1): Use cur_trace instead of cfa_*.
11022 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
11023 (clobbers_queued_reg_save, reg_saved_in): Likewise.
11024 (dwarf2out_frame_debug_expr): Likewise.
11025 (create_cie_data): Split out from ...
11026 (execute_dwarf2_frame): ... here. Initialize cur_trace.
11027
11028 2011-07-23 Richard Henderson <rth@redhat.com>
11029
11030 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
11031 Update all users to match.
11032 (execute_dwarf2_frame): Free reg_saved_in_data.
11033
11034 2011-07-23 Richard Henderson <rth@redhat.com>
11035
11036 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
11037 (queued_reg_saves): Don't GTY. Change to a VEC.
11038 (queue_reg_save): Update to match.
11039 (dwarf2out_flush_queued_reg_saves): Likewise.
11040 (clobbers_queued_reg_save): Likewise.
11041 (reg_saved_in): Likewise.
11042 (execute_dwarf2_frame): Free queued_reg_saves.
11043
11044 2011-07-23 Richard Henderson <rth@redhat.com>
11045
11046 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
11047
11048 2011-07-23 Richard Henderson <rth@redhat.com>
11049
11050 * dwarf2cfi.c (add_cfi_args_size): Split out from...
11051 (dwarf2out_args_size): ... here.
11052 (add_cfi_restore): Split out from ...
11053 (dwarf2out_frame_debug_cfa_restore): ... here.
11054 (def_cfa_0): Split out from ...
11055 (def_cfa_1): ... here.
11056 (cfi_oprnd_equal_p, cfi_equal_p): New.
11057 (change_cfi_row): New.
11058 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
11059 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
11060 (output_cfis): Remove.
11061 * dwarf2out.c (output_fde): Simplify output_cfi loop.
11062 (dwarf2out_switch_text_section): Don't call output_cfis.
11063 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
11064 * dwarf2out.h: Update decls.
11065 (enum dw_val_class): Add dw_val_class_none.
11066
11067 2011-07-23 Richard Henderson <rth@redhat.com>
11068
11069 * dwarf2cfi.c (update_row_reg_save): New.
11070 (dwarf2out_frame_debug_cfa_expression): Use it.
11071 (dwarf2out_frame_debug_cfa_restore): Likewise.
11072 (reg_save): Likewise. Do not emit DW_CFA_same_value.
11073
11074 2011-07-23 Richard Henderson <rth@redhat.com>
11075
11076 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
11077
11078 2011-07-23 Richard Henderson <rth@redhat.com>
11079
11080 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
11081 (cie_cfi_row): New.
11082 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
11083 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
11084 (cur_row, remember_row): New.
11085 (def_cfa_1): Use cur_row instead of the old_* variables.
11086 (dwarf2out_frame_debug_restore_state): Similarly.
11087 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
11088 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
11089 (dwarf2out_frame_debug_adjust_cfa): Likewise.
11090 (dwarf2out_frame_debug_cfa_offset): Likewise.
11091 (dwarf2out_frame_debug_expr): Likewise.
11092 (execute_dwarf2_frame): Set up cur_row.
11093 * dwarf2out.h (struct cfa_loc): Mark for GTY.
11094
11095 2011-07-23 Richard Henderson <rth@redhat.com>
11096
11097 * basic-block.h (EDGE_PRESERVE): New.
11098 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
11099 * bb-reorder.c: Include except.h.
11100 (fix_up_crossing_landing_pad): New.
11101 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
11102 landing pads in the right partition. Duplicate as necessary.
11103 (partition_hot_cold_basic_blocks): Fix up DF info after
11104 duplicating landing pads.
11105 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
11106 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
11107 is set properly. Validate that EH edges are not CROSSING.
11108 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
11109 (dw2_build_landing_pads): ... here.
11110 (convert_to_eh_region_ranges): Remove code to fixup crossing
11111 landing pads.
11112 * except.h (expand_dw2_landing_pad_for_region): Declare.
11113 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
11114
11115 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
11116
11117 PR target/49816
11118 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
11119
11120 2011-07-22 Jason Merrill <jason@redhat.com>
11121
11122 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
11123
11124 2011-07-22 Richard Henderson <rth@redhat.com>
11125
11126 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
11127
11128 2011-07-22 Richard Henderson <rth@redhat.com>
11129
11130 * jump.c (maybe_propagate_label_ref): Split out of...
11131 (mark_all_labels): ... here. Do not attempt label_ref
11132 propagation while in cfglayout mode.
11133
11134 2011-07-22 Jakub Jelinek <jakub@redhat.com>
11135
11136 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
11137 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
11138 (dwarf_attr_name): Handle DW_AT_GNU_macros.
11139 (dwarf2out_define): If the vector is empty and
11140 lineno is 0, emit a dummy entry first.
11141 (dwarf2out_undef): Likewise. Remove redundant semicolon.
11142 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
11143 optimize_macinfo_range): New functions.
11144 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
11145 mergeable, optimize longer strings using
11146 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
11147 optimize longer sequences of define/undef ops from headers
11148 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
11149 emit a section headers.
11150 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
11151 and macinfo_section_label to DEBUG_MACRO_SECTION
11152 resp. DEBUG_MACRO_SECTION_LABEL.
11153 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
11154 instead of DW_AT_macro_info.
11155
11156 PR other/32998
11157 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
11158 options.
11159 * dwarf2out.c: Include opts.h.
11160 (dchar_p): New typedef. Define heap VEC for it.
11161 (producer_string): New variable.
11162 (gen_producer_string): New function.
11163 (gen_compile_unit_die): Use it.
11164 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
11165 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
11166 * doc/invoke.texi: Document -grecord-gcc-switches and
11167 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
11168 to -frecord-gcc-switches description.
11169
11170 2011-07-22 Jason Merrill <jason@redhat.com>
11171
11172 PR c++/30112
11173 * c-decl.c (c_linkage_bindings): Define.
11174
11175 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
11176
11177 PR debug/49815
11178 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
11179
11180 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
11181
11182 * config/i386/i386.c (ix86_option_override_internal): Disallow
11183 MS ABI in x32 mode.
11184 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
11185 only for TARGET_LP64.
11186 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
11187
11188 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11189
11190 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
11191 avoid warnings when GCC is built with a C++ compiler.
11192
11193 2011-07-22 Martin Jambor <mjambor@suse.cz>
11194
11195 PR lto/49796
11196 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
11197 if decl node is in another partition, call cgraph_get_node only once.
11198
11199 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
11200
11201 * config.gcc (x86_64-*-linux*): Set
11202 default_gnu_indirect_function to yes.
11203
11204 2011-07-22 Richard Guenther <rguenther@suse.de>
11205
11206 PR tree-optimization/45819
11207 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
11208 preserve volatile and notrap flags.
11209
11210 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11211 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11212
11213 PR bootstrap/49794
11214 * configure.ac: Test AM_ICONV with CXX.
11215 * configure: Regenerate.
11216 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
11217
11218 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11219
11220 PR bootstrap/49797
11221 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
11222 (set_cloog_options): Use it.
11223
11224 2011-07-22 Jakub Jelinek <jakub@redhat.com>
11225
11226 PR c++/49756
11227 * gcc.c (main): Call stack_limit_increase (64MB).
11228 * toplev.c (toplev_main): Likewise.
11229
11230 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11231
11232 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
11233 instead of force_reg.
11234
11235 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11236
11237 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
11238 needed and use force_reg after convert.
11239 (ix86_expand_call): Likewise.
11240 (ix86_expand_special_args_builtin): Likewise.
11241 (ix86_expand_builtin): Likewise.
11242
11243 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11244
11245 PR middle-end/47654
11246 PR middle-end/49649
11247 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
11248 in parameter. Initialize v1 and v2 based on the values returned
11249 by clast_name_to_lb_ub.
11250 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
11251 values.
11252 (type_for_clast_bin): Same.
11253 (type_for_clast_expr): Same.
11254 (type_for_clast_eq): Update calls to type_for_clast_expr.
11255 (type_for_clast_for): Same.
11256 (build_iv_mapping): Same.
11257 * graphite-ppl.h (value_min): New.
11258
11259 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11260
11261 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
11262 types whenever possible.
11263
11264 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11265
11266 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
11267 and ub fields.
11268 (new_clast_name_index): Add lb and ub parameters.
11269 (free_clast_name_index): New.
11270 (clast_name_to_lb_ub): New.
11271 (save_clast_name_index): Add lb and ub parameters.
11272 (compute_bounds_for_param): New.
11273 (type_for_level): Removed.
11274 (type_for_clast_for): Removed level parameter. Do not call
11275 type_for_level.
11276 (graphite_create_new_loop): Store the lb and ub for the clast_name
11277 of the iterator of the loop that has been generated.
11278 (graphite_create_new_loop_guard): Remove parameter level.
11279 (create_params_index): Store the lb and ub of each parameter.
11280 (gloog): Use free_clast_name_index. Pass to create_params_index
11281 the current scop.
11282
11283 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11284
11285 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
11286 (max_precision_type): Inline max_signed_precision_type.
11287 (type_for_clast_red): Use max_precision_type.
11288 (type_for_clast_bin): Same.
11289 (type_for_clast_for): Same.
11290
11291 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11292
11293 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
11294 type_for_interval.
11295 (gcc_type_for_value): Renamed type_for_value.
11296 (gcc_type_for_clast_term): Renamed type_for_clast_term.
11297 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
11298 (gcc_type_for_clast_red): Renamed type_for_clast_red.
11299 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
11300 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
11301 (graphite_translate_clast_equation): Update calls.
11302 (compute_type_for_level): Renamed type_for_level.
11303 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
11304 (build_iv_mapping): Update calls.
11305 (graphite_create_new_loop_guard): Same.
11306
11307 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11308
11309 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
11310 comment.
11311
11312 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11313
11314 * graphite-clast-to-gimple.c (struct ivs_params): New.
11315 (clast_name_to_gcc): Use ivs_params to pass around parameters.
11316 (clast_to_gcc_expression): Same.
11317 (clast_to_gcc_expression_red): Same.
11318 (gcc_type_for_clast_term): Same.
11319 (gcc_type_for_clast_expr): Same.
11320 (gcc_type_for_clast_red): Same.
11321 (gcc_type_for_clast_bin): Same.
11322 (gcc_type_for_clast_eq): Same.
11323 (graphite_translate_clast_equation): Same.
11324 (graphite_create_guard_cond_expr): Same.
11325 (graphite_create_new_guard): Same.
11326 (graphite_create_new_loop): Same.
11327 (build_iv_mapping): Same.
11328 (translate_clast_user): Same.
11329 (graphite_create_new_loop_guard): Same.
11330 (translate_clast): Same.
11331 (translate_clast_for_loop): Same.
11332 (translate_clast_for): Same.
11333 (translate_clast_guard): Same.
11334 (initialize_cloog_names): Fix typo.
11335 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
11336
11337 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11338
11339 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
11340 (new_clast_name_index): Add level parameter.
11341 (clast_name_to_level): New.
11342 (save_clast_name_index): Add level parameter.
11343 (newivs_to_depth_to_newiv): Removed.
11344 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
11345 (graphite_create_new_loop): Add level parameter. Pass level to
11346 save_clast_name_index.
11347 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
11348 (create_params_index): Pass level to save_clast_name_index.
11349
11350 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11351
11352 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
11353 recompute type, lb, and ub. Get them from...
11354 (graphite_create_new_loop_guard): ...here. Pass in parameter
11355 pointers to type, lb, and ub.
11356 (translate_clast_for_loop): Update function calls.
11357 (translate_clast_for): Same.
11358
11359 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11360
11361 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
11362 psct_dynamic_dim.
11363 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
11364 (gcc_type_for_iv_of_clast_loop): Update use of level.
11365 (gloog): Start counting nesting level from 0.
11366 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
11367 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
11368 psct_dynamic_dim on level.
11369
11370 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11371
11372 * config/i386/i386.c (ix86_legitimize_address): Convert to
11373 Pmode if needed.
11374
11375 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11376
11377 * config/i386/i386.c (function_value_64): Always return pointers
11378 in Pmode.
11379 (ix86_promote_function_mode): New.
11380 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
11381
11382 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11383
11384 PR tree-optimization/49749
11385 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
11386 remove no-longer-used maxrank variable.
11387
11388 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
11389
11390 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
11391
11392 2011-07-21 Jason Merrill <jason@redhat.com>
11393
11394 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
11395 * recog.h (struct insn_data_d): Check it instead of
11396 HAVE_DESIGNATED_INITIALIZERS.
11397 * genoutput.c (output_insn_data): Likewise.
11398
11399 2011-07-21 Richard Guenther <rguenther@suse.de>
11400
11401 PR tree-optimization/49770
11402 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
11403 valueized any operand. Renamed from ...
11404 (valueize_refs): ... this. New wrapper around valueize_refs_1.
11405 (valueize_shared_reference_ops_from_ref): Return whether we
11406 valueized any operand.
11407 (vn_reference_lookup): Only when we valueized any operand
11408 use the valueized reference for alias analysis. Do not preserve
11409 the original reference tree in this case.
11410
11411 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
11412
11413 * config/i386/i386.c (ix86_decompose_address): Reject all but
11414 register operands and subregs of DImode hard registers in index.
11415
11416 2011-07-21 Kai Tietz <ktietz@redhat.com>
11417
11418 * fold-const.c (fold_unary_loc): Preserve indirect
11419 comparison cast to none-boolean type.
11420 * tree-ssa.c (useless_type_conversion_p): Preserve cast
11421 from/to boolean-type.
11422 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
11423 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
11424 * tree-cfg.c (verify_gimple_comparison): Check result
11425 type of comparison expression.
11426 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
11427 of condition result and disallow type-cast sinking into comparison.
11428
11429 2011-07-21 Richard Guenther <rguenther@suse.de>
11430
11431 * tree-ssa-forwprop.c (combine_conversions): Return whether
11432 we have to run cfg-cleanup. Properly remove dead stmts.
11433 (ssa_forward_propagate_and_combine): Adjust.
11434
11435 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
11436
11437 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
11438
11439 2011-07-21 Kai Tietz <ktietz@redhat.com>
11440
11441 * tree-ssa-propagate.c (substitute_and_fold): Use
11442 do_dce flag to deside, if BB's statements are scanned
11443 in last to first, or first to last order.
11444
11445 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
11446
11447 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
11448
11449 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
11450 Uros Bizjak <ubizjak@gmail.com>
11451 Richard Henderson <rth@redhat.com>
11452
11453 * config/i386/constraints.md (w): New.
11454
11455 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
11456 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
11457
11458 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
11459 instead of TARGET_64BIT.
11460
11461 * config/i386/i386.md (indirect_jump): Replace
11462 nonimmediate_operand with indirect_branch_operand.
11463 (*indirect_jump): Likewise. Replace constraint "m" with "w".
11464 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
11465 Convert operand 0 to Pmode for x32 if not PIC.
11466 (*tablejump_1): Replace nonimmediate_operand with
11467 indirect_branch_operand. Replace constraint "m" with "w".
11468 (*call_vzeroupper): Replace constraint "m" with "w".
11469 (*call): Likewise.
11470 (*call_rex64_ms_sysv_vzeroupper): Likewise.
11471 (*call_rex64_ms_sysv): Likewise.
11472 (*call_value_vzeroupper): Likewise.
11473 (*call_value): Likewise.
11474 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
11475 (*call_value_rex64_ms_sysv): Likewise.
11476 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
11477
11478 * config/i386/predicates.md (indirect_branch_operand): New.
11479 (call_insn_operand): Support x32.
11480
11481 2011-07-20 Michael Eager <eager@eagercon.com>
11482
11483 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
11484
11485 2011-07-20 Richard Henderson <rth@redhat.com>
11486
11487 * cfg.c (dump_bb_info): Dump basic_block->flags.
11488 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
11489
11490 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
11491
11492 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11493 of DImode hard registers in index.
11494 (ix86_legitimate_address_p): Allow subregs of base and index to span
11495 more than a word. Assert that subregs of base and index satisfy
11496 register_no_elim_operand predicates. Reject addresses where
11497 base and index have different modes.
11498
11499 2011-07-20 Robert Millan <rmh@gnu.org>
11500
11501 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
11502
11503 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11504
11505 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
11506 removing now-unnecessary assignment.
11507
11508 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11509
11510 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
11511 memory address space to the type's address space.
11512
11513 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
11514
11515 PR target/36467
11516 PR target/49687
11517 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
11518 and expand appropriately if there is a CONST_INT in operand2.
11519 (usmulqihi3): New insn.
11520 (*sumulqihi3): New insn.
11521 (*osmulqihi3): New insn.
11522 (*oumulqihi3): New insn.
11523 (*muluqihi3.uconst): New insn_and_split.
11524 (*muluqihi3.sconst): New insn_and_split.
11525 (*mulsqihi3.sconst): New insn_and_split.
11526 (*mulsqihi3.uconst): New insn_and_split.
11527 (*mulsqihi3.oconst): New insn_and_split.
11528 (*ashifthi3.signx.const): New insn_and_split.
11529 (*ashifthi3.signx.const7): New insn_and_split.
11530 (*ashifthi3.zerox.const): New insn_and_split.
11531 (mulsqihi3): New insn.
11532 (muluqihi3): New insn.
11533 (muloqihi3): New insn.
11534 * config/avr/predicates.md (const_2_to_7_operand): New.
11535 (const_2_to_6_operand): New.
11536 (u8_operand): New.
11537 (s8_operand): New.
11538 (o8_operand): New.
11539 (s9_operand): New.
11540 (register_or_s9_operand): New.
11541
11542 2011-07-20 Kai Tietz <ktietz@redhat.com>
11543
11544 * builtins.c (fold_builtin_expect): See through the cast
11545 from truthvalue_type_node to long.
11546
11547 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11548
11549 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
11550 where we can use them from the standard and altivec instruction
11551 sets, instead of always using the 3 operand VSX forms that require
11552 the destination to overlap one of the inputs.
11553 (vsx_fms*): Ditto.
11554 (vsx_fnma*): Ditto.
11555 (vsx_fnms*): Ditto.
11556
11557 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
11558 for DF types.
11559 (fmsdf4_fpr): Ditto.
11560 (nfmadf4_fpr): Ditto.
11561 (nfmsdf4_fpr): Ditto.
11562
11563 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
11564
11565 * genrecog.c (make_insn_sequence): Correct position numbering
11566 when filtering out match_scratch and match_dup.
11567
11568 2011-07-20 Richard Guenther <rguenther@suse.de>
11569
11570 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
11571 against already removed statements.
11572 (forward_propagate_into_comparison): Remove dead defining stmts.
11573 (forward_propagate_into_gimple_cond): Likewise.
11574 (forward_propagate_into_cond): Simplify.
11575 (ssa_forward_propagate_and_combine): Handle changed cfg from
11576 forward_propagate_into_comparison.
11577 * tree-ssa-phiopt.c (conditional_replacement): Use proper
11578 locations for newly built statements.
11579
11580 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
11581
11582 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
11583
11584 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11585
11586 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
11587 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
11588
11589 2011-07-20 Richard Guenther <rguenther@suse.de>
11590
11591 PR middle-end/18908
11592 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
11593 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
11594 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
11595
11596 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
11597
11598 * config/frv/frv.c (frv_register_move_cost): Define explicitly
11599 costs for subclasses of GR_REGS.
11600
11601 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
11602
11603 PR target/49780
11604 * config/i386/predicates.md (no_seg_addres_operand): No more special.
11605 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11606 of DImode hard registers in base.
11607 (ix86_legitimate_address_p): Allow SImode and DImode base and index
11608 registers.
11609
11610 2011-07-20 Richard Guenther <rguenther@suse.de>
11611
11612 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
11613 (unify_nodes): Deal with that.
11614 (solve_graph): Likewise.
11615
11616 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
11617
11618 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
11619 canonicalize left operand from ZERO_EXTEND to AND.
11620
11621 2011-07-20 Anatoly Sokolov <aesok@post.ru>
11622
11623 * target.def (class_max_nregs): New hook.
11624 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
11625 * doc/tm.texi: Regenerate.
11626 * targhooks.c (default_class_max_nregs): New function.
11627 * targhooks.h (default_class_max_nregs): Declare.
11628 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
11629 x_ira_reg_class_min_nregs arrays to unsigned char.
11630 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
11631 hook instead of CLASS_MAX_NREGS macro.
11632 * reginfo.c (restore_register_info): Ditto.
11633 * ira-conflicts.c (process_regs_for_copy): Use
11634 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
11635 Change type rclass and aclass vars to reg_class_t.
11636 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
11637 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
11638 reg_class_t.
11639 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
11640 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
11641
11642 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
11643 * config/i386/i386.c (ix86_class_max_nregs): New function.
11644 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
11645 instead of CLASS_MAX_NREGS macro.
11646 (TARGET_CLASS_MAX_NREGS): Define.
11647 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
11648 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
11649 * config/avr/avr.c (class_max_nregs): Remove function.
11650 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
11651 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
11652 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
11653 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
11654 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
11655 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
11656 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
11657 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
11658 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
11659 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
11660 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
11661 * config/score/score.h (CLASS_MAX_NREGS): Remove.
11662 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
11663 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
11664 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
11665
11666 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
11667
11668 * cif-code.def (OVERWRITABLE): Fix typo and move around.
11669 (TARGET_OPTIMIZATION_MISMATCH): Delete.
11670 (EH_PERSONALITY): Fix typo.
11671 (NON_CALL_EXCEPTIONS): Fix message.
11672 (OPTIMIZATION_MISMATCH): Adjust message.
11673 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
11674
11675 2011-07-19 Ian Lance Taylor <iant@google.com>
11676
11677 * doc/install.texi (Configuration): Document
11678 --enable-build-poststage1-with-cxx.
11679
11680 2011-07-19 Robert Millan <rmh@gnu.org>
11681
11682 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
11683 (GLIBC_DYNAMIC_LINKER): Remove.
11684
11685 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
11686 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
11687 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
11688 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
11689 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
11690 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
11691
11692 * config/mips/linux.h: Remove everything except for ...
11693 (GLIBC_DYNAMIC_LINKER): ... this macro.
11694
11695 * config/mips/linux64.h: Remove everything except for ...
11696 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
11697 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
11698 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
11699 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
11700 (GNU_USER_LINK_EMULATIONN32): New macros.
11701
11702 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
11703 Use the new headers.
11704
11705 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11706
11707 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
11708 Add offset_known_p and size_known_p fields.
11709 (MEM_OFFSET_KNOWN_P): Update accordingly.
11710 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
11711 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
11712 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
11713 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
11714 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
11715 (init_emit_regs): Likewise.
11716
11717 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11718
11719 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
11720 (MEM_OFFSET): Change from returning an rtx to returning a
11721 HOST_WIDE_INT.
11722 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
11723 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
11724 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
11725 (clear_mem_offset): Declare.
11726 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
11727 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
11728 MEM_OFFSET to get a HOST_WIDE_INT offset.
11729 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
11730 (adjust_offset_for_component_ref): Take a bool "known_p"
11731 parameter and a HOST_WIDE_INT "offset" parameter.
11732 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
11733 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
11734 than an rtx. Use clear_mem_offset to clear the offset.
11735 * cfgcleanup.c (merge_memattrs): Likewise.
11736 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
11737 * function.c (assign_parm_find_stack_rtl): Likewise.
11738 (assign_parm_setup_stack): Likewise.
11739 * print-rtl.c (print_rtx): Likewise.
11740 * reload.c (find_reloads_subreg_address): Likewise.
11741 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
11742 * var-tracking.c (INT_MEM_OFFSET): Likewise.
11743 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11744 (get_mem_align_offset): Likewise.
11745 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
11746 (clear_mem_offset): New function.
11747 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
11748 offset rather than an rtx. Assume both the expressio and offset
11749 are available.
11750 (r10k_needs_protection_p_1): Update accordingly, checking the
11751 expression and offset availability here instead.
11752
11753 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11754
11755 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
11756 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
11757 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
11758 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
11759 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
11760 (clear_mem_size): Declare.
11761 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
11762 (clear_mem_size): New function.
11763 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
11764 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
11765 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
11766 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
11767 to clear the size.
11768 (nonoverlapping_memrefs_p): Likewise.
11769 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
11770 (expand_builtin_init_trampoline): Likewise.
11771 * calls.c (compute_argument_addresses): Likewise.
11772 * cfgcleanup.c (merge_memattrs): Likewise.
11773 * dce.c (find_call_stack_args): Likewise.
11774 * dse.c (record_store, scan_insn): Likewise.
11775 * dwarf2out.c (dw_sra_loc_expr): Likewise.
11776 * expr.c (emit_block_move_hints): Likewise.
11777 * function.c (assign_parm_find_stack_rtl): Likewise.
11778 * print-rtl.c (print_rtx): Likewise.
11779 * reload.c (find_reloads_subreg_address): Likewise.
11780 * rtlanal.c (may_trap_p_1): Likewise.
11781 * var-tracking.c (track_expr_p): Likewise.
11782 * varasm.c (assemble_trampoline_template): Likewise.
11783 * config/arm/arm.c (arm_print_operand): Likewise.
11784 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
11785 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
11786 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
11787 (expand_constant_setmem_prologue): Likewise.
11788 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
11789 * config/rs6000/rs6000.c (expand_block_move): Likewise.
11790 (adjacent_mem_locations): Likewise.
11791 * config/s390/s390.c (s390_expand_setmem): Likewise.
11792 (s390_expand_insv): Likewise.
11793 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
11794 (*extendqi<mode>2_short_displ): Likewise.
11795 * config/sh/sh.c (expand_block_move): Likewise.
11796 * config/sh/sh.md (extv, extzv): Likewise.
11797
11798 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11799
11800 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
11801 (mem_attrs_htab_eq): ...here.
11802 (find_mem_attrs): Replace with...
11803 (set_mem_attrs): ...this function. Take a mem_attrs structure
11804 rather than individual fields.
11805 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
11806 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
11807 (set_mem_size, change_address, adjust_address_1, offset_address)
11808 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
11809 Update accordingly.
11810
11811 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11812
11813 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
11814 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
11815 Provide a dummy definition of MEM_ADDR_SPACE for generators.
11816 (target_rtl): Add x_mode_mem_attrs.
11817 (mode_mem_attrs): New macro.
11818 (get_mem_attrs): New function.
11819 * emit-rtl.c (get_mem_attrs): Rename to...
11820 (find_mem_attrs): ...this.
11821 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
11822 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
11823 (set_mem_size, change_address, adjust_address_1, offset_address)
11824 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
11825 Update accordingly.
11826 (init_emit_regs): Initialize mode_mem_attrs.
11827
11828 2011-07-19 Richard Guenther <rguenther@suse.de>
11829
11830 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
11831 TRUTH_*_EXPR handling.
11832 * tree-ssa-operands.c (get_expr_operands): Likewise.
11833 * tree-ssa-pre.c (fully_constant_expression): Likewise.
11834 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
11835 Likewise.
11836 (is_and_or_or): Likewise.
11837 (is_norm_cond_subset_of): Likewise.
11838
11839 2011-07-19 Richard Guenther <rguenther@suse.de>
11840
11841 * tree.h (fold_build_pointer_plus_loc): New helper function.
11842 (fold_build_pointer_plus_hwi_loc): Likewise.
11843 (fold_build_pointer_plus): Define.
11844 (fold_build_pointer_plus_hwi): Likewise.
11845 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
11846 (fold_builtin_memory_op): Likewise.
11847 (fold_builtin_stpcpy): Likewise.
11848 (fold_builtin_memchr): Likewise.
11849 (fold_builtin_strstr): Likewise.
11850 (fold_builtin_strchr): Likewise.
11851 (fold_builtin_strrchr): Likewise.
11852 (fold_builtin_strpbrk): Likewise.
11853 (fold_builtin_strcat): Likewise.
11854 (expand_builtin_memory_chk): Likewise.
11855 (fold_builtin_memory_chk): Likewise.
11856 * c-typeck.c (build_unary_op): Likewise.
11857 * cgraphunit.c (thunk_adjust): Likewise.
11858 * fold-const.c (build_range_check): Likewise.
11859 (fold_binary_loc): Likewise.
11860 * omp-low.c (extract_omp_for_data): Likewise.
11861 (expand_omp_for_generic): Likewise.
11862 (expand_omp_for_static_nochunk): Likewise.
11863 (expand_omp_for_static_chunk): Likewise.
11864 * tree-affine.c (add_elt_to_tree): Likewise.
11865 * tree-data-ref.c (split_constant_offset_1): Likewise.
11866 * tree-loop-distribution.c (generate_memset_zero): Likewise.
11867 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
11868 * tree-predcom.c (ref_at_iteration): Likewise.
11869 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
11870 (add_to_parts): Likewise.
11871 (create_mem_ref): Likewise.
11872 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11873 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
11874 (number_of_iterations_le): Likewise.
11875 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
11876 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
11877 (vect_create_addr_base_for_vector_ref): Likewise.
11878 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
11879 (vect_create_cond_for_alias_checks): Likewise.
11880 * tree-vrp.c (extract_range_from_assert): Likewise.
11881 * config/alpha/alpha.c (alpha_va_start): Likewise.
11882 (alpha_gimplify_va_arg_1): Likewise.
11883 * config/i386/i386.c (ix86_va_start): Likewise.
11884 (ix86_gimplify_va_arg): Likewise.
11885 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11886 * config/mep/mep.c (mep_expand_va_start): Likewise.
11887 (mep_gimplify_va_arg_expr): Likewise.
11888 * config/mips/mips.c (mips_va_start): Likewise.
11889 (mips_gimplify_va_arg_expr): Likewise.
11890 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11891 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
11892 (rs6000_gimplify_va_arg): Likewise.
11893 * config/s390/s390.c (s390_va_start): Likewise.
11894 (s390_gimplify_va_arg): Likewise.
11895 * config/sh/sh.c (sh_va_start): Likewise.
11896 (sh_gimplify_va_arg_expr): Likewise.
11897 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
11898 * config/spu/spu.c (spu_va_start): Likewise.
11899 (spu_gimplify_va_arg_expr): Likewise.
11900 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
11901 Likewise.
11902 (xstormy16_gimplify_va_arg_expr): Likewise.
11903 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
11904 (xtensa_gimplify_va_arg_expr): Likewise.
11905
11906 2011-07-19 Richard Guenther <rguenther@suse.de>
11907
11908 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
11909 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
11910 handling.
11911
11912 PR middle-end/18908
11913 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
11914 result of BIT_*_EXPR to bitfield precision.
11915
11916 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
11917
11918 PR tree-optimization/49742
11919 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
11920 as a potential write.
11921
11922 2011-07-19 Richard Guenther <rguenther@suse.de>
11923
11924 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
11925 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
11926 (forward_propagate_comparison): Simplify, remove obsolete code.
11927
11928 2011-07-19 Richard Guenther <rguenther@suse.de>
11929
11930 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
11931 BIT_XOR_EXPR, same as the RTL expander does.
11932 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
11933 (verify_gimple_assign_unary): Likewise.
11934 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
11935 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
11936 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
11937
11938 2011-07-19 Jakub Jelinek <jakub@redhat.com>
11939
11940 PR tree-optimization/49768
11941 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
11942 if offset is smaller than bitoffset, but offset+size is bigger
11943 than bitoffset.
11944
11945 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
11946
11947 PR tree-optimization/49771
11948 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
11949 zero step, set segment length to the size of the data-ref's type.
11950
11951 2011-07-18 Martin Jambor <mjambor@suse.cz>
11952
11953 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
11954 comments.
11955 (ipcp_values_pool): Declare.
11956 (ipcp_sources_pool): Likewise.
11957 (ipcp_lattice): Changed to forward declaration.
11958 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
11959 cannot_devirtualize.
11960 (ipa_node_params): New fields descriptors, lattices, known_vals,
11961 clone_for_all_contexts and node dead, removed fields params and
11962 count_scale.
11963 (ipa_set_param_count): Removed.
11964 (ipa_get_param_count): Made to work with descriptors vector.
11965 (ipa_get_param): Updated.
11966 (ipa_param_cannot_devirtualize_p): Removed.
11967 (ipa_param_types_vec_empty): Likewise.
11968 (ipa_set_param_used): New function.
11969 (ipa_get_param_used): Updated to use descriptors vector.
11970 (ipa_func_list): Removed.
11971 (ipa_init_func_list): Removed declaration.
11972 (ipa_push_func_to_list_1): Likewise.
11973 (ipa_pop_func_from_list): Likewise.
11974 (ipa_push_func_to_list): Removed.
11975 (ipa_lattice_from_jfunc): Remove declaration.
11976 (ipa_get_jf_pass_through_result): Declare.
11977 (ipa_get_jf_ancestor_result): Likewise.
11978 (ipa_value_from_jfunc): Likewise.
11979 (ipa_get_lattice): Update.
11980 (ipa_lat_is_single_const): New function.
11981 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
11982 (ipa_init_func_list): Likewise.
11983 (ipa_pop_func_from_list): Likewise.
11984 (ipa_get_param_decl_index): Fix coding style.
11985 (count_formal_params): Removed.
11986 (count_formal_params_1): Renamed to count_formal_params.
11987 (ipa_populate_param_decls): Update to use descriptors vector.
11988 (ipa_initialize_node_params): Likewise.
11989 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
11990 (ipa_analyze_params_uses): Likewise.
11991 (ipa_free_node_params_substructures): Likewise and free also lattices
11992 and known values.
11993 (duplicate_array): Removed.
11994 (ipa_edge_duplication_hook): Add the new edge to the list of edge
11995 clones.
11996 (ipa_node_duplication_hook): Update to use new lattices.
11997 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
11998 (ipa_free_all_structures_after_iinln): Likewise.
11999 (ipa_write_node_info): Update to use new lattices.
12000 (ipa_read_node_info): Likewise.
12001 (ipa_get_jf_pass_through_result): New function.
12002 (ipa_get_jf_ancestor_result): Likewise.
12003 (ipa_value_from_jfunc): Likewise.
12004 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
12005 * ipa-cp.c: Reimplemented.
12006 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
12007 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
12008 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
12009 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
12010 * doc/invoke.texi (devirt-type-list-size): Removed description.
12011 (ipa-cp-value-list-size): Added description.
12012
12013 2011-07-18 Richard Henderson <rth@redhat.com>
12014
12015 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
12016 before calling create_basic_block.
12017
12018 2011-07-18 Jakub Jelinek <jakub@redhat.com>
12019
12020 PR middle-end/49675
12021 * tree.c (build_common_builtin_nodes): Register
12022 __builtin_return_address, __cyg_profile_func_enter
12023 and __cyg_profile_func_exit.
12024
12025 2011-07-18 Richard Henderson <rth@redhat.com>
12026
12027 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
12028 (add_labels_and_missing_jumps): ... here.
12029 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
12030
12031 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
12032
12033 PR target/47744
12034 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12035 of DImode hard registers in PLUS address chains.
12036
12037 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12038
12039 PR bootstrap/49769
12040 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
12041 (alpha*-*-freebsd*): Likewise.
12042 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
12043 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
12044 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
12045 crtprec80.o, crtfastmath.o to extra_parts for all targets.
12046 (ia64*-*-elf*): Remove extra_parts.
12047 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
12048 (sparc64-*-linux*): Likewise.
12049 (sparc64-*-freebsd*): Likewise.
12050
12051 Revert:
12052 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
12053 (ia64*-*-linux*): Likewise.
12054 (mips64*-*-linux*): Likewise.
12055 (mips*-*-linux*): Likewise.
12056
12057 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
12058
12059 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
12060
12061 2011-07-18 Richard Guenther <rguenther@suse.de>
12062
12063 * gimplify.c (gimplify_expr): Use input_location, not saved_location
12064 when building new trees.
12065
12066 2011-07-18 Richard Guenther <rguenther@suse.de>
12067
12068 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
12069 expansion result to bitfield precision if required.
12070
12071 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12072
12073 * config.gcc (i[3456x]86-*-netware*): Remove.
12074
12075 * gthr-nks.h: Remove.
12076 * configure.ac (enable_threads): Remove nks.
12077 * configure: Regenerate.
12078
12079 * config/i386/i386.c (ix86_encode_section_info): Remove netware
12080 reference.
12081 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
12082 <netware.h> reference.
12083
12084 * config/i386/netware-libgcc.c,
12085 gcc/config/i386/netware-libgcc.def,
12086 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
12087 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
12088 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
12089 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
12090
12091 * doc/extend.texi (Function Attributes,
12092 callee_pop_aggregate_return): Remove i?86-netware reference.
12093 * doc/install.texi (Configuration, --enable-threads): Remove nks.
12094
12095 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12096
12097 PR target/49746
12098 Revert:
12099 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12100
12101 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
12102 patterns.
12103
12104 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
12105
12106 PR middle-end/49732
12107 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
12108
12109 2011-07-16 Matthias Klose <doko@ubuntu.com>
12110
12111 * doc/install.texi: Document --enable-static-libjava.
12112
12113 2011-07-15 Richard Henderson <rth@redhat.com>
12114
12115 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12116 Replace all three arguments by returning a VEC of edges.
12117 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
12118 pointers and counts.
12119 (fix_edges_for_rarely_executed_code): Merge ...
12120 (rest_of_handle_partition_blocks): ... into...
12121 (partition_hot_cold_basic_blocks): ... here. Return todo items if
12122 any work was performed.
12123 (pass_partition_blocks): Clear todo_flags_finish.
12124
12125 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
12126 Jakub Jelinek <jakub@redhat.com>
12127 Jonathan Wakely <jwakely.gcc@gmail.com>
12128
12129 PR libstdc++/49745
12130 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
12131 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
12132
12133 2011-07-15 Jason Merrill <jason@redhat.com>
12134
12135 PR testsuite/49741
12136 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
12137 rather than --tool_opts.
12138
12139 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
12140
12141 * doc/plugins.texi (Building GCC plugins): gengtype needs its
12142 corresponding gtype.state.
12143
12144 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12145
12146 PR target/49723
12147 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
12148
12149 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
12150
12151 PR target/48220
12152 * doc/md.texi (Standard Names): Document window_save.
12153 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
12154 expand_debug_expr and expand_debug_source_expr. If the target has
12155 a window_save instruction, adjust the ENTRY_VALUE_EXP.
12156 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
12157 SSA_NAME_VAR is a parameter.
12158 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
12159 * var-tracking.c (parm_reg_t): New type and associated vector type.
12160 (windowed_parm_regs): New variable.
12161 (adjust_insn): If the target has a window_save instruction and this
12162 is the instruction, make its effect on parameter registers explicit.
12163 (next_non_note_insn_var_location): New function.
12164 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
12165 (vt_add_function_parameter): If the target has a window_save insn,
12166 adjust the incoming RTL and record that in windowed_parm_regs.
12167 (vt_finalize): Free windowed_parm_regs.
12168
12169 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
12170
12171 * doc/invoke.texi (C6X Options): New section.
12172 * doc/md.texi (TI C6X family): New section.
12173 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
12174 tic6x-*-uclinux.
12175 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
12176 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
12177 Provide C6X definitions.
12178 * config/c6x/c6x.md: New file.
12179 * config/c6x/constraints.md: New file.
12180 * config/c6x/predicates.md: New file.
12181 * config/c6x/c6x-sched.md.in: New file.
12182 * config/c6x/c6x-sched.md: New file.
12183 * config/c6x/gensched.sh: New file.
12184 * config/c6x/c6x-mult.md.in: New file.
12185 * config/c6x/genmult.sh: New file.
12186 * config/c6x/c6x-mult.md: New file.
12187 * config/c6x/sync.md: New file.
12188 * config/c6x/c6x-protos.h: New file.
12189 * config/c6x/sfp-machine.h: New file.
12190 * config/c6x/c6x.c: New file.
12191 * config/c6x/c6x.h: New file.
12192 * config/c6x/crti.s: New file.
12193 * config/c6x/crtn.s: New file.
12194 * config/c6x/lib1funcs.asm: New file.
12195 * config/c6x/c6x-modes.def: New file.
12196 * config/c6x/genopt.sh: New file.
12197 * config/c6x/c6x.opt: New file.
12198 * config/c6x/c6x-tables.opt: New file.
12199 * config/c6x/c6x-opts.h: New file.
12200 * config/c6x/c6x-isas.def: New file.
12201 * config/c6x/elf.h: New file.
12202 * config/c6x/elf-common.h: New file.
12203 * config/c6x/uclinux-elf.h: New file.
12204 * config/c6x/t-c6x: New file.
12205 * config/c6x/t-c6x-elf: New file.
12206 * config/c6x/t-c6x-uclinux: New file.
12207 * config/c6x/t-c6x-softfp: New file.
12208 * config/c6x/gtd.c: New file.
12209 * config/c6x/gtf.c: New file.
12210 * config/c6x/ltd.c: New file.
12211 * config/c6x/ltf.c: New file.
12212 * config/c6x/ged.c: New file.
12213 * config/c6x/gef.c: New file.
12214 * config/c6x/led.c: New file.
12215 * config/c6x/lef.c: New file.
12216 * config/c6x/eqd.c: New file.
12217 * config/c6x/eqf.c: New file.
12218 * config/c6x/libgcc-c6xeabi.ver: New file.
12219
12220 Revert
12221 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
12222 PR rtl-optimization/11320
12223 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12224 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12225 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12226 current_sched_info->compute_jump_reg_dependencies. Record which
12227 registers are used and which registers are set by the jump.
12228 Clear deps->reg_conditional_sets after a barrier.
12229 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12230 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12231 (init_deps): Initialize reg_conditional_sets.
12232 (free_deps): Clear reg_conditional_sets.
12233 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12234 Mark registers live on entry of the fallthrough block and conditionally
12235 set as set by the jump. Mark registers live on entry of non-fallthrough
12236 blocks as used by the jump.
12237 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12238 Mark new parameters as unused.
12239
12240 2011-07-14 Andrew Pinski <pinskia@gmail.com>
12241
12242 PR tree-opt/49309
12243 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
12244 Use fold_build2_loc instead of build2.
12245 Use the correct type for the new tree.
12246
12247 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12248
12249 PR rtl-optimization/11320
12250 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
12251 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
12252
12253 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
12254
12255 PR target/49487
12256 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
12257 of REG.
12258 (*rotw<mode>): Use const_int_operand for operand2.
12259 Use match_scatch for operand3.
12260 (*rotb<mode>): Ditto
12261 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
12262
12263 2011-07-14 Richard Guenther <rguenther@suse.de>
12264
12265 PR tree-optimization/49651
12266 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12267 handle dereferences with subvariables.
12268
12269 2011-07-14 Richard Guenther <rguenther@suse.de>
12270
12271 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
12272 (fold_stmt_1): Do it here directly on gimple and as a first thing.
12273
12274 2011-07-14 Richard Guenther <rguenther@suse.de>
12275
12276 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
12277 not bool_var when folding bool_var != 1 or bool_var == 0.
12278
12279 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12280
12281 * haifa-sched.c (schedule_insns): Remove outdated comment.
12282 (schedule_block): When computing a known value for TODO_SPEC,
12283 just set it rather than using logical operations.
12284 (try_ready): Likewise. Use a local variable rather than a
12285 pointer to TODO_SPEC. Reorder an if statement to move the
12286 easy case to the then block.
12287 * sched-deps.c (dep_spec_p): New static function.
12288 (update_dep): Use it to decide whether to call
12289 change_spec_dep_to_hard.
12290 (get_back_and_forw_lists): Use it.
12291 (sd_resolve_dep): Likewise.
12292 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
12293 (haifa_note_mem_dep): Likewise.
12294 (check_dep): Likewise.
12295 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
12296 (sched_free_deps): Free in two passes.
12297
12298 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
12299
12300 PR middle-end/49736
12301 * expr.c (all_zeros_p): Undo bogus part of last change.
12302
12303 2011-07-14 Matthias Klose <doko@ubuntu.com>
12304
12305 * doc/extend.texi (optimize attribute): Fix typo.
12306
12307 2011-07-14 Richard Guenther <rguenther@suse.de>
12308
12309 * gimplify.c (gimplify_expr): Only do required conversions.
12310
12311 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
12312
12313 PR target/43746
12314 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
12315 i.e. use default_elf_select_section.
12316 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
12317 (READONLY_DATA_SECTION_ASM_OP): Remove.
12318 (TARGET_ASM_NAMED_SECTION): Move from here...
12319 * config/avr/avr.c: ...to here.
12320 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
12321 (avr_asm_named_section): Make static.
12322
12323 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12324
12325 PR bootstrap/49739
12326 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
12327 and crtfastmath.o for Linux/x86.
12328
12329 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12330
12331 * haifa-sched.c: Include "hashtab.h"
12332 (sched_no_dce): New global variable.
12333 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
12334 SHADOW_P): New macros.
12335 (last_clock_var, cycle_issued_insns): Move declarations.
12336 (must_backtrack): New static variable.
12337 (struct delay_pair): New structure.
12338 (delay_htab, delay_htab_i2): New static variables.
12339 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
12340 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
12341 functions.
12342 (dep_cost_1): If delay pairs exist, try to look up the insns and
12343 use the correct pair delay if we find them.
12344 (rank-for_schedule): Tweak priority for insns that must be scheduled
12345 soon to avoid backtracking.
12346 (queue_insn): Detect conditions which force backtracking.
12347 (ready_add): Likewise.
12348 (struct sched_block_state): Add member shadows_only_p.
12349 (struct haifa_save_data): New structure.
12350 (backtrack_queue): New static variable.
12351 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
12352 unschedule_insns_until, restore_last_backtrack_point,
12353 free_topmost_backtrack_point, free_backtrack_queue,
12354 estimate_insn_tick, estimate_shadow_tick): New functions.
12355 (prune_ready_list): New arg shadows_only_p. All callers changed.
12356 If true, remove everything that isn't SHADOW_P. Look up delay
12357 pairs and estimate ticks to avoid scheduling the first insn too early.
12358 (verify_shadows): New function.
12359 (schedule_block): Add machinery to enable backtracking.
12360 (sched_init): Take sched_no_dce into account when setting
12361 DF_LR_RUN_DCE.
12362 (free_delay_pairs): New function.
12363 (init_h_i_d): Initialize INSN_EXACT_TICK.
12364 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
12365 * sched-deps.c (sd_unresolve_dep): New function.
12366 * sched-int. (struct haifa_sched_info): New fields save_state
12367 and restore_state.
12368 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
12369 feeds_backtrack_insn and shadow_p.
12370 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
12371 (sched_no_dce): Declare variable.
12372 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
12373 sd_unresolve_dep): Declare functions.
12374 * modulo-sched.c (sms_sched_info): Clear the two new fields.
12375 * sched-rgn.c (rgn_const_sched_info): Likewise.
12376 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12377 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
12378 (ebb_sched_info): Add them for the two new fields.
12379 (add_deps_for_risky_insns): Call add_delay_dependencies.
12380
12381 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12382
12383 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
12384 Rename -mr11.
12385 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
12386 (rs6000_call_indirect_aix): Ditto.
12387 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
12388 (call_indirect_aix<ptrsize>_internal): Ditto.
12389 (call_indirect_aix<ptrsize>_nor11): Ditto.
12390 (call_indirect_aix<ptrsize>_internal2): Ditto.
12391 (call_value_indirect_aix<ptrsize>): Ditto.
12392 (call_value_indirect_aix<ptrsize>_internal): Ditto.
12393 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
12394 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
12395 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
12396
12397 2011-07-13 Jason Merrill <jason@redhat.com>
12398
12399 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
12400
12401 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12402
12403 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
12404 * config/spu/spu.md ("clrsb<mode>2"): New expander.
12405
12406 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
12407
12408 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
12409 * configure: Regenerate.
12410
12411 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12412
12413 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
12414 (asm_file_start): Remove.
12415 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
12416 free_bb_for_insn around code that modifies insns before
12417 restarting df analysis.
12418
12419 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12420
12421 PR target/49541
12422 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
12423 (LINK_SPEC): ... here.
12424
12425 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12426
12427 * haifa-sched.c (struct sched_block_state): New.
12428 (schedule_block): Move some local variables into such a structure.
12429
12430 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12431
12432 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
12433 * config/i386/t-crtpc: Remove.
12434 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
12435 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
12436 tmake_file.
12437 (x86_64-*-darwin*): Likewise.
12438 (i[34567]86-*-linux*): Likewise.
12439 (x86_64-*-linux*): Likewise.
12440
12441 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
12442 Handle -mpc32, -mpc64, -mpc80.
12443
12444 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12445
12446 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
12447 * config/alpha/t-crtfm: Remove.
12448 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
12449 * config/i386/t-crtfm: Remove.
12450 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
12451 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
12452 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
12453 * config/sparc/t-crtfm: Remove.
12454
12455 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
12456 (alpha*-*-freebsd*): Likewise.
12457 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
12458 (x86_64-*-darwin*): Likewise.
12459 (i[34567]86-*-linux*): Likewise.
12460 (x86_64-*-linux*): Likewise.
12461 (x86_64-*-mingw*): Likewise.
12462 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
12463 (ia64*-*-freebsd*): Likewise.
12464 (ia64*-*-linux*): Likewise.
12465 (mips64*-*-linux*): Likewise.
12466 (mips*-*-linux*): Likewise.
12467 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
12468 (sparc64-*-linux*): Likewise.
12469 (sparc64-*-freebsd*): Likewise.
12470
12471 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12472
12473 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
12474 * config/darwin-crt3.c: Move to ../libgcc/config.
12475 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
12476 ($(T)crt3$(objext)): Remove.
12477 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
12478 ($(T)crt2$(objext)): Remove.
12479 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
12480 (powerpc64-*-darwin*): Likewise.
12481
12482 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
12483
12484 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
12485
12486 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
12487 (addsi_1_zext): This.
12488
12489 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12490
12491 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
12492 * doc/tm.texi: Regenerate.
12493 * target.def (mergeable_rodata_prefix): New defhookpod.
12494 * varasm.c (mergeable_string_section, mergeable_constant_section):
12495 Use it. Allocate name with alloca.
12496
12497 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
12498
12499 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
12500
12501 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
12502
12503 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
12504 overlap check.
12505
12506 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
12507
12508 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
12509 (count_type_elements): Delete.
12510 (complete_ctor_at_level_p): Declare.
12511 * expr.c (flexible_array_member_p): New function, split out from...
12512 (count_type_elements): ...here. Make static. Replace allow_flexarr
12513 parameter with for_ctor_p. When for_ctor_p is true, return the
12514 number of elements that should appear in the top-level constructor,
12515 otherwise return an estimate of the number of scalars.
12516 (categorize_ctor_elements): Replace p_must_clear with p_complete.
12517 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
12518 (complete_ctor_at_level_p): New function, borrowing union logic
12519 from old categorize_ctor_elements_1.
12520 (mostly_zeros_p): Return true if the constructor is not complete.
12521 (all_zeros_p): Update call to categorize_ctor_elements.
12522 * gimplify.c (gimplify_init_constructor): Update call to
12523 categorize_ctor_elements. Don't call count_type_elements.
12524 Unconditionally prevent clearing for variable-sized types,
12525 otherwise rely on categorize_ctor_elements to detect
12526 incomplete initializers.
12527
12528 2011-07-13 Richard Guenther <rguenther@suse.de>
12529
12530 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
12531 the final type is integral.
12532
12533 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12534
12535 * sched-int.h (struct _dep): Add member cost.
12536 (DEP_COST, UNKNOWN_DEP_COST): New macros.
12537 * sched-deps.c (init_dep_1): Initialize DEP_COST.
12538 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
12539 (sched_change_pattern): Reset it for dependent insns.
12540
12541 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12542
12543 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
12544 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
12545 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
12546 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
12547 (CRT0_S, MCRT0_S): Remove.
12548 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
12549 Remove.
12550 (s-crt0): Remove.
12551 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
12552
12553 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
12554
12555 * cse.c (insert_with_costs): Put semi-colon after empty loop body
12556 on the next line.
12557 * emit-rtl.c (push_to_sequence): Likewise.
12558 * haifa-sched.c (max_issue): Likewise.
12559 * matrix-reorg.c (add_allocation_site): Likewise.
12560 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
12561 * reload.c (alternative_allows_const_pool_ref): Likewise.
12562 * sched-rgn.c (rgn_add_block): Likewise.
12563 (rgn_fix_recovery_cfg): Likewise.
12564 * tree.c (attribute_list_contained): Likewise.
12565
12566 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
12567
12568 * config/i386/i386.c: Tidy processor feature bitmasks.
12569 (m_P4_NOCONA): New.
12570
12571 2011-07-12 Andrew Pinski <pinskia@gmail.com>
12572
12573 PR rtl-opt/49474
12574 * cprop.c (find_implicit_sets): Correct the condition.
12575
12576 2011-07-12 Richard Henderson <rth@redhat.com>
12577
12578 PR target/49713
12579 * dwarf2out.h (dwarf_frame_regnum): Remove.
12580 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
12581 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
12582 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
12583 (execute_dwarf2_frame): Initialize them.
12584 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
12585 users of the macros with the variables.
12586 (expand_builtin_dwarf_sp_column): Revert last change.
12587 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
12588 result of DWARF_FRAME_REGNUM into a local variable.
12589
12590 2011-07-12 Richard Henderson <rth@redhat.com>
12591
12592 PR target/49714
12593 * config/i386/i386.c (x86_output_mi_thunk): Use
12594 machopic_indirect_call_target instead of machopic_indirection_name
12595 directly.
12596
12597 2011-07-12 Laurent GUERBY <laurent@guerby.net>
12598 Eric Botcazou <ebotcazou@adacore.com>
12599
12600 * prefix.h: Wrap up in extern "C" block.
12601
12602 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
12603
12604 AMD bdver2 Enablement
12605 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
12606 (case ${target}): Add bdver2.
12607 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12608 -march=native recognize bdver2 processors.
12609 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12610 bdver2 def_and_undef
12611 * config/i386/i386.c (struct processor_costs bdver2_cost): New
12612 bdver2 cost table.
12613 (m_BDVER2): New definition.
12614 (m_AMD_MULTIPLE): Includes m_BDVER2.
12615 (initial_ix86_tune_features): Add bdver2 tuning.
12616 (processor_target_table): Add bdver2 entry.
12617 (static const char *const cpu_names): Add bdver2 entry.
12618 (ix86_option_override_internal): Add bdver2 instruction sets.
12619 (ix86_issue_rate): Add bdver2.
12620 (ix86_adjust_cost): Add bdver2.
12621 (has_dispatch): Add bdver2.
12622 * config/i386/i386.h (TARGET_BDVER2): New definition.
12623 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
12624 (enum processor_type): Add PROCESSOR_BDVER2.
12625 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
12626 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
12627 description.
12628
12629 2011-07-12 Richard Henderson <rth@redhat.com>
12630
12631 PR target/49714
12632 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
12633 destination address in memory on some paths.
12634
12635 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
12636
12637 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
12638 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
12639 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
12640 * function.c (locate_and_pad_parm): Take it into account.
12641 * target.def (function_arg_round_boundary): New hook.
12642 * targhooks.c (default_function_arg_round_boundary): New function.
12643 * targhooks.h (default_function_arg_round_boundary): Declare.
12644 * doc/tm.texi: Regenerate.
12645
12646 2011-07-12 Richard Guenther <rguenther@suse.de>
12647
12648 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
12649 Do not perform no-op changes.
12650
12651 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
12652
12653 * config/arm/predicates.md (neon_struct_operand): Make a normal
12654 predicate.
12655 (neon_struct_or_register_operand): New predicate.
12656 * config/arm/neon.md (movmisalign<mode>): Replace predicates
12657 with neon_struct_or_register_operand.
12658 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
12659 neon_struct_operand instead of memory_operand.
12660
12661 2011-07-12 Martin Jambor <mjambor@suse.cz>
12662
12663 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
12664 * cgraph.c (cgraph_get_node_or_alias): Removed.
12665 (change_decl_assembler_name): Changed all calls to
12666 cgraph_get_node_or_alias to a call to cgraph_get_node.
12667 (cgraph_make_decl_local): Likewise.
12668 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
12669 * varasm.c (default_binds_local_p_1): Likewise.
12670 (decl_binds_to_current_def_p): Likewise.
12671
12672 2011-07-12 Jakub Jelinek <jakub@redhat.com>
12673
12674 PR tree-optimization/49712
12675 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
12676
12677 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
12678
12679 * genautomata.c (add_arc): Return void. All callers changed.
12680 (make_automaton): Remove dead code.
12681
12682 2011-07-11 Richard Henderson <rth@redhat.com>
12683
12684 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
12685 (DW_FRAME_POINTER_REGNUM): New.
12686 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
12687 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
12688 (dwf_regno): New.
12689 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
12690 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
12691 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
12692 Use it.
12693 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
12694 * dwarf2out.h (dwarf_frame_regnum): New.
12695 (struct cfa_loc): Document the domain of the reg member.
12696
12697 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
12698
12699 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
12700 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
12701
12702 2011-07-11 Jakub Jelinek <jakub@redhat.com>
12703
12704 PR debug/49676
12705 * dwarf2out.c (int_shift_loc_descriptor): New function.
12706 (int_loc_descriptor): If shorter, emit i as
12707 (i >> shift), shift, DW_OP_shl for suitable shift value.
12708 Similarly, try to optimize large negative values using
12709 DW_OP_neg of a positive value if shorter.
12710 (size_of_int_shift_loc_descriptor): New function.
12711 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
12712 changes.
12713 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
12714 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
12715 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
12716 is shorter.
12717 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
12718 addend as added DW_OP_plus if it is shorter.
12719
12720 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12721
12722 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
12723 (DTORS_SECTION_ASM_OP): Define.
12724
12725 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12726
12727 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
12728 * config/t-dfprules: Move to ../libgcc/config.
12729 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
12730 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
12731 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
12732 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
12733 Likewise.
12734 (i[34567]86-*-cygwin*): Likewise.
12735 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
12736 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
12737 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
12738 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
12739 D64PBIT_FUNCS, D128PBIT_FUNCS.
12740
12741 2011-07-11 Richard Guenther <rguenther@suse.de>
12742
12743 * tree-vrp.c (simplify_conversion_using_ranges): Manually
12744 translate the source value-range through the conversion chain.
12745
12746 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
12747
12748 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
12749
12750 2011-07-11 Arthur Loiret <aloiret@debian.org>
12751
12752 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
12753 a bi-arch compiler defaulting to 31-bit. In this case:
12754 (tmake_file): Add s390/t-linux64.
12755 * doc/install.texi: Add s390-linux to the list of targets supporting
12756 --enable-targets=all.
12757
12758 2011-07-11 Arthur Loiret <aloiret@debian.org>
12759 Matthias Klose <doko@debian.org>
12760
12761 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
12762 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
12763 (tm_file): Add mips/linux64.h.
12764 (tmake_file): Add mips/t-linux64.
12765 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
12766 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
12767 instead of hardcoded mabi=n32.
12768 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
12769 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
12770 convention.
12771
12772 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12773
12774 * passes.c (init_optimization_passes): Add invariant motion pass
12775 after induction variable optimization.
12776
12777 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
12778
12779 PR target/39633
12780 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
12781 offsets 1..5 set cc0 in a usable way.
12782
12783 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
12784
12785 * tree.h (call_expr_arg): Remove.
12786 (call_expr_argp): Likewise.
12787
12788 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
12789
12790 * config/sparc/sparc.md (save_register_window_1): Rename to...
12791 (window_save): ...this.
12792 * config/sparc/sparc.c (emit_save_register_window): Rename to...
12793 (emit_window_save): ...this.
12794 (sparc_expand_prologue): Adjust to above renaming.
12795
12796 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
12797
12798 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
12799 of movabs for x32.
12800
12801 2011-07-10 Richard Henderson <rth@redhat.com>
12802
12803 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
12804 run final, instead of emitting text directly.
12805
12806 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
12807
12808 * config/i386/i386.c (ix86_option_override_internal): Turn on
12809 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
12810 small PIC models for TARGET_X32.
12811
12812 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
12813
12814 PR target/49684
12815 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
12816 $(LIBGCC2_CFLAGS).
12817
12818 PR bootstrap/49680
12819 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
12820 stray notes and debug insns by using prev_nonnote_nondebug_insn
12821 instead of PREV_INSN.
12822
12823 2011-07-09 Richard Henderson <rth@redhat.com>
12824
12825 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
12826 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
12827 * dwarf2out.c: ... here.
12828 (output_all_cfis): Remove.
12829 (dwarf2out_switch_text_section): Use output_cfis directly.
12830 (size_of_locs): Export.
12831 (output_loc_sequence, output_loc_sequence_raw): Export.
12832 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
12833 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
12834 output_cfa_loc_raw): Move to ...
12835 * dwarfcfi.c: ... here.
12836 * dwarf2out.h: Update decls.
12837
12838 2011-07-09 Richard Henderson <rth@redhat.com>
12839
12840 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
12841 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
12842 * dwarf2cfi.c: ... here.
12843 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
12844 (DWARF_ROUND, DWARF_CIE_ID): Remove.
12845 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
12846 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
12847 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
12848
12849 2011-07-09 Richard Henderson <rth@redhat.com>
12850
12851 * dwarf2cfi.c (cie_return_save): New.
12852 (queue_reg_save): Use compare_reg_or_pc.
12853 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
12854 (dwarf2out_frame_debug_expr): Likewise.
12855 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
12856 (initial_return_save): Likewise.
12857 (execute_dwarf2_frame): Save and restore initial return save from
12858 the cie to the fde.
12859 * config/mips/mips.c (mips_frame_set): Remove special case for
12860 DWARF_FRAME_RETURN_COLUMN.
12861
12862 2011-07-09 Richard Henderson <rth@redhat.com>
12863
12864 * dwarf2cfi.c (lookup_cfa): Remove.
12865 (execute_dwarf2_frame): Assert queues are empty on entry.
12866 Setup initial cfa directly, not via lookup_cfa.
12867 Don't clear args_size state here.
12868
12869 2011-07-09 Richard Henderson <rth@redhat.com>
12870
12871 * dwarf2cfi.c (add_cfi_vec): New.
12872 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
12873 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
12874 (execute_dwarf2_frame): Set add_cfi_vec.
12875
12876 2011-07-09 Richard Henderson <rth@redhat.com>
12877
12878 * defaults.h (ASM_COMMENT_START): Move here...
12879 * dwarf2asm.c: ... from here.
12880 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
12881 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
12882 * varasm.c: Likewise.
12883
12884 2011-07-09 Richard Henderson <rth@redhat.com>
12885
12886 PR debug/49686
12887 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
12888 (create_cfi_notes): ... do it here instead.
12889
12890 2011-07-09 Jakub Jelinek <jakub@redhat.com>
12891
12892 PR debug/49676
12893 * dwarf2out.c (size_of_int_loc_descriptor): New function.
12894 (address_of_int_loc_descriptor): Use it.
12895 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
12896
12897 2011-07-09 Richard Henderson <rth@redhat.com>
12898
12899 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
12900 (prologue, epilogue): New.
12901 (return, *rts): New.
12902 (blockage, setd, seti): New.
12903 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12904 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
12905 (pdp11_saved_regno): New.
12906 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
12907 generate rtl instead of text.
12908 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
12909 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
12910 * config/pdp11/pdp11-protos.h: Update.
12911
12912 2011-07-09 Richard Henderson <rth@redhat.com>
12913
12914 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
12915 try to insert an rtl prologue here.
12916 (rs6000_output_function_epilogue): Similarly.
12917 * config/rs6000/rs6000.md (prologue): Emit a barrier to
12918 satisfy !TARGET_SCHED_PROLOG.
12919 (epilogue, sibcall_epilogue): Likewise.
12920
12921 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
12922
12923 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
12924 (FP_REG_P): Delete.
12925 (IN_OR_GLOBAL_P): Likewise.
12926
12927 2011-07-08 Jason Merrill <jason@redhat.com>
12928
12929 PR c++/45437
12930 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
12931 compound assignment.
12932
12933 * cgraph.c (cgraph_add_to_same_comdat_group): New.
12934 * cgraph.h: Declare it.
12935 * ipa.c (function_and_variable_visibility): Make sure thunks
12936 have the right visibility.
12937
12938 2011-07-08 Richard Henderson <rth@redhat.com>
12939
12940 PR bootstrap/49680
12941 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
12942 any tablejump vector.
12943
12944 PR bootstrap/49680
12945 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
12946 end of the prologue.
12947
12948 2011-07-08 Jakub Jelinek <jakub@redhat.com>
12949
12950 PR target/49621
12951 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
12952 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
12953 * config/rs6000/vector.md (vector_select_<mode>,
12954 vector_select_<mode>_uns): Change second operand of NE to
12955 CONST0_RTX (<MODE>mode) instead of const0_rtx.
12956 * config/rs6000/altivec.md (*altivec_vsel<mode>,
12957 *altivec_vsel<mode>_uns): Expect second operand of NE to be
12958 zero_constant of the corresponding vector mode.
12959 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
12960 Likewise.
12961
12962 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
12963
12964 * graphite-dependences.c (build_alias_set_powerset): Remove
12965 continue from loop, add one more assert.
12966
12967 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
12968
12969 PR target/46779
12970 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
12971 In particular, allow 8-bit values in r28 and r29.
12972 (avr_hard_regno_scratch_ok): Disallow any register that might be
12973 part of the frame pointer.
12974 (avr_hard_regno_rename_ok): Same.
12975 (avr_legitimate_address_p): Don't allow SUBREGs.
12976
12977 2011-07-08 Julian Brown <julian@codesourcery.com>
12978
12979 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
12980 big-endian mode.
12981 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
12982 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
12983 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
12984 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
12985 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
12986 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
12987 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
12988 registers in big-endian mode.
12989
12990 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
12991
12992 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
12993 in terms of another.
12994 (write_attr_value): Write a cast if necessary.
12995
12996 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
12997 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
12998 (REG_WORDS_BIG_ENDIAN): Document.
12999 * doc/tm.texi: Regenerate.
13000 * reload.c (operands_match_p): Take it into account.
13001 (reload_adjust_reg_for_mode): Likewise.
13002 * rtlanal.c (subreg_get_info): Likewise.
13003
13004 2011-07-08 Richard Guenther <rguenther@suse.de>
13005
13006 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
13007 folding.
13008
13009 2011-07-08 Kai Tietz <ktietz@redhat.com>
13010
13011 * fold-const.c (fold_truth_andor): Factored out truth_andor
13012 label from fold_binary as function.
13013 (fold_binary_loc): Replace truth_andor lable
13014 by function fold_truth_andor.
13015
13016 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
13017
13018 PR middle-end/49519
13019 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
13020 check if address is stored in register. If so - give up.
13021 (check_sibcall_argument_overlap_1): Do not perform check of
13022 overlapping when it is call to address.
13023
13024 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
13025
13026 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
13027 of magic '31'.
13028
13029 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
13030
13031 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
13032 GET_MODE_BITSIZE where appropriate.
13033 (widen_leading, expand_parity, expand_ctz, expand_ffs,
13034 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
13035 expand_float, expand_fix): Likewise.
13036 * expr.c (convert_move, convert_modes, expand_expr_real_2,
13037 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
13038 * stor-layout.c (get_mode_bounds): Likewise.
13039 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
13040 Likewise.
13041 * convert.c (convert_to_integer): Likewise.
13042 * expmed.c (expand_shift_1): Likewise.
13043
13044 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
13045 a bitsize.
13046
13047 * optabs.c (expand_binop): Tighten conditions for doubleword
13048 expansions.
13049 (widen_bswap): Assert that mode bitsize and precision are the same.
13050 * stor-layout.c (get_best_mode): Skip modes that have lower
13051 precision than bitsize.
13052 * recog.c (simplify_while_replacing): Assert that bitsize and
13053 precision are the same.
13054
13055 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13056
13057 * Makefile.in (LIBGCOV): Remove.
13058 (libgcc.mvars): Remove LIBGCOV.
13059 * libgov.c: Move to ../libgcc.
13060
13061 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13062
13063 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
13064
13065 2011-07-08 Martin Jambor <mjambor@suse.cz>
13066
13067 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
13068 is too big for total scalarization.
13069
13070 2011-07-07 Richard Henderson <rth@redhat.com>
13071
13072 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
13073 (DBX_DEBUGGING_INFO): Undef.
13074
13075 2011-07-07 Richard Henderson <rth@redhat.com>
13076
13077 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
13078 Handle some opcodes specially for debugging.
13079 * print-rtl.c: Include dwarf2out.h
13080 (print_rtx): Handle NOTE_INSN_CFI.
13081 * Makefile.in (print-rtl.o): Update.
13082
13083 2011-07-07 Richard Henderson <rth@redhat.com>
13084
13085 * tree-pass.h (pass_dwarf2_frame): Declare.
13086 * passes.c (init_optimization_passes): Add it.
13087 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
13088 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
13089 make static, do not call add_cfis_to_fde.
13090 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
13091 dwarf2out_frame_init): Merge into...
13092 (execute_dwarf2_frame): ... here. New function.
13093 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
13094 saved_do_cfi_asm to a tri-state variable.
13095 (gate_dwarf2_frame, pass_dwarf2_frame): New.
13096 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
13097 if it has yet to be done. Don't call dwarf2cfi_function_init.
13098 * dwarf2out.h, debug.h: Update decls.
13099 * final.c (final_start_function): Don't call
13100 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
13101 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
13102 * toplev.c (lang_dependent_init): Likewise.
13103
13104 2011-07-07 Richard Henderson <rth@redhat.com>
13105
13106 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
13107 FDE_TABLE_INCREMENT): Replace with...
13108 (fde_vec): ... this, a new vector.
13109 (current_fde): Remove. Replace all users with cfun->fde.
13110 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
13111 (size_of_aranges, dwarf2out_finish): Likewise.
13112 (dwarf2out_alloc_current_fde): Break out from ...
13113 (dwarf2out_begin_prologue): ... here.
13114 (dwarf2out_frame_init): Remove.
13115 * dwarf2cfi.c: Update all users of current_fde.
13116 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
13117 * dwarf2out.h: Update decls.
13118 (dw_fde_node): Add fde_index member.
13119 * function.h (struct function): Add fde member.
13120
13121 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13122 Richard Henderson <rth@redhat.com>
13123
13124 * dwarf2cfi.c (add_cfi): Remove.
13125 (dwarf2out_cfi_label): Remove force argument. Only generate the
13126 label name.
13127 (add_fde_cfi): Simplify the different code paths.
13128 (add_cie_cfi): New.
13129 (old_cfa, old_cfa_remember): New.
13130 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
13131 (last_reg_save_label): Remove.
13132 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
13133 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
13134 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
13135 dwarf2out_frame_debug_cfa_expression,
13136 dwarf2out_frame_debug_cfa_restore,
13137 dwarf2out_frame_debug_cfa_window_save,
13138 dwarf2out_frame_debug_expr): Remove label parameter.
13139 (cfi_label_required_p, add_cfis_to_fde): New.
13140 (dwarf2out_frame_debug_after_prologue): New.
13141 (dwarf2cfi_frame_init): Initialize old_cfa.
13142 (dwarf2out_frame_debug_restore_state): Likewise.
13143 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
13144 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
13145 * final.c (final_start_function): Call
13146 dwarf2out_frame_debug_after_prologue.
13147
13148 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13149 Richard Henderson <rth@redhat.com>
13150
13151 * dwarf2cfi.c (cfi_insn): New.
13152 (dwarf2out_cfi_label): Don't emit cfi label here.
13153 (add_fde_cfi): Create a NOTE_INSN_CFI.
13154 (dwarf2out_frame_debug): Setup cfi_insn.
13155 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
13156 (dwarf2out_cfi_begin_epilogue): Make static.
13157 (dwarf2out_frame_debug_restore_state): Make static.
13158 * dwarf2out.c (output_cfi_directive): Make static.
13159 (dwarf2out_emit_cfi): New.
13160 * dwarf2out.h: Update.
13161 * final.c (final): Remove CFI notes.
13162 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
13163 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
13164 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
13165 * insn-notes.def (NOTE_INSN_CFI): New.
13166 (NOTE_INSN_CFI_LABEL): New.
13167 * rtl.h (union rtunion_def): Add rt_cfi member.
13168 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
13169
13170 2011-07-07 Richard Henderson <rth@redhat.com>
13171
13172 * dwarf2cfi.c: New file.
13173 * Makefile.in (OBJS): Add it.
13174 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
13175 * gengtype.c (open_base_files): Include dwarf2out.h.
13176 * coretypes.h (enum var_init_status): Move from ...
13177 * rtl.h: ... here.
13178 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
13179 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
13180 expand_builtin_dwarf_sp_column, init_return_column_size,
13181 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
13182 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
13183 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
13184 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
13185 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
13186 compute_barrier_args_size, dwarf2out_args_size,
13187 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
13188 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
13189 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
13190 queue_reg_save, dwarf2out_flush_queued_reg_saves,
13191 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
13192 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
13193 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
13194 dwarf2out_frame_debug_cfa_expression,
13195 dwarf2out_frame_debug_cfa_restore,
13196 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
13197 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
13198 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
13199 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
13200 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
13201 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
13202 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
13203 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
13204 dw_loc_descr_node): Move to dwarf2out.h.
13205 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
13206 mem_loc_descriptor): Export.
13207 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
13208 (dwarf2out_frame_init): Extract CIE generation code to
13209 dwarf2cfi_frame_init.
13210
13211 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
13212
13213 PR target/49660
13214 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
13215 MASK_V8PLUS, remove commented out flag and reorder.
13216
13217 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13218
13219 PR c/49644
13220 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
13221 one non-complex and one complex argument, call c_save_expr on both
13222 operands.
13223
13224 2011-07-07 Martin Jambor <mjambor@suse.cz>
13225
13226 PR middle-end/49495
13227 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
13228 (verify_cgraph_node): Some functinality moved to
13229 verify_edge_corresponds_to_fndecl, call it.
13230
13231 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13232
13233 * config.gcc (*local*): Remove.
13234 * doc/install-old.texi: Don't mention local configurations.
13235
13236 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13237
13238 PR debug/49522
13239 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
13240 referencing debug insns that have been reset.
13241 (dead_debug_insert_before): Don't assert reg is non-NULL,
13242 instead return immediately if it is NULL.
13243
13244 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13245
13246 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
13247
13248 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13249
13250 * hw-doloop.c: New file.
13251 * hw-doloop.h: New file.
13252 * Makefile.in (OBJS): Add hw-doloop.o.
13253 (hw-doloop.o): New rule.
13254 ($(obj_out_file)): Add hw-doloop.h dependency.
13255 * config/bfin/bfin.c: Include "hw-doloop.h".
13256 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
13257 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
13258 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
13259 type changed to hwloop_info. Return bool, true if the loop was
13260 successfully optimized. Remove code that was moved to
13261 hw-doloop.c, and adjust other parts.
13262 (hwloop_fail): New static function, containing parts that used
13263 to be in bfin_optimize_loop.
13264 (bfin_discover_loop, bfin_discover_loops, free_loops,
13265 bfin_reorder_loops): Remove.
13266 (hwloop_pattern_reg): New static function.
13267 (bfin_doloop_hooks): New variable.
13268 (bfin_reorg_loops): Remove most code, call reorg_loops.
13269 * config/bfin/bfin.md (doloop_end splitter): Also enable if
13270 loop counter is a memory_operand.
13271
13272 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
13273
13274 * config.gcc: Support --with-multilib-list for x86 Linux targets.
13275
13276 * configure.ac: Mention x86-64 for --with-multilib-list.
13277 * configure: Regenerated.
13278
13279 * config/i386/gnu-user64.h (SPEC_64): Support x32.
13280 (SPEC_32): Likewise.
13281 (ASM_SPEC): Likewise.
13282 (LINK_SPEC): Likewise.
13283 (TARGET_THREAD_SSP_OFFSET): Likewise.
13284 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
13285 (SPEC_X32): New.
13286
13287 * config/i386/i386.h (TARGET_X32): New.
13288 (TARGET_LP64): New.
13289 (LONG_TYPE_SIZE): Likewise.
13290 (POINTER_SIZE): Likewise.
13291 (POINTERS_EXTEND_UNSIGNED): Likewise.
13292 (OPT_ARCH64): Support x32.
13293 (OPT_ARCH32): Likewise.
13294
13295 * config/i386/i386.opt (mx32): New.
13296
13297 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
13298 (GLIBC_DYNAMIC_LINKERX32): Likewise.
13299 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
13300 (GLIBC_DYNAMIC_LINKERX32): Likewise.
13301
13302 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
13303 (BIONIC_DYNAMIC_LINKERX32): Likewise.
13304 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
13305
13306 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
13307
13308 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
13309
13310 * doc/invoke.texi: Document -mx32.
13311
13312 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
13313
13314 * doc/invoke.texi (mwords-little-endian): Deprecate.
13315 * config/arm/arm.opt (mwords-little-endian): Likewise.
13316 * config/arm/arm.c (arm_option_override): Warn about the deprecation
13317 of -mwords-little-endian.
13318
13319 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
13320
13321 * reload1.c (choose_reload_regs): Use mode sizes to check whether
13322 an old reload register completely defines the required value.
13323
13324 2011-07-07 Richard Guenther <rguenther@suse.de>
13325
13326 * fold-const.c (fold_unary_loc): Do not strip sign-changes
13327 for NEGATE_EXPR.
13328
13329 2011-07-07 Richard Guenther <rguenther@suse.de>
13330
13331 * tree-vrp.c (simplify_conversion_using_ranges): New function.
13332 (simplify_stmt_using_ranges): Call it.
13333
13334 2011-07-07 Kai Tietz <ktietz@redhat.com>
13335
13336 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
13337 (lookup_logical_inverted_value): Likewise.
13338 (simplify_bitwise_binary_1): Likewise.
13339 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
13340
13341 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13342
13343 * gcc.c (%[Spec]): Don't document.
13344 (struct spec_list): Update comment.
13345 (do_spec_1): Don't handle %[Spec].
13346 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
13347
13348 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13349
13350 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
13351 default based on TARGET_ASM_NAMED_SECTION.
13352 * common/common-target.def (have_named_sections): Default to true.
13353 * common/config/default-common.c: Don't include tm.h.
13354 * common/config/picochip/picochip-common.c
13355 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
13356 * common/config/m32c/m32c-common.c: Remove.
13357 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
13358 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13359 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13360 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13361 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13362 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13363 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13364
13365 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13366
13367 PR middle-end/49640
13368 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
13369 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
13370
13371 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13372
13373 PR libmudflap/49550
13374 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
13375
13376 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13377
13378 PR target/39150
13379 * configure.ac (gcc_cv_as_hidden): Also accept
13380 x86_64-*-solaris2.1[0-9]*.
13381 (gcc_cv_as_cfi_directive): Likewise.
13382 (gcc_cv_as_comdat_group_group): Likewise.
13383 (set_have_as_tls): Likewise.
13384 * configure: Regenerate.
13385 * config.gcc (i[34567]86-*-solaris2*): Also handle
13386 x86_64-*-solaris2.1[0-9]*.
13387 * config.host (i[34567]86-*-solaris2*): Likewise.
13388 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13389 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
13390 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
13391 (TARGET_LD_EMULATION): Use it.
13392 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
13393 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
13394 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
13395 (ASM_CPU64_DEFAULT_SPEC): Define.
13396 (ASM_CPU_SPEC): Use %(asm_cpu_default).
13397 (ASM_SPEC): Redefine.
13398 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
13399 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
13400 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
13401 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
13402 configuration.
13403 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
13404
13405 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13406
13407 * config/sol2.h (ASM_SPEC): Split into ...
13408 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
13409 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
13410 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
13411 (ASM_SPEC): Use ASM_SPEC_BASE.
13412 * config/sparc/sol2.h (ASM_SPEC): Redefine.
13413
13414 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
13415
13416 * config/avr/avr.md (*reload_insi): Change predicate #1 to
13417 const_int_operand. Ditto for peep2 producing this insn.
13418 Add argument to output_reload_insisf call.
13419 (*movsi,*movsf): Add argument to output_movsisf call.
13420 (*reload_insf): New insn and new peep2 to produce it.
13421 * config/avr/avr-protos.h (output_movsisf): Change prototype.
13422 (output_reload_insisf): Change prototype.
13423 * config/avr/avr.c (avr_asm_len): New function.
13424 (output_reload_insisf): Rewrite.
13425 (output_movsisf): Change prototype. output_reload_insisf for
13426 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
13427 (adjust_insn_length): Add argument to output_movsisf and
13428 output_reload_insisf call.
13429
13430 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13431
13432 * emit-rtl.c (paradoxical_subreg_p): New function.
13433 * rtl.h (paradoxical_subreg_p): Declare.
13434 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
13435 apply_distributive_law, simplify_comparison, simplify_set): Use it.
13436 * cse.c (record_jump_cond, cse_insn): Likewise.
13437 * expr.c (force_operand): Likewise.
13438 * rtlanal.c (num_sign_bit_copies1): Likewise.
13439 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
13440 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
13441 (push_reload): Use precision to check for paradoxical subregs.
13442 * expmed.c (extract_bit_field_1): Likewise.
13443
13444 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
13445 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
13446 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
13447 simplify_set, simplify_logical, expand_compound_operation,
13448 make_extraction, force_to_mode, if_then_else_cond, extended_count,
13449 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
13450 record_value_for_reg): Likewise.
13451 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
13452 * simplify-rtx. c (simplify_unary_operation_1,
13453 simplify_binary_operation_1, simplify_const_relational_operation):
13454 Likewise.
13455
13456 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
13457 instead of GET_MODE_BITSIZE where appropriate.
13458 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
13459 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
13460 init_num_sign_bit_copies_in_rep): Likewise.
13461 * cse.c (fold_rtx, cse_insn): Likewise.
13462 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
13463 * simplify-rtx.c (simplify_unary_operation_1,
13464 simplify_const_unary_operation, simplify_binary_operation_1,
13465 simplify_const_binary_operation, simplify_ternary_operation,
13466 simplify_const_relational_operation, simplify_subreg): Likewise.
13467 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
13468 simplify_if_then_else, simplify_set, expand_compound_operation,
13469 expand_field_assignment, make_extraction, if_then_else_cond,
13470 make_compound_operation, force_to_mode, make_field_assignment,
13471 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
13472 extended_count, try_widen_shift_mode, simplify_shift_const_1,
13473 simplify_comparison, record_promoted_value, simplify_compare_const,
13474 record_dead_and_set_regs_1): Likewise.
13475
13476 Revert:
13477 * simplify-rtx.c (simplify_const_binary_operation): Use the
13478 shift_truncation_mask hook instead of performing modulo by width.
13479 Compare against mode precision, not bitsize.
13480 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
13481 Use shift_truncation_mask instead of constructing the value manually.
13482
13483 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13484
13485 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
13486 declaration.
13487 (rs6000_save_toc_in_prologue_p): Ditto.
13488
13489 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
13490 up the static chain (r11) during indirect function calls.
13491 (-msave-toc-indirect): New undocumented debug switch.
13492
13493 * config/rs6000/rs6000.c (struct machine_function): Add
13494 save_toc_in_prologue field to note whether the prologue needs to
13495 save the TOC value in the reserved stack location.
13496 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
13497 to save the TOC in the prologue, do so.
13498 (rs6000_trampoline_init): Don't allow creating AIX style
13499 trampolines if -mno-r11 is in effect.
13500 (rs6000_call_indirect_aix): New function to create AIX style
13501 indirect calls, adding support for -mno-r11 to suppress loading
13502 the static chain, and saving the TOC in the prologue instead of
13503 the call body.
13504 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
13505 TOC in the prologue.
13506
13507 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
13508 register numbers.
13509 (TOC_REGNUM): Ditto.
13510 (STATIC_CHAIN_REGNUM): Ditto.
13511 (ARG_POINTER_REGNUM): Ditto.
13512 (SFP_REGNO): Delete, unused.
13513 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
13514 function descriptor offsets.
13515 (TOC_SAVE_OFFSET_64BIT): Ditto.
13516 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
13517 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
13518 (AIX_FUNC_DESC_SC_32BIT): Ditto.
13519 (AIX_FUNC_DESC_SC_64BIT): Ditto.
13520 (ptrload): New mode attribute for the appropriate load of a pointer.
13521 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
13522 (call_indirect_aix64): Ditto.
13523 (call_value_indirect_aix32): Ditto.
13524 (call_value_indirect_aix64): Ditto.
13525 (call_indirect_nonlocal_aix32_internal): Ditto.
13526 (call_indirect_nonlocal_aix32): Ditto.
13527 (call_indirect_nonlocal_aix64_internal): Ditto.
13528 (call_indirect_nonlocal_aix64): Ditto.
13529 (call): Rewrite AIX indirect function calls. Add support for
13530 eliminating the static chain, and for moving the save of the TOC
13531 to the function prologue.
13532 (call_value): Ditto.
13533 (call_indirect_aix<ptrsize>): Ditto.
13534 (call_indirect_aix<ptrsize>_internal): Ditto.
13535 (call_indirect_aix<ptrsize>_internal2): Ditto.
13536 (call_indirect_aix<ptrsize>_nor11): Ditto.
13537 (call_value_indirect_aix<ptrsize>): Ditto.
13538 (call_value_indirect_aix<ptrsize>_internal): Ditto.
13539 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
13540 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
13541 (call_nonlocal_aix32): Relocate in the rs6000.md file.
13542 (call_nonlocal_aix64): Ditto.
13543
13544 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
13545 -mno-r11 documentation.
13546
13547 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13548
13549 PR other/49658
13550 * doc/extend.texi (Compound Literals): Fix typo.
13551
13552 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
13553
13554 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
13555
13556 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
13557
13558 * configure.ac (plugin-version.h): Generate
13559 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
13560 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
13561 macros.
13562
13563 * configure: Regenerate.
13564
13565 * doc/plugins.texi (Building GCC plugins): Mention
13566 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
13567
13568 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13569
13570 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
13571 * combine.c (make_extraction, gen_lowpart_or_truncate,
13572 apply_distributive_law, simplify_comparison,
13573 reg_truncated_to_mode, record_truncated_value): Use it.
13574 * cse.c (notreg_cost): Likewise.
13575 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13576 * expr.c (convert_move, convert_modes): Likewise.
13577 * optabs.c (expand_binop, expand_unop): Likewise.
13578 * postreload.c (move2add_last_label): Likewise.
13579 * regmove.c (optimize_reg_copy_3): Likewise.
13580 * rtlhooks.c (gen_lowpart_general): Likewise.
13581 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
13582
13583 2011-07-06 Joseph Myers <joseph@codesourcery.com>
13584
13585 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
13586
13587 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13588
13589 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
13590 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
13591 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
13592 (simplify_const_unary_operation, simplify_binary_operation_1,
13593 simplify_const_binary_operation, simplify_const_relational_operation):
13594 Use them. Use GET_MODE_MASK for masking and sign-extensions.
13595 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
13596 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
13597 simplify_shift_const_1, simplify_comparison): Likewise.
13598 * expr.c (convert_modes): Likewise.
13599 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
13600 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
13601 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
13602
13603 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
13604
13605 2011-07-06 Richard Guenther <rguenther@suse.de>
13606
13607 PR tree-optimization/49645
13608 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
13609 register variables.
13610 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
13611 in type qualification here ...
13612 (copy_reference_ops_from_ref): ... not here.
13613 (vn_reference_lookup_3): ... or here.
13614 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
13615 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
13616
13617 2011-07-06 Ian Lance Taylor <iant@google.com>
13618
13619 * doc/install.texi (Configuration): It's
13620 --enable-gnu-indirect-function, not --enable-indirect-function.
13621
13622 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13623
13624 * simplify-rtx.c (simplify_const_binary_operation): Use the
13625 shift_truncation_mask hook instead of performing modulo by width.
13626 Compare against mode precision, not bitsize.
13627 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
13628 Use shift_truncation_mask instead of constructing the value manually.
13629
13630 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
13631
13632 PR middle-end/47383
13633 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
13634 address computation and convert to address_mode if needed.
13635
13636 2011-07-06 Richard Guenther <rguenther@suse.de>
13637
13638 * tree.c (build_common_tree_nodes_2): Merge with
13639 build_common_tree_nodes.
13640 * tree.h (build_common_tree_nodes): Adjust prototype.
13641 (build_common_tree_nodes_2): Remove.
13642 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
13643 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
13644
13645 2011-07-05 Jakub Jelinek <jakub@redhat.com>
13646
13647 PR tree-optimization/49618
13648 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
13649 t recurse on the decl.
13650 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
13651 return true if expr isn't known to be defined in current
13652 TU or some other LTO partition.
13653
13654 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13655
13656 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
13657 override CASE_VALUES_THRESHOLD.
13658
13659 * stmt.c (toplevel): Include params.h.
13660 (case_values_threshold): Use the --param case-values-threshold
13661 value if non-zero, otherwise use machine dependent value.
13662 (expand_case): Use case_values_threshold.
13663
13664 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
13665
13666 * doc/invoke.texi (--param case-values-threshold): Document.
13667
13668 2011-07-05 Richard Henderson <rth@redhat.com>
13669
13670 * dwarf2out.c (dwarf2out_cfi_label): Make static.
13671 (dwarf2out_flush_queued_reg_saves): Make static.
13672 (dwarf2out_reg_save): Remove.
13673 (dwarf2out_return_save): Remove.
13674 (dwarf2out_return_reg): Remove.
13675 (dwarf2out_reg_save_reg): Remove.
13676 (dwarf2out_def_cfa): Merge into ...
13677 (dwarf2out_frame_init): ... here.
13678 * dwarf2out.h, tree.h: Remove declarations as necessary.
13679
13680 2011-07-05 Richard Henderson <rth@redhat.com>
13681
13682 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
13683 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13684 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
13685 the alloc insn.
13686
13687 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
13688 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
13689 (process_epilogue): Don't call dwarf2out_def_cfa.
13690
13691 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
13692 indicate the return address save.
13693 (process_cfa_register): Likewise.
13694
13695 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
13696 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
13697
13698 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
13699 for ar.pfs save at alloc insn.
13700
13701 2011-07-05 Richard Henderson <rth@redhat.com>
13702
13703 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
13704 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13705 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
13706 stack pointer save.
13707 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
13708 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
13709 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
13710 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
13711
13712 2011-07-05 Richard Henderson <rth@redhat.com>
13713
13714 * config/vax/vax.md (define_c_enum unspecv): New. Define the
13715 VUNSPEC_* constants here instead of via define_constants.
13716 (VUNSPEC_PEM): New constant.
13717 (procedure_entry_mask): New insn.
13718 (prologue): New expander.
13719 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
13720 (vax_expand_prologue): Rename from vax_output_function_prologue;
13721 emit rtl instead of text.
13722 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
13723 (print_operand): Add 'x' prefix.
13724
13725 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
13726
13727 PR middle-end/47715
13728 * calls.c (precompute_register_parameters): Promote the function
13729 argument before checking non-legitimate constant.
13730
13731 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13732
13733 PR tree-optimization/47654
13734 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
13735 (lst_do_strip_mine_loop): Return an int.
13736 (lst_do_strip_mine): Same.
13737 (scop_do_strip_mine): Same.
13738 (scop_do_block): Loop blocking should strip-mine at least two loops.
13739 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
13740 (scop_do_interchange): Same.
13741 * graphite-poly.h (scop_do_interchange): Update declaration.
13742 (scop_do_strip_mine): Same.
13743
13744 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13745
13746 * graphite-clast-to-gimple.c (precision_for_value): Removed.
13747 (precision_for_interval): Removed.
13748 (gcc_type_for_interval): Use mpz_sizeinbase.
13749
13750 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13751
13752 * graphite-ppl.h (value_max): Correct computation of max.
13753
13754 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13755
13756 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
13757
13758 2011-07-05 Richard Guenther <rguenther@suse.de>
13759
13760 * c-decl.c (c_init_decl_processing): Defer building common
13761 tree nodes to c_common_nodes_and_builtins.
13762
13763 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
13764
13765 PR tree-optimization/49580
13766 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
13767 the loop's number of iterations.
13768 * tree-parloops.c (transform_to_exit_first_loop): Add the
13769 handling of the loop's number of iterations before the call
13770 to gimple_duplicate_sese_tail.
13771 Insert the stmt caclculating the new rhs of the loop's
13772 condition stmt to the preheader instead of iters_bb.
13773
13774 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
13775
13776 PR rtl-optimization/47449
13777 * fwprop.c (forward_propagate_subreg): Don't propagate hard
13778 register nor zero/sign extended hard register.
13779
13780 2011-07-05 Richard Guenther <rguenther@suse.de>
13781
13782 PR tree-optimization/49518
13783 PR tree-optimization/49628
13784 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
13785 irrelevant and invariant data-references.
13786 (vect_analyze_data_ref_access): For invariant loads clear the
13787 group association.
13788
13789 2011-07-04 Jakub Jelinek <jakub@redhat.com>
13790
13791 PR rtl-optimization/49619
13792 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
13793 pass VOIDmode as op0_mode to recursive call, and return temp even
13794 when different from tor, just if it is not IOR of the original
13795 PLUS arguments.
13796
13797 PR rtl-optimization/49472
13798 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
13799 negating MULT, negate the second operand instead of first.
13800 (simplify_binary_operation_1) <case MULT>: If one operand is
13801 a NEG and the other is MULT, don't attempt to optimize by negation
13802 of the MULT operand if it only moves the NEG operation around.
13803
13804 PR debug/49602
13805 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
13806 get_current_def return value if it can't be trusted to be
13807 the current value of the variable in the current bb.
13808
13809 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
13810
13811 PR target/49600
13812 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
13813 general register to memory for !TARGET_INTER_UNIT_MOVES.
13814
13815 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13816
13817 PR target/44643
13818 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
13819 instead of TREE_READONLY.
13820
13821 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13822
13823 * doc/extend.texi (AVR Built-in Functions): Update documentation
13824 of __builtin_avr_fmul*.
13825 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
13826 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
13827 * config/avr/avr.md (fmul): Rename to fmul_insn.
13828 (fmuls): Rename to fmuls_insn.
13829 (fmulsu): Rename to fmulsu_insn.
13830 (fmul,fmuls,fmulsu): New expander.
13831 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
13832 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
13833 * config/avr/libgcc.S (__fmul): New function.
13834 (__fmuls): New function.
13835 (__fmulsu,__fmulsu_exit): New function.
13836
13837 2011-07-04 Richard Guenther <rguenther@suse.de>
13838
13839 PR tree-optimization/49615
13840 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
13841 basic-block index check.
13842
13843 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13844
13845 * longlong.h (count_leading_zeros, count_trailing_zeros,
13846 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
13847 resp. 64.
13848
13849 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
13850
13851 PR tree-optimization/49610
13852 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
13853 a basic block.
13854
13855 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
13856 Olivier Hainque <hainque@adacore.com>
13857 Nicolas Setton <setton@adacore.com>
13858
13859 * tree.h (TYPE_ARTIFICIAL): New flag.
13860 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
13861 the DIE of the type if it is artificial.
13862 (gen_array_type_die): Likewise.
13863 (gen_enumeration_type_die): Likewise.
13864 (gen_struct_or_union_type_die): Likewise.
13865 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
13866 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
13867
13868 2011-07-01 Jakub Jelinek <jakub@redhat.com>
13869
13870 * tree-object-size.c (pass_through_call): Handle
13871 BUILT_IN_ASSUME_ALIGNED.
13872
13873 2011-07-01 Martin Jambor <mjambor@suse.cz>
13874
13875 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
13876
13877 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
13878
13879 PR middle-end/48016
13880 * explow.c (update_nonlocal_goto_save_area): Use proper mode
13881 for stack save area.
13882 * function.c (expand_function_start): Likewise.
13883
13884 2011-07-01 Richard Guenther <rguenther@suse.de>
13885
13886 PR middle-end/49596
13887 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
13888 may have unknown refs.
13889
13890 2011-07-01 Kai Tietz <ktietz@redhat.com>
13891
13892 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
13893
13894 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13895
13896 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
13897 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
13898 (Specific, mips-sgi-irix6): Likewise.
13899
13900 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13901
13902 PR libmudflap/49549
13903 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
13904
13905 2011-07-01 Jakub Jelinek <jakub@redhat.com>
13906
13907 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
13908 [idx]= and [idx1 ... idx2]= before initializers if needed for
13909 array initializers.
13910
13911 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
13912
13913 * config.gcc (score-*-elf): Remove score7.o.
13914 * config/score/t-score-elf: Likewise.
13915 * config/score/score.c: Merge score7 to score.c and
13916 remove forwarding functions.
13917 * config/score/score7.c: Deleted.
13918 * config/score/score7.h: Deleted.
13919
13920 2011-07-01 Richard Guenther <rguenther@suse.de>
13921
13922 PR tree-optimization/49603
13923 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
13924
13925 2011-06-30 Martin Jambor <mjambor@suse.cz>
13926
13927 * tree-sra.c (struct access): Rename total_scalarization to
13928 grp_total_scalarization
13929 (completely_scalarize_var): New function.
13930 (sort_and_splice_var_accesses): Set total_scalarization in the
13931 representative access.
13932 (analyze_access_subtree): Propagate total scalarization accross the
13933 tree, no holes in totally scalarized trees, simplify coverage
13934 computation.
13935 (analyze_all_variable_accesses): Call completely_scalarize_var instead
13936 of completely_scalarize_record.
13937
13938 2011-06-30 Richard Henderson <rth@redhat.com>
13939
13940 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
13941 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
13942 * config/i386/i386.c: Don't include dwarf2out.h.
13943 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
13944 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
13945 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
13946 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
13947 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
13948
13949 2011-06-30 Richard Henderson <rth@redhat.com>
13950
13951 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
13952 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13953 * final.c (final_scan_insn): Look for it, and invoke
13954 dwarf2out_frame_debug before the insn if found.
13955
13956 2011-06-30 Richard Henderson <rth@redhat.com>
13957
13958 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
13959 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
13960
13961 2011-06-30 Richard Henderson <rth@redhat.com>
13962
13963 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
13964 Define a vector of this type.
13965 (regs_saved_in_regs): Use a VEC.
13966 (num_regs_saved_in_regs): Remove.
13967 (compare_reg_or_pc): New.
13968 (record_reg_saved_in_reg): Split out from...
13969 (dwarf2out_flush_queued_reg_saves): ... here.
13970 (clobbers_queued_reg_save): Update for VEC.
13971 (reg_saved_in): Likewise.
13972 (dwarf2out_frame_debug_init): Likewise.
13973 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
13974 (dwarf2out_frame_debug_cfa_register): Likewise.
13975
13976 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13977
13978 PR tree-optimization/49572
13979 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
13980 type of the RHS instead of that of the LHS for the expression type.
13981
13982 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13983
13984 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
13985 unconditionally.
13986
13987 2011-06-30 Richard Guenther <rguenther@suse.de>
13988
13989 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
13990 * tree-ssa-structalias.c (create_variable_info_for): Do not
13991 add initial constraints for non-var-decls. Properly handle
13992 globals in other ltrans partitions.
13993 (intra_create_variable_infos): Manually create constraints for
13994 the fake no-alias parameter.
13995 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
13996 and assert there are no clones.
13997
13998 2011-06-30 Richard Guenther <rguenther@suse.de>
13999
14000 PR tree-optimization/46787
14001 * tree-data-ref.c (dr_address_invariant_p): Remove.
14002 (find_data_references_in_stmt): Invariant accesses are ok now.
14003 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
14004 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14005 invariant loads.
14006
14007 2011-06-30 Martin Jambor <mjambor@suse.cz>
14008
14009 PR tree-optimization/49094
14010 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
14011 (build_accesses_from_assign): Use it.
14012
14013 2011-06-30 Jakub Jelinek <jakub@redhat.com>
14014
14015 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
14016 handling of BUILT_IN_ASSUME_ALIGNED.
14017
14018 PR debug/49364
14019 * dwarf2out.c (output_abbrev_section): Don't return early
14020 if abbrev_die_table_in_use is 1.
14021 (dwarf2out_finish): Instead don't call output_abbrev_section
14022 nor emit abbrev_section_label in that case.
14023
14024 2011-06-30 Nick Clifton <nickc@redhat.com>
14025
14026 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
14027 for the V850E.
14028
14029 2011-06-30 Jakub Jelinek <jakub@redhat.com>
14030
14031 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
14032 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
14033
14034 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
14035
14036 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
14037 both pattern and original statements if necessary.
14038 (vect_transform_loop): Likewise.
14039 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
14040 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
14041 Mark the pattern statement only if the original statement doesn't
14042 have its own uses.
14043 (process_use): Call vect_mark_relevant with additional parameter.
14044 (vect_mark_stmts_to_be_vectorized): Likewise.
14045 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
14046 (vect_analyze_stmt): Handle both pattern and original statements
14047 if necessary.
14048 (vect_transform_stmt): Don't store vectorized pattern statement
14049 in the original statement.
14050 (vect_is_simple_use_1): Use related pattern statement only if the
14051 original statement is irrelevant.
14052 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
14053
14054 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
14055
14056 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
14057 option.
14058 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
14059 entry.
14060 (TARGET_AVX128_OPTIMAL): New definition.
14061 * config/i386/i386.c (initial_ix86_tune_features): Initialize
14062 X86_TUNE_AVX128_OPTIMAL entry.
14063 (ix86_option_override_internal): Enable the generation
14064 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
14065 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
14066 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
14067
14068 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
14069
14070 PR tree-optimization/49539
14071 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
14072 names by means of stmt_references_abnormal_ssa_name.
14073 (associate_plusminus): Call can_propagate_from before propagating
14074 from definition statements.
14075 (ssa_forward_propagate_and_combine): Remove superfluous newline.
14076
14077 2011-06-29 Richard Guenther <rguenther@suse.de>
14078
14079 * doc/invoke.texi: Document -scev dump modifier.
14080 * tree-pass.h (TDF_SCEV): New dump flag.
14081 * tree-dump.c (dump_option_value_in): Add scev.
14082 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
14083 * tree-scalar-evolution.c: Likewise.
14084
14085 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
14086
14087 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
14088 (cxa_type_match): Correct declaration.
14089 (__gnu_unwind_pr_common): Reconstruct additional indirection
14090 when __cxa_type_match returns succeeded_with_ptr_to_base.
14091
14092 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14093
14094 PR rtl-optimization/49114
14095 * reload.c (struct replacement): Remove SUBREG_LOC member.
14096 (push_reload): Do not set it.
14097 (push_replacement): Likewise.
14098 (subst_reload): Remove dead code.
14099 (copy_replacements): Remove assertion.
14100 (copy_replacements_1): Do not handle SUBREG_LOC.
14101 (move_replacements): Likewise.
14102 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
14103 Detect subregs via recursive descent instead of via SUBREG_LOC.
14104
14105 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14106
14107 * config/avr/avr.c (avr_encode_section_info): Dispatch to
14108 default_encode_section_info.
14109
14110 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
14111
14112 PR tree-optimization/49545
14113 * builtins.c (get_object_alignment_1): Update function comment.
14114 Do not use DECL_ALIGN for functions, but test
14115 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
14116 * fold-const.c (get_pointer_modulus_and_residue): Don't check
14117 for functions here.
14118 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
14119
14120 2011-06-29 Jakub Jelinek <jakub@redhat.com>
14121
14122 PR debug/49567
14123 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
14124 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
14125
14126 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14127
14128 PR target/34734
14129 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
14130 about uninitialized data attributed 'progmem' from here...
14131 (avr_encode_section_info): ...to this new function.
14132 (TARGET_ENCODE_SECTION_INFO): New define.
14133 (avr_section_type_flags): For data in ".progmem.data", remove
14134 section flag SECTION_WRITE.
14135
14136 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14137
14138 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
14139 _xmulhisi3_exit.
14140 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
14141 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
14142 (__umulhisi3): Ditto.
14143 * config/avr/avr.md (mulhisi3): New insn expender.
14144 (umulhisi3): New insn expender.
14145 (*mulhisi3_call): New insn.
14146 (*umulhisi3_call): New insn.
14147
14148 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14149
14150 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
14151
14152 2011-06-28 Richard Henderson <rth@redhat.com>
14153
14154 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
14155 all code and arguments that handled pushes. Update all callers.
14156
14157 2011-06-28 Richard Henderson <rth@redhat.com>
14158
14159 * config/arm/arm.c (arm_output_function_prologue): Don't call
14160 thumb1_output_function_prologue.
14161 (arm_expand_prologue): Avoid dead store.
14162 (number_of_first_bit_set): Use ctz_hwi.
14163 (thumb1_emit_multi_reg_push): New.
14164 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
14165 to emit the entire prologue as rtl.
14166 (thumb1_output_interwork): Split out from
14167 thumb1_output_function_prologue.
14168 (thumb1_output_function_prologue): Remove.
14169 (arm_attr_length_push_multi): Handle thumb1.
14170 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
14171 (prologue_thumb1_interwork): New.
14172 (*push_multi): Allow thumb1; use push_mult_memory_operand.
14173 * config/arm/predicates.md (push_mult_memory_operand): New.
14174
14175 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
14176
14177 * config/sparc/sync.md (*stbar): Delete.
14178 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
14179
14180 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
14181
14182 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
14183
14184 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14185
14186 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
14187 (TARGET_64BIT_DEFAULT): Define.
14188 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
14189 of tm_file.
14190 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
14191
14192 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14193
14194 * common.opt (in_lto_p): New Variable entry.
14195 * flags.h (in_lto_p): Move to common.opt.
14196 * gcc.c: Include params.h.
14197 (set_option_handlers): Also use common_handle_option and
14198 target_handle_option.
14199 (main): Call global_init_params, finish_params and init_options_struct.
14200 * opts.c (debug_type_names): Move from toplev.c.
14201 (print_filtered_help): Access quiet_flag through opts pointer.
14202 (common_handle_option): Return early in the driver for some options.
14203 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
14204 opts pointer.
14205 * toplev.c (in_lto_p): Move to common.opt.
14206 (debug_type_names): Move to opts.c.
14207 * Makefile.in (OBJS): Remove opts.o.
14208 (OBJS-libcommon-target): Add opts.o.
14209 (gcc.o): Update dependencies.
14210
14211 2011-06-28 Kai Tietz <ktietz@redhat.com>
14212
14213 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
14214
14215 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14216
14217 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
14218 with '=' constraint modifier.
14219 (*divdf3_vfp): Likewise.
14220 ("*mulsf3_vfp"): Likewise.
14221 ("*muldf3_vfp"): Likewise.
14222 ("*mulsf3negsf_vfp"): Likewise.
14223 ("*muldf3negdf_vfp"): Likewise.
14224
14225 2011-06-28 Nick Clifton <nickc@redhat.com>
14226
14227 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
14228 relaxation when performing an incremental link.
14229
14230 2011-06-28 Kai Tietz <ktietz@redhat.com>
14231
14232 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
14233 within BB from last to first.
14234
14235 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14236
14237 * genattr-common.c: New. Based on genattr.c.
14238 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
14239 (MOSTLYCLEANFILES): Add insn-attr-common.h.
14240 (opts.o): Update dependencies.
14241 (.PRECIOUS): Add insn-attr-common.h.
14242 (simple_rtl_generated_h): Add insn-attr-common.h.
14243 (build/genattr-common.o): New.
14244 (genprogrtl): Add attr-common.
14245 * genattr.c (main): Include insn-attr-common.h. Don't generate
14246 definitions of DELAY_SLOTS or INSN_SCHEDULING.
14247 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
14248
14249 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
14250
14251 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
14252 avr-*-* and avr-*-rtems* targets.
14253
14254 * config/avr/elf.h: New file.
14255 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
14256 (TARGET_ASM_SELECT_SECTION): Define.
14257 (INIT_SECTION_ASM_OP): Undefine.
14258 (FINI_SECTION_ASM_OP): Undefine.
14259 (READONLY_DATA_SECTION_ASM_OP): Undefine.
14260 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
14261 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
14262 * config/avr/avr.h:
14263 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
14264 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
14265 (MAX_OFILE_ALIGNMENT): Move to elf.h.
14266 (STRING_LIMIT): Move to elf.h.
14267 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
14268 (ASM_DECLARE_OBJECT_NAME): Remove.
14269 (ESCAPES): Remove.
14270 (ASM_OUTPUT_SKIP): Remove.
14271 (DWARF2_DEBUGGING_INFO): Remove.
14272 (OBJECT_FORMAT_ELF): Remove.
14273 (USER_LABEL_PREFIX): Remove.
14274 (ASM_OUTPUT_EXTERNAL): Remove.
14275 (ASM_OUTPUT_ASCII): Remove.
14276 (TYPE_ASM_OP): Remove.
14277 (SIZE_ASM_OP): Remove.
14278 (WEAK_ASM_OP): Remove.
14279 (STRING_ASM_OP): Remove.
14280 (SET_ASM_OP): Remove.
14281 (ASM_WEAKEN_LABEL): Remove.
14282 (TYPE_OPERAND_FMT): Remove.
14283 (ASM_DECLARE_FUNCTION_SIZE): Remove.
14284 (ASM_FINISH_DECLARE_OBJECT): Remove.
14285 (NO_DOLLAR_IN_LABEL): Remove.
14286 (ASM_GENERATE_INTERNAL_LABEL): Remove.
14287 (ASM_OUTPUT_CASE_LABEL): Remove.
14288 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
14289 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
14290 (gas_output_ascii): Remove.
14291 (gas_output_limited_string): Remove.
14292 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
14293 * config/avr/avr-protos.h
14294 (gas_output_ascii): Remove prototye.
14295 (gas_output_limited_string): Remove prototype.
14296
14297 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
14298
14299 PR target/48637
14300 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
14301 asm operands.
14302
14303 2011-06-27 Jan Hubicka <jh@suse.cz>
14304
14305 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
14306 node instead of references in node.
14307
14308 2011-06-27 Richard Henderson <rth@redhat.com>
14309
14310 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
14311 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
14312 inside ifdef.
14313
14314 2011-06-27 Jakub Jelinek <jakub@redhat.com>
14315
14316 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
14317
14318 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
14319 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
14320 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
14321 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
14322 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
14323 (evaluate_stmt, execute_fold_all_builtins): Handle
14324 BUILT_IN_ASSUME_ALIGNED.
14325 * tree-ssa-dce.c (propagate_necessity): Likewise.
14326 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14327 call_may_clobber_ref_p_1): Likewise.
14328 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
14329 (expand_builtin_assume_aligned): New function.
14330 * doc/extend.texi (__builtin_assume_aligned): Document.
14331
14332 PR debug/49544
14333 * cselib.c (promote_debug_loc): If cselib_preserve_constants
14334 and l has two DEBUG_INSN owned locs instead of just one, adjust
14335 the second location's setting_insn too.
14336
14337 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14338
14339 PR libmudflap/38738
14340 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
14341
14342 2011-06-27 Nick Clifton <nickc@redhat.com>
14343
14344 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
14345 bit position of highest bit set into a count of the high zero bits.
14346
14347 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14348
14349 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
14350
14351 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14352
14353 PR lto/48492
14354 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
14355 to a NULL parent.
14356
14357 2011-06-27 Richard Guenther <rguenther@suse.de>
14358
14359 PR tree-optimization/49394
14360 * passes.c (execute_one_pass): Restore current_pass after
14361 applying IPA transforms.
14362
14363 2011-06-27 Kai Tietz <ktietz@redhat.com>
14364
14365 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
14366 out of type precision after operation.
14367 (find_bswap): Take for limit value the integer auto-promotion
14368 into account.
14369
14370 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14371
14372 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
14373 forward scan as well.
14374
14375 2011-06-27 Tristan Gingold <gingold@adacore.com>
14376
14377 PR target/44241
14378 * config/vms/vms-protos.h: New file.
14379 * config/vms/vms-crtlmap.map: New file.
14380 * config/vms/vms.c: New file.
14381 * config/vms/make-crtlmap.awk: New file.
14382 * config/vms/vms-crtl.h: File removed.
14383 * config/vms/vms-crtl-64.h: File removed.
14384 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
14385 * config/alpha/vms64.h: Do not include vms-crtl-64.h
14386 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
14387 clear some builtins on VMS. Calls vms_patch_builtins.
14388 (avms_asm_output_external): Remove.
14389 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
14390 (struct crtl_name_spec): Remove
14391 (DO_CTRL_NAMES): Remove.
14392 * config/ia64/vms.h (struct crtl_name_spec): Remove
14393 (DO_CTRL_NAMES): Remove.
14394 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
14395 clear some builtins on VMS. Calls vms_patch_builtins.
14396 (ia64_asm_output_external): Remove DO_CRTL_NAME.
14397 * config/ia64/vms64.h: Do not include vms-crtl-64.h
14398 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
14399
14400 2011-06-27 Tristan Gingold <gingold@adacore.com>
14401
14402 * config/alpha/alpha.c (alpha_end_function): Always generate .end
14403 directive on VMS.
14404
14405 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14406
14407 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
14408 the function receives nonlocal gotos.
14409
14410 2011-06-27 Richard Guenther <rguenther@suse.de>
14411
14412 PR tree-optimization/49536
14413 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14414 For non-scalar inner types use a scalar type according to
14415 the scalar inner mode.
14416
14417 2011-06-27 Richard Guenther <rguenther@suse.de>
14418
14419 PR tree-optimization/49365
14420 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
14421
14422 2011-06-27 Richard Guenther <rguenther@suse.de>
14423
14424 PR tree-optimization/49169
14425 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
14426 the alignment of function decls.
14427
14428 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
14429
14430 PR target/47997
14431 * config/darwin.c (darwin_mergeable_string_section): Place string
14432 constants in '.cstring' rather than '.const' when CF/NSStrings are
14433 active.
14434
14435 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
14436
14437 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
14438 (emit_save_register_window): Likewise.
14439 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
14440 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
14441 Swap back %o7/%i7 in register naming.
14442
14443 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
14444
14445 PR driver/49371
14446 * config/darwin.c (darwin_override_options): Improve warning when
14447 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
14448 is given with fpie/fPIE.
14449 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
14450 * config/darwin9.h (PIE_SPEC): New.
14451
14452 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
14453
14454 * timevar.c (timevar_print): Increase width for display of timevar
14455 name.
14456
14457 2011-06-24 Jakub Jelinek <jakub@redhat.com>
14458
14459 PR c++/46400
14460 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
14461 instead of TYPE_CHAIN for chain_next for types.
14462
14463 2011-06-24 Richard Henderson <rth@redhat.com>
14464
14465 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
14466 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
14467 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
14468 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
14469 (sparc_flat_expand_prologue): Emit individual instructions
14470 instead of one of the above.
14471
14472 2011-06-24 Easwaran Raman <eraman@google.com>
14473
14474 PR rtl-optimization/49429
14475 PR target/49454
14476 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
14477 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
14478 used to copy y into x.
14479 * calls.c (initialize_argument_information): Mark
14480 an argument addressable if it is passed by invisible reference.
14481 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
14482 if it is passed by reference.
14483
14484 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
14485
14486 PR rtl-optimization/49504
14487 * rtlanal.c (nonzero_bits1): Properly handle addition or
14488 subtraction of a pointer in Pmode if pointers extend unsigned.
14489 (num_sign_bit_copies1): Likewise.
14490
14491 2011-06-24 Martin Jambor <mjambor@suse.cz>
14492
14493 PR tree-optimizations/49516
14494 * tree-sra.c (sra_modify_assign): Choose the safe path for
14495 aggregate copies if we also did scalar replacements.
14496
14497 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14498
14499 PR target/49335
14500 * config/arm/predicates.md (add_operator): New.
14501 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
14502
14503 2011-06-24 Andi Kleen <ak@linux.intel.com>
14504
14505 * tree-sra.c (type_internals_preclude_sra_p): Add msg
14506 parameter. Split up ifs and report reason in *msg.
14507 (reject): Add.
14508 (find_var_candiate): Add msg variable.
14509 Split up ifs and report reason to reject.
14510 (find_param_candidates): Add msg variable.
14511 Pass msg to type_internals_preclude_sra_p.
14512
14513 2011-06-23 Jeff Law <law@redhat.com>
14514
14515 PR middle-end/48770
14516 * reload.h (reload): Change to return a bool.
14517 * ira.c (ira): If requested by reload, run a fast DCE pass after
14518 reload has completed. Fix comment typo.
14519 * reload1.c (need_dce): New file scoped static.
14520 (reload): Set reload_completed here. Return whether or not a DCE
14521 pass after reload is needed.
14522 (delete_dead_insn): Set need_dce as needed.
14523
14524 PR middle-end/49465
14525 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
14526 to detect threading through joiner block. If there was already
14527 an edge to the new target, then do not change the PHI nodes.
14528
14529 2011-06-23 Jakub Jelinek <jakub@redhat.com>
14530
14531 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
14532 get_pointer_alignment to see if base isn't sufficiently aligned.
14533
14534 2011-06-23 Jan Hubicka <jh@suse.cz>
14535
14536 PR tree-optimize/49373
14537 * tree-pass.h (all_late_ipa_passes): Declare.
14538 * cgraphunit.c (init_lowered_empty_function): Fix properties.
14539 (cgraph_optimize): Execute late passes; remove unreachable funcions
14540 after materialization.
14541 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
14542 LTOing.
14543 * passes.c (all_late_ipa_passes): Declare.
14544 (dump_passes, register_pass): Handle late ipa passes.
14545 (init_optimization_passes): Move ipa_pta to late passes; schedule
14546 fixup_cfg at beggining of all_passes.
14547 (apply_ipa_transforms): New function.
14548 (execute_one_pass): When doing simple ipa pass, apply all transforms.
14549
14550 2011-06-23 Joseph Myers <joseph@codesourcery.com>
14551
14552 * params.c: Include common/common-target.h. Don't include tm.h.
14553 (lang_independent_params): Move from toplev.c.
14554 (global_init_params): New.
14555 * params.h (global_init_params): Declare.
14556 * target.def (default_params): Move to common-target.def.
14557 * toplev.c (lang_independent_options): Remove.
14558 (lang_independent_params): Move to params.c.
14559 (general_init): Use global_init_params.
14560 * common/common-target.def (option_default_params): Move from
14561 target.def.
14562 * common/config/ia64/ia64-common.c: Include params.h.
14563 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14564 from ia64.c.
14565 * common/config/rs6000/rs6000-common.c: Include params.h.
14566 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14567 from rs6000.c.
14568 * common/config/sh/sh-common.c: Include params.h.
14569 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14570 from sh.c.
14571 * common/config/spu/spu-common.c: Include params.h.
14572 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14573 from spu.c.
14574 * config/ia64/ia64.c (ia64_option_default_params,
14575 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
14576 * config/rs6000/rs6000.c (rs6000_option_default_params,
14577 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
14578 * config/sh/sh.c (sh_option_default_params,
14579 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
14580 * config/spu/spu.c (spu_option_default_params,
14581 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
14582 * Makefile.in (OBJS): Remove params.o.
14583 (OBJS-libcommon-target): Add params.o.
14584 (params.o, $(common_out_object_file)): Update dependencies.
14585 * doc/tm.texi: Regenerate.
14586
14587 2011-06-23 Alan Modra <amodra@gmail.com>
14588
14589 PR bootstrap/49383
14590 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
14591 invocation for 2011-06-09 changes.
14592
14593 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14594
14595 PR libgomp/49490
14596 * omp-low.c (expand_omp_for_static_nochunk): Only
14597 use n ceil/ nthreads size for the first n % nthreads threads in the
14598 team instead of all threads except for the last few ones which
14599 get less work or none at all.
14600
14601 PR debug/49496
14602 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
14603 uses.
14604
14605 2011-06-22 Richard Guenther <rguenther@suse.de>
14606
14607 PR tree-optimization/49493
14608 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
14609 Refer to the alias target of variables.
14610 (associate_varinfo_to_alias_1): Remove.
14611 (ipa_pta_execute): Do not associate aliases with anything.
14612 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
14613 (cgraph_function_node): Likewise.
14614 (cgraph_function_or_thunk_node): Likewise.
14615 (varpool_variable_node): Likewise.
14616
14617 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
14618
14619 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
14620 * config.gcc (arm*-*-linux*): Default to gnu tls.
14621 (arm*-*-*): Add --with-tls option.
14622 (all_defaults): Add 'tls'.
14623
14624 2011-06-22 Richard Henderson <rth@redhat.com>
14625
14626 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
14627 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
14628 (dwarf2out_frame_debug_cfa_window_save): Rename from
14629 dwarf2out_window_save; make static.
14630 * tree.h (dwarf2out_window_save): Don't declare.
14631
14632 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
14633 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
14634 (emit_save_register_window): Rename from gen_save_register_window;
14635 emit the insn and add REG_CFA_* notes.
14636 (sparc_expand_prologue): Update to match.
14637 * config/sparc/sparc.md (save_register_window_1): Simplify from
14638 save_register_window<P:mode>.
14639
14640 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
14641
14642 PR target/49497
14643 * config/i386/i386.md (*lea_general_2): Always allow SImode.
14644 (*lea_general_2_zext): Likewise.
14645 (imul to lea peepholes): Use const359_operand and check
14646 TARGET_PARTIAL_REG_STALL.
14647
14648 * config/i386/predicates.md (const359_operand): New.
14649
14650 2011-06-22 Michael Matz <matz@suse.de>
14651
14652 * cgraphunit.c (assemble_thunk): Use correct return type.
14653
14654 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
14655 Dmitry Melnik <dm@ispras.ru>
14656
14657 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
14658 (neon_output_shift_immediate): Ditto.
14659 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
14660 prototype.
14661 (neon_output_shift_immediate): Ditto.
14662 * config/arm/neon.md (vashl<mode>3): Modified constraint.
14663 (vashr<mode>3_imm): New insn pattern.
14664 (vlshr<mode>3_imm): Ditto.
14665 (vashr<mode>3): Modified constraint.
14666 (vlshr<mode>3): Ditto.
14667 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
14668 predicate.
14669 (imm_for_neon_rshift_operand): Ditto.
14670 (imm_lshift_or_reg_neon): Ditto.
14671 (imm_rshift_or_reg_neon): Ditto.
14672
14673 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
14674
14675 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14676
14677 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
14678 builtin calls even if likelyvalue is not CONSTANT.
14679 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
14680 Return get_value_for_expr of first operand
14681 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
14682 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14683 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
14684 their non-checking counterparts.
14685 (call_may_clobber_ref_p_1): Likewise.
14686 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
14687 like their non-checking counterparts.
14688 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14689 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
14690 like their non-checking counterparts.
14691 (find_func_clobbers): Likewise.
14692 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
14693 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
14694
14695 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
14696 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
14697 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
14698 of base type reference as argument.
14699 (resolve_addr_in_expr): Likewise. Fix keep computation.
14700 (convert_descriptor_to_signed): Renamed to...
14701 (convert_descriptor_to_mode): ... this. For wider types convert to
14702 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
14703 (typed_binop): New function.
14704 (scompare_loc_descriptor, ucompare_loc_descriptor,
14705 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
14706 default to unsigned type instead of signed.
14707
14708 PR debug/47858
14709 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
14710 (gimple_build_debug_source_bind_stat): New prototype.
14711 (gimple_build_debug_source_bind): Define.
14712 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
14713 gimple_debug_source_bind_get_value,
14714 gimple_debug_source_bind_get_value_ptr,
14715 gimple_debug_source_bind_set_var,
14716 gimple_debug_source_bind_set_value): New inlines.
14717 * gimple.c (gimple_build_debug_source_bind_stat): New function.
14718 * gimple-pretty-print.c (dump_gimple_debug): Handle
14719 GIMPLE_DEBUG_SOURCE_BIND.
14720 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
14721 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14722 * tree-parloops.c (eliminate_local_variables,
14723 separate_decls_in_region): Likewise.
14724 (separate_decls_in_region_debug): Renamed from
14725 separate_decls_in_region_debug_bind. Handle
14726 gimple_debug_source_bind_p.
14727 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
14728 prototypes.
14729 (DECL_HAS_DEBUG_ARGS_P): Define.
14730 (struct tree_function_decl): Add has_debug_args_flag field.
14731 * tree.c (debug_args_for_decl): New variable.
14732 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
14733 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
14734 (rewrite_debug_stmt_uses): New function.
14735 (rewrite_stmt): Use it to rewrite debug stmt uses.
14736 * rtl.def (DEBUG_PARAMETER_REF): New.
14737 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
14738 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
14739 DEBUG_PARAMETER_REF.
14740 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
14741 * print-rtl.c (print_rtx): Likewise.
14742 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
14743 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
14744 debug stmts in the first bb.
14745 * tree-inline.c (remap_ssa_name): If remapping default def
14746 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
14747 a source bind debug stmt.
14748 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
14749 (maybe_move_debug_stmts_to_successors): Likewise.
14750 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
14751 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
14752 debug args vector from old_decl to new_decl.
14753 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
14754 or modified parameters, add debug bind stmts before call
14755 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
14756 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
14757 on DECL_DEBUG_EXPRs from debug args vector.
14758 (expand_debug_source_expr): New function.
14759 (expand_debug_locations): Use it for source bind insns.
14760 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
14761 * var-tracking.c (prepare_call_arguments): Add debug args
14762 to call_arguments if any.
14763 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
14764 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
14765 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
14766 (get_ref_die_offset, parameter_ref_descriptor): New functions.
14767 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
14768 (gen_subprogram_die): Handle parameters identified by
14769 DEBUG_PARAMETER_REF.
14770
14771 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
14772
14773 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
14774 * doc/install.texi (Configuration): Document --with-tls.
14775 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
14776 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
14777 (arm_tls_descseq_addr): New.
14778 (legitimize_tls_address): Add tlsdesc support.
14779 (arm_cannot_copy_insn_p): Check for tlscall.
14780 (arm_emit_tls_decoration): Likewise.
14781 * config/arm/arm.h (TARGET_GNU2_TLS): New.
14782 (OPTION_DEFAULT_SPECS): Add with-tls support.
14783 * config/arm/arm.md (R1_REGNUM): Define.
14784 (tlscall): New.
14785 * config/arm/arm.opt (tls_type): New enumeration type and values.
14786 (mtls-dialect): New switch.
14787 * config/arm/arm-opts.h (enum tls_type): New.
14788
14789 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
14790
14791 * attribs.c (register_attribute): Added assert to check that all
14792 attribute specs are registered with a name that is not empty and
14793 does not start with '_'.
14794 (decl_attributes): Avoid the lookup of the "naked" attribute spec
14795 if the function has no attributes.
14796 * tree.c (is_attribute_with_length_p): Removed.
14797 (is_attribute_p): Removed.
14798 (private_is_attribute_p): New.
14799 (private_lookup_attribute): New.
14800 (lookup_attribute): Removed.
14801 (lookup_ident_attribute): New.
14802 (remove_attribute): Require the first argument to be in the form
14803 'text', not '__text__'. Updated asserts.
14804 (merge_attributes): Use lookup_ident_attributes instead of
14805 lookup_attribute.
14806 (merge_dllimport_decl_attributes): Use remove_attribute.
14807 (attribute_list_contained): Likewise.
14808 (attribute_list_equal): Immediately return 1 if the arguments are
14809 identical pointers.
14810 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
14811 'int'. Require the first argument to be in the form 'text', not
14812 '__text__'. Require the second argument to be an identifier.
14813 (lookup_attribute): Made inline. Require the first argument to be
14814 in the form 'text', not '__text__'.
14815 (private_is_attribute_p, private_lookup_attribute): New.
14816 Updated comments.
14817
14818 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
14819
14820 * builtins.c: Add sync_ or SYNC__ to builtin names.
14821 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
14822 * omp-low.c: Add sync_ or SYNC__ to builtin names.
14823
14824 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
14825
14826 PR target/33049
14827 * config/avr/avr.md (extzv): New expander.
14828 (*extzv): New insn.
14829 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
14830 * config/avr/constraints.md (C04): New constraint.
14831 * doc/md.texi (Machine Constraints): Document it.
14832
14833 2011-06-21 Jakub Jelinek <jakub@redhat.com>
14834
14835 PR middle-end/49489
14836 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
14837 unsignedp argument instead of 1 for clrsb_optab.
14838 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
14839 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
14840 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
14841 * optabs.c (widen_leading): Call widen_operand and expand_unop
14842 with 0 as unsignedp argument instead of 1 for clrsb_optab.
14843 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
14844
14845 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
14846
14847 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
14848
14849 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
14850
14851 * gensupport.c (add_define_attr): New static function.
14852 (is_predicable): Allow multi-alternative lists for the "predicable"
14853 attribute.
14854 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
14855 (process_one_cond_exec): Call alter_attrs_for_insn.
14856 * doc/md.texi (Defining Attributes): Mention some standard names.
14857 (Conditional Execution): Update documentation for "predicable".
14858
14859 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
14860 __builtin_clrsbll): Document.
14861 * doc/rtl.texi (clrsb): New entry.
14862 * optabs.c (widen_leading): Renamed from widen_clz. New argument
14863 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
14864 (expand_unop): Handle clrsb_optab.
14865 (init_optabs): Initialize it.
14866 * optabs.h (enum optab_index): New entry OTI_clrsb.
14867 (clrsb_optab): Define.
14868 * genopinit.c (optabs): Add an entry for it.
14869 * builtins.c (expand_builtin): Handle clrsb builtin functions.
14870 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
14871 BUILT_IN_CLRSBLL): New.
14872 * rtl.def (CLRSB): New code.
14873 * dwarf2out.c (mem_loc_descriptor): Handle it.
14874 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14875 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
14876 and popcount.
14877 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
14878 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
14879 (__ctzDI2): Move declaration.
14880 * config/bfin/bfin.md (clrsbsi2): New expander.
14881 (signbitssi2): Use the CLRSB rtx.
14882 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
14883 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
14884
14885 2011-06-21 Richard Guenther <rguenther@suse.de>
14886
14887 * ipa-inline-transform.c (inline_transform): Fix previous change.
14888
14889 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
14890
14891 PR tree-optimization/49478
14892 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
14893 with constant operand.
14894
14895 2011-06-21 Richard Guenther <rguenther@suse.de>
14896
14897 * ipa-inline-transform.c (inline_transform): Fix typo.
14898
14899 2011-06-21 Richard Guenther <rguenther@suse.de>
14900
14901 PR tree-optimization/49483
14902 * tree-vect-stmts.c (vectorizable_assignment): Also handle
14903 VIEW_CONVERT_EXPR conversions.
14904
14905 2011-06-21 Joseph Myers <joseph@codesourcery.com>
14906
14907 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
14908 * config/avr/avr-tables.opt: New file (generated).
14909 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
14910 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
14911 avr-mcus.def.
14912 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
14913 (avr_option_override): Don't process -mmcu= argument here. Set
14914 avr_current_device using avr_mcu_index.
14915 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
14916 * config/avr/avr.opt (mmcu=): Use Enum.
14917 * config/avr/t-avr (avr-devices.o): Update dependencies.
14918 ($(srcdir)/config/avr/avr-tables.opt): New.
14919 * target.def (help): Remove.
14920 * doc/tm.texi.in (TARGET_HELP): Remove.
14921 * doc/tm.texi: Regenerate.
14922 * opts.c: Don't include target.h.
14923 (common_handle_option): Don't call targetm.help.
14924 * system.h (TARGET_HELP): Poison.
14925 * Makefile.in (opts.o): Update dependencies.
14926
14927 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14928
14929 * config/usegld.h: New file.
14930 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
14931 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
14932 (LIB_SPEC): Likewise. Search /lib.
14933 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
14934 (RDYNAMIC_SPEC): Handle GNU ld.
14935 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
14936 Define.
14937 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
14938 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
14939 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
14940 (STACK_CHECK_STATIC_BUILTIN): Define.
14941 * config/sol2.opt (compat-bsd): Remove.
14942 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
14943 * config/sol2-bi.h: New file.
14944 * config/sol2-gld.h: Remove.
14945 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
14946 (NO_DBX_BNSYM_ENSYM): Remove.
14947 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14948 (STACK_CHECK_STATIC_BUILTIN): Remove.
14949 Test USE_GLD instead of TARGET_GNU_LD.
14950 * config/i386/sol2-10.h: Rename to ...
14951 * config/i386/sol2-bi.h .. this.
14952 (SUBTARGET_EXTRA_SPECS): Redefine.
14953 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
14954 (MULTILIB_DEFAULTS): Remove.
14955 (DEFAULT_ARCH32_P): Define.
14956 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
14957 (ARCH64_SUBDIR): Define.
14958 Test USE_GLD instead of TARGET_GNU_LD.
14959 (I386_EMULATION): Rename to ...
14960 (ARCH32_EMULATION): ... this.
14961 (X86_64_EMULATION): Rename to ...
14962 (ARCH64_EMULATION): ... this.
14963 (TARGET_LD_EMULATION): Remove.
14964 (LINK_ARCH_SPEC): Remove.
14965 * config/i386/sol2-gas.h: Remove.
14966 * config/i386/t-sol2-10: Rename to ...
14967 * config/i386/t-sol2-64: ... this.
14968 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
14969 (AS_SPARC64_FLAG): Define.
14970 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
14971 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
14972 depending on TARGET_CPU_DEFAULT.
14973 (CPP_CPU_SPEC): Redefine.
14974 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
14975 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
14976 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
14977 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
14978 ASM_ARCH_DEFAULT_SPEC): Redefine.
14979 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14980 LINK_ARCH_DEFAULT_SPEC.
14981 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
14982 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
14983 (ARCH64_SUBDIR): Define.
14984 (LINK_ARCH64_SPEC): Redefine.
14985 (CC1_SPEC): Redefine.
14986 (OPTION_DEFAULT_SPECS): Redefine.
14987 (MULTILIB_DEFAULTS): Define.
14988 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
14989 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
14990 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
14991 (NO_DBX_BNSYM_ENSYM): Remove.
14992 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14993 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
14994 (TARGET_ASM_NAMED_SECTION): Likewise.
14995 (STACK_CHECK_STATIC_BUILTIN): Remove.
14996 * config/sparc/sol2-bi.h: Remove.
14997 * config/sparc/sol2-gas-bi.h: Remove.
14998 * config/sparc/sol2-gas.h: Remove.
14999 * config/sparc/sol2-gld-bi.h: Remove.
15000 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
15001 common parts ...
15002 (*-*-solaris2*): ... here.
15003
15004 2011-06-21 Christian Bruel <christian.bruel@st.com>
15005
15006 PR other/43564
15007 * ipa-inline.c (can_inline_edge_p): Check
15008 !DECL_DISREGARD_INLINE_LIMITS.
15009
15010 2011-06-21 Christian Bruel <christian.bruel@st.com>
15011
15012 PR middle-end/49139
15013 * cgraphunit.c (process_function_and_variable_attributes): warn when
15014 always_inline functions that are not inline.
15015 * ipa-inline-transform.c (inline_transform): Always call
15016 optimize_inline.
15017 * tree-inline.c (tree_inlinable_function_p): Use error instead
15018 of sorry.
15019 (expand_call_inline): Likewise.
15020
15021 2011-06-21 Jakub Jelinek <jakub@redhat.com>
15022
15023 * Makefile.in (dg_target_exps): Set.
15024 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
15025 instead of 7, try to divide it more evenly.
15026
15027 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
15028
15029 PR target/49089
15030 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
15031 (avx256_split_unaligned_store): New definition.
15032 (ix86_option_override_internal): Enable avx256 unaligned load/store
15033 splitting only when avx256_split_unaligned_load/store is set.
15034
15035 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
15036
15037 * regrename.c (scan_rtx_reg): Handle the case where we write to an
15038 open chain in a smaller mode without failing the entire block.
15039
15040 2011-06-21 Alan Modra <amodra@gmail.com>
15041
15042 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
15043 CONST high part large-toc address.
15044 (rs6000_tls_referenced_p): Make static.
15045 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
15046
15047 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15048
15049 PR target/49385
15050 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
15051 one of the operands is a register.
15052
15053 2011-06-20 Kai Tietz <ktietz@redhat.com>
15054
15055 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
15056 operations in combination with binary and.
15057
15058 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
15059
15060 * regrename.c (do_replace): Don't update notes.
15061
15062 2011-06-20 Alan Modra <amodra@gmail.com>
15063
15064 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
15065 of toc-relative address in CONST.
15066 (rs6000_delegitimize_address): Recognize changed address.
15067 (rs6000_legitimize_reload_address): Likewise.
15068 (rs6000_emit_move): Don't force these constants to memory.
15069 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
15070 toc-relative address in CONST.
15071 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
15072 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
15073
15074 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
15075
15076 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
15077 (count_trailing_zeros): Likewise.
15078
15079 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
15080
15081 PR other/49325
15082 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
15083 .init_array can be used with .ctors on targets.
15084 * configure: Regenerated.
15085
15086 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
15087
15088 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
15089 if the element type is volatile.
15090
15091 2011-06-18 Jan Hubicka <jh@suse.cz>
15092
15093 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
15094 extra name aliases.
15095 (lto_symtab_resolve_can_prevail_p): Likewise.
15096 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
15097 * cgraphbuild.c (record_reference): Remove extra body alias code.
15098 (mark_load): Likewise.
15099 (mark_store): Likewise.
15100 * cgraph.h (varpool_node): Remove extra_name filed;
15101 add alias_of and extraname_alias.
15102 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
15103 (varpool_alias_aliased_node): New inline function.
15104 (varpool_variable_node): New function.
15105 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
15106 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
15107 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
15108 (input_varpool_node): Likewise.
15109 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
15110 (varpool_externally_visible_p): Remove extra body alias code.
15111 (function_and_variable_visibility): Likewise.
15112 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
15113 (ipa_pta_execute): Use it.
15114 * varpool.c (varpool_remove_node): Remove extra name alias code.
15115 (varpool_mark_needed_node): Likewise.
15116 (varpool_analyze_pending_decls): Analyze aliases.
15117 (assemble_aliases): New functoin.
15118 (varpool_assemble_decl): Use it.
15119 (varpool_create_variable_alias): New function.
15120 (varpool_extra_name_alias): Rewrite.
15121 (varpool_for_node_and_aliases): New function.
15122
15123 2011-06-18 Jakub Jelinek <jakub@redhat.com>
15124
15125 PR target/49411
15126 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
15127 last_arg_constant and last argument doesn't match its predicate,
15128 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
15129 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
15130 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
15131 spelling of error message.
15132 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
15133 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
15134 const_0_to_255_operand instead of const_int_operand.
15135
15136 Revert:
15137 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
15138
15139 * config/i386/sse.md (blendbits): Remove mode attribute.
15140 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
15141 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
15142 Check integer value of operand 3 in insn constraint.
15143
15144 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
15145
15146 PR rtl-optimization/48542
15147 * reload.c (find_equiv_reg): Stop looking when finding a
15148 setjmp-type call.
15149 * reload1.c (reload_as_needed): Invalidate all reload
15150 registers when crossing a setjmp-type call.
15151
15152 2011-06-16 Jeff Law <law@redhat.com>
15153
15154 * tree-ssa-threadupdate.c (struct redirection_data): New field
15155 intermediate_edge.
15156 (THREAD_TARGET2): Define.
15157 (redirection_data_eq): Also check that the intermediate edge is equal.
15158 (lookup_redirection_data): Drop useless argument. Extract the
15159 outgoing_edge and intermediate edge from E. Callers updated.
15160 (copy_phi_args, update_destination_phis): New functions.
15161 (fix_duplicate_block_edges): Likewise.
15162 (create_edge_and_update_destination_phis): Duplicate all the edges
15163 hung off e->aux. Use copy_phi_args.
15164 (create_duplicates): Use fix_duplicate_block_edges.
15165 (fixup_template_block): Likewise.
15166 (redirect_edges): If necessary, redirect the joiner block's incoming
15167 edge to the duplicate of the joiner block.
15168 (thread_block): Don't muck up loops when threading through a joiner
15169 block.
15170 (thread_through_loop_header): Handle threading through a joiner block.
15171 (mark_threaded_blocks, register_jump_thread): Likewise.
15172 * tree-flow.h (register_jump_thread): Add new argument. Callers
15173 updated.
15174 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
15175 (thread_across_edge): Handle threading through a joiner block.
15176
15177 2011-06-16 Martin Jambor <mjambor@suse.cz>
15178
15179 PR tree-optimization/49343
15180 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
15181 calculate offset, provide 2nd operand for the new COMPONENT_REF.
15182
15183 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
15184
15185 * config/darwin-protos.h (machopic_select_rtx_section): Move to
15186 inside RTX_CODE ifdef.
15187
15188 2011-06-16 Tom de Vries <tom@codesourcery.com>
15189
15190 PR target/45098
15191 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
15192 Disallow NULL pointer for pointer arithmetic.
15193
15194 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15195
15196 PR target/49398
15197 Revert.
15198 2011-06-10 Wei Guozhi <carrot@google.com>
15199
15200 PR target/45335
15201 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
15202 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
15203 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
15204 related peephole2.
15205 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
15206 related peephole2.
15207 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
15208 (arm_legitimate_ldrd_p): New prototype.
15209 (arm_output_ldrd): New prototype.
15210 * config/arm/arm.c (arm_check_ldrd_operands): New function.
15211 (arm_legitimate_ldrd_p): New function.
15212 (arm_output_ldrd): New function.
15213
15214 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
15215
15216 PR middle-end/46500
15217 * doc/tm.texi.in: Update Copyright date.
15218 * doc/tm.texi: Regenerate.
15219 * targhooks.c (default_setup_incoming_varargs): Replace
15220 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15221 (default_pretend_outgoing_varargs_named): Likewise.
15222 (hook_pass_by_reference_must_pass_in_stack): Likewise.
15223 (hook_callee_copies_named): Likewise.
15224 (default_function_arg_advance): Likewise.
15225 (default_function_arg): Likewise.
15226 (default_function_incoming_arg): Likewise.
15227 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
15228 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
15229 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
15230 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15231 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
15232 * targhooks.h (default_setup_incoming_varargs): Likewise.
15233 (default_pretend_outgoing_varargs_named): Likewise.
15234 (hook_pass_by_reference_must_pass_in_stack): Likewise.
15235 (hook_callee_copies_named): Likewise.
15236 (default_function_arg_advance): Likewise.
15237 (default_function_arg): Likewise.
15238 (default_function_incoming_arg): Likewise.
15239 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
15240 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
15241 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
15242 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15243 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
15244 * target.def (pass_by_reference): Likewise.
15245 (setup_incoming_varargs, strict_argument_naming): Likewise.
15246 (pretend_outgoing_varargs_named, callee_copies): Likewise.
15247 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
15248 (function_incoming_arg): Likewise.
15249 * target.h: Don't include "tm.h" .
15250 (cumulative_args_t): New typedef.
15251 [GCC_TM_H] (get_cumulative_args): New static inline function.
15252 [GCC_TM_H] (pack_cumulative_args): Likewise.
15253 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
15254 argument type with cumulative_args_t.
15255 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
15256 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
15257 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15258 (frv_arg_partial_bytes, frv_function_arg): Likewise.
15259 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
15260 (frv_function_arg_1): Likewise.
15261 * config/s390/s390.c (s390_pass_by_reference): Likewise.
15262 (s390_function_arg_advance, s390_function_arg): Likewise.
15263 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15264 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
15265 (m32c_strict_argument_naming): Likewise.
15266 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
15267 (spu_function_arg_advance): Likewise.
15268 (spu_setup_incoming_varargs): Likewise. Make static.
15269 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
15270 Remove prototype.
15271 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
15272 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15273 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
15274 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
15275 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
15276 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
15277 (mep_pass_by_reference, mep_function_arg): Likewise.
15278 (mep_function_arg_advance): Likewise.
15279 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15280 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
15281 (m32r_function_arg, m32r_function_arg_advance): Likewise.
15282 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
15283 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15284 (ix86_function_arg, ix86_pass_by_reference): Likewise.
15285 (ix86_setup_incoming_varargs): Likewise.
15286 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15287 (sh_strict_argument_naming): Likewise.
15288 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
15289 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
15290 (sh_function_arg_advance, sh_function_arg): Likewise.
15291 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15292 (pdp11_function_arg_advance): Likewise.
15293 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15294 Likewise.
15295 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
15296 * config/avr/avr.c (avr_function_arg): Likewise.
15297 (avr_function_arg_advance): Likewise.
15298 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15299 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
15300 (xtensa_function_arg_1): Likewise.
15301 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
15302 Likewise.
15303 (xstormy16_function_arg): Likewise.
15304 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15305 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15306 (fr30_function_arg_advance): Likewise.
15307 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15308 (lm32_function_arg, lm32_function_arg_advance): Likewise.
15309 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15310 (moxie_function_arg, moxie_function_arg_advance): Likewise.
15311 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
15312 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15313 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
15314 (cris_function_arg, cris_function_incoming_arg): Likewise.
15315 (cris_function_arg_advance, cris_function_arg_1): Likewise.
15316 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15317 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
15318 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
15319 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15320 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
15321 (mn10300_arg_partial_bytes): Likewise.
15322 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15323 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
15324 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
15325 (ia64_function_arg_1): Likewise.
15326 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15327 (m68k_function_arg): Likewise.
15328 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
15329 (rs6000_function_arg, setup_incoming_varargs): Likewise.
15330 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
15331 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
15332 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
15333 (picochip_arg_advance): Likewise.
15334 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15335 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
15336 (mcore_function_arg_advance): Likewise.
15337 * config/score/score.c (score_pass_by_reference): Likewise.
15338 (score_function_arg_advance): Likewise.
15339 (score_arg_partial_bytes): Likewise. Make static.
15340 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
15341 * config/arm/arm.c (arm_arg_partial_bytes): Replace
15342 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15343 (arm_function_arg, arm_function_arg_advance): Likewise.
15344 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
15345 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15346 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
15347 (pa_function_arg): Likewise.
15348 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
15349 (mips_function_arg, mips_function_arg_advance): Likewise.
15350 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
15351 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
15352 * config/vax/vax.c (vax_function_arg): Likewise.
15353 (vax_function_arg_advance): Likewise.
15354 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15355 (h8300_function_arg_advance): Likewise.
15356 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15357 (v850_strict_argument_naming, v850_function_arg): Likewise.
15358 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
15359 (v850_setup_incoming_varargs): Likewise.
15360 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15361 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
15362 (mmix_function_arg, mmix_pass_by_reference): Likewise.
15363 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
15364 with const void *.
15365 * config/bfin/bfin.c (setup_incoming_varargs): Replace
15366 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15367 (bfin_function_arg_advance, bfin_function_arg): Likewise.
15368 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
15369 * calls.c (emit_call_1): Change type of args_so_far to
15370 cumulative_args_t. Changed all callers.
15371 (initialize_argument_information): Likewise.
15372 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
15373 * dse.c (get_call_args): Likewise.
15374 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15375 * function.c (pass_by_reference, reference_callee_copied): Likewise.
15376 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
15377 New member args_so_far_v. Changed all users.
15378 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
15379 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15380 * config/mips/mips.c (mips_output_args_xfer): Likewise.
15381 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15382 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15383 * config/microblaze/microblaze.c (microblaze_expand_prologue):
15384 Likewise.
15385 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
15386 m32r_pass_by_reference.
15387
15388 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
15389
15390 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
15391 argument to be a VEC of statements.
15392 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
15393 assert that pattern statements have to have their vector type set.
15394 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
15395 Change the first argument to be a VEC of statements. Update
15396 documentation.
15397 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
15398 (vect_handle_widen_mult_by_const): New function.
15399 (vect_recog_widen_mult_pattern): Change the first argument to be a
15400 VEC of statements. Update documentation. Check that the constant is
15401 INTEGER_CST. Support multiplication by a constant that fits an
15402 intermediate type - call vect_handle_widen_mult_by_const.
15403 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
15404 call. Handle additional pattern statements if necessary.
15405
15406 2011-06-16 Nick Clifton <nickc@redhat.com>
15407
15408 PR target/49427
15409 * config.gcc: Set cpu_type to v850 for any V850 architecture.
15410 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
15411 md_file, extra_modes, out_file and extra_options are these are all
15412 deduced from cpu_type.
15413
15414 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
15415
15416 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
15417 truncation mask to 63.
15418
15419 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
15420
15421 PR target/49313
15422 PR target/29524
15423 * longlong.h: Add AVR support:
15424 (count_leading_zeros): New macro.
15425 (count_trailing_zeros): New macro.
15426 (COUNT_LEADING_ZEROS_0): New macro.
15427 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
15428 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
15429 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
15430 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
15431 (LIB2FUNCS_EXCLUDE): Add _clz.
15432 * config/avr/libgcc.S (XCALL): Move up in file.
15433 (XJMP): New C Macro.
15434 (DEFUN): New asm macro.
15435 (ENDF): New asm macro.
15436 (__ffssi2): New function.
15437 (__ffshi2): New function.
15438 (__loop_ffsqi2): New function.
15439 (__ctzsi2): New function.
15440 (__ctzhi2): New function.
15441 (__clzdi2): New function.
15442 (__clzsi2): New function.
15443 (__clzhi2): New function.
15444 (__paritydi2): New function.
15445 (__paritysi2): New function.
15446 (__parityhi2): New function.
15447 (__parityqi2): New function.
15448 (__popcounthi2): New function.
15449 (__popcountsi2): New function.
15450 (__popcountdi2): New function.
15451 (__popcountqi2): New function.
15452 (__bswapsi2): New function.
15453 (__bswapdi2): New function.
15454 (__ashldi3): New function.
15455 (__ashrdi3): New function.
15456 (__lshrdi3): New function.
15457 Fix suspicous lines.
15458
15459 2011-06-16 Richard Guenther <rguenther@suse.de>
15460
15461 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
15462 the same as x != 0.
15463 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
15464 to (bool) X & 1.
15465 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
15466 equality compares against zero for the lower bit.
15467
15468 2011-06-16 Jakub Jelinek <jakub@redhat.com>
15469
15470 PR tree-optimization/49419
15471 * tree-vrp.c (execute_vrp): Call init_range_assertions
15472 before estimate_numbers_of_iterations, call
15473 free_number_of_iterations_estimates before calling
15474 remove_range_assertions.
15475
15476 2011-06-16 Revital Eres <revital.eres@linaro.org>
15477
15478 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
15479 (struct partial_schedule): Add rows_length field.
15480 (verify_partial_schedule): Check rows_length.
15481 (ps_insert_empty_row): Handle rows_length.
15482 (create_partial_schedule): Likewise.
15483 (free_partial_schedule): Likewise.
15484 (reset_partial_schedule): Likewise.
15485 (create_ps_insn): Remove rest_count argument.
15486 (remove_node_from_ps): Update rows_length.
15487 (add_node_to_ps): Update rows_length and call create_ps_insn
15488 without passing row_rest_count.
15489 (rotate_partial_schedule): Update rows_length.
15490
15491 2011-06-16 Revital Eres <revital.eres@linaro.org>
15492
15493 * ddg.c (add_intra_loop_mem_dep): New function.
15494 (build_intra_loop_deps): Call it.
15495
15496 2011-06-13 Jeff Law <law@redhat.com>
15497
15498 * df-problems.c (df_lr_local_compute): Manually CSE
15499 PIC_OFFSET_TABLE_REGNUM.
15500 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
15501 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
15502
15503 2011-06-13 Jan Hubicka <jh@suse.cz>
15504
15505 * cgraphunit.c (handle_alias_pairs): New function.
15506 (cgraph_finalize_compilation_unit): Use it.
15507 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
15508 as externally visible.
15509
15510 2011-06-15 Richard Guenther <rguenther@suse.de>
15511
15512 * expr.c (expand_expr_real_2): Reduce all integral types to
15513 bitfield precision.
15514 (expand_expr_real_1): Likewise.
15515
15516 2011-06-15 Martin Jambor <mjambor@suse.cz>
15517
15518 PR tree-optimization/48613
15519 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
15520 ipa_node_params_vector is NULL.
15521
15522 2011-06-15 Jakub Jelinek <jakub@redhat.com>
15523
15524 PR debug/49382
15525 * dwarf2out.c (dw_loc_list_node): Add force field.
15526 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
15527 location in the list, even if it is modified before first real insn.
15528 (output_loc_list): Emit empty ranges with force flag set.
15529 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
15530
15531 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
15532
15533 PR target/49349
15534 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
15535 (fence_to_rewind). Use it to notice when bookkeeping will be placed
15536 above a fence. Update comments.
15537 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
15538 placed just above it. Do not allow NULL place_to_insert.
15539
15540 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
15541
15542 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
15543 (slpeel_tree_peel_loop_to_edge): Don't call
15544 remove_dead_stmts_from_loop.
15545 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15546 remove irrelevant pattern statements. For irrelevant statements
15547 check if it is the last statement of a detected pattern, use
15548 corresponding pattern statement instead.
15549 (destroy_loop_vec_info): No need to remove pattern statements,
15550 only free stmt_vec_info.
15551 (vect_transform_loop): For irrelevant statements check if it is
15552 the last statement of a detected pattern, use corresponding
15553 pattern statement instead.
15554 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
15555 pattern statements. Set basic block for the new statement.
15556 (vect_pattern_recog): Update documentation.
15557 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
15558 operands of pattern statements.
15559 (vectorizable_call): Fix printing. In case of a pattern statement
15560 use the lhs of the original statement when creating a dummy
15561 statement to replace the original call.
15562 (vect_analyze_stmt): For irrelevant statements check if it is
15563 the last statement of a detected pattern, use corresponding
15564 pattern statement instead.
15565 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
15566 statements use gsi of the original statement.
15567
15568 2011-06-14 Joseph Myers <joseph@codesourcery.com>
15569
15570 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
15571 common/common-target-def.h.
15572 * target.def (default_target_flags, handle_option,
15573 supports_split_stack, optimization_table, init_struct,
15574 except_unwind_info, unwind_tables_default, have_named_sections):
15575 Move to common/common-target.def.
15576 * target.h (enum opt_levels, struct default_options): Move to
15577 common/common-target.h.
15578 * targhooks.c (default_except_unwind_info,
15579 dwarf2_except_unwind_info, sjlj_except_unwind_info,
15580 default_target_handle_option, empty_optimization_table): Move to
15581 common/common-targhooks.c.
15582 * targhooks.h (default_except_unwind_info,
15583 dwarf2_except_unwind_info, sjlj_except_unwind_info,
15584 default_target_handle_option, empty_optimization_table): Move to
15585 common/common-targhooks.h.
15586 * common/common-target-def.h: Include common/common-targhooks.h.
15587 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
15588 defined.
15589 * common/common-target.def (handle_option, option_init_struct,
15590 option_optimization_table, default_target_flags,
15591 except_unwind_info, supports_split_stack, unwind_tables_default,
15592 have_named_sections): Move from target.def.
15593 (HOOK_PREFIX): Undefine at end of file.
15594 * common/common-target.h: Include input.h.
15595 (enum opt_levels, struct default_options): Move from target.h.
15596 * common/common-targhooks.c, common/common-targhooks.h: New.
15597 * config.gcc (target_has_targetm_common): Default to yes.
15598 (moxie*): Set target_has_targetm_common=no.
15599 (hppa*-*-*): Don't set target_has_targetm_common=yes.
15600 * doc/tm.texi: Regenerate.
15601 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
15602 (C_TARGET_DEF_H): Add common/common-targhooks.h.
15603 (GCC_OBJS): Remove vec.o.
15604 (OBJS): Remove hooks.o and vec.o.
15605 (OBJS-libcommon-target): Add vec.o, hooks.o and
15606 common/common-targhooks.o.
15607 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
15608 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
15609 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
15610 cfglayout.o, $(out_object_file), $(common_out_object_file)):
15611 Update dependencies.
15612 (common/common-targhooks.o): New.
15613 * common/config/default-common.c: Include tm.h. Add FIXME comment.
15614 * common/config/pa/pa-common.c: Include more headers. Take
15615 copyright dates from pa.c.
15616 (pa_option_optimization_table, pa_handle_option,
15617 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
15618 TARGET_HANDLE_OPTION): Move from pa.c.
15619 * common/config/alpha/alpha-common.c,
15620 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
15621 common/config/bfin/bfin-common.c,
15622 common/config/cris/cris-common.c,
15623 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
15624 common/config/h8300/h8300-common.c,
15625 common/config/i386/i386-common.c,
15626 common/config/ia64/ia64-common.c,
15627 common/config/iq2000/iq2000-common.c,
15628 common/config/lm32/lm32-common.c,
15629 common/config/m32c/m32c-common.c,
15630 common/config/m32r/m32r-common.c,
15631 common/config/m68k/m68k-common.c,
15632 common/config/mcore/mcore-common.c,
15633 common/config/mep/mep-common.c,
15634 common/config/microblaze/microblaze-common.c,
15635 common/config/mips/mips-common.c,
15636 common/config/mmix/mmix-common.c,
15637 common/config/mn10300/mn10300-common.c,
15638 common/config/pdp11/pdp11-common.c,
15639 common/config/picochip/picochip-common.c,
15640 common/config/rs6000/rs6000-common.c,
15641 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
15642 common/config/score/score-common.c, common/config/sh/sh-common.c,
15643 common/config/sparc/sparc-common.c,
15644 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
15645 common/config/vax/vax-common.c,
15646 common/config/xstormy16/xstormy16-common.c,
15647 common/config/xtensa/xtensa-common.c: New.
15648 * config/alpha/alpha.c: Include common/common-target.h.
15649 (alpha_option_optimization_table, alpha_handle_option,
15650 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15651 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
15652 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
15653 * config/arm/arm.c (arm_option_optimization_table,
15654 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15655 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
15656 arm-common.c.
15657 * config/avr/avr.c (avr_option_optimization_table,
15658 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
15659 to avr-common.c.
15660 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
15661 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
15662 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
15663 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
15664 * config/cris/cris.c (cris_option_optimization_table,
15665 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15666 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
15667 cris-common.c.
15668 * config/fr30/fr30.c (fr30_option_optimization_table,
15669 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
15670 to fr30-common.c.
15671 * config/frv/frv.c (frv_option_optimization_table,
15672 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
15673 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
15674 * config/h8300/h8300.c (h8300_option_optimization_table,
15675 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15676 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
15677 * config/i386/i386-protos.h (ix86_handle_option): Declare.
15678 * config/i386/i386.c: Include common/common-target.h.
15679 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
15680 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
15681 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
15682 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
15683 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
15684 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
15685 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
15686 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
15687 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
15688 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
15689 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
15690 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
15691 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
15692 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
15693 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
15694 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
15695 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
15696 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
15697 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
15698 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
15699 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
15700 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
15701 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
15702 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
15703 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
15704 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
15705 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
15706 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
15707 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
15708 ix86_option_optimization_table, ix86_option_init_struct,
15709 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
15710 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15711 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
15712 i386-common.c.
15713 * config/i386/t-i386 (i386.o): Update dependencies.
15714 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
15715 * config/ia64/ia64.c (ia64_option_optimization_table,
15716 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
15717 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15718 ia64_handle_option): Move to ia64-common.c.
15719 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
15720 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
15721 * config/lm32/lm32.c (lm32_option_optimization_table,
15722 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
15723 to lm32-common.c.
15724 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
15725 m32c-common.c.
15726 * config/m32r/m32r.c (m32r_option_optimization_table,
15727 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15728 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
15729 m32r_handle_option): Move to m32r-common.c.
15730 (m32r_memory_move_cost): Remove comment referring to
15731 TARGET_HANDLE_OPTION.
15732 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
15733 Move to m68k-common.c.
15734 * config/mcore/mcore.c (mcore_option_optimization_table,
15735 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15736 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
15737 * config/mep/mep.c (mep_option_optimization_table,
15738 mep_handle_option, TARGET_HANDLE_OPTION,
15739 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
15740 Move to mep-common.c.
15741 * config/microblaze/microblaze.c
15742 (microblaze_option_optimization_table,
15743 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15744 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
15745 * config/mips/mips.c (mips_handle_option,
15746 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
15747 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
15748 mips-common.c.
15749 * config/mmix/mmix.c (mmix_option_optimization_table,
15750 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
15751 Move to mmix-common.c.
15752 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
15753 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
15754 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15755 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
15756 * config/pa/pa.c: Include common/common-target.h.
15757 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
15758 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15759 pa_handle_option): Move to pa-common.c.
15760 (pa_option_override): Use targetm_common.except_unwind_info.
15761 (pa_asm_output_mi_thunk, pa_function_section): Use
15762 targetm_common.have_named_sections.
15763 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
15764 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15765 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
15766 pdp11_handle_option, pdp11_option_init_struct): Move to
15767 pdp11-common.c.
15768 * config/picochip/picochip.c (picochip_option_optimization_table,
15769 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
15770 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
15771 * config/rs6000/rs6000.c: Include common/common-target.h.
15772 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
15773 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
15774 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
15775 rs6000_handle_option): Move to rs6000-common.c.
15776 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15777 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
15778 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15779 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
15780 * config/s390/s390.c (processor_flags_table,
15781 s390_option_optimization_table, s390_option_init_struct,
15782 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
15783 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15784 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
15785 * config/s390/s390.h (processor_flags_table): Declare.
15786 * config/score/score.c (score_option_optimization_table,
15787 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15788 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
15789 score_handle_option): Move to score-common.c.
15790 * config/sh/sh.c (sh_option_optimization_table,
15791 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
15792 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15793 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
15794 * config/sparc/sparc.c: Include common/common-target.h.
15795 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
15796 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
15797 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
15798 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
15799 spu_option_init_struct): Move to spu-common.c.
15800 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
15801 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
15802 * config/v850/v850.c (small_memory_physical_max,
15803 v850_handle_memory_optionn v850_handle_option,
15804 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
15805 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
15806 v850-common.c.
15807 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
15808 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
15809 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
15810 Move to xtensa-common.c.
15811 * cfglayout.c: Include common/common-target.h.
15812 (fixup_reorder_chain): Use targetm_common.have_named_sections.
15813 * cfgrtl.c: Include common/common-target.h.
15814 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
15815 targetm_common.have_named_sections.
15816 * dbxout.c: Include common/common-target.h.
15817 (dbxout_function_end): Use targetm_common.have_named_sections.
15818 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
15819 targetm_common.except_unwind_info.
15820 * dwarf2out.c: Include common/common-target.h.
15821 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
15822 dwarf2out_begin_prologue, dwarf2out_frame_init,
15823 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
15824 targetm_common.except_unwind_info.
15825 * except.c: Include common/common-target.h.
15826 (init_eh, finish_eh_generation,
15827 output_one_function_exception_table): Use
15828 targetm_common.except_unwind_info.
15829 (switch_to_exception_section): Use targetm_common.have_named_sections.
15830 * explow.c: Include common/common-target.h.
15831 * expr.c: Include common/common-target.h.
15832 (build_personality_function): Use targetm_common.except_unwind_info.
15833 * function.c: Include common/common-target.h.
15834 (expand_function_end): Use targetm_common.except_unwind_info.
15835 * haifa-sched.c: Include common/common-target.h.
15836 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
15837 * lto-opts.c: Include common/common-target.h instead of target.h.
15838 (lto_reissue_options): Use targetm_common.handle_option.
15839 * opts.c: Include common/common-target.h.
15840 (target_handle_option): Use targetm_common.handle_option.
15841 (init_options_struct): Update comment referring to
15842 targetm.target_option.optimization. Use
15843 targetm_common.default_target_flags,
15844 targetm_common.unwind_tables_default and
15845 targetm_common.option_init_struct.
15846 (default_options_optimization): Use
15847 targetm_common.option_optimization_table.
15848 (finish_options): Use targetm_common.except_unwind_info,
15849 targetm_common.unwind_tables_default,
15850 targetm_common.have_named_sections and
15851 targetm_common.supports_split_stack.
15852 * toplev.c: Include common/common-target.h.
15853 (process_options): Use targetm_common.have_named_sections.
15854 * tree-tailcall.c: Include common/common-target.h.
15855 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
15856 * tree.c: Include common/common-target.h.
15857 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
15858 * varasm.c: Include common/common-target.h.
15859 (resolve_unique_section, hot_function_section,
15860 default_function_section): Use targetm_common.have_named_sections.
15861
15862 2011-06-14 Easwaran Raman <eraman@google.com>
15863
15864 PR rtl-optimization/44194
15865 * dse.c: Include tree-flow.h
15866 (insn_info): Add new field non_frame_wild_read.
15867 (group_info): Add new fields escaped_n and escaped_p.
15868 (kill_on_calls): New variable.
15869 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
15870 (dse_step0): Initialize kill_on_calls.
15871 (can_escape): New function.
15872 (set_usage_bits): Add additional parameter; record information
15873 about escaped locations.
15874 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
15875 (dse_step2_nospill): Set kill_on_calls based on
15876 group->escaped_n and group->escaped_n.
15877 (add_wild_read): Refactor into...
15878 (reset_active_stores): ... New function, and
15879 (free_read_records): ... New function.
15880 (add_non_frame_wild_read): New function.
15881 (scan_insn): Call add_non_frame_wild_read on non-const calls.
15882 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
15883 (dse_step5_nospill): Call scan_reads_nospill for instructions
15884 marked as non_frame_wild_read.
15885 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
15886
15887 2011-06-14 Joseph Myers <joseph@codesourcery.com>
15888
15889 * common/common-target-def.h, common/common-target.def,
15890 common/common-target.h, common/config/default-common.c,
15891 common/config/pa/pa-common.c: New files.
15892 * Makefile.in (common_out_file, common_out_object_file,
15893 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
15894 (OBJS-libcommon-target): Include $(common_out_object_file).
15895 (prefix.o): Update dependencies.
15896 ($(common_out_object_file), common/common-target-hooks-def.h,
15897 s-common-target-hooks-def-h): New.
15898 (s-tm-texi): Also check timestamp on common-target.def.
15899 (build/genhooks.o): Update dependencies.
15900 * config.gcc (common_out_file, target_has_targetm_common): Define.
15901 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
15902 TARGET_ALWAYS_STRIP_DOTDOT.
15903 * configure.ac (common_out_object_file): Define.
15904 (common_out_file, common_out_object_file): Substitute.
15905 (common): Create directory.
15906 * configure: Regenerate.
15907 * doc/tm.texi.in (targetm_common): Document.
15908 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
15909 * doc/tm.texi: Regenerate.
15910 * genhooks.c (hook_array): Also include common/common-target.def.
15911 * prefix.c (tm.h): Don't include.
15912 (common/common-target.h): Include.
15913 (ALWAYS_STRIP_DOTDOT): Don't define.
15914 (update_path): Use targetm_common.always_strip_dotdot instead of
15915 ALWAYS_STRIP_DOTDOT.
15916 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
15917
15918 2011-06-14 David Li <davidxl@google.com>
15919
15920 * passes.c (execute_function_todo): Remove TODO_dump_func.
15921 (execute_one_pass): Remove TODO_dump_func.
15922 (execute_function_dump): New function.
15923 * tree-vrp.c: Remove TODO_dump_func.
15924 * regrename.c: Remove TODO_dump_func.
15925 * fwprop.c: Remove TODO_dump_func.
15926 * tree-into-ssa.c: Remove TODO_dump_func.
15927 * tree-complex.c: Remove TODO_dump_func.
15928 * tracer.c: Remove TODO_dump_func.
15929 * tree-loop-distribution.c: Remove TODO_dump_func.
15930 * postreload-gcse.c: Remove TODO_dump_func.
15931 * postreload.c: Remove TODO_dump_func.
15932 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
15933 * tree-tailcall.c: Remove TODO_dump_func.
15934 * ipa-cp.c: Remove TODO_dump_func.
15935 * final.c: Remove TODO_dump_func.
15936 * tree-emutls.c: Remove TODO_dump_func.
15937 * omp-low.c: Remove TODO_dump_func.
15938 * tree-ssa-dse.c: Remove TODO_dump_func.
15939 * tree-ssa-uncprop.c: Remove TODO_dump_func.
15940 * auto-inc-dec.c: Remove TODO_dump_func.
15941 * reorg.c: Remove TODO_dump_func.
15942 * tree-ssa-copyrename.c: Remove TODO_dump_func.
15943 * tree-ssa-ccp.c: Remove TODO_dump_func.
15944 * compare-elim.c: Remove TODO_dump_func.
15945 * mode-switching.c: Remove TODO_dump_func.
15946 * modulo-sched.c: Remove TODO_dump_func.
15947 * tree-call-cdce.c: Remove TODO_dump_func.
15948 * cse.c: Remove TODO_dump_func.
15949 * web.c: Remove TODO_dump_func.
15950 * tree-stdarg.c: Remove TODO_dump_func.
15951 * lto-streamer-out.c: Remove TODO_dump_func.
15952 * tree-ssa-math-opts.c: Remove TODO_dump_func.
15953 * tree-ssa-dom.c: Remove TODO_dump_func.
15954 * tree-nrv.c: Remove TODO_dump_func.
15955 * loop-init.c: Remove TODO_dump_func.
15956 * gimple-low.c: Remove TODO_dump_func.
15957 * ipa-inline.c: Remove TODO_dump_func.
15958 * tree-ssa-sink.c: Remove TODO_dump_func.
15959 * jump.c: Remove TODO_dump_func.
15960 * ifcvt.c: Remove TODO_dump_func.
15961 * tree-ssa-loop.c: Remove TODO_dump_func.
15962 * recog.c: Remove TODO_dump_func.
15963 * dse.c: Remove TODO_dump_func.
15964 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
15965 * matrix-reorg.c: Remove TODO_dump_func.
15966 * tree-eh.c: Remove TODO_dump_func.
15967 * regmove.c: Remove TODO_dump_func.
15968 * function.c: Remove TODO_dump_func.
15969 * tree-vectorizer.c: Remove TODO_dump_func.
15970 * ipa-split.c: Remove TODO_dump_func.
15971 * gcse.c: Remove TODO_dump_func.
15972 * tree-if-conv.c: Remove TODO_dump_func.
15973 * init-regs.c: Remove TODO_dump_func.
15974 * tree-ssa-phiopt.c: Remove TODO_dump_func.
15975 * implicit-zee.c: Remove TODO_dump_func.
15976 * lower-subreg.c: Remove TODO_dump_func.
15977 * bt-load.c: Remove TODO_dump_func.
15978 * tree-dfa.c: Remove TODO_dump_func.
15979 * except.c: Remove TODO_dump_func.
15980 * emit-rtl.c: Remove TODO_dump_func.
15981 * store-motion.c: Remove TODO_dump_func.
15982 * cfgexpand.c: Remove TODO_dump_func.
15983 * tree-cfgcleanup.c: Remove TODO_dump_func.
15984 * cfgcleanup.c: Remove TODO_dump_func.
15985 * tree-ssa-pre.c: Remove TODO_dump_func.
15986 * tree-sra.c: Remove TODO_dump_func.
15987 * tree-mudflap.c: Remove TODO_dump_func.
15988 * tree-ssa-copy.c: Remove TODO_dump_func.
15989 * cfglayout.c: Remove TODO_dump_func.
15990 * tree-ssa-forwprop.c: Remove TODO_dump_func.
15991 * tree-ssa-dce.c: Remove TODO_dump_func.
15992 * ira.c: Remove TODO_dump_func.
15993 * tree-ssa.c: Remove TODO_dump_func.
15994 * integrate.c: Remove TODO_dump_func.
15995 * tree-optimize.c: Remove TODO_dump_func.
15996 * tree-ssa-phiprop.c: Remove TODO_dump_func.
15997 * tree-object-size.c: Remove TODO_dump_func.
15998 * combine.c: Remove TODO_dump_func.
15999 * bb-reorder.c: Remove TODO_dump_func.
16000 * cprop.c: Remove TODO_dump_func.
16001 * var-tracking.c: Remove TODO_dump_func.
16002 * tree-profile.c: Remove TODO_dump_func.
16003 * tree-vect-generic.c: Remove TODO_dump_func.
16004 * reg-stack.c: Remove TODO_dump_func.
16005 * sched-rgn.c: Remove TODO_dump_func.
16006 * tree-ssa-structalias.c: Remove TODO_dump_func.
16007 * tree-switch-conversion.c: Remove TODO_dump_func.
16008 * tree-cfg.c: Remove TODO_dump_func.
16009 * tree-ssa-reassoc.c: Remove TODO_dump_func.
16010 * combine-stack-adj.c: Remove TODO_dump_func.
16011 * dce.c: Remove TODO_dump_func.
16012 * tree-ssanames.c: Remove TODO_dump_func.
16013 * regcprop.c: Remove TODO_dump_func.
16014
16015 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
16016
16017 PR middle-end/47364
16018 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
16019 and properly handle result not in Pmode.
16020
16021 2011-06-14 Robert Millan <rmh@gnu.org>
16022
16023 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
16024 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
16025 `config/linux.h'.
16026
16027 * config/i386/kfreebsd-gnu64.h: New file.
16028 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
16029 with `i386/kfreebsd-gnu64.h'.
16030
16031 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
16032 (GNU_USER_LINK_EMULATION64): New macros.
16033 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
16034 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
16035 of hardcoding `elf_i386' and `elf_x86_64'.
16036
16037 2011-06-14 Nick Clifton <nickc@redhat.com>
16038
16039 PR target/49403
16040 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
16041
16042 PR target/49402
16043 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
16044
16045 2011-06-14 Jakub Jelinek <jakub@redhat.com>
16046
16047 PR fortran/49103
16048 * tree.h (DECL_NONSHAREABLE): Define.
16049 (struct tree_decl_common): Change decl_common_unused to
16050 decl_nonshareable_flag.
16051 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
16052 Ignore vars with DECL_NONSHAREABLE bit set.
16053 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
16054 on stores to automatic aggregate vars.
16055
16056 PR rtl-optimization/49390
16057 Revert:
16058 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
16059
16060 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
16061 MEM_ALIAS_SET.
16062
16063 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
16064 Tom de Vries <tom@codesourcery.com>
16065
16066 PR target/45098
16067 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
16068 Document changed semantics.
16069 (max_stmt_executions, max_stmt_executions_int): Declare.
16070 * tree-data-ref.c (estimated_loop_iterations)
16071 (estimated_loop_iterations_int): Move functions...
16072 * tree-ssa-loop-niter.c (estimated_loop_iterations)
16073 (estimated_loop_iterations_int): here.
16074 (record_estimate): Change nb_iterations_upper_bound and
16075 nb_iterations_estimate semantics.
16076 (max_stmt_executions, max_stmt_executions_int): New function.
16077 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
16078 (max_stmt_executions_tree): this.
16079 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
16080 estimated_loop_iterations_tree.
16081 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
16082 max_stmt_executions_int instead of estimated_loop_iterations_int.
16083 * predict.c (predict_loops): Idem.
16084 * tree-parloops.c (parallelize_loops): Idem.
16085 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
16086 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
16087 (init_omega_for_ddr_1): Idem.
16088 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
16089 (loop_prefetch_arrays): Idem
16090 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
16091 max_stmt_executions instead of estimated_loop_iterations.
16092 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
16093 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
16094 instead of nb_iterations_upper_bound.
16095
16096 2011-06-13 Jan Hubicka <jh@suse.cz>
16097
16098 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
16099
16100 2011-06-14 Richard Henderson <rth@redhat.com>
16101
16102 PR debug/48459
16103 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
16104 (based_loc_descr): Assert it's true.
16105 (compute_frame_pointer_to_fb_displacement): Set it, rather than
16106 aborting immediately.
16107
16108 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
16109 Mingfeng Wu <mingfeng@faraday-tech.com>
16110
16111 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
16112
16113 2011-06-13 Jan Hubicka <jh@suse.cz>
16114
16115 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
16116
16117 2011-06-13 Jan Hubicka <jh@suse.cz>
16118
16119 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
16120 similarly to DECL_COMDAT.
16121 * cgraphunit.c (cgraph_analyze_function): Likewise.
16122 * ipa.c (function_and_variable_visibility): Likewise.
16123
16124 2011-06-13 Jan Hubicka <jh@suse.cz>
16125
16126 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
16127 BINFO_VIRTUALS when streaming for ltrans unit.
16128
16129 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
16130
16131 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
16132 (movdi_internal64): Same.
16133
16134 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
16135
16136 PR target/44618
16137 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
16138 a set of similar patterns, where the MATCH_OPERAND for the function
16139 argument is replaced with individual references to hardware registers.
16140 (save_fpregs_<mode>): Ditto
16141 (restore_gpregs_<mode>): Ditto
16142 (return_and_restore_gpregs_<mode>): Ditto
16143 (return_and_restore_fpregs_<mode>): Ditto
16144 (return_and_restore_fpregs_aix_<mode>): Ditto
16145
16146 2011-06-13 Jan Hubicka <jh@suse.cz>
16147
16148 * ipa-utils.c (postorder_stack): New structure.
16149 (ipa_reverse_postorder): Handle aliases.
16150
16151 2011-06-13 Jan Hubicka <jh@suse.cz>
16152
16153 * ipa-inline.c (reset_edge_caches): Walk aliases.
16154 (update_caller_keys): Do not test inlinability of aliases.
16155 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
16156 (do_estimate_growth): Fix typo.
16157
16158 2011-06-13 Jan Hubicka <jh@suse.cz>
16159
16160 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
16161 (can_remove_node_now_p): ... here; handle same comdat groups.
16162 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
16163 (inline_call): Update use of can_remove_node_now_p.
16164
16165 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16166
16167 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
16168 condition to disallow non-identical memory locations.
16169 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
16170 preference to bit manipulation instructions.
16171
16172 2011-06-13 Jan Hubicka <jh@suse.cz>
16173
16174 * cgraph.c (cgraph_for_node_thunks_and_aliases,
16175 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
16176 (nonremovable_p): New function.
16177 (cgraph_can_remove_if_no_direct_calls_p): New function.
16178 (used_from_object_file_p): New functoin.
16179 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
16180 references from aliases.
16181 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
16182 * ipa-inline.c (check_caller_edge): New function.
16183 (want_inline_function_called_once_p): Use it; accept aliases called
16184 once, too.
16185 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
16186
16187 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16188
16189 PR target/48454
16190 * config/arm/neon.md (vec_pack_trunc): Set the lengths
16191 correctly for the case with Quad vectors.
16192
16193 2011-06-13 Jakub Jelinek <jakub@redhat.com>
16194 Ira Rosen <ira.rosen@linaro.org>
16195
16196 PR tree-optimization/49352
16197 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
16198 all, make sure loop_use_stmt after the loop is a def stmt of a used
16199 SSA_NAME that is the only one defined inside of the loop. Don't
16200 check for COND_EXPR and GIMPLE_BINARY_RHS.
16201 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
16202 check_reduction is true.
16203
16204 2011-06-11 Jan Hubicka <jh@suse.cz>
16205
16206 PR middle-end/49373
16207 * ipa.c (cgraph_externally_visible_p): Check resolution info.
16208
16209 2011-06-11 Jan Hubicka <jh@suse.cz>
16210
16211 PR middle-end/48836
16212 * ipa-inline-transform.c: Include tree-pass.h
16213 (inline_transform): Set TODO_update_ssa_only_virtuals.
16214 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
16215
16216 2011-06-11 Jan Hubicka <jh@suse.cz>
16217
16218 PR middle-end/49378
16219 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
16220 aliases and thunks.
16221
16222 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
16223
16224 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
16225 Take number of iterations to peel into account for equally frequent
16226 misalignment values.
16227
16228 2011-06-11 Jan Hubicka <jh@suse.cz>
16229
16230 * lto-streamer-out.c (produce_symtab): Stream out the newly
16231 represented aliases.
16232
16233 2011-06-11 Jan Hubicka <jh@suse.cz>
16234
16235 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
16236 varying args.
16237 (ipa_update_after_lto_read): Likewise.
16238 (ipa_write_node_info): Do not sream call_with_var_arguments.
16239 (ipa_read_node_info): Likewise.
16240
16241 2011-06-11 Jan Hubicka <jh@suse.cz>
16242
16243 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
16244
16245 2011-06-11 Jan Hubicka <jh@suse.cz>
16246
16247 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
16248 (lto_symtab_resolve_can_prevail_p): Likewise.
16249 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
16250 * cgraph.c (same_body_aliases_done): New global var.
16251 (cgraph_same_body_alias_1): Rename to ...
16252 (cgraph_create_function_alias): ... this one; reorg to new
16253 representation.
16254 (cgraph_same_body_alias): Use cgraph_create_function_alias;
16255 record references when asked to.
16256 (cgraph_add_thunk): Fix formating.
16257 (cgraph_get_node): Kill same body alias code.
16258 (cgraph_node_for_asm): Likewise.
16259 (cgraph_remove_same_body_alias): Remove.
16260 (cgraph_remove_node): Kill same body alias code.
16261 (cgraph_mark_address_taken_node): Mark also the aliased function
16262 as having address taken.
16263 (dump_cgraph_node): Dump same body aliases.
16264 (cgraph_for_node_thunks_and_aliases): Update for new alias
16265 representation.
16266 (cgraph_for_node_and_aliases): Likewise.
16267 * cgraph.h (same_body): Kll pointer.
16268 (same_body_alias): Update comment.
16269 (same_body_aliases_done): Declare.
16270 (cgraph_remove_same_body_alias): Remove declaration.
16271 (cgraph_create_function_alias): Declare.
16272 (cgraph_process_same_body_aliases): Declare.
16273 (cgraph_function_with_gimple_body_p): Check for alias.
16274 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
16275 (cgraph_alias_aliased_node): New function.
16276 (cgraph_function_node): Update for new aliases.
16277 (cgraph_function_or_thunk_node): Likewise.
16278 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
16279 (inline_call): Remove dead aliases.
16280 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
16281 name hack for same body aliases.
16282 (clone_of_p): Look through aliases.
16283 (verify_cgraph_node): Verify aliases.
16284 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
16285 (cgraph_process_same_body_aliases): New function.
16286 (process_function_and_variable_attributes): Disable weakref warning on
16287 alias.
16288 (cgraph_analyze_functions): Handle aliases.
16289 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
16290 (assemble_thunks): Rename to ...
16291 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
16292 (cgraph_expand_function): Remove alias output code.
16293 (cgraph_output_in_order): Skip aliases.
16294 (cgraph_preserve_function_body_p): Aliases don't need preserving.
16295 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
16296 (ipa_record_reference): Do not assert on alias references.
16297 (ipa_ref_has_aliases_p): New function.
16298 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
16299 (ipa_ref_has_aliases_p): Declare.
16300 * lto-cgraph.c (lto_output_node): Handle aliases.
16301 (input_node): Likewise.
16302 * lto-streamer-out.c (lto_output): Skip aliases.
16303 (produce_symtab): Kill same_body_alias code.
16304 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
16305 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
16306 * ipa-inline.c (update_caller_keys): Walk aliases.
16307 (inline_small_functions): Fix thinko in previous patch.
16308 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
16309 (function_and_variable_visibility): Do not walk same body aliases.
16310 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
16311 (ipa_pta_execute): Use it.
16312
16313 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16314
16315 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
16316 (*vec_dupv2df): Rename from vec_dupv2df.
16317 (vec_dupv2df): New expander.
16318
16319 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16320
16321 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
16322
16323 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16324
16325 * config/i386/i386.md: Use default value in "isa" attribute.
16326 * config/i386/sse.md: Ditto.
16327 * config/i386/mmx.md: Ditto.
16328
16329 2011-06-10 Wei Guozhi <carrot@google.com>
16330
16331 PR target/45335
16332 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
16333 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
16334 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
16335 related peephole2.
16336 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
16337 related peephole2.
16338 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
16339 (arm_legitimate_ldrd_p): New prototype.
16340 (arm_output_ldrd): New prototype.
16341 * config/arm/arm.c (arm_check_ldrd_operands): New function.
16342 (arm_legitimate_ldrd_p): New function.
16343 (arm_output_ldrd): New function.
16344
16345 2011-06-10 David Li <davidxl@google.com>
16346
16347 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
16348 * passes.c (passr_eq): New function.
16349 (create_pass_tab): New function.
16350 (pass_traverse): New function.
16351 (dump_one_pass): New function.
16352 (dump_pass_list): New function.
16353 (dump_passes): New function.
16354
16355 2011-06-10 Jan Hubicka <jh@suse.cz>
16356
16357 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
16358 setting the nothrow flag.
16359 * ipa-reference.c (propagate): Skip aliases.
16360 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
16361 (propagate_nothrow): Skip aliases; do not update cgraph.
16362 (local_pure_const): Do not update cgraph.
16363 * tree-profile.c (tree_profiling): Do fixup_cfg.
16364
16365 2011-06-10 Jan Hubicka <jh@suse.cz>
16366
16367 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
16368 (cgraph_local_node_p): ... here; handle aliases.
16369 (has_addr_references_p): Break out from ...;
16370 (cgraph_remove_unreachable_nodes) ... here.
16371
16372 2011-06-10 Jan Hubicka <jh@suse.cz>
16373
16374 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
16375 * common.opt (flag_inline_functions_called_once): Do not
16376 initialize to 1.
16377
16378 2011-06-10 Jan Hubicka <jh@suse.cz>
16379
16380 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
16381 (ipcp_initialize_node_lattices): Do not deal with aliases;
16382 Do not try to propagate through thunks.
16383 (ipcp_change_tops_to_bottom): Do not deal with aliases.
16384
16385 2011-06-10 Jan Hubicka <jh@suse.cz>
16386
16387 * ipa-prop.c (ipa_write_node_info): Stream jump functions
16388 for indirect calls.
16389 (ipa_read_node_info): Likewise.
16390
16391 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16392
16393 PR lto/49302
16394 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
16395 (build_and_insert_call): Likewise.
16396 (build_and_insert_ref): New.
16397 (gimple_expand_builtin_pow): Minor cleanup.
16398 (gimple_expand_builtin_cabs): New.
16399 (execute_cse_sincos): Add case for BUILT_IN_CABS.
16400
16401 2011-06-10 Jan Hubicka <jh@suse.cz>
16402
16403 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
16404 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
16405 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
16406 (ipcp_propagate_stage): Skip aliases when propagating.
16407 (ipcp_need_redirect_p): Skip aliases.
16408 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
16409 collect_callers_of_node.
16410 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
16411 for aliases.
16412 (ipa_compute_jump_functions): Look through aliases.
16413
16414 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16415
16416 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
16417
16418 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16419
16420 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
16421 Adjust comments.
16422 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
16423
16424 2011-06-10 Jan Hubicka <jh@suse.cz>
16425
16426 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
16427 Update call of gimple_get_virt_method_for_binfo.
16428 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
16429 refuse_thunks parameter.
16430 (gimple_fold_call): Update.
16431 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
16432
16433 2011-06-10 Jan Hubicka <jh@suse.cz>
16434
16435 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
16436 (not_all_callers_have_enough_arguments_p): ... this one; turn into
16437 worker for cgraph_for_node_and_aliases.
16438 (convert_callers_for_node): Break out from ...
16439 (convert_callers): ... here.
16440 (modify_function): Use collect_callers_of_node.
16441 (ipa_early_sra): Use cgraph_for_node_and_aliases.
16442
16443 2011-06-10 Richard Guenther <rguenther@suse.de>
16444
16445 PR tree-optimization/49361
16446 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
16447 when not already in gimple form.
16448
16449 2011-06-10 Richard Guenther <rguenther@suse.de>
16450
16451 PR bootstrap/49344
16452 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
16453 FOR_EACH_PHI_OR_STMT_USE.
16454
16455 2011-06-10 Jan Hubicka <jh@suse.cz>
16456
16457 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
16458 (clone_inlined_nodes): ... here.
16459 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
16460 to real destination prior inlining.
16461 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
16462 can_early_inline_edge_p, want_early_inline_function_p,
16463 want_early_inline_function_p, want_inline_small_function_p,
16464 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
16465 edge_badness, update_all_callee_keys, lookup_recursive_calls,
16466 add_new_edges_to_heap, inline_small_functions, flatten_function,
16467 inline_always_inline_functions, early_inline_small_functions): Use
16468 cgraph_function_or_thunk_node.
16469 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
16470 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
16471 (do_estimate_edge_growth_1): Break out from ...
16472 (do_estimate_growth) ... here; walk aliases.
16473 (inline_generate_summary): Skip aliases.
16474
16475 2011-06-10 Richard Guenther <rguenther@suse.de>
16476
16477 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
16478 forward when combining, visit inserted stmts when a stmt was changed.
16479
16480 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
16481
16482 * tree.h (error_operand_p): Add.
16483 * dbxout.c (dbxout_type_fields): Use the latter.
16484 * c-decl.c (add_stmt): Likewise.
16485 * gimplify.c (omp_add_variable, omp_notice_variable,
16486 gimplify_scan_omp_clauses): Likewise.
16487
16488 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
16489
16490 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
16491 when a value is actually passed in regs.
16492
16493 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
16494 Laurent Rougé <laurent.rouge@menta.fr>
16495
16496 * doc/invoke.texi (SPARC options): Add -mflat.
16497 * config/sparc/sparc.opt: Likewise.
16498 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
16499 (sparc_flat_expand_prologue): Declare.
16500 (sparc_flat_expand_epilogue): Likewise.
16501 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
16502 (CPP_ENDIAN_SPEC): Replace with...
16503 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
16504 (CPP_SPEC): Adjust to above change.
16505 (EXTRA_SPECS): Likewise.
16506 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
16507 (INCOMING_REGNO): Likewise.
16508 (OUTGOING_REGNO): Likewise.
16509 (LOCAL_REGNO): Likewise.
16510 (SETUP_FRAME_ADDRESSES): Likewise.
16511 (FIXED_REGISTERS): Set 0 for %fp.
16512 (CALL_USED_REGISTERS): Likewise.
16513 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
16514 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
16515 (RETURN_ADDR_REGNUM): Define.
16516 (RETURN_ADDR_RTX): Use it.
16517 (INCOMING_RETURN_ADDR_REGNUM): Define.
16518 (INCOMING_RETURN_ADDR_RTX): Use it.
16519 (DWARF_FRAME_RETURN_COLUMN): Likewise.
16520 (EH_RETURN_REGNUM): Define.
16521 (EH_RETURN_STACKADJ_RTX): Use it.
16522 (EH_RETURN_HANDLER_RTX): Delete.
16523 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
16524 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
16525 Delete.
16526 (struct machine_function): Add frame_size, apparent_frame_size,
16527 frame_base_reg, frame_base_offset, n_global_fp_regs and
16528 save_local_in_regs_p fields.
16529 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
16530 sparc_frame_base_offset, sparc_n_global_fp_regs,
16531 sparc_save_local_in_regs_p): New macros.
16532 (sparc_option_override): Error out if -fcall-saved-REG is specified
16533 for Out registers.
16534 (eligible_for_restore_insn): Fix formatting.
16535 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
16536 (eligible_for_sibcall_delay): Likewise.
16537 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
16538 (sparc_legitimate_address_p): Adjust to above change.
16539 (save_global_or_fp_reg_p): New predicate.
16540 (return_addr_reg_needed_p): Likewise.
16541 (save_local_or_in_reg_p): Likewise.
16542 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
16543 (SORR_SAVE, SORR_RESTORE): Delete.
16544 (sorr_pred_t): New typedef.
16545 (sorr_act_t): New enum.
16546 (save_or_restore_regs): Rename to...
16547 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
16548 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
16549 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
16550 mechanism. Add CFI information for double-word saves in 32-bit mode.
16551 (emit_adjust_base_to_offset): New function extracted from...
16552 (emit_save_or_restore_regs): ...this. Rename the rest to...
16553 (emit_save_or_restore_regs_global_fp_regs): ...this.
16554 (emit_save_or_restore_regs_local_in_regs): New function.
16555 (gen_create_flat_frame_[123]): New functions.
16556 (sparc_expand_prologue): Use SIZE local variable. Adjust.
16557 (sparc_flat_expand_prologue): New function.
16558 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
16559 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
16560 (sparc_flat_expand_epilogue): New function.
16561 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
16562 (output_return): Likewise.
16563 (output_sibcall): Likewise.
16564 (sparc_output_mi_thunk): Likewise.
16565 (sparc_frame_pointer_required): Likewise.
16566 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
16567 function optimization.
16568 * config/sparc/sparc.md (flat): New attribute.
16569 (prologue): Add TARGET_FLAT handling.
16570 (save_register_window): Disable if TARGET_FLAT.
16571 (create_flat_frame_[123]): New patterns.
16572 (epilogue): Add TARGET_FLAT handling.
16573 (sibcall_epilogue): Likewise.
16574 (eh_return): New expander.
16575 (eh_return_internal): New insn and splitter.
16576 (return_internal): Add TARGET_FLAT handling.
16577 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
16578 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
16579 (nonlocal_goto): Add TARGET_FLAT handling.
16580 * config/sparc/t-elf: Add -mflat multilib.
16581 * config/sparc/t-leon: Likewise.
16582
16583 2011-06-10 Jan Hubicka <jh@suse.cz>
16584
16585 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
16586 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
16587 (self_recursive_p): Use cgraph_function_node.
16588 (propagate_pure_const): Likewise.
16589 (propagate_nothrow): Likewise.
16590 * ipa-reference.c (ipa_reference_get_not_read_global): Use
16591 cgraph_function_node.
16592 (propagate_bits): Likewise.
16593 (propagate): Likewise.
16594
16595 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16596 Richard Earnshaw <rearnsha@arm.com>
16597
16598 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
16599 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
16600 (*thumb2_movdi_vfp): Delete.
16601 (*arm_movdi_vfp_cortexa8): Delete.
16602 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
16603 (*movdi_vfp_cortexa8): Likewise.
16604
16605 2011-06-10 Richard Guenther <rguenther@suse.de>
16606
16607 * stor-layout.c (initialize_sizetypes): Give names to all
16608 sizetype kinds.
16609
16610 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
16611
16612 PR tree-optimization/49318
16613 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
16614 irrelevant pattern statements.
16615
16616 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16617
16618 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
16619
16620 PR bootstrap/49354
16621 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
16622 to last assignment.
16623
16624 2011-06-09 Jan Hubicka <jh@suse.cz>
16625
16626 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
16627 do not recompute reachable flag.
16628 (cgraph_finalize_function, cgraph_analyze_functions): Set
16629 redefined_extern_inline here.
16630
16631 2011-06-09 Jan Hubicka <jh@suse.cz>
16632
16633 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
16634 (cgraph_only_called_directly_p): ... this one; bring offline.
16635 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
16636 varpool_used_from_object_file_p): Drop names from the declaratoin.
16637 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
16638 collect_callers_of_node): New.
16639 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
16640 (cgraph_edge_recursive_p): Use cgraph_function_node.
16641 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
16642 (cgraph_node_cannot_be_local_p_1): Break out from ...
16643 (cgraph_node_can_be_local_p): ... here; walk aliases.
16644 (cgraph_for_node_thunks_and_aliases): New function.
16645 (cgraph_for_node_and_aliases): New function.
16646 (cgraph_make_node_local_1): Break out from ...
16647 (cgraph_make_node_local) ... here; use
16648 cgraph_for_node_thunks_and_aliases.
16649 (cgraph_set_nothrow_flag_1): Break out from ...
16650 (cgraph_set_nothrow_flag) ... here;
16651 use cgraph_for_node_thunks_and_aliases.
16652 (cgraph_set_const_flag_1): Break out from ...
16653 (cgraph_set_const_flag) ... here;
16654 use cgraph_for_node_thunks_and_aliases.
16655 (cgraph_set_pure_flag_1): Break out from ...
16656 (cgraph_set_pure_flag) ... here;
16657 use cgraph_for_node_thunks_and_aliases.
16658 (cgraph_propagate_frequency_1): Break out from ...
16659 (cgraph_propagate_frequency) ... here; use
16660 cgraph_for_node_thunks_and_aliases.
16661 (cgraph_used_from_object_file_p): Do not care about aliases.
16662 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
16663 New functions.
16664 (collect_callers_of_node_1, collect_callers_of_node): New functions.
16665
16666 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16667
16668 PR rtl-optimization/49154
16669 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
16670 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
16671 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
16672 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
16673 * config/cris/cris.h (cris_register_move_cost): Remove
16674 !TARGET_V32 code. Tweak comments.
16675
16676 2011-06-09 Jan Hubicka <jh@suse.cz>
16677
16678 * cgraphbuild.c (record_eh_tables): Mark personality function as having
16679 address taken.
16680
16681 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16682
16683 PR rtl-optimization/49154
16684 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
16685 is a matching slot in the hashtable, assign it to classes_ptr.
16686
16687 PR rtl-optimization/49154
16688 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
16689 register classes.
16690 * doc/tm.texi: Regenerate.
16691
16692 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
16693
16694 PR target/49307
16695 * config/sh/sh.md (UNSPEC_CHKADD): New.
16696 (chk_guard_add): New define_insn_and_split.
16697 (symGOT_load): Use chk_guard_add instead of blockage.
16698
16699 2011-06-09 Kai Tietz <ktietz@redhat.com>
16700
16701 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
16702
16703 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
16704
16705 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
16706
16707 2011-06-09 Wei Guozhi <carrot@google.com>
16708
16709 PR target/46975
16710 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
16711 (peephole2 for conditional move): Generate 16 bit instructions.
16712
16713 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
16714
16715 * config/i386/i386.md (*movdi_internal_rex64): Merge
16716 alternatives 6 and 8.
16717
16718 2011-06-09 David Li <davidxl@google.com>
16719
16720 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
16721 * passes.c (passr_eq): New function.
16722 (create_pass_tab): New function.
16723 (pass_traverse): New function.
16724 (dump_one_pass): New function.
16725 (dump_pass_list): New function.
16726 (dump_passes): New function.
16727
16728 2011-06-09 David Li <davidxl@google.com>
16729
16730 * tree-complex.c (tree_lower_complex): Gate cleanup.
16731 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
16732 (execute_optimize_stdarg): Ditto.
16733 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
16734 (execute_cleanup_eh_1): Ditto.
16735 (execute_cleanup_eh): Ditto.
16736 * gcse.c (gate_rtl_pre): Ditto.
16737 (execute_rtl_pre): Ditto.
16738 * except.c (finish_eh_generation): Ditto.
16739 (convert_to_eh_region_ranges): Ditto.
16740 * cprop.c (one_cprop_pass): Ditto.
16741
16742 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
16743
16744 PR target/48673
16745 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
16746 in all basic blocks.
16747
16748 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16749
16750 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
16751 (HAVE_ENABLE_EXECUTE_STACK): Define.
16752 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
16753 (HAVE_ENABLE_EXECUTE_STACK): Define.
16754 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
16755 (HAVE_ENABLE_EXECUTE_STACK): Define.
16756 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
16757 (ENABLE_EXECUTE_STACK): Remove.
16758 (HAVE_ENABLE_EXECUTE_STACK): Define.
16759 [IN_LIBGCC2]: Don't include <windows.h>.
16760 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
16761 (HAVE_ENABLE_EXECUTE_STACK): Define.
16762 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
16763 (HAVE_ENABLE_EXECUTE_STACK): Define.
16764 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
16765 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
16766 (HAVE_ENABLE_EXECUTE_STACK): Define.
16767 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
16768 (HAVE_ENABLE_EXECUTE_STACK): Define.
16769 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
16770 (HAVE_ENABLE_EXECUTE_STACK): Define.
16771 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
16772 (HAVE_ENABLE_EXECUTE_STACK): Define.
16773 * config/alpha/alpha.c (alpha_trampoline_init): Test
16774 HAVE_ENABLE_EXECUTE_STACK.
16775 * config/i386/i386.c (ix86_trampoline_init): Likewise.
16776 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16777 (sparc64_initialize_trampoline): Likewise.
16778 * libgcc2.c [L_enable_execute_stack]: Remove.
16779 * system.h (ENABLE_EXECUTE_STACK): Poison.
16780 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
16781 * doc/tm.texi: Regenerate.
16782 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
16783
16784 2011-06-09 Jakub Jelinek <jakub@redhat.com>
16785
16786 PR middle-end/49308
16787 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
16788 variable. After resetting and rescanning insn continue with previous
16789 statement.
16790
16791 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16792
16793 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
16794 (gcc_cv_ld_hidden): Likewise.
16795 * configure: Regenerate.
16796 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
16797 (ix86_stack_protect_fail): Mark unused.
16798 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
16799 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
16800 [TARGET_MACHO]: Don't define.
16801 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
16802 (TARGET_STACK_PROTECT_FAIL): Likewise.
16803 (rs6000_stack_protect_fail): Mark unused.
16804 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
16805 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
16806
16807 2011-06-08 Andi Kleen <ak@linux.intel.com>
16808
16809 * varasm.c (get_section): Print location of other conflict
16810 for section conflicts.
16811
16812 2011-06-08 Andi Kleen <ak@linux.intel.com>
16813
16814 * config/i386/driver-i386.c (host_detect_local_cpu):
16815 Add model 0x2d Intel CPU.
16816
16817 2011-06-08 Andi Kleen <ak@linux.intel.com>
16818
16819 * reginfo.c (global_regs_decl): Add.
16820 (globalize_reg): Add decl parameter. Compute location. Pass location
16821 to warnings and add inform. Store decl in global_regs_decl.
16822 * rtl.h (globalize_reg): Update prototype.
16823 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
16824
16825 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
16826
16827 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
16828
16829 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16830
16831 PR target/49305
16832 * config/sh/predicates.md (general_movsrc_operand): Check
16833 mode for memory with indexed address for QI and HImode.
16834 (general_movdst_operand): Likewise.
16835
16836 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
16837
16838 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
16839
16840 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
16841
16842 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
16843 (num_ssa_operands): Likewise.
16844 (op_iter_init_phiuse): Forward-declare.
16845 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
16846
16847 2011-06-08 Nick Clifton <nickc@redhat.com>
16848
16849 * doc/invoke.texi (ARM Options): Update description of
16850 -mthumb-interwork.
16851
16852 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
16853
16854 * config/i386/driver-i386.c (host_detect_local_cpu): Support
16855 unknown Intel family 0x6 CPUs.
16856
16857 2011-06-08 Martin Jambor <mjambor@suse.cz>
16858
16859 * tree-sra.c (mark_rw_status): Removed.
16860 (analyze_access_subtree): New parameter parent instead of
16861 mark_read and mark_write, propagate from that.
16862
16863 2011-06-08 Julian Brown <julian@codesourcery.com>
16864
16865 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
16866 for double-precision helper functions in hard-float mode if only
16867 single-precision arithmetic is supported in hardware.
16868
16869 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
16870
16871 PR rtl-optimization/49303
16872 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
16873 code_motion_path_driver returned 0 or 1.
16874 (sel_region_finish): Clear h_d_i_d.
16875
16876 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16877
16878 * config/sh/sh.c (prepare_move_operands): Set pic register
16879 appropriately for global and local dynamic tls models even
16880 if flag_pic is unset.
16881
16882 2011-06-07 Jason Merrill <jason@redhat.com>
16883
16884 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
16885
16886 2011-06-07 Xinliang David Li <davidxl@google.com>
16887 * passes.c (enable_disable_pass): Handle assembler name.
16888 (is_pass_explicitly_enabled_or_disabled): Ditto.
16889
16890 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16891
16892 PR tree-optimization/48497
16893 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
16894
16895 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16896
16897 PR tree-optimization/46728
16898 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
16899 to use gimple_val_nonnegative_real_p.
16900 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
16901 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
16902
16903 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
16904
16905 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
16906
16907 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
16908
16909 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
16910 constant vectors.
16911
16912 2011-06-07 Richard Guenther <rguenther@suse.de>
16913
16914 * stor-layout.c (initialize_sizetypes): Initialize all
16915 sizetypes based on target definitions.
16916 (set_sizetype): Remove.
16917 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
16918 * tree.h (set_sizetype): Remove.
16919
16920 2011-06-07 Nick Clifton <nickc@redhat.com>
16921
16922 * config.gcc: Unify V850 architecture options and add support for
16923 newer V850 architectures.
16924 * config/v850/t-v850e: Delete.
16925
16926 2011-06-07 Richard Guenther <rguenther@suse.de>
16927
16928 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
16929 Call set_sizetype from here.
16930
16931 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
16932
16933 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
16934 (*maddhisi4tb, *maddhisi4tt): New define_insns.
16935
16936 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
16937 Andrew Stubbs <ams@codesourcery.com>
16938
16939 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
16940 multiplies.
16941 * doc/md.texi (Canonicalization of Instructions): Document widening
16942 multiply canonicalization.
16943
16944 2011-06-07 Jakub Jelinek <jakub@redhat.com>
16945
16946 PR gcov-profile/49299
16947 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
16948
16949 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
16950
16951 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
16952 a pointer.
16953 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
16954 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
16955 vect_recog_pow_pattern): Likewise.
16956 (vect_pattern_recog_1): Remove declaration.
16957 (widened_name_p): Remove declaration. Add new argument to specify
16958 whether to check that both types are either signed or unsigned.
16959 (vect_recog_widen_mult_pattern): Update documentation. Handle
16960 unsigned patterns and multiplication by constants.
16961 (vect_pattern_recog_1): Update vect_recog_func references. Use
16962 statement information from the statement returned from pattern
16963 detection functions.
16964 (vect_pattern_recog): Update vect_recog_func reference.
16965 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
16966 multiplication by a constant use the type of the other operand.
16967
16968 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16969
16970 PR rtl-optimization/49145
16971 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
16972
16973 2011-06-06 Jakub Jelinek <jakub@redhat.com>
16974
16975 PR debug/49262
16976 * dwarf2out.c (native_encode_initializer): Decrement count in each
16977 iteration.
16978
16979 PR debug/49294
16980 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
16981 non-MODE_INT modes.
16982
16983 PR c++/49264
16984 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
16985 if stmt folded into nothing.
16986 * tree-inline.c (fold_marked_statements): If a builtin at the end of
16987 a bb folded into nothing, just update cgraph edges and move to next bb.
16988 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
16989 to be NULL. Don't compute count and frequency if new_call is NULL.
16990
16991 2011-06-04 Diego Novillo <dnovillo@google.com>
16992
16993 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
16994 (cgraph.o): Likewise.
16995 (cgraphunit.o): Likewise.
16996 * cgraphunit.c: Include lto-streamer.h
16997 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
16998 if LTO is enabled.
16999 * lto-streamer-in.c (unpack_value_fields): Call
17000 streamer_hooks.unpack_value_fields if set.
17001 (lto_materialize_tree): For unhandled nodes, first try to
17002 call lto_streamer_hooks.alloc_tree, if it exists.
17003 (lto_input_ts_decl_common_tree_pointers): Move reading of
17004 DECL_INITIAL to lto_streamer_read_tree.
17005 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
17006 (lto_streamer_read_tree): New.
17007 (lto_reader_init): Rename from lto_init_reader.
17008 Move initialization code to lto/lto.c.
17009 * lto-streamer-out.c (pack_value_fields): Call
17010 streamer_hooks.pack_value_fields if set.
17011 (lto_output_tree_ref): For tree nodes that are not normally indexable,
17012 call streamer_hooks.indexable_with_decls_p before giving up.
17013 (lto_output_ts_decl_common_tree_pointers): Move handling
17014 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
17015 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
17016 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
17017 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
17018 (lto_streamer_write_tree): New.
17019 (lto_output): Call lto_streamer_init directly.
17020 (lto_writer_init): Remove.
17021 * lto-streamer.c (streamer_hooks): New.
17022 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
17023 instead of lto_preload_common_nodes.
17024 (lto_is_streamable): Move from lto-streamer.h
17025 (lto_streamer_hooks_init): New.
17026 (streamer_hooks): New.
17027 (streamer_hooks_init): New.
17028 * lto-streamer.h (struct output_block): Forward declare.
17029 (struct lto_input_block): Likewise.
17030 (struct data_in): Likewise.
17031 (struct bitpack_d): Likewise.
17032 (struct streamer_hooks): Declare.
17033 (streamer_hooks): Declare.
17034 (lto_streamer_hooks_init): Declare.
17035 (lto_streamer_write_tree): Declare.
17036 (lto_streamer_read_tree): Declare.
17037 (streamer_hooks_init): Declare.
17038 (lto_is_streamable): Move to lto-streamer.c
17039
17040 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17041
17042 * longlong.h (smul_ppmm): The resulting register pair contains the
17043 higher order word first.
17044
17045 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17046
17047 PR tree-optimization/46728
17048 * builtins.c (powi_table): Remove.
17049 (powi_lookup_cost): Remove.
17050 (powi_cost): Remove.
17051 (expand_powi_1): Remove.
17052 (expand_powi): Remove.
17053 (expand_builtin_pow_root): Remove.
17054 (expand_builtin_pow): Remove.
17055 (expand_builtin_powi): Eliminate handling of constant exponent.
17056 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
17057
17058 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17059
17060 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
17061
17062 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17063
17064 * dce.c (reset_unmarked_insns_debug_uses): New.
17065 (delete_unmarked_insns): Skip debug insns.
17066 (prescan_insns_for_dce): Likewise.
17067 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
17068 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
17069 active reg can be found.
17070 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
17071 (convert_regs_1): Use it.
17072
17073 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17074
17075 * tree-pretty-print.c (dump_function_header): Add flags.
17076 Don't dump decl_uid with nouid.
17077 * tree-pretty-print.h (dump_function_header): Adjust.
17078 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
17079 * passes.c (pass_init_dump_file): Pass dump_flags on.
17080 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
17081
17082 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17083
17084 PR bootstrap/49270
17085 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
17086
17087 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
17088
17089 PR tree-optimization/49243
17090 * calls.c (setjmp_call_p): Also check if fndecl has the
17091 returns_twice attribute.
17092
17093 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17094
17095 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
17096 -ffast-math etc.
17097
17098 2011-06-06 Richard Henderson <rth@redhat.com>
17099 Georg-Johann Lay <avr@gjlay.de>
17100
17101 PR target/42210
17102 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
17103 New predicates.
17104 * config/avr/avr.md ("insv"): New insn expander.
17105 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
17106 "*insv.not.io", "*insv.reg"): New insns.
17107
17108 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
17109
17110 PR target/49285
17111 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
17112 to nonimmediate_operand from memory_operand for the operand that is to
17113 be forced to memory by the expander. Lose the constraints.
17114
17115 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
17116
17117 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
17118 EH return when delayed branches are disabled.
17119
17120 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
17121
17122 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
17123 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
17124 calculation.
17125 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
17126 Simplify MODE_V1DF and MODE_V2SF handling.
17127 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
17128 Simplify MODE_SF handling.
17129
17130 2011-06-04 Jan Hubicka <jh@suse.cz>
17131
17132 PR tree-optimization/48893
17133 PR tree-optimization/49091
17134 PR tree-optimization/49179
17135 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
17136 Bounds check.
17137
17138 2011-06-04 Jan Hubicka <jh@suse.cz>
17139
17140 PR lto/48954
17141 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
17142 bitmaps.
17143
17144 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
17145
17146 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
17147
17148 2011-06-04 Jakub Jelinek <jakub@redhat.com>
17149
17150 PR target/49281
17151 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
17152 to be strictly smaller than 1 << shiftcount.
17153
17154 2011-06-04 Jan Hubicka <jh@suse.cz>
17155
17156 PR tree-optimize/48929
17157 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
17158 of empty predicate.
17159
17160 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
17161
17162 PR debug/48333
17163 * calls.c (emit_call_1): Prefer the __builtin declaration of
17164 builtin functions.
17165
17166 2011-06-03 Diego Novillo <dnovillo@google.com>
17167
17168 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
17169 (lto_input_tree_pointers): Likewise.
17170 * lto-streamer-out.c (pack_value_fields): Likewise.
17171 (lto_output_tree_pointers): Likewise.
17172 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
17173 and OPTIMIZATION_NODE.
17174
17175 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17176
17177 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
17178 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
17179 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
17180 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
17181 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
17182 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
17183 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
17184 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
17185 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
17186 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
17187 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
17188 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
17189 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
17190 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
17191 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
17192 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
17193 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
17194 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
17195 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
17196 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
17197 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
17198 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
17199 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
17200 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
17201 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
17202 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
17203 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
17204 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
17205 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
17206 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
17207 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
17208 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
17209 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
17210 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
17211 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
17212 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
17213 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
17214 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
17215 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
17216 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
17217 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
17218 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
17219 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
17220 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
17221 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
17222 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
17223 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
17224 * system.h (MD_UNWIND_SUPPORT): Poison.
17225 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
17226 * doc/tm.texi: Regenerate.
17227 * unwind-dw2.c: Include md-unwind-support.h instead of
17228 MD_UNWIND_SUPPORT.
17229 * config/ia64/unwind-ia64.c: Likewise.
17230 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
17231
17232 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
17233
17234 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
17235
17236 2011-06-03 Richard Henderson <rth@redhat.com>
17237 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17238
17239 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
17240 (sigill_hdlr): Correct insn, insn size.
17241 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
17242
17243 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17244
17245 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
17246 t-slibgcc-dummy.
17247 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
17248 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
17249 * config/mips/t-iris: Remove.
17250 * config/mips/t-irix6: New file.
17251 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
17252
17253 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17254
17255 * Makefile.in (LIB2ADDEHDEP): Remove.
17256 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
17257 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
17258 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
17259 * config/t-darwin (LIB2ADDEHDEP): Remove.
17260 * config/t-freebsd (LIB2ADDEHDEP): Remove.
17261 * config/t-linux (LIB2ADDEHDEP): Remove.
17262
17263 2011-06-03 Diego Novillo <dnovillo@google.com>
17264
17265 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
17266 (lto_register_var_decl_in_symtab): Likewise.
17267 (lto_register_function_decl_in_symtab): Likewise.
17268 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
17269 logic to uniquify_nodes.
17270
17271 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17272
17273 * config/alpha/t-osf5: Remove.
17274 * config/alpha/t-osf-pthread: Remove.
17275 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
17276 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
17277
17278 2011-06-03 Julian Brown <julian@codesourcery.com>
17279
17280 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
17281 (strongarm1110): Use strongarm tuning.
17282 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
17283 * config/arm/arm.c (arm_strongarm_tune): New.
17284 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
17285 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
17286 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
17287 setting, using previous defaults or 1 for Cortex-A5.
17288 (arm_option_override): Set max_insns_skipped from current tuning.
17289
17290 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
17291
17292 * doc/install.texi (Options specification): Document --with-specs.
17293
17294 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17295
17296 * config/arm/neon.md (orndi3_neon): Actually split it.
17297
17298 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
17299
17300 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
17301 * var-tracking.c (reverse_op): Limite recurse depth to 5.
17302
17303 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
17304
17305 PR debug/47590
17306 * target.def (delay_sched2, delay_vartrack): New.
17307 * doc/tm.texi.in: Update.
17308 * doc/tm.texi: Rebuild.
17309 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
17310 * var-tracking.c (gate_handle_var_tracking): Likewise.
17311 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
17312 (bfin_flag_var_tracking): Drop.
17313 (output_file_start): Don't save and override flag_var_tracking.
17314 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
17315 (bfin_reorg): Test original variables.
17316 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17317 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
17318 (ia64_flag_var_tracking): Drop.
17319 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17320 (ia64_file_start): Don't save and override flag_var_tracking.
17321 (ia64_override_options_after_change): Ditto
17322 flag_schedule_insns_after_reload.
17323 (ia64_reorg): Test original variables.
17324 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
17325 (picochip_flag_var_tracking): Drop.
17326 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17327 (picochip_option_override): Don't save and override
17328 flag_schedule_insns_after_reload.
17329 (picochip_asm_file_start): Ditto flag_var_tracking.
17330 (picochip_reorg): Test original variables.
17331 * config/spu/spu.c (spu_flag_var_tracking): Drop.
17332 (TARGET_DELAY_VARTRACK): Define.
17333 (spu_var_tracking): New.
17334 (spu_machine_dependent_reorg): Call it.
17335 (asm_file_start): Don't save and override flag_var_tracking.
17336
17337 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
17338
17339 PR target/49163
17340 * config/sh/predicates.md (general_movsrc_operand): Return 0
17341 for memory and memory subreg of which address is an invalid
17342 indexed address for QI and HImode.
17343 (general_movdst_operand): Likewise.
17344
17345 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
17346
17347 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
17348 edges only, when there is a non-local label in the function.
17349 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
17350
17351 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
17352
17353 * config/i386/constraints.md (Y3): New register constraint.
17354 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
17355 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
17356 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
17357 *sse2_interleave_lowv2df.
17358
17359 2011-06-02 Julian Brown <julian@codesourcery.com>
17360
17361 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
17362 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
17363 (arm_cortex_a5_tune): New.
17364
17365 2011-06-02 Julian Brown <julian@codesourcery.com>
17366
17367 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
17368 * config/arm/arm.c (arm_default_branch_cost): New.
17369 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
17370 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
17371 (arm_fa726_tune): Set branch_cost field using
17372 arm_default_branch_cost.
17373 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
17374 current_tune structure.
17375 * dojump.c (tm_p.h): Include file.
17376
17377 2011-06-02 Julian Brown <julian@codesourcery.com>
17378
17379 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
17380 tuning.
17381 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
17382 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
17383 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
17384 field.
17385 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
17386 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
17387 (arm_fa726te_tune): Add prefer_constant_pool setting.
17388 (arm_v6t2_tune, arm_cortex_tune): New.
17389 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
17390 prefer_constant_pool setting.
17391
17392 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
17393
17394 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
17395 switch statement.
17396 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
17397 (*movdf_internal) <case 6,7,8>: Ditto.
17398
17399 * config/i386/constraints.md (Y4): New register constraint.
17400 * config/i386/sse.md (vec_set<mode>_0): Merge with
17401 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
17402 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
17403 *vec_extractv2di_1_sse.
17404 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
17405 and *vec_concatv2di_rex64_sse.
17406
17407 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
17408
17409 PR target/48807
17410 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
17411 of cgraph_local_info for null before attempting to use it.
17412
17413 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
17414
17415 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
17416 (current_function_dynamic_alloc_count): Delete.
17417 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
17418 (expand_builtin_nonlocal_goto): Remove obsolete comment.
17419 (expand_builtin_update_setjmp_buf): Remove dead code.
17420 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
17421 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
17422 support.
17423 * function.c (instantiate_virtual_regs): Likewise.
17424 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
17425 for a block with a single abnormal incoming edge.
17426 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
17427 (SETJMP_VIA_SAVE_AREA): Delete.
17428 * config/sparc/sparc-protos.h (load_got_register): Declare.
17429 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
17430 (load_got_register): Make global.
17431 (sparc_frame_pointer_required): Add 'static'.
17432 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
17433 (sparc_builtin_setjmp_frame_value): New function.
17434 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
17435 (save_stack_nonlocal): New expander.
17436 (restore_stack_nonlocal): Likewise.
17437 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
17438 (nonlocal_goto_internal): New insn.
17439 (goto_handler_and_restore): Delete.
17440 (builtin_setjmp_setup): Likewise.
17441 (do_builtin_setjmp_setup): Likewise.
17442 (setjmp): Likewise.
17443 (builtin_setjmp_receiver): New expander.
17444
17445 2011-06-01 David Li <davidxl@google.com>
17446
17447 PR middle-end/49261
17448 * tree-pretty-print.c (dump_function_header): Format cleanup.
17449
17450 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
17451
17452 PR target/49238
17453 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
17454 needed when original operands are used for msw_skip comparison.
17455
17456 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17457
17458 PR debug/49250
17459 * var-tracking.c (add_uses, add_stores): Don't call
17460 cselib_subst_to_values on ENTRY_VALUE.
17461
17462 2011-06-01 Diego Novillo <dnovillo@google.com>
17463
17464 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
17465 output_record_start with LTO_null instead of output_zero.
17466 (lto_output_ts_binfo_tree_pointers): Likewise.
17467 (lto_output_tree): Likewise.
17468 (output_eh_try_list): Likewise.
17469 (output_eh_region): Likewise.
17470 (output_eh_lp): Likewise.
17471 (output_eh_regions): Likewise.
17472 (output_bb): Likewise.
17473 (output_function): Likewise.
17474 (output_unreferenced_globals): Likewise.
17475 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
17476 instead of NUM_TREE_CODES.
17477 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
17478 (lto_output_int_in_range): Change << to >> when shifting VAL.
17479
17480 2011-06-01 Diego Novillo <dnovillo@google.com>
17481
17482 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
17483 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
17484
17485 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
17486
17487 PR target/45074
17488 * optabs.h (valid_multiword_target_p): Declare.
17489 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
17490 doing multi-word operations.
17491 * optabs.c (expand_binop): Likewise.
17492 (expand_doubleword_bswap): Likewise.
17493 (expand_absneg_bit): Likewise.
17494 (expand_unop): Likewise.
17495 (expand_copysign_bit): Likewise.
17496 (multiword_target_p): New function.
17497
17498 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
17499
17500 PR rtl-optimization/48830
17501 PR rtl-optimization/48808
17502 PR rtl-optimization/48792
17503 * reload.c (push_reload): Check contains_reg_of_mode.
17504 * reload1.c (strip_paradoxical_subreg): New function.
17505 (gen_reload_chain_without_interm_reg_p): Use it to handle
17506 paradoxical subregs.
17507 (emit_output_reload_insns, gen_reload): Likewise.
17508
17509 2011-06-01 David Li <davidxl@google.com>
17510
17511 * predict.c : Change pass name
17512 * ipa.c: Ditto.
17513 * dce.c: Ditto.
17514 * tree-profile.c: Ditto.
17515 * except.c: Ditto.
17516
17517 2011-06-01 David Li <davidxl@google.com>
17518
17519 * tree-pretty-print.c (dump_function_header): New function.
17520 * final.c (rest_of_clean_state): Use header dumper.
17521 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
17522 * passes.c (pass_init_dump_file): Use header dumper.
17523
17524 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17525
17526 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
17527 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
17528 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
17529 New functions.
17530 (mem_loc_descriptor): Use them.
17531
17532 * var-tracking.c (create_entry_value): New function.
17533 (vt_add_function_parameter): Use it.
17534
17535 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17536
17537 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
17538 Include <signal.h>, <ucontext.h>.
17539 (sigill_caught): Define.
17540 (sigill_hdlr): New function.
17541 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
17542 insns can be executed.
17543 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
17544 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
17545
17546 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17547
17548 * config/t-slibgcc-darwin: Move to ...
17549 * config/t-slibgcc-dummy: ... this. Clarify comments.
17550 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
17551 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
17552 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
17553 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
17554 Remove i386/t-crtstuff from tmake_file.
17555 (i[34567]86-*-solaris2*): Remove t-svr4,
17556 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
17557 t-slibgcc-dummy.
17558 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
17559 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
17560 sparc/t-crtfm from tmake_file.
17561 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
17562 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
17563 Remove extra_parts.
17564 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
17565 * config/i386/t-nwld (SHLIB_LINK): Remove.
17566 * config/i386/t-rtems-i386: Rename to ...
17567 * config/i386/t-rtems: ... this.
17568 ($(T)crti.o, $(T)crtn.o): Remove.
17569 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
17570 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
17571 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
17572 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
17573 EXTRA_MULTILIB_PARTS): Remove.
17574 * config/sparc/t-sol2-64: Likewise.
17575 * config/sparc/t-sol2: Remove.
17576 * config/sparc/t-crtin: Remove.
17577 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
17578 * config/i386/gmon-sol2.c: Remove.
17579 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
17580 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
17581 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
17582 * config/i386/sol2-gc1.asm: Remove.
17583 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
17584 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
17585 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
17586 * config/t-slibgcc-sld: Remove.
17587
17588 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17589
17590 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
17591 base_type_for_mode with op_mode instead of mode.
17592
17593 2011-06-01 Paul Brook <paul@cpodesourcery.com>
17594
17595 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
17596 Cortex-A15.
17597 * config/arm/arm-tune.md: Regenerate.
17598 * config/arm/arm-tables.opt: Regenerate.
17599 * config/arm/arm.c (FL_DIV): Rename...
17600 (FL_THUMB_DIV): ... to this.
17601 (FL_ARM_DIV): Define.
17602 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
17603 (arm_arch_hwdiv): Remove.
17604 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
17605 (arm_issue_rate): Add cortexr5.
17606 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
17607 __ARM_ARCH_EXT_IDIV__.
17608 (TARGET_IDIV): Define.
17609 (arm_arch_hwdiv): Remove.
17610 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
17611 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
17612 (divsi3, udivsi3): New patterns.
17613 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
17614 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
17615
17616 2011-06-01 Martin Jambor <mjambor@suse.cz>
17617
17618 * ipa-utils.c (ipa_dfs_info): New field scc_no.
17619 * ipa-utils.c (searchc): Set scc_no.
17620
17621 2011-06-01 Martin Jambor <mjambor@suse.cz>
17622
17623 * ipa-utils.c (searchc_env): New field allow_overwritable.
17624 (searchc): do not ignore edges to overwritable nodes if indicated
17625 by env->allow_overwritable.
17626 (ipa_reduced_postorder): Set env.allow_overwritable.
17627
17628 2011-06-01 Richard Guenther <rguenther@suse.de>
17629
17630 * tree.c (free_lang_data): Do not reset boolean_type_node nor
17631 char_type_node.
17632 * lto-streamer.c (lto_record_common_node): Take node pointer,
17633 do not register types.
17634 (lto_preload_common_nodes): Explicitly skip preloading nodes
17635 that differ between frontends.
17636
17637 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
17638
17639 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
17640 NON_FLOAT_REGS.
17641
17642 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
17643
17644 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
17645 parameter value for dump. Dump cost on outermost call only.
17646 (rs6000_memory_move_cost): Dump cost on outermost call only.
17647
17648 2011-05-31 Jakub Jelinek <jakub@redhat.com>
17649
17650 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
17651 DW_OP_GNU_convert ops.
17652
17653 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
17654 cselib_preserve_constants.
17655 (cselib_lookup_1): If cselib_preserve_constants,
17656 a new VALUE is being created for REG and there is a VALUE for the
17657 same register in wider mode, add another loc with lowpart SUBREG of
17658 the wider VALUE.
17659 (cselib_subst_to_values): Handle ENTRY_VALUE.
17660 * var-tracking.c (replace_expr_with_values): Return NULL for
17661 ENTRY_VALUE too.
17662 * dwarf2out.c (convert_descriptor_to_signed): New function.
17663 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
17664 instead of two shifts.
17665 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
17666 the right mode if needed.
17667 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
17668 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
17669 convert_descriptor_to_signed.
17670 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
17671 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
17672
17673 PR target/48688
17674 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
17675
17676 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17677
17678 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
17679 of X87MODEI12 and SWI48x instead of SSEMODEI24.
17680 (SWI248x): New mode iterator, rename from X87MODEI.
17681 (X87MODEI): Remove mode iterator.
17682 (X87MODEI12): Ditto.
17683 (SSEMODEI24): Ditto.
17684
17685 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17686
17687 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
17688 * doc/invoke.texi: Document max-vartrack-expr-depth.
17689 * var-tracking.c (EXPR_DEPTH): New.
17690 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
17691
17692 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17693
17694 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
17695 * config/i386/sse.md: Add n to negated FMA pattern names.
17696
17697 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17698
17699 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
17700
17701 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17702
17703 * gengtype-state.c (read_state_params_structs): Initialize previous.
17704
17705 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17706
17707 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
17708 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
17709
17710 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17711
17712 * config/i386/i386.md (*movtf_internal): Avoid allocating general
17713 registers. Penalize F*r->o alternative to prevent partial memory
17714 stalls. Slightly penalize *roF->*r alternative. Generate SSE
17715 CONST_DOUBLE immediates when optimizing function for size. Do not move
17716 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
17717 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
17718 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
17719 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
17720 alternatives.
17721 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
17722
17723 (fp_register_operand splitters): Use fp_register_operand
17724 constraint. Do not use FP_REG_P in insn condition.
17725 (any_fp_register_operand splitters): Use any_fp_register_operand
17726 constraint. Do not use ANY_FP_REG_P in insn condition.
17727
17728 2011-05-31 Jan Hubicka <jh@suse.cz>
17729
17730 * cgraph.h (cgraph_inline_failed_t): Give enum a name
17731 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
17732 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
17733 (lto_output_edge): Use output_enum and var_len_unsigned.
17734 (lto_output_varpool_node): Likewise.
17735 (input_overwrite_node): Do not take resolution parameter;
17736 extract it from a bitpack.
17737 (input_node): Do not read resolution; use input_enum and
17738 var_len_unsigned.
17739 (input_varpool_node): Likewise.
17740 (input_edge): Likewise.
17741 (input_cgraph_1): Likewise.
17742
17743 2011-05-31 Richard Guenther <rguenther@suse.de>
17744
17745 * gimple.c (gimple_register_canonical_type): Do not register
17746 any types via gimple_register_type.
17747
17748 2011-05-31 Jan Hubicka <jh@suse.cz>
17749
17750 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
17751 of thunks.
17752
17753 2011-05-31 Jakub Jelinek <jakub@redhat.com>
17754
17755 PR rtl-optimization/49235
17756 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
17757 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
17758
17759 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
17760
17761 PR tree-optimization/49093
17762 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
17763 data references.
17764
17765 2011-05-31 Dodji Seketeli <dodji@redhat.com>
17766
17767 PR debug/49047
17768 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
17769 for concrete functions containing the code of cloned functions.
17770
17771 2011-05-31 Richard Guenther <rguenther@suse.de>
17772
17773 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
17774 to ...
17775 (forward_propagate_into_comparison_1): ... this.
17776 (forward_propagate_comparison): Rename to ...
17777 (forward_propagate_into_comparison): ... this. Split out
17778 real forward propagation code to ...
17779 (forward_propagate_comparison): ... this.
17780 (forward_propagate_into_gimple_cond): Remove looping.
17781 (forward_propagate_into_cond): Likewise.
17782 (simplify_not_neg_expr): Return whether we have done something.
17783 (simplify_gimple_switch): Likewise.
17784 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
17785 (ssa_forward_propagate_and_combine): ... this. Re-structure
17786 to do a forward forward-propagation walk on BBs and a backward
17787 stmt combining walk on BBs. Consistently re-scan changed statements.
17788 (pass_forwprop): Adjust.
17789
17790 2011-05-30 Ian Lance Taylor <iant@google.com>
17791
17792 * godump.c (go_format_type): Correct length of name added to
17793 obstack for anonymous field.
17794
17795 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
17796
17797 PR target/49186
17798 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
17799 part of the second operand is 0.
17800
17801 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
17802
17803 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
17804 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
17805 to memory for !TARGET_MEMORY_MISMATCH_STALL.
17806 (*movdf_internal_rex64): Do not penalize F->r alternative.
17807 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
17808 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
17809 when optimizing function for size. Do not move CONST_DOUBLEs
17810 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
17811 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
17812 SUBREGs. Do not check for MEM_P operands in the insn condition,
17813 check for ANY_FP_REGNO_P instead.
17814 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
17815 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
17816 function for speed.
17817 * config/i386/i386.c (ix86_option_override_internal): Do not
17818 set TARGET_INTEGER_DFMODE_MOVES here.
17819
17820 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
17821
17822 PR target/49168
17823 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
17824
17825 2011-05-30 Jakub Jelinek <jakub@redhat.com>
17826
17827 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
17828 DW_TAG_rvalue_reference_type even for
17829 -gdwarf-4 -fno-debug-types-section.
17830
17831 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17832
17833 PR tree-optimization/46728
17834 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
17835 (build_and_insert_binop): New.
17836 (gimple_expand_builtin_pow): Reorder args for
17837 build_and_insert_call; use build_and_insert_binop; add more
17838 optimizations for fractional exponents.
17839
17840 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
17841
17842 PR bootstrap/49190
17843
17844 Revert:
17845 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
17846
17847 * tree.h (struct tree_identifier): Inherit from tree_typed, not
17848 tree_common.
17849 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
17850 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
17851 TS_BASE instead of TS_COMMON.
17852 * varasm.c (assemble_name): Remove assert.
17853
17854 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17855
17856 * config.gcc: Keep obselete list sorted.
17857
17858 2011-05-30 Jakub Jelinek <jakub@redhat.com>
17859 Eric Botcazou <ebotcazou@adacore.com>
17860
17861 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
17862 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
17863 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
17864 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
17865 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
17866
17867 2011-05-30 Richard Guenther <rguenther@suse.de>
17868
17869 * gimple.c (gimple_types_compatible_p_1): Compare record
17870 and union type members properly.
17871
17872 2011-05-30 Richard Guenther <rguenther@suse.de>
17873
17874 PR tree-optimization/49210
17875 * ipa-split.c (split_function): Care for the case where the call
17876 result is not trivially convertible to the result holding variable.
17877
17878 2011-05-30 Richard Guenther <rguenther@suse.de>
17879
17880 PR tree-optimization/49218
17881 * tree-vrp.c (adjust_range_with_scev): Properly check whether
17882 overflow occured.
17883
17884 2011-05-30 Richard Guenther <rguenther@suse.de>
17885
17886 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
17887 New function split out from ...
17888 (forward_propagate_into_gimple_cond): ... here. Adjust.
17889 (forward_propagate_into_cond): Likewise.
17890 (forward_propagate_comparison): Also propagate into
17891 comparisons on assignment RHS. Change return value to
17892 behave similar to forward_propagate_into_cond.
17893 (tree_ssa_forward_propagate_single_use_vars): Handle
17894 strict-overflow warnings properly for forward_propagate_comparison.
17895
17896 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17897
17898 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
17899 from plugin linker.
17900 * configure: Regenerate.
17901
17902 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
17903
17904 PR tree-optimization/49199
17905 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
17906 non-reduction operands are either defined in the loop or by induction.
17907
17908 2011-05-29 Xinliang David Li <davidxl@google.com>
17909
17910 * opts-global.c (handle_common_deferred_options): Handle new options.
17911 * passes.c (register_one_dump_file): Call register_pass_name.
17912 (execute_one_pass): Check explicit enable/disable flag.
17913 (passr_hash): New function.
17914 (passr_eq): Ditto.
17915 (register_pass_name): Ditto.
17916 (get_pass_by_name): Ditto.
17917 (pass_hash): Ditto.
17918 (pass_eq): Ditto.
17919 (enable_pass): Ditto.
17920 (disable_pass): Ditto.
17921 (is_pass_explicitly_enabled_or_disabled): Ditto.
17922
17923 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
17924
17925 * config/i386/i386.md (*movoi_internal_avx): Use
17926 standard_sse_constant_opcode for alternative 0.
17927 (*movti_internal_sse): Ditto.
17928 (*movti_internal_rex64): Use standard_sse_constant_opcode for
17929 alternative 2.
17930 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
17931 sselog1 type moves.
17932 (*movsi_internal): Ditto.
17933 (*movdi_internal): Ditto. Add ssecvt type moves.
17934
17935 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
17936
17937 PR target/48830
17938 * rtlanal.c (simplify_subreg_regno): Adjust comment.
17939
17940 2011-05-29 Jakub Jelinek <jakub@redhat.com>
17941
17942 PR rtl-optimization/49095
17943 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
17944 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
17945
17946 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17947
17948 PR target/43995
17949 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
17950 recurse_p argument. Only follow register copies if it is set,
17951 and prevent mips_find_pic_call_symbol from recursing.
17952 (mips_find_pic_call_symbol): Add a recurse_p argument.
17953 Pass it to mips_pic_call_symbol_from_set.
17954 (mips_annotate_pic_calls): Update accordingly.
17955
17956 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17957
17958 * emit-rtl.c (try_split): Use a loop to search for
17959 NOTE_INSN_CALL_ARG_LOCATIONs.
17960
17961 2011-05-29 Richard Guenther <rguenther@suse.de>
17962
17963 PR tree-optimization/49217
17964 * ipa-pure-const.c (propagate_pure_const): Fix typos.
17965
17966 2011-05-28 Jan Hubicka <jh@suse.cz>
17967
17968 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
17969 length.
17970 (string_slot_free): Remove
17971 (create_output_block): Initialize obstack.
17972 (destroy_output_block): Free obstack.
17973 (lto_string_index): Add PERSISTENT parameter; do not duplicate
17974 the string unless it needs to be added into the hash.
17975 (lto_output_string_with_length): Add persistent attribute;
17976 handle NULL strings.
17977 (lto_output_string): Add PERSISTENT parameter.
17978 (output_string_cst, output_identifier): Simplify.
17979 (lto_output_location_bitpack): Update.
17980 (lto_output_builtin_tree): Update.
17981 * lto-streamer.h (struct output_block): Add obstack.
17982 (lto_output_string, lto_output_string_with_length): Remove
17983 declarations; functions are static now.
17984
17985 2011-05-28 Jan Hubicka <jh@suse.cz>
17986
17987 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
17988 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
17989 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
17990 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
17991 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
17992 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
17993 unpack_ts_decl_with_vis_value_fields,
17994 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
17995 lto_get_builtin_tree): Use enum and variable length i/o.
17996 * basic-block.h (profile_status_d): Add PROFILE_LAST.
17997 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
17998 New functions.
17999 (bp_pack_enum, bp_unpack_enum): New macros.
18000
18001 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18002
18003 * genrecog.c: Remove redundant forward declarations.
18004
18005 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18006
18007 * config.gcc: Deprecate mips*-*-openbsd*.
18008
18009 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18010
18011 PR bootstrap/49195
18012 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
18013 for match_op_dup.
18014
18015 2011-05-27 Andrew Pinski <pinskia@gmail.com>
18016
18017 PR middle-end/48981
18018 * gengtype.c (vec_prefix_type): New function.
18019 (note_def_vec): Use vec_prefix_type and change the length
18020 attribute to be based on the prefix.
18021 * vec.c: Include coretypes.h before vec.h.
18022 (struct vec_prefix): Remove.
18023 (vec_gc_p_reserve): Change the offsetof to sizeof.
18024 (vec_gc_p_reserve_exact): Likewise.
18025 (vec_heap_p_reserve): Likewise.
18026 (vec_heap_p_reserve_exact): Likewise.
18027 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
18028 (vec_stack_p_reserve): Change the offsetof to sizeof.
18029 (vec_stack_p_reserve_exact): Likewise.
18030 * vec.h (struct vec_prefix): New struct definition.
18031 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
18032 (VEC_T_GTY(T,B)): Likewise.
18033 (DEF_VEC_FUNC_P(T)): Use prefix field.
18034 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
18035 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
18036
18037 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18038
18039 PR tree-optimization/46728
18040 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
18041 (powi_as_mults): Add gimple_set_location.
18042 (build_and_insert_call): New.
18043 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
18044 0.5, 0.25, 0.75, 1./3., or 1./6.
18045
18046 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
18047
18048 * doc/contrib.texi: Update copyright years.
18049 (Contributors): Add Zdenek Sojka.
18050
18051 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
18052
18053 * c-decl.c (c_push_function_context): Copy the current statement
18054 list stack.
18055 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
18056 (finish_struct): Call building_stmt_list_p instead of checking
18057 cur_stmt_list.
18058 * c-parser.c (c_parser_postfix_expression): Likewise.
18059 * c-typeck.c (c_end_compound_stmt): Likewise.
18060 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
18061 * tree-iterator.c (stmt_list_cache): Change to a VEC.
18062 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
18063 (free_stmt_list): Likewise.
18064 * tree.h (struct tree_statement_list): Include typed_tree instead
18065 of tree_common.
18066 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
18067 as TS_TYPED instead of TS_COMMON.
18068
18069 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18070 Uros Bizjak <ubizjak@gmail.com>
18071
18072 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
18073 (HAVE_AS_IX86_TLSGDPTL): Define.
18074 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
18075 (HAVE_AS_IX86_TLSLDMPLT): Define.
18076 * configure: Regenerate.
18077 * config.in: Regenerate.
18078 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
18079 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
18080 TARGET_SUN_TLS, use @tlsgdplt or @plt.
18081 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
18082 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
18083 @tlsldmplt or @plt.
18084 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
18085
18086 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
18087
18088 * sched-int.h (struct _haifa_deps_insn_data): New members cond
18089 and reverse_cond.
18090 (INSN_COND, INSN_REVERSE_COND): New macros.
18091 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
18092 once.
18093 (sched_get_condition_with_rev): Cache the results, and look them up
18094 if possible.
18095 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
18096 are clobbered by the current insn.
18097 * target.def (exposed_pipline): New sched data hook.
18098 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
18099 * doc/tm.texi: Regenerate.
18100
18101 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18102
18103 PR tree-optimization/49170
18104 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
18105 sincos or cexp.
18106
18107 2011-05-27 Richard Guenther <rguenther@suse.de>
18108
18109 PR middle-end/49189
18110 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
18111 of comparisons.
18112
18113 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
18114
18115 * haifa-sched.c (sched_scan_info): Remove.
18116 (schedule_block): Call sched_extend_luids rather than sched_init_luids
18117 with NULL args.
18118 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
18119 Remove functions.
18120 (sched_scan): Remove.
18121 (sched_extend_luids): Renamed from luids_extend_insn and no longer
18122 static. All callers changed.
18123 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
18124 static. All callers changed.
18125 (sched_init_luids): Remove all arguments except the first. All
18126 callers changed. Don't use sched_scan.
18127 (haifa_init_h_i_d): Likewise.
18128 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
18129 manually rather than using sched_init_luids. Likewise with
18130 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
18131 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
18132 rather than sched_init_luids with NULL args.
18133 * sel-sched-ir.c (new_insns): Remove variable.
18134 (sched_scan): New static function, previously in haifa-sched.c. Remove
18135 all arguments but the first two; all callers changed.
18136 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
18137 rather than sched_init_luids.
18138 (sel_init_bbs): Remove second argument. All callers changed.
18139 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
18140 with NULL arguments.
18141 (create_insn_rtx_from_pattern): Likewise.
18142 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
18143 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
18144 (sched_init_insn_luid, sched_extend_luids): Declare.
18145 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
18146 declarations.
18147
18148 2011-05-27 Richard Guenther <rguenther@suse.de>
18149
18150 PR middle-end/49177
18151 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
18152 A CMP B ? (T) true : (T) false for non-integral types T again.
18153
18154 2011-05-27 Jan Hubicka <jh@suse.cz>
18155
18156 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
18157 so 0 means NULL string.
18158 (lto_output_string_with_length): ... here.
18159 (lto_output_string, output_string_cst, output_identifier): Update
18160 handling of NULL strings.
18161 (lto_output_location_bitpack): New function.
18162 (lto_output_location): Use it.
18163 (lto_output_tree_ref): Use output_record_start.
18164 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
18165 len values.
18166 * lto-streamer-in.c (string_for_index): Break out from ...; offset
18167 values by 1.
18168 (input_string_internal): ... here;
18169 (input_string_cst, input_identifier, lto_input_string): Update handling
18170 of NULL strings.
18171 (lto_input_location_bitpack): New function
18172 (lto_input_location): Use it.
18173 (unpack_ts_type_common_value_fields): Pack align & alias in var len
18174 values.
18175 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
18176 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
18177 (bp_pack_value): Sanity check the value range.
18178 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
18179 New functions.
18180 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
18181 New functions.
18182
18183 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
18184
18185 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
18186 call_arg_location instructions down the floor.
18187
18188 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
18189
18190 PR rtl-optimization/49154
18191 * ira.c (setup_pressure_classes): Process class without sublcasses
18192 as a candidate for pressure classes.
18193
18194 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
18195
18196 PR rtl-optimization/48575
18197 * genrecog.c (position_type): New enum.
18198 (position): New structure.
18199 (decision): Use position structure instead of a string.
18200 (root_pos, peep2_insn_pos_list): New variables.
18201 (next_position, compare_positions): New functions.
18202 (new_decision): Use position structures instead of strings.
18203 (maybe_both_true): Likewise.
18204 (change_state): Likewise.
18205 (write_tree): Likewise.
18206 (make_insn_sequence): Likewise.
18207
18208 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
18209
18210 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
18211 TS_BASE instead of TS_COMMON.
18212 (find_decls_types_r): Check for TS_TYPED structure before looking at
18213 TREE_TYPE.
18214 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
18215 Add chain field.
18216 (BLOCK_CHAIN): Use new chain field.
18217
18218 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
18219
18220 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
18221 moves expensive on Power7 also.
18222
18223 2011-05-26 Richard Guenther <rguenther@suse.de>
18224
18225 * fold-const.c (fold_unary_loc): Remove bogus code.
18226
18227 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
18228
18229 * tree.h (struct tree_identifier): Inherit from tree_typed, not
18230 tree_common.
18231 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
18232 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
18233 TS_BASE instead of TS_COMMON.
18234 * varasm.c (assemble_name): Remove assert.
18235
18236 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
18237
18238 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
18239 substituted first.
18240 * libgcc-std.ver: Delete file.
18241
18242 2011-05-26 Richard Guenther <rguenther@suse.de>
18243
18244 PR tree-optimization/48702
18245 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
18246 only when we know the base address is within bounds.
18247 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
18248 assume the base address of TARGET_MEM_REFs is in bounds.
18249
18250 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18251
18252 PR target/49099
18253 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
18254 declaration in TARGET_SOLARIS.
18255
18256 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
18257
18258 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
18259 The instruction is then expanded explicitly.
18260 (supported_compare): Callable instruction.
18261 (compare): Likewise.
18262
18263 2011-05-26 Jakub Jelinek <jakub@redhat.com>
18264
18265 PR c++/49165
18266 * gimplify.c (shortcut_cond_r): Don't special case
18267 COND_EXPRs if they have void type on one of their arms.
18268
18269 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
18270
18271 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
18272 to reduce duplication, and to achieve a slightly more logical order
18273 of operations.
18274
18275 2011-05-26 Jakub Jelinek <jakub@redhat.com>
18276
18277 PR tree-optimization/49161
18278 * tree-vrp.c (struct case_info): New type.
18279 (compare_case_labels): Sort case_info structs instead of
18280 trees, and not primarily by CASE_LABEL uids but by
18281 label_for_block indexes.
18282 (find_switch_asserts): Put case labels into struct case_info
18283 array instead of TREE_VEC, adjust sorting, compare label_for_block
18284 values instead of CASE_LABELs.
18285
18286 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18287
18288 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
18289 ("orndi3_neon"): Likewise.
18290 ("bic<mode>3_neon"): Likewise.
18291
18292 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
18293
18294 PR tree-optimization/49038
18295 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
18296 Ensure at least one epilogue iteration if required by data
18297 accesses with gaps.
18298 * tree-vectorizer.h (struct _loop_vec_info): Add new field
18299 to mark loops that require peeling for gaps.
18300 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
18301 (vect_get_known_peeling_cost): Take peeling for gaps into
18302 account.
18303 (vect_transform_loop): Generate epilogue if required by data
18304 access with gaps.
18305 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
18306 loop as requiring an epilogue if there are gaps in the end of
18307 the strided group.
18308
18309 2011-05-25 Ian Lance Taylor <iant@google.com>
18310
18311 * godump.c (go_format_type): Output the first field with a usable
18312 Go type, if any.
18313
18314 2011-05-25 Ian Lance Taylor <iant@google.com>
18315
18316 * godump.c (go_format_type): Check for invalid type names, pointer
18317 target types, and struct field types.
18318
18319 2011-05-25 Jason Merrill <jason@redhat.com>
18320
18321 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
18322
18323 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
18324
18325 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
18326
18327 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18328
18329 * config/i386/i386.md (*movqi_extv_1)): Put back
18330 "register_operand" check in "type" calculation.
18331 (*movqi_extzv_2): Likewise.
18332
18333 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18334
18335 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
18336
18337 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
18338
18339 PR bootstrap/49160
18340 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
18341 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
18342 __divxc3, __divtc3): Wrap definitions in #ifndef.
18343
18344 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18345
18346 PR target/49142
18347 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
18348 "register_operand" check and replace q_regs_operand with
18349 QIreg_operand in "type" calculation.
18350 (*movqi_extv_1): Likewise.
18351 (*movqi_extzv_2_rex64): Likewise.
18352 (*movqi_extzv_2): Likewise.
18353
18354 * config/i386/predicates.md (QIreg_operand): New.
18355
18356 2011-05-25 Richard Guenther <rguenther@suse.de>
18357
18358 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
18359 type-based offset disambiguation, streamline MEM_REF and
18360 TARGET_MEM_REF handling.
18361
18362 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18363
18364 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
18365 (bdesc_special_args): Add pause intrinsic.
18366
18367 * config/i386/i386.md (UNSPEC_PAUSE): New.
18368 (pause): Likewise.
18369 (*pause): Likewise.
18370 * config/i386/ia32intrin.h (__pause): Likewise.
18371
18372 * doc/extend.texi (X86 Built-in Functions): Add documentation for
18373 pause intrinsic.
18374
18375 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18376
18377 PR tree-optimization/46728
18378 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
18379 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
18380
18381 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
18382
18383 * tree.h (struct tree_exp): Inherit from struct tree_typed.
18384 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
18385 instead of TS_COMMON.
18386
18387 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
18388
18389 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
18390 LIBGCC2_GNU_PREFIX is defined.
18391 (__N): New macro.
18392 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
18393 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
18394 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
18395 __clz_tab): Define using __N.
18396 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
18397 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
18398 * target.def (libfunc_gnu_prefix): New hook.
18399 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
18400 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
18401 * doc/tm.texi: Regenerate.
18402 * system.h (LIBGCC2_GNU_PREFIX): Poison.
18403 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
18404 account.
18405 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
18406 (init_optabs): Likewise for the bswap libfuncs.
18407 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
18408 and divide.
18409 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
18410 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
18411 * libgcc-std.ver: Remove.
18412 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
18413 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
18414 libgcc-std.ver.
18415 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18416 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
18417 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
18418 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
18419 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
18420 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18421 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18422 * config/fixed-bit.h (FIXED_OP): Define differently depending on
18423 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
18424 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
18425
18426 2011-05-25 Jan Hubicka <jh@suse.cz>
18427
18428 * lto-streamer-out.c (output_record_start): Use lto_output_enum
18429 (lto_output_tree): Use output_record_start.
18430 * lto-streamer-in.c (input_record_start): Use lto_input_enum
18431 (lto_get_pickled_tree): Use input_record_start.
18432 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
18433 (lto_value_range_error): New function.
18434 * lto-streamer.h (lto_value_range_error): Declare.
18435 (lto_output_int_in_range, lto_input_int_in_range): New functions.
18436 (lto_output_enum, lto_input_enum): New macros.
18437
18438 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
18439
18440 * common.opt (flag_stack_usage_info): New variable.
18441 (-Wstack-usage): New option.
18442 * doc/invoke.texi (Warning options): Document -Wstack-usage.
18443 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
18444 <OPT_fstack_usage>: Likewise.
18445 * toplev.c (output_stack_usage): Handle -Wstack-usage.
18446 * calls.c (expand_call): Test flag_stack_usage_info variable instead
18447 of flag_stack_usage.
18448 (emit_library_call_value_1): Likewise.
18449 * explow.c (allocate_dynamic_stack_space): Likewise.
18450 * function.c (instantiate_virtual_regs ): Likewise.
18451 (prepare_function_start): Likewise.
18452 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
18453 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
18454 * config/arm/arm.c (arm_expand_prologue): Likewise.
18455 (thumb1_expand_prologue): Likewise.
18456 * config/avr/avr.c (expand_prologue): Likewise.
18457 * config/i386/i386.c (ix86_expand_prologue): Likewise.
18458 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
18459 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
18460 * config/mips/mips.c (mips_expand_prologue): Likewise.
18461 * config/pa/pa.c (hppa_expand_prologue): Likewise.
18462 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
18463 * config/s390/s390.c (s390_emit_prologue): Likewise.
18464 * config/sh/sh.c (sh_expand_prologue): Likewise.
18465 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
18466 * config/spu/spu.c (spu_expand_prologue): Likewise.
18467
18468 2011-05-25 Richard Guenther <rguenther@suse.de>
18469
18470 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
18471 (gimple_canonical_types_compatible_p): Likewise.
18472
18473 2011-05-25 Jan Hubicka <jh@suse.cz>
18474
18475 PR middle-end/49062
18476 * ipa.c (function_and_variable_visibility): Only add to same
18477 comdat group list if DECL_ONE_ONLY.
18478
18479 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
18480
18481 PR rtl-optimization/49014
18482 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
18483
18484 2011-05-25 Jakub Jelinek <jakub@redhat.com>
18485
18486 PR target/49128
18487 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
18488
18489 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18490
18491 PR rtl-optimization/48757
18492 * ira-build.c (loop_with_eh_edge_p): Rename to
18493 loop_with_complex_edge_p, check edges on complexity, make function
18494 conditional.
18495 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
18496 conditional.
18497
18498 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18499
18500 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
18501 force flag_ira_share_save_slots to 0.
18502
18503 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18504
18505 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
18506 (vt_initialize): Set PROLOGUE_BB unconditionally.
18507 Add block comment about CFA_BASE_RTX machinery.
18508 Reset FP_CFA_OFFSET to -1 on all invalid paths.
18509 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
18510
18511 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
18512
18513 PR objc/48187
18514 * c-parser.c (c_parser_objc_class_instance_variables): More robust
18515 parsing of syntax error in ObjC instance variable lists. In
18516 particular, avoid an infinite loop if there is a stray ']'.
18517 Updated error message.
18518
18519 2011-05-24 Ian Lance Taylor <iant@google.com>
18520
18521 * godump.c (go_define): Don't accept a string immediately after
18522 another operand.
18523
18524 2011-05-24 Ian Lance Taylor <iant@google.com>
18525
18526 * godump.c (struct godump_container): Add invalid_hash field.
18527 (go_format_type): Return false if type is found in invalid_hash.
18528 (go_output_typedef): Add invalid type to invalid_hash.
18529 (go_finish): Create and delete invalid_hash.
18530
18531 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18532
18533 PR tree-optimization/46728
18534 * tree-ssa-math-opts.c (powi_table): New.
18535 (powi_lookup_cost): New.
18536 (powi_cost): New.
18537 (powi_as_mults_1): New.
18538 (powi_as_mults): New.
18539 (gimple_expand_builtin_powi): New.
18540 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
18541 (gate_cse_sincos): Remove sincos/cexp restriction.
18542
18543 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18544
18545 PR target/3746
18546 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
18547 mips-tdump native.
18548 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
18549 * mips-tdump.c: Likewise.
18550
18551 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
18552
18553 PR target/49128
18554 * config/i386/driver-i386.c (host_detect_local_cpu): Always
18555 add -mno-XXX. Handle FMA.
18556
18557 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18558
18559 PR rtl-optimization/48633
18560 * ira-build.c (loop_with_eh_edge_p): New function.
18561 (mark_loops_for_removal): Use it.
18562
18563 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18564
18565 PR rtl-optimization/48971
18566 * ira.c (setup_pressure_classes): Don't check register move cost
18567 for classes with one registers. Don't add pressure class if there
18568 is a pressure class with the same available hard registers.
18569 Check contains_reg_of_mode. Fix a typo in collecting
18570 temp_hard_regset. Ignore hard registers not belonging to a class.
18571
18572 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
18573
18574 PR target/49133
18575 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
18576
18577 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18578 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18579
18580 PR gcov-profile/48845
18581 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
18582
18583 2011-05-24 Richard Guenther <rguenther@suse.de>
18584
18585 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
18586 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
18587 (gimple_types_compatible_p_1): Adjust.
18588 (iterative_hash_canonical_type): Do not bother about complete vs.
18589 incomplete types.
18590 (gimple_canonical_types_compatible_p): Likewise.
18591
18592 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18593
18594 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
18595
18596 2011-05-24 Richard Guenther <rguenther@suse.de>
18597
18598 PR bootstrap/49078
18599 * gimple.c (gimple_register_canonical_type): Revert
18600 previous change.
18601 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
18602 does not for a tree for the case where it matters. Cache
18603 pointer-type alias-sets.
18604
18605 2011-05-24 Joseph Myers <joseph@codesourcery.com>
18606
18607 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
18608 (OBJS): Remove options.o, opts-common.o and prefix.o.
18609 (OBJS-libcommon-target): New.
18610 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
18611 (BACKEND): Include libcommon-target.a.
18612 (MOSTLYCLEANFILES): Include libcommon-target.a.
18613 (libcommon-target.a): New.
18614 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
18615 prefix.o.
18616
18617 2011-05-23 Joseph Myers <joseph@codesourcery.com>
18618
18619 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
18620 parts of output shared with the driver.
18621 * optc-gen.awk: Don't generate parts of output not shared with the
18622 driver.
18623 * opth-gen.awk: Remove GCC_DRIVER conditionals.
18624 * doc/options.texi (SourcerInclude): Mention options-save.c.
18625 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
18626 (OBJS): Add options-save.o.
18627 (options-save.c, options-save.o): New.
18628 (options.o): Update dependencies.
18629 (gcc-options.o): Remove.
18630 (mostlyclean): Remove options-save.c.
18631
18632 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18633
18634 PR debug/49032
18635 * dbxout.c: Include cgraph.h.
18636 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
18637 and without value expr, return NULL if no varpool node exists for
18638 it or if it is not needed.
18639 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
18640
18641 PR c/49120
18642 * c-decl.c (start_decl): Convert expr to void_type_node.
18643
18644 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
18645
18646 PR rtl-optimization/48826
18647 * emit-rtl.c (try_split): When splitting a call that is followed
18648 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
18649
18650 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18651
18652 * cfgexpand.c (expand_debug_expr): For unused non-addressable
18653 parameters passed in memory prefer using DECL_INCOMING_RTL over
18654 the pseudos it will be copied into.
18655
18656 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
18657
18658 PR target/47315
18659 * config/i386/i386.c (ix86_option_override_internal): Save the
18660 initial options after checking vzeroupper.
18661
18662 2011-05-23 David Li <davidxl@google.com>
18663
18664 PR tree-optimization/48988
18665 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
18666 Initialize has_valid_pred for each pred chain.
18667
18668 2011-05-23 Richard Guenther <rguenther@suse.de>
18669
18670 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
18671 (iterative_hash_gimple_type): Always hash type names.
18672
18673 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
18674
18675 * c-typeck.c (build_function_call_vec): Tweak call to
18676 check_function_arguments.
18677
18678 2011-05-23 Richard Guenther <rguenther@suse.de>
18679
18680 PR tree-optimization/49115
18681 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
18682 is not necessarily carried out, do not claim it kills the ref.
18683 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
18684
18685 2011-05-23 Richard Guenther <rguenther@suse.de>
18686
18687 PR middle-end/15419
18688 * builtins.c (fold_builtin_memory_op): Be less restrictive about
18689 what pointer types we accept for folding.
18690
18691 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18692
18693 * gthr-gnat.c: Remove.
18694 * gthr-gnat.h: Remove.
18695 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
18696 * config/t-freebsd (LIB2ADDEH): Likewise.
18697 * config/t-linux (LIB2ADDEH): Likewise.
18698 * config/t-sol2 (LIB2ADDEH): Likewise.
18699 * config/ia64/t-vms (LIB2ADDEH): Likewise.
18700 * configure.ac (target_thread_file): Remove gnat handling.
18701 * configure: Regenerate.
18702 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
18703
18704 2011-05-23 Tristan Gingold <gingold@adacore.com>
18705 Eric Botcazou <ebotcazou@adacore.com>
18706
18707 * gcov.c (create_file_names): If no object directory is specified,
18708 keep the directory of the file.
18709
18710 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18711
18712 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
18713 * configure: Regenerate.
18714
18715 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18716
18717 PR middle-end/48973
18718 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
18719 failed and the comparison has a single bit signed type, use
18720 constm1_rtx instead of const1_rtx for true value.
18721 (do_store_flag): If ops->type is single bit signed type, disable
18722 signel bit test optimization and pass -1 instead of 1 as last
18723 parameter to emit_store_flag_force.
18724
18725 2011-05-23 Tom de Vries <tom@codesourcery.com>
18726
18727 PR target/45098
18728 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
18729 function.
18730 (infer_loop_bounds_from_undefined): Use new function.
18731
18732 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
18733
18734 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
18735 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
18736 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
18737 and -O0 otherwise.
18738 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
18739
18740 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18741
18742 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
18743 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
18744 returns true.
18745
18746 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
18747
18748 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
18749
18750 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18751
18752 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
18753 UNSPEC_MOVE_PIC pattern.
18754
18755 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18756
18757 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
18758 (sparc-*-rtems*): Likewise.
18759 (sparc64-*-elf*): Likewise.
18760 (sparc64-*-rtems*): Likewise.
18761 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
18762 * config/sparc/t-crtin: New file.
18763 * config/sparc/t-sol2 (crti.o): Delete rule.
18764 (crtn.o): Likewise.
18765 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
18766 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
18767 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
18768 (ENDFILE_SPEC): Add crtn.o.
18769
18770 2011-05-22 Tom de Vries <tom@codesourcery.com>
18771
18772 PR middle-end/48689
18773 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
18774 CODE_CONTAINS_STRUCT (TS_COMMON).
18775
18776 2011-05-22 Jakub Jelinek <jakub@redhat.com>
18777
18778 PR middle-end/49029
18779 * expmed.c (extract_fixed_bit_field): Test whether target can be used
18780 only after deciding which mode to use.
18781
18782 2011-05-22 Tom de Vries <tom@codesourcery.com>
18783
18784 PR target/45098
18785 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
18786 for call to get_shiftadd_cost.
18787
18788 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
18789
18790 PR target/49104
18791 * config/i386/cpuid.h (bit_MMXEXT): New define.
18792
18793 2011-05-22 Nick Clifton <nickc@redhat.com>
18794
18795 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
18796 initialisation of non-existant args[2] element. Use args[] array
18797 not arg[] array to pass arguments to build_function_type_list.
18798
18799 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
18800
18801 PR tree-optimization/49087
18802 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
18803
18804 2011-05-21 Jason Merrill <jason@redhat.com>
18805
18806 PR c++/49092
18807 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
18808 static storage duration.
18809
18810 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
18811
18812 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
18813 frame pointer.
18814
18815 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
18816
18817 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
18818 false if there are call-saved registers here...
18819 (sparc_can_use_return_insn_p): ...but here instead.
18820 (save_or_restore_regs): Fix thinko.
18821 (sparc_expand_prologue): Use current_function_is_leaf.
18822 (sparc_frame_pointer_required): Likewise.
18823
18824 2011-05-21 Nick Clifton <nickc@redhat.com>
18825
18826 PR target/49098
18827 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
18828
18829 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
18830
18831 * gengtype.c (walk_type): Implemented "atomic" GTY option.
18832 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
18833
18834 2011-05-21 Joseph Myers <joseph@codesourcery.com>
18835
18836 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
18837 * optc-gen.awk: Move common code to opt-read.awk.
18838 * opth-gen.awk: Likewise.
18839 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
18840
18841 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
18842
18843 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
18844
18845 2011-05-20 Tom de Vries <tom@codesourcery.com>
18846
18847 PR target/45098
18848 * tree-ssa-loop-ivopts.c: Include expmed.h.
18849 (get_shiftadd_cost): New function.
18850 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
18851
18852 2011-05-20 Jakub Jelinek <jakub@redhat.com>
18853
18854 PR bootstrap/49086
18855 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
18856 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
18857
18858 2011-05-20 Joseph Myers <joseph@codesourcery.com>
18859
18860 * Makefile.in: Update comment referring to $(OBJS-common).
18861
18862 2011-05-20 Ian Lance Taylor <iant@google.com>
18863
18864 * godump.c (go_output_typedef): Put enum constants in the macro
18865 hash table to avoid duplicate Go const definitions.
18866
18867 2011-05-20 Joseph Myers <joseph@codesourcery.com>
18868
18869 * Makefile.in (LIBDEPS): Add libcommon.a.
18870 (LIBS): Likewise.
18871 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
18872 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
18873 pretty-print.o and version.o.
18874 (OBJS-libcommon): New.
18875 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
18876 (BACKEND): Add libcommon.a.
18877 (MOSTLYCLEANFILES): Likewise.
18878 (libcommon.a): New.
18879 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
18880 (cpp$(exeext)): Likewise.
18881 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
18882 pretty-print.o and input.o.
18883 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
18884 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
18885 (errors.o): Remove.
18886 (mips-tfile): Don't explicitly use version.o.
18887 (mips-tdump): Likewise.
18888 (gcov.o): Depend on $(DIAGNOSTIC_H).
18889 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
18890 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
18891 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
18892 * gcov-dump.c: Include intl.h and diagnostic.h.
18893 (main): Initialize diagnostics.
18894 * gcov.c: Include diagnostic.h.
18895 (fnotice): Remove.
18896 (main): Initialize diagnostics.
18897 * lto-wrapper.c: Include diagnostic.h.
18898 (main): Initialize diagnostics.
18899
18900 2011-05-20 Michael Matz <matz@suse.de>
18901
18902 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
18903
18904 2011-05-20 Michael Matz <matz@suse.de>
18905 Richard Guenther <rguenther@suse.de>
18906
18907 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
18908 use lto_streamer_cache_append directly instead of returning a VEC.
18909 (preload_common_node): Remove.
18910 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
18911 track seen nodes.
18912 (lto_streamer_cache_create): Call lto_preload_common_nodes.
18913
18914 2011-05-20 Richard Guenther <rguenther@suse.de>
18915
18916 PR tree-optimization/49079
18917 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
18918 MEM_REFs correctly for the trailing array access detection.
18919 Special case constants the same way as decls for overall size
18920 constraining.
18921
18922 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
18923
18924 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
18925 argument expansion.
18926
18927 2011-05-20 Jakub Jelinek <jakub@redhat.com>
18928
18929 PR tree-optimization/49073
18930 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
18931 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
18932 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
18933
18934 2011-05-20 Richard Guenther <rguenther@suse.de>
18935
18936 PR middle-end/48849
18937 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
18938 of pointer types the same way the middle-end does.
18939
18940 2011-05-20 Richard Guenther <rguenther@suse.de>
18941
18942 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
18943 or pointer-to chains. Delay all fixup to uniquify_nodes.
18944
18945 2011-05-19 Quentin Neill <quentin.neill@amd.com>
18946
18947 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
18948 (fma4_fmaddsub): Likewise
18949
18950 2011-05-19 Jan Hubicka <jh@suse.cz>
18951
18952 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
18953 (GIMPLE_TYPE_PAIR_SIZE): New macro.
18954 (type_pair_cache): New static var.
18955 (lookup_type_pair): Use fixed sized custom hash; make inline.
18956 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
18957 calls of lookup_type_pair.
18958 (print_gimple_types_stats): Remove cache stats.
18959 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
18960 and gtc_ob.
18961
18962 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
18963
18964 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
18965 when TARGET_RDRND is active.
18966 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
18967 Generate dummy SImode target register when target is NULL.
18968
18969 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18970
18971 * config/arm/arm-fpus.def: New.
18972 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
18973 arm-fpus.def.
18974 * config/arm/arm-tables.opt: Regenerate.
18975 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
18976 (arm_option_override): Don't decode FPU name to string here.
18977 * config/arm/arm.opt (mfpu=): Use Enum.
18978 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
18979 Update dependencies.
18980
18981 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18982
18983 * collect2.c: Include diagnostic.h.
18984 (fatal_perror, fatal, error, fancy_abort): Remove.
18985 (main): Set progname. Call xmalloc_set_program_name and
18986 diagnostic_initialize.
18987 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
18988 scan_libraries, resolve_lib_name): Call fatal_error instead of
18989 fatal and fatal_perror.
18990 * collect2.h (error, fatal, fatal_perror): Don't declare.
18991 * tlink.c: Include diagnostic-core.h.
18992 (recompile_files): Call fatal_error instead of fatal_perror.
18993 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
18994 pretty-print.o and input.o.
18995 (collect2.o, tlink.o): Update dependencies.
18996
18997 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18998
18999 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
19000
19001 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19002
19003 PR target/40483
19004 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
19005 COMDAT group syntax, both SPARC and x86 variants.
19006 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
19007 * configure: Regenerate.
19008 * config/sol2.h (TARGET_SOLARIS): Define.
19009 (PUSHSECTION_FORMAT): Remove.
19010 (SECTION_NAME_FORMAT): Define.
19011 * config/sol2.c: Include hashtab.h.
19012 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
19013 expansion, using SECTION_NAME_FORMAT.
19014 (solaris_comdat_htab): New variable.
19015 (struct comdat_entry): Define.
19016 (comdat_hash): New function.
19017 (comdat_eq): New function.
19018 (solaris_elf_asm_comdat_section): New function.
19019 (solaris_define_comdat_signature): New function.
19020 (solaris_code_end): New function.
19021 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
19022 (solaris_code_end): Declare.
19023 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
19024 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
19025 solaris_code_end.
19026 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
19027 Remove ATTRIBUTE_UNUSED.
19028 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
19029 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
19030 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
19031 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
19032 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
19033 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
19034 (PUSHSECTION_FORMAT): Remove.
19035 (SECTION_NAME_FORMAT): Redefine.
19036
19037 2011-05-19 Kai Tietz <ktietz@redhat.com>
19038
19039 * tree-cfg.c (verify_gimple_assign_binary): Barf on
19040 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
19041 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
19042
19043 2011-05-19 Anatoly Sokolov <aesok@post.ru>
19044 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19045
19046 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
19047
19048 2011-05-19 Richard Guenther <rguenther@suse.de>
19049
19050 PR middle-end/48985
19051 * tree-object-size.c (addr_object_size): If the pointed-to
19052 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
19053
19054 2011-05-19 Richard Guenther <rguenther@suse.de>
19055
19056 * gimple.c (gimple_types_compatible_p_1): Compare names of
19057 the types themselves.
19058 (iterative_hash_gimple_type): And hash them that way.
19059 (gimple_register_type_1): If we register a main variant properly
19060 initialize the leader to ourselves.
19061
19062 2011-05-19 Tom de Vries <tom@codesourcery.com>
19063
19064 PR target/45098
19065 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
19066 get_loop_invariant_expr_id.
19067 (get_loop_invariant_expr_id): Use get_expr_id.
19068 (parm_decl_cost): New function.
19069 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
19070 Improve bound cost estimation. Use different inv_expr_id for elim and
19071 express cases.
19072
19073 2011-05-19 Tom de Vries <tom@codesourcery.com>
19074
19075 PR target/45098
19076 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
19077 cost_base.cost == 0.
19078
19079 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
19080
19081 PR target/49002
19082 * config/i386/sse.md
19083 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
19084 load cast.
19085
19086 2011-05-18 Jakub Jelinek <jakub@redhat.com>
19087
19088 PR tree-optimization/49039
19089 * tree-vrp.c (extract_range_from_binary_expr): For
19090 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
19091 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
19092
19093 2011-05-18 Tom de Vries <tom@codesourcery.com>
19094
19095 PR target/45098
19096 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
19097
19098 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
19099
19100 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
19101 (*tls_global_dynamic_64): Ditto.
19102 (*tls_local_dynamic_base_32_gnu): Ditto.
19103 (*tls_local_dynamic_base_64): Ditto.
19104 (tls_initial_exec_64_sun): Ditto.
19105
19106 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
19107
19108 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
19109 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
19110 bf592-none.
19111 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
19112 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
19113 * config/bfin/bfin.c (bfin_cpus): Add bf592.
19114 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
19115 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
19116 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
19117 * config/bfin/elf.h (LIB_SPEC): Add bf592.
19118
19119 2011-05-18 Joseph Myers <joseph@codesourcery.com>
19120
19121 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
19122 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
19123 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
19124 target_thread_pointer, arm_structure_size_boundary, struct
19125 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
19126 struct abi_name, arm_all_abis): Remove.
19127 (arm_option_override) Don't process most enumerated option values here.
19128 Don't process target_fpe_name here. Work with integer not string for
19129 structure size boundary; use separate diagnostics for each case.
19130 * config/arm/arm.h (enum float_abi_type, enum
19131 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
19132 to arm-opts.h.
19133 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
19134 arm_structure_size_boundary): Remove.
19135 * config/arm/arm.opt (mabi=): Use Enum and Init.
19136 (arm_abi_type): New Enum and EnumValue entries.
19137 (mfloat-abi=): Use Enum and Init.
19138 (float_abi_type): New Enum and EnumValue entries.
19139 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
19140 (mfp16-format=): Use Enum and Init.
19141 (arm_fp16_format_type): New Enum and EnumValue entries.
19142 (mstructure-size-boundary=): Use UInteger and Init.
19143 (mtp=): Use Enum and Init.
19144 (arm_tp_type): New Enum and EnumValue entries.
19145
19146 2011-05-18 Richard Guenther <rguenther@suse.de>
19147
19148 PR tree-optimization/49018
19149 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
19150 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
19151 gimple_has_side_effects.
19152
19153 2011-05-18 Richard Guenther <rguenther@suse.de>
19154
19155 * gimple.c (gimple_register_type_1): New function, split out from ...
19156 (gimple_register_type): ... here. Avoid infinite recursion.
19157
19158 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
19159
19160 PR tree-optimization/41881
19161 * tree-vectorizer.h (struct _loop_vec_info): Add new field
19162 reduction_chains along with a macro for its access.
19163 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
19164 (destroy_loop_vec_info): Free reduction chains.
19165 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
19166 (vect_is_slp_reduction): New function.
19167 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
19168 (vect_create_epilog_for_reduction): Support SLP reduction chains.
19169 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
19170 definition types for reduction chains.
19171 (vect_supported_load_permutation_p): Don't allow permutations for
19172 reduction chains.
19173 (vect_analyze_slp_instance): Support reduction chains.
19174 (vect_analyze_slp): Try to build SLP instance from reduction chains.
19175 (vect_get_constant_vectors): Handle reduction chains.
19176 (vect_schedule_slp_instance): Mark the first statement of the
19177 reduction chain as reduction.
19178
19179 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
19180
19181 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
19182 names for group elements access.
19183 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
19184 reduction chains as well. Remove data reference and interleaving
19185 related words from the fields names.
19186 * tree-vect-loop.c (vect_transform_loop): Use new names for group
19187 elements access.
19188 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
19189 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
19190 vect_update_interleaving_chain, vect_same_range_drs,
19191 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
19192 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
19193 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
19194 vect_analyze_group_access, vect_analyze_data_ref_access,
19195 vect_create_data_ref_ptr, vect_transform_strided_load,
19196 vect_record_strided_load_vectors): Likewise.
19197 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
19198 vect_model_load_cost, vectorizable_store, vectorizable_load,
19199 vect_remove_stores, new_stmt_vec_info): Likewise.
19200 * tree-vect-slp.c (vect_build_slp_tree,
19201 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
19202
19203 2011-05-18 Richard Guenther <rguenther@suse.de>
19204
19205 PR middle-end/48989
19206 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
19207 operand verification.
19208 (verify_gimple_assign_binary): Likewise.
19209 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
19210 to non-1-precision BOOLEAN_TYPEs.
19211
19212 2011-05-18 Tom de Vries <tom@codesourcery.com>
19213
19214 PR target/45098
19215 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
19216
19217 2011-05-18 Jakub Jelinek <jakub@redhat.com>
19218
19219 PR tree-optimization/49000
19220 * tree-ssa.c (execute_update_addresses_taken): Call
19221 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
19222 be rewritten and decl has been marked for renaming, reset
19223 the debug stmt.
19224
19225 2011-05-17 Joseph Myers <joseph@codesourcery.com>
19226
19227 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
19228 enum_opts_set when testing if attributes have set -mfpmath=.
19229
19230 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19231
19232 * config/mips/mips.c (mips_handle_option): Remove unused variable.
19233
19234 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
19235
19236 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
19237 info->entry with 0
19238 * tree-inline.c (maybe_inline_call_in_expr): Initialize
19239 id.transform_lang_insert_block with NULL.
19240
19241 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
19242
19243 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
19244 (output_fp_compare): Change args 3 and 4 to bool.
19245 (ix86_expand_call): Change arg 6 to bool.
19246 (ix86_attr_length_immediate_default): Change arg 2 to bool.
19247 (ix86_attr_length_vex_default): Change arg 3 to bool.
19248 * config/i386/i386.md: Update all uses.
19249 * config/i386/i386.c: Ditto.
19250 (ix86_flags_dependent): Change return type to bool.
19251
19252 2011-05-17 Richard Guenther <rguenther@suse.de>
19253
19254 * gimple.c (type_hash_pair_compare): Fix comparison.
19255
19256 2011-05-17 Richard Guenther <rguenther@suse.de>
19257
19258 * gimple.c (iterative_hash_gimple_type): Simplify singleton
19259 case some more, fix final hash value of the non-singleton case.
19260
19261 2011-05-17 Richard Guenther <rguenther@suse.de>
19262
19263 PR bootstrap/49013
19264 Revert
19265 2011-05-16 Richard Guenther <rguenther@suse.de>
19266
19267 * gimple.c (gimple_types_compatible_p_1): Use names of the
19268 type itself, not its main variant.
19269 (iterative_hash_gimple_type): Likewise.
19270
19271 2011-05-17 Richard Guenther <rguenther@suse.de>
19272
19273 * gimple.c (gimple_register_canonical_type): Use the main-variant
19274 leader for computing the canonical type.
19275
19276 2011-05-17 Nick Clifton <nickc@redhat.com>
19277
19278 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
19279 moves.
19280
19281 * config/rx/rx.md: Add peephole to remove redundant extensions
19282 after loads.
19283 (bitset_in_memory): Use rx_restricted_mem_operand.
19284 (bitinvert_in_memory): Likewise.
19285 (bitclr_in_memory): Likewise.
19286
19287 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
19288 Nick Clifton <nickc@redhat.com>
19289
19290 * config/rx/rx.md: Add peepholes to match a register move followed
19291 by a comparison of the moved register. Replace these with an
19292 addition of zero that does both actions in one instruction.
19293
19294 2011-05-17 Jakub Jelinek <jakub@redhat.com>
19295
19296 PR target/48986
19297 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
19298 predicate to allow CONST_INT.
19299 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
19300
19301 2011-05-16 Joseph Myers <joseph@codesourcery.com>
19302
19303 * opts-common.c (opt_enum_arg_to_value): New.
19304 * opts.h (opt_enum_arg_to_value): Declare.
19305 * config/i386/i386.opt (fpmath): Remove.
19306 (mfpmath=): Use Enum, Init and Save.
19307 (fpmath_unit): New Enum and EnumValue entries.
19308 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
19309 name for function fpmath state.
19310 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
19311 * config/i386/i386.c: Include diagnostic.h.
19312 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
19313 (ix86_target_string): Take enum fpmath_unit value instead of string.
19314 (ix86_debug_options): Update call to ix86_target_string.
19315 (ix86_option_override_internal): Don't process fpmath strings here.
19316 (x86_function_specific_save, ix86_function_specific_restore):
19317 Don't handle fpmath state specially.
19318 (ix86_function_specific_print): Pass fpmath state to
19319 ix86_target_string instead of printing in this function.
19320 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
19321 Handle enum attributes.
19322 (IX86_ATTR_ENUM, ix86_opt_enum): New.
19323 (ix86_valid_target_attribute_tree): Update option_strings
19324 handling. Handle fpmath as enum option.
19325 (ix86_can_inline_p): Update field names for function fpmath state.
19326 (ix86_expand_builtin): Update call to ix86_target_string.
19327 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
19328 (ix86_fpmath): Remove.
19329 * config/i386/t-i386 (i386.o): Update dependencies.
19330
19331 2011-05-16 Joseph Myers <joseph@codesourcery.com>
19332
19333 PR preprocessor/48677
19334 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
19335 from decoded_options[0], not from itself.
19336
19337 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
19338
19339 * config/i386/constraints.md (z): New constraint.
19340 * config/i386/i386.c (c): New mode attribute.
19341 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
19342 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
19343 constraint for operand 0.
19344 (*call_vzeroupper): Ditto.
19345 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
19346 (*call_rex64_ms_sysv_vzeroupper): Ditto.
19347 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
19348 Use "lzm" constraint for operand 0.
19349 (*call_pop_vzeroupper): Ditto.
19350 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
19351 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
19352 constraint for operand 0.
19353 (*sibcall_vzeroupper): Ditto.
19354 (*sibcall_rex64_ms_sysv): Ditto.
19355 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
19356 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
19357 *sibcall_pop_1. Use "Uz" constraint for operand 0.
19358 (*sibcall_pop_vzeroupper): Ditto.
19359 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
19360 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
19361 mode iterator. Use "<c>zm" constraint for operand 1.
19362 (*call_value_vzeroupper): Ditto.
19363 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
19364 for operand 1.
19365 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
19366 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
19367 *call_value_pop_1. Use "lzm" constraint for operand 1.
19368 (*call_value_pop_vzeroupper): Ditto.
19369 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
19370 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
19371 mode iterator. Use "Uz" constraint for operand 1.
19372 (*sibcall_value_vzeroupper): Ditto.
19373 (*sibcall_value_rex64_ms_sysv): Ditto.
19374 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
19375 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
19376 constraint for operand 1.
19377 (*sibcall_value_pop_vzeroupper): Ditto.
19378 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
19379 and "z" constraint for operand 2.
19380 (*tls_global_dynamic_32_gnu): Ditto.
19381 (*tls_local_dynamic_base_32_gnu): Ditto.
19382 (*tls_local_dynamic_base_64): Ditto.
19383 (*tls_local_dynamic_32_once): Ditto.
19384 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
19385 Update all callers.
19386 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
19387
19388 2011-05-16 Richard Guenther <rguenther@suse.de>
19389
19390 * gimple.c (gimple_types_compatible_p_1): Use names of the
19391 type itself, not its main variant.
19392 (iterative_hash_gimple_type): Likewise.
19393
19394 2011-05-16 Richard Guenther <rguenther@suse.de>
19395
19396 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
19397 always visit pointer target and function result and argument types.
19398
19399 2011-05-16 Jason Merrill <jason@redhat.com>
19400
19401 PR c++/48999
19402 * tree-inline.c (copy_statement_list): Put back recursion.
19403
19404 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
19405
19406 PR target/27663
19407 PR target/41076
19408 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
19409 * config/avr/avr.md ("*ior<mode>qi.byte0",
19410 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
19411
19412 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
19413
19414 PR target/45099
19415 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
19416 register is needed for a function argument.
19417
19418 2011-05-16 Richard Guenther <rguenther@suse.de>
19419
19420 * gimple.c (struct type_hash_pair): New type.
19421 (type_hash_pair_compare): New function.
19422 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
19423
19424 2011-05-16 Revital Eres <revital.eres@linaro.org>
19425
19426 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
19427
19428 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
19429
19430 * config/i386/i386.md (floating point move splitters): Fix
19431 usage of standard_80387_constant_p.
19432 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
19433
19434 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
19435
19436 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
19437
19438 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
19439
19440 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
19441 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
19442 (tree_ssa_lim_finalize): Likewise.
19443
19444 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
19445
19446 * config/i386/constraint.md (Yd, Yx): New register constraints.
19447 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
19448 Yd conditional register constraint.
19449 (*movtf_internal): Use standard_sse_constant_opcode.
19450 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
19451 Yx conditional register constraint.
19452 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
19453 Yd conditional register constraint. Use standard_sse_constant_p to
19454 check for valid SSE constants and call standard_sse_constant_opcode to
19455 output SSE insn.
19456 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
19457 constants and call standard_sse_constant_opcode to output SSE insn.
19458 * config/i386/i386.c (ix86_option_ovverride_internal): Set
19459 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
19460 optimize_size is set.
19461 (standard_sse_constant_opcode): Output conditional AVX insn templates.
19462
19463 2011-05-14 Tobias Burnus <burnus@net-b.de>
19464
19465 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
19466
19467 2011-05-13 Martin Jambor <mjambor@suse.cz>
19468
19469 * ipa-prop.c (ipa_cst_from_jfunc): New function.
19470 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
19471 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
19472 (evaluate_conditions_for_ipcp_clone): Removed.
19473 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
19474 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
19475 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
19476
19477 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
19478
19479 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
19480 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
19481 lieu of MAY_HAVE_DEBUG_STMTS.
19482 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
19483 debug statements if !MAY_HAVE_DEBUG_STMTS.
19484
19485 2011-05-13 Martin Thuresson <martint@google.com>
19486
19487 PR gcov-profile/47793
19488 * libgcov.c (gcov_exit): Support relative profile paths.
19489 * doc/invoke.texi (-fprofile-dir): Update for above change.
19490
19491 2011-05-13 Richard Guenther <rguenther@suse.de>
19492
19493 * gimple.c (gimple_canonical_types_compatible_p): Do not use
19494 type-pair caching, do not compare hashes.
19495
19496 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
19497
19498 PR middle-end/48965
19499 * tree-cfg.c (edge_to_cases_cleanup): Return true.
19500 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
19501
19502 2011-05-13 Kai Tietz <ktietz@redhat.com>
19503
19504 * gimplify.c (gimplify_expr): Make sure operand is boolified.
19505 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
19506 compatible type for TRUTH_NOT_EXPR.
19507
19508 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
19509
19510 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
19511 (ix86_hard_regno_mode_ok): Change return value to bool. Use
19512 can_create_pseudo_p ().
19513
19514 2011-05-13 Richard Guenther <rguenther@suse.de>
19515
19516 PR lto/48978
19517 * gimple.c (iterative_hash_gimple_type): Revert change in
19518 pointer target and function result and argument hashing.
19519
19520 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
19521
19522 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
19523 (*movxf_internal_nointeger): Ditto.
19524 (*movdf_internal_rex64): Ditto.
19525 (*movdf_internal): Ditto.
19526 (*movdf_internal_nointeger): Ditto.
19527 (*movsf_internal): Ditto.
19528 (sincos splitters): Use can_create_pseudo ().
19529
19530 2011-05-13 Joseph Myers <joseph@codesourcery.com>
19531
19532 * config/i386/i386-opts.h: New.
19533 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
19534 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
19535 ix86_section_threshold): Remove.
19536 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
19537 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
19538 OPT_mbranch_cost_.
19539 (ix86_option_override_internal): Don't decode strings for options
19540 other than -march=, -mtune= and -mfpmath=. Don't allow for
19541 __attribute__ uses in remaining diagnostics for options with
19542 string arguments. Don't check for integer arguments being negative.
19543 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
19544 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
19545 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
19546 ix86_branch_cost, ix86_section_threshold): Remove.
19547 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
19548 HeaderInclude.
19549 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
19550 but not Var.
19551 (masm=): Use Enum and Init.
19552 (asm_dialect): New Enum and EnumValue entries.
19553 (mbranch-cost=): Use UInteger.
19554 (mlarge-data-threshold=): Use UInteger and Init.
19555 (mcmodel=): Use Enum and Init.
19556 (cmodel): New Enum and EnumValue entries.
19557 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
19558 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
19559 mregparm=): Use UInteger.
19560 (mstringop-strategy=): Use Enum and Init.
19561 (stringop_alg): New Enum and EnumValue entries.
19562 (mtls-dialect=): Use Enum and Init.
19563 (tls_dialect): New Enum and EnumValue entries.
19564 (mabi=): Use Enum and Init.
19565 (calling_abi): New Enum and EnumValue entries.
19566 (mveclibabi=): Use Enum and Init.
19567 (ix86_veclibabi): New Enum and EnumValue entries.
19568
19569 2011-05-13 Nick Clifton <nickc@redhat.com>
19570
19571 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
19572 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
19573
19574 2011-05-13 Kai Tietz <ktietz@redhat.com>
19575
19576 PR middle-end/48984
19577 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
19578 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
19579 (gimple_boolify): Check for cast for boolean_type_node instead for
19580 BOOLEAN_TYPE.
19581
19582 2011-05-13 Richard Guenther <rguenther@suse.de>
19583
19584 PR tree-optimization/48172
19585 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
19586 multiplying by number of iterations for equal step.
19587 (vect_create_cond_for_alias_checks): Likewise.
19588
19589 2011-05-13 Andreas Schwab <schwab@redhat.com>
19590
19591 * configure.ac: Use AS_HELP_STRING throughout.
19592 * configure: Regenerate.
19593
19594 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
19595
19596 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
19597 (ix86_emit_restore_regs_using_mov): Likewise.
19598 (ix86_emit_restore_sse_regs_using_mov): Likewise.
19599
19600 2011-05-12 Anatoly Sokolov <aesok@post.ru>
19601
19602 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
19603 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
19604 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
19605 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
19606 RTX_OK_FOR_OLO10_P): ...here.
19607 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
19608 SYMBOLIC_CONST.
19609
19610 2011-05-12 Kai Tietz <ktietz@redhat.com>
19611
19612 * gimplify.c (gimple_boolify): Re-boolify expression
19613 arguments even if expression type is of kind BOOLEAN_TYPE.
19614 (gimplify_boolean_expr): Removed.
19615 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
19616 and XOR. Additional take care that we keep expression's type.
19617 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
19618 of TRUTH_AND|OR|XOR_EXPR.
19619
19620 2011-05-12 Jakub Jelinek <jakub@redhat.com>
19621
19622 PR tree-optimization/48975
19623 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
19624 on all bbs here and free and clear ifc_bbs at the end.
19625
19626 2011-05-12 Richard Guenther <rguenther@suse.de>
19627
19628 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
19629 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
19630 until after simple checks.
19631 (gimple_types_compatible_p): Likewise.
19632 (iterative_hash_gimple_type): Always hash pointer targets
19633 and function return and argument types.
19634 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
19635 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
19636 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
19637 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
19638 completely in the simple compare section.
19639 (gimple_register_canonical_type): Query the cache again after
19640 registering.
19641
19642 2011-05-12 Richard Guenther <rguenther@suse.de>
19643
19644 PR tree-optimization/48172
19645 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
19646 the number of iterations from the segment size calculation.
19647 (vect_create_cond_for_alias_checks): Adjust.
19648
19649 2011-05-12 Jakub Jelinek <jakub@redhat.com>
19650
19651 PR debug/48967
19652 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
19653 if validate_subreg fails.
19654
19655 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
19656
19657 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
19658 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
19659 early.
19660
19661 2011-05-12 DJ Delorie <dj@redhat.com>
19662
19663 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
19664 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
19665 created builtin into rx_builtins array.
19666 (rx_builtin_decl): New function.
19667 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
19668
19669 2011-05-12 DJ Delorie <dj@redhat.com>
19670 Nick Clifton <nickc@redhat.com>
19671
19672 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
19673 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
19674 (rx_is_legitimate_address): Add pre-decrement and post-increment
19675 addressing in HImode and QImode. Fix test for out of range
19676 REG+INT addressing.
19677 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
19678 (rx_align_for_label): Test label before extracting its usage count.
19679 (rx_adjust_insn_lengths): Fix selection of insn codes.
19680 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
19681
19682 2011-05-11 Jason Merrill <jason@redhat.com>
19683
19684 * tree.c (type_hash_canon): Use struct tree_type_non_common.
19685
19686 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
19687
19688 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
19689 reindent the subsequent block.
19690
19691 2011-05-11 Satoru Takabayashi <satorux@google.com>
19692 Paul Pluzhnikov <ppluzhnikov@google.com>
19693
19694 * doc/install.texi (Configuration): Document --with-linker-hash-style.
19695 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
19696 * config.in: Add LINKER_HASH_STYLE.
19697 * configure.ac: Add --with-linker-hash-style.
19698 * configure: Regenerate.
19699
19700 2011-05-11 Richard Guenther <rguenther@suse.de>
19701
19702 PR middle-end/48964
19703 * gimple.c (iterative_hash_canonical_type): Fix typo.
19704
19705 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
19706
19707 * config/i386/i386.c (legitimize_tls_address)
19708 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
19709 expanders directly for TARGET_GNU2_TLS. Determine pic and
19710 __tls_get_addr symbol reference here. Update call to
19711 gen_tls_global_dynamic_{32,64} for added arguments.
19712 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
19713 expanders directly for TARGET_GNU2_TLS. Determine
19714 __tls_get_addr symbol reference here. Update call to
19715 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
19716 unique UNSPEC REG_EQUIV to libcall block.
19717 (ix86_tls_get_addr): Declare static.
19718 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
19719 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
19720 Do not determine pic and __tls_get_addr symbol reference here. Do not
19721 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
19722 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
19723 (tls_global_dynamic_64): Add operand 2. Do not determine
19724 __tls_get_addr symbol reference here. Do not call
19725 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
19726 (tls_local_dynamic_base64): Ditto for operand 1.
19727
19728 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
19729
19730 * function.c (expand_function_start): Initialize stack_check_probe_note
19731 only if the generic stack checking mechanism is used.
19732
19733 2011-05-11 Richard Guenther <rguenther@suse.de>
19734
19735 PR tree-optimization/15256
19736 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
19737 (A & B) | C, combine (A op CST1) op CST2.
19738 (tree_ssa_forward_propagate_single_use_vars): Only bother to
19739 visit assigns that have uses.
19740
19741 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
19742
19743 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
19744 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
19745 (unpack_ts_type_common_value_fields): ...this. Update comment.
19746 (unpack_value_fields): Adjust for renaming.
19747 (lto_input_ts_type_tree_pointers): Split into...
19748 (lto_input_ts_type_common_tree_pointer): ...this and...
19749 (lto_input_ts_type_non_common_tree_pointers): ...this.
19750 (lto_input_tree_pointers): Adjust for above split.
19751 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
19752 (pack_ts_type_common_value_fields): ...this. Update comment.
19753 (lto_output_ts_type_tree_pointers): Split into...
19754 (lto_output_ts_type_common_tree_pointers): ...this and...
19755 (lto_output_ts_type_non_common_tree_pointers): ...this.
19756 (lto_output_tree_pointers): Adjust for above split.
19757 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
19758 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
19759 * stor-layout.c (vector_type_mode): Adjust location of mode field.
19760 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
19761 Define.
19762 (struct tree_type): Split into...
19763 (struct tree_type_common: ...this and...
19764 (struct tree_type_with_lang_specific): ...this and...
19765 (struct tree_type_non_common): ...this. Adjust accessor macros
19766 accordingly.
19767 (TYPE_VALUES_RAW): Define.
19768 (union tree_node): Update for above changes.
19769 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
19770 TS_TYPE_NON_COMMON.
19771 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
19772 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
19773 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
19774 * treestructu.def (TS_TYPE): Remove.
19775 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
19776 Define.
19777
19778 2011-05-11 Jakub Jelinek <jakub@redhat.com>
19779
19780 PR debug/48159
19781 * tree-ssa.c (reset_debug_uses): New function.
19782 * tree-flow.h (reset_debug_uses): New prototype.
19783 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
19784 * tree-loop-distribution.c (generate_loops_for_partition): Call
19785 reset_debug_uses on the stmts that will be removed. Keep around
19786 all debug stmts, don't count them as bits in partition bitmap.
19787 (generate_builtin): Don't count debug stmts or labels as bits in
19788 partition bitmap.
19789
19790 2011-05-11 Richard Guenther <rguenther@suse.de>
19791
19792 * gimple.c (gimple_type_hash_1): Merge with ...
19793 (gimple_type_hash): ... this.
19794 (gtc_visit): Remove mode parameter and simplify accordingly.
19795 (gimple_types_compatible_p_1): Likewise.
19796 (gimple_types_compatible_p): Likewise.
19797 (iterative_hash_gimple_type): Likewise.
19798 (visit): Likewise.
19799 (gimple_type_eq): Adjust.
19800
19801 2011-05-11 Revital Eres <revital.eres@linaro.org>
19802
19803 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
19804 enters the branch create an anti edge in the opposite direction
19805 to prevent the creation of reg-moves.
19806 * modulo-sched.c: Adjust comment to reflect the fact we are
19807 scheduling closing branch.
19808 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
19809 (stage_count): New field in struct partial_schedule.
19810 (calculate_stage_count): New function.
19811 (normalize_sched_times): Rename to reset_sched_times and handle
19812 incrementing the sched time of the nodes by a constant value
19813 passed as parameter.
19814 (duplicate_insns_of_cycles): Skip closing branch.
19815 (sms_schedule_by_order): Schedule closing branch.
19816 (ps_insn_find_column): Handle closing branch.
19817 (sms_schedule): Call reset_sched_times and adjust the code to
19818 support scheduling of the closing branch.
19819 (ps_insert_empty_row): Update calls to normalize_sched_times
19820 and rotate_partial_schedule functions.
19821
19822 2011-05-11 Richard Guenther <rguenther@suse.de>
19823
19824 PR middle-end/48953
19825 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
19826
19827 2011-05-11 Joseph Myers <joseph@codesourcery.com>
19828
19829 * opts.c (finish_options): Move warning settings from process_options.
19830 * toplev.c (process_options): Move warning settings to finish_options.
19831
19832 2011-05-11 Richard Guenther <rguenther@suse.de>
19833
19834 PR tree-optimization/18041
19835 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
19836 (simplify_bitwise_binary): ... this. Handle operand conversions
19837 by applying them to the result instead.
19838 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
19839
19840 2011-05-11 Richard Guenther <rguenther@suse.de>
19841
19842 * gimple.c (gimple_canonical_types_compatible_p): Split out
19843 from gimple_types_compatible_p and friends. Do not recurse
19844 to pointed-to types.
19845 (gimple_canonical_type_eq): Use it.
19846 (iterative_hash_canonical_type): Split out from
19847 iterative_hash_gimple_type and friends. Do not recurse
19848 to pointed-to types.
19849 (gimple_canonical_type_hash): Use it, allocate the hash here.
19850
19851 2011-05-11 Revital Eres <revital.eres@linaro.org>
19852
19853 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
19854 recognizing doloop.
19855
19856 2011-05-11 Revital Eres <revital.eres@linaro.org>
19857
19858 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
19859 instead of PREV_INSN.
19860
19861 2011-05-11 Revital Eres <revital.eres@linaro.org>
19862
19863 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
19864 * loop-doloop.c (doloop_condition_get): Likewise.
19865 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
19866 (doloop_end): New.
19867 * config/arm/arm.md (*addsi3_compare0): Remove "*".
19868
19869 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
19870
19871 * tree.def (CASE_LABEL_EXPR): Add an operand.
19872 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
19873
19874 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19875
19876 * c-decl.c (c_override_global_bindings_to_false): Remove.
19877 (global_bindings_p): Don't check
19878 c_override_global_bindings_to_false.
19879 * c-tree.h (c_override_global_bindings_to_false): Remove.
19880 * c-typeck.c (composite_type): Don't set
19881 c_override_global_bindings_to_false.
19882
19883 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19884
19885 PR target/48857, 48495
19886 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
19887 (VSX_MODE): Ditto.
19888 (VSX_MOVE_MODE): Ditto.
19889 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
19890 VSX vector types. Add V2DImode.
19891 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
19892 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
19893 (MODES_TIEABLE_P): Ditto.
19894
19895 * config/rs6000/rs6000.c (rs6000_emit_move): Use
19896 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
19897 VSX_VECTOR_MODE.
19898 (init_cumulative_args): Ditto.
19899 (rs6000_function_arg_boundary): Ditto.
19900 (rs6000_function_arg_advance_1): Ditto.
19901 (rs6000_function_arg): Ditto.
19902 (rs6000_function_ok_for_sibcall): Ditto.
19903 (emit_frame_save): Ditto.
19904 (rs6000_function_value): Ditto.
19905 (rs6000_libcall_value): Ditto.
19906
19907 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19908
19909 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
19910 i386/darwin-lib.h to $libgcc_tm_file.
19911 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
19912
19913 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19914
19915 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
19916
19917 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19918
19919 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
19920 * config/rs6000/rs6000-tables.opt: New file (generated).
19921 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
19922 rs6000/rs6000-tables.opt to extra_options.
19923 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
19924 * config/rs6000/rs6000.c (rs6000_select): Remove.
19925 (processor_target_table): Move contents to rs6000-cpus.def.
19926 (darwin_rs6000_override_options): Check
19927 global_options_set.x_rs6000_cpu_index instead of
19928 rs6000_select[1].string.
19929 (rs6000_option_override_internal): Likewise.
19930 (rs6000_handle_option): Don't assert that global structures are in
19931 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
19932 (rs6000_default_cpu): New variable.
19933 (rs6000_file_start): Set it instead of local default_cpu. Check
19934 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
19935 global_options_set.x_rs6000_tune_index instead of rs6000_select.
19936 (rs6000_darwin_file_start): Check rs6000_default_cpu and
19937 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
19938 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
19939 rs6000_select): Remove.
19940 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
19941 Remove.
19942 (mcpu=, mtune=): Use Var, Init, Enum and Save.
19943 * config/rs6000/t-rs6000
19944 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
19945 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19946 global_options_set.x_rs6000_cpu_index instead of
19947 rs6000_select[1].string.
19948 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19949 global_options_set.x_rs6000_cpu_index instead of
19950 rs6000_select[1].string.
19951
19952 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19953
19954 * config.gcc (libgcc_tm_file): Define instead of including files
19955 from ../../libgcc/config/ in tm_file.
19956 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
19957 * configure: Regenerate.
19958 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
19959 libgcc_tm.h, cs-libgcc_tm.h): New.
19960 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
19961 (clean): Remove libgcc_tm.h.
19962 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
19963 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
19964 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
19965
19966 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
19967
19968 PR target/48896
19969 * config/avr/avr.c (avr_ret_register): Return unsigned int
19970 instead of int.
19971 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
19972 it to avr_libcall_value.
19973 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
19974 expand_expr.
19975 (avr_expand_binop_builtin): Ditto.
19976 (avr_expand_unop_builtin): Ditto.
19977
19978 2011-05-10 DJ Delorie <dj@redhat.com>
19979
19980 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
19981 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
19982 * config/rx/rx.c (rx_align_for_label): Add label and
19983 uses_threshold parameters. Do not align when the label is not
19984 used enough.
19985 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
19986
19987 2011-05-10 Richard Guenther <rguenther@suse.de>
19988
19989 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
19990 a series of conversions and apply foldings similar to what
19991 fold-const does.
19992 (tree_ssa_forward_propagate_single_use_vars): Call it.
19993
19994 2011-05-10 Jakub Jelinek <jakub@redhat.com>
19995
19996 PR tree-optimization/48611
19997 PR tree-optimization/48794
19998 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
19999 referenced from RESX or EH_DISPATCH arguments.
20000
20001 PR debug/48928
20002 * dfp.c (decimal_to_decnumber): Handle conversion from
20003 dconst{1,2,m1,half}.
20004
20005 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20006
20007 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
20008 for !flag_prefer_avx128.
20009 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
20010
20011 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
20012
20013 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
20014 (fold_ternary_loc): Use expr_location_or.
20015
20016 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
20017
20018 PR debug/48853
20019 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
20020 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
20021 Pmode and mem_mode is not VOIDmode.
20022
20023 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
20024
20025 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
20026 TYPE_QUAL_RESTRICT): Convert to enum.
20027
20028 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20029
20030 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
20031 (const_pow2_1_to_8_operand): Ditto.
20032 (const_pow2_1_to_128_operand): Ditto.
20033 (const_pow2_1_to_32768_operand): Ditto.
20034 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
20035 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
20036 in insn constraint to check integer value of operand 3.
20037 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
20038
20039 (PINSR_MODE): New mode iterator.
20040 (sse2p4_1): New mode attribute.
20041 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
20042 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
20043 iterator. Use const_int_operand instead of
20044 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
20045 exact_log2 in insn constraint to check integer value of operand 3.
20046
20047 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20048
20049 * config/i386/sse.md (blendbits): Remove mode attribute.
20050 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
20051 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
20052 Check integer value of operand 3 in insn constraint.
20053
20054 2011-05-09 Richard Guenther <rguenther@suse.de>
20055
20056 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
20057 for diagnostics.
20058 (lto_symtab_merge): Likewise. Do not register types here.
20059 (lto_symtab_merge_decls_2): Likewise.
20060 (lto_symtab_merge_decls_1): Likewise.
20061 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
20062 * gimple.c (enum gtc_mode): Declare.
20063 (gimple_types_compatible_p): Make static.
20064
20065 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20066
20067 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
20068 temporary register to match Pmode.
20069
20070 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20071
20072 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
20073 and *vec_concatv4si_1_avx.
20074
20075 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20076
20077 PR rtl-optimization/48927
20078 * ira-conflicts.c (commutative_constraint_p): Use
20079 recog_data.alternative_enabled_p to disable alternatives where
20080 "enabled" attribute is false.
20081 (get_dup_num): Ditto.
20082 * ira-lives.c (single_reg_class): Ditto.
20083 (ira_implicitly_set_insn_hard_regs): Ditto.
20084
20085 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
20086
20087 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
20088 (dataflow_set_preserve_mem_locs): Likewise.
20089
20090 2011-05-09 Philipp Thomas <pth@suse.de>
20091
20092 * config/mep/mep.c (mep_validate_vliw): Syntax description
20093 should not be translated.
20094
20095 2011-05-09 Joseph Myers <joseph@codesourcery.com>
20096
20097 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
20098 * config/mips/mips-tables.opt: New file (generated).
20099 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
20100 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
20101 MIPS_ARCH_OPTION_NATIVE): Define.
20102 * config/mips/mips.c (mips_cpu_info_table): Move contents to
20103 mips-cpus.def.
20104 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
20105 mips_parse_cpu): Remove.
20106 (mips_cpu_info_from_opt, mips_default_arch): New.
20107 (mips_handle_option): Don't assert that global structures are in
20108 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
20109 (mips_option_override): Use new variables and functions to set
20110 state of these options. Use strcmp to check for individual CPU names.
20111 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
20112 definition.
20113 * config/mips/mips.opt (march=): Use ToLower and Enum.
20114 (mips): Use ToLower, Enum and Var.
20115 (mtune=): Use ToLower and Enum.
20116 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
20117
20118 2011-05-08 Jan Hubicka <jh@suse.cz>
20119
20120 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
20121 Arrange type pairs to be UID ordered.
20122 (gimple_lookup_type_leader): Make inline.
20123
20124 2011-05-09 Nick Clifton <nickc@redhat.com>
20125
20126 PR target/48899
20127 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
20128 PROCESSOR_DEFAULT.
20129
20130 PR target/48897
20131 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
20132 variable 's'.
20133
20134 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
20135
20136 * combine.c (simplify_comparison): Abstract out parts into...
20137 (simplify_compare_const): ... new function.
20138 (try_combine): Generalize parallel arithmetic/compare combining
20139 to call simplify_compare_const() and CANONICALIZE_COMPARE().
20140
20141 2011-05-08 Jan Hubicka <jh@suse.cz>
20142
20143 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
20144 (cgraph_create_virtual_clone): Call hooks once virtual clone
20145 is finished.
20146 * cgraph.h (cgraph_clone_node): Update prototype.
20147 * ipa-cp.c (ipcp_estimate_growth): Use
20148 estimate_ipcp_clone_size_and_time.
20149 * ipa-inline-transform.c (clone_inlined_nodes): Update.
20150 * lto-cgraph.c (input_node): Update.
20151 * ipa-inline.c (recursive_inlining): Update.
20152 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
20153 (evaluate_conditions_for_known_args): Break out from ...
20154 (evaluate_conditions_for_edge): ... here.
20155 (evaluate_conditions_for_ipcp_clone): New function.
20156 (inline_node_duplication_hook): Update clone summary based
20157 on parameter map.
20158 (estimate_callee_size_and_time): Rename to ...
20159 (estimate_node_size_and_time): take NODE instead of EDGE;
20160 take POSSIBLE_TRUTHS as argument.
20161 (estimate_callee_size_and_time): Update.
20162 (estimate_ipcp_clone_size_and_time): New function.
20163 (do_estimate_edge_time): Update.
20164
20165 2011-05-08 Richard Guenther <rguenther@suse.de>
20166
20167 PR middle-end/48908
20168 PR middle-end/48905
20169 * expmed.c (expand_shift_1): Compute adjusted constant shift
20170 amount manually.
20171
20172 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
20173
20174 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
20175
20176 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
20177
20178 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
20179
20180 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
20181
20182 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
20183
20184 2011-05-07 Jan Hubicka <jh@suse.cz>
20185
20186 * ipa-inline-transform.c (inline_call): Account when program size
20187 decreases.
20188 * ipa-inline.c (relative_time_benefit): New function.
20189 (edge_badness): Reorganize to be power 2 based; fix thinko when
20190 computing badness for negative growth; update comments to match
20191 reality; better dumps.
20192
20193 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
20194
20195 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
20196 type to bool and adjust comment.
20197 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
20198 (fold_mathfn_compare): Remove calls to global_bindings_p.
20199 (fold_inf_compare): Likewise.
20200 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
20201 * c-tree.h (global_bindings_p): Adjust prototype.
20202 * c-decl.c (global_bindings_p): Return bool and simplify.
20203
20204 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
20205
20206 PR tree-optimization/48837
20207 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
20208 when accumulator transformation is performed.
20209
20210 2011-05-06 Jan Hubicka <jh@suse.cz>
20211
20212 * i386.h (ix86_tune_indices): Add
20213 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
20214 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
20215 * i386.c (initial_ix86_tune_features): Add
20216 X86_SOFTARE_PREFETCHING_BENEFICIAL.
20217 (software_prefetching_beneficial_p): Remove predicate.
20218 (ix86_option_override_internal): Use new macro.
20219
20220 2011-05-06 Jan Hubicka <jh@suse.cz>
20221
20222 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
20223
20224 2011-05-06 Jan Hubicka <jh@suse.cz>
20225
20226 * cgraph.c (cgraph_add_thunk): Create real function node instead
20227 of alias node; finalize it and mark needed/reachale; arrange visibility
20228 to be right and add it into the corresponding same comdat group list.
20229 (dump_cgraph_node): Dump thunks.
20230 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
20231 cgraph_function_with_gimple_body_p,
20232 cgraph_first_function_with_gimple_body,
20233 cgraph_next_function_with_gimple_body): New functions.
20234 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
20235 New macros.
20236 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
20237 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
20238 * cgraphunit.c (cgraph_finalize_function): Only look into possible
20239 devirtualization when optimizing.
20240 (verify_cgraph_node): Verify thunks.
20241 (cgraph_analyze_function): Analyze thunks.
20242 (cgraph_mark_functions_to_output): Output thunks only in combination
20243 with function they are assigned to.
20244 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
20245 alias into normal node.
20246 (assemble_thunks): New functoin.
20247 (cgraph_expand_function): Use it.
20248 * lto-cgraph.c (lto_output_node): Stream thunks.
20249 (input_overwrite_node): Stream in thunks.
20250 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
20251 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
20252 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
20253 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
20254 (inline_analyze_function): Do not care about thunk jump functions.
20255 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
20256 * ipa-prop.c (ipa_prop_write_jump_functions): Use
20257 cgraph_function_with_gimple_body_p.
20258 * passes.c (do_per_function_toporder): Use
20259 cgraph_function_with_gimple_body_p.
20260 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
20261 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
20262 (function_called_by_processed_nodes_p): Likewise.
20263
20264 2011-05-06 Joseph Myers <joseph@codesourcery.com>
20265
20266 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
20267 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
20268 entries.
20269 (mabi=): Replace with separate entries for mabi=altivec,
20270 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
20271 mabi=ieeelongdouble and mabi=ibmlongdouble.
20272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
20273 check for -mabi=spe without SPE ABI support here.
20274 (rs6000_handle_option): Replace OPT_mabi_ handling with
20275 OPT_mabi_altivec and OPT_mabi_spe handling.
20276
20277 2011-05-06 Cary Coutant <ccoutant@google.com>
20278
20279 * dwarf2out.c (contains_subprogram_definition): New function.
20280 (should_move_die_to_comdat): Call it.
20281
20282 2011-05-06 Jeff Law <law@redhat.com>
20283
20284 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
20285 remove_ctrl_stmt_and_useless_edges.
20286 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
20287 (fixup_template_block, thread_single_edge): Likewise.
20288 (mark_threaded_blocks): Use THREAD_TARGET.
20289
20290 2011-05-06 Alan Modra <amodra@gmail.com>
20291
20292 PR target/48900
20293 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
20294 const0_rtx as the arg to the dummy __tls_get_addr libcall.
20295
20296 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
20297
20298 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
20299 constraint modifier to "r".
20300
20301 2011-05-06 Joseph Myers <joseph@codesourcery.com>
20302
20303 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
20304 fall through for OPT_mcmodel_.
20305
20306 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20307
20308 * config/s390/s390.c (s390_asm_trampoline_template): Comment
20309 instruction sizes.
20310 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
20311
20312 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20313
20314 PR target/47930
20315 * config/arm/arm.opt (marm): Document it.
20316 (mthumb): Reject negative variant.
20317
20318 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
20319
20320 PR target/48898
20321 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20322 Fix typo in "ccvt" variable name.
20323
20324 2011-05-06 Tristan Gingold <gingold@adacore.com>
20325
20326 PR target/48895
20327 * config/vms/vms-ar.c (main): Remove cwd variable.
20328
20329 2011-05-06 Jakub Jelinek <jakub@redhat.com>
20330
20331 PR debug/48902
20332 * var-tracking.c (prepare_call_arguments): Move else before #endif.
20333
20334 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
20335
20336 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
20337 * gimplify.c (gimplify_switch_expr): Likewise.
20338 * omp-low.c (expand_omp_sections): Likewise.
20339 * tree-eh.c (lower_try_finally_switch): Likewise.
20340 (lower_eh_dispatch): Likewise.
20341 * tree.h (build_case_label): Declare.
20342 * tree.c (build_case_label): Define.
20343
20344 2011-05-05 Jason Merrill <jason@redhat.com>
20345
20346 PR c++/40975
20347 * tree-inline.c (copy_tree_r): Use copy_statement_list.
20348 (copy_statement_list): Don't recurse.
20349 * stor-layout.c (copy_self_referential_tree_r): Don't allow
20350 STATEMENT_LIST.
20351
20352 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20353
20354 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
20355 through from -mfpu= handling.
20356 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
20357
20358 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
20359
20360 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
20361 POST_MODIFY.
20362
20363 2011-05-05 Steve Ellcey <sje@cup.hp.com>
20364
20365 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
20366 for 11.31.
20367 (hppa[12]*-*-hpux11*): Ditto.
20368 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
20369 * config/ia64/hpux-unix2003.h: New.
20370 * config/pa/pa-hpux1131.opt: New.
20371 * config/pa/pa-hpux1131.h: New.
20372 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
20373 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
20374 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
20375
20376 2011-05-05 Jakub Jelinek <jakub@redhat.com>
20377
20378 PR debug/48853
20379 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
20380 instead of mode as 3rd argument to recursive call.
20381 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
20382 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
20383 VOIDmode.
20384 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
20385 don't give up if mode is Pmode and mem_mode is not VOIDmode.
20386 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
20387 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
20388
20389 2011-05-05 Julian Brown <julian@codesourcery.com>
20390
20391 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
20392 parenthesis in D-register case.
20393
20394 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20395
20396 * opt-functions.awk (var_type_struct): Handle Enum options.
20397 * optc-gen.awk: Don't check range of variables of character type.
20398 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
20399 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
20400 rs6000_sdata_name, rs6000_explicit_options): Remove.
20401 (rs6000_option_override_internal): Check for -malign-power here.
20402 Use global_options_set instead of rs6000_explicit_options.
20403 (rs6000_parse_fpu_option): Remove.
20404 (rs6000_handle_option): Access variables via opts and opts_set
20405 pointers. Use error_at and warning_at. Add fall-through
20406 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
20407 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
20408 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
20409 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
20410 here. Don't use rs6000_parse_fpu_option.
20411 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
20412 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
20413 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
20414 (mrecip=): Use Var.
20415 (mspe): Use Var and Save.
20416 (mtraceback=): Use Enum and Var.
20417 (rs6000_traceback_type): New Enum and EnumValue entries.
20418 (mfloat-gprs=): Use Enum, Var and Save.
20419 (rs6000_float_gprs): New Enum and EnumValue entries.
20420 (mlong-double-): use Var and Save.
20421 (msched-costly-dep=, minsert-sched-nops=): Use Var.
20422 (malign-): Use Enum and Var.
20423 (rs6000_alignment_flags): New Enum and EnumValue entries.
20424 (mfpu=): Use Enum.
20425 (fpu_type_t): New Enum and EnumValue entries.
20426 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20427 global_options_set instead of rs6000_explicit_options.
20428 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20429 global_options_set instead of rs6000_explicit_options.
20430 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20431 global_options_set instead of rs6000_explicit_options.
20432 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20433 global_options_set instead of rs6000_explicit_options.
20434 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
20435 global_options_set instead of rs6000_explicit_options.
20436 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20437 global_options_set instead of rs6000_explicit_options.
20438 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
20439 definition.
20440 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20441 global_options_set instead of rs6000_explicit_options.
20442 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
20443 (rs6000_cmodel): New Enum and EnumValue entries.
20444 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20445 global_options_set instead of rs6000_explicit_options.
20446 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
20447 (mtls-size=): Use Enum and Var.
20448 (rs6000_tls_size): New Enum and EnumValue entries.
20449
20450 2011-05-05 Michael Matz <matz@suse.de>
20451
20452 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
20453 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
20454 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
20455 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
20456 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
20457 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
20458 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
20459 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
20460 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
20461 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
20462 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
20463 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
20464 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
20465 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
20466 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
20467 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
20468
20469 2011-05-05 Richard Guenther <rguenther@suse.de>
20470
20471 * expmed.c (expand_variable_shift): Rename to ...
20472 (expand_shift_1): ... this. Take an expanded shift amount.
20473 For rotates recurse directly not building trees for the shift amount.
20474 (expand_variable_shift): Wrap around expand_shift_1.
20475 (expand_shift): Adjust.
20476
20477 2011-05-05 Jakub Jelinek <jakub@redhat.com>
20478
20479 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
20480
20481 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
20482
20483 * tree.h (get_pending_sizes): Remove prototype.
20484 (put_pending_size): Likewise.
20485 (put_pending_sizes): Likewise.
20486 * stor-layout.c (pending_sizes): Delete.
20487 (get_pending_sizes): Likewise.
20488 (put_pending_size): Likewise.
20489 (put_pending_sizes): Likewise.
20490 (variable_size): Do not call put_pending_size and tidy up.
20491 * function.h (struct function): Remove dont_save_pending_sizes_p.
20492 * lto-streamer-in.c (input_function): Do not stream it.
20493 * lto-streamer-out.c (output_function): Likewise.
20494 * tree-inline.c (initialize_cfun): Do not copy it.
20495 * c-decl.c (store_parm_decls): Do not set it.
20496 * omp-low.c (create_task_copyfn): Likewise.
20497 * tree-optimize.c (tree_rest_of_compilation): Likewise.
20498
20499 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
20500
20501 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
20502 conditions.
20503 (*movdf_internal): Ditto.
20504 (*movdf_internal_nointeger): Ditto.
20505 (*movsf_internal): Ditto.
20506
20507 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20508
20509 * c-decl.c (finish_decl): Don't call get_pending_sizes.
20510 (grokparm): Add parameter expr. Pass it to grokdeclarator.
20511 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
20512 (c_variable_size): Remove.
20513 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
20514 call put_pending_sizes.
20515 (get_parm_info): Add parameter expr. Use it to set
20516 arg_info->pending_sizes.
20517 (store_parm_decls): Use arg_info->pending_sizes instead or calling
20518 get_pending_sizes.
20519 * c-parser.c (c_parser_parms_declarator): Update call to
20520 c_parser_parms_list_declarator.
20521 (c_parser_parms_list_declarator): Take parameter expr. Update
20522 call to push_parm_decl. Update recursive call. Don't call
20523 get_pending_sizes. Update calls to get_parm_info.
20524 (c_parser_objc_method_definition): Update calls to
20525 c_parser_objc_method_decl and objc_start_method_definition.
20526 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
20527 (c_parser_objc_method_decl): Add parameter expr. Update call to
20528 grokparm.
20529 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
20530 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
20531 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
20532
20533 2011-05-05 Michael Hope <michael.hope@linaro.org>
20534
20535 PR pch/45979
20536 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
20537 __ARM_EABI__ hosts.
20538
20539 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20540
20541 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20542 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
20543 (spu_output_mi_thunk): New function.
20544
20545 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20546
20547 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
20548 targetm.asm_out.print_operand.
20549 * config/sol2.c: Include target.h.
20550
20551 2011-05-04 Jan Hubicka <jh@suse.cz>
20552
20553 * ipa-inline.c (reset_edge_caches): New function.
20554 (update_caller_keys): Add check_inlinablity_for; do not
20555 reset edge caches; remove now unnecesary loop.
20556 (update_callee_keys): Add comments; reset node_growth_cache of callee.
20557 (update_all_callee_keys): Likewise.
20558 (inline_small_functions): Sanity check cache; update code
20559 recomputing it.
20560
20561 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
20562
20563 PR rtl-optimization/47612
20564 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
20565 as the last insn of the sequence to be moved.
20566
20567 2011-05-04 Tobias Burnus <burnus@net-b.de>
20568
20569 PR fortran/48864
20570 * doc/invoke.texi (Ofast): Document that it
20571 enables Fortran's -fno-protect-parens.
20572
20573 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
20574
20575 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
20576
20577 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
20578
20579 * stor-layout.c (variable_size): Do not issue errors.
20580
20581 2011-05-04 Richard Guenther <rguenther@suse.de>
20582
20583 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
20584 for array-ref indices.
20585 (tree_coverage_counter_addr): Likewise.
20586 (build_fn_info_type): Use size_int for index types.
20587 (build_gcov_info): Likewise.
20588
20589 2011-05-04 Richard Guenther <rguenther@suse.de>
20590
20591 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
20592 to build_int_cst.
20593 * c-typeck.c (really_start_incremental_init): Use bitsize_int
20594 for constructor indices.
20595 (push_init_level): Likewise.
20596
20597 2011-05-04 Richard Guenther <rguenther@suse.de>
20598
20599 * explow.c (promote_mode): Move variable declarations before code.
20600
20601 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
20602
20603 * tree.h (build_function_type_array): Declare.
20604 (build_varargs_function_type_array): Declare.
20605 (build_function_type_vec, build_varargs_function_type_vec): Define.
20606 * tree.c (build_function_type_array_1): New function.
20607 (build_function_type_array): New function.
20608 (build_varargs_function_type_array): New function.
20609
20610 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
20611
20612 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
20613 before setting STMT_VINFO_TYPE.
20614
20615 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20616
20617 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
20618 instead of spu_pass_by_reference.
20619
20620 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20621
20622 * calls.c (emit_library_call_value_1): Invoke
20623 promote_function_mode hook on libcall arguments.
20624 * explow.c (promote_function_mode, promote_mode): Handle TYPE
20625 argument being NULL.
20626 * targhooks.c (default_promote_function_mode): Lisewise.
20627 * config/s390/s390.c (s390_promote_function_mode): Likewise.
20628 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
20629
20630 * doc/tm.texi: Document that TYPE argument might be NULL.
20631
20632 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20633
20634 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
20635
20636 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20637
20638 From Bernd Schmidt
20639 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
20640
20641 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20642
20643 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
20644 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
20645 Move ...
20646 * mips-tfile.c: ... here.
20647 Don't include coretypes.h, tm.h, filenames.h.
20648 (saber_stop): Remove definition and all calls.
20649 [__SABER__]: Remove.
20650 (__LINE__): Remove default.
20651 (Size_t, Ptrdiff_t): Remove definitions.
20652 Replace by size_t, ptrdiff_t.
20653 [!MIPS_DEBUGGING_INFO]: Remove.
20654 (SHASH_SIZE, THASH_SIZE): Remove defaults.
20655 (progname): Add const.
20656 (STATIC): Remove.
20657 Replace all uses by static.
20658 (ALIGN_SYMTABLE_OFFSET): Remove default.
20659 * mips-tdump.c: Don't include coretypes.h, tm.h.
20660 Remove !MIPS_IS_STAB guard.
20661 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
20662 $(TM_H), filenames.h dependencies.
20663 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
20664
20665 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20666
20667 From Jie Zhang
20668 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
20669 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
20670
20671 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20672
20673 From Bernd Schmidt
20674 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
20675 account and save/restore RETS.
20676 (PROFILE_BEFORE_PROLOGUE): Define.
20677 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
20678 the push insn to use predecrement.
20679
20680 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20681
20682 From Jie Zhang
20683 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
20684
20685 2011-05-04 Nick Clifton <nickc@redhat.com>
20686
20687 * config/mn10300/mn10300.c: Include cfgloop.h.
20688 (DUMP): New macro.
20689 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
20690 Lcc or a FLcc insn into the instruction stream.
20691 (mn10300_block_contains_call): New function. Returns true if the
20692 given basic block contains a CALL insn.
20693 (mn10300_loop_contains_call_insn): New function. Returns true if
20694 the given loop contains a CALL insn.
20695 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
20696 to use the SETLB and Lcc or FLcc insns.
20697 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
20698 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
20699 * config/mn10300/mn10300.opt (msetlb): New option. Used to
20700 disable the SETLB optimization.
20701 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
20702 __SETLB__ or __NO_SETLB__.
20703 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
20704 (movsf_internal): Handle MDR register.
20705 (cmpsi): Make visible.
20706 (setlb): New pattern.
20707 (Lcc): New pattern.
20708 (FLcc): New pattern.
20709
20710 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
20711
20712 PR target/48860
20713 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
20714 for reg<->xmm moves.
20715 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
20716 (vec_concatv2di_rex64_sse): Ditto.
20717 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
20718 (*vec_extractv2di_1_rex64): Ditto.
20719
20720 Revert:
20721 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
20722
20723 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
20724 reg<->xmm moves.
20725 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
20726
20727 2011-05-04 Richard Guenther <rguenther@suse.de>
20728
20729 * tree.h (int_const_binop): Remove notrunc argument.
20730 * fold-const.c (int_const_binop): Remove notrunc argument. Always
20731 create integer constants that are properly truncated.
20732 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
20733 (const_binop): Remove zero notrunc argument to int_const_binop.
20734 (size_binop_loc): Likewise.
20735 (fold_div_compare): Likewise.
20736 (maybe_canonicalize_comparison_1): Likewise.
20737 (fold_comparison): Likewise.
20738 (fold_binary_loc): Likewise.
20739 (multiple_of_p): Likewise.
20740 * expr.c (store_constructor): Likewise.
20741 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
20742 (maybe_fold_stmt_addition): Likewise.
20743 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
20744 * stor-layout.c (layout_type): Likewise.
20745 * tree-data-ref.c (tree_fold_divides_p): Likewise.
20746 * tree-sra.c (build_ref_for_offset): Likewise.
20747 (build_user_friendly_ref_for_offset): Likewise.
20748 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
20749 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20750 * tree-ssa-loop-niter.c (inverse): Likewise.
20751 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
20752 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
20753 * tree-switch-conversion.c (check_range): Likewise.
20754 (build_constructors): Likewise.
20755 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
20756 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
20757 (extract_range_from_assert): Likewise.
20758 (vrp_int_const_binop): Likewise.
20759 (extract_range_from_binary_expr): Likewise.
20760 (extract_range_from_unary_expr): Likewise.
20761 (check_array_ref): Likewise.
20762 (find_case_label_range): Likewise.
20763 (simplify_div_or_mod_using_ranges): Likewise.
20764 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
20765 comparing case labels for merging.
20766
20767 2011-05-03 Mark Wielaard <mjw@redhat.com>
20768
20769 * dwarf2out.c (debug_str_hash_forced): Removed.
20770 (gen_label_for_indirect_string): Removed.
20771 (get_debug_string_label): Removed.
20772 (AT_string_form): Generate label directly.
20773 (output_indirect_string): Test indirect_string_node for
20774 DW_FORM_strp instead of checking label and refcount.
20775 (prune_indirect_string): Removed.
20776 (prune_unused_types): Don't check debug_str_hash_forced or
20777 call prune_indirect_string.
20778
20779 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
20780
20781 PR other/48093
20782 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
20783
20784 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
20785
20786 PR debug/47994
20787 PR debug/47919
20788 * combine.c (try_combine): Skip debug insns at m_split tests.
20789
20790 2011-04-26 Mark Wielaard <mjw@redhat.com>
20791
20792 PR42288
20793 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
20794 when info_section_emitted.
20795
20796 2011-05-03 Joseph Myers <joseph@codesourcery.com>
20797
20798 * config/mips/mips-opts.h: New.
20799 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
20800 to mips-opts.h.
20801 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
20802 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
20803 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
20804 via opts pointer.
20805 * config/mips/mips.h (enum mips_code_readable_setting): Move to
20806 mips-opts.h.
20807 (mips_abi, mips_code_readable): Don't declare.
20808 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
20809 (mabi=): Use Enum and Var.
20810 (mips_abi): New Enum and EnumValue entries.
20811 (mcode-readable=): Use Enum and Var.
20812 (mips_code_readable_setting): New Enum and EnumValue entries.
20813 (mr10k-cache-barrier=): Use Enum and Var.
20814 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
20815
20816 2011-05-03 Jan Hubicka <jh@suse.cz>
20817
20818 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
20819 replace hash by pointer map.
20820 (cgraph_node_set_element_def, cgraph_node_set_element,
20821 const_cgraph_node_set_element, varpool_node_set_element_def,
20822 varpool_node_set_element, const_varpool_node_set_element): Remove.
20823 (free_cgraph_node_set, free_varpool_node_set): New function.
20824 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
20825 * tree-emutls.c: Free varpool node set.
20826 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
20827 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
20828 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
20829 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
20830 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
20831 Move here from ipa.c; implement using pointer_map
20832 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
20833 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
20834 debug_cgraph_node_set, varpool_node_set_new,
20835 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
20836 dump_varpool_node_set, debug_varpool_node_set):
20837 Move to ipa-uitls.c.
20838 * passes.c (ipa_write_summaries): Update.
20839
20840 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20841
20842 From Mike Frysinger:
20843 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
20844 bf542/bf544/bf547/bf548/bf549.
20845
20846 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
20847
20848 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
20849
20850 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20851
20852 From Bernd Schmidt:
20853 * config/bfin/bfin.md (MOVCC): New mode_macro.
20854 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
20855 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
20856 comments from generated assembly.
20857
20858 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20859
20860 From Bernd Schmidt
20861 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
20862 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
20863 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
20864 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
20865 * config/bfin/lib1funcs.asm (___muldi3): New function.
20866
20867 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20868
20869 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
20870 build_function_type_list instead of build_function_type.
20871 Rearrange initialization of `args' to do so.
20872
20873 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20874
20875 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
20876 instead of build_function_type.
20877
20878 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20879
20880 * config/rs6000/rs6000.c (spe_init_builtins): Call
20881 build_function_type_list instead of build_function_type.
20882 (paired_init_builtins, altivec_init_builtins): Likewise.
20883 (builtin_function_type): Likewise.
20884
20885 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20886
20887 * config/sh/sh.c (sh_media_init_builtins): Call
20888 build_function_type_list instead of build_function_type.
20889
20890 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20891
20892 * config/sparc/sparc.c (sparc_file_end): Call
20893 build_function_type_list instead of build_function_type.
20894
20895 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20896
20897 * config/alpha/alpha.c (alpha_init_builtins): Call
20898 build_function_type_list instead of build_function_type.
20899
20900 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20901
20902 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
20903 build_function_type_list instead of build_function_type.
20904
20905 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20906
20907 * config/iq2000/i2000.c (iq2000_init_builtins): Call
20908 build_function_type_list instead of build_function_type.
20909 Delete `endlink' variable.
20910
20911 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20912
20913 * config/avr/avr.c (avr_init_builtins): Call
20914 build_function_type_list instead of build_function_type.
20915
20916 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20917
20918 * config/picochip/picochip.c (picochip_init_builtins): Call
20919 build_function_type_list instead of build_function_type.
20920 Delete `endlink' variable.
20921
20922 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20923
20924 * config/bfin/bfin.c (bfin_init_builtins): Call
20925 build_function_type_list instead of build_function_type.
20926
20927 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20928
20929 From Bernd Schmidt
20930 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
20931 that's not CONST_INT. Seemingly redundant check is due to PR39768.
20932
20933 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20934
20935 From Jie Zhang:
20936 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
20937 libbffastfp overrides libgcc when -mfast-fp.
20938
20939 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20940
20941 Originally from Bernd Schmidt
20942 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
20943 * config/bfin/bfin.c (override_options): Test it and error if
20944 TARGET_FDPIC.
20945
20946 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20947
20948 Originally From Bernd Schmidt
20949 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
20950 FD-PIC.
20951
20952 2011-05-03 Jeff Law <law@redhat.com>
20953
20954 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
20955 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
20956 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
20957 than accessing AUX field directly. Free the AUX field before
20958 clearing it.
20959 (thread_block, thread_through_loop_header): Likewise.
20960 (thread_single_edge, mark_threaded_blocks): Likewise.
20961 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
20962 (register_jump_thread): Do not attempt to thread to a NULL edge.
20963
20964 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20965
20966 * function.c (init_function_start): Call decide_function_section.
20967 * varasm.c (decide_function_section): New function.
20968 (assemble_start_function): When not using
20969 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
20970 or first_function_block_is_cold.
20971 * rtl.h (decide_function_section): Declare.
20972
20973 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
20974 Jakub Jelinek <jakub@redhat.com>
20975
20976 PR target/48774
20977 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
20978 only succeed if req_mode is the same as set_mode.
20979
20980 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20981
20982 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
20983 * genemit.c (gen_exp): Handle RETURN.
20984 * emit-rtl.c (verify_rtx_sharing): Likewise.
20985 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
20986 * rtl.c (copy_rtx): RETURN is shared.
20987 * rtl.h (enum global_rtl_index): Add GR_RETURN.
20988 (ret_rtx): New.
20989 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
20990 * config/s390/s390.c (s390_emit_epilogue): Likewise.
20991 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
20992 * config/cris/cris.c (cris_expand_return): Likewise.
20993 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
20994 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
20995 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
20996 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
20997 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
20998 Likewise.
20999 * config/v850/v850.c (expand_epilogue): Likewise.
21000 * config/bfin/bfin.c (bfin_expand_call): Likewise.
21001 * config/arm/arm.md (epilogue): Likewise.
21002 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
21003 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
21004 variable to ret_reg.
21005
21006 2011-05-03 Richard Guenther <rguenther@suse.de>
21007
21008 PR lto/48846
21009 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
21010 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
21011 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
21012
21013 2011-05-03 Richard Guenther <rguenther@suse.de>
21014
21015 * c-decl.c (grokdeclarator): Instead of looking at
21016 TREE_OVERFLOW check if the constant fits in the index type.
21017
21018 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
21019
21020 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
21021 (vec_store_lanes<mode><mode>): Likewise.
21022
21023 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
21024
21025 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
21026 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
21027 convert_optab_index values.
21028 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
21029 * genopinit.c (optabs): Initialize the new optabs.
21030 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
21031 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
21032 (expand_STORE_LANES): New functions.
21033 * tree.h (build_array_type_nelts): Declare.
21034 * tree.c (build_array_type_nelts): New function.
21035 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
21036 (vect_model_load_cost): Likewise.
21037 (vect_store_lanes_supported, vect_load_lanes_supported)
21038 (vect_record_strided_load_vectors): Declare.
21039 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
21040 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
21041 (vect_transform_strided_load): Split out statement recording into...
21042 (vect_record_strided_load_vectors): ...this new function.
21043 * tree-vect-stmts.c (create_vector_array, read_vector_array)
21044 (write_vector_array, create_array_ref): New functions.
21045 (vect_model_store_cost): Add store_lanes_p argument.
21046 (vect_model_load_cost): Add load_lanes_p argument.
21047 (vectorizable_store): Try to use store-lanes functions for
21048 interleaved stores.
21049 (vectorizable_load): Likewise load-lanes and loads.
21050 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
21051 to vect_model_store_cost.
21052 (vect_build_slp_tree): Likewise vect_model_load_cost.
21053
21054 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
21055
21056 * hooks.h (hook_bool_mode_uhwi_false): Declare.
21057 * hooks.c (hook_bool_mode_uhwi_false): New function.
21058 * target.def (array_mode_supported_p): New hook.
21059 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
21060 * doc/tm.texi: Regenerate.
21061 * stor-layout.c (mode_for_array): New function.
21062 (layout_type): Use it.
21063 * config/arm/arm.c (arm_array_mode_supported_p): New function.
21064 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
21065
21066 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
21067
21068 PR target/48723
21069 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
21070 for -fstack-check if the size to allocate is negative.
21071
21072 2011-05-02 Lawrence Crowl <crowl@google.com>
21073
21074 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
21075 (timevar_cond_start): New for starting a timer only when it is not
21076 already running.
21077 (timevar_cond_stop): New for stopping a timer when it was not already
21078 running.
21079
21080 * timevar.c (timevar_stop): Enable start/stop timers to start again.
21081 (timevar_cond_start): New as above.
21082 (timevar_cond_stop): New as above.
21083
21084 * timevar.def: Add start/stop timers for compiler phases,
21085 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
21086 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
21087 and TV_PHASE_FINALIZE.
21088 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
21089 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
21090 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
21091 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
21092 Make unused TV_OVERLOAD into a start/stop timer.
21093
21094 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
21095 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
21096 to indicate that they are start/stop timers.
21097
21098 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
21099 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
21100 Move initialization to do_compile.
21101 (do_compile): Add initialization from above.
21102 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
21103
21104 * c-decl.c (c_write_global_declarations): Add start/stop of
21105 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
21106
21107 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
21108 or TV_PARSE_INLINE, as appropriate.
21109 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
21110 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
21111
21112 2011-05-02 Jason Merrill <jason@redhat.com>
21113
21114 PR c++/40975
21115 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
21116
21117 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
21118
21119 PR c/35445
21120 * c-decl.c (finish_decl): Only create a composite if the types are
21121 compatible.
21122
21123 2011-05-02 Joseph Myers <joseph@codesourcery.com>
21124
21125 * config/fr30/fr30-protos.h (Mmode): Don't define.
21126 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
21127 definition where used.
21128 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
21129 define. Expand definitions where used.
21130 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
21131 Expand definitions where used.
21132 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
21133 rx_function_arg, rx_function_arg_advance,
21134 rx_function_arg_boundary): Expand definitions of those macros.
21135 * config/v850/v850-protos.h (Mmode): Don't define. Expand
21136 definition where used.
21137
21138 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
21139
21140 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
21141 reg<->xmm moves.
21142 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
21143 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
21144 with *movv2sf_internal_rex64_avx.
21145 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
21146 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
21147 Use %v prefix in insn mnemonic to handle TARGET_AVX.
21148 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
21149 "vex" in "prefix" attribute calculation.
21150 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
21151
21152 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
21153
21154 PR target/47951
21155 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
21156 inputs match the output.
21157
21158 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
21159
21160 PR target/47955
21161 * config/m68k/m68k.c (m68k_expand_prologue): Set
21162 current_function_static_stack_size.
21163
21164 2011-05-02 Jan Hubicka <jh@suse.cz>
21165
21166 * lto-streamer.c (lto_streamer_cache_insert_1,
21167 lto_streamer_cache_lookup, lto_streamer_cache_create,
21168 lto_streamer_cache_delete): Use pointer map instead of hashtable.
21169 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
21170
21171 2011-05-02 Joseph Myers <joseph@codesourcery.com>
21172
21173 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
21174 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
21175 config/m68k/t-opts: New files.
21176 * config/m68k/m68k-tables.opt: New file (generated).
21177 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
21178 extra_options and m68k/t-opts to tmake_file.
21179 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
21180 (all_isas): Initialize using m68k-isas.def.
21181 (all_microarchs): Initialize using m68k-microarchs.def.
21182 (m68k_find_selection): Remove.
21183 (m68k_handle_option): Don't assert that global structures are in
21184 use. Use error_at. Access variables via opts pointer. Don't
21185 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
21186 directly for -m68020-40 and -m68020-60.
21187 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
21188 m68k_tune_entry here.
21189 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
21190 to m68k-opts.h.
21191 (m68k_library_id_string): Remove declaration.
21192 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
21193 (m68k_library_id_string): New Variable.
21194 (march=, mcpu=, mtune=): Use Enum and Var.
21195
21196 2011-05-02 Richard Guenther <rguenther@suse.de>
21197
21198 * varasm.c (output_constructor_regular_field): Compute zero-based
21199 index with double-ints. Make sure to ICE instead of producing
21200 wrong code.
21201 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
21202 in asserts. Properly use a signed type.
21203
21204 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
21205
21206 * config/i386/sse.md (V): New mode iterator.
21207 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
21208 TARGET_SSE2.
21209 (V_256): Rename from AVX256MODE.
21210 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
21211 condition to all users.
21212 (VF1): Ditto.
21213 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
21214 condition to all users.
21215 (VF_128): Make V4SF mode unconditional.
21216 (VF_256): Rename from AVX256MODEF2P.
21217 (VI4F_128): Rename from SSEMODE4S.
21218 (VI8F_128): Rename from SSEMODE2D.
21219 (VI4F_256): Rename from AVX256MODE8P.
21220 (VI8F_256): Rename from AVX256MODE4P.
21221 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
21222 (ssescalarmodesuffix): Remove SF and DF modes.
21223 (SSEMODE124): Remove.
21224 (SSEMODE1248): Ditto.
21225 (SSEMODEF2P): Ditto.
21226 (AVXMODEF2P): Ditto.
21227 (AVXMODEFDP): Ditto.
21228 (AVXMODEFSP): Ditto.
21229 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
21230 unconditional.
21231 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
21232 unconditional.
21233 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
21234 xop_pcmov_<mode>256. Use V mode iterator.
21235
21236 Adjust RTX patterns globally for renamed mode attributes.
21237
21238 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21239
21240 * haifa-sched.c (sched_emit_insn): Emit insn before first
21241 non-scheduled insn. Inform back-end about new insn. Add
21242 new insn to scheduled_insns list.
21243
21244 2011-05-02 Richard Guenther <rguenther@suse.de>
21245
21246 PR tree-optimization/48822
21247 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
21248 (process_scc): Indicate which iteration we start.
21249
21250 2011-05-02 Jan Hubicka <jh@suse.cz>
21251
21252 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
21253 (lto_section_overrun): New.
21254 * lto-section-out.c (append_block): Rename to ...
21255 (lto_append_block): ... this one; export.
21256 (lto_output_1_stream): Move lto lto-streamer.h
21257 (lto_output_data_stream): Update.
21258 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
21259 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
21260 functions.
21261
21262 2011-05-02 Richard Guenther <rguenther@suse.de>
21263
21264 * tree.c (tree_code_counts): New global array.
21265 (record_node_allocation_statistics): Count individual tree codes.
21266 (dump_tree_statistics): Dump individual code stats.
21267
21268 2011-05-01 Jan Hubicka <jh@suse.cz>
21269
21270 * ipa-inline.c (caller_growth_limits): Fix thinko when
21271 looking for largest stack frame.
21272 * ipa-inline.h (dump_inline_summary): Declare.
21273 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
21274 on stack usage.
21275 (dump_inline_summary): Export.
21276 (debug_inline_summary): Declare as DEBUG_FUNCTION.
21277
21278 2011-05-01 Anatoly Sokolov <aesok@post.ru>
21279
21280 * reginfo.c (memory_move_cost): Change rclass argument type form
21281 'enum reg_class' to reg_class_t.
21282 * reload.h (memory_move_cost): Update prototype.
21283 * postreload.c reload_cse_simplify_set): Change type dclass var to
21284 reg_class_t.
21285 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
21286 Update prototype.
21287 (ira_allocate_and_set_costs): Change aclass argument type form
21288 'enum reg_class' to reg_class_t.
21289 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
21290 Change aclass argument type to reg_class_t.
21291 (update_conflict_hard_reg_costs): Change type aclass and pref vars
21292 to reg_class_t.
21293 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
21294 memory_move_cost call.
21295
21296 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
21297 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
21298 Change type tmp var to reg_class_t.
21299
21300 2011-04-30 Jan Hubicka <jh@suse.cz>
21301
21302 * ipa-inline.c (can_inline_edge_p): Disregard limits when
21303 inlining into function with flatten attribute.
21304 (want_inline_small_function_p): Be more realistic about inlining
21305 cold calls where callee size grows.
21306
21307 2011-04-30 Jan Hubicka <jh@suse.cz>
21308
21309 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
21310 flags.
21311
21312 2011-04-30 Anatoly Sokolov <aesok@post.ru>
21313
21314 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
21315 PRINT_OPERAND_PUNCT_VALID_P): Remove.
21316 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
21317 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
21318 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21319 (print_operand): Rename to...
21320 (sparc_print_operand): ...this. Make static. Adjust
21321 sparc_print_operand function call.
21322 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
21323 functions.
21324
21325 2011-04-30 Jan Hubicka <jh@suse.cz>
21326
21327 PR middle-end/48752
21328 * ipa-inline.c (early_inliner): Disable when doing late
21329 addition of function.
21330
21331 2011-04-30 Jakub Jelinek <jakub@redhat.com>
21332
21333 * dwarf2out.c (get_address_mode): New inline.
21334 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
21335 if not dwarf_strict emit
21336 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
21337 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
21338 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
21339 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
21340 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
21341 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
21342 mem_loc_descriptor callers.
21343 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21344 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
21345 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
21346 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
21347 (base_types): New variable.
21348 (get_base_type_offset, calc_base_type_die_sizes,
21349 base_type_for_mode, mark_base_types, base_type_cmp,
21350 move_marked_base_types): New functions.
21351 (calc_die_sizes): Assert that die_offset is 0 or equal to
21352 next_die_offset.
21353 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
21354 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
21355 callers. If not dwarf_strict, call mem_loc_descriptor even for
21356 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
21357 (gen_subprogram_die): Don't give up on call site parameters
21358 with non-integral or large integral modes. Adjust
21359 mem_loc_descriptor callers.
21360 (prune_unused_types): Call prune_unused_types_mark on base_types
21361 vector entries.
21362 (resolve_addr): Call mark_base_types.
21363 (dwarf2out_finish): Call move_marked_base_types.
21364
21365 PR tree-optimization/48809
21366 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
21367 type.
21368 (gen_inbound_check): Don't compute index_expr - range_min in utype
21369 again, instead reuse SSA_NAME initialized in build_arrays.
21370 Remove two useless gsi_for_stmt calls.
21371
21372 2011-04-29 Jeff Law <law@redhat.com>
21373
21374 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
21375
21376 2011-04-29 Martin Jambor <mjambor@suse.cz>
21377
21378 * cgraph.h (cgraph_postorder): Remove declaration.
21379 * ipa-utils.h (ipa_free_postorder_info): Declare.
21380 (ipa_reverse_postorder): Likewise.
21381 * cgraphunit.c: Include ipa-utils.h.
21382 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
21383 * ipa-inline.c: Include ipa-utils.h.
21384 (ipa_inline): Update call to ipa_reverse_postorder.
21385 * ipa-pure-const.c (propagate_pure_const): Update call to
21386 ipa_reduced_postorder and ipa_print_order. Call
21387 ipa_free_postorder_info to clean up.
21388 (propagate_nothrow): Likewise.
21389 * ipa-reference.c (propagate): Removed a useless call to
21390 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
21391 and ipa_print_order. Call ipa_free_postorder_info to clean up.
21392 * ipa.c: Include ipa-utils.h.
21393 (ipa_profile): Update call to ipa_reverse_postorder.
21394 (cgraph_postorder): Moved to...
21395 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
21396 (ipa_utils_print_order): Renamed to ipa_print_order.
21397 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
21398 comments.
21399 (ipa_free_postorder_info): New function.
21400 * passes.c: Include ipa-utils.h.
21401 (do_per_function_toporder): Update call to ipa_reverse_postorder.
21402 (ipa_write_summaries): Likewise.
21403 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
21404 (cgraphunit.o): Likewise.
21405 (ipa.o): Likewise.
21406 (ipa-inline.o): Likewise.
21407
21408 2011-04-29 Jan Hubicka <jh@suse.cz>
21409
21410 * ipa-inline.h (clause_t): Turn into unsigned int.
21411 * ipa-inline-analysis.c (add_clause): Do more simplification.
21412 (and_predicates): Shortcut more cases.
21413 (predicates_equal_p): Move forward; check that clauses are properly
21414 ordered.
21415 (or_predicates): Shortcut more cases.
21416 (edge_execution_predicate): Rewrite as...
21417 (set_cond_stmt_execution_predicate): ... this function; handle
21418 __builtin_constant_p.
21419 (set_switch_stmt_execution_predicate): New .
21420 (compute_bb_predicates): New.
21421 (will_be_nonconstant_predicate): Update TODO.
21422 (estimate_function_body_sizes): Use compute_bb_predicates
21423 and free them later, always try to estimate if stmt is constant.
21424 (estimate_time_after_inlining, estimate_size_after_inlining):
21425 Gracefully handle optimized out edges.
21426 (read_predicate): Fix off by one error.
21427
21428 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
21429
21430 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
21431
21432 2011-04-27 Xinliang David Li <davidxl@google.com>
21433
21434 * tree-profile.c (init_ic_make_global_vars): Set
21435 tls attribute on ic vars.
21436 * coverage.c (coverage_end_function): Initialize
21437 function_list with zero.
21438
21439 2011-04-29 Richard Guenther <rguenther@suse.de>
21440
21441 * builtins.c (fold_builtin_classify_type): Use integer_type_node
21442 for the type of the result.
21443 (fold_builtin_isascii): Likewise.
21444 (fold_builtin_toascii): Use integer_type_node where appropriate.
21445 (fold_builtin_logb): Likewise.
21446 (fold_builtin_frexp): Likewise.
21447 (fold_builtin_strstr): Likewise.
21448 (fold_builtin_strpbrk): Likewise.
21449 (fold_builtin_fputs): Likewise.
21450 (fold_builtin_sprintf): Likewise.
21451 (fold_builtin_snprintf): Likewise.
21452 (fold_builtin_printf): Likewise.
21453 (do_mpfr_remquo): Use a proper type for the assigned constant.
21454 (do_mpfr_lgamma_r): Likewise.
21455 * dwarf2out.c (resolve_one_addr): Use size_int.
21456 * except.c (init_eh): Likewise.
21457 (assign_filter_values): Use integer_type_node for filter values.
21458 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
21459 indices.
21460 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
21461 for EH region numbers.
21462 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
21463 for the shift amount.
21464
21465 2011-04-29 Richard Guenther <rguenther@suse.de>
21466
21467 * expr.h (expand_shift): Rename to ...
21468 (expand_variable_shift): ... this.
21469 (expand_shift): Take a constant shift amount.
21470 * expmed.c (expand_shift): Rename to ...
21471 (expand_variable_shift): ... this.
21472 (expand_shift): New wrapper around expand_variable_shift.
21473 * expr.c (convert_move, emit_group_load_1, emit_group_store,
21474 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
21475 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
21476 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
21477 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
21478 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
21479 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
21480 emit_store_flag_1, emit_store_flag): Likewise.
21481 * builtins.c (expand_builtin_signbit): Likewise.
21482 * calls.c (load_register_parameters): Likewise.
21483 * function.c (assign_parm_setup_block): Likewise.
21484 * lower-subreg.c (resolve_shift_zext): Likewise.
21485 * optabs.c (widen_bswap, expand_abs_nojump,
21486 expand_one_cmpl_abs_nojump, expand_float): Likewise.
21487 * spu/spu.c (spu_expand_extv): Likewise.
21488 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
21489
21490 2011-04-29 Richard Guenther <rguenther@suse.de>
21491
21492 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
21493 for the remapped region number.
21494 * predict.c (build_predict_expr): Use integer_type_node for the
21495 predict kind.
21496 * fold-const.c (fold_binary_loc): Use integer_type_node for
21497 the shift amount. Use a proper type for the PLUS_EXPR operand.
21498
21499 2011-04-29 Michael Matz <matz@suse.de>
21500
21501 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
21502 other trees that just builtins.
21503 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
21504
21505 2011-04-29 Richard Guenther <rguenther@suse.de>
21506
21507 * tree-nested.c (get_trampoline_type): Use size_int.
21508 (get_nl_goto_field): Likewise.
21509 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
21510 for all indexes.
21511 (lower_eh_constructs_2): Likewise.
21512 (lower_resx): Likewise.
21513 (lower_eh_dispatch): Likewise.
21514 * tree-mudflap.c (mf_build_string): Use size_int.
21515 (mudflap_register_call): Use integer_type_node for the flag.
21516 (mudflap_enqueue_constant): Use size_int.
21517 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
21518 instead of rebuilding it.
21519
21520 2011-04-29 Richard Guenther <rguenther@suse.de>
21521
21522 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
21523 Handle OBJ_TYPE_REF.
21524 (find_func_aliases_for_call): Use it more consistently.
21525
21526 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
21527
21528 * haifa-sched.c (last_nondebug_scheduled_insn): New.
21529 (rank_for_schedule): Use it.
21530 (schedule_block): Set it.
21531
21532 2011-04-28 David Li <davidxl@google.com>
21533
21534 * tree.c (crc32_string): Use crc32_byte.
21535 (crc32_byte): New function.
21536 * tree.h (crc32_byte): New function.
21537 * gcov.c (read_graph_file): Handle new cfg_cksum.
21538 (read_count_file): Ditto.
21539 * profile.c (instrument_values): Ditto.
21540 (get_exec_counts): Ditto.
21541 (read_profile_edge_counts): Ditto.
21542 (compute_branch_probabilities): Ditto.
21543 (compute_value_histograms): Ditto.
21544 (branch_prob): Ditto.
21545 (end_branch_prob): Ditto.
21546 * coverage.c (read_counts_file): Ditto.
21547 (get_coverage_counts): Ditto.
21548 (tree_coverage_counter_addr): Ditto.
21549 (coverage_checksum_string): Ditto.
21550 (coverage_begin_output): Ditto.
21551 (coverage_end_function): Ditto.
21552 (build_fn_info_type): Ditto.
21553 (build_fn_info_value): Ditto.
21554 * libgcov.c (gcov_exit): Ditto.
21555 * gcov-dump.c (tag_function): Ditto.
21556 (compute_checksum): Remove.
21557
21558 2011-04-29 Alan Modra <amodra@gmail.com>
21559
21560 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21561 unspec plus offset. Tidy macho code.
21562
21563 2011-04-29 Martin Jambor <mjambor@suse.cz>
21564
21565 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
21566 node instead of a decl. Update all callers.
21567 * cgraph.h: Update declaration.
21568
21569 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
21570
21571 PR tree-optimization/48765
21572 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
21573 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
21574 to indicate if loop aware SLP is being used. Scan the statements
21575 and update the vectorization factor according to the type of
21576 vectorization before statement analysis.
21577 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
21578 pass it to vect_analyze_loop_operations.
21579 (vectorizable_reduction): Set number of copies to 1 in case of pure
21580 SLP statement.
21581 * tree-vect-stmts.c (vectorizable_conversion,
21582 vectorizable_assignment, vectorizable_shift,
21583 vectorizable_operation, vectorizable_type_demotion,
21584 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
21585 Likewise.
21586 (vectorizable_condition): Move the check that it is not SLP
21587 vectorization before the number of copies check.
21588 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
21589 to vectorize the loop using SLP.
21590
21591 2011-04-28 Jakub Jelinek <jakub@redhat.com>
21592
21593 PR middle-end/48597
21594 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
21595 inline asm.
21596
21597 2011-04-28 Joseph Myers <joseph@codesourcery.com>
21598
21599 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
21600 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
21601 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21602 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21603 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
21604 linux*.h headers.
21605 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
21606 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21607 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21608 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21609 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21610 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
21611 REG_NAME.
21612 * config/i386/linux.h (REG_NAME): Don't define.
21613 * config/i386/linux64.h (REG_NAME): Don't define.
21614 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
21615 Undefine before defining.
21616
21617 2011-04-28 Jan Hubicka <jh@suse.cz>
21618
21619 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
21620 nonconstant_names array.
21621 (estimate_function_body_sizes): Build nonconstant_names array; handle
21622 BUILT_IN_CONSTANT_P.
21623
21624 2011-04-28 Richard Guenther <rguenther@suse.de>
21625
21626 PR bootstrap/48804
21627 Revert
21628 2011-04-28 Richard Guenther <rguenther@suse.de>
21629
21630 * tree-ssa-structalias.c (solve_constraints): Build succ graph
21631 as late as possible.
21632
21633 2011-04-28 Richard Guenther <rguenther@suse.de>
21634
21635 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
21636 (debug_constraint): Do it here.
21637 (dump_constraints): And here.
21638 (rewrite_constraints): And here.
21639 (dump_constraint_edge): Remove.
21640 (dump_constraint_graph): Rewrite to produce DOT output.
21641 (solve_constraints): Build succ graph as late as possible.
21642 Dump constraint graphs before and after solving.
21643
21644 2011-04-28 Richard Guenther <rguenther@suse.de>
21645
21646 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21647 New function split out from ...
21648 (find_func_aliases): ... here. Call it.
21649 (find_func_aliases_for_call): Likewise.
21650
21651 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
21652
21653 * internal-fn.h (internal_fn_name_array): Declare.
21654 (internal_fn_flags_array): Likewise.
21655
21656 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
21657
21658 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
21659 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
21660 Move from sse.md.
21661 (ssemodefsuffix): Remove.
21662 (ssevecmodesuffix): New mode attribute.
21663 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
21664 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21665 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21666 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21667 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
21668 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
21669 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
21670 ssemodesuffix mode attribute.
21671 (float splitters): Use ssevecmodesuffix mode attribute.
21672 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
21673 (sseinsmode): Rename from avxvecmode.
21674 (avxsizesuffix): Rename from avxmodesuffix.
21675 (sseintvecmode): Rename from avxpermvecmode.
21676 (ssedoublevecmode): Rename from ssedoublesizemode.
21677 (ssehalfvecmode): Rename from avxhalfvecmode.
21678 (ssescalarmode): Rename from avxscalarmode.
21679 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
21680 templates for ssemodesuffix mode attribute.
21681 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
21682 mode attribute.
21683
21684 Adjust RTX patterns globally for renamed mode attributes.
21685
21686 2011-04-27 Jan Hubcika <jh@suse.cz>
21687
21688 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
21689 * ipa-inline-analysis.c: Include alloc-pool.h.
21690 (edge_predicate_pool): New.
21691 (trye_predicate_p): New function
21692 (false_predicate_p): New function.
21693 (add_clause): Sanity check that false clauses are "optimized";
21694 never add clauses to predicate that is already known to be false.
21695 (and_predicate): Use flase_predicate_p.
21696 (evaulate_predicate): Rename to ...
21697 (evaluate_predicate): ... this one; update all callers; assert
21698 that false is not listed among possible truths.
21699 (dump_predicate): Use true_predicate_p.
21700 (account_size_time): Use false_predicate_p.
21701 (evaulate_conditions_for_edge): Rename to ...
21702 (evaluate_conditions_for_edge) ... this one.
21703 (edge_set_predicate): New function.
21704 (inline_edge_duplication_hook): Duplicate edge predicates.
21705 (inline_edge_removal_hook): Free edge predicates.
21706 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
21707 (dump_inline_summary): Update.
21708 (estimate_function_body_sizes): Set edge predicates.
21709 (estimate_calls_size_and_time): Handle predicates.
21710 (estimate_callee_size_and_time): Update.
21711 (remap_predicate): Add toplev_predicate; update comment.
21712 (remap_edge_predicates): New function.
21713 (inline_merge_summary): Compute toplev predicate; update.
21714 (read_predicate): New function.
21715 (read_inline_edge_summary): Use it.
21716 (inline_read_section): Likewise.
21717 (write_predicate): New function.
21718 (write_inline_edge_summary): Use it.
21719 (inline_write_summary): Likewise.
21720 (inline_free_summary): Free alloc pool and edge summary vec.
21721
21722 2011-04-27 Richard Guenther <rguenther@suse.de>
21723
21724 * tree-ssa-structalias.c (changed_count): Remove.
21725 (changed): Use a bitmap.
21726 (unify_nodes): Adjust.
21727 (do_sd_constraint): Likewise.
21728 (do_ds_constraint): Likewise.
21729 (do_complex_constraint): Likewise.
21730 (solve_graph): Likewise.
21731
21732 2011-04-27 Jan Hubicka <jh@suse.cz>
21733
21734 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
21735
21736 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
21737
21738 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
21739 (avx_vperm2f128_*_operand): Ditto.
21740 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
21741 Use avx_vpermilp_parallel in insn condition.
21742 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
21743 Use avx_vperm2f128_parallel in insn condition.
21744
21745 2011-04-27 Richard Guenther <rguenther@suse.de>
21746
21747 * Makefile.in (tree-ssa-structalias.o): Remove
21748 gt-tree-ssa-structalias.h dependency.
21749 (GTFILES): Remove tree-ssa-structalias.c.
21750 * tree.c (allocate_decl_uid): New function.
21751 (make_node_stat): Use it.
21752 (copy_node_stat): Likewise.
21753 * tree.h (allocate_decl_uid): Declare.
21754 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
21755 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
21756 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
21757 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
21758 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
21759 (struct heapvar_map): Likewise.
21760 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
21761 heapvar_insert): Likewise.
21762 (make_heapvar_for): Rename to ...
21763 (make_heapvar): ... this. Simplify.
21764 (fake_var_decl_obstack): New global var.
21765 (build_fake_var_decl): New function.
21766 (make_constraint_from_heapvar): Adjust.
21767 (handle_lhs_call): Likewise.
21768 (create_function_info_for): Likewise.
21769 (intra_create_variable_infos): Likewise.
21770 (init_alias_vars): Allocate fake_var_decl_obstack.
21771 (init_alias_heapvars, delete_alias_heapvars): Remove.
21772 (compute_points_to_sets): Do not call init_alias_heapvars.
21773 (ipa_pta_execute): Likewise.
21774 (delete_points_to_sets): Free fake_var_decl_obstack.
21775
21776 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21777
21778 * config/spu/divmovti4.c (union qword_UTItype): New data type.
21779 (si_from_UTItype, si_to_UTItype): New functions.
21780 (__udivmodti4): Use them to implement type-punning.
21781 * config/spu/multi3.c (union qword_TItype): New data type.
21782 (si_from_TItype, si_to_TItype): New functions.
21783 (__multi3): Use them to implement type-punning.
21784
21785 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21786
21787 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
21788
21789 2011-04-27 Jan Hubicka <jh@suse.cz>
21790
21791 * ipa-prop.c (function_insertion_hook_holder): New holder.
21792 (ipa_add_new_function): New function.
21793 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
21794 Register/deregister holder.
21795
21796 2011-04-27 Richard Guenther <rguenther@suse.de>
21797
21798 PR tree-optimization/48772
21799 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
21800
21801 2011-04-27 Richard Guenther <rguenther@suse.de>
21802
21803 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
21804 TARGET_MEM_REF handling.
21805
21806 2011-04-27 Nick Clifton <nickc@redhat.com>
21807
21808 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
21809 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
21810 (REG_CLASS_NAMES): Likewise.
21811 (REG_CLASS_CONTENTS): Likewise.
21812 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
21813 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
21814 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
21815 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
21816 (EVEN_REGS): New macro. Alias for QUAD_REGS.
21817 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
21818 duplicate register classes.
21819 (frv_class_likely_spilled_p): Likewise.
21820 (frv_register_move_cost): Likewise.
21821
21822 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
21823 end of the regno_reg_class array.
21824
21825 2011-04-27 Jakub Jelinek <jakub@redhat.com>
21826
21827 PR c/48742
21828 * c-typeck.c (build_binary_op): Don't wrap arguments if
21829 int_operands is true.
21830
21831 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
21832
21833 PR target/48767
21834 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
21835 targetm.calls.must_pass_in_stack for void type.
21836
21837 2011-04-26 Jan Hubicka <jh@suse.cz>
21838
21839 * cgraphbuild.c (build_cgraph_edges): Update call
21840 of cgraph_create_edge and cgraph_create_indirect_edge.
21841 * cgraph.c (cgraph_create_edge_including_clones,
21842 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
21843 cgraph_update_edges_for_call_stmt_node): Do not take nest
21844 argument; do not initialize call_stmt_size/time.
21845 (dump_cgraph_node): Do not dump nest.
21846 (cgraph_clone_edge): Do not take loop_nest argument;
21847 do not propagate it; do not clone call_stmt_size/time.
21848 (cgraph_clone_node): Likewise.
21849 (cgraph_create_virtual_clone): Update.
21850 * cgraph.h (struct cgraph_edge): Remove
21851 call_stmt_size/call_stmt_time/loop_nest.
21852 (cgraph_create_edge, cgraph_create_indirect_edge,
21853 cgraph_create_edge_including_clones, cgraph_clone_node): Update
21854 prototype.
21855 * tree-emutls.c (gen_emutls_addr): Update.
21856 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
21857 loop_nest; handle indirect calls, too.
21858 (clone_inlined_nodes): Do not care about updating inline summaries.
21859 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
21860 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
21861 stream call_stmt_size/call_stmt_time/loop_nest.
21862 * ipa-inline.c (edge_badness): Update.
21863 (ipa_inline): dump summaries after inlining.
21864 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
21865 New.
21866 (inline_edge_summary): New function.
21867 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
21868 (inline_edge_removal_hook): Handle edge summaries.
21869 (inline_edge_duplication_hook): New hook.
21870 (inline_summary_alloc): Alloc hooks.
21871 (initialize_growth_caches): Do not register removal hooks.
21872 (free_growth_caches); Do not free removal hook.
21873 (dump_inline_edge_summary): New function.
21874 (dump_inline_summary): Use it.
21875 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
21876 (inline_update_callee_summaries): New function.
21877 (inline_merge_summary): Use it.
21878 (do_estimate_edge_time, do_estimate_edge_growth): Update.
21879 (read_inline_edge_summary): New function.
21880 (inline_read_section): Use it.
21881 (write_inline_edge_summary): New function.
21882 (inline_write_summary): Use it.
21883 (inline_free_summary): Free edge new holders.
21884 * tree-inline.c (copy_bb): Update.
21885
21886 2011-04-26 Jason Merrill <jason@redhat.com>
21887
21888 * tree-eh.c (lower_try_finally_switch): Create the label along with
21889 the CASE_LABEL_EXPR.
21890
21891 2011-04-26 David S. Miller <davem@davemloft.net>
21892 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21893
21894 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
21895 * configure: Regenerate.
21896
21897 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21898
21899 PR target/48258
21900 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
21901 reduction.
21902 (VEC_reduc): New code iterator and splitters for vector reduction.
21903 (VEC_reduc_name): Ditto.
21904 (VEC_reduc_rtx): Ditto.
21905 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
21906 (reduc_<VEC_reduc_name>_v4sf): Ditto.
21907
21908 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
21909 support for extracting SF on VSX.
21910
21911 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
21912 generating xscvspdp.
21913 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
21914 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
21915 double add, minimum, maximum vector reduction.
21916 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
21917 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
21918 optimize double vector reduction.
21919 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
21920
21921 2011-04-26 Joseph Myers <joseph@codesourcery.com>
21922
21923 * config/fr30/fr30.h (inhibit_libc): Don't define.
21924 * config/m32r/m32r-protos.h: Correct comment.
21925 * config/v850/v850.h (GHS_default_section_names,
21926 GHS_current_section_names): Use tree, not union tree_node *.
21927
21928 2011-04-26 Xinliang David Li <davidxl@google.com>
21929
21930 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
21931 * c-family/c-opts.c (c_common_handle_option): Set
21932 warn_maybe_uninitialized.
21933 * opts.c (common_handle_option): Ditto.
21934 * common.opt: New option.
21935 * tree-ssa.c (warn_uninit): Add one more parameter.
21936 (warn_uninitialized_var): Pass warning code.
21937 * tree-flow.h: Interface change.
21938
21939 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21940
21941 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
21942 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
21943 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
21944
21945 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21946
21947 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
21948 * config/mips/mips.opt (mmips-tfile): Remove.
21949
21950 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
21951 mips-tdump reference to ...
21952 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
21953 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
21954 reference by Tru64 UNIX.
21955
21956 2011-04-26 Jakub Jelinek <jakub@redhat.com>
21957
21958 PR debug/48768
21959 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
21960 is error_mark_node, set value to NULL.
21961
21962 PR tree-optimization/48734
21963 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
21964 if return value from maybe_fold_*_comparsions isn't something
21965 the code is prepared to handle.
21966
21967 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
21968
21969 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
21970 mode check.
21971 (ext_QIreg_nomode_operands): Remove.
21972 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
21973 (*andsi_1): Ditto.
21974 (*andhi_1): Ditto.
21975
21976 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
21977
21978 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
21979
21980 2011-04-26 Richard Guenther <rguenther@suse.de>
21981
21982 * c-typeck.c (build_unary_op): Do not expand array-refs via
21983 pointer arithmetic. Only adjust qualifiers for function types.
21984
21985 2011-04-26 Richard Guenther <rguenther@suse.de>
21986
21987 PR middle-end/48694
21988 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
21989 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
21990 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
21991 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
21992
21993 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
21994
21995 * doc/extend.texi: Document __underlying_type.
21996
21997 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
21998
21999 * config/rs6000/titan.md (automata_option "progress"): Remove.
22000
22001 2011-04-25 Jeff Law <law@redhat.com>
22002
22003 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
22004
22005 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
22006
22007 * system.h (ENUM_BITFIELD): Remove.
22008
22009 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
22010 Eric Botcazou <ebotcazou@adacore.com>
22011
22012 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
22013 for STORE_FLAG_VALUE==-1 case.
22014
22015 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
22016
22017 PR target/43804
22018 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
22019 LEGITIMATE_PIC_OPERAND_P.
22020
22021 2011-04-24 Jan Hubicka <jh@suse.cz>
22022
22023 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
22024 WPA hack.
22025 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
22026 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
22027 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
22028 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
22029 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
22030 Sanity check predicate length.
22031 (remap_predicate): Likewise; sanity check jump functions.
22032 (inline_read_section, inline_write_summary): Sanity check
22033 predicate length.
22034
22035 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
22036
22037 PR other/48748
22038 * doc/extend.texi (Type Traits): Document __is_standard_layout,
22039 __is_literal_type, and __is_trivial; update throughout about
22040 possibly cv-qualified void types.
22041
22042 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
22043
22044 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
22045 testsuite and make it version agnostic.
22046
22047 2011-04-22 Jan Hubicka <jh@suse.cz>
22048
22049 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
22050
22051 2011-04-23 Jakub Jelinek <jakub@redhat.com>
22052
22053 PR c/48685
22054 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
22055 to VOID_TYPE even around MODIFY_EXPR.
22056
22057 2011-04-22 Mike Stump <mikestump@comcast.net>
22058
22059 * gensupport.c (read_md_rtx): Fix typo in comment.
22060 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
22061 comment.
22062
22063 2011-04-22 Jan Hubicka <jh@suse.cz>
22064
22065 * gengtype.c (open_base_files): Add ipa-inline.h include.
22066 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
22067 ipa-prop.c; update all uses.
22068 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
22069 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
22070 merge summary of inlined function into former caller.
22071 * ipa-inline.c (max_benefit): Remove.
22072 (edge_badness): Compensate for removal of benefits.
22073 (update_caller_keys): Use
22074 reset_node_growth_cache/reset_edge_growth_cache.
22075 (update_callee_keys): Likewise.
22076 (update_all_callee_keys): Likewise.
22077 (inline_small_functions): Do not collect max_benefit; do not reset
22078 estimated_growth; call free_growth_caches and initialize_growth_caches.
22079 * ipa-inline.h (struct condition, type clause_t, struct predicate,
22080 struct size_time_entry): New structures.
22081 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
22082 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
22083 and estimated_growth.
22084 (edge_growth_cache_entry): New structure.
22085 (node_growth_cache, edge_growth_cache): New global vars.
22086 (estimate_growth): Turn into inline.
22087 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
22088 initialize_growth_caches, free_growth_caches): Declare.
22089 (estimate_edge_growth): Rewrite.
22090 (estimate_edge_time): Implement as inline cache lookup.
22091 (reset_node_growth_cache, reset_edge_growth_cache): New inline
22092 functions.
22093 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
22094 (NUM_CONDITIONS): New constant.
22095 (predicate_conditions): New enum.
22096 (IS_NOT_CONSTANT): New constant.
22097 (edge_removal_hook_holder): New var.
22098 (node_growth_cache, edge_growth_cache): New global vars.
22099 (true_predicate, single_cond_predicate, false_predicate,
22100 not_inlined_predicate, add_condition, add_clause, and_predicates,
22101 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
22102 dump_clause, dump_predicate, account_size_time,
22103 evaulate_conditions_for_edge): New functions.
22104 (inline_summary_alloc): Move to heap.
22105 (inline_node_removal_hook): Clear condition and entry vectors.
22106 (inline_edge_removal_hook): New function.
22107 (initialize_growth_caches, free_growth_caches): New function.
22108 (dump_inline_summary): Update.
22109 (edge_execution_predicate): New function.
22110 (will_be_nonconstant_predicate): New function.
22111 (estimate_function_body_sizes): Compute BB and constantness predicates.
22112 (compute_inline_parameters): Do not clear estimated_growth.
22113 (estimate_edge_size_and_time): New function.
22114 (estimate_calls_size_and_time): New function.
22115 (estimate_callee_size_and_time): New function.
22116 (remap_predicate): New function.
22117 (inline_merge_summary): New function.
22118 (do_estimate_edge_time): New function based on...
22119 (estimate_edge_time): ... this one.
22120 (do_estimate_edge_growth): New function.
22121 (do_estimate_growth): New function based on....
22122 (estimate_growth): ... this one.
22123 (inline_analyze_function): Analyze after deciding on jump functions.
22124 (inline_read_section): New function.
22125 (inline_read_summary): Use it.
22126 (inline_write_summary): Write all the new data.
22127 * ipa-prop.c (ipa_get_param_decl_index): Export.
22128 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
22129 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
22130 Declare.
22131 (ipa_get_lattice): Move here from ipa-cp.c
22132 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
22133 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
22134 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
22135 cgraph_edge_inlinable_p): Remove.
22136 * cgraphunit.c: Include ipainline.h
22137 (cgraph_process_new_functions): Update call of
22138 compute_inline_parameters.
22139
22140 2011-04-22 Richard Guenther <rguenther@suse.de>
22141
22142 * tree.c (build_int_cst): Properly create canonicalized integer
22143 constants.
22144 (build_int_cst_type): Remove scary comments.
22145
22146 2011-04-22 Xinliang David Li <davidxl@google.com>
22147
22148 * toplev.c (process_options): Enable -Werror=coverage-mismatch
22149 by default when -Wno-error is not specified.
22150 * opts-global.c (decode_options): Remove call to
22151 control_warning_options.
22152
22153 2011-04-22 Jakub Jelinek <jakub@redhat.com>
22154
22155 PR tree-optimization/48717
22156 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
22157 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
22158
22159 2011-04-22 Joseph Myers <joseph@codesourcery.com>
22160
22161 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
22162 definition where used.
22163
22164 2011-04-22 Jakub Jelinek <jakub@redhat.com>
22165
22166 PR c/48716
22167 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
22168 TREE_STATIC variables declared inside of some OpenMP construct.
22169
22170 2011-04-22 Martin Jambor <mjambor@suse.cz>
22171
22172 PR middle-end/48585
22173 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
22174
22175 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
22176
22177 PR c/36750
22178 * c-typeck.c (pop_init_level): Do not warn about initializing
22179 with ` = {0}'.
22180
22181 2011-04-22 Alan Modra <amodra@gmail.com>
22182
22183 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
22184 when returning call_cookie.
22185 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
22186 pointers, to functions with no more vector args than the current
22187 function, and some non-local calls for ABI_V4.
22188 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
22189 sibcall_nonlocal_aix64): Combine to ..
22190 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
22191 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
22192 (sibcall_value_nonlocal_aix<mode>): ..likewise.
22193 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
22194 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
22195 operand.
22196 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
22197 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
22198 sibcall_value_symbolic_64): Delete.
22199
22200 2011-04-21 Xinliang David Li <davidxl@google.com>
22201
22202 * cgraph.h: Remove pid.
22203 * cgraph.c: Remove pid.
22204 * value-prof.c (init_node_map): New function.
22205 (del_node_map): New function.
22206 (find_func_by_funcdef_no): New function.
22207 (gimple_ic_transform): Call new function.
22208 * cgraphunit.c (cgraph_finalize_function): Remove pid.
22209 * function.c (get_last_funcdef_no): New function.
22210 * function.h (get_last_funcdef_no): New function.
22211 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
22212 to libgcov function.
22213 (tree-profiling): Call node map init and delete function.
22214
22215 2011-04-21 Ian Lance Taylor <iant@google.com>
22216
22217 * godump.c (go_format_type): Use exported Go name for anonymous
22218 field name.
22219
22220 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22221
22222 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
22223 Call builtin_function_type_list instead of builtin_function_type.
22224 (UNARY, BINARY, TRINARY, QUAD): Likewise.
22225
22226 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22227
22228 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
22229 build_function_type_list instead of build_function_type.
22230 Delete variable `endlink'.
22231
22232 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22233
22234 * config/s390/s390.c (s390_init_builtins): Call
22235 build_function_type_list instead of build_function_type.
22236
22237 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22238
22239 * config/ia64/ia64.c (ia64_init_builtins): Call
22240 build_function_type_list instead of builtin_function_type.
22241
22242 2011-04-21 Easwaran Raman <eraman@google.com>
22243
22244 * cfgexpand.c (stack_var): Remove OFFSET...
22245 (add_stack_var): ...and its reference here...
22246 (expand_stack_vars): ...and here.
22247 (stack_var_cmp): Sort by descending order of size.
22248 (partition_stack_vars): Change heuristic.
22249 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
22250 (dump_stack_var_partition): Add newline after each partition.
22251
22252 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
22253 Jeff Law <law@redhat.com>
22254
22255 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
22256 * gengtype.c (matching_file_name_substitute): Likewise.
22257
22258 2011-04-21 Richard Guenther <rguenther@suse.de>
22259
22260 PR lto/48703
22261 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
22262
22263 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
22264
22265 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
22266
22267 2011-04-21 Richard Guenther <rguenther@suse.de>
22268
22269 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
22270 file name.
22271
22272 2011-04-21 Richard Guenther <rguenther@suse.de>
22273
22274 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
22275 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
22276 Use DECL_P, not SSA_VAR_P.
22277 (ptr_derefs_may_alias_p): Likewise.
22278 (ptr_deref_may_alias_ref_p_1): Likewise.
22279 (decl_refs_may_alias_p): Likewise.
22280 (refs_may_alias_p_1): Likewise.
22281 (ref_maybe_used_by_call_p_1): Likewise.
22282 (call_may_clobber_ref_p_1): Likewise.
22283 (indirect_ref_may_alias_decl_p): Assume indirect refrences
22284 are either MEM_REF or TARGET_MEM_REF.
22285 (indirect_refs_may_alias_p): Likewise.
22286 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
22287 for MEM_EXPR of indirect calls.
22288
22289 2011-04-21 Tristan Gingold <gingold@adacore.com>
22290
22291 * vmsdbgout.c (write_srccorr): Compute file length from the string.
22292 (dst_file_info_struct): Remove flen field.
22293 (lookup_filename): Remove code that set flen field.
22294
22295 2011-04-21 Tristan Gingold <gingold@adacore.com>
22296
22297 * config/ia64/ia64.c (ia64_start_function): Add a guard.
22298
22299 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
22300
22301 PR target/48708
22302 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
22303 vec_extract and vec_concat for non-SSE4_1 targets.
22304
22305 2011-04-21 Richard Guenther <rguenther@suse.de>
22306
22307 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
22308 return statements.
22309
22310 2011-04-21 Joseph Myers <joseph@codesourcery.com>
22311
22312 * config/i386/cygming.h (union tree_node, TREE): Don't define or
22313 undefine.
22314 (FILE): Don't undefine.
22315
22316 2011-04-21 Joseph Myers <joseph@codesourcery.com>
22317
22318 * config/alpha/alpha.c (struct machine_function): Use rtx, not
22319 struct rtx_def *.
22320 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
22321 struct rtx_def *.
22322 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
22323 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
22324 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
22325 rtx_def *.
22326 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
22327 definitions where used.
22328 * config/microblaze/microblaze.h (struct microblaze_args): Use
22329 rtx, not struct rtx_def *.
22330 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
22331 rtx_def *.
22332 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
22333 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
22334 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
22335 not struct rtx_def *.
22336 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
22337 struct rtx_def *.
22338 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
22339 rtx_def *.
22340 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
22341
22342 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22343
22344 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
22345 operand_equal_p to compare DR_BASE_ADDRESSes.
22346 (vect_check_interleaving): Likewise.
22347
22348 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22349
22350 PR target/46329
22351 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
22352 for all Neon struct constants.
22353
22354 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22355
22356 * target.def (legitimate_constant_p): New hook.
22357 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
22358 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
22359 * doc/tm.texi: Regenerate.
22360 * hooks.h (hook_bool_mode_rtx_true): Declare.
22361 * hooks.c (hook_bool_mode_rtx_true): Define.
22362 * system.h (LEGITIMATE_CONSTANT_P): Poison.
22363 * calls.c (precompute_register_parameters): Replace uses of
22364 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
22365 (emit_library_call_value_1): Likewise.
22366 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
22367 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
22368 * ira-costs.c (scan_one_insn): Likewise.
22369 * recog.c (general_operand, immediate_operand): Likewise.
22370 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
22371 * reload1.c (init_eliminable_invariants): Likewise.
22372
22373 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
22374 mode argument.
22375 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
22376 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
22377 argument.
22378 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22379 * config/alpha/predicates.md (input_operand): Update call to
22380 alpha_legitimate_constant_p.
22381
22382 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
22383 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
22384 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
22385 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22386 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
22387 (arm_legitimate_constant_p): New functions.
22388 (arm_cannot_force_const_mem): Make static.
22389
22390 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
22391
22392 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
22393 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
22394 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
22395 instead of bfin_legitimate_constant_p.
22396 (bfin_legitimate_constant_p): Make static. Add a mode argument.
22397 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22398
22399 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
22400
22401 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
22402
22403 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
22404 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
22405 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22406 (frv_legitimate_constant_p): Make static. Add a mode argument.
22407
22408 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
22409 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
22410 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
22411
22412 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
22413 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
22414 * config/i386/i386.c (legitimate_constant_p): Rename to...
22415 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
22416 argument.
22417 (ix86_cannot_force_const_mem): Update accordingly.
22418 (ix86_legitimate_address_p): Likewise.
22419 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22420 * config/i386/i386.md: Update commentary.
22421
22422 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
22423 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
22424 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22425 (ia64_legitimate_constant_p): Make static. Add a mode argument.
22426
22427 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
22428
22429 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
22430 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
22431 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22432 (lm32_legitimate_constant_p): Make static. Add a mode argument.
22433
22434 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
22435 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
22436 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
22437
22438 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
22439 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22440 (m32r_legitimate_constant_p): New function.
22441
22442 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
22443 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
22444 LEGITIMATE_CONSTANT_P.
22445 (LEGITIMATE_CONSTANT_P): Delete.
22446 * config/m68k/m68k.c (m68k_expand_prologue): Call
22447 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
22448 (m68k_legitimate_constant_p): New function.
22449 * config/m68k/m68k.md: Update comments.
22450
22451 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
22452 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22453 (mcore_legitimate_constant_p): New function.
22454
22455 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
22456 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
22457 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
22458 Add a mode argument.
22459 (mep_legitimate_address): Update accordingly.
22460 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22461
22462 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
22463 Delete.
22464 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
22465 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
22466 static. Check OP's mode for VOIDmode.
22467 (microblaze_legitimate_constant_p): New function.
22468 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22469
22470 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
22471 * config/mips/mips.c (mips_legitimate_constant_p): New function.
22472 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
22473 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22474 * config/mips/predicates.md: Update comments.
22475
22476 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
22477 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
22478 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22479 (mmix_legitimate_constant_p): Make static, return a bool, and take
22480 a mode argument.
22481 (mmix_print_operand_address): Update accordingly.
22482
22483 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
22484 Delete.
22485 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
22486 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
22487 static. Add a mode argument.
22488 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22489
22490 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
22491
22492 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
22493 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22494 (pa_legitimate_constant_p): New function.
22495
22496 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
22497
22498 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
22499 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22500 (pdp11_legitimate_constant_p): New function.
22501
22502 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
22503 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22504 (rs6000_legitimate_constant_p): New function.
22505
22506 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
22507 (rx_legitimate_constant_p): ...this.
22508 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
22509 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
22510 (rx_legitimate_constant_p): ...this.
22511 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22512 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
22513
22514 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
22515 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
22516 * config/s390/s390.c (legitimate_constant_p): Rename to...
22517 (s390_legitimate_constant_p): ...this. Make static, return a bool,
22518 and add a mode argument.
22519 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22520
22521 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
22522
22523 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
22524 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22525 (sh_legitimate_constant_p): New function.
22526
22527 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
22528 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
22529 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22530 (legitimate_constant_p): Rename to...
22531 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
22532 argument.
22533 (constant_address_p): Update accordingly.
22534
22535 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
22536 argument and return a bool.
22537 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
22538 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22539 (spu_legitimate_constant_p): Add a mode argument and return a bool.
22540 (spu_rtx_costs): Update accordingly.
22541 * config/spu/predicates.md (vec_imm_operand): Likewise.
22542
22543 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
22544
22545 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
22546 * config/v850/v850.c (v850_legitimate_constant_p): New function.
22547 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22548
22549 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
22550 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
22551 * config/vax/vax.c (legitimate_constant_p): Likewise.
22552
22553 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
22554 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22555 (xtensa_legitimate_constant_p): New function.
22556
22557 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22558
22559 * target.def (cannot_force_const_mem): Add a mode argument.
22560 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
22561 * doc/tm.texi: Regenerate.
22562 * hooks.h (hook_bool_mode_rtx_false): Declare.
22563 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
22564 (hook_bool_mode_const_rtx_true): Likewise.
22565 (hook_bool_mode_rtx_false): New function.
22566 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
22567 to be non-VOID. Update call to cannot_force_const_mem.
22568 (find_reloads): Update accordingly.
22569 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
22570 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
22571 argument.
22572 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
22573 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
22574 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
22575 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
22576 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
22577 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
22578 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
22579 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
22580 (m68k_cannot_force_const_mem): ...this new function.
22581 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
22582 argument.
22583 (mips_const_insns, mips_legitimize_const_move): Update calls.
22584 (mips_secondary_reload_class): Likewise.
22585 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
22586 (pa_cannot_force_const_mem): ...this new function.
22587 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
22588 (rs6000_cannot_force_const_mem): ...this new function.
22589 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
22590 argument.
22591 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
22592 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
22593 to...
22594 (xtensa_cannot_force_const_mem): ...this new function.
22595
22596 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22597
22598 * config/mips/mips.c (mips16_build_function_stub): Call
22599 build_function_type_list instead of build_function_type.
22600 (mips16_build_call_stub): Likewise.
22601
22602 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22603
22604 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
22605 instead of build_function_type.
22606
22607 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22608
22609 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
22610 instead of build_function_type.
22611
22612 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
22613
22614 PR target/48678
22615 * config/i386/i386.md (insv): Change operand 0 constraint to
22616 "register_operand". Change operand 1 and 2 constraint to
22617 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
22618 * config/i386/sse.md (sse4_1_pinsrb): Export.
22619 (sse2_pinsrw): Ditto.
22620 (sse4_1_pinsrd): Ditto.
22621 (sse4_1_pinsrq): Ditto.
22622 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
22623 * config/i386/i386.c (ix86_expand_pinsr): New.
22624
22625 2011-04-20 Easwaran Raman <eraman@google.com>
22626
22627 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
22628 containing union type only with -fstrict-aliasing.
22629
22630 2011-04-20 Jim Meyering <meyering@redhat.com>
22631
22632 Remove useless if-before-free tests.
22633 * calls.c (expand_call, save_area): Likewise.
22634 * cfgcleanup.c (try_forward_edges): Likewise.
22635 * collect2.c (collect_execute): Likewise.
22636 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
22637 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
22638 * coverage.c (coverage_checksum_string): Likewise.
22639 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
22640 * cselib.c (cselib_init): Likewise.
22641 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
22642 (df_set_clean_cfg): Likewise.
22643 * function.c (free_after_compilation): Likewise.
22644 * gcc.c (do_spec_1, main): Likewise.
22645 * gcov.c (create_file_names): Likewise.
22646 * gensupport.c (identify_predicable_attribute): Likewise.
22647 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
22648 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
22649 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
22650 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
22651 * ipa-pure-const.c (local_pure_const): Likewise.
22652 * ipa-reference.c (propagate): Likewise.
22653 * ira-costs.c (free_ira_costs): Likewise.
22654 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
22655 * matrix-reorg.c (mat_free): Likewise.
22656 * prefix.c (get_key_value): Likewise.
22657 * profile.c (compute_value_histograms): Likewise.
22658 * reload1.c (free_reg_equiv): Likewise.
22659 * sched-deps.c (free_deps): Likewise.
22660 * sel-sched-ir.c (fence_clear): Likewise.
22661 * sese.c (set_rename, if_region_set_false_region): Likewise.
22662 * tree-data-ref.c (free_rdg): Likewise.
22663 * tree-eh.c (lower_try_finally): Likewise.
22664 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
22665 * tree-ssa-live.c (delete_var_map): Likewise.
22666 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
22667 * tree-ssa-pre.c (phi_trans_add): Likewise.
22668
22669 2011-04-20 Jakub Jelinek <jakub@redhat.com>
22670
22671 PR tree-optimization/48611
22672 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
22673 beyond ERT_MUST_NOT_THROW region.
22674
22675 2011-04-20 Catherine Moore <clm@codesourcery.com>
22676
22677 * config/mips/mips.opt (mfix-24k): New.
22678 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
22679 * config/mips/mips.md (length): Increase by 4 for stores if
22680 fixing 24K errata.
22681 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
22682 all noreorder if fixing 24K errata.
22683 * doc/invoke.texi: Document mfix-24k.
22684
22685 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
22686
22687 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
22688 quad-word modes, reduce to 9-bit index range when above 1016 limit.
22689
22690 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
22691
22692 * config/arm/arm.c (arm_gen_constant): Move movw support ....
22693 (const_ok_for_op): ... to here.
22694
22695 2011-04-20 Kai Tietz <ktietz@redhat.com>
22696
22697 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
22698 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
22699
22700 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
22701
22702 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
22703
22704 2011-04-20 Richard Guenther <rguenther@suse.de>
22705
22706 PR tree-optimization/47892
22707 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
22708 are if-convertible.
22709
22710 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
22711
22712 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
22713
22714 2011-04-20 Tristan Gingold <gingold@adacore.com>
22715
22716 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
22717
22718 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
22719
22720 PR target/18145
22721
22722 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
22723 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
22724 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22725 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
22726 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
22727
22728 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
22729 New prototype.
22730
22731 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
22732 (avr_asm_named_section, avr_asm_output_aligned_common,
22733 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
22734 New functions to update...
22735 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
22736 (avr_asm_init_sections): Overwrite section callbacks for
22737 data_section, bss_section.
22738 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
22739 from here to...
22740 (avr_file_end): ...here.
22741
22742 2011-04-20 Richard Guenther <rguenther@suse.de>
22743
22744 PR middle-end/48695
22745 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
22746 objects and types here. Adjust for their offset before comparing.
22747
22748 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
22749
22750 * tree-vect-stmts.c (vectorizable_store): Only chain one related
22751 statement per copy.
22752
22753 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
22754
22755 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
22756 (GIMPLE_H): Include $(INTERNAL_FN_H).
22757 (OBJS-common): Add internal-fn.o.
22758 (internal-fn.o): New rule.
22759 * internal-fn.def: New file.
22760 * internal-fn.h: Likewise.
22761 * internal-fn.c: Likewise.
22762 * gimple.h: Include internal-fn.h.
22763 (GF_CALL_INTERNAL): New gf_mask.
22764 (gimple_statement_call): Put fntype into a union with a new
22765 internal_fn field.
22766 (gimple_build_call_internal): Declare.
22767 (gimple_build_call_internal_vec): Likewise.
22768 (gimple_call_same_target_p): Likewise.
22769 (gimple_call_internal_p): New function.
22770 (gimple_call_internal_fn): Likewise.
22771 (gimple_call_fntype): Return null for internal calls.
22772 (gimple_call_set_fntype): Assert that the function is not internal.
22773 (gimple_call_set_fn): Likewise.
22774 (gimple_call_set_fndecl): Likewise.
22775 (gimple_call_set_internal_fn): New function.
22776 (gimple_call_addr_fndecl): Handle null functions.
22777 (gimple_call_return_type): Likewise null types.
22778 * gimple.c (gimple_build_call_internal_1): New function.
22779 (gimple_build_call_internal): Likewise.
22780 (gimple_build_call_internal_vec): Likewise.
22781 (gimple_call_same_target_p): Likewise.
22782 (gimple_call_flags): Handle calls to internal functions.
22783 (gimple_call_fnspec): New function.
22784 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
22785 (gimple_has_side_effects): Handle null functions.
22786 (gimple_rhs_has_side_effects): Likewise.
22787 (gimple_call_copy_skip_args): Handle calls to internal functions.
22788 * cfgexpand.c (expand_call_stmt): Likewise.
22789 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
22790 * gimple-fold.c (gimple_fold_call): Handle null functions.
22791 (gimple_fold_stmt_to_constant_1): Don't fold
22792 calls to internal functions.
22793 * gimple-low.c (gimple_check_call_args): Handle calls to internal
22794 functions.
22795 * gimple-pretty-print.c (dump_gimple_call): Likewise.
22796 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
22797 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
22798 (do_warn_unused_result): Likewise.
22799 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
22800 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
22801 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
22802 the target of a call.
22803 (initialize_hash_element): Update accordingly.
22804 (hashable_expr_equal_p): Use gimple_call_same_target_p.
22805 (iterative_hash_hashable_expr): Handle calls to internal functions.
22806 (print_expr_hash_elt): Likewise.
22807 * tree-ssa-pre.c (can_value_number_call): Likewise.
22808 (eliminate): Handle null functions.
22809 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
22810 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
22811 (find_func_aliases): Likewise.
22812 * value-prof.c (gimple_ic_transform): Likewise.
22813 (gimple_indirect_call_to_profile): Likewise.
22814 * lto-streamer-in.c (input_gimple_stmt): Likewise.
22815 * lto-streamer-out.c (output_gimple_stmt): Likewise.
22816
22817 2011-04-19 Jan Hubicka <jh@suse.cz>
22818
22819 * ipa-inline-transform.c (save_inline_function_body): Add comments.
22820 * ipa-inline.c (inline_small_functions): Compute summaries first,
22821 populate heap later.
22822
22823 2011-04-19 Jan Hubicka <jh@suse.cz>
22824
22825 * cgraph.h (save_inline_function_body): Remove.
22826 * ipa-inline-transform.c: New file, broke out of...
22827 * ipa-inline.c: ... this one; Update toplevel comment.
22828 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
22829 make global.
22830 (update_noncloned_frequencies): Move to ipa-inline-transform.c
22831 (cgraph_mark_inline_edge): Rename to inline_call; move to
22832 ipa-inline-transform.c.
22833 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
22834 move to ipa-inline-transform.c
22835 (recursive_inlining, inline_small_functions, flatten_function,
22836 ipa_inline, inline_always_inline_functions,
22837 early_inline_small_functions): Update.
22838 (inline_transform): Move to ipa-inline-transform.c.
22839 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
22840 Declare.
22841 * Makefile.in (ipa-inline-transform.o): New file.
22842 * cgraphunit.c (save_inline_function_body): Move to
22843 ipa-inline-transform.c
22844
22845 2011-04-19 DJ Delorie <dj@redhat.com>
22846
22847 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
22848 registers if we already know there aren't any.
22849 (m32c_emit_epilogue): Don't emit a barrier here.
22850 (m32c_emit_eh_epilogue): Likewise.
22851 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
22852 operands at expand time.
22853 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
22854 int" wchar type.
22855 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
22856 duplicates. Provide aliases instead.
22857 * config/m32c/prologue.md (eh_return): Emit a barrier here.
22858 (eh_epilogue): Add a "(return)" here as a hint to other parts of
22859 the compiler.
22860
22861 2011-04-19 Anatoly Sokolov <aesok@post.ru>
22862
22863 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
22864 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
22865 (general_or_i64_p, sparc_register_move_cost): New function.
22866
22867 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22868
22869 * doc/install.texi (Configuration, --enable-threads): Remove mach.
22870 Add lynx, mipssde. Sort table.
22871
22872 2011-04-19 Xinliang David Li <davidxl@google.com>
22873
22874 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
22875 not negative.
22876
22877 2011-04-19 Jakub Jelinek <jakub@redhat.com>
22878
22879 PR target/48678
22880 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
22881 is a SUBREG with non-MODE_INT mode inside of it.
22882
22883 2011-04-19 Martin Jambor <mjambor@suse.cz>
22884
22885 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
22886 also according to actual contants.
22887 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
22888 (gimple_fold_call): Use it.
22889 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
22890
22891 2011-04-19 Martin Jambor <mjambor@suse.cz>
22892
22893 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
22894 non-pointer assignments.
22895
22896 2011-04-19 Martin Jambor <mjambor@suse.cz>
22897
22898 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
22899 account anc_offset and otr_type from the indirect edge info.
22900 * ipa-prop.c (get_ancestor_addr_info): New function.
22901 (compute_complex_ancestor_jump_func): Assignment analysis moved to
22902 get_ancestor_addr_info, call it.
22903 (ipa_note_param_call): Do not initialize information about polymorphic
22904 calls, return the indirect call graph edge. Remove the last
22905 parameter, adjust all callers.
22906 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
22907 parameters. Initialize polymorphic information in the indirect edge.
22908
22909 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22910
22911 PR lto/48148
22912 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
22913 the types if they have different enumeration identifiers.
22914
22915 2011-04-19 Jan Hubicka <jh@suse.cz>
22916
22917 * cgraph.h (cgraph_optimize_for_size_p): Declare.
22918 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
22919 * predict.c (cgraph_optimize_for_size_p): Break out from ...
22920 (optimize_function_for_size_p) ... here.
22921
22922 2011-04-19 Richard Guenther <rguenther@suse.de>
22923
22924 PR lto/48207
22925 * tree.c (free_lang_data): Do not reset the decl-assembler-name
22926 langhook.
22927
22928 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22929
22930 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
22931 if DECL_NO_INLINE_WARNING_P is set on the function.
22932
22933 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
22934
22935 PR fortran/47976
22936 * reload1.c (inc_for_reload): Return void. All callers changed.
22937 (emit_input_reload_insns): Don't try to delete previous output
22938 reloads to a register, or record spill_reg_store for autoincs.
22939
22940 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
22941
22942 * gengtype.h: Updated copyright year.
22943 (struct input_file_st): Add inpisplugin field.
22944 (type_fileloc): New function.
22945 * gengtype.c
22946 (write_typed_struct_alloc_def): Add gcc_assert.
22947 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
22948 (write_typed_alloc_defns): Don't output for plugin files.
22949 (input_file_by_name): Clear inpisplugin field.
22950 (main): Set inpisplugin field for plugin files.
22951
22952 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
22953
22954 * gengtype-state.c (string_eq): New.
22955 (read_state): Use string_eq instead of strcmp when creating the
22956 state_ident_tab.
22957
22958 2011-04-19 Wei Guozhi <carrot@google.com>
22959
22960 PR target/47855
22961 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
22962 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
22963 linkage.
22964 * config/arm/constraints.md (Uu): New constraint.
22965 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
22966
22967 2011-04-19 Tristan Gingold <gingold@adacore.com>
22968
22969 * config.gcc (-*-*-*vms): Added.
22970 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
22971 definitions moved.
22972 * config/vms/vms-ld.c: New file.
22973 * config/vms/vms-ar.c: New file.
22974 * config/vms/t-vmsnative: New file.
22975
22976 2011-04-18 Xinliang David Li <davidxl@google.com>
22977
22978 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
22979
22980 2011-04-18 Jakub Jelinek <jakub@redhat.com>
22981
22982 PR middle-end/48661
22983 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
22984 if TREE_TYPE (v) is non-NULL.
22985
22986 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
22987 gimple_get_virt_mehtod_for_binfo.
22988 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
22989 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
22990 callers.
22991 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
22992
22993 2011-04-18 Michael Matz <matz@suse.de>
22994 Steve Ellcey <sje@cup.hp.com>
22995
22996 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
22997 use its mode as source mode if it isn't VOIDmode.
22998
22999 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
23000
23001 * doc/passes.texi: Fill crossref nodes.
23002
23003 2011-04-18 Jim Meyering <meyering@redhat.com>
23004
23005 Fix doubled-word typos in comments and strings
23006 * config/alpha/vms-unwind.h: s/for for/for/
23007 * config/arm/unwind-arm.h: Likewise.
23008 * config/microblaze/microblaze.c: Likewise.
23009 * config/sh/constraints.md: s/in in/in/
23010 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
23011
23012 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
23013
23014 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
23015 (AVX_FLOAT_MODE_P): Ditto.
23016 (AVX128_VEC_FLOAT_MODE_P): Ditto.
23017 (AVX256_VEC_FLOAT_MODE_P): Ditto.
23018 (AVX_VEC_FLOAT_MODE_P): Ditto.
23019 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
23020 (UNSPEC_MASKSTORE): Ditto.
23021 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
23022 Merge from <sse>_movmsk<ssemodesuffix> and
23023 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
23024 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
23025 iterator.
23026 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
23027 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
23028 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
23029
23030 2011-04-18 Jan Hubicka <jh@suse.cz>
23031
23032 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
23033
23034 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
23035 (want_inline_function_called_once_p): Break out the logic from
23036 ipa_inline.
23037 (edge_badness): Ensure that profile is not misupdated.
23038 (lookup_recursive_calls): Prioritize by call frequencies.
23039 (inline_small_functions): Move program size estimates here;
23040 actually process whole queue even when unit growth has been
23041 met. (to properly compute inline_failed reasons and for the
23042 case unit size decrease.) Revisit comments on recursive inlining.
23043 (ipa_inline): Remove unit summary code; first inline hot calls
23044 of functions called once, cold calls next.
23045 (order, nnodes): Remove unused variables.
23046 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
23047 (GTFILES): Remove ipa-inline.c
23048 * sel-sched.c (fill_insns): Silence uninitialized var warning.
23049
23050 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
23051
23052 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
23053
23054 2011-04-18 Jie Zhang <jie@codesourcery.com>
23055 Richard Earnshaw <rearnsha@arm.com>
23056
23057 * arm.c (neon_builtin_type_bits): Remove.
23058 (typedef enum neon_builtin_mode): New.
23059 (T_MAX): Don't define.
23060 (typedef enum neon_builtin_datum): Remove bits, codes[],
23061 num_vars and base_fcode. Add mode, code and fcode.
23062 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
23063 VAR10): Change accordingly.
23064 (neon_builtin_data[]): Change accordingly
23065 (arm_init_neon_builtins): Change accordingly.
23066 (neon_builtin_compare): Remove.
23067 (locate_neon_builtin_icode): Remove.
23068 (arm_expand_neon_builtin): Change accordingly.
23069
23070 * arm.h (enum arm_builtins): Move to ...
23071 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
23072
23073 * arm.c (arm_builtin_decl): Declare.
23074 (TARGET_BUILTIN_DECL): Define.
23075 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
23076 (arm_builtin_decls[]): New.
23077 (arm_init_neon_builtins): Store builtin declarations in
23078 arm_builtin_decls[].
23079 (arm_init_tls_builtins): Likewise.
23080 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
23081 (arm_builtin_decl): New.
23082
23083 2011-04-18 Richard Guenther <rguenther@suse.de>
23084
23085 * tree.c (upper_bound_in_type): Build properly canonicalized
23086 INTEGER_CSTs.
23087 (lower_bound_in_type): Likewise.
23088
23089 2011-04-18 Richard Guenther <rguenther@suse.de>
23090
23091 * gimple.h (gimple_call_addr_fndecl): New function.
23092 (gimple_call_fndecl): Use it.
23093 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
23094 for direct calls.
23095 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
23096 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
23097
23098 2011-04-18 Richard Guenther <rguenther@suse.de>
23099
23100 PR middle-end/48650
23101 * tree.c (build_string): STRING_CST is now derived from tree_typed.
23102
23103 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
23104
23105 PR lto/48492
23106 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
23107 DECL_IN_CONSTANT_POOL without RTL.
23108
23109 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
23110 Ira Rosen <ira.rosen@linaro.org>
23111
23112 PR target/48252
23113 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
23114 to match neon_vzip/vuzp/vtrn_internal.
23115 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
23116 outputs explicitly dependent on both inputs.
23117 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
23118
23119 2011-04-18 Jakub Jelinek <jakub@redhat.com>
23120
23121 PR tree-optimization/48616
23122 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
23123 whether the shift is by scalar or vector based on whether all SLP
23124 scalar stmts have the same rhs.
23125
23126 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
23127
23128 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
23129 memory operands.
23130
23131 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
23132
23133 PR target/43700
23134 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
23135 registers.
23136
23137 2011-04-17 Jan Hubicka <jh@suse.cz>
23138
23139 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
23140 * cgrpahunit.c (cgraph_finalize_function): Do not set
23141 finalized_by_frontend.
23142 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
23143 finalized_by_frontend.
23144
23145 2011-04-17 Jan Hubicka <jh@suse.cz>
23146
23147 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
23148 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
23149 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
23150 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
23151 method.
23152 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
23153 gimple-fold.c
23154 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
23155
23156 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
23157
23158 PR lto/48538
23159 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
23160 is non-null before accessing it.
23161 (input_cgraph): Remove trailing spaces.
23162
23163 2011-04-17 Revital Eres <revital.eres@linaro.org>
23164
23165 * params.def (sms-min-sc): New param flag.
23166 * modulo-sched.c (sms_schedule): Use it.
23167 * doc/invoke.texi (sms-min-sc): Document it.
23168
23169 2011-04-17 Jan Hubicka <jh@suse.cz>
23170
23171 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
23172 present, also set gimple_call_set_cannot_inline.
23173 * ipa-inline.c: Update toplevel comment.
23174 (MAX_TIME): Remove.
23175 (cgraph_clone_inlined_nodes): Fix linebreaks.
23176 (cgraph_check_inline_limits): Restructure to ...
23177 (caller_growth_limits): ... this one; be more tolerant
23178 on growth in nested inline chains; add explanatory comment;
23179 fix stack accounting thinko introduced by previous patch.
23180 (cgraph_default_inline_p): Remove.
23181 (report_inline_failed_reason): New function.
23182 (can_inline_edge_p): New function.
23183 (can_early_inline_edge_p): New function.
23184 (leaf_node_p): Move upwards in file.
23185 (want_early_inline_function_p): New function.
23186 (want_inline_small_function_p): New function.
23187 (want_inline_self_recursive_call_p): New function.
23188 (cgraph_edge_badness): Rename to ...
23189 (edge_badness) ... this one; fix linebreaks.
23190 (update_edge_key): Update call of edge_baddness; add
23191 detailed dump about queue updates.
23192 (update_caller_keys): Use can_inline_edge_p and
23193 want_inline_small_function_p.
23194 (cgraph_decide_recursive_inlining): Rename to...
23195 (recursive_inlining): Use can_inline_edge_p and
23196 want_inline_self_recursive_call_p; simplify and remove no longer
23197 valid FIXME.
23198 (cgraph_set_inline_failed): Remove.
23199 (add_new_edges_to_heap): Use can_inline_edge_p and
23200 want_inline_small_function_p.
23201 (cgraph_decide_inlining_of_small_functions): Rename to ...
23202 (inline_small_functions): ... this one; cleanup; use
23203 can/want predicates; cleanup debug ouput; work edges till fibheap
23204 is exhausted and do not stop once unit growth is reached; remove
23205 later loop processing remaining edges.
23206 (cgraph_flatten): Rename to ...
23207 (flatten_function): ... this one; use can_inline_edge_p
23208 and can_early_inline_edge_p predicates.
23209 (cgraph_decide_inlining): Rename to ...
23210 (ipa_inline): ... this one; remove unreachable nodes before
23211 inlining functions called once; simplify the pass.
23212 (cgraph_perform_always_inlining): Rename to ...
23213 (inline_always_inline_functions): ... this one; use
23214 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
23215 (cgraph_decide_inlining_incrementally): Rename to ...
23216 (early_inline_small_functions): ... this one; simplify
23217 using new predicates; cleanup; make dumps prettier.
23218 (cgraph_early_inlining): Rename to ...
23219 (early_inliner): newer inline regular functions into always-inlines;
23220 fix updating of call stmt summaries.
23221 (pass_early_inline): Update for new names.
23222 (inline_transform): Fix formating.
23223 (gate_cgraph_decide_inlining): Rename to ...
23224 (pass_ipa_inline): ... this one.
23225 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
23226 * ipa-inline-analysis.c (dump_inline_summary): Update.
23227 (compute_inline_parameters): Do not compute disregard_inline_limits;
23228 look for mismatching arguments.
23229 (estimate_growth): Fix handlig of non-trivial self recursion.
23230 (inline_read_summary): Do not read info->disregard_inline_limits.
23231 (inline_write_summary): Do not write info->disregard_inline_limits.
23232 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
23233 and move all checks into can_inline_edge_p predicate; re-enable code
23234 comparing optimization levels.
23235 (expand_call_inline): Do not test inline_forbidden_into_p.
23236 * Makefile.in (ipa-inline.o): Update arguments.
23237
23238 2011-04-17 Revital Eres <revital.eres@linaro.org>
23239
23240 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
23241
23242 2011-04-17 Revital Eres <revital.eres@linaro.org>
23243
23244 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
23245
23246 2011-04-17 Michael Matz <matz@suse.de>
23247
23248 PR tree-optimization/48622
23249 PR lto/48645
23250 * ipa-inline-analysis.c (inline_read_summary): Read size/time
23251 in same order as they're written.
23252
23253 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23254
23255 * config/pa/predicates.md: Reorganize and simplify predicates.
23256 Eliminate duplicate code checks.
23257 (arith_operand): Rename to arith14_operand
23258 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
23259 * config/pa/pa.md: Use renamed operands.
23260 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
23261 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
23262 arith11_operand, adddi3_operand, indexed_memory_operand,
23263 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
23264 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
23265 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
23266 move_dest_operand, move_src_operand, prefetch_cc_operand,
23267 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
23268 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
23269 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
23270 div_operand, int5_operand, movb_comparison_operator,
23271 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
23272 arith_double_operand, ireg_operand, lhs_lshift_operand,
23273 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
23274 integer_store_memory_operand): Likewise.
23275 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
23276 (integer_store_memory_operand, read_only_operand,
23277 function_label_operand, borx_reg_operand,
23278 non_hard_reg_operand): Likewise.
23279 (eq_neq_comparison_operator): Delete unused operator.
23280 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
23281 function_label_operand.
23282 (emit_move_sequence): Likewise.
23283
23284 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
23285
23286 * config/i386/sse.md (sseunpackmode): New mode attribute.
23287 (ssepackmode): Ditto.
23288 (vec_pack_trunc_<mode>): Macroize expander from
23289 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
23290 (vec_unpacks_lo_<mode>): Macroize expander from
23291 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23292 (vec_unpacks_hi_<mode>): Macroize expander from
23293 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23294 (vec_unpacku_lo_<mode>): Macroize expander from
23295 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23296 (vec_unpacku_hi_<mode>): Macroize expander from
23297 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23298 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
23299 ix86_expand_sse4_unpack.
23300 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
23301
23302 2011-04-16 Jan Hubicka <jh@suse.cz>
23303
23304 * cgraphbuild.c: Include ipa-inline.h.
23305 (reset_inline_failed): Use initialize_inline_failed.
23306 * cgraph.c: Include ipa-inline.h.
23307 (cgraph_create_node_1): Do not initialize estimated_growth.
23308 (initialize_inline_failed): More to ipa-inline-analysis.c
23309 (dump_cgraph_node): Do not dump inline flags.
23310 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
23311 and disregard_inline_limits flags.
23312 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
23313 time, size, estimated_growth.
23314 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
23315 Update.
23316 * cgraphunit.c (cgraph_decide_is_function_needed): Use
23317 DECL_DISREGARD_INLINE_LIMITS.
23318 (cgraph_analyze_function): Do not initialize
23319 node->local.disregard_inline_limits.
23320 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
23321 inlinable, versionable and disregard_inline_limits.
23322 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
23323 cgraph_check_inline_limits, cgraph_default_inline_p,
23324 cgraph_edge_badness, update_caller_keys, update_callee_keys,
23325 add_new_edges_to_heap): Update.
23326 (cgraph_decide_inlining_of_small_function): Update; set
23327 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
23328 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
23329 cgraph_decide_inlining_incrementally): Update.
23330 * ipa-inline.h (inline_summary): Add inlinable, versionable,
23331 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
23332 time, size and estimated_growth parameters.
23333 (estimate_edge_growth): Update.
23334 (initialize_inline_failed): Declare.
23335 * ipa-split.c: Include ipa-inline.h
23336 (execute_split_functions): Update.
23337 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
23338 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
23339 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
23340 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
23341 estimated_growth to INT_MIN.
23342 (inline_node_duplication_hook): Likewise.
23343 (dump_inline_summary): Dump new fields.
23344 (compute_inline_parameters): Update.
23345 (estimate_edge_time, estimate_time_after_inlining,
23346 estimate_size_after_inlining, estimate_growth, inline_read_summary,
23347 inline_write_summary):
23348 (initialize_inline_failed): Move here from cgraph.c.
23349 * tree-sra.c: Include ipa-inline.h.
23350 (ipa_sra_preliminary_function_checks): Update.
23351 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
23352 ipa-inline.h.
23353
23354 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
23355
23356 * config/i386/sse.md (V16): New mode iterator.
23357 (VI1, VI8): Ditto.
23358 (AVXMODEQI, AVXMODEDI): Remove.
23359 (sse2, sse3): New mode attribute.
23360 (mov<mode>): Use V16 mode iterator.
23361 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
23362 (push<mode>1): Use V16 mode iterator.
23363 (movmisalign<mode>): Ditto.
23364 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
23365 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
23366 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
23367 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
23368 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
23369 avx_movdqu<avxmodesuffix>.
23370 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
23371 *avx_movdqu<avxmodesuffix>.
23372 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
23373 avx_lddqu<avxmodesuffix>.
23374 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
23375 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
23376 avx_movnt<AVXMODEDI:mode>.
23377 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
23378 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
23379
23380 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
23381
23382 PR target/48629
23383 * haifa-sched.c (prune_ready_list, schedule_block): Use
23384 sched_pressure_p rather than flag_sched_pressure.
23385
23386 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
23387
23388 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
23389 cgraph_get_node instead of cgraph_get_create_node.
23390
23391 2011-04-15 Jakub Jelinek <jakub@redhat.com>
23392
23393 * cfgexpand.c (expand_debug_expr): Use
23394 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
23395
23396 2011-04-15 Michael Matz <matz@suse.de>
23397
23398 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
23399 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
23400 * function.c (gimplify_parameters): Ditto.
23401 * gimplify.c (gimplify_vla_decl): Ditto.
23402
23403 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
23404 (gimple_call_set_alloca_for_var): New inline function.
23405 (gimple_call_alloca_for_var_p): Ditto.
23406 * gimple.c (gimple_build_call_from_tree): Remember
23407 CALL_ALLOCA_FOR_VAR_P state.
23408 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
23409
23410 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
23411 calls if they were for VLA objects.
23412
23413 2011-04-15 Martin Jambor <mjambor@suse.cz>
23414
23415 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
23416 of ADR_EXPRs.
23417
23418 2011-04-15 Martin Jambor <mjambor@suse.cz>
23419
23420 PR middle-end/48601
23421 * tree-emutls.c (lower_emutls_function_body): Call
23422 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
23423 result is non-NULL.
23424
23425 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
23426
23427 * c-decl.c (detect_field_duplicates): Call
23428 objc_detect_field_duplicates instead of objc_get_interface_ivars.
23429
23430 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
23431
23432 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
23433 * gimple.c (gimple_asm_clobbers_memory_p): Define.
23434 * ipa-pure-const.c (check_stmt): Call it.
23435 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
23436
23437 2011-04-15 Richard Guenther <rguenther@suse.de>
23438
23439 PR tree-optimization/48290
23440 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
23441 Properly decide inhibiting propagation based on the valueized
23442 operand. Do loop-closed SSA form preserving here ...
23443 (init_copy_prop): ... not here.
23444
23445 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
23446
23447 PR target/48612
23448 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
23449 (*ieee_smax<mode>3): Likewise.
23450
23451 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23452
23453 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
23454 Replace match_operand with match_dup for the third operand in
23455 these expanders.
23456
23457 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
23458
23459 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
23460 to track processing of conditionals. Update all callers.
23461 (try_combine, simplify_if_then_else): Update.
23462
23463 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
23464
23465 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
23466 -fsched-pressure.
23467
23468 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
23469
23470 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
23471 instead of match_operand for operand 3.
23472
23473 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
23474
23475 * recog.h (insn_operand_data): Add an "allows_mem" field.
23476 * genoutput.c (output_operand_data): Initialize it.
23477 * optabs.c (maybe_legitimize_operand_same_code): New function.
23478 (maybe_legitimize_operand): Use it when matching the original
23479 op->value.
23480
23481 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
23482
23483 * gimplify.c: Fix issues in comments throughout.
23484 (voidify_wrapper_expr): Fix long line.
23485 (build_stack_save_restore): Likewise.
23486 (gimplify_loop_expr): Likewise.
23487 (gimplify_compound_lval): Likewise.
23488 (gimplify_init_ctor_eval): Likewise.
23489 (gimplify_modify_expr_rhs): Likewise.
23490 (omp_notice_threadprivate_variable): Likewise.
23491
23492 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
23493
23494 * cfgexpand.c (expand_call_stmt): Convert the function type to the
23495 original one if this is not a builtin function.
23496
23497 2011-04-14 Jakub Jelinek <jakub@redhat.com>
23498
23499 PR target/48605
23500 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
23501 offset it as needed based on top 2 bits in operands[3], change
23502 MEM mode to SFmode and mask those 2 bits away from operands[3].
23503
23504 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
23505
23506 * c-parser.c (c_parser_objc_protocol_definition): Updated for
23507 change from objc_declare_protocols() to objc_declare_protocol().
23508
23509 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
23510
23511 * config/i386/sse.md (sse4_1): New mode attribute.
23512 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
23513 avx_blend<ssemodesuffix><avxmodesuffix> and
23514 sse4_1_blend<ssemodesuffix> using VF mode iterator.
23515 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
23516 avx_blendv<ssemodesuffix><avxmodesuffix> and
23517 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
23518 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
23519 avx_dp<ssemodesuffix><avxmodesuffix> and
23520 sse4_1_dp<ssemodesuffix> using VF mode iterator.
23521 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
23522 (sse4_1_packusdw): Merge with *avx_packusdw.
23523 (sse4_1_pblendvb): Merge with *avx_pblendvb.
23524 (sse4_1_pblendw): Merge with *avx_pblendw.
23525 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
23526 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
23527 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
23528 VF mode iterator.
23529 (sse4_1_round<ssescalarmodesuffix>): Merge with
23530 *avx_round<ssescalarmodesuffix>.
23531 (aesenc): Merge with *avx_aesenc.
23532 (aesenclast): Merge with *avx_aesenclast.
23533 (aesdec): Merge with *avx_aesdec.
23534 (aesdeclast): Merge with *avx_aesdeclast.
23535 (pclmulqdq): Merge with *pclmulqdq.
23536 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
23537 New predicate.
23538 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
23539
23540 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
23541
23542 PR middle-end/48608
23543 * cfgexpand.c (get_decl_align_unit): Renamed to ...
23544 (align_local_variable): This. Update DECL_ALIGN.
23545 (add_stack_var): Updated.
23546 (expand_one_stack_var): Likewise.
23547
23548 2011-04-14 Richard Guenther <rguenther@suse.de>
23549
23550 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
23551 Remove.
23552 (dse_initialize_block_local_data, dse_leave_block,
23553 record_voperand_set, get_stmt_uid): Likewise.
23554 (dse_possible_dead_store_p): Allow any kind of killing stmt.
23555 (dse_optimize_stmt): Remove voperand set handling code.
23556 Simplify and improve to handle any kind of killing stmt.
23557 (dse_record_phi): Remove.
23558 (dse_enter_block): Simplify.
23559 (tree_ssa_dse): Likewise.
23560 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
23561
23562 2011-04-14 Jan Hubicka <jh@suse.cz>
23563
23564 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
23565 * cgraph.h (struct inline_summary): Move to ipa-inline.h
23566 (cgraph_local_info): Remove inline_summary.
23567 * ipa-cp.c: Include ipa-inline.h.
23568 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
23569 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
23570 accesor.
23571 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
23572 (input_overwrite_node): Do not set inline summary.
23573 (input_node): Do not stream inline summary.
23574 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
23575 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
23576 growth; we do not have inline parameters computed for that anyway.
23577 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
23578 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
23579 (inline_summary_t): New type and VECtor.
23580 (debug_inline_summary, dump_inline_summaries): Declare.
23581 (inline_summary): Use VOCtor.
23582 (estimate_edge_growth): Kill hack computing call stmt size directly.
23583 * lto-section-in.c (lto_section_name): Add inline section.
23584 * ipa-inline-analysis.c: Include lto-streamer.h
23585 (node_removal_hook_holder, node_duplication_hook_holder): New holders
23586 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
23587 (inline_summary_vec): Define.
23588 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
23589 dump_inline_summaries): New functions.
23590 (estimate_function_body_sizes): Properly compute size/time of outgoing
23591 calls.
23592 (compute_inline_parameters): Alloc inline_summary; do not compute
23593 size/time of incomming calls.
23594 (estimate_edge_time): Avoid missing time summary hack.
23595 (inline_read_summary): Read inline summary info.
23596 (inline_write_summary): Write inline summary info.
23597 (inline_free_summary): Free all hooks and inline summary vector.
23598 * lto-streamer.h: Add LTO_section_inline_summary section.
23599 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
23600 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
23601
23602 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23603
23604 * tree-vectorizer.h (vect_strided_store_supported): Add a
23605 HOST_WIDE_INT argument.
23606 (vect_strided_load_supported): Likewise.
23607 (vect_permute_store_chain): Return void.
23608 (vect_transform_strided_load): Likewise.
23609 (vect_permute_load_chain): Delete.
23610 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
23611 count argument. Check that the count is a power of two.
23612 (vect_strided_load_supported): Likewise.
23613 (vect_permute_store_chain): Return void. Update after above changes.
23614 Assert that the access is supported.
23615 (vect_permute_load_chain): Likewise.
23616 (vect_transform_strided_load): Return void.
23617 * tree-vect-stmts.c (vectorizable_store): Update calls after
23618 above interface changes.
23619 (vectorizable_load): Likewise.
23620 (vect_analyze_stmt): Don't check for strided powers of two here.
23621
23622 2011-04-14 Richard Guenther <rguenther@suse.de>
23623
23624 PR tree-optimization/48590
23625 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23626 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
23627 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
23628 BUILT_IN_STACK_SAVE.
23629 * tree-ssa-dce.c (propagate_necessity): Handle
23630 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
23631
23632 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
23633
23634 * c-parser.c (c_parser_objc_class_declaration): Updated call to
23635 objc_declare_class.
23636
23637 2011-04-14 Richard Guenther <rguenther@suse.de>
23638
23639 * tree.h (get_object_alignment_1): Declare.
23640 * builtins.c (get_object_alignment_1): Split out worker from ...
23641 (get_object_alignment): ... here.
23642 * fold-const.c (get_pointer_modulus_and_residue): Use
23643 get_object_alignment_1.
23644
23645 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23646
23647 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
23648 type parameter.
23649 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
23650 parameter. Generalise code to handle arrays as well as vectors.
23651 (vect_setup_realignment): Update accordingly.
23652 * tree-vect-stmts.c (vectorizable_store): Likewise.
23653 (vectorizable_load): Likewise.
23654
23655 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23656
23657 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
23658 within the per-copy loop.
23659
23660 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23661
23662 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
23663 in the dump file.
23664
23665 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23666
23667 * doc/options.texi (Negative): Explicitly mention that the
23668 Negative chain must be circular.
23669
23670 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
23671
23672 * function.h (block_chainon): Declare.
23673 * function.c (block_chainon): Define.
23674
23675 2011-04-14 Anatoly Sokolov <aesok@post.ru>
23676 Eric Weddington <eric.weddington@atmel.com>
23677 Georg-Johann Lay <avr@gjlay.de>
23678
23679 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
23680 New Includes
23681 (avr_init_builtins, avr_expand_builtin,
23682 avr_expand_delay_cycles, avr_expand_unop_builtin,
23683 avr_expand_binop_builtin ): New functions.
23684 (avr_builtin_id): New enum
23685 (struct avr_builtin_description): New struct
23686 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
23687 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
23688
23689 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
23690 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
23691 UNSPECV_DELAY_CYCLES): new enumeration values
23692 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
23693 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
23694 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
23695 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
23696 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
23697 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
23698 "fmulsu"): New insns
23699
23700 * config/avr/avr-c.c: fix line endings
23701 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
23702 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
23703 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
23704 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
23705 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
23706
23707 * doc/extend.texi (AVR Built-in Functions): New node
23708 (Target Builtins): Add documentation of AVR
23709 built-in functions.
23710
23711 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
23712
23713 PR target/44643
23714 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
23715 alone. Error if non-const data has attribute progmem.
23716
23717 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23718
23719 * tree.h (struct tree_constructor): Include tree_typed instead of
23720 tree_common.
23721 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
23722 TS_TYPED instead of TS_COMMON.
23723
23724 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
23725
23726 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
23727 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
23728 (sse2_psadbw): Merge with *avx_psadbw.
23729 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
23730 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
23731 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
23732 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
23733 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
23734 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
23735 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
23736 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
23737 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
23738 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
23739 (ssse3_palignrti): Merge with *avx_palignrti.
23740
23741 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23742
23743 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
23744 * tree-ssanames.c (fini_ssanames): VEC_free it.
23745 (make_ssa_name_fn): Update for VECness of free_ssanames.
23746 (release_ssa_name, release_dead_ssa_names): Likewise.
23747 * tree.h (struct tree_ssa_name): Include tree_typed instead of
23748 tree_common.
23749 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
23750 TS_TYPED instead of TS_COMMON.
23751
23752 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23753
23754 * postreload-gcse.c (gcse_after_reload_main): Add calls to
23755 statistics_counter_event.
23756 * tree-ssa-copyrename.c (stats): Define.
23757 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
23758 statistics_counter_event.
23759 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
23760 (bswap_stats, widen_mul_stats): Define.
23761 (insert_reciprocals): Increment rdivs_inserted.
23762 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
23763 rfuncs_inserted. Add calls to statistics_counter_event.
23764 (execute_cse_sincos_1): Increment inserted.
23765 (execute_cse_sincos): Zeroize sincos_stats. Add call to
23766 statistics_counter_event.
23767 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
23768 of bswap_stats. Add calls to statistics_counter_event.
23769 (convert_mult_to_widen): Increment widen_mults_inserted.
23770 (convert_plusminus_to_widen): Increment maccs_inserted.
23771 (convert_mult_to_fma): Increment fmas_inserted.
23772 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
23773 calls to statistics_counter_event.
23774
23775 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
23776
23777 PR rtl-optimization/48455
23778 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
23779 `temp_costs->mem_cost'.
23780
23781 2011-04-13 Jan Hubicka <jh@suse.cz>
23782
23783 * ipa-inline.h: New file.
23784 * ipa-inline-analysis.c: New file. Broken out of ...
23785 * ipa-inline.c: ... this file; update toplevel comment;
23786 include ipa-inline.h
23787 (inline_summary): Move to ipa-inline.h
23788 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
23789 ipa-inline-analysis.c.
23790 (cgraph_estimate_time_after_inlining): Rename to
23791 estiamte_time_after_inlining; move to ipa-inline-analysis.c
23792 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
23793 to estimate_edge_growth.
23794 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
23795 rename to estimate_size_after_inlining.
23796 (cgraph_mark_inline_edge): Update for new naming convention.
23797 (cgraph_check_inline_limits): Likewise.
23798 (cgraph_edge_badness): Likewise.
23799 (cgraph_decide_recursive_inlining): Likewise.
23800 (cgraph_decide_inlining_of_small_functions): Likewise.
23801 (cgraph_decide_inlining_incrementally): Likewise.
23802 (cgraph_estimate_growth): Rename to estimate_growth; move to
23803 ipa-inline-analysis.c.
23804 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
23805 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
23806 (compute_inline_parameters): Likewise.
23807 (compute_inline_parameters_for_current): Likewise.
23808 (pass_inline_parameters): Likewise.
23809 (inline_indirect_intraprocedural_analysis): Likewise.
23810 (analyze_function): Rename to inline_analyze_function; likewise.
23811 (add_new_function): Move to ipa-inline-analysis.c.
23812 (inline_generate_summary): Likewise.
23813 (inline_read_summary): Likewise.
23814 (inline_write_summary): Likewise.
23815 * Makefile.in (ipa-inline-analysis.c): New file.
23816
23817 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23818
23819 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
23820 * configure: Regenerate.
23821
23822 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23823
23824 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
23825 instead of tree_common.
23826 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
23827 Likewise.
23828 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
23829 TS_TYPED rather than TS_COMMON.
23830 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
23831
23832 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
23833
23834 PR target/45263
23835 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
23836 r20 around calls of __tablejump_elpm__
23837
23838 2011-04-13 Jakub Jelinek <jakub@redhat.com>
23839
23840 PR middle-end/48591
23841 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
23842 NULL.
23843 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
23844
23845 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
23846
23847 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
23848 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
23849 (cfi_vec): New typedef.
23850 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
23851 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
23852 (cie_cfi_vec): New static variable.
23853 (cie_cfi_head): Delete.
23854 (add_cfi): Accept a cfi_vec * as first argument. All callers and
23855 declaration changed. Use vector rather than list operations.
23856 (new_cfi): Don't initialize the dw_cfi_next field.
23857 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
23858 rather than list operations.
23859 (lookup_cfa): Use vector rather than list operations.
23860 (output_cfis): New argument upto. Accept a cfi_vec rather than
23861 a dw_cfi_ref list head as argument. All callers changed.
23862 Iterate over the vector using upto as a maximum index.
23863 (output_all_cfis): New static function.
23864 (output_fde): Use vector rather than list operations. Use the
23865 new upto argument for output_cfis rather than manipulating a
23866 list.
23867 (dwarf2out_begin_prologue): Change initializations to match
23868 new struct members.
23869 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
23870 from the vector length rather than searching for the end of a list.
23871 Use output_all_cfis.
23872 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
23873
23874 2011-04-13 Nick Clifton <nickc@redhat.com>
23875
23876 * config/rx/rx.md (movmemsi): Do not use this pattern when
23877 volatile pointers are involved.
23878
23879 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
23880
23881 * config/i386/sse.md (pinsrbits): Remove.
23882 (sse2_packsswb): Merge with *avx_packsswb.
23883 (sse2_packssdw): Merge with *avx_packssdw.
23884 (sse2_packuswb): Merge with *avx_packuswb.
23885 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
23886 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
23887 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
23888 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
23889 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
23890 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
23891 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
23892 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
23893 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
23894 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
23895 (sse2_loadld): Merge with *avx_loadld.
23896 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
23897 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
23898 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
23899 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
23900 (vec_concatv2di): Merge with *vec_concatv2di_avx.
23901
23902 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
23903
23904 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
23905 calling TREE_CHAIN.
23906 * print-tree.c (print_node): Likewise.
23907 * tree-inline.c (copy_tree_r): Likewise.
23908 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
23909 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
23910 instead of TS_COMMON.
23911 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
23912 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
23913 (copy_node_stat): Zero TREE_CHAIN only if necessary.
23914 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
23915 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
23916 ...and these...
23917 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
23918 * tree.h: ...here.
23919 (TREE_CHAIN): Check for a TS_COMMON structure.
23920 (TREE_TYPE): Check for a TS_TYPED structure.
23921
23922 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
23923
23924 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
23925 cgraph_get_create_node instead of cgraph_node.
23926
23927 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23928
23929 * c-parser.c (c_parser_initelt): Updated call to
23930 objc_build_message_expr.
23931 (c_parser_postfix_expression): Likewise.
23932
23933 2011-04-12 Kai Tietz <ktietz@redhat.com>
23934
23935 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
23936 MASK_MS_BITFIELD_LAYOUT bit.
23937
23938 2011-04-12 Jakub Jelinek <jakub@redhat.com>
23939
23940 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
23941 assert it is always true.
23942 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
23943 moves.
23944
23945 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23946
23947 * c-parser.c (c_lex_one_token): Rewritten conditional used when
23948 compiling Objective-C to be more efficient.
23949
23950 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
23951
23952 * opts-common.c (decode_cmdline_options_to_array): Remove variable
23953 argv_copied.
23954
23955 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23956
23957 * recog.h, genoutput.c, optabs.c: Revert last patch.
23958
23959 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23960
23961 PR target/48090
23962 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
23963
23964 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23965
23966 * recog.h (insn_operand_data): Add an "allows_mem" field.
23967 * genoutput.c (output_operand_data): Initialize it.
23968 * optabs.c (maybe_legitimize_operand_same_code): New function.
23969 (maybe_legitimize_operand): Use it when matching the original
23970 op->value.
23971
23972 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23973
23974 * genpreds.c (process_define_predicate): Move most processing
23975 to gensupport.c. Continue to validate the expression.
23976 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
23977 (process_define_predicate): Move processing to gensupport.c.
23978 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
23979 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
23980 (compute_predicate_codes): Moved from genrecog.c. Add lineno
23981 argument.
23982 (valid_predicate_name_p): New function, split out from old
23983 genpreds.c:process_define_predicate.
23984 (process_define_predicate): New function, combining code from
23985 old genpreds.c and genrecog.c functions.
23986 (process_rtx): Call it for DEFINE_PREDICATE and
23987 DEFINE_SPECIAL_PREDICATE.
23988
23989 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23990
23991 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
23992 size of a '%A' memory reference.
23993 (T_DREG, T_QREG): New neon_builtin_type_bits.
23994 (arm_init_neon_builtins): Assert that the load and store operands
23995 are neon_struct_operands.
23996 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
23997 (NEON_ARG_MEMORY): New builtin_arg.
23998 (neon_dereference_pointer): New function.
23999 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
24000 Handle NEON_ARG_MEMORY.
24001 (arm_expand_neon_builtin): Update after above interface changes.
24002 Use NEON_ARG_MEMORY for loads and stores.
24003 * config/arm/predicates.md (neon_struct_operand): New predicate.
24004 * config/arm/iterators.md (V_two_elem): Tweak formatting.
24005 (V_three_elem): Use BLKmode for accesses that have no associated mode.
24006 (V_four_elem): Tweak formatting.
24007 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
24008 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
24009 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
24010 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
24011 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
24012 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
24013 (neon_vst4<mode>): Replace pointer operand with a memory operand.
24014 Use %A in the output template.
24015 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
24016 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
24017 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
24018 the width of the memory access. Remove post-increment.
24019 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
24020
24021 2011-04-12 Nick Clifton <nickc@redhat.com>
24022
24023 * config/v850/v850.c (expand_prologue): Do not use the CALLT
24024 instruction for interrupt handlers if the target is the basic V850
24025 architecture.
24026 (expand_epilogue): Likewise.
24027
24028 2011-04-12 Jakub Jelinek <jakub@redhat.com>
24029
24030 PR rtl-optimization/48549
24031 * combine.c (propagate_for_debug): Also stop after BB_END of
24032 this_basic_block. Process LAST and just stop processing after it.
24033 (combine_instructions): If last_combined_insn has been deleted,
24034 set last_combined_insn to its PREV_INSN.
24035
24036 2011-04-12 Richard Guenther <rguenther@suse.de>
24037
24038 PR tree-optimization/46076
24039 * gimple.h (struct gimple_statement_call): Add fntype field.
24040 (gimple_call_fntype): Adjust.
24041 (gimple_call_set_fntype): New function.
24042 * gimple.c (gimple_build_call_1): Set the call function type.
24043 * gimplify.c (gimplify_call_expr): Preserve the function
24044 type the frontend used for the call.
24045 (gimplify_modify_expr): Likewise.
24046 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
24047 function type.
24048 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
24049 function type.
24050 * tree-ssa.c (useless_type_conversion_p): Function pointer
24051 conversions are useless.
24052
24053 2011-04-12 Martin Jambor <mjambor@suse.cz>
24054
24055 * cgraph.h (cgraph_node): Remove function declaration.
24056 (cgraph_create_node): Declare.
24057 (cgraph_get_create_node): Likewise.
24058 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
24059 Updated all callers.
24060 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
24061 the decl does not already exist. Call cgraph_get_create_node instead
24062 of cgraph_node.
24063 (cgraph_get_create_node): New function.
24064 (cgraph_same_body_alias): Update comment.
24065 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
24066 assert it does not return NULL.
24067 (cgraph_update_edges_for_call_stmt): Likewise.
24068 (cgraph_clone_edge): Likewise.
24069 (cgraph_create_virtual_clone): Likewise.
24070 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
24071 instead of cgraph_node.
24072 (cgraph_add_new_function): Call cgraph_create_node or
24073 cgraph_get_create_node instead of cgraph_node.
24074 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
24075 instead of cgraph_node.
24076 (record_eh_tables): Likewise.
24077 (mark_address): Likewise.
24078 (mark_load): Likewise.
24079 (build_cgraph_edges): Call cgraph_get_create_node instead
24080 of cgraph_node.
24081 (rebuild_cgraph_edges): Likewise.
24082 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
24083 instead of cgraph_node.
24084 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
24085 cgraph_node.
24086 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
24087 cgraph_create_node instead of cgraph_node.
24088 * c-decl.c (finish_function): Call cgraph_get_create_node instead
24089 of cgraph_node.
24090 * lto-cgraph.c (input_node): Likewise.
24091 * lto-streamer-in.c (input_function): Likewise.
24092 * varasm.c (mark_decl_referenced): Likewise.
24093 (assemble_alias): Likewise.
24094
24095 2011-04-12 Martin Jambor <mjambor@suse.cz>
24096
24097 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
24098 instead of cgraph_node and assert it does not return NULL.
24099 * lto-streamer-in.c (lto_read_body): Likewise.
24100 * omp-low.c (new_omp_context): Likewise.
24101 (create_task_copyfn): Likewise.
24102 * tree-emutls.c (lower_emutls_function_body): Likewise.
24103 * matrix-reorg.c (transform_allocation_sites): Likewise.
24104
24105 2011-04-12 Jakub Jelinek <jakub@redhat.com>
24106
24107 PR c/48552
24108 * c-typeck.c (build_asm_expr): Error out on attempts to use
24109 void type outputs or inputs for constraints that allow reg or
24110 don't allow memory.
24111
24112 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
24113 Richard Earnshaw <rearnsha@arm.com>
24114
24115 PR target/48250
24116 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
24117 to use sign-magnitude offsets. Reject unsupported unaligned
24118 cases. Add detailed description in comments.
24119 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
24120 condition from TARGET_32BIT to TARGET_ARM.
24121
24122 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
24123
24124 * tree.h (struct typed_tree): New.
24125 (struct tree_common): Include it instead of tree_base.
24126 (TREE_TYPE): Update for new location of type field.
24127 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
24128 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
24129 (union tree_node): Add typed field.
24130 * treestruct.def (TS_TYPED): New.
24131 * lto-streamer.c (check_handled_ts_structures): Handle it.
24132 * tree.c (MARK_TS_TYPED): New macro.
24133 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
24134
24135 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
24136
24137 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
24138 (force_nonfallthru): Do not alter the loop nest if no basic block
24139 was created.
24140
24141 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
24142
24143 * config/i386/sse.md (VI): New mode iterator.
24144 (SSEMODEI): Remove.
24145 (AVX256MODEI): Ditto.
24146 (AVXMODEF4P): Ditto.
24147 (avxvecpsmode): Ditto.
24148 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
24149 (sse2_andnot<mode>3): New expander.
24150 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
24151 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
24152 (<any_logic:code><mode>3): Use VI mode iterator.
24153 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
24154 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
24155 (*andnottf3): Handle AVX three-operand constraints.
24156 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
24157
24158 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24159 Robert Millan <rmh@gnu.org>
24160
24161 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
24162 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
24163 GNU_USER_DYNAMIC_LINKER64): Define.
24164 (REG_NAME): Don't undefine.
24165 (MD_UNWIND_SUPPORT): Undefine.
24166 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
24167 (REG_NAME): Don't undefine.
24168 (MD_UNWIND_SUPPORT): Undefine.
24169 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
24170
24171 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24172
24173 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
24174 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
24175
24176 2011-04-11 Xinliang David Li <davidxl@google.com>
24177
24178 * value-profile.c (check_ic_target): New function.
24179 (gimple_ic_transform): Sanity check indirect call target.
24180 * gimple-low.c (gimple_check_call_args): Interface change.
24181 (gimple_check_call_matching_types): New function.
24182 * tree-inline.c (tree_can_inline_p): Call new function.
24183
24184 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
24185
24186 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
24187 tree-pretty-print.h & realmpfr.h.
24188
24189 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
24190
24191 PR middle-end/48464
24192 * ira.c (setup_pressure_classes): Fix typo in loop condition.
24193 (setup_allocno_and_important_classes): Ditto.
24194
24195 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24196
24197 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
24198 GNU_USER_DYNAMIC_LINKER.
24199 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
24200 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24201 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
24202 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24203 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24204 GNU_USER_TARGET_OS_CPP_BUILTINS.
24205 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
24206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24207 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24208 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24209 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
24210 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24211 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24212 GNU_USER_TARGET_OS_CPP_BUILTINS.
24213 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24214 GNU_USER_DYNAMIC_LINKER.
24215 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24216 GNU_USER_TARGET_OS_CPP_BUILTINS.
24217 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
24218 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24219 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
24220 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24221 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
24222 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
24223 GNU_USER_DYNAMIC_LINKER64): Remove.
24224 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
24225 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24226 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24227 GNU_USER_DYNAMIC_LINKER.
24228 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24229 GNU_USER_TARGET_OS_CPP_BUILTINS.
24230 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24231 GNU_USER_TARGET_OS_CPP_BUILTINS.
24232 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
24233 to GNU_USER_TARGET_OS_CPP_BUILTINS.
24234 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24235 GNU_USER_TARGET_OS_CPP_BUILTINS.
24236 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
24237 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
24238 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
24239 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
24240 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24241 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24242 GNU_USER_DYNAMIC_LINKER.
24243 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24244 GNU_USER_TARGET_OS_CPP_BUILTINS.
24245 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
24246 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24247 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24248 GNU_USER_DYNAMIC_LINKER.
24249 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24250 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24251 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
24252 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24253 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24254 GNU_USER_DYNAMIC_LINKER.
24255 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
24256 GNU_USER_DYNAMIC_LINKERN32.
24257 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
24258 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
24259 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
24260 GNU_USER_DYNAMIC_LINKER32.
24261 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
24262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24264 GNU_USER_DYNAMIC_LINKER.
24265 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24266 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24267 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
24268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24269 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24270 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
24271 GNU_USER_DYNAMIC_LINKER32.
24272 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
24273 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
24274 GNU_USER_DYNAMIC_LINKER.
24275 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
24276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24277 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
24278 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
24279 GNU_USER_DYNAMIC_LINKER64.
24280 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
24281 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24282 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24283 GNU_USER_DYNAMIC_LINKER.
24284 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
24285 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24286 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24287 GNU_USER_DYNAMIC_LINKER.
24288 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
24289 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24290 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
24291 GNU_USER_DYNAMIC_LINKER32.
24292 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
24293 GNU_USER_DYNAMIC_LINKER64.
24294 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
24295 GNU_USER_DYNAMIC_LINKER64.
24296 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
24297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24298 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
24299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24300 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24301
24302 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24303
24304 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
24305 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
24306 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
24307 GNU_USER_DYNAMIC_LINKER.
24308 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
24309 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
24310 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
24311 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
24312 GNU_USER_DYNAMIC_LINKER64.
24313 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
24314 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
24315 GNU_USER_LINK_EMULATION.
24316 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
24317 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
24318 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
24319 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
24320 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
24321 CPP_SPEC, CC1_SPEC): Remove.
24322 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
24323 (GNU_USER_DYNAMIC_LINKER): Define.
24324 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
24325 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
24326 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
24327 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
24328 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
24329 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
24330 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
24331 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
24332 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
24333 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
24334 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
24335 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
24336 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
24337 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
24338 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
24339 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
24340 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24341 GNU_USER_DYNAMIC_LINKER.
24342 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24343 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24344 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24345 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24346 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24347 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24348 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
24349 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
24350 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
24351 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
24352
24353 2011-04-11 Kai Tietz <ktietz@redhat.com>
24354
24355 PR target/9601
24356 PR target/11772
24357 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
24358 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
24359 comment.
24360 (ix86_is_msabi_thiscall): Removed.
24361 (ix86_is_type_thiscall): Likewise.
24362 (ix86_get_callcvt): New function.
24363 (ix86_comp_type_attributes): Simplify check.
24364 (ix86_function_regparm): Use ix86_get_callcvt for calling
24365 convention attribute checks.
24366 (ix86_return_pops_args): Likewise.
24367 (ix86_static_chain): Likewise.
24368 (x86_this_parameter): Likewise.
24369 (x86_output_mi_thunk): Likewise.
24370 (ix86_function_type_abi): Optimize check for types without attributes.
24371 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
24372 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
24373 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
24374 by flag-values.
24375 (IX86_BASE_CALLCVT): Helper macro.
24376 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
24377 Use ix86_get_callcvt for calling convention attribute checks and avoid
24378 symbol-decoration for stdcall in TARGET_RTD case.
24379 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
24380 Likewise.
24381 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
24382 for declaration.
24383
24384 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
24385
24386 * config/i386/sse.md (VI_128): New mode iterator.
24387 (VI12_128): Rename from SSEMODE12.
24388 (VI14_128): Rename from SSEMODE14.
24389 (VI124_128): New mode iterator.
24390 (VI24_128): Rename from SSEMODE248.
24391 (VI248_128): Rename from SSEMODE248.
24392 (SSEMODE124C8): Remove.
24393 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
24394 (*sse2_<plusminus_insn><mode>3): Merge with
24395 *avx_<plusminus_insn><mode>3.
24396 (*mulv8hi3): Merge with *avx_mulv8hi3.
24397 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
24398 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
24399 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
24400 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
24401 (ashr<mode>3): Merge with *avx_ashr<mode>3.
24402 (lshr<mode>3): Merge with *avx_lshr<mode>3.
24403 (ashl<mode>3): Merge with *avx_ashl<mode>3.
24404 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
24405 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
24406 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24407 (*<smaxmin:code>v8hi3): Ditto.
24408 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
24409 (*<smaxmin:code>v16qi3): Ditto.
24410 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
24411 (*sse2_eq<mode>3): Ditto.
24412 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
24413 (*sse2_gt<mode>3): Ditto.
24414 (vcondv2di): Split out of vcond<mode>.
24415 (vconduv2di): Split out of vcondu<mode>.
24416
24417 2011-04-11 Richard Guenther <rguenther@suse.de>
24418
24419 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
24420 before calling tree_low_cst.
24421
24422 2011-04-11 Richard Guenther <rguenther@suse.de>
24423
24424 * stor-layout.c (layout_type): Compute all array index size operations
24425 in the original type.
24426 (initialize_sizetypes): Add comment.
24427 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
24428
24429 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24430
24431 * common.opt (Tbss=, Tdata=, Ttext=): New options.
24432
24433 2011-04-11 Martin Jambor <mjambor@suse.cz>
24434
24435 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
24436 of cgraph_node, handle NULL return value.
24437 (cgraph_global_info): Likewise.
24438 (cgraph_rtl_info): Likewise.
24439 * tree-inline.c (estimate_num_insns): Likewise.
24440 * gimplify.c (unshare_body): Likewise.
24441 (unvisit_body): Likewise.
24442 (gimplify_body): Likewise.
24443 * predict.c (optimize_function_for_size_p): Likewise.
24444 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24445 (call_may_clobber_ref_p_1): Likewise.
24446 * varasm.c (function_section_1): Likewise.
24447 (assemble_start_function): Likewise.
24448
24449 2011-04-11 Martin Jambor <mjambor@suse.cz>
24450
24451 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
24452 of cgraph_node.
24453 * final.c (rest_of_clean_state): Likewise.
24454 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
24455 * passes.c (pass_init_dump_file): Likewise.
24456 (execute_all_ipa_transforms): Likewise.
24457 (function_called_by_processed_nodes_p): Likewise.
24458 * predict.c (maybe_hot_frequency_p): Likewise.
24459 (probably_never_executed_bb_p): Likewise.
24460 (compute_function_frequency): Likewise.
24461 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
24462 (unnest_nesting_tree_1): Likewise.
24463 (lower_nested_functions): Likewise.
24464 * tree-optimize.c (execute_fixup_cfg): Likewise.
24465 (tree_rest_of_compilation): Likewise.
24466 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
24467 * tree-sra.c (ipa_early_sra): Likewise.
24468 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
24469 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
24470 * ipa.c (record_cdtor_fn): Likewise.
24471 * ipa-inline.c (cgraph_early_inlining): Likewise.
24472 (compute_inline_parameters_for_current): Likewise.
24473 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
24474 * ipa-pure-const.c (local_pure_const): Likewise.
24475 * ipa-split.c (split_function): Likewise.
24476 (execute_split_functions): Likewise.
24477 * cgraphbuild.c (build_cgraph_edges): Likewise.
24478 (rebuild_cgraph_edges): Likewise.
24479 (cgraph_rebuild_references): Likewise.
24480 (remove_cgraph_callee_edges): Likewise.
24481 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
24482 (verify_cgraph_node): Likewise.
24483 (cgraph_analyze_functions): Likewise.
24484 (cgraph_preserve_function_body_p): Likewise.
24485 (save_inline_function_body): Likewise.
24486 (save_inline_function_body): Likewise.
24487 * tree-inline.c (copy_bb): Likewise.
24488 (optimize_inline_calls): Likewise.
24489
24490 2011-04-11 Martin Jambor <mjambor@suse.cz>
24491
24492 PR tree-optimization/48195
24493 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
24494 ipa_check_create_edge_args.
24495 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
24496 ipa_check_create_edge_args.
24497 * ipa-inline.c (inline_generate_summary): Do not call
24498 ipa_check_create_node_params and ipa_check_create_edge_args.
24499 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
24500 ipa_check_create_edge_args.
24501
24502 2011-04-09 Anatoly Sokolov <aesok@post.ru>
24503
24504 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
24505 instead of loop.
24506 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
24507 * function.c (record_hard_reg_sets): Likewise.
24508 * ira.c (compute_regs_asm_clobbered): Likewise.
24509 * sched-deps.c (sched_analyze_1): Likewise.
24510 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
24511
24512 2011-04-09 Xinliang David Li <davidxl@google.com>
24513
24514 PR tree-optimization/PR48484
24515 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
24516 has_valid_pred lazily
24517
24518 2011-04-09 Duncan Sands <baldrick@free.fr>
24519
24520 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
24521
24522 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
24523
24524 * combine.c (combine_validate_cost): Adjust comments. Set registered
24525 cost of I0 to zero at the end, if any.
24526
24527 2011-04-08 Xinliang David Li <davidxl@google.com>
24528
24529 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
24530 to insane profile data.
24531
24532 2011-04-08 Xinliang David Li <davidxl@google.com>
24533
24534 * ipa-cp.c (ipcp_update_profiling): Correct
24535 negative scale factor due to insane profile data.
24536
24537 2011-04-08 Xinliang David Li <davidxl@google.com>
24538
24539 * final.c (dump_basic_block_info): New function.
24540 (final): Dump basic block.
24541 (final_scan_insn): Remove old dump.
24542
24543 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
24544
24545 PR target/47829
24546 * config.gcc (i386-*-freebsd): Disable unwind table generation for
24547 crtbegin/crtend.
24548
24549 2011-04-08 Michael Matz <matz@suse.de>
24550
24551 PR middle-end/48389
24552 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
24553 functions.
24554 (rebuild_jump_labels): Call rebuild_jump_labels_1.
24555 * rtl.h (rebuild_jump_labels_chain): Declare.
24556 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
24557 insns inserted on edges.
24558
24559 2011-04-08 Joseph Myers <joseph@codesourcery.com>
24560
24561 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
24562 * config/arm/arm-arches.def: New.
24563 * config/arm/arm-opts.h: New.
24564 * config/arm/genopt.sh: New.
24565 * config/arm/arm-tables.opt: New (generated).
24566 * config/arm/arm.c (arm_handle_option, arm_target_help,
24567 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
24568 (all_architectures): Get most table contents from arm-arches.def.
24569 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
24570 arm_selected_tune here.
24571 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
24572 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
24573 (march=, mcpu=, mtune=): Use Enum and Var.
24574 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
24575 (arm.o): Update dependencies.
24576
24577 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
24578
24579 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
24580 of header_file.
24581 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
24582 (write_typed_alloc_defns): Likewise.
24583 (main): Calls write_typed_alloc_defns with output_header.
24584
24585 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
24586
24587 PR inline-asm/48435
24588 * ira-color.c (setup_profitable_hard_regs): Add comments.
24589 Don't take prohibited hard regs into account.
24590 (setup_conflict_profitable_regs): Rename to
24591 get_conflict_profitable_regs.
24592 (check_hard_reg_p): Check prohibited hard regs.
24593
24594 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
24595
24596 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
24597 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
24598 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
24599
24600 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24601
24602 PR target/48366
24603 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
24604 move from floating point to shift amount register.
24605 (emit_move_sequence): Remove secondary reload support for floating
24606 point to shift amount amount register copies.
24607 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
24608 amount register copies.
24609 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
24610 register, return false if mode isn't a scalar integer mode.
24611 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
24612
24613 2011-04-08 Richard Guenther <rguenther@suse.de>
24614
24615 * gimple.c (gimple_call_flags): Remove kludge.
24616
24617 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24618
24619 * sel-sched.c (sel_region_init): Move call to
24620 sel_setup_region_sched_flags after setup_current_loop_nest.
24621
24622 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
24623
24624 PR rtl-optimization/48272
24625 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
24626 init_insn_reg_pressure_info. Adjust a caller.
24627 * sched-int.h (init_insn_reg_pressure_info): Declare.
24628 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
24629 when sched-pressure is enabled.
24630
24631 2011-04-08 Richard Guenther <rguenther@suse.de>
24632
24633 * gimple.c (gimple_set_modified): Do not queue calls to
24634 MODIFIED_NORETURN_CALLS here ...
24635 * tree-ssa-operands.c (update_stmt_operands): ... but here.
24636
24637 2011-04-08 Richard Guenther <rguenther@suse.de>
24638
24639 PR lto/48467
24640 * toplev.c (lang_dependent_init): Do not open asm_out_file
24641 in WPA mode, nor perform debug machinery initialization.
24642 (finalize): Do not unlink asm_out_file in WPA mode.
24643
24644 2011-04-08 Richard Guenther <rguenther@suse.de>
24645
24646 * gimple.h (gimple_call_fntype): New function.
24647 (gimple_call_return_type): Use it.
24648 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
24649 * gimple-low.c (gimple_check_call_args): Likewise.
24650 * gimple.c (gimple_call_flags): Likewise.
24651 (gimple_call_arg_flags): Likewise.
24652 (gimple_call_return_flags): Likewise.
24653 * tree-cfg.c (verify_gimple_call): Likewise.
24654 (do_warn_unused_result): Likewise.
24655 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
24656 * value-prof.c (gimple_ic_transform): Fix fndecl check.
24657
24658 2011-04-08 Dmitry Melnik <dm@ispras.ru>
24659
24660 PR rtl-optimization/48235
24661 * sel-sched.c (code_motion_process_successors): Recompute the last
24662 insn in basic block if control flow changed.
24663 (code_motion_path_driver): Ditto. Recompute the first insn as well.
24664 Update condition for ilist_remove.
24665
24666 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24667
24668 PR rtl-optimization/48302
24669 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
24670 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
24671 it to record added preheader blocks.
24672 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
24673 on to sel_add_loop_preheaders.
24674 (sel_region_init): Move call to setup_current_loop_nest after
24675 sel_init_bbs.
24676
24677 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24678
24679 PR target/48273
24680 * cfgloop.h (loop_has_exit_edges): New helper.
24681 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
24682 non-clonable.
24683 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
24684 that have no exit edges.
24685
24686 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24687
24688 PR rtl-optimization/48442
24689 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
24690 all callers. Adjust assert.
24691
24692 2011-04-08 Jakub Jelinek <jakub@redhat.com>
24693
24694 PR tree-optimization/48377
24695 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
24696 is_packed to true even for types with smaller TYPE_ALIGN than
24697 TYPE_SIZE.
24698
24699 2011-04-08 Richard Guenther <rguenther@suse.de>
24700
24701 PR bootstrap/48513
24702 * doc/tm.texi: Re-generate.
24703
24704 2011-04-08 Wei Guozhi <carrot@google.com>
24705
24706 PR target/47855
24707 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
24708 * config/arm/arm.c (arm_attr_length_push_multi): New function.
24709 * config/arm/arm.md (*push_multi): Change the length computation to
24710 call a C function.
24711
24712 2011-04-08 Anatoly Sokolov <aesok@post.ru>
24713
24714 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
24715 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
24716 * doc/tm.texi: Regenerate.
24717 * system.h (ASM_OUTPUT_BSS): Poison.
24718 * varasm.c (asm_output_bss): Remove function.
24719 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
24720
24721 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
24722 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
24723 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
24724 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24725 Likewise.
24726 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24727 Likewise.
24728 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24729 Likewise.
24730 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
24731
24732 2011-04-07 Joseph Myers <joseph@codesourcery.com>
24733
24734 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
24735 EnumValue lines.
24736
24737 2011-04-07 Joseph Myers <joseph@codesourcery.com>
24738
24739 * config/m68k/m68k.c (m68k_handle_option): Don't handle
24740 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
24741 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
24742 OPT_mcpu32.
24743 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
24744 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
24745 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
24746 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
24747 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
24748 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
24749 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
24750 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
24751 options. Don't map other m68k options manually. Don't handle
24752 old-style options as canonical.
24753 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
24754 * doc/install.texi (m68k-*-*): Document binutils version requirement.
24755
24756 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
24757
24758 * basic-block.h (force_nonfallthru): Move to...
24759 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
24760 (force_nonfallthru): ...here.
24761 * cfghooks.c (force_nonfallthru): New function.
24762 * cfgrtl.c (force_nonfallthru): Rename into...
24763 (rtl_force_nonfallthru): ...this.
24764 (commit_one_edge_insertion): Do not set AUX field.
24765 (commit_edge_insertions): Do not discover new basic blocks.
24766 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
24767 (cfg_layout_rtl_cfg_hooks): Likewise.
24768 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
24769 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
24770 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
24771
24772 2011-04-07 Anatoly Sokolov <aesok@post.ru>
24773
24774 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24775 Remove macros.
24776
24777 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
24778
24779 * config/i386/sse.md: Update copyright year.
24780 (avxcvtvecmode): Remove.
24781 (sse_movhlps): Merge with *avx_movhlps.
24782 (sse_movlhps): Merge with *avx_movlhps.
24783 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
24784 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
24785 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
24786 (sse_loadhps): Merge with *avx_loadhps.
24787 (sse_storelps): Merge with *avx_storelps.
24788 (sse_loadlps): Merge with *avx_loadlps.
24789 (sse_movss): Merge with *avx_movss.
24790 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
24791 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
24792 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
24793 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
24794 (vec_set<mode>_0): Ditto.
24795 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
24796 (sse4_1_insertps): Merge with *avx_insertps.
24797 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
24798 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
24799 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
24800 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
24801 (sse2_storehpd): Merge with *avx_storehpd.
24802 (sse2_loadhpd): Merge with *avx_loadhpd.
24803 (sse2_loadlpd): Merge with *avx_loadlpd.
24804 (sse2_movsd): Merge with *avx_movsd.
24805 (*vec_concatv2df): Merge with *vec_concatv2df.
24806
24807 2011-04-07 Jakub Jelinek <jakub@redhat.com>
24808
24809 PR debug/48343
24810 * combine.c (combine_instructions): Add last_combined_insn,
24811 update it if insn is after it, pass it to all try_combine calls.
24812 (try_combine): Add last_combined_insn parameter, pass it instead of
24813 i3 to propagate_for_debug.
24814
24815 2011-04-07 Nick Clifton <nickc@redhat.com>
24816
24817 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
24818 to handle MDR <-> data register transfers.
24819 (movhi_internal): Likewise.
24820
24821 2011-04-07 Alan Modra <amodra@gmail.com>
24822
24823 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
24824 previous stack info.
24825
24826 2011-04-07 Tom de Vries <tom@codesourcery.com>
24827
24828 PR target/43920
24829 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
24830 flow_find_cross_jump. Swap variables to implement backward replacement.
24831 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
24832
24833 2011-04-07 Tom de Vries <tom@codesourcery.com>
24834
24835 PR target/43920
24836 * cfgcleanup.c (walk_to_nondebug_insn): New function.
24837 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
24838 and bb2.
24839 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
24840 src1 or src2. Redirect edges to the last basic block. Update
24841 frequency and count on multiple basic blocks in case of fallthru.
24842
24843 2011-04-07 Tom de Vries <tom@codesourcery.com>
24844
24845 PR target/43920
24846 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
24847 function.
24848 (old_insns_match_p): Change return type. Replace return false/true
24849 with return dir_none/dir_both. Use can_replace_by.
24850 (flow_find_cross_jump): Add dir_p parameter. Init replacement
24851 direction from dir_p. Register replacement direction in dir, last_dir
24852 and afterlast_dir. Handle new return type of old_insns_match_p using
24853 merge_dir. Return replacement direction in dir_p.
24854 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
24855 return type of old_insns_match_p.
24856 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
24857 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
24858 flow_find_cross_jump.
24859 * basic-block.h (enum replace_direction): New type.
24860 (flow_find_cross_jump): Add parameter to declaration.
24861
24862 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
24863
24864 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
24865 (AVXMODEDCVTPS2DQ): Ditto.
24866 (VEC_FLOAT_MODE): Ditto.
24867 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
24868 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
24869 (<any_logic:code><mode>3): Use VF mode iterator.
24870 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
24871 Use VF mode iterator.
24872 (copysign<mode>3): Use VF mode iterator.
24873 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
24874 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
24875 (*<any_logic:code><MODEF:mode>3): Merge with
24876 *avx_<any_logic:code><MODEF:mode>3.
24877 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
24878 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
24879 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
24880 (avx_cvtdq2ps<avxmodesuffix>): Remove.
24881 (sse2_cvtdq2ps): Use %v modifier.
24882 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
24883 (avx_cvtps2dq<avxmodesuffix>): Remove.
24884 (sse2_cvtps2dq): Use %v modifier.
24885 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
24886 (avx_cvttps2dq<avxmodesuffix>): Remove.
24887 (sse2_cvttps2dq): Use %v modifier.
24888 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
24889 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
24890 (sse2_cvtsd2siq): Fix insn template.
24891 (sse2_cvtsd2siq_2): Ditto.
24892 (sse2_cvttsd2siq): Ditto.
24893 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
24894 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
24895
24896 2011-04-06 Joseph Myers <joseph@codesourcery.com>
24897
24898 * gcov-io.c: Use GCC Runtime Library Exception.
24899
24900 2011-04-06 Jakub Jelinek <jakub@redhat.com>
24901
24902 PR debug/48466
24903 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
24904 as base_reg whatever register reg has been eliminated to, instead
24905 of hardcoding STACK_POINTER_REGNUM.
24906
24907 2011-04-06 Joseph Myers <joseph@codesourcery.com>
24908
24909 * doc/tm.texi.in: Document C target hooks as separate from general
24910 target hooks.
24911 * doc/tm.texi: Regenerate.
24912 * genhooks.c (struct hook_desc): Add docname field.
24913 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
24914 docname field.
24915 (hook_array): Include c-target.def.
24916 (emit_documentation): Use docname field in output.
24917 (emit_init_macros): Take docname argument. Only emit definitions
24918 for hooks matching docname.
24919 (main): Expect additional arguments in all cases. Pass argument
24920 to emit_init_macros.
24921 * target.def: Move initial macro definitions and comments to
24922 target-hooks-macros.h.
24923 (gcc_targetcm): Move to c-family/c-target.def.
24924 * target.h (targetcm): Move declaration to c-family/c-target.h.
24925 * targhooks.c (default_handle_c_option): Move to
24926 c-family/c-opts.c.
24927 * targhooks.h (default_handle_c_option): Move declaration to
24928 c-family/c-common.h.
24929 * target-hooks-macros.h: New file.
24930 * config.gcc (target_has_targetcm): Define and use to add to
24931 c_target_objs and cxx_target_objs.
24932 * config/default-c.c: New file.
24933 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
24934 of target.h and target-def.h.
24935 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
24936 (darwin_objc_construct_string, darwin_cfstring_ref_p,
24937 darwin_check_cfstring_format_arg): Make static.
24938 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24939 TARGET_STRING_OBJECT_REF_TYPE_P,
24940 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
24941 * config/darwin-protos.h (darwin_objc_construct_string,
24942 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
24943 declare.
24944 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24945 TARGET_STRING_OBJECT_REF_TYPE_P,
24946 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
24947 * config/t-darwin (darwin-c.o): Update dependencies.
24948 * system.h (TARGET_HAS_TARGETCM): Poison.
24949 * Makefile.in (TARGET_H): Update.
24950 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
24951 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
24952 (default-c.o): New target.
24953 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
24954 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
24955 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
24956 c-target.def.
24957 (build/genhooks.o): Update dependencies.
24958
24959 2011-04-06 Richard Guenther <rguenther@suse.de>
24960
24961 * ipa-inline.c (enum inlining_mode): Remove.
24962 (cgraph_flatten): Use some other token.
24963 (cgraph_edge_early_inlinable_p): New function, split out from ...
24964 (cgraph_perform_always_inlining): New function, split out from ...
24965 (cgraph_decide_inlining_incrementally): ... here.
24966 (cgraph_mark_inline_edge): Adjust.
24967 (cgraph_early_inlining): Re-structure.
24968 (pass_early_inline): Require SSA form.
24969
24970 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
24971 Julian Brown <julian@codesourcery.com>
24972 Mark Shinwell <shinwell@codesourcery.com>
24973
24974 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
24975 LO_REGS only for Thumb-1.
24976 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
24977 be used in short instructions when optimising for size on Thumb-2.
24978
24979 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
24980
24981 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
24982 associated with user returns to be preserved.
24983
24984 2011-04-06 Tristan Gingold <gingold@adacore.com>
24985
24986 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
24987 symbol_queue_size, DBXOUT_DECR_NESTING,
24988 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
24989 if XCOFF_DEBUGGING_INFO.
24990
24991 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
24992
24993 * config/i386/i386.md (attribute isa): New.
24994 (attribute enabled): New.
24995 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
24996 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
24997 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
24998 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
24999 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
25000 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
25001 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
25002 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
25003
25004 * config/i386/sse.md (VF): New mode iterator.
25005 (VF1): Ditto.
25006 (VF2): Ditto.
25007 (VF_128): Ditto.
25008 (SSEMODEF4): Remove.
25009 (attribute sse): Handle V8SF and V4DF modes.
25010 (<absneg:code><mode>2): Use VF mode iterator.
25011 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
25012 mode iterator.
25013 (<plusminus_insn><mode>3): Use VF mode iterator.
25014 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
25015 Use VF mode iterator.
25016 (<sse>_vm<plusminus_insn><mode>3): Merge with
25017 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
25018 (mul<mode>3): Use VF mode iterator.
25019 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
25020 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
25021 mode iterator.
25022 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
25023 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
25024 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
25025 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
25026 mode iterator.
25027 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
25028 Use VF1 mode iterator.
25029 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
25030 (sqrt<VF2:mode>2): New expander.
25031 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
25032 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
25033 and sqrtv2df2. Use VF mode iterator.
25034 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
25035 mode iterator.
25036 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
25037 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
25038 Use VF1 mode iterator.
25039 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
25040 (<smaxmin:code><mode>3): Use VF mode iterator.
25041 (*<smaxmin:code><mode>3_finite): Merge with
25042 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
25043 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
25044 (<sse>_vm<smaxmin:code><mode>2): Merge with
25045 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
25046 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
25047 mode iterator.
25048 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
25049 mode iterator.
25050 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
25051 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
25052 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
25053 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
25054 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
25055 VF mode iterator.
25056 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
25057 Use VF_128 mode iterator.
25058 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
25059 mode iterator.
25060 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
25061 VF_128 mode iterator.
25062 (vcond<mode>): Use VF mode iterator.
25063 * config/i386/predicates.md (sse_comparison_operator): Merge with
25064 avx_comparison_float_operator. Do not declare as special_predicate.
25065 * config/i386/i386.c (struct builtin_description): Update for renamed
25066 compare patterns.
25067 (ix86_expand_args_builtin): Ditto.
25068 (ix86_expand_sse_compare_mask): Ditto.
25069
25070 2011-04-06 Richard Guenther <rguenther@suse.de>
25071
25072 * tree-inline.c (estimate_num_insns): For calls simply account
25073 for all passed arguments and a used return value.
25074
25075 2011-04-06 Richard Guenther <rguenther@suse.de>
25076
25077 PR tree-optimization/47663
25078 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
25079 call_stmt_time fields.
25080 (cgraph_edge_inlinable_p): Declare.
25081 (cgraph_edge_recursive_p): New inline function.
25082 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
25083 (cgraph_clone_edge): Copy it.
25084 * ipa-inline.c (cgraph_estimate_edge_time): New function.
25085 Account for call stmt time.
25086 (cgraph_estimate_time_after_inlining): Take edge argument.
25087 (cgraph_estimate_edge_growth): Account call stmt size.
25088 (cgraph_estimate_size_after_inlining): Take edge argument.
25089 (cgraph_mark_inline_edge): Adjust.
25090 (cgraph_check_inline_limits): Likewise.
25091 (cgraph_recursive_inlining_p): Remove.
25092 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
25093 (cgraph_decide_recursive_inlining): Take edge argument and
25094 adjust.
25095 (cgraph_decide_inlining_of_small_functions): Do not avoid
25096 diags for recursive inlining here.
25097 (cgraph_flatten): Adjust.
25098 (cgraph_decide_inlining_incrementally): Likewise.
25099 (estimate_function_body_sizes): Remove call cost handling.
25100 (compute_inline_parameters): Initialize caller edge call costs.
25101 (cgraph_estimate_edge_growth): New function.
25102 (cgraph_estimate_growth): Use it.
25103 (cgraph_edge_badness): Likewise.
25104 (cgraph_check_inline_limits): Take an edge argument.
25105 (cgraph_decide_inlining_of_small_functions): Adjust.
25106 (cgraph_decide_inlining): Likewise.
25107 * tree-inline.c (estimate_num_insns): Only account for call
25108 return value if it is used.
25109 (expand_call_inline): Avoid diagnostics on recursive inline
25110 functions here.
25111 * lto-cgraph.c (lto_output_edge): Output edge call costs.
25112 (input_edge): Input edge call costs.
25113
25114 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25115
25116 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
25117
25118 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
25119
25120 * doc/invoke.texi (Spec Files): Fix typo.
25121
25122 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
25123
25124 * profile.c (branch_prob): Move declaration of local variable. Remove
25125 obsolete ??? comment. Expand the location explicitly instead of using
25126 the LOCATION_FILE and LOCATION_LINE macros.
25127
25128 2011-04-06 Wei Guozhi <carrot@google.com>
25129
25130 PR target/47855
25131 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
25132 (arm_cond_branch): Likewise.
25133 (arm_cond_branch_reversed): Likewise.
25134 (arm_jump): Likewise.
25135 (push_multi): Likewise.
25136 * config/arm/constraints.md (Py): New constraint.
25137
25138 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25139
25140 PR bootstrap/48471
25141 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
25142 Move these...
25143 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
25144 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
25145 #ifdef DBX_DEBUGGING_INFO.
25146
25147 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
25148
25149 PR bootstrap/48403
25150 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
25151 if old and new states differ.
25152
25153 2011-04-05 Joseph Myers <joseph@codesourcery.com>
25154
25155 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
25156 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
25157 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
25158 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
25159 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
25160 mcfv4e): Use Alias.
25161 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
25162 ColdFire options to -mcpu= options.
25163
25164 2011-04-05 Jeff Law <law@redhat.com>
25165
25166 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
25167 check if BB is a successor of LOOP->header and return
25168 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
25169
25170 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
25171
25172 * cprop.c (struct reg_use): Remove.
25173 (reg_use_table): Make an array of RTX.
25174 (find_used_regs, constprop_register, local_cprop_pass,
25175 bypass_block): Simplify users of reg_use_table.
25176 (cprop_insn): Likewise. Iterate if copy propagation succeeded
25177 on one of the uses found by find_used_regs.
25178
25179 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25180
25181 PR bootstrap/48469
25182 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
25183 declaration.
25184
25185 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25186
25187 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
25188 as an rtx.
25189 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
25190
25191 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
25192
25193 PR middle-end/48441
25194 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
25195
25196 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25197
25198 * combine.c: Include obstack.h.
25199 (struct insn_link): Define.
25200 (uid_log_links): Adjust type.
25201 (FOR_EACH_LOG_LINK): New macro.
25202 (insn_link_obstack): Declare.
25203 (alloc_insn_link): Define.
25204 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
25205 type of link variables.
25206 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
25207 (try_combine, record_promoted_values, distribute_notes): Likewise.
25208 (distribute_links): Likewise. Tweak prototype.
25209 (clear_log_links): Delete.
25210 (adjust_for_new_dest): Call alloc_insn_link.
25211 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
25212
25213 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25214
25215 * gcse.c (modify_mem_list): Convert to an array of VECs.
25216 (canon_modify_mem_list, compute_transp): Tweak formatting.
25217 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
25218 (load_killed_in_block_p): Likewise.
25219 (record_last_mem_set_info): Likewise.
25220 (clear_modify_mem_tables): Likewise.
25221
25222 2011-04-05 Tom de Vries <tom@codesourcery.com>
25223
25224 PR middle-end/48461
25225 * function.c (emit_use_return_register_into_block): Only define if
25226 HAVE_return.
25227
25228 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
25229
25230 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
25231
25232 2011-04-05 Joseph Myers <joseph@codesourcery.com>
25233
25234 * config/rx/rx-opts.h: New.
25235 * config/rx/rx.c (rx_cpu_type): Remove.
25236 (rx_handle_option): Don't assert that global structures are in
25237 use. Access variables via opts pointer. Defer most handling of
25238 OPT_mint_register_. Use error_at.
25239 (rx_option_override): Handle deferred OPT_mint_register_ here.
25240 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
25241 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
25242 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
25243 (rx_cpu_types): New Enum and EnumValue entries.
25244 (mint-register=): Use Defer and use Var accordingly.
25245
25246 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25247
25248 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
25249 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
25250 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
25251 Move these...
25252 (debug_free_queue, debug_nesting, symbol_queue_index):
25253 ...and these...
25254 * dbxout.c: ...to here. Make static.
25255
25256 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25257
25258 * gcse.c (modify_pair): Define. Define a VEC of it.
25259 (canon_modify_mem_list): Convert to an array of VECs.
25260 (free_insn_expr_list_list): Delete.
25261 (clear_modify_mem_tables): Call VEC_free instead.
25262 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
25263 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
25264 (canon_list_insert, compute_transp): Likewise.
25265
25266 2011-04-05 Tom de Vries <tom@codesourcery.com>
25267
25268 PR target/43920
25269 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
25270 for size.
25271
25272 2011-04-05 Tom de Vries <tom@codesourcery.com>
25273
25274 PR target/43920
25275 * function.c (emit_use_return_register_into_block): New function.
25276 (thread_prologue_and_epilogue_insns): Use
25277 emit_use_return_register_into_block.
25278
25279 2011-04-05 Tom de Vries <tom@codesourcery.com>
25280
25281 PR target/43920
25282 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
25283 insn.
25284
25285 2011-04-05 Tom de Vries <tom@codesourcery.com>
25286
25287 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
25288
25289 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
25290
25291 * config/arm/arm.md (define_constants for unspec): Replace with
25292 define_c_enum.
25293 (define_constants for unspecv): Replace with define_c_enum.
25294 * config/arm/neon.md (define_constants for unspec): Replace with
25295 define_c_enum.
25296
25297 2011-04-04 Richard Henderson <rth@redhat.com>
25298
25299 PR bootstrap/48400
25300 * dwarf2out.c (output_line_info): Always emit line info from
25301 at least one section.
25302 (dwarf2out_init): Create text_section_line_info here ...
25303 (set_cur_line_info_table): ... not here.
25304
25305 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
25306
25307 PR target/48380
25308 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
25309 not called.
25310
25311 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
25312
25313 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
25314
25315 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
25316 (expr_equiv_p): Remove.
25317 (insert_set_in_table): Look at <dest, src> pair instead of expr.
25318 (hash_scan_set): Update call to insert_set_in_table.
25319 (dump_hash_table): Dump <dest, src> pair.
25320 (lookup_set): Simplify. Lookup <dest, src> pair.
25321 (compute_transp): Remove, fold heavily simplified code into...
25322 (compute_local_properties): ...here. Expect COMP and TRANSP
25323 unconditionally.
25324 (find_avail_set): Take set directly from struct expr.
25325 (find_bypass-set): Likewise.
25326 (bypass_block): Likewise.
25327 (cprop_insn): Likewise. Remove redundant INSN_P test.
25328
25329 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
25330 checks on form of COND from find_implicit_sets to here.
25331 (find_implicit_sets): Cleanup control flow. Split critical edges
25332 if it exposes implicit sets. Allocate/resize implicit_sets as
25333 necessary.
25334 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
25335 changed something. Run df_analyze after find_implicit_sets if any
25336 edges were split. Do not allocate implicit_sets here.
25337
25338 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
25339 (gcse_obstack): Renamed to cprop_obstack.
25340 (GNEW, GNEWVEC, GNEWVAR): Remove.
25341 (gmalloc): Remove.
25342 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
25343 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
25344 (gcse_alloc): Likewise, and rename to cprop_alloc.
25345 (alloc_gcse_men, free_gcse_mem): Remove.
25346 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
25347 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
25348 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
25349
25350 * cprop.c (oprs_not_set_p): Remove.
25351 (mark_set, mark_clobber): Remove.
25352 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
25353 (reg_not_set_p): New function.
25354 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
25355 (cprop_insn): Likewise.
25356 (cprop_jump): Use FOR_EACH_EDGE.
25357
25358 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
25359
25360 PR bootstrap/48403
25361 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
25362 (rank_for_schedule): Use scheduled_insns vector instead of
25363 last_scheduled_insn.
25364 (ok_for_early_queue_removal): Likewise.
25365 (queue_to_ready): Search forward in nonscheduled_insns_begin if
25366 we have a dbg_cnt.
25367 (choose_ready): Likewise.
25368 (commit_schedule): Use VEC_iterate.
25369 (schedule_block): Initialize nonscheduled_insns_begin. If we have
25370 a dbg_cnt, use it and ensure the first insn is in the ready list.
25371 (haifa_sched_init): Allocate scheduled_insns.
25372 (sched_extend_ready_list): Don't allocate it; reserve space.
25373 (haifa_sched_finish): Free it.
25374
25375 2011-04-04 Joseph Myers <joseph@codesourcery.com>
25376
25377 * optc-gen.awk: Always remove type from Variable entry before
25378 recording in var_seen.
25379
25380 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
25381
25382 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
25383 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
25384 call to tidy_fallthru_edges.
25385
25386 2011-04-04 Joseph Myers <joseph@codesourcery.com>
25387
25388 * doc/options.texi (ToLower): Document.
25389 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
25390 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
25391 * opts.h (cl_option): Add cl_tolower field.
25392 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
25393 arguments with lowercase strings.
25394 * config/rx/rx.opt (mcpu=): Add ToLower.
25395 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
25396 argument.
25397
25398 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
25399
25400 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
25401
25402 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
25403
25404 * config/vax/vax.c: Include reload.h.
25405
25406 2011-04-04 Anatoly Sokolov <aesok@post.ru>
25407
25408 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
25409 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25410 (sparc_preferred_reload_class): New function.
25411
25412 2011-04-04 Jakub Jelinek <jakub@redhat.com>
25413
25414 PR debug/48401
25415 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
25416 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
25417
25418 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
25419
25420 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
25421 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
25422
25423 2011-04-03 Anatoly Sokolov <aesok@post.ru>
25424
25425 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
25426 (ASM_OUTPUT_ALIGNED_BSS): Define.
25427
25428 2011-04-03 Michael Matz <matz@suse.de>
25429
25430 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
25431 and next_slot members.
25432 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
25433 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
25434 (lto_streamer_cache_append): Declare.
25435 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
25436 unsigned index, remove offset parameter, ensure that we append
25437 or update existing entries.
25438 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
25439 parameter, update next_slot for append.
25440 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
25441 parameter.
25442 (lto_streamer_cache_insert_at): Likewise.
25443 (lto_streamer_cache_append): New function.
25444 (lto_streamer_cache_lookup): Use unsigned index.
25445 (lto_streamer_cache_get): Likewise.
25446 (lto_record_common_node): Don't test tree_node_can_be_shared.
25447 (preload_common_node): Adjust call to lto_streamer_cache_insert.
25448 (lto_streamer_cache_delete): Don't free offsets member.
25449 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
25450 (lto_output_string_with_length): Use lto_output_data_stream.
25451 (lto_output_tree_header): Remove ix parameter, don't write it.
25452 (lto_output_builtin_tree): Likewise.
25453 (lto_write_tree): Adjust callers to above, don't track and write
25454 offset, write unsigned index.
25455 (output_unreferenced_globals): Don't emit all global vars.
25456 (write_global_references): Use unsigned indices.
25457 (lto_output_decl_state_refs): Likewise.
25458 (write_symbol): Likewise.
25459 * lto-streamer-in.c (lto_input_chain): Move earlier.
25460 (input_function): Use unsigned index.
25461 (input_alias_pairs): Don't read and then ignore all global vars.
25462 (lto_materialize_tree): Remove ix_p parameter, don't read index,
25463 don't pass it back, use lto_streamer_cache_append.
25464 (lto_register_var_decl_in_symtab): Use unsigned index.
25465 (lto_register_function_decl_in_symtab): Likewise.
25466 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
25467 index.
25468 (lto_get_builtin_tree): Don't read index, use
25469 lto_streamer_cache_append.
25470 (lto_read_tree): Adjust call to lto_materialize_tree.
25471
25472 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
25473 don't use function calls in arguments to MIN.
25474
25475 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
25476 twice.
25477
25478 * gimple.c (gimple_type_leader_entry): Mark deletable.
25479
25480 2011-04-03 Alan Modra <amodra@gmail.com>
25481
25482 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
25483
25484 2011-04-03 Michael Matz <matz@suse.de>
25485
25486 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
25487 an integer.
25488 * tree.h (tree_decl_non_common.vindex): Adjust comment.
25489
25490 2011-04-03 Michael Matz <matz@suse.de>
25491
25492 * cgraphbuild.c (record_reference): Canonicalize constructor values.
25493 * gimple-fold.c (canonicalize_constructor_val): Accept being called
25494 without function context.
25495 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
25496 current_function_decl and cfun.
25497
25498 2011-04-03 Michael Matz <matz@suse.de>
25499
25500 * tree.c (decl_init_priority_insert): Don't create entry for
25501 default priority.
25502 (decl_fini_priority_insert): Ditto.
25503 (fields_compatible_p, find_compatible_field): Remove.
25504 * tree.h (fields_compatible_p, find_compatible_field): Remove.
25505 * gimple.c (gimple_compare_field_offset): Adjust block comment.
25506
25507 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
25508
25509 * combine.c (try_combine): Remove useless local variable.
25510
25511 2011-04-03 Richard Guenther <rguenther@suse.de>
25512 Ira Rosen <ira.rosen@linaro.org>
25513
25514 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
25515 non-variable offsets and compare the remaining bases of the two
25516 accesses instead of looking for exact same data-ref.
25517
25518 2011-04-02 Kai Tietz <ktietz@redhat.com>
25519
25520 PR target/48416
25521 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
25522
25523 * i386.c (ix86_is_msabi_thiscall): New helper function.
25524 (ix86_is_type_thiscall): New helper function.
25525 (ix86_comp_type_attributes): Handle thiscall for method-functions
25526 special.
25527 (init_cumulative_args): Likewise.
25528 (find_drap_reg): Likewise.
25529 (ix86_static_chain): Likewise.
25530 (x86_this_parameter): Likewise.
25531 (x86_output_mi_thunk): Likewise.
25532
25533 2011-04-01 Olivier Hainque <hainque@adacore.com>
25534 Nicolas Setton <setton@adacore.com>
25535 Eric Botcazou <ebotcazou@adacore.com>
25536
25537 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
25538 (add_gnat_descriptive_type_attribute): New function.
25539 (gen_array_type_die): Call it.
25540 (gen_enumeration_type_die): Likewise.
25541 (gen_struct_or_union_type_die): Likewise.
25542 (modified_type_die): Likewise.
25543 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
25544 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
25545 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
25546
25547 2011-04-01 Jakub Jelinek <jakub@redhat.com>
25548
25549 PR bootstrap/48148
25550 * dwarf2out.c (resolve_addr): Don't call force_decl_die
25551 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
25552
25553 Revert:
25554 2011-03-17 Richard Guenther <rguenther@suse.de>
25555
25556 PR bootstrap/48148
25557 * lto-cgraph.c (input_overwrite_node): Clear the abstract
25558 origin for decls in other ltrans units.
25559 (input_varpool_node): Likewise.
25560
25561 2011-04-01 Jakub Jelinek <jakub@redhat.com>
25562
25563 PR middle-end/48335
25564 * expr.c (expand_assignment): Handle all possibilities
25565 if TO_RTX is CONCAT.
25566 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
25567 (store_split_bit_field): If SUBREG_REG (op0) or
25568 op0 itself has smaller mode than word, return it
25569 for offset 0 and const0_rtx for out-of-bounds stores.
25570 If word is const0_rtx, skip it.
25571
25572 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
25573
25574 * config/h8300/h8300.c (print_operand_address): Rename to...
25575 (h8300_print_operand_address): ...this. Make static. Adjust comments.
25576 Call h8300_print_operand and h8300_print_operand_address instead of
25577 print_operand and print_operand_address. Declare.
25578 (print_operand): Renake to...
25579 (h8300_print_operand): ...this. Make static. Adjust comments.
25580 Call h8300_print_operand instead of print_operand. Declare.
25581 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
25582 (h8300_register_move_cost): Likewise.
25583 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
25584 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
25585 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
25586 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
25587 * config/h8300/h8300-protos.h (print_operand): Delete.
25588 (print_operand_address): Delete.
25589
25590 2011-04-01 Richard Henderson <rth@redhat.com>
25591
25592 PR 48400
25593 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
25594 in strict mode before dwarf4. Re-order tests to early out
25595 before switching sections.
25596
25597 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
25598
25599 * config/h8300/constraints.md: New file.
25600 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
25601 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
25602 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
25603 * config/h8300/predicates.md (bit_operand): Likewise.
25604 (incdec_operand): Use satisfies_constraint_M and
25605 satisfies_constraint_O. Don't use C code block.
25606 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
25607 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
25608 (compute_mov_length): Use satisfies_constraint_G.
25609 (fix_bit_operand): Use satisfies_constraint_U.
25610 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
25611 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
25612 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
25613 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
25614 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
25615 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
25616 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25617 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
25618 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
25619 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
25620 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
25621 (EXTRA_MEMORY_CONSTRAINT): Delete.
25622
25623 2011-04-01 Andrew Pinski <pinskia@gmail.com>
25624 Michael Meissner <meissner@linux.vnet.ibm.com>
25625
25626 PR target/48262
25627 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
25628 operands, as per the specifications.
25629
25630 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
25631 (vec_extract_evenv4sf): Ditto.
25632 (vec_extract_evenv8hi): Ditto.
25633 (vec_extract_evenv16qi): Ditto.
25634 (vec_extract_oddv4si): Ditto.
25635
25636 2011-03-31 Mark Wielaard <mjw@redhat.com>
25637
25638 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
25639 high_pc attribute if the CU has no associated code. Only output
25640 DW_AT_entry_pc for CU if not generating strict dwarf and
25641 dwarf_version < 4.
25642
25643 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
25644
25645 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
25646 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
25647 out of ...
25648 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
25649 * final.c (final_start_function): Call the new function rather
25650 than using a NULL argument for dwarf2out_frame_debug.
25651
25652 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
25653 that contains the prologue.
25654
25655 * haifa-sched.c (queue_insn): New arg REASON. All callers
25656 changed. Print it in debugging output.
25657
25658 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
25659
25660 * sched-ebb.c (begin_schedule_ready): Remove second argument.
25661 Split most of the code into...
25662 (begin_move_insn): ... here. New function.
25663 (ebb_sched_info): Add a pointer to it.
25664 * haifa-sched.c (scheduled_insns): New static variable.
25665 (sched_extend_ready_list): Allocate it.
25666 (schedule_block): Use it to record the order of scheduled insns.
25667 Perform RTL changes to move insns only after all scheduling
25668 decisions have been made.
25669 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
25670 begin_move_insn field.
25671 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
25672 * sched-int.h (struct haifa_sched_info): Remove second argument
25673 from begin_schedule_ready hook. Add new member begin_move_insn.
25674 * sched-rgn.c (begin_schedule_ready): Remove second argument.
25675 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
25676
25677 * haifa-sched.c (prune_ready_list): New function, broken out of
25678 schedule_block.
25679 (schedule_block): Use it.
25680
25681 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25682
25683 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
25684
25685 2011-04-01 Kai Tietz <ktietz@redhat.com>
25686
25687 * config.gcc (*-*-mingw*): Allow as option the
25688 posix threading model.
25689 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
25690 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
25691 definition.
25692 (CPP_SPEC): Add pthread/no-pthread handling.
25693 (LIB_SPEC): Likewise.
25694 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
25695 (LIB_SPEC): Likewise.
25696 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
25697 flag to pass -pthread option for shared libgcc build.
25698 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
25699 for shared libgcc build.
25700 * config/i386/t-mingw-pthread: New file.
25701 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
25702 New define to enable use of library pthread by default.
25703 * config/i386/mingw.opt (pthread): New driver option.
25704 (no-pthread): New driver option.
25705 * config/i386/cygming.opt: Make sure trailing empty line is retained.
25706 * config/i386/mingw-w64.opt: Likewise.
25707
25708 2011-04-01 Gary Funck <gary@intrepid.com>
25709
25710 * c-decl.c (grokdeclarator): Fix formatting.
25711
25712 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25713
25714 * expr.c (emit_block_move_via_movmem): Use n_generator_args
25715 instead of n_operands.
25716 (set_storage_via_setmem): Likewise.
25717 * optabs.c (maybe_gen_insn): Likewise.
25718 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
25719 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
25720 (mips_expand_builtin_direct): Likewise.
25721 * config/spu/spu.c (expand_builtin_args): Likewise.
25722
25723 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25724
25725 * recog.h (insn_data_d): Add n_generator_args.
25726 * genoutput.c (data): Likewise.
25727 (output_insn_data): Print it.
25728 (max_opno, num_dups): Delete.
25729 (scan_operands): Just fill in "d->operand[...]".
25730 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
25731
25732 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25733
25734 * gensupport.h (pattern_stats): New structure.
25735 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
25736 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
25737 (max_operand_1, max_operand_vec): Delete.
25738 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
25739
25740 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
25741
25742 * emit-rtl.c (emit_pattern_after_setloc): New function.
25743 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
25744 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
25745 (emit_pattern_after): New function.
25746 (emit_insn_after, emit_jump_insn_after): Call it.
25747 (emit_call_insn_after, emit_debug_insn_after): Likewise.
25748 (emit_pattern_before_setloc): New function.
25749 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
25750 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
25751 Likewise.
25752 (emit_pattern_before): New function.
25753 (emit_insn_before, emit_jump_insn_before): Call it.
25754 (emit_call_insn_before, emit_debug_insn_before): Likewise.
25755
25756 2011-03-31 Richard Henderson <rth@redhat.com>
25757
25758 * dwarf2out.c (dw_separate_line_info_ref): Remove.
25759 (dw_separate_line_info_entry): Remove.
25760 (enum dw_line_info_opcode): New.
25761 (dw_line_info_entry): Use it.
25762 (dw_line_info_table, dw_line_info_table_p): New.
25763 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
25764 (line_info_table, line_info_label_num): Remove.
25765 (line_info_table_in_use): Remove.
25766 (separate_line_info_table): Remove.
25767 (separate_line_info_table_allocated): Remove.
25768 (separate_line_info_table_in_use): Remove.
25769 (LINE_INFO_TABLE_INCREMENT): Remove.
25770 (line_info_label_num): New.
25771 (cur_line_info_table): New.
25772 (text_section_line_info, cold_text_section_line_info): New.
25773 (separate_line_info): New.
25774 (SEPARATE_LINE_CODE_LABEL): Remove.
25775 (print_dwarf_line_table): Remove.
25776 (debug_dwarf): Don't dump it.
25777 (output_one_line_info_table): New.
25778 (output_line_info): Use it.
25779 (new_line_info_table): New.
25780 (set_cur_line_info_table): New.
25781 (dwarf2out_switch_text_section): Use it.
25782 (dwarf2out_begin_function): Likewise.
25783 (push_dw_line_info_entry): New.
25784 (dwarf2out_source_line): Rewrite for new line info tables.
25785 (dwarf2out_init): Remove dead initailizations.
25786
25787 2011-03-31 Joseph Myers <joseph@codesourcery.com>
25788
25789 * opts.h (cl_option): Add comments to fields. Add bit-fields for
25790 various flags.
25791 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
25792 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
25793 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
25794 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
25795 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
25796 * opt-functions.awk (flag_init, switch_bit_fields): New.
25797 (switch_flags): Don't handle flags moved to bit-fields. Don't
25798 generate CL_MISSING_OK or CL_SAVE.
25799 * optc-gen.awk: Update to generate bit-field output as well as
25800 flags field.
25801 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
25802 bit-field instead of CL_REJECT_DRIVER flag.
25803 * opts-common.c (generate_canonical_option,
25804 decode_cmdline_option): Use bit-fields instead of CL_* flags.
25805 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
25806 instead of CL_REJECT_NEGATIVE flag.
25807 * toplev.c (print_switch_values): Use cl_report bit-field instead
25808 of CL_REPORT flag.
25809
25810 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
25811
25812 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
25813 a zero minimum index only if it is redundant.
25814
25815 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
25816
25817 PR rtl-optimization/48381
25818 * ira-color.c (assign_hard_reg): Use hard reg set intersection
25819 instead of ira_class_hard_reg_index for calculating conflicting
25820 hard registers.
25821
25822 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
25823
25824 * cprop.c: Clean up hash table building.
25825 (reg_avail_info): Remove.
25826 (oprs_available_p): Remove.
25827 (record_last_reg_set_info): Remove.
25828 (record_last_set_info): Remove.
25829 (reg_available_p): New function.
25830 (gcse_constant_p): Do not treat unfolded conditions as constants.
25831 (make_set_regs_unavailable): New function.
25832 (hash_scan_set): Simplify with new reg_available_p.
25833 (compute_hash_table_work): Traverse insns stream only once.
25834 Do not compute reg_avail_info. Traverse insns in reverse order.
25835 Record implicit sets after recording explicit sets from the block.
25836
25837 2011-03-31 Michael Matz <matz@suse.de>
25838
25839 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
25840
25841 2011-03-31 Anatoly Sokolov <aesok@post.ru>
25842
25843 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
25844 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
25845 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25846 (h8300_mode_dependent_address_p): New function.
25847 (h8300_get_index): Make static.
25848
25849 2011-03-31 Jeff Law <law@redhat.com>
25850
25851 * reload1.c (elimination_effects): Fix typo in recent change.
25852
25853 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
25854 typo potentially leading to null pointer dereference.
25855
25856 * caller-save.c (new_saved_hard_reg): Eliminate return value.
25857 (setup_save_areas): Corresponding changes to avoid useless
25858 assignments.
25859
25860 * jump.c (reversed_comparison_code_parts): Avoid successive return
25861 statements when REVERSE_CONDITION is defined.
25862
25863 * expr.c (expand_assignment): Avoid useless assignments.
25864 (expand_expr_real_1): Likewise.
25865 (expand_expr_real_2): Avoid useless statements.
25866
25867 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
25868
25869 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
25870
25871 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
25872 statements.
25873
25874 * stmt.c (expand_expr_stmt): Avoid useless assignment.
25875
25876 2011-03-31 Joseph Myers <joseph@codesourcery.com>
25877
25878 PR target/47109
25879 * doc/tm.texi.in (TARGET_VERSION): Remove.
25880 * doc/tm.texi: Regenerate.
25881 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
25882 * collect2.c (main): Don't use TARGET_VERSION.
25883 * mips-tdump.c (main): Don't use TARGET_VERSION.
25884 * mips-tfile.c (main): Don't use TARGET_VERSION.
25885 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
25886 * config/rs6000/vxworksae.h: Remove.
25887 * config/alpha/alpha.h (TARGET_VERSION): Remove.
25888 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
25889 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
25890 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
25891 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
25892 * config/arm/arm.h (TARGET_VERSION): Remove.
25893 * config/arm/coff.h (TARGET_VERSION): Remove.
25894 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
25895 * config/arm/elf.h (TARGET_VERSION): Remove.
25896 * config/arm/freebsd.h (TARGET_VERSION): Remove.
25897 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
25898 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
25899 * config/arm/pe.h (TARGET_VERSION): Remove.
25900 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
25901 * config/arm/semi.h (TARGET_VERSION): Remove.
25902 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
25903 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
25904 * config/arm/vxworks.h (TARGET_VERSION): Remove.
25905 * config/avr/avr.h (TARGET_VERSION): Remove.
25906 * config/bfin/bfin.h (TARGET_VERSION): Remove.
25907 * config/fr30/fr30.h (TARGET_VERSION): Remove.
25908 * config/frv/frv.h (TARGET_VERSION): Remove.
25909 * config/h8300/h8300.h (TARGET_VERSION): Remove.
25910 * config/i386/cygwin.h (TARGET_VERSION): Remove.
25911 * config/i386/darwin.h (TARGET_VERSION): Remove.
25912 * config/i386/darwin64.h (TARGET_VERSION): Remove.
25913 * config/i386/djgpp.h (TARGET_VERSION): Remove.
25914 * config/i386/freebsd.h (TARGET_VERSION): Remove.
25915 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
25916 * config/i386/gnu.h (TARGET_VERSION): Remove.
25917 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
25918 * config/i386/i386elf.h (TARGET_VERSION): Remove.
25919 * config/i386/linux.h (TARGET_VERSION): Remove.
25920 * config/i386/linux64.h (TARGET_VERSION): Remove.
25921 * config/i386/lynx.h (TARGET_VERSION): Remove.
25922 * config/i386/mingw32.h (TARGET_VERSION): Remove.
25923 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
25924 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
25925 * config/i386/netware.h (TARGET_VERSION): Remove.
25926 * config/i386/nto.h (TARGET_VERSION): Remove.
25927 * config/i386/openbsd.h (TARGET_VERSION): Remove.
25928 * config/i386/vxworks.h (TARGET_VERSION): Remove.
25929 * config/ia64/elf.h (TARGET_VERSION): Remove.
25930 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
25931 * config/ia64/hpux.h (TARGET_VERSION): Remove.
25932 * config/ia64/linux.h (TARGET_VERSION): Remove.
25933 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
25934 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
25935 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25936 * config/lm32/lm32.h (TARGET_VERSION): Remove.
25937 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
25938 * config/m32c/m32c.h (TARGET_VERSION): Remove.
25939 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
25940 * config/m32r/m32r.h (TARGET_VERSION): Remove.
25941 * config/m68k/linux.h (TARGET_VERSION): Remove.
25942 * config/m68k/m68k.h (TARGET_VERSION): Remove.
25943 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
25944 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
25945 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
25946 * config/mep/mep.h (TARGET_VERSION): Remove.
25947 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
25948 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25949 * config/mips/iris6.h (MACHINE_TYPE): Remove.
25950 * config/mips/linux.h (TARGET_VERSION): Remove.
25951 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
25952 * config/mips/vxworks.h (TARGET_VERSION): Remove.
25953 * config/mmix/mmix.h (TARGET_VERSION): Remove.
25954 * config/mn10300/linux.h (TARGET_VERSION): Remove.
25955 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
25956 * config/pa/pa.h (TARGET_VERSION): Remove.
25957 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
25958 * config/picochip/picochip.h (TARGET_VERSION): Remove.
25959 * config/rs6000/aix.h (TARGET_VERSION): Remove.
25960 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
25961 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
25962 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
25963 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
25964 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
25965 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
25966 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
25967 * config/rs6000/linux.h (TARGET_VERSION): Remove.
25968 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
25969 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
25970 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
25971 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
25972 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
25973 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
25974 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
25975 * config/s390/linux.h (TARGET_VERSION): Remove.
25976 * config/s390/s390.h (TARGET_VERSION): Remove.
25977 * config/s390/tpf.h (TARGET_VERSION): Remove.
25978 * config/score/score.h (TARGET_VERSION): Remove.
25979 * config/sh/linux.h (TARGET_VERSION): Remove.
25980 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
25981 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
25982 * config/sh/sh.h (TARGET_VERSION): Remove.
25983 * config/sh/sh64.h (TARGET_VERSION): Remove.
25984 * config/sh/superh.h (TARGET_VERSION): Remove.
25985 * config/sh/vxworks.h (TARGET_VERSION): Remove.
25986 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
25987 * config/sparc/linux.h (TARGET_VERSION): Remove.
25988 * config/sparc/linux64.h (TARGET_VERSION): Remove.
25989 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
25990 TARGET_NAME32, TARGET_NAME): Remove.
25991 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
25992 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
25993 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
25994 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
25995 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
25996 * config/spu/spu.h (TARGET_VERSION): Remove.
25997 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
25998 * config/v850/v850.h (TARGET_VERSION): Remove.
25999 * config/vax/linux.h (TARGET_VERSION): Remove.
26000 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
26001 * config/xtensa/elf.h (TARGET_VERSION): Remove.
26002 * config/xtensa/linux.h (TARGET_VERSION): Remove.
26003
26004 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
26005
26006 PR target/48142
26007 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
26008 frame-related from frame-unrelated adjustments to the stack pointer.
26009
26010 2011-03-31 Jakub Jelinek <jakub@redhat.com>
26011
26012 * common.opt (fdebug-types-section): Move earlier.
26013 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
26014
26015 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
26016
26017 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
26018 var.
26019
26020 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
26021
26022 * tree.h (CASE_CHAIN): Define.
26023 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
26024 (gimple_redirect_edge_and_branch): Likewise.
26025
26026 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
26027
26028 PR middle-end/48367
26029 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
26030 calculation.
26031
26032 2011-03-30 Jeff Law <law@redhat.com>
26033
26034 * PR bootstrap/48371
26035 * reload1.c (reload): Fix botch in last change.
26036
26037 * reload.h (struct reload): Fix typo introduced in last change.
26038
26039 2011-03-30 Joseph Myers <joseph@codesourcery.com>
26040
26041 * config/arm/arm.opt (mhard-float, msoft-float): Mark
26042 Undocumented. Remove help text.
26043 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
26044 -mhard-float.
26045
26046 2011-03-30 Joseph Myers <joseph@codesourcery.com>
26047
26048 * doc/options.texi (NegativeAlias): Document.
26049 (Alias): Mention NegativeAlias.
26050 * opt-functions.awk: Handle NegativeAlias.
26051 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
26052 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
26053 * opts.h (CL_NEGATIVE_ALIAS): Define.
26054 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
26055 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
26056 OPT_mspe_.
26057 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
26058 Alias entries.
26059 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26060 mno-spe and mno-isel instead of mspe=no and -misel=no.
26061
26062 2011-03-29 Mark Wielaard <mjw@redhat.com>
26063
26064 * common.opt (fdebug-types-section): New flag.
26065 * doc/invoke.texi: Document new -fno-debug-types-section flag.
26066 * dwarf2out.c (use_debug_types): New define.
26067 (struct die_struct): Mark die_id with GTY desc use_debug_types.
26068 (print_die): Guard output of type unit signatures using
26069 use_debug_types.
26070 (build_abbrev_table): Replace assert of dwarf_version >= 4
26071 with assert on use_debug_types.
26072 (size_of_die): Likewise.
26073 (unmark_dies): Likewise.
26074 (value_format): Decide AT_ref_external form on use_debug_types.
26075 (output_die): Replace dwarf_version version check guard with
26076 use_debug_types where appropriate.
26077 (modified_type_die): Likewise.
26078 (gen_reference_type_die): Likewise.
26079 (dwarf2out_start_source_file): Likewise.
26080 (dwarf2out_end_source_file): Likewise.
26081 (prune_unused_types_walk_attribs): Likewise.
26082 (dwarf2out_finish): Likewise.
26083
26084 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
26085
26086 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
26087
26088 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26089
26090 PR rtl-optimization/48332
26091 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
26092 mode of input operand N and modeN to its actual mode.
26093
26094 2011-03-30 Jeff Law <law@redhat.com>
26095
26096 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
26097 define accessor macro.
26098 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
26099 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
26100 (reg_equiv_init): Likewise.
26101 (reg_equivs_size): New variable.
26102 (reg_equiv_init_size): Remove.
26103 (allocate_initial_values): Move prototype to here from....
26104 * integrate.h (allocate_initial_values): Remove prototype.
26105 * integrate.c: Include reload.h.
26106 (allocate_initial_values): Corresponding changes.
26107 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
26108 (fix_reg_equiv_init, no_equiv): Corresponding changes.
26109 (update_equiv_regs): Corresponding changes.
26110 (ira): Corresponding changes.
26111 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
26112 (push_secondary_reload): Corresponding changes.
26113 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
26114 (make_memloc, find_reloads_address): Corresponding changes.
26115 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
26116 (find_reloads_address_1): Corresponding changes.
26117 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
26118 (refers_to_regno_for_reload_p): Corresponding changes.
26119 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
26120 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
26121 * reload1.c: Include ggc.h.
26122 (grow_reg_equivs): New function.
26123 (replace_pseudos_in, reload): Corresponding changes.
26124 (calculate_needs_all_insns, alter_regs): Corresponding changes.
26125 (eliminate_regs_1, elimination_effects): Corresponding changes.
26126 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
26127 (delete_output_reload): Likewise.
26128 * caller-save.c (mark_referenced_regs): Corresponding changes.
26129 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
26130 * frv/predicates.md (frv_load_operand): Corresponding changes.
26131 * microblaze/microblaze.c (double_memory_operand): Corresponding
26132 changes.
26133 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
26134 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
26135 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
26136 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
26137 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
26138 changes.
26139 * pa/pa.c (emit_move_sequence): Corresponding changes.
26140 * vax/vax.c (nonindexed_address_p): Corresponding changes.
26141
26142 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26143
26144 PR target/47551
26145 * config/arm/arm.c (coproc_secondary_reload_class): Handle
26146 structure modes. Don't check neon_vector_mem_operand for
26147 vector or structure modes.
26148
26149 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26150 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26151
26152 PR target/43590
26153 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
26154 operand 1 and reshuffle the operands to match.
26155 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
26156
26157 2011-03-30 Christian Schüler <cschueler@gmx.de>
26158
26159 PR driver/48208
26160 * config/c.opt (F): Added 'Driver' to -F option.
26161
26162 PR driver/48260
26163 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
26164 handler function.
26165 * config/darwin.opt: Added '-arch' option.
26166
26167 2011-03-30 Nick Clifton <nickc@redhat.com>
26168
26169 * config/rx/rx.md: Add peepholes and patterns to combine
26170 extending loads and simple arithmetic instructions.
26171 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
26172 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
26173 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
26174 modes to use pre-decrement and post-increment addressing.
26175 (rx_is_restricted_memory_address): Add range checking of REG+INT
26176 addresses.
26177 (rx_print_operand): Add support for %Q. Fix handling of %Q.
26178 (rx_memory_move_cost): Adjust cost of stores.
26179 (rx_adjust_insn_length): New function.
26180
26181 2011-03-30 Jakub Jelinek <jakub@redhat.com>
26182
26183 PR c/48305
26184 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26185 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
26186 matching arg00/arg01 types.
26187
26188 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
26189
26190 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
26191 last_location to UNKNOWN_LOCATION.
26192
26193 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
26194
26195 PR target/48349
26196 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
26197 FLOAT_SSE_REGS.
26198
26199 2011-03-30 Joseph Myers <joseph@codesourcery.com>
26200 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26201
26202 PR bootstrap/48337
26203 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
26204 Init(PROCESSOR_V7).
26205 (sparc_cpu): Likewise.
26206 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
26207 PROCESSOR_V7.
26208
26209 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26210
26211 PR target/48336
26212 PR middle-end/48342
26213 PR rtl-optimization/48345
26214 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
26215 hard regs for given mode from profitable regs when doing secondary
26216 allocation.
26217
26218 2011-03-29 Jeff Law <law@redhat.com>
26219
26220 PR bootstrap/48327
26221 * tree-ssa-threadupdate.c (struct redirection_data): Remove
26222 do_not_duplicate field.
26223 (lookup_redirection_data): Corresponding changes.
26224 (create_duplicates): Always create a template block.
26225 (redirect_edges): Remove code which reused the original block
26226 when it was going to become unreachable code.
26227 (thread_block): Don't set do_not_duplicate field.
26228
26229 2011-03-29 Joseph Myers <joseph@codesourcery.com>
26230
26231 * lto-opts.c (register_user_option_p, lto_register_user_option):
26232 Make type argument unsigned.
26233 * lto-streamer.h (lto_register_user_option): Make type argument
26234 unsigned.
26235 * opth-gen.awk: Make CL_* macros unsigned.
26236 * opts-common.c (find_opt): Make lang_mask argument unsigned.
26237 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
26238 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
26239 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
26240 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
26241 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
26242 (find_opt): Make lang_mask argument unsigned.
26243
26244 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26245
26246 PR rtl-optimization/48331
26247 PR rtl-optimization/48334
26248 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
26249 for any used algorithm.
26250
26251 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26252
26253 * ira-conflicts.c (build_object_conflicts): Add unused attribute
26254 to parent_max.
26255
26256 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
26257
26258 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
26259 (alpha_option_override): Don't set alpha_sr_alias_set.
26260 (emit_frame_store_1): Use gen_frame_mem rather than calling
26261 set_mem_alias_set.
26262 (alpha_expand_epilogue): Ditto.
26263
26264 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
26265
26266 PR tree-optimization/48290
26267 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
26268 vectorization, check that relevant phis in the basic block after
26269 the inner loop are really inner loop's exit phis.
26270
26271 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
26272
26273 PR debug/48190
26274 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
26275 (cached_dw_loc_list_def): New structure.
26276 (cached_dw_loc_list): New typedef.
26277 (cached_dw_loc_list_table): New variable.
26278 (cached_dw_loc_list_table_hash): New function.
26279 (cached_dw_loc_list_table_eq): Likewise.
26280 (add_location_or_const_value_attribute): Take a bool cache_p.
26281 Cache the list when the parameter is true.
26282 (gen_formal_parameter_die): Update caller.
26283 (gen_variable_die): Likewise.
26284 (dwarf2out_finish): Likewise.
26285 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
26286 while generating debug info for the decl.
26287 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
26288 (dwarf2out_init): Initialize cached_dw_loc_list_table.
26289 (resolve_addr): Cache the result of resolving a chain of
26290 location lists.
26291
26292 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
26293
26294 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
26295 conflict object hard regset nodes have intersecting hard reg sets.
26296
26297 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
26298 after regstat_init_n_sets_and_refs.
26299
26300 * ira.c: Add more comments at the top.
26301 (setup_stack_reg_pressure_class, setup_pressure_classes):
26302 Add comments how we compute the register pressure classes.
26303 (setup_allocno_and_important_classes): Add more comments.
26304 (setup_class_translate_array, reorder_important_classes)
26305 (setup_reg_class_relations): Add comments.
26306
26307 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
26308 start of the file.
26309
26310 * ira-color.c: Add 2011 to the Copyright line.
26311 (assign_hard_reg): Add more comments.
26312 (improve_allocation): Ditto.
26313
26314 * ira-costs.c: Add 2011 to the Copyright line.
26315 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
26316 comments.
26317 (setup_regno_cost_classes_by_mode): Ditto.
26318
26319 Initial patches from ira-improv branch:
26320
26321 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
26322
26323 * ira-build.c (ira_create_object): Remove initialization of
26324 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
26325 (ira_create_allocno): Remove initialization of
26326 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
26327 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
26328 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
26329 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
26330 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
26331 Initialize ALLOCNO_ADD_DATA.
26332 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
26333 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
26334 ALLOCNO_REG.
26335 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
26336 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
26337
26338 * ira.c (ira_reallocate): Remove.
26339 (setup_pressure_classes): Call
26340 ira_init_register_move_cost_if_necessary. Use
26341 ira_register_move_cost instead of ira_get_register_move_cost.
26342 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
26343 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
26344
26345 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
26346 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
26347 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
26348 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
26349 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
26350 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
26351 Fix formatting.
26352 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
26353 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
26354 (struct allocno_color_data): New.
26355 (allocno_color_data_t): New typedef.
26356 (allocno_color_data): New definition.
26357 (ALLOCNO_COLOR_DATA): New macro.
26358 (struct object_color_data): New.
26359 (object_color_data_t): New typedef.
26360 (object_color_data): New definition.
26361 (OBJECT_COLOR_DATA): New macro.
26362 (update_copy_costs, calculate_allocno_spill_cost): Call
26363 ira_init_register_move_cost_if_necessary. Use
26364 ira_register_move_cost instead of ira_get_register_move_cost.
26365 (move_spill_restore, update_curr_costs): Ditto.
26366 (allocno_spill_priority): Make it inline.
26367 (color_pass): Allocate and free allocno_color_dat and object_color_data.
26368 (struct coalesce_data, coalesce_data_t): New.
26369 (allocno_coalesce_data): New definition.
26370 (ALLOCNO_COALESCE_DATA): New macro.
26371 (merge_allocnos, coalesced_allocno_conflict_p): Use
26372 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
26373 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
26374 (coalesce_allocnos): Ditto.
26375 (setup_coalesced_allocno_costs_and_nums): Ditto.
26376 (collect_spilled_coalesced_allocnos): Ditto.
26377 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
26378 (setup_slot_coalesced_allocno_live_ranges): Ditto.
26379 (coalesce_spill_slots): Ditto.
26380 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
26381 free allocno_coalesce_data.
26382
26383 * ira-conflicts.c: Fix formatting.
26384 (process_regs_for_copy): Call
26385 ira_init_register_move_cost_if_necessary. Use
26386 ira_register_move_cost instead of ira_get_register_move_cost.
26387 (build_object_conflicts): Optimize.
26388
26389 * ira-costs.c (record_reg_classes): Optimize. Call
26390 ira_init_register_move_cost_if_necessary. Use
26391 ira_register_move_cost, ira_may_move_in_cost, and
26392 ira_may_move_out_cost instead of ira_get_register_move_cost and
26393 ira_get_may_move_cost.
26394 (record_address_regs): Ditto.
26395 (scan_one_insn): Optimize.
26396 (find_costs_and_classes): Optimize.
26397 (process_bb_node_for_hard_reg_moves): Call
26398 ira_init_register_move_cost_if_necessary. Use
26399 ira_register_move_cost instead of ira_get_register_move_cost.
26400
26401 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
26402 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
26403 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
26404 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
26405 definitions.
26406 (ira_initiate_emit_data, ira_finish_emit_data)
26407 (create_new_allocno): New functions.
26408 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
26409 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
26410 Use ira_register_move_cost instead of ira_get_register_move_cost.
26411
26412 * ira-int.h: Fix some comments.
26413 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
26414 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
26415 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
26416 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
26417 add_data.
26418 (struct ira_allocno): Make mode and aclass a bitfield. Move other
26419 bitfield after mode. Make hard_regno a short int. Make
26420 hard_regno short. Remove first_coalesced_allocno and
26421 next_coalesced_allocno. Move mem_optimized_dest_p,
26422 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
26423 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
26424 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
26425 temp, colorable_p. Add new member add_data.
26426 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
26427 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
26428 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
26429 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
26430 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
26431 (ALLOCNO_ADD_DATA): New macro.
26432 (ira_emit_data_t): New typedef.
26433 (struct ira_emit_data): New. Move mem_optimized_dest_p,
26434 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
26435 from struct ira_allocno.
26436 (ALLOCNO_EMIT_DATA): New macro.
26437 (ira_allocno_emit_data, allocno_emit_reg): New.
26438 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
26439 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
26440 (OBJECT_ADD_DATA): New macro.
26441 (ira_reallocate): Remove.
26442 (ira_initiate_emit_data, ira_finish_emit_data): New.
26443 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
26444 (ira_init_register_move_cost_if_necessary): New.
26445 (ira_object_conflict_iter_next): Merge into
26446 ira_object_conflict_iter_cond.
26447 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
26448
26449 * ira-live.c (process_single_reg_class_operands): Call
26450 ira_init_register_move_cost_if_necessary. Use
26451 ira_register_move_cost instead of ira_get_register_move_cost.
26452
26453 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
26454
26455 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
26456
26457 * ira-costs.c: Fix formatting.
26458 (cost_classes, cost_classes_num): Remove.
26459 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
26460 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
26461 (cost_classes_del, cost_classes_htab): New.
26462 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
26463 (initiate_regno_cost_classes, setup_cost_classes): New.
26464 (setup_regno_cost_classes_by_aclass): New.
26465 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
26466 (record_reg_classes): Use regno_cost_classes instead of
26467 cost_classes. Move checking opposite operand up.
26468 (record_address_regs): Use regno_cost_classes
26469 instead of cost_classes.
26470 (scan_one_insn): Ditto. Use always general register.
26471 (print_allocno_costs): Use regno_cost_classes instead of
26472 cost_classes.
26473 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
26474 (find_costs_and_classes): Set up cost classes for each registers.
26475 Use also their mode for this. Use regno_cost_classes instead of
26476 cost_classes.
26477 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
26478 cost_classes.
26479 (free_ira_costs, ira_init_costs): Don't use cost_classes.
26480 (ira_costs, ira_set_pseudo_classes): Call
26481 initiate_regno_cost_classes and finish_regno_cost_classes.
26482
26483 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
26484
26485 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
26486
26487 * target.def (ira_cover_classes): Remove.
26488
26489 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
26490
26491 * doc/tm.texi.in: Ditto.
26492
26493 * ira-conflicts.c: Remove mentioning cover classes from the file.
26494 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
26495 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
26496
26497 * targhooks.c (default_ira_cover_classes): Remove.
26498
26499 * targhooks.h (default_ira_cover_classes): Ditto.
26500
26501 * haifa-sched.c: Remove mentioning cover classes from the file.
26502 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
26503 ira_pressure_classes and ira_pressure_classes_num instead of
26504 ira_reg_class_cover_size and ira_reg_class_cover. Use
26505 sched_regno_pressure_class instead of sched_regno_cover_class.
26506 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
26507 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26508
26509 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
26510 classes from the file.
26511 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
26512 (struct object_hard_regs, struct object_hard_regs_node): New.
26513 (struct ira_object): New members profitable_hard_regs,
26514 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
26515 (struct ira_allocno): Rename cover_class to aclass. Rename
26516 cover_class_cost and updated_cover_class_cost to class_cost and
26517 updated_class_cost. Remove splay_removed_p and
26518 left_conflict_size. Add new members colorable_p.
26519 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
26520 (ALLOCNO_COLORABLE_P): New macro.
26521 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
26522 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
26523 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
26524 (OBJECT_...): Rename parameter C to O.
26525 (OBJECT_PROFITABLE_HARD_REGS): New macro.
26526 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
26527 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
26528 (struct target_ira_int): New members x_ira_max_memory_move_cost,
26529 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
26530 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
26531 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
26532 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
26533 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
26534 x_ira_reg_class_subunion.
26535 (ira_max_memory_move_cost, ira_max_register_move_cost)
26536 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
26537 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
26538 (ira_important_class_nums, ira_reg_class_superunion): New macros.
26539 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
26540 (ira_reg_class_union): Rename to ira_reg_class_subunion.
26541 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
26542 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
26543 (ira_tune_allocno_costs_and_cover_classes): Rename to
26544 ira_tune_allocno_costs.
26545 (ira_debug_hard_regs_forest): New.
26546 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
26547 (ira_object_conflict_iter_next): Fix comments.
26548 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
26549 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
26550 cover_class to aclass.
26551 (ira_allocate_and_accumulate_costs): Ditto.
26552 (ira_allocate_and_set_or_copy_costs): Ditto.
26553
26554 * opts.c (decode_options): Remove ira_cover_class check.
26555
26556 * ira-color.c: Remove mentioning cover classes from the file. Use
26557 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
26558 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
26559 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
26560 (splay-tree.h): Remove include.
26561 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
26562 before copy_freq_compare_func.
26563 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
26564 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
26565 New definitions.
26566 (hard_regs_roots, hard_regs_node_vec): Ditto.
26567 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
26568 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
26569 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
26570 (create_new_object_hard_regs_node): Ditto.
26571 (add_new_object_hard_regs_node_to_forest): Ditto.
26572 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
26573 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
26574 Ditto.
26575 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
26576 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
26577 (remove_unused_object_hard_regs_nodes): Ditto.
26578 (enumerate_object_hard_regs_nodes): Ditto.
26579 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
26580 (object_hard_regs_subnode_t): Ditto.
26581 (struct object_hard_regs_subnode): Ditto.
26582 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
26583 (setup_object_hard_regs_subnode_index): Ditto.
26584 (get_object_hard_regs_subnodes_num): Ditto.
26585 (form_object_hard_regs_nodes_forest): Ditto.
26586 (finish_object_hard_regs_nodes_tree): Ditto.
26587 (finish_object_hard_regs_nodes_forest): Ditto.
26588 (allocnos_have_intersected_live_ranges_p): Rename to
26589 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
26590 (pseudos_have_intersected_live_ranges_p): Rename to
26591 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
26592 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
26593 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
26594 (update_copy_costs): Remove assert. Skip cost update if the hard
26595 reg does not belong the class.
26596 (assign_hard_reg): Process only profitable hard regs.
26597 (uncolorable_allocnos_num): Make it scalar.
26598 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
26599 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
26600 and ira_reg_class_max_nregs.
26601 (bucket_allocno_compare_func): Check frequency first.
26602 (sort_bucket): Add compare function as a parameter.
26603 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
26604 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
26605 (push_allocno_to_stack): Rewrite for checking new allocno
26606 colorability.
26607 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
26608 (push_only_colorable): Pass new parameter to sort_bucket.
26609 (push_allocno_to_spill): Remove.
26610 (allocno_spill_priority_compare): Make it inline and rewrite.
26611 (splay_tree_allocate, splay_tree_free): Remove.
26612 (allocno_spill_sort_compare): New function.
26613 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
26614 build and use splay tree. Choose first allocno in uncolorable
26615 allocno bucket to spill. Remove setting spill cost.
26616 (all_conflicting_hard_regs): Remove.
26617 (setup_allocno_available_regs_num): Check only profitable hard
26618 regs. Print info about hard regs nodes.
26619 (setup_allocno_left_conflicts_size): Remove.
26620 (put_allocno_into_bucket): Don't call
26621 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
26622 (improve_allocation): New.
26623 (color_allocnos): Call setup_profitable_hard_regs,
26624 form_object_hard_regs_nodes_forest, improve_allocation,
26625 finish_object_hard_regs_nodes_forest. Setup spill cost.
26626 (print_loop_title): Use pressure classes.
26627 (color_allocnso): Ditto.
26628 (do_coloring): Remove allocation and freeing splay_tree_node_pool
26629 and allocnos_for_spilling.
26630 (ira_sort_regnos_for_alter_reg): Don't setup members
26631 {first,next}_coalesced_allocno.
26632 (color): Remove allocating and freeing removed_splay_allocno_vec.
26633 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
26634 prohibited_class_mode_regs.
26635
26636 * ira-lives.c: Remove mentioning cover classes from the file. Fix
26637 formatting.
26638 (update_allocno_pressure_excess_length): Use pressure classes.
26639 (inc_register_pressure, dec_register_pressure): Check for pressure
26640 class.
26641 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
26642 pressure class. Use ira_reg_class_nregs instead of
26643 ira_reg_class_max_nregs.
26644 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
26645 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
26646 (single_reg_class): Use ira_reg_class_nregs instead of
26647 ira_reg_class_max_nregs.
26648 (process_bb_node_lives): Use pressure classes.
26649
26650 * ira-emit.c: Remove mentioning cover classes from the file. Use
26651 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
26652 (change_loop): Use pressure classes.
26653 (modify_move_list): Call ira_set_allocno_class instead of
26654 ira_set_allocno_cover_class.
26655
26656 * ira-build.c: Remove mentioning cover classes from the file. Use
26657 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
26658 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
26659 ALLOCNO_UPDATED_CLASS_COST instead of
26660 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
26661 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
26662 (ira_create_allocno): Remove initialization of
26663 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
26664 ALLOCNO_COLORABLE_P.
26665 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
26666 Update conflict regs for the objects.
26667 (create_cap_allocno): Remove assert. Don't propagate
26668 ALLOCNO_AVAILABLE_REGS_NUM.
26669 (ira_free_allocno_costs): New function.
26670 (finish_allocno): Change a part of code into call of
26671 ira_free_allocno_costs.
26672 (low_pressure_loop_node_p): Use pressure classes.
26673 (object_range_compare_func): Don't compare classes.
26674 (setup_min_max_conflict_allocno_ids): Ditto.
26675
26676 * loop-invariant.c: Remove mentioning cover classes from the file.
26677 Use ira_pressure_classes and ira_pressure_classes_num instead of
26678 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
26679 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
26680 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26681 Use reg_allocno_class instead of reg_cover_class.
26682 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
26683 STACK_REG_COVER_CLASS.
26684 (get_regno_cover_class): Rename to get_regno_pressure_class.
26685 (move_loop_invariants): Initialize and finalize regstat.
26686
26687 * ira.c: Remove mentioning cover classes from the file. Add
26688 comments about coloring without cover classes. Use ALLOCNO_CLASS
26689 instead of ALLOCNO_COVER_CLASS. Fix formatting.
26690 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
26691 setup_class_subset_and_memory_move_costs.
26692 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
26693 (setup_cover_and_important_classes): Rename to
26694 setup_allocno_and_important_classes.
26695 (setup_class_translate_array): New.
26696 (setup_class_translate): Call it for allocno and pressure classes.
26697 (cover_class_order): Rename to allocno_class_order.
26698 (comp_reg_classes_func): Use ira_allocno_class_translate instead
26699 of ira_class_translate.
26700 (reorder_important_classes): Set up ira_important_class_nums.
26701 (setup_reg_class_relations): Set up ira_reg_class_superunion.
26702 (print_class_cover): Rename to print_classes. Add parameter.
26703 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
26704 Print pressure classes too.
26705 (find_reg_class_closure): Rename to find_reg_classes. Don't call
26706 setup_reg_subclasses.
26707 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
26708 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
26709 (setup_prohibited_class_mode_regs): Use
26710 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
26711 (clarify_prohibited_class_mode_regs): New function.
26712 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
26713 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
26714 (ira_init_once): Initialize them.
26715 (free_register_move_costs): Process them.
26716 (ira_init): Move calls of find_reg_classes and
26717 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
26718 Call clarify_prohibited_class_mode_regs.
26719 (ira_no_alloc_reg): Remove.
26720 (too_high_register_pressure_p): Use pressure classes.
26721
26722 * sched-deps.c: Remove mentioning cover classes from the file.
26723 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
26724 ira_pressure_classes and ira_pressure_classes_num instead of
26725 ira_reg_class_cover_size and ira_reg_class_cover.
26726 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
26727 sched_regno_pressure_class instead of sched_regno_cover_class.
26728 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
26729 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26730
26731 * ira.h: Add 2010 to Copyright.
26732 (ira_no_alloc_reg): Remove external.
26733 (struct target_ira): Rename x_ira_hard_regno_cover_class,
26734 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
26735 x_ira_class_translate to x_ira_hard_regno_allocno_class,
26736 x_ira_allocno_classes_num, x_ira_allocno_classes, and
26737 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
26738 x_ira_pressure_classes, x_ira_pressure_class_translate, and
26739 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
26740 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
26741 x_ira_no_alloc_regs.
26742 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
26743 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
26744 ira_allocno_classes_num and ira_allocno_classes.
26745 (ira_class_translate): Rename to ira_allocno_class_translate.
26746 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
26747 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
26748 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
26749 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
26750 (ira_no_alloc_regs): New.
26751
26752 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
26753 classes from the file. Use ALLOCNO_CLASS instead of
26754 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
26755 ALLOCNO_COVER_CLASS_COST.
26756 (regno_cover_class): Rename to regno_aclass.
26757 (record_reg_classes): Use ira_reg_class_subunion instead of
26758 ira_reg_class_union.
26759 (record_address_regs): Check overflow.
26760 (scan_one_insn): Ditto.
26761 (print_allocno_costs): Print total mem cost fore regional allocation.
26762 (print_pseudo_costs): Use REG_N_REFS.
26763 (find_costs_and_classes): Use classes intersected with them on the
26764 1st pass. Check overflow. Use ira_reg_class_subunion instead of
26765 ira_reg_class_union. Use ira_allocno_class_translate and
26766 regno_aclass instead of ira_class_translate and regno_cover_class.
26767 Modify code for finding regno_aclass. Setup preferred classes for
26768 the next pass.
26769 (setup_allocno_cover_class_and_costs): Rename to
26770 setup_allocno_class_and_costs. Use regno_aclass instead of
26771 regno_cover_class. Use ira_set_allocno_class instead of
26772 ira_set_allocno_cover_class.
26773 (init_costs, finish_costs): Use regno_aclass instead of
26774 regno_cover_class.
26775 (ira_costs): Use setup_allocno_class_and_costs instead of
26776 setup_allocno_cover_class_and_costs.
26777 (ira_tune_allocno_costs_and_cover_classes): Rename to
26778 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
26779 by processing objects. Use ira_reg_class_max_nregs instead of
26780 ira_reg_class_nregs.
26781
26782 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
26783
26784 * sched-int.h: Remove mentioning cover classes from the file.
26785 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
26786
26787 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
26788 classes from the file.
26789 (struct reg_pref): Rename coverclass into allocnoclass.
26790 (reg_cover_class): Rename to reg_allocno_class.
26791
26792 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
26793
26794 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
26795
26796 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
26797
26798 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
26799
26800 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
26801
26802 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
26803
26804 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
26805
26806 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
26807
26808 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
26809
26810 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
26811
26812 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
26813 (i386_ira_cover_classes): Ditto.
26814
26815 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
26816
26817 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
26818
26819 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
26820
26821 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
26822
26823 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
26824
26825 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
26826
26827 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
26828 (mips_ira_cover_classes): Ditto.
26829
26830 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
26831
26832 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
26833
26834 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
26835
26836 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
26837
26838 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
26839
26840 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
26841 (IRA_COVER_CLASSES_VSX): Ditto.
26842
26843 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
26844 (rs6000_ira_cover_classes): Ditto.
26845
26846 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
26847
26848 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
26849
26850 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
26851
26852 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
26853
26854 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
26855
26856 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
26857
26858 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
26859
26860 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
26861
26862 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
26863
26864 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
26865
26866 2011-03-29 Jakub Jelinek <jakub@redhat.com>
26867
26868 PR debug/48253
26869 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
26870 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
26871 dw_fde_unlikely_section_end_label, cold_in_std_section,
26872 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
26873 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
26874 fields.
26875 (output_fde): Use dw_fde_second_{begin,end} if second is
26876 true, otherwise dw_fde_{begin,end}.
26877 (output_call_frame_info): Test dw_fde_second_begin != NULL
26878 instead of dw_fde_switched_sections.
26879 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
26880 fields, initialize new fields. Initialize in_std_section
26881 unconditionally from the first partition.
26882 (dwarf2out_end_epilogue): Don't override dw_fde_end when
26883 dw_fde_second_begin is non-NULL.
26884 (dwarf2out_switch_text_section): Stop initializing removed
26885 dw_fde_struct fields, initialize new fields, initialize
26886 also dw_fde_end here. Set dw_fde_switch_cfi even when
26887 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
26888 (struct var_loc_list_def): Add last_before_switch field.
26889 (arange_table, arange_table_allocated, arange_table_in_use,
26890 ARANGE_TABLE_INCREMENT, add_arange): Removed.
26891 (size_of_aranges): Count !in_std_section and !second_in_std_section
26892 hunks in fdes, instead of looking at arange_table_in_use.
26893 (output_aranges): Add aranges_length argument, don't call
26894 size_of_aranges here. Instead of using aranges_table*
26895 emit ranges for fdes when !in_std_section resp.
26896 !second_in_std_section.
26897 (dw_loc_list): Break ranges crossing section switch.
26898 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
26899 use dw_fde_second_end instead of dw_fde_end as end of last range.
26900 (gen_subprogram_die): Don't call add_arange. Use
26901 dw_fde_{begin,end} for first partition and if switched
26902 section dw_fde_second_{begin,end} for the second.
26903 (var_location_switch_text_section_1,
26904 var_location_switch_text_section): New functions.
26905 (dwarf2out_begin_function): Initialize cold_text_section even
26906 when function_section () isn't text_section.
26907 (prune_unused_types): Don't walk arange_table.
26908 (dwarf2out_finish): Don't needlessly test
26909 flag_reorder_blocks_and_partition when testing cold_text_section_used.
26910 If info_section_emitted, call size_of_aranges and if it indicates
26911 non-empty .debug_aranges, call output_aranges with the computed
26912 size. Stop using removed dw_fde_struct fields, use
26913 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
26914 for second.
26915
26916 PR debug/48203
26917 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
26918 create ENTRY_VALUE if incoming or address of incoming's MEM
26919 is a hard REG.
26920 * dwarf2out.c (mem_loc_descriptor): Don't emit
26921 DW_OP_GNU_entry_value of DW_OP_fbreg.
26922 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
26923 on ENTRY_VALUE is able to find the canonical parameter VALUE.
26924 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
26925 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
26926 ENTRY_VALUE_EXPs.
26927 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
26928 is a REG_P or MEM_P with REG_P address, compute hash directly
26929 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
26930 (preserve_only_constants): Don't clear VALUES forwaring
26931 ENTRY_VALUE to some other VALUE.
26932
26933 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
26934
26935 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
26936 instead of GEN_INT.
26937
26938 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
26939
26940 * cfgexpand.c (expand_gimple_cond): Always set the source location and
26941 block before expanding the statement.
26942 (expand_gimple_stmt_1): Likewise. Set them here...
26943 (expand_gimple_stmt): ...and not here. Tidy.
26944 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
26945 unknown.
26946
26947 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
26948
26949 * Makefile.in: New rule for cprop.o.
26950 * gcse.c: Move constant/copy propagation to cprop.c.
26951 (compute_local_properties): Only handle expression tables.
26952 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
26953 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
26954 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
26955 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
26956 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
26957 compute_cprop_data, find_used_regs, try_replace_reg,
26958 find_avail_set, cprop_jump, constprop_register, cprop_insn,
26959 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
26960 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
26961 find_bypass_set, reg_killed_on_edge, bypass_block,
26962 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
26963 execute_rtl_cprop, pass_rtl_cprop): Move to...
26964 * cprop.c: ...here. New file, constant/copy propagation for RTL
26965 moved from gcse.c to here with minor cleanups in duplicated code.
26966
26967 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
26968
26969 * config/i386/i386.c (flag_opts): Fix a typo in
26970 -mavx256-split-unaligned-store.
26971
26972 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26973
26974 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
26975 LIBCALL_VALUE): Remove macros.
26976 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26977 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26978 (h8300_function_value, h8300_libcall_value,
26979 h8300_function_value_regno_p): New functions.
26980
26981 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26982
26983 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
26984
26985 2011-03-28 Jeff Law <law@redhat.com>
26986
26987 * tree-ssa-threadupdate.c (redirect_edges): Call
26988 create_edge_and_update_destination_phis as needed.
26989 (create_edge_and_update_destination_phis): Accept new BB argument.
26990 All callers updated.
26991 (thread_block): Do not update the profile when threading around
26992 intermediate blocks.
26993 (thread_single_edge): Likewise.
26994 (determine_bb_domination_status): If BB is not a successor of the
26995 loop header, return NONDOMINATING.
26996 (register_jump_thread): Note when we register a jump thread around
26997 an intermediate block.
26998 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
26999 (thread_across_edge): Use it.
27000
27001 2011-03-28 Tristan Gingold <gingold@adacore.com>
27002
27003 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
27004 when for_return is 2.
27005
27006 2011-03-28 Jeff Law <law@redhat.com>
27007
27008 * var-tracking.c (canonicalize_values_mark): Delete unused
27009 lhs assignment.
27010 (canonicalize_values_star, set_variable_part): Likewise.
27011 (clobber_variable_part, delete_variable_part): Likewise.
27012
27013 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
27014
27015 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
27016
27017 2011-03-28 Martin Jambor <mjambor@suse.cz>
27018
27019 * tree-inline.c (expand_call_inline): Do not check that destination
27020 node is analyzed.
27021 (optimize_inline_calls): Assert that destination node is analyzed.
27022 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
27023 not call tree_lowering_passes.
27024 * cgraph.h (cgraph_analyze_function): Declare.
27025 * cgraphunit.c (cgraph_analyze_function): Make public.
27026
27027 2011-03-28 Joseph Myers <joseph@codesourcery.com>
27028
27029 * config/sparc/sparc-opts.h: New.
27030 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
27031 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
27032 (sparc_option_override): Store processor_type enumeration rather
27033 than string in cpu_default. Remove name and enumeration from
27034 cpu_table. Directly default -mcpu then default -mtune from -mcpu
27035 without using sparc_select. Use target_flags_explicit instead of
27036 fpu_option_set.
27037 * config/sparc/sparc.h (enum processor_type): Move to
27038 sparc-opts.h.
27039 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
27040 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
27041 HeaderInclude entry.
27042 (mcpu=, mtune=): Use Var and Enum.
27043 (sparc_processor_type): New Enum and EnumValue entries.
27044
27045 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27046 Iain Sandoe <iains@gcc.gnu.org>
27047
27048 PR target/48245
27049 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
27050
27051 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
27052
27053 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
27054 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
27055 Insert new statements at it in lieu of STMT.
27056 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
27057 * tree-vect-stmts.c (vectorizable_store): Likewise.
27058 (vectorizable_load): Likewise.
27059
27060 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
27061
27062 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
27063 (divtf3): Ditto.
27064 (multf3): Ditto.
27065 (subtf3): Ditto.
27066
27067 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
27068
27069 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
27070 unaligned 256bit load/store.
27071 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
27072 (*avx_movdqu<avxmodesuffix>): Likewise.
27073
27074 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27075
27076 PR target/48288
27077 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
27078 * config/pa/pa.md (iordi3): Use new predicate in expander.
27079 (iorsi3): Likewise.
27080
27081 2011-03-27 Anatoly Sokolov <aesok@post.ru>
27082
27083 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
27084 FUNCTION_VALUE_REGNO_P): Remove macros.
27085 * config/mips/mips-protos.h (mips_function_value): Remove.
27086 * config/mips/mips.c (mips_function_value): Rename to...
27087 (mips_function_value_1): ... this. Make static. Handle receiving
27088 the function type in 'fn_decl_or_type' argument.
27089 (mips_function_value, mips_libcall_value,
27090 mips_function_value_regno_p): New function.
27091 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27092 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27093
27094 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
27095
27096 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
27097 and -mavx256-split-unaligned-store.
27098 (ix86_option_override_internal): Split 32-byte AVX unaligned
27099 load/store by default.
27100 (ix86_avx256_split_vector_move_misalign): New.
27101 (ix86_expand_vector_move_misalign): Use it.
27102
27103 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
27104 -mavx256-split-unaligned-store.
27105
27106 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
27107 256bit load/store. Generate unaligned store on misaligned memory
27108 operand.
27109 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
27110 256bit load/store.
27111 (*avx_movdqu<avxmodesuffix>): Likewise.
27112
27113 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
27114 -mavx256-split-unaligned-store.
27115
27116 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
27117
27118 PR target/38598
27119 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
27120 Update commentary.
27121
27122 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
27123
27124 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
27125 opno arguments with an expand_operand. Use create_input_operand.
27126 (mips_prepare_builtin_target): Delete.
27127 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
27128 functions.
27129 (mips_expand_builtin_direct): Use create_output_operand and
27130 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
27131 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
27132 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
27133
27134 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
27135
27136 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
27137 function.
27138 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
27139
27140 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
27141
27142 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
27143 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
27144 basic blocks and call commit_edge_insertions directly.
27145 (fixup_abnormal_edges): Move from here to...
27146 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
27147 on the edges and return whether some have actually been inserted.
27148 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
27149 compensation code.
27150
27151 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
27152
27153 PR rtl-optimization/48144
27154 * sel-sched-ir.c (merge_history_vect): Factor out from ...
27155 (merge_expr_data): ... here.
27156 (av_set_intersect): Rename to av_set_code_motion_filter.
27157 Update all callers. Call merge_history_vect when an expression
27158 is found in both sets.
27159 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
27160
27161 2011-03-26 Alan Modra <amodra@gmail.com>
27162
27163 * config/rs6000/predicates.md (word_offset_memref_op): Handle
27164 cmodel medium addresses.
27165 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
27166 64-bit gpr loads and stores.
27167 (rs6000_secondary_reload_ppc64): New function.
27168 * config/rs6000/rs6000-protos.h: Declare it.
27169 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
27170
27171 2011-03-26 Alan Modra <amodra@gmail.com>
27172
27173 PR target/47487
27174 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
27175 GNU Go in traceback table.
27176
27177 2011-03-25 Richard Henderson <rth@redhat.com>
27178
27179 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
27180 if there are exactly 6 operands.
27181 (set_storage_via_setmem): Similarly.
27182
27183 2011-03-25 Kai Tietz <ktietz@redhat.com>
27184
27185 * collect2.c (write_c_file_stat): Handle backslash
27186 as right-hand directory separator.
27187 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
27188 checking just for slash.
27189 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
27190 instead of checking for trailing slash.
27191 * gcc.c (record_temp_file): Use filename_cmp instead
27192 of strcmp.
27193 (do_spec_1): Likewise.
27194 (replace_outfile_spec_function): Likewise.
27195 (is_directory): Use filename_ncmp instead of strncmp.
27196 (print_multilib_info): Likewise.
27197 * gcov.c (find_source): Use filename_cmp instead
27198 instead of strcmp.
27199 (make_gcov_file_name): Fix order of slash/backslash
27200 checks.
27201 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
27202 (add_standard_paths): Likewise.
27203 * mips-tfile.c (saber_stop): Handle backslash.
27204 * prefix.c (update_path): Use filename_ncmp instead of
27205 strncmp.
27206 * profile.c (output_location): Use filename_cmp instead
27207 of strcmp.
27208 * read-md.c (handle_toplevel_file): Handle backslash.
27209 * tlink.c (frob_extension): Likewise.
27210 * tree-cfg.c (same_line_p): Use filename_cmp instead of
27211 strcmp.
27212 * tree-dump.c (dequeue_and_dump): Handle backslash.
27213 * tree.c (get_file_function_name): Likewise.
27214 * gengtype.c (read_input_list): Likewise.
27215 (get_file_realbasename): Likewise.
27216 (get_output_file_with_visibility): Use filename_cmp
27217 instead of strcmp.
27218
27219 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
27220
27221 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
27222 case to VFPv1.
27223
27224 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
27225
27226 * fold-const.c (expr_location_or): New function.
27227 (fold_truth_not_expr): Call it.
27228
27229 2011-03-25 Jeff Law <law@redhat.com>
27230
27231 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
27232 va_end.
27233 * c-family/c-common.c (def_fn_type): Likewise.
27234 * emit-rtl.c (gen_rtvec): Likewise.
27235 * lto/lto-lang.c (def_fn_type): Likewise.
27236
27237 2011-03-25 Richard Guenther <rguenther@suse.de>
27238
27239 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
27240 also generate copies.
27241 (fini_copy_prop): Handle constant values properly.
27242
27243 2011-03-25 Jakub Jelinek <jakub@redhat.com>
27244
27245 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
27246 mode size instead of bitsize with DWARF2_ADDR_SIZE.
27247 (hash_loc_operands, compare_loc_operands): Handle
27248 DW_OP_GNU_entry_value.
27249
27250 2011-03-25 Kai Tietz <ktietz@redhat.com>
27251
27252 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
27253 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
27254 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
27255 comment and use macro TARGET_64BIT_MS_ABI instead.
27256 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
27257 and change default behavior for 32-bit MS_ABI.
27258 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
27259 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
27260 32-bit, too.
27261 (ix86_cfun_abi): Likewise.
27262 (ix86_maybe_switch_abi): Adjust comment.
27263 (init_cumulative_args): Check for bit-ness in MS_ABI case.
27264 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
27265 instead of checking for SYSV_ABI.
27266 (ix86_nsaved_sseregs): Likewise.
27267 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
27268 to 16 bytes.
27269 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
27270 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
27271 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
27272 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
27273 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
27274
27275 2011-03-25 Richard Guenther <rguenther@suse.de>
27276
27277 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
27278 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
27279 (verify_gimple): Remove.
27280 * tree-cfg.c (verify_gimple_call): Merge verification
27281 from verify_stmts.
27282 (verify_gimple_phi): Merge verification from verify_stmts.
27283 (verify_gimple_label): New function.
27284 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
27285 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
27286 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
27287 (verify_stmts): Rename to verify_gimple_in_cfg.
27288 (verify_gimple_in_cfg): New function.
27289 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
27290 * tree-ssa.c (verify_ssa): Likewise.
27291 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
27292
27293 2011-03-25 Richard Guenther <rguenther@suse.de>
27294
27295 * passes.c (init_optimization_passes): Add FRE pass after
27296 early SRA.
27297
27298 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
27299 Andrew Stubbs <ams@codesourcery.com>
27300
27301 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
27302 for Cortex-A8.
27303 (arm_movdi_vfp_cortexa8): New pattern.
27304 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
27305 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
27306 instructions when tuning for Cortex-A8. Set attribute "arch".
27307 * config/arm/arm.md: Move include arm-tune.md up a bit.
27308 (define_attr "arch"): Add "onlya8" and "nota8" values.
27309 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
27310
27311 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
27312
27313 PR bootstrap/48282
27314 Revert:
27315 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27316
27317 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
27318 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
27319 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
27320 * passes.c (init_optimization_passes): Move
27321 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
27322
27323 2011-03-25 Kai Tietz <ktietz@redhat.com>
27324
27325 * c-typeck.c (comptypes_internal): Replace target
27326 hook call of comp_type_attributes by version in tree.c file.
27327 * gimple.c (gimple_types_compatible_p_1): Likewise.
27328 * tree-ssa.c (useless_type_conversion_p): Likewise.
27329 * tree.c (build_type_attribute_qual_variant): Likewise.
27330 (attribute_value_equal): New static helper function.
27331 (comp_type_attributes): New function.
27332 (merge_attributes): Use attribute_value_equal for comparison.
27333 (attribute_list_contained): Likewise.
27334 * tree.h (comp_type_attributes): New prototype.
27335
27336 2011-03-25 Richard Guenther <rguenther@suse.de>
27337
27338 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
27339 of complex types at -O0.
27340 (verify_gimple_assign_binary): Likewise.
27341 (verify_gimple_assign_ternary): Likewise.
27342
27343 2011-03-24 Mark Wielaard <mjw@redhat.com>
27344
27345 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
27346 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
27347
27348 2011-03-24 Mark Wielaard <mjw@redhat.com>
27349
27350 PR debug/48041
27351 * dwarf2out.c (output_abbrev_section): Only write table when
27352 abbrev_die_table_in_use > 1.
27353
27354 2011-02-24 Richard Henderson <rth@redhat.com>
27355
27356 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
27357 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
27358 (alpha_expand_unaligned_load_words): Use extql.
27359 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
27360 (emit_insxl): Handle all modes for consistency.
27361
27362 2011-02-24 Richard Henderson <rth@redhat.com>
27363
27364 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
27365 (alpha_expand_unaligned_load): Likewise.
27366 (alpha_expand_unaligned_store): Likewise.
27367 (alpha_expand_unaligned_load_words): Likewise.
27368 (alpha_expand_unaligned_store_words): Likewise.
27369 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
27370 (alpha_split_lock_test_and_set_12): Likewise.
27371 (print_operand, alpha_fold_builtin_extxx): Likewise.
27372 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
27373 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
27374 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
27375 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
27376 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
27377 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
27378 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
27379 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
27380 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
27381 (extwl, extll, extql): Similarly.
27382 (inswh, inslh, insqh): Similarly.
27383 (mskbl, mskwl, mskll, mskql): Similarly.
27384 (mskwh, msklh, mskqh): Similarly.
27385
27386 2011-02-24 Richard Henderson <rth@redhat.com>
27387
27388 * config/alpha/alpha.md (attribute isa): Add er, ner.
27389 (attribute enabled): Handle them.
27390 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
27391
27392 2011-02-24 Richard Henderson <rth@redhat.com>
27393
27394 * config/alpha/alpha.md (attribute isa): Add vms.
27395 (attribute enabled): Handle it.
27396 (*movsf): Merge *movsf_{nofix,fix,nofp}.
27397 (*movdf): Merge *movdf_{nofix,fix,nofp}.
27398 (*movtf): Rename from *movtf_internal for consistency.
27399 (*movsi): Merge with *movsi_nt_vms.
27400 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
27401 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
27402 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
27403 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
27404
27405 2011-02-24 Richard Henderson <rth@redhat.com>
27406
27407 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
27408 (extendqisi2, extendhisi2): Likewise.
27409 (extendqidi2): Simplify BWX/non-BWX expansions.
27410 (extendhidi2): Similarly.
27411
27412 2011-02-24 Richard Henderson <rth@redhat.com>
27413
27414 * config/alpha/alpha.md (attribute isa): New.
27415 (attribute enabled): New.
27416 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
27417 (zero_extendqisi2, zero_extendqidi2): Similarly.
27418 (zero_extendhisi2, zero_extendhidi2): Similarly.
27419 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
27420
27421 2011-02-24 Richard Henderson <rth@redhat.com>
27422
27423 * config/alpha/predicates.md (input_operand): Revert last change;
27424 update comment to mention 32-bit VMS rather than Windows.
27425
27426 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27427
27428 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
27429 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
27430 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
27431 * passes.c (init_optimization_passes): Move
27432 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
27433
27434 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27435
27436 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
27437
27438 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
27439
27440 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
27441 correctly.
27442
27443 2011-03-24 Jakub Jelinek <jakub@redhat.com>
27444
27445 PR debug/48204
27446 * simplify-rtx.c (simplify_const_unary_operation): Call
27447 real_convert when changing mode class with FLOAT_EXTEND.
27448
27449 2011-03-24 Nick Clifton <nickc@redhat.com>
27450
27451 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
27452 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
27453 * config/rx/rx.c (rx_option_override): Set align_jumps,
27454 align_loops and align_labels if not set by the user.
27455 (rx_align_for_label): New function.
27456 (rx_max_skip_for_label): New function.
27457 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
27458 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
27459 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
27460 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
27461 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
27462
27463 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27464
27465 PR rtl-optimization/48263
27466 * optabs.c (expand_binop_directly): Reinstate convert_modes code
27467 and original commutative_p handling. Use maybe_gen_insn.
27468
27469 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27470
27471 * reload.c (find_reloads_subreg_address): Add address_reloaded
27472 parameter and return true there if the full address has been
27473 reloaded.
27474 (find_reloads_toplev): Pass address_reloaded flag.
27475 (find_reloads_address_1): Don't use address_reloaded parameter.
27476
27477 2011-03-24 Jeff Law <law@redhat.com>
27478
27479 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
27480 unused variable "ann".
27481 (remove_unused_locals): Likewise.
27482
27483 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
27484 statement.
27485
27486 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
27487 after it is freed.
27488
27489 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27490
27491 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
27492 for invalid symbolic addresses.
27493 (s390_secondary_reload): Don't use s390_check_symref_alignment for
27494 larl operands.
27495
27496 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27497
27498 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
27499 the argument in calls to fold_truth_not_expr.
27500
27501 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27502
27503 * tree.c (record_node_allocation_statistics): New function.
27504 (make_node_stat, copy_node_stat, build_string): Call it.
27505 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
27506 (build1_stat, build_omp_clause): Likewise.
27507
27508 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27509
27510 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
27511 last commit.
27512
27513 2011-03-24 Richard Guenther <rguenther@suse.de>
27514
27515 PR tree-optimization/48271
27516 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
27517 blocks that still exist.
27518
27519 2011-03-24 Richard Guenther <rguenther@suse.de>
27520
27521 PR tree-optimization/48270
27522 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
27523 not free datarefs before ddrs.
27524
27525 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27526
27527 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
27528 from the address built for a reference with variable offset.
27529
27530 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
27531
27532 PR target/48237
27533 * config/i386/i386.md (*movdf_internal_rex64): Do not split
27534 alternatives that can be handled with movq or movabsq insn.
27535 (*movdf_internal): Disable for !TARGET_64BIT.
27536 (*movdf_internal_nointeger): Ditto.
27537 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
27538
27539 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27540
27541 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
27542 (FUNCTION_ARG_ADVANCE): Likewise.
27543 * tm.texi.in: Change references to them to hook references.
27544 * tm.texi: Regenerate.
27545 * targhooks.c (default_function_arg): Eliminate check for target macro.
27546 (default_function_incoming_arg): Likewise.
27547 (default_function_arg_advance): Likewise.
27548 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
27549 (function_arg_advance): Likewise.
27550 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
27551
27552 2011-03-24 Richard Guenther <rguenther@suse.de>
27553
27554 PR middle-end/48269
27555 * tree-object-size.c (addr_object_size): Do not double-account
27556 for MEM_REF offsets.
27557
27558 2011-03-24 Diego Novillo <dnovillo@google.com>
27559
27560 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
27561 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
27562 (lto_input_data_block): Move from lto-opts.c. Make extern.
27563 Update all users.
27564 (lto_input_string): Rename from input_string. Make extern.
27565 Update all users.
27566 * lto-streamer-out.c (lto_output_string_with_length): Rename from
27567 output_string_with_length.
27568 Output 0 to indicate a non-NULL string. Update all callers to
27569 not emit 0.
27570 (lto_output_string): Rename from output_string. Make extern.
27571 Update all users.
27572 (lto_output_decl_state_streams): Make extern.
27573 (lto_output_decl_state_refs): Make extern.
27574 * lto-streamer.h (lto_input_string): Declare.
27575 (lto_input_data_block): Declare.
27576 (lto_output_string): Declare.
27577 (lto_output_string_with_length): Declare.
27578 (lto_output_decl_state_streams): Declare.
27579 (lto_output_decl_state_refs): Declare.
27580
27581 2011-03-24 Richard Guenther <rguenther@suse.de>
27582
27583 PR tree-optimization/46562
27584 * tree.c (build_invariant_address): New function.
27585 * tree.h (build_invariant_address): Declare.
27586 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
27587 a renamed function moved ...
27588 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
27589 Take valueization callback parameter.
27590 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
27591 * gimple-fold.h: New file.
27592 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
27593 (ccp_fold, fold_const_aggregate_ref,
27594 fold_ctor_reference, fold_nonarray_ctor_reference,
27595 fold_array_ctor_reference, fold_string_cst_ctor_reference,
27596 get_base_constructor): Move ...
27597 * gimple-fold.c: ... here.
27598 (gimple_fold_stmt_to_constant_1): New function
27599 split out from ccp_fold. Take a valueization callback parameter.
27600 Valueize all operands.
27601 (gimple_fold_stmt_to_constant): New wrapper function.
27602 (fold_const_aggregate_ref_1): New function split out from
27603 fold_const_aggregate_ref. Take a valueization callback parameter.
27604 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
27605 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
27606 invariant POINTER_PLUS_EXPRs to invariant form.
27607 (vn_valueize): New function.
27608 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
27609 * tree-vrp.c (vrp_valueize): New function.
27610 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
27611 to fold statements to constants.
27612 * tree-ssa-pre.c (eliminate): Properly guard propagation of
27613 function declarations.
27614 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
27615 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
27616
27617 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27618
27619 * config/h8300/predicates.md (jump_address_operand): Fix register
27620 mode check.
27621
27622 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
27623
27624 * doc/invoke.texi (max-stores-to-sink): Document.
27625 * params.h (MAX_STORES_TO_SINK): Define.
27626 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
27627 if either vectorization or if-conversion is disabled.
27628 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
27629 tree-vect-data-refs.c vect_equal_offsets.
27630 (dr_equal_offsets_p): New function.
27631 (find_data_references_in_bb): Remove static.
27632 * tree-data-ref.h (find_data_references_in_bb): Declare.
27633 (dr_equal_offsets_p): Likewise.
27634 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
27635 (vect_drs_dependent_in_basic_block): Update calls to
27636 vect_equal_offsets.
27637 (vect_check_interleaving): Likewise.
27638 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
27639 (cond_if_else_store_replacement): Rename to...
27640 (cond_if_else_store_replacement_1): ... this. Change arguments and
27641 documentation.
27642 (cond_if_else_store_replacement): New function.
27643 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
27644 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
27645
27646 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
27647
27648 PR target/46934
27649 * config/arm/arm.md (casesi): Use the gen_int_mode() function
27650 to subtract lower bound instead of GEN_INT().
27651
27652 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
27653
27654 PR other/48179
27655 PR other/48221
27656 PR other/48234
27657 * doc/extend.texi (Alignment): Move section to match order in TOC.
27658 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
27659 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
27660
27661 2011-03-23 Jeff Law <law@redhat.com>
27662
27663 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
27664 before removing the edge.
27665
27666 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
27667 it may have been freed by redirect_branch_edge or
27668 redirect_edge_succ_nodup.
27669
27670 2011-03-23 Richard Guenther <rguenther@suse.de>
27671
27672 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
27673 (check_va_list_escapes): Likewise.
27674 (check_all_va_list_escapes): Likewise.
27675
27676 2011-03-23 Richard Guenther <rguenther@suse.de>
27677
27678 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
27679 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
27680 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
27681 (alias.o): Likewise.
27682 (ipa-type-escape.o): Remove.
27683 (ipa-struct-reorg.o): Likewise.
27684 (GTFILES): Remove ipa-struct-reorg.c.
27685 * alias.c: Do not include ipa-type-escape.h.
27686 * tree-ssa-alias.c: Likewise.
27687 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
27688 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
27689 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
27690 and ipa-type-escape passes.
27691 * tree-pass.h (pass_ipa_type_escape): Remove.
27692 (pass_ipa_struct_reorg): Likewise.
27693 * ipa-struct-reorg.h: Remove.
27694 * ipa-struct-reorg.c: Likewise.
27695 * ipa-type-escape.h: Likewise.
27696 * ipa-type-escape.c: Likewise.
27697 * doc/invoke.texi (-fipa-struct-reorg): Remove.
27698 (--param struct-reorg-cold-struct-ratio): Likewise.
27699 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
27700 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
27701 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
27702
27703 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27704
27705 * config/s390/2084.md: Enable all insn reservations also for z9_ec
27706 cpu attribute value.
27707 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
27708 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
27709 * config/s390/s390.c (processor_flags_table): New constant array.
27710 (s390_handle_arch_option): Remove.
27711 (s390_handle_option): Remove s390_handle_arch_option invocations
27712 and OPT_mwarn_framesize_ handling.
27713 (s390_option_override): Remove s390_handle_arch_option invocation.
27714 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
27715 warnings.
27716 * config/s390/s390.md (cpu attribute): Add z9_ec value.
27717 * config/s390/s390.opt (s390_tune, s390_arch)
27718 (march=): Replace s390_arch_option enum and values with
27719 processor_type. Set variable name to s390_arch. Set
27720 initialization value.
27721 (mtune=): Replace s390_arch_option with processor_type. Set
27722 variable name to s390_tune. Set initialization value.
27723
27724 2011-03-23 Julian Brown <julian@codesourcery.com>
27725
27726 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
27727 accesses which are not naturally aligned.
27728
27729 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
27730
27731 PR target/47553
27732 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
27733
27734 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
27735
27736 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
27737 parameter from "int" to "enum insn_code".
27738 (expand_operand_type): New enum.
27739 (expand_operand): New structure.
27740 (create_expand_operand): New function.
27741 (create_fixed_operand, create_output_operand): Likewise
27742 (create_input_operand, create_convert_operand_to): Likewise.
27743 (create_convert_operand_from, create_address_operand): Likewise.
27744 (create_integer_operand): Likewise.
27745 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
27746 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
27747 (expand_insn, expand_jump_insn): Likewise.
27748 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
27749 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
27750 (expand_movstr, expand_builtin___clear_cache): Likewise.
27751 (expand_builtin_lock_release): Likewise.
27752 * explow.c (allocate_dynamic_stack_space): Likewise.
27753 (probe_stack_range): Likewise. Allow check_stack to FAIL,
27754 and use the default handling in that case.
27755 * expmed.c (check_predicate_volatile_ok): Delete.
27756 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
27757 (emit_cstore): Likewise.
27758 * expr.c (emit_block_move_via_movmem): Likewise.
27759 (set_storage_via_setmem, expand_assignment): Likewise.
27760 (emit_storent_insn, try_casesi): Likewise.
27761 (emit_single_push_insn): Likewise. Allow the expansion to fail.
27762 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
27763 (expand_vec_shift_expr, expand_binop_directly): Likewise.
27764 (expand_twoval_unop, expand_twoval_binop): Likewise.
27765 (expand_unop_direct, emit_indirect_jump): Likewise.
27766 (emit_conditional_move, vector_compare_rtx): Likewise.
27767 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
27768 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
27769 (expand_sync_lock_test_and_set): Likewise.
27770 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
27771 (emit_unop_insn): Likewise.
27772 (expand_copysign_absneg): Change icode to an insn_code.
27773 (create_convert_operand_from_type): New function.
27774 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
27775 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
27776 (expand_insn, expand_jump_insn): Likewise.
27777 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
27778 than const_int_operand for operand 2.
27779
27780 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27781
27782 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
27783 if possible.
27784
27785 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27786
27787 * emit-rtl.c (emit_pattern_before_noloc): New function.
27788 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
27789 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
27790 (emit_pattern_after_noloc): New function.
27791 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
27792 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
27793
27794 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27795
27796 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
27797 (__ffsDI2): Likewise.
27798
27799 2011-03-22 Richard Henderson <rth@redhat.com>
27800
27801 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
27802 of !TARGET_ABI_OPEN_VMS.
27803 (alpha_trampoline_init, alpha_start_function): Likewise.
27804 (alpha_expand_epilogue, alpha_file_start): Likewise.
27805 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
27806 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
27807 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
27808 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
27809 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
27810
27811 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27812
27813 * config/s390/s390-opts.h: New.
27814 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
27815 s390_arch_flags, s390_warn_framesize, s390_stack_size,
27816 s390_stack_guard): Remove.
27817 (s390_handle_arch_option): Return void. Take enum
27818 s390_arch_option value instead of string and searching array.
27819 (s390_handle_option): Don't assert that global structures are in
27820 use. Access variables via opts pointer. Use error_at. Don't use
27821 sscanf for -mstack-guard= or -mstack-size=. Update call to
27822 s390_handle_arch_option.
27823 (s390_option_override): Update call to s390_handle_arch_option.
27824 (s390_emit_prologue): Use %d format for s390_stack_size in
27825 diagnostic. Use %wd for HOST_WIDE_INT.
27826 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
27827 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
27828 * config/s390/s390.opt (config/s390/s390-opts.h): New
27829 HeaderInclude entry.
27830 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
27831 s390_arch_flags, s390_warn_framesize): New Variable entries.
27832 (s390_arch_option): New Enum and EnumValue entries.
27833 (march=): Use Enum instead of Var.
27834 (mstack-guard=, mstack-size=): Use UInteger and Var.
27835 (mtune=): Use Enum.
27836
27837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27838
27839 * config/score/score.c (score_handle_option): Don't assert that
27840 global structures are in use. Access target_flags via opts
27841 pointer. Use value of -march= option to determine target_flags
27842 settings.
27843 * config/score/score.opt (march=): Use Enum.
27844 (score_arch): New Enum and EnumValue entries.
27845
27846 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27847
27848 * config/mep/mep.c (option_mtiny_specified): Remove.
27849 (mep_option_override): Move register handling for -mivc2 from
27850 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
27851 instead of option_mtiny_specified.
27852 (mep_handle_option): Access target_flags via opts pointer. Don't
27853 assert that global structures are in use. Defer part of -mivc2
27854 handling and move it to mep_option_override.
27855 * config/mep/mep.opt (IVC2): New Mask entry.
27856 (mivc2): Use Var and Defer instead of Mask.
27857
27858 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27859
27860 * config/v850/v850-opts.h: New.
27861 * config/v850/v850.c (small_memory): Replace with
27862 small_memory_physical_max array. Make that array static const.
27863 (v850_handle_memory_option): Take integer value of argument. Take
27864 gcc_options pointer, option text and location. Return void.
27865 Update for changes to small memory structures.
27866 (v850_handle_option): Access target_flags via opts pointer. Don't
27867 assert that global structures are in use. Update calls to
27868 v850_handle_memory_option.
27869 (v850_encode_data_area): Update references to small memory settings.
27870 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
27871 (enum small_memory_type): Move to v850-opts.h.
27872 * config/v850/v850.opt (config/v850/v850-opts.h): New
27873 HeaderInclude entry.
27874 (small_memory_max): New Variable entry.
27875 (msda): Replace by pair of options msda= and msda-. Use UInteger.
27876 (mtda, mzda): Likewise.
27877
27878 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27879
27880 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
27881 pointer. Don't assert that global structures are in use.
27882
27883 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27884
27885 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
27886 via opts pointer. Don't assert that global structures are in use.
27887
27888 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27889
27890 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
27891 (munix=93): Use Var.
27892 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
27893 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
27894 * config/pa/pa-opts.h: New.
27895 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
27896 (pa_handle_option): Don't assert that global structures are in
27897 use. Access target_flags via opts pointer. Don't handle
27898 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
27899 OPT_munix_98 here.
27900 (pa_option_override): Handle deferred OPT_mfixed_range_.
27901
27902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27903
27904 * config/mn10300/mn10300-opts.h: New.
27905 * config/mn10300/mn10300.c (mn10300_processor,
27906 mn10300_tune_string): Remove.
27907 (mn10300_handle_option): Don't assert that global structures are
27908 in use. Access mn10300_processor via opts pointer. Don't handle
27909 OPT_mtune_ here.
27910 * config/mn10300/mn10300.h (enum processor_type): Move to
27911 mn10300-opts.h.
27912 (mn10300_processor): Remove.
27913 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
27914 HeaderInclude entry.
27915 (mn10300_processor): New Variable entry.
27916 (mtune=): Use Var.
27917
27918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27919
27920 * config/microblaze/microblaze.c: Don't include opts.h.
27921 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
27922 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
27923 (mno-clearbss): Use Var and Warn.
27924
27925 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27926
27927 * config/m32r/m32r-opts.h: New.
27928 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
27929 (m32r_handle_option): Don't assert that global structures are in
27930 use. Access target_flags and m32r_cache_flush_func via opts
27931 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
27932 OPT_mno_flush_trap here.
27933 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
27934 include of m32r-opts.h.
27935 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
27936 HeaderInclude entry.
27937 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
27938 (mmodel=): Use Enum and Var.
27939 (m32r_model): New Enum and EnumValue entries.
27940 (mno-flush-trap): Use Var.
27941 (msdata=): Use Enum and Var.
27942 (m32r_sdata): New Enum and EnumValue entries.
27943
27944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27945
27946 * config/m32c/m32c.c: Don't include opts.h.
27947 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
27948 m32c_handle_option): Remove.
27949 (m32c_option_override): Check global_options_set.x_target_memregs
27950 instead of target_memregs_set.
27951 * config/m32c/m32c.h (target_memregs): Remove.
27952 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
27953 variable.
27954
27955 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27956
27957 * config/iq2000/iq2000-opts.h: New.
27958 * config/iq2000/iq2000.c: Don't include opts.h.
27959 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
27960 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
27961 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
27962 HeaderInclude entry.
27963 (iq2000_tune): New Variable entry.
27964 (march=): Add comment. Use Enum.
27965 (iq2000_arch): New Enum and EnumValue entries.
27966 (mcpu=): Use Enum and Var.
27967 (iq2000_tune): New Enum and EnumValue entries.
27968
27969 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27970
27971 * config/ia64/ia64-opts.h: New.
27972 * config/ia64/ia64.c (ia64_tune): Remove.
27973 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
27974 here. Use error_at.
27975 (ia64_option_override): Handle deferred OPT_mfixed_range_.
27976 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
27977 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
27978 HeaderInclude entry.
27979 (ia64_tune): New Variable entry.
27980 (mfixed-range=): Use Defer and Var.
27981 (mtune=): Use Enum and Var.
27982 (ia64_tune): New Enum and EnumValue entries.
27983
27984 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27985
27986 * config/frv/frv-opts.h: New.
27987 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
27988 frv-opts.h.
27989 (frv_cpu_type): Remove.
27990 * config/frv/frv.c: Don't include opts.h.
27991 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
27992 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
27993 (frv_cpu_type): New Variable entry.
27994 (frv_cpu): New Enum and EnumValue entries.
27995
27996 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27997
27998 * config/cris/cris.c (cris_handle_option): Access target_flags via
27999 opts pointer. Don't assert that global structures are in use.
28000 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
28001 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
28002
28003 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28004
28005 * config/bfin/bfin-opts.h: New.
28006 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
28007 bfin_si_revision, bfin_workarounds): Remove.
28008 (bfin_cpus): Make static const.
28009 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
28010 not bfin_lib_id_given.
28011 (bfin_handle_option): Don't set bfin_lib_id_given. Access
28012 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
28013 pointer. Use error_at. Don't assert that global structures are in use.
28014 * config/bfin/bfin.h: Include bfin-opts.h.
28015 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
28016 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
28017 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
28018 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
28019 entries.
28020
28021 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28022
28023 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
28024 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
28025 or -msoft-float here.
28026 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
28027 -msoft-float and -mhard-float.
28028 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
28029 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
28030 msoft-float.
28031 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
28032 -msoft-float.
28033 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
28034 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
28035 not mhard-float.
28036 (LIBGCC_SPEC): Don't handle -msoft-float.
28037 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
28038 -mhard-float.
28039 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
28040 msoft-float.
28041 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
28042 -mfloat-abi=*, not -msoft-float and -mhard-float.
28043 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
28044 -msoft-float.
28045 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
28046 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
28047 mhard-float and msoft-float.
28048 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
28049 mfloat-abi=soft in comments, not mhard-float and msoft-float.
28050 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
28051 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
28052 mhard-float.
28053 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
28054 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
28055 msoft-float.
28056 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
28057 not mhard-float.
28058 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
28059 not msoft-float.
28060
28061 2011-03-22 Richard Henderson <rth@redhat.com>
28062
28063 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
28064 TARGET_ABI_WINDOWS_NT.
28065 (alpha_output_function_end_prologue): Likewise.
28066 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
28067 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
28068 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
28069 (trap, *movsi_nt_vms): Likewise.
28070 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
28071 (*tablejump_osf_nt_internal): Remove.
28072 * config/alpha/predicates.md (input_operand): Only test Pmode.
28073
28074 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28075
28076 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
28077 via opts pointer. Use error_at. Don't assert that global
28078 structures are in use.
28079
28080 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28081
28082 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
28083 (ix86_handle_option): Access ix86_isa_flags and
28084 ix86_isa_flags_explicit via opts pointer. Don't assert that
28085 global structures are in use.
28086 (ix86_function_specific_save, ix86_function_specific_restore):
28087 Update ix86_isa_flags_explicit field name.
28088 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
28089 (ix86_isa_flags_explicit): Rename TargetSave entry to
28090 x_ix86_isa_flags_explicit.
28091
28092 2011-03-22 Richard Henderson <rth@redhat.com>
28093
28094 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
28095 (alpha_option_override, direct_return): Likewise.
28096 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
28097 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
28098 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
28099 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
28100 (alpha_expand_epilogue, alpha_end_function): Likewise.
28101 (alpha_init_libfuncs): Likewise.
28102 (struct machine_function): Remove unicosmk members.
28103 (print_operand) ['t']: Remove.
28104 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
28105 unicosmk_output_module_name, unicosmk_output_common,
28106 current_section_align, unicosmk_output_text_section_asm_op,
28107 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
28108 unicosmk_section_type_flags, unicosmk_unique_section,
28109 unicosmk_asm_named_section, unicosmk_insert_attributes,
28110 unicosmk_output_align, unicosmk_defer_case_vector,
28111 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
28112 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
28113 unicosmk_output_ssib, unicosmk_add_call_info_word,
28114 unicosmk_extern_head, unicosmk_output_default_externs,
28115 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
28116 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
28117 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
28118 * config/alpha/alpha-protos.h: Update.
28119 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
28120 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
28121 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
28122 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
28123 (*mulsi_se, mulvsi3): Likewise.
28124 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
28125 (*divmodsi_internal, call, call_value, realign): Likewise.
28126 (moddi3, umoddi3): Likewise; remove duplicate expander.
28127 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
28128 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
28129 (*movdi_nofix): Remove r/U alternative.
28130 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
28131 * config/alpha/constraints.md ("U"): Remove.
28132 * config/alpha/predicates.md (call_operand"): Don't test
28133 TARGET_ABI_UNICOSMK.
28134
28135 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28136
28137 * target.def (handle_option): Take gcc_options and
28138 cl_decoded_option pointers and location_t.
28139 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
28140 * doc/tm.texi: Regenerate.
28141 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
28142 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
28143 * lto-opts.c (lto_reissue_options): Generate option structure for
28144 targetm.handle_option call.
28145 * opts.c (target_handle_option): Update call to
28146 targetm.handle_option. Remove assertions about values now passed
28147 down to hook.
28148 * targhooks.c (default_target_handle_option): New.
28149 * targhooks.h (default_target_handle_option): Declare.
28150 * config/alpha/alpha.c: Include opts.h.
28151 (alpha_handle_option): Update to new hook interface.
28152 * config/arm/arm.c: Include opts.h.
28153 (arm_handle_option): Update to new hook interface.
28154 * config/arm/t-arm (arm.o): Update dependencies.
28155 * config/bfin/bfin.c: Include opts.h.
28156 (bfin_handle_option): Update to new hook interface.
28157 * config/cris/cris.c: Include opts.h.
28158 (cris_handle_option): Update to new hook interface.
28159 * config/frv/frv.c: Include opts.h.
28160 (frv_handle_option): Update to new hook interface.
28161 * config/i386/i386.c: Include opts.h.
28162 (ix86_handle_option): Update to new hook interface.
28163 (ix86_valid_target_attribute_inner_p): Generate option structure
28164 for call to ix86_handle_option.
28165 * config/i386/t-i386 (i386.o): Update dependencies.
28166 * config/ia64/ia64.c: Include opts.h.
28167 (ia64_handle_option): Update to new hook interface.
28168 * config/ia64/t-ia64 (ia64.o): Update dependencies.
28169 * config/iq2000/iq2000.c: Include opts.h.
28170 (iq2000_handle_option): Update to new hook interface.
28171 * config/m32c/m32c.c: Include opts.h.
28172 (m32c_handle_option): Update to new hook interface.
28173 * config/m32r/m32r.c: Include opts.h.
28174 (m32r_handle_option): Update to new hook interface.
28175 * config/m68k/m68k.c: Include opts.h.
28176 (m68k_handle_option): Update to new hook interface.
28177 * config/mep/mep.c: Include opts.h.
28178 (mep_handle_option): Update to new hook interface.
28179 * config/microblaze/microblaze.c: Include opts.h.
28180 (microblaze_handle_option): Update to new hook interface.
28181 * config/mips/mips.c: Include opts.h.
28182 (mips_handle_option): Update to new hook interface.
28183 * config/mn10300/mn10300.c: Include opts.h.
28184 (mn10300_handle_option): Update to new hook interface.
28185 * config/pa/pa.c: Include opts.h.
28186 (pa_handle_option): Update to new hook interface.
28187 * config/pdp11/pdp11.c: Include opts.h.
28188 (pdp11_handle_option): Update to new hook interface.
28189 * config/rs6000/rs6000.c: Include opts.h.
28190 (rs6000_handle_option): Update to new hook interface.
28191 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
28192 * config/rx/rx.c: Include opts.h.
28193 (rx_handle_option): Update to new hook interface.
28194 * config/s390/s390.c: Include opts.h.
28195 (s390_handle_option): Update to new hook interface.
28196 * config/score/score.c: Include opts.h.
28197 (score_handle_option): Update to new hook interface.
28198 * config/sh/sh.c: Include opts.h.
28199 (sh_handle_option): Update to new hook interface.
28200 * config/sparc/sparc.c: Include opts.h.
28201 (sparc_handle_option): Update to new hook interface.
28202 * config/v850/v850.c: Include opts.h.
28203 (v850_handle_option): Update to new hook interface.
28204
28205 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28206
28207 * gcc.c (driver_unknown_option_callback): Only permit and save
28208 unknown -Wno- options.
28209 (driver_wrong_lang_callback): Save options directly instead of via
28210 driver_unknown_option_callback.
28211
28212 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
28213
28214 * combine.c (simplify_set): Try harder to find the best CC mode when
28215 simplifying a nested COMPARE on the RHS.
28216
28217 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28218
28219 * config/alpha/gnu.h: Remove.
28220 * config/arc: Remove directory.
28221 * config/arm/netbsd.h: Remove.
28222 * config/arm/t-pe: Remove.
28223 * config/crx: Remove directory.
28224 * config/i386/netbsd.h: Remove.
28225 * config/m68hc11: Remove directory.
28226 * config/m68k/uclinux-oldabi.h: Remove.
28227 * config/mcore/mcore-pe.h: Remove.
28228 * config/mcore/t-mcore-pe: Remove.
28229 * config/netbsd-aout.h: Remove.
28230 * config/rs6000/gnu.h: Remove.
28231 * config/sh/sh-symbian.h: Remove.
28232 * config/sh/symbian-base.c: Remove.
28233 * config/sh/symbian-c.c: Remove.
28234 * config/sh/symbian-cxx.c: Remove.
28235 * config/sh/symbian-post.h: Remove.
28236 * config/sh/symbian-pre.h: Remove.
28237 * config/sh/t-symbian: Remove.
28238 * config/svr3.h: Remove.
28239 * config/vax/netbsd.h: Remove.
28240 * config.build: Don't handle i[34567]86-*-pe.
28241 * config.gcc: Remove handling of deprecations for most deprecated
28242 targets.
28243 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
28244 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
28245 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
28246 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
28247 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
28248 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
28249 Remove cases.
28250 * config.host: Don't handle i[34567]86-*-pe.
28251 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
28252 (ASM_SPEC32): Don't handle -mcall-gnu.
28253 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
28254 -mcall-gnu.
28255 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
28256 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
28257 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
28258 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
28259 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
28260 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
28261 conditional on SYMBIAN.
28262 * configure.ac: Don't handle powerpc*-*-gnu*.
28263 * configure: Regenerate.
28264 * doc/extend.texi (interrupt attribute): Don't mention CRX.
28265 * doc/install-old.texi (m6811, m6812): Don't mention.
28266 * doc/install.texi (arc-*-elf*): Don't document multilib option.
28267 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
28268 (m68k-uclinuxoldabi): Don't mention.
28269 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
28270 Remove.
28271 (-mcall-gnu): Remove.
28272 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
28273 families): Remove constraint documentation.
28274
28275 2011-03-22 Marius Strobl <marius@FreeBSD.org>
28276
28277 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
28278 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
28279 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
28280
28281 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28282
28283 PR target/48226
28284 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
28285 vector when peeking at the next token for vector, don't expand the
28286 keywords.
28287
28288 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
28289
28290 * config/avr/avr-protos.h (expand_epilogue): Change prototype
28291 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
28292 * config/avr/avr.c (init_cumulative_args)
28293 (avr_function_arg_advance): Use it.
28294 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
28295 sibcall epilogues.
28296 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
28297 (avr_function_ok_for_sibcall): ...this new function.
28298 (avr_lookup_function_attribute1): New static Function.
28299 (avr_naked_function_p, interrupt_function_p)
28300 (signal_function_p, avr_OS_task_function_p)
28301 (avr_OS_main_function_p): Use it.
28302 * config/avr/avr.md ("sibcall", "sibcall_value")
28303 ("sibcall_epilogue"): New expander.
28304 ("*call_insn", "*call_value_insn"): New insn.
28305 ("call_insn", "call_value_insn"): Remove
28306 ("call", "call_value", "epilogue"): Change expander to handle
28307 sibling calls.
28308
28309 2011-03-21 Nick Clifton <nickc@redhat.com>
28310
28311 * doc/invoke.texi (Overall Options): Move closing brace to end of
28312 options list.
28313 (Optimization Options): Add missing @gol.
28314 (Directory Options): Likewise.
28315 (i386 and x86-64 Options): Likewise.
28316 (RS6000 and PowerPC Options): Likewise.
28317 (i386 and x86-64 Windows Options): Likewise.
28318 (V850 Options): Add text missing from descriptions.
28319
28320 2011-03-22 Richard Henderson <rth@redhat.com>
28321
28322 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
28323 (avr_incoming_return_addr_rtx): New.
28324 (emit_push_byte): New.
28325 (expand_prologue): Use it. Remove incorrect dwarf annotation for
28326 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
28327 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
28328 (emit_pop_byte): New.
28329 (expand_epilogue): Use it. Pop frame pointer by bytes.
28330 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
28331 (INCOMING_RETURN_ADDR_RTX): New.
28332 (INCOMING_FRAME_SP_OFFSET): New.
28333 (ARG_POINTER_CFA_OFFSET): New.
28334 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
28335 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
28336 (pophi): Remove.
28337
28338 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
28339
28340 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
28341
28342 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
28343 (FUNCTION_ARG_ADVANCE): Likewise.
28344 * tm.texi.in: Change references to them to hook references.
28345 * tm.texi: Regenerate.
28346 * targhooks.c (default_function_arg): Eliminate check for target
28347 macro.
28348 (default_function_incoming_arg): Likewise.
28349 (default_function_arg_advance): Likewise.
28350 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
28351 (function_arg_advance): Likewise.
28352 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
28353
28354 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
28355
28356 * tree.c (build_call_1): New function.
28357 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
28358
28359 2011-03-22 Richard Guenther <rguenther@suse.de>
28360
28361 PR tree-optimization/48228
28362 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
28363 for single-arg PHIs.
28364
28365 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
28366
28367 PR rtl-optimization/48143
28368 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
28369 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
28370 sse2_cvtps2pd): Likewise.
28371
28372 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28373
28374 * recog.c (canonicalize_change_group): Use validate_unshare_change.
28375
28376 2011-03-22 Richard Guenther <rguenther@suse.de>
28377
28378 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
28379 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
28380 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
28381 and REALIGN_LOAD_EXPR.
28382 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
28383 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
28384 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
28385 DOT_PROD_EXPR case ...
28386 (expand_expr_real_2): ... here.
28387 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
28388 and REALIGN_LOAD_EXPR.
28389 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
28390 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
28391 (vect_create_epilog_for_reduction): Likewise.
28392 (vectorizable_reduction): Likewise.
28393 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
28394 * tree-vect-stmts.c (vectorizable_load): Likewise.
28395
28396 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
28397
28398 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
28399
28400 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28401
28402 * config/s390/s390.c (s390_delegitimize_address): Fix offset
28403 handling for PLTOFF/GOTOFF.
28404
28405 2011-03-22 Nick Clifton <nickc@redhat.com>
28406
28407 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
28408 trailing backslash from the end of the macro definition.
28409
28410 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28411
28412 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
28413 and PLT unspecs.
28414
28415 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
28416
28417 * expr.h (prepare_operand): Move to...
28418 * optabs.h (prepare_operand): ...here and change the insn code
28419 parameter from "int" to "enum insn_code".
28420 (insn_operand_matches): Declare.
28421 * expr.c (init_expr_target): Use insn_operand_matches.
28422 (compress_float_constant): Likewise.
28423 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
28424 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
28425 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
28426 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
28427 Likewise.
28428 (gen_cond_trap): Likewise.
28429 (prepare_operand): Likewise. Change icode to an insn_code.
28430 (insn_operand_matches): New function.
28431 * reload.c (find_reloads_address_1): Use insn_operand_matches.
28432 * reload1.c (gen_reload): Likewise.
28433 * targhooks.c (default_secondary_reload): Likewise.
28434
28435 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
28436
28437 * config/alpha/alpha.md (unspec): New define_c_enum.
28438 (unspecv): Ditto.
28439
28440 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
28441
28442 PR debug/48214
28443 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
28444 between a call and its CALL_ARG_LOCATION note.
28445
28446 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
28447
28448 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
28449
28450 2011-03-21 Jakub Jelinek <jakub@redhat.com>
28451
28452 PR c/42544
28453 PR c/48197
28454 * c-common.c (shorten_compare): If primopN is first sign-extended
28455 to opN and then zero-extended to result type, set primopN to opN.
28456
28457 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
28458
28459 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
28460 for barrier handlers.
28461
28462 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28463
28464 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
28465 UNSPEC constants to be in the unspec enumeration, and redefine
28466 all UNSPECV constants to be in the unspecv enumeration, so that
28467 dumps print which unspec/unspec_volatile this is.
28468 * config/rs6000/vector.md (UNSPEC_*): Ditto.
28469 * config/rs6000/paired.md (UNSPEC_*): Ditto.
28470 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
28471 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
28472 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
28473
28474 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
28475 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
28476 UNSPECV_LWSYNC, since these are used as unspec_volatile.
28477 * config/rs6000/sync.md (isync, lwsync): Ditto.
28478
28479 2011-03-21 Richard Guenther <rguenther@suse.de>
28480
28481 * params.def (lto-min-partition): Fix typo.
28482
28483 2011-03-21 Richard Guenther <rguenther@suse.de>
28484
28485 PR c/47939
28486 * c-decl.c (grokdeclarator): Drop to the main variant only
28487 for array types. Drop flag_gen_aux_info check.
28488
28489 2011-03-21 Richard Guenther <rguenther@suse.de>
28490
28491 PR translation/47911
28492 * params.def (lto-partitions): Fix typo.
28493 (lto-min-partition): Fix wording.
28494
28495 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
28496
28497 * config/rs6000/t-freebsd: Remove duplication from file.
28498
28499 2011-03-21 Richard Guenther <rguenther@suse.de>
28500
28501 PR middle-end/47661
28502 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
28503
28504 2011-03-21 Richard Guenther <rguenther@suse.de>
28505
28506 PR lto/48210
28507 * params.def (lto-partitions): Require at least 1 partition.
28508
28509 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28510
28511 * gthr-solaris.h: Remove.
28512 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
28513 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
28514 (LIB_SPEC): Likewise.
28515 * config/sol2.opt (threads): Remove.
28516 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
28517 (sparc*-*-solaris2*): Likewise.
28518 * configure.ac (enable_threads): Enable solaris support.
28519 * configure: Regenerate.
28520 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
28521 * doc/install.texi (Configuration, --enable-threads=lib): Remove
28522 solaris.
28523
28524 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28525
28526 * config.gcc: Obsolete *-*-solaris2.8*.
28527 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28528
28529 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28530
28531 PR bootstrap/48135
28532 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
28533 reference. Solaris 8 perl works.
28534
28535 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28536
28537 PR bootstrap/48135
28538 * doc/install.texi (Prerequisites): Move jar etc. up.
28539 Explain support library version requirements.
28540
28541 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28542
28543 PR bootstrap/48135
28544 * doc/install.texi (Prerequisites): Move Perl to build
28545 requirements. Always necessary on Solaris 2 with Sun ld.
28546
28547 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28548
28549 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
28550 binutils 2.21.
28551 (Specific, i?86-*-solaris2.[89]): Likewise.
28552 (Specific, i?86-*-solaris2.10): Likewise.
28553 (Specific, mips-sgi-irix6): Likewise.
28554 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
28555 Update for binutils 2.21.
28556
28557 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28558
28559 * configure.ac (gcc_cv_lto_plugin): Fix typo.
28560 Allow -fuse-linker-plugin for non-default plugin linker.
28561 * configure: Regenerate.
28562
28563 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
28564
28565 PR bootstrap/48167
28566 * gengtype.c (files_rules): Added rule for cp/parser.h.
28567
28568 2011-03-21 Jakub Jelinek <jakub@redhat.com>
28569
28570 PR target/48213
28571 * config/s390/s390.c (s390_delegitimize_address): Don't call
28572 lowpart_subreg if orig_x has BLKmode.
28573
28574 2011-03-21 Kai Tietz <ktietz@redhat.com>
28575
28576 PR target/12171
28577 * doc/plugins.texi: Adjust documentation for plugin register_callback.
28578 * tree.h (attribute_spec): Add new member affects_type_identity.
28579 * attribs.c (empty_attribute_table): Adjust attribute_spec
28580 initializers.
28581 * config/alpha/alpha.c: Likewise.
28582 * config/arc/arc.c: Likewise.
28583 * config/arm/arm.c: Likewise.
28584 * config/avr/avr.c: Likewise.
28585 * config/bfin/bfin.c: Likewise.
28586 * config/crx/crx.c: Likewise.
28587 * config/darwin.h: Likewise.
28588 * config/h8300/h8300.c: Likewise.
28589 * config/i386/cygming.h: Likewise.
28590 * config/i386/i386.c: Likewise.
28591 * config/ia64/ia64.c: Likewise.
28592 * config/m32c/m32c.c: Likewise.
28593 * config/m32r/m32r.c: Likewise.
28594 * config/m68hc11/m68hc11.c: Likewise.
28595 * config/m68k/m68k.c: Likewise.
28596 * config/mcore/mcore.c: Likewise.
28597 * config/mep/mep.c: Likewise.
28598 * config/microblaze/microblaze.c: Likewise.
28599 * config/mips/mips.c: Likewise.
28600 * config/rs6000/rs6000.c: Likewise.
28601 * config/rx/rx.c: Likewise.
28602 * config/sh/sh.c: Likewise.
28603 * config/sol2.h: Likewise.
28604 * config/sparc/sparc.c: Likewise.
28605 * config/spu/spu.c: Likewise.
28606 * config/stormy16/stormy16.c: Likewise.
28607 * config/v850/v850.c: Likewise.
28608
28609 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28610
28611 * simplify-rtx.c (simplify_binary_operation_1): Handle
28612 (xor (and A B) C) case when B and C are both constants.
28613
28614 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
28615
28616 * tree-dfa.c (add_referenced_var): Fix typo in comment.
28617
28618 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
28619
28620 PR bootstrap/48168
28621 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
28622
28623 2011-03-20 Jakub Jelinek <jakub@redhat.com>
28624
28625 PR rtl-optimization/48156
28626 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
28627 assume df and df_lr are not NULL.
28628
28629 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
28630
28631 PR debug/48023
28632 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
28633 between a call and its CALL_ARG_LOCATION note.
28634
28635 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
28636
28637 PR debug/48178
28638 * config/sh/sh.c (find_barrier): Don't emit a constant pool
28639 between a call and its corresponding CALL_ARG_LOCATION note.
28640
28641 2011-03-19 Anatoly Sokolov <aesok@post.ru>
28642
28643 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
28644 instead of loop. Use HARD_REGISTER_NUM_P predicate.
28645 * haifa-sched.c (setup_ref_regs): Ditto.
28646 * caller-save.c (add_used_regs_1): Ditto.
28647 * dse.c (look_for_hardregs): Ditto.
28648 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
28649 * sched-rgn.c (check_live_1): Ditto.
28650
28651 2011-03-18 Joseph Myers <joseph@codesourcery.com>
28652
28653 * c-decl.c (diagnose_mismatched_decls): Give an error for
28654 redefining a typedef with variably modified type.
28655
28656 2011-03-18 Joseph Myers <joseph@codesourcery.com>
28657
28658 * c-decl.c (grokfield): Don't allow typedefs for structures or
28659 unions with no tag by default.
28660 * doc/extend.texi (Unnamed Fields): Update.
28661
28662 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
28663
28664 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
28665 Rewrite using indirect functions.
28666 (lwp_slwpcb): Ditto.
28667 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
28668 (avx_vinsertf128<mode>): Ditto.
28669
28670 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28671
28672 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
28673 unspecs.
28674
28675 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28676
28677 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
28678 splitting between a call and its corresponding CALL_ARG_LOCATION note.
28679
28680 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
28681
28682 PR rtl-optimization/48170
28683 * gcse.c (hoist_code): Remove bogus asserts.
28684
28685 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
28686
28687 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
28688 computation for prologue/epilogue.
28689
28690 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28691
28692 * Makefile.in (check-consistency): Remove.
28693
28694 2011-03-18 Jakub Jelinek <jakub@redhat.com>
28695
28696 PR debug/48176
28697 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
28698 arange_table_in_use is 0, but either text_section_used or
28699 cold_text_section_used is true. Don't call it if
28700 !info_section_emitted.
28701
28702 2011-03-18 Anatoly Sokolov <aesok@post.ru>
28703
28704 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
28705 FUNCTION_VALUE_REGNO_P): Remove.
28706 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
28707 Remove.
28708 * config/avr/avr.c (avr_ret_register): Make static inline.
28709 (avr_function_value_regno_p): New function.
28710 (avr_libcall_value): Make static. Add 'func' argument.
28711 (avr_function_value): Make static. Rename 'func' argument to
28712 'fn_decl_or_type', forward it to avr_libcall_value. Call
28713 avr_ret_register function instead of RET_REGISTER macro.
28714 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
28715
28716 2011-03-18 Jason Merrill <jason@redhat.com>
28717
28718 PR c++/23372
28719 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
28720
28721 2011-03-18 Richard Guenther <rguenther@suse.de>
28722
28723 * doc/install.texi (--enable-gold): Remove.
28724 (--with-plugin-ld): Document.
28725 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
28726
28727 2011-03-18 Andrew Pinski <pinskia@gmail.com>
28728
28729 PR middle-end/47790
28730 * expr.c (optimize_bitfield_assignment_op): Revamp to work
28731 again after expansion changes.
28732
28733 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
28734
28735 * combine.c (try_combine): Do simplification only call of
28736 subst() on i2 even when i1 is present. Update comments.
28737
28738 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
28739
28740 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
28741 and UNSPEC_PCREL_SYMOFF.
28742
28743 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28744
28745 * config/s390/s390.md: Use define_c_enum for the unspec constant
28746 definitions.
28747
28748 2011-03-18 Richard Henderson <rth@redhat.com>
28749 Jakub Jelinek <jakub@redhat.com>
28750
28751 PR bootstrap/48161
28752 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
28753 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
28754
28755 2011-03-17 Anatoly Sokolov <aesok@post.ru>
28756
28757 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28758 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
28759 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
28760 Change return type to bool.
28761 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28762
28763 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28764
28765 PR debug/48163
28766 * var-tracking.c (prepare_call_arguments): If CALL target
28767 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
28768 pc instead of looking it up using cselib_lookup and use
28769 Pmode for it if x has VOIDmode.
28770 * dwarf2out.c (gen_subprogram_die): If also both first and
28771 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
28772
28773 PR debug/48163
28774 * function.c (assign_parms): For data.passed_pointer parms
28775 use MEM of data.entry_parm instead of data.entry_parm itself
28776 as DECL_INCOMING_RTL.
28777 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
28778 also when passed and declared mode is the same, DECL_RTL
28779 is a MEM with pseudo as address and DECL_INCOMING_RTL is
28780 a MEM too.
28781
28782 2011-03-16 Jeff Law <law@redhat.com>
28783
28784 PR rtl-optimization/37273
28785 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28786 handle them like argument loads from stack slots. Do not double
28787 count memory for memory constants and argument loads from stack slots.
28788
28789 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
28790
28791 PR debug/48160
28792 * var-tracking.c (prepare_call_arguments): Check SUBREG.
28793
28794 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
28795
28796 PR target/48171
28797 * config/i386/i386.opt: Add Save to -mavx and -mfma.
28798
28799 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28800
28801 PR bootstrap/48153
28802 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
28803 if dwarf_strict.
28804 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
28805 Clear call_arg_locations and call_arg_loc_last always.
28806
28807 PR middle-end/48152
28808 * var-tracking.c (prepare_call_arguments): If argument needs to be
28809 passed by reference, adjust argtype and mode.
28810
28811 2011-03-17 Richard Guenther <rguenther@suse.de>
28812
28813 PR middle-end/48134
28814 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
28815 a value make sure to fold the statement.
28816
28817 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
28818
28819 PR target/43872
28820 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
28821 return condition with !cfun->calls_alloca.
28822
28823 2011-03-17 Richard Guenther <rguenther@suse.de>
28824
28825 PR bootstrap/48148
28826 * lto-cgraph.c (input_overwrite_node): Clear the abstract
28827 origin for decls in other ltrans units.
28828 (input_varpool_node): Likewise.
28829
28830 2011-03-17 Richard Guenther <rguenther@suse.de>
28831
28832 PR middle-end/48165
28833 * tree-object-size.c (compute_object_offset): Properly return
28834 the offset operand of MEM_REFs as sizetype.
28835
28836 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28837
28838 PR rtl-optimization/48141
28839 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
28840 * dse.c: Include params.h.
28841 (active_local_stores_len): New variable.
28842 (add_wild_read, dse_step1): Clear it when setting active_local_stores
28843 to NULL.
28844 (record_store, check_mem_read_rtx): Decrease it when removing
28845 from the chain.
28846 (scan_insn): Likewise. Increase it when adding to chain, if it
28847 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
28848 set active_local_stores to NULL before the addition.
28849 * Makefile.in (dse.o): Depend on $(PARAMS_H).
28850
28851 PR rtl-optimization/48141
28852 * dse.c (record_store): If no positions are needed in an insn
28853 that cannot be deleted, at least unchain it from active_local_stores.
28854
28855 2011-03-16 Dodji Seketeli <dodji@redhat.com>
28856
28857 PR debug/47510
28858 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
28859 (lookup_type_die_strip_naming_typedef): ... here.
28860 (get_context_die): Use it.
28861 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
28862 the anonymous struct named by the naming typedef.
28863
28864 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
28865
28866 PR target/48154
28867 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
28868 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
28869
28870 2011-03-16 Jeff Law <law@redhat.com>
28871
28872 * tree-vrp.c (identify_jump_threads): Slightly simplify type
28873 check for operands of conditional. Allow type to be a pointer.
28874
28875 2011-03-16 Richard Guenther <rguenther@suse.de>
28876
28877 PR tree-optimization/48149
28878 * fold-const.c (fold_binary_loc): Fold
28879 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
28880
28881 2011-03-16 Richard Guenther <rguenther@suse.de>
28882
28883 PR tree-optimization/26134
28884 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
28885 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
28886 (non_rewritable_mem_ref_base): Handle complex type component
28887 accesses, constrain offsets for vector and complex extracts
28888 more properly.
28889
28890 2011-03-16 Richard Guenther <rguenther@suse.de>
28891
28892 PR tree-optimization/48146
28893 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
28894 operands avoiding the need for renaming.
28895
28896 2011-03-16 Richard Guenther <rguenther@suse.de>
28897
28898 * gimple-fold.c (maybe_fold_reference): Open-code relevant
28899 constant folding. Move MEM_REF canonicalization first.
28900 Rely on fold_const_aggregate_ref for initializer folding.
28901 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
28902
28903 2011-03-16 Jakub Jelinek <jakub@redhat.com>
28904
28905 PR middle-end/48136
28906 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
28907 arg0/arg1 or their arguments are always fold converted to matching
28908 types.
28909
28910 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
28911 to nargs.
28912
28913 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28914
28915 PR lto/46944
28916 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
28917 Handle in-tree gold.
28918 (ld_vers): Extract binutils version for gold.
28919 (gcc_cv_ld_hidden): Handle gold here.
28920 (gcc_cv_lto_plugin): Determine level of linker plugin support.
28921 * configure: Regenerate.
28922 * config.in: Regenerate.
28923 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
28924 -fuse-linker-plugin otherwise.
28925 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
28926 (LINK_COMMAND_SPEC): Use it.
28927 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
28928
28929 2011-03-16 Jakub Jelinek <jakub@redhat.com>
28930
28931 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
28932 * calls.c: Remove debug.h include.
28933 (emit_call_1): Don't call virtual_call_token debug hook.
28934 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
28935 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
28936 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
28937 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
28938 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
28939 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
28940 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
28941 dwarf2out_virtual_call): Remove.
28942 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
28943 copy_call_info and virtual_call hooks.
28944 (dwarf2out_init): Don't initialize vcall_insn_table,
28945 debug_dcall_section and debug_vcall_section.
28946 (prune_unused_types): Don't mark nodes from dcall_table.
28947 (dwarf2out_finish): Don't output dcall or vcall tables.
28948 * final.c (final_scan_insn): Don't call direct_call or
28949 virtual_call debug hooks.
28950 * debug.h (struct gcc_debug_hooks): Remove direct_call,
28951 virtual_call_token, copy_call_info and virtual_call hooks.
28952 (debug_nothing_uid): Remove prototype.
28953 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
28954 copy_call_info and virtual_call hooks.
28955 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
28956 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
28957 * debug.c (do_nothing_debug_hooks): Likewise.
28958 (debug_nothing_uid): Remove.
28959 * doc/invoke.texi (-fenable-icf-debug): Remove.
28960 * common.opt (-fenable-icf-debug): Likewise.
28961
28962 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
28963 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
28964 call's MEM. Handle functions returning aggregate through a hidden
28965 first pointer. For virtual calls add clobbered pc to call arguments
28966 chain.
28967 * dwarf2out.c (gen_subprogram_die): Emit
28968 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
28969 can't be emitted.
28970
28971 PR debug/45882
28972 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
28973 * rtl.h (ENTRY_VALUE_EXP): Define.
28974 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
28975 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
28976 * print-rtl.c (print_rtx): Likewise.
28977 * gengtype.c (adjust_field_rtx_def): Likewise.
28978 * var-tracking.c (vt_add_function_parameter): Adjust
28979 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
28980 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
28981 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
28982 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
28983 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
28984
28985 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
28986 Call var_location debug hook even on CALL_INSNs.
28987 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
28988 * rtl.def (ENTRY_VALUE): New.
28989 * dwarf2out.c: Include cfglayout.h.
28990 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
28991 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
28992 (struct call_arg_loc_node): New type.
28993 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
28994 tail_call_site_count): New variables.
28995 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
28996 DW_TAG_GNU_call_site_parameter.
28997 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
28998 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
28999 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
29000 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
29001 and DW_AT_GNU_all_source_call_sites.
29002 (mem_loc_descriptor): Handle ENTRY_VALUE.
29003 (add_src_coords_attributes): Don't add enything if
29004 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
29005 (dwarf2out_abstract_function): Save and clear call_arg_location,
29006 call_site_count and tail_call_site_count around dwarf2out_decl call.
29007 (gen_call_site_die): New function.
29008 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
29009 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
29010 (dwarf2out_function_decl): Clear call_arg_locations,
29011 call_arg_loc_last, set call_site_count and tail_call_site_count
29012 to -1 and free block_map.
29013 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
29014 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
29015 followed by any real instructions.
29016 (dwarf2out_begin_function): Set call_site_count and
29017 tail_call_site_count to 0.
29018 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
29019 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
29020 attempt to force a DIE for it and worst case remove the attribute.
29021 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
29022 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
29023 the decl itself.
29024 * var-tracking.c: Include tm_p.h.
29025 (vt_stack_adjustments): For calls call note_register_arguments.
29026 (argument_reg_set): New variable.
29027 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
29028 ensure the VALUE is resolved.
29029 (call_arguments): New variable.
29030 (prepare_call_arguments): New function.
29031 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
29032 (struct expand_loc_callback_data): Add ignore_cur_loc field.
29033 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
29034 always use the best expression.
29035 (vt_expand_loc): Add ignore_cur_loc argument.
29036 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
29037 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
29038 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
29039 note for all calls.
29040 (vt_add_function_parameter): Use cselib_lookup_from_insn.
29041 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
29042 argument. Don't call cselib_preserve_only_values and
29043 cselib_reset_table.
29044 (note_register_arguments): New function.
29045 (vt_initialize): Compute argument_reg_set. Call
29046 vt_add_function_parameters before processing basic blocks instead of
29047 afterwards. For calls call prepare_call_arguments before calling
29048 cselib_process_insn.
29049 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
29050 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
29051 (var-tracking.o): Depend on $(TM_P_H).
29052 * cfglayout.h (insn_scope): New prototype.
29053 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
29054 * cfglayout.c (insn_scope): No longer static.
29055 * insn-notes.def (CALL_ARG_LOCATION): New.
29056 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
29057 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
29058 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
29059 nothing for DECL_EXTERNAL BLOCK_VARS.
29060
29061 2011-03-16 Alan Modra <amodra@gmail.com>
29062
29063 PR target/45844
29064 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
29065 create invalid offset address for vsx splat insn.
29066 * config/rs6000/predicates.md (splat_input_operand): New.
29067 * config/rs6000/vsx.md (vsx_splat_*): Use it.
29068
29069 2011-03-15 Xinliang David Li <davidxl@google.com>
29070
29071 PR c/47837
29072 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
29073 (normalize_preds): New function.
29074 (is_use_properly_guarded): Normalize def predicates.
29075
29076 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29077
29078 PR target/46788
29079 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
29080 in the output template.
29081
29082 2011-03-15 Richard Guenther <rguenther@suse.de>
29083
29084 PR middle-end/47650
29085 * tree-pretty-print.c (dump_function_declaration): Properly
29086 dump unprototyped and varargs function types.
29087
29088 2011-03-15 Richard Guenther <rguenther@suse.de>
29089
29090 PR tree-optimization/13954
29091 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
29092 and friends.
29093
29094 2011-03-15 Richard Guenther <rguenther@suse.de>
29095
29096 PR tree-optimization/48037
29097 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
29098 selects into BIT_FIELD_REFs.
29099 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
29100 vector select.
29101
29102 2011-03-15 Jakub Jelinek <jakub@redhat.com>
29103
29104 PR tree-optimization/48129
29105 * builtins.c (fold_builtin_snprintf): Convert to type of
29106 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
29107 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
29108
29109 2011-03-15 Richard Guenther <rguenther@suse.de>
29110
29111 PR tree-optimization/41490
29112 * tree-ssa-dce.c (propagate_necessity): Handle returns without
29113 value but with VUSE.
29114 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
29115 return statements.
29116 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
29117 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
29118 * tree-tailcall.c (find_tail_calls): Ignore returns.
29119
29120 2011-03-15 Richard Guenther <rguenther@suse.de>
29121
29122 PR middle-end/48031
29123 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
29124 or variable-indexed array accesses when in gimple form.
29125
29126 2011-03-15 Richard Guenther <rguenther@suse.de>
29127
29128 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
29129
29130 2011-03-15 Alan Modra <amodra@gmail.com>
29131
29132 PR target/48032
29133 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
29134 presume symbol_refs without a symbol_ref_decl are suitably
29135 aligned, nor other trees we may see here. Handle anchor symbols.
29136 (legitimate_constant_pool_address_p): Comment. Add mode param.
29137 Check cmodel=medium addresses. Adjust all calls.
29138 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
29139 creating cmodel=medium optimized access to locals.
29140 * config/rs6000/constraints.md (R): Pass QImode to
29141 legitimate_constant_pool_address_p.
29142 * config/rs6000/predicates.md (input_operand): Pass mode to
29143 legitimate_constant_pool_address_p.
29144 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
29145 Update prototype.
29146
29147 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
29148
29149 PR target/48053
29150 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
29151 64-bit constants being loaded into registers other than GPRs such
29152 as loading 0 into a VSX register.
29153
29154 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29155
29156 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
29157
29158 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29159
29160 PR middle-end/47917
29161 * builtins.c (fold_builtin_snprintf): New function.
29162 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
29163 (fold_builtin_4): Likewise.
29164
29165 PR middle-end/38878
29166 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
29167 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
29168 and C - X == X also strip nops from +/-/p+ operand.
29169 When optimizing -X == C, fold C to arg0's type.
29170
29171 PR debug/47946
29172 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
29173 emit it as add_AT_int instead of add_AT_unsigned.
29174
29175 2011-03-14 Tom Tromey <tromey@redhat.com>
29176
29177 * unwind-dw2.c: Include sys/sdt.h if it exists.
29178 (_Unwind_DebugHook): Use STAP_PROBE2.
29179 * config.in, configure: Rebuild.
29180 * configure.ac: Check for sys/sdt.h.
29181
29182 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
29183
29184 * config/i386/i386.md (ROUND_FLOOR): New constant.
29185 (ROUND_CEIL): Ditto.
29186 (ROUND_TRUNC): Ditto.
29187 (ROUND_MXCSR): Ditto.
29188 (ROUND_NO_EXC): Ditto.
29189 (rint<mode>2): Use new defines instead of numerical constants.
29190 (floor<mode>2): Ditto.
29191 (ceil<mode>2): Ditto.
29192 (btrunc<mode>2): Ditto.
29193 * config/i386/i386-builtin-types.def: Define ROUND function type
29194 aliases.
29195 * config/i386/i386.c (enum ix86_builtins): Add
29196 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
29197 (struct builtin_description): Add
29198 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
29199 (ix86_expand_sse_round): New static function.
29200 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
29201 function types.
29202 (ix86_builtin_vectorized_function): Handle
29203 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
29204
29205 2011-03-14 Tom Tromey <tromey@redhat.com>
29206
29207 * c-parser.c (c_parser_asm_string_literal): Clear
29208 warn_overlength_strings.
29209
29210 2011-03-14 Tom Tromey <tromey@redhat.com>
29211
29212 * c-parser.c (disable_extension_diagnostics): Save
29213 warn_overlength_strings.
29214 (restore_extension_diagnostics): Restore warn_overlength_strings.
29215
29216 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29217
29218 * BASE-VER: Change to 4.7.0.
29219
29220 2011-03-14 Richard Guenther <rguenther@suse.de>
29221
29222 PR middle-end/48098
29223 * tree.c (build_vector_from_val): Adjust assert to requirements
29224 and reality.
29225
29226 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29227
29228 PR bootstrap/48102
29229 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
29230
29231 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
29232
29233 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
29234 terms of target_flags_explicit. Adjust copyright year.
29235
29236 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
29237 * config/rs6000/t-freebsd: New file. Add override for
29238 LIB2FUNCS_EXTRA.
29239
29240 2011-03-13 Chris Demetriou <cgd@google.com>
29241
29242 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
29243 (-fno-diagnostics-show-option): this, to reflect current default.
29244 (-Werror=): Update text about -fno-diagnostics-show-option.
29245
29246 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
29247
29248 PR target/48053
29249 * config/rs6000/predicates.md (easy_vector_constant_add_self,
29250 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
29251 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
29252 mode is not V2DImode or V2DFmode.
29253 (vspltis_constant): Do not handle V2DImode and V2DFmode.
29254 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
29255 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
29256 registers to 0.
29257 (movdi_internal64): Likewise.
29258
29259 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
29260
29261 PR tree-optimization/47127
29262 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
29263 parameter.
29264 (set_cloog_options): Same.
29265 (scop_to_clast): Same.
29266 (print_clast_stmt): Do not call cloog_state_malloc and
29267 cloog_state_free.
29268 (print_generated_program): Same.
29269 (gloog): Same.
29270 * graphite-clast-to-gimple.h (cloog_state): Declared.
29271 (scop_to_clast): Adjust declaration.
29272 * graphite.c (cloog_state): Defined here.
29273 (graphite_initialize): Call cloog_state_malloc.
29274 (graphite_finalize): Call cloog_state_free.
29275
29276 2011-03-11 Jason Merrill <jason@redhat.com>
29277
29278 * attribs.c (lookup_attribute_spec): Take const_tree.
29279 * tree.h: Adjust.
29280
29281 2011-03-11 Joseph Myers <joseph@codesourcery.com>
29282
29283 * config/sparc/sparc.c (sparc_option_override): Use
29284 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
29285
29286 2011-03-11 Richard Guenther <rguenther@suse.de>
29287
29288 PR tree-optimization/48067
29289 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
29290 multiplication result will be only used once on the target
29291 stmt.
29292
29293 2011-03-11 Richard Guenther <rguenther@suse.de>
29294
29295 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
29296
29297 2011-03-11 Richard Guenther <rguenther@suse.de>
29298
29299 PR lto/48073
29300 * tree.c (find_decls_types_r): Do not walk types only reachable
29301 from IDENTIFIER_NODEs.
29302
29303 2011-03-11 Jakub Jelinek <jakub@redhat.com>
29304
29305 PR middle-end/48044
29306 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
29307 all vnode->force_output nodes as needed.
29308
29309 2011-03-11 Jason Merrill <jason@redhat.com>
29310
29311 PR c++/48069
29312 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
29313 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
29314
29315 2011-03-11 Martin Jambor <mjambor@suse.cz>
29316
29317 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
29318 cgraph_node.
29319
29320 2011-03-11 Jakub Jelinek <jakub@redhat.com>
29321
29322 PR tree-optimization/48063
29323 * ipa-inline.c (cgraph_decide_inlining): Don't try to
29324 inline functions called once if !tree_can_inline_p (node->callers).
29325
29326 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
29327
29328 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
29329 extra_objs.
29330 * config/score/score3.c: Delete.
29331 * config/score/score3.h: Delete.
29332 * config/score/mul-div.S: Delete.
29333 * config/score/sfp-machine.h: Add new file.
29334 * config/score/constraints.md: Add new file.
29335 * config/score/t-score-softfp: Add new file.
29336 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
29337 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
29338 (score7_extra_constraint): Delete.
29339 (score7_option_override): Remove unused code.
29340 * config/score/score.c: Remove score3 and score5 define and code.
29341 * config/score/score.h: Remove score3 and score5 define and code.
29342 * config/score/score.md: Remove score3 template and unusual insn.
29343 * config/score/score.opt: Remove score3 and score5 options.
29344
29345 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29346
29347 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
29348 when _HPUX_SOURCE is defined.
29349 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
29350
29351 2011-03-10 Jason Merrill <jason@redhat.com>
29352
29353 PR c++/48029
29354 * stor-layout.c (layout_type): Don't set structural equality
29355 on arrays of incomplete type.
29356 * tree.c (type_hash_eq): Handle comparing them properly.
29357
29358 2011-03-10 Jakub Jelinek <jakub@redhat.com>
29359
29360 PR debug/48043
29361 * config/s390/s390.c (s390_delegitimize_address): Make sure the
29362 result mode matches original rtl mode.
29363
29364 2011-03-10 Nick Clifton <nickc@redhat.com>
29365
29366 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
29367 (andsi3, andsi3_flags): Fix timings for three operand alternative.
29368
29369 2011-03-09 Jakub Jelinek <jakub@redhat.com>
29370
29371 PR rtl-optimization/47866
29372 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
29373 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
29374 if target wasn't scalar.
29375 * function.c (assign_stack_temp_for_type): Assert that neither
29376 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
29377 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
29378 macro.
29379 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
29380
29381 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29382
29383 * config/s390/s390-protos.h (s390_label_align): New prototype.
29384 * config/s390/s390.c (s390_label_align): New function.
29385 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
29386
29387 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
29388
29389 PR target/47755
29390 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
29391 V2DI/V2DF constants. Only all 0's or all 1's are easy.
29392 (output_vec_const_move): Ditto.
29393
29394 2011-03-08 Anatoly Sokolov <aesok@post.ru>
29395
29396 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
29397 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
29398 * config/mips/mips.c (mips_preferred_reload_class): Make static.
29399 Change 'rclass' argument and result type to reg_class_t.
29400 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29401
29402 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
29403
29404 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
29405 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
29406 (TARGET_MEMORY_MOVE_COST): Define.
29407 (avr_register_move_cost, avr_memory_move_cost): New Functions.
29408
29409 2011-03-08 Jakub Jelinek <jakub@redhat.com>
29410
29411 PR debug/47881
29412 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
29413 removed anything.
29414
29415 PR tree-optimization/48022
29416 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
29417 for EQ/NE_EXPR.
29418
29419 2011-03-07 Jakub Jelinek <jakub@redhat.com>
29420
29421 PR debug/47991
29422 * var-tracking.c (find_use_val): Return NULL for
29423 cui->sets && cui->store_p BLKmode MEMs.
29424
29425 2011-03-07 Anatoly Sokolov <aesok@post.ru>
29426
29427 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
29428 Remove.
29429 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
29430 xstormy16_print_operand_address): Remove.
29431 * config/stormy16/stormy16.c (xstormy16_print_operand,
29432 xstormy16_print_operand_address): Make static.
29433 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
29434
29435 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
29436
29437 PR target/47862
29438 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
29439 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
29440 before definition.
29441
29442 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
29443
29444 PR bootstrap/48000
29445 * cfgloopmanip.c (fix_bb_placements): Return immediately
29446 if FROM is BASE_LOOP's header.
29447
29448 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
29449
29450 * gimplify.c (gimplify_function_tree): Fix building calls
29451 to __builtin_return_address.
29452
29453 2011-03-07 Alan Modra <amodra@gmail.com>
29454
29455 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
29456 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
29457 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
29458 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
29459 return_mode args.
29460 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
29461 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
29462 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
29463 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
29464 * config/rs6000/rs6000.c
29465 (rs6000_elf_end_indicate_exec_stack): Rename to..
29466 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
29467 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
29468 (rs6000_file_start): ..here.
29469 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
29470 file scope variables.
29471 (call_ABI_of_interest): New function.
29472 (init_cumulative_args): Set above vars when function return value
29473 is a float, vector, or small struct.
29474 (rs6000_function_arg_advance_1): Likewise for function args.
29475 (rs6000_va_start): Set rs6000_passes_float if variable arg function
29476 references float args.
29477
29478 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
29479
29480 * doc/cfg.texi: Remove "See" before @ref.
29481 * doc/invoke.texi: Likewise.
29482
29483 2011-03-05 Jason Merrill <jason@redhat.com>
29484
29485 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
29486
29487 2011-03-05 Anthony Green <green@moxielogic.com>
29488
29489 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
29490
29491 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
29492
29493 PR rtl-optimization/47899
29494 * cfgloopmanip.c (fix_bb_placements): Fix first argument
29495 to flow_loop_nested_p when moving the loop upward.
29496
29497 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
29498
29499 PR target/47719
29500 * arm.md (movhi_insn_arch4): Accept any immediate constant.
29501
29502 2011-03-05 Jakub Jelinek <jakub@redhat.com>
29503
29504 PR tree-optimization/47967
29505 * ipa-cp.c (build_const_val): Return NULL instead of creating
29506 VIEW_CONVERT_EXPR for mismatching sizes.
29507 (ipcp_create_replace_map): Return NULL if build_const_val failed.
29508 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
29509 give up on versioning.
29510
29511 2011-03-05 Alan Modra <amodra@gmail.com>
29512
29513 PR target/47986
29514 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
29515 full cmodel medium/large lo_sum + high addresses.
29516
29517 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29518
29519 * config/s390/s390.c (s390_decompose_address): Reject non-literal
29520 pool references in UNSPEC_LTREL_OFFSET.
29521
29522 2011-03-04 Jan Hubicka <jh@suse.cz>
29523
29524 PR lto/47497
29525 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
29526 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
29527 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
29528 Add node pointers.
29529 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
29530 cgraph_add_thunk): Add node pointers.
29531 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
29532 associated to right node.
29533 (input_node): Update use of cgraph_same_body_alias
29534 and cgraph_add_thunk.
29535
29536 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
29537
29538 * config/i386/i386.opt (mprefer-avx128): New flag.
29539 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
29540 modes when the flag -mprefer-avx128 is on.
29541
29542 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
29543
29544 * dwarf2out.c (compare_loc_operands): Fix address handling.
29545
29546 2011-03-04 Alan Modra <amodra@gmail.com>
29547
29548 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
29549
29550 2011-03-04 Richard Guenther <rguenther@suse.de>
29551
29552 PR middle-end/47968
29553 * expmed.c (extract_bit_field_1): Prefer vector modes that
29554 vec_extract patterns can handle.
29555
29556 2011-03-04 Richard Guenther <rguenther@suse.de>
29557
29558 PR middle-end/47975
29559 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
29560
29561 2011-03-04 Richard Henderson <rth@redhat.com>
29562
29563 * explow.c (emit_stack_save): Remove 'after' parameter.
29564 (emit_stack_restore): Likewise.
29565 * expr.h: Update to match.
29566 * builtins.c, calls.c, stmt.c: Likewise.
29567 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
29568 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
29569 * function.c (expand_function_end): Insert the emit_stack_save
29570 sequence before parm_birth_insn instead of after.
29571
29572 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
29573
29574 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
29575 (ssse3_pmaddubsw128): Ditto.
29576 (ssse3_pmaddubsw): Ditto.
29577
29578 2011-03-03 Steve Ellcey <sje@cup.hp.com>
29579
29580 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
29581
29582 2011-03-03 Jakub Jelinek <jakub@redhat.com>
29583
29584 PR c/47963
29585 * gimplify.c (omp_add_variable): Only call omp_notice_variable
29586 on TYPE_SIZE_UNIT if it is a DECL.
29587
29588 PR debug/47283
29589 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
29590 first operand is not is_gimple_mem_ref_addr, try to fold it.
29591 If the operand still isn't is_gimple_mem_ref_addr, clear
29592 MEM_EXPR on op0.
29593
29594 2011-03-03 Richard Guenther <rguenther@suse.de>
29595
29596 PR middle-end/47283
29597 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
29598 match comment.
29599 (refs_may_alias_p_1): For release branches return true if
29600 we are confused by our input.
29601
29602 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29603
29604 * config/s390/s390.c (s390_function_value): Rename to ...
29605 (s390_function_and_libcall_value): ... this.
29606 (s390_function_value): New function.
29607 (s390_libcall_value): New function.
29608 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
29609 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
29610 target macro definitions.
29611 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
29612
29613 2011-03-02 Joseph Myers <joseph@codesourcery.com>
29614
29615 * config/i386/freebsd64.h (CC1_SPEC): Define.
29616 * config/i386/linux64.h (CC1_SPEC): Define.
29617 * config/i386/x86-64.h (CC1_SPEC): Don't define.
29618
29619 2011-03-02 Anatoly Sokolov <aesok@post.ru>
29620
29621 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
29622 Remove.
29623 * config/stormy16/stormy16.c: Include reload.h.
29624 (xstormy16_memory_move_cost): New function.
29625 (TARGET_MEMORY_MOVE_COST): Define.
29626
29627 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
29628
29629 PR rtl-optimization/47925
29630 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
29631 with side effects. Remove the more-specific check for volatile asms.
29632
29633 2011-03-02 Alan Modra <amodra@gmail.com>
29634
29635 PR target/47935
29636 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
29637 toc relative addresses for valid offsets.
29638
29639 2011-03-01 Richard Guenther <rguenther@suse.de>
29640
29641 PR tree-optimization/47890
29642 * tree-vect-loop.c (get_initial_def_for_induction): Set
29643 related stmt properly.
29644
29645 2011-03-01 Richard Guenther <rguenther@suse.de>
29646
29647 PR lto/47924
29648 * lto-streamer.c (lto_record_common_node): Also register
29649 the canonical type.
29650
29651 2011-03-01 Richard Guenther <rguenther@suse.de>
29652
29653 PR lto/46911
29654 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
29655 Do not stream DECL_ABSTRACT_ORIGIN.
29656 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
29657 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
29658 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29659 Do not stream DECL_ABSTRACT_ORIGIN.
29660 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
29661 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
29662
29663 2011-02-28 Anatoly Sokolov <aesok@post.ru>
29664
29665 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
29666 FUNCTION_VALUE_REGNO_P): Remove.
29667 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
29668 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
29669 Add 'outgoing' argument.
29670 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
29671 function.
29672 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29673 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29674
29675 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
29676
29677 PR debug/28047
29678 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
29679 (lookup_filename): Likewise.
29680 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
29681
29682 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
29683 Jakub Jelinek <jakub@redhat.com>
29684
29685 PR middle-end/47893
29686 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
29687 (assign_stack_local_1): Change last argument type to int.
29688 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
29689 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
29690 don't record padding space into frame_space_list nor use those areas.
29691 (assign_stack_local): Adjust caller.
29692 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
29693 of assign_stack_local, pass 0 as last argument.
29694 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
29695 callers.
29696
29697 2011-02-28 Jakub Jelinek <jakub@redhat.com>
29698
29699 PR debug/47283
29700 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
29701 Use target address_mode and pointer_mode hooks instead of hardcoded
29702 Pmode and ptr_mode. Handle some simple cases of extending if
29703 POINTERS_EXTEND_UNSIGNED < 0.
29704 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
29705 Call convert_debug_memory_address.
29706 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
29707 convert_debug_memory_address.
29708
29709 PR middle-end/46790
29710 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
29711 * configure: Regenerated.
29712 * config.in: Regenerated.
29713 * varasm.c (default_function_section): Return NULL
29714 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
29715
29716 2011-02-28 Martin Jambor <mjambor@suse.cz>
29717
29718 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
29719 the description to match the printed values.
29720
29721 2011-02-28 Richard Guenther <rguenther@suse.de>
29722
29723 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
29724 of the copied scope tree.
29725
29726 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29727
29728 * doc/extend.texi (Function Attributes): Avoid deeply (and
29729 wrongly) nested tables.
29730
29731 2011-02-27 Jakub Jelinek <jakub@redhat.com>
29732
29733 PR middle-end/47903
29734 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
29735 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
29736 r isn't op0 nor op1.
29737
29738 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
29739
29740 * config/avr/avr.md: Remove magic comment for emacs.
29741
29742 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
29743
29744 PR target/45261
29745 * config/avr/avr.c (avr_option_override): Use error on bad options.
29746 (avr_help): New function.
29747 (TARGET_HELP): Define.
29748
29749 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
29750
29751 PR target/42240
29752 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
29753 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
29754
29755 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
29756
29757 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
29758 (ARM Options): Ditto.
29759 (i386 and x86-64 Options): Ditto.
29760 (RX Options): Ditto.
29761 (SPARC Options): Ditto.
29762
29763 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
29764
29765 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
29766 FreeBSD 6 and later. Generally use cpu generic.
29767
29768 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
29769
29770 * doc/cpp.texi: Update copyright years.
29771
29772 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
29773
29774 PR target/46898
29775 * config/lm32/lm32.md (ashrsi3): Added needed variable.
29776
29777 2011-02-25 Jon Beniston <jon@beniston.com>
29778
29779 PR target/46898
29780 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
29781 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
29782 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
29783 (lm32_block_move_inline): Add type cast to remove warning.
29784 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
29785 (gen_int_relational): Move declarations to start of function.
29786
29787 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
29788
29789 PR tree-optimization/45470
29790 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
29791 can throw internally only.
29792 * tree-vect-stmts.c (vectorizable_call): Likewise.
29793
29794 2011-02-24 Anatoly Sokolov <aesok@post.ru>
29795
29796 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
29797 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29798 * config/stormy16/stormy16-protos.h
29799 (xstormy16_preferred_reload_class): Remove.
29800 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
29801 static. Change 'rclass' argument and return type to reg_class_t.
29802 (TARGET_PREFERRED_RELOAD_CLASS,
29803 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29804
29805 2011-02-24 Richard Guenther <rguenther@suse.de>
29806
29807 * lto-streamer-in.c (input_bb): Do not find referenced vars
29808 in debug statements.
29809
29810 2011-02-23 Jason Merrill <jason@redhat.com>
29811
29812 * common.opt (fabi-version): Document v5 and v6.
29813
29814 2011-02-23 Richard Guenther <rguenther@suse.de>
29815
29816 PR tree-optimization/47849
29817 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
29818
29819 2011-02-23 Jie Zhang <jie@codesourcery.com>
29820
29821 * opts-common.c (decode_cmdline_option): Print empty string
29822 argument as "" in decoded->orig_option_with_args_text.
29823 * gcc.c (execute): Print empty string argument as ""
29824 in the verbose output.
29825 (do_spec_1): Keep empty string argument.
29826
29827 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
29828
29829 * config.gcc: Declare score-* and crx-* obsolete.
29830
29831 2011-02-23 Jie Zhang <jie@codesourcery.com>
29832
29833 PR rtl-optimization/47763
29834 * web.c (web_main): Ignore naked clobber when replacing register.
29835
29836 2011-02-22 Anatoly Sokolov <aesok@post.ru>
29837
29838 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
29839 Remove.
29840
29841 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
29842
29843 PR doc/47848
29844 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
29845
29846 2011-02-22 Mike Stump <mikestump@comcast.net>
29847
29848 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
29849 assembler.
29850 * configure: Regenerate.
29851
29852 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
29853
29854 PR rtl-optimization/46002
29855 * ira-color.c (update_copy_costs): Change class intersection
29856 test to reg_class_contents[] test of 'hard_regno'.
29857
29858 2011-02-21 Joseph Myers <joseph@codesourcery.com>
29859
29860 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
29861 than Driver option.
29862 * config/hpux11.opt (mt): Likewise.
29863 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
29864 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
29865 * config/vax/elf.opt (mno-asm-pic): Likewise.
29866 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
29867
29868 2011-02-21 Mike Stump <mikestump@comcast.net>
29869
29870 PR target/47822
29871 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
29872 tree so we can get save the type.
29873 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
29874 for CFString instead of trying to use past the end of the builtins.
29875 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
29876 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
29877 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
29878 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
29879 Rename to darwin_builtin_cfstring.
29880 (darwin_init_cfstring_builtins): Return the built type.
29881
29882 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
29883
29884 PR target/47840
29885 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
29886 (_mm256_insert_epi64): Use _mm_insert_epi64.
29887
29888 2011-02-21 Anatoly Sokolov <aesok@post.ru>
29889
29890 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29891 * config/stormy16/stormy16-protos.h
29892 (xstormy16_mode_dependent_address_p): Remove.
29893 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
29894 Make static. Change return type to bool. Change argument type to
29895 const_rtx. Remove dead code.
29896 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29897
29898 2011-02-21 Richard Guenther <rguenther@suse.de>
29899
29900 PR lto/47820
29901 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
29902 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
29903 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
29904 TUs context.
29905 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29906 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
29907
29908 2011-02-20 Richard Guenther <rguenther@suse.de>
29909
29910 PR lto/47822
29911 * tree.c (free_lang_data_in_decl): Clean builtins from
29912 the TU decl BLOCK_VARS.
29913
29914 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
29915
29916 PR debug/47620
29917 PR debug/47630
29918 * haifa-sched.c (fix_tick_ready): Skip tick computation
29919 for debug insns.
29920
29921 2011-02-19 Richard Guenther <rguenther@suse.de>
29922
29923 PR lto/47647
29924 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
29925 Remove lazy BLOCK_VARS streaming.
29926 (lto_input_ts_block_tree_pointers): Likewise.
29927 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
29928
29929 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29930
29931 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
29932
29933 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29934
29935 * config/i386/biarch32.h, config/i386/mach.h,
29936 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
29937
29938 2011-02-19 Jakub Jelinek <jakub@redhat.com>
29939
29940 PR target/47800
29941 * config/i386/i386.md (peephole2 for shift and plus): Use
29942 operands[1] original mode in the first insn.
29943
29944 2011-02-18 Mike Stump <mikestump@comcast.net>
29945
29946 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
29947
29948 2011-02-18 Jan Hubicka <jh@suse.cz>
29949
29950 PR middle-end/47788
29951 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
29952 to zero when the function is not inlinable at all.
29953
29954 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29955
29956 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
29957 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29958 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
29959 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
29960 * config/pa/t-pa64: Likewise.
29961 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
29962
29963 2011-02-18 Jakub Jelinek <jakub@redhat.com>
29964
29965 PR driver/47787
29966 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
29967
29968 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29969
29970 PR target/47792
29971 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
29972
29973 2011-02-18 Anatoly Sokolov <aesok@post.ru>
29974
29975 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
29976 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
29977 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
29978 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
29979 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
29980 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
29981 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
29982 m32r_load_postinc_p, m32r_store_preinc_predec_p,
29983 m32r_legitimate_address_p): New functions.
29984 * config/m32r/constraints.md (constraint "S"): Don't use
29985 STORE_PREINC_PREDEC_P.
29986 (constraint "U"): Don't use LOAD_POSTINC_P.
29987
29988 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
29989
29990 PR rtl-optimization/46178
29991 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
29992 compute ira_hard_regno_cover_class[].
29993
29994 2011-02-18 Richard Guenther <rguenther@suse.de>
29995
29996 PR lto/47798
29997 * lto-streamer.h (lto_global_var_decls): Declare.
29998 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
29999 statics for global var processing.
30000
30001 2011-02-18 Richard Guenther <rguenther@suse.de>
30002
30003 PR tree-optimization/47737
30004 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
30005 edge dominance check.
30006
30007 2011-02-18 Jakub Jelinek <jakub@redhat.com>
30008
30009 PR debug/47780
30010 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
30011 avoid invalid rtx sharing.
30012
30013 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
30014
30015 * doc/cpp.texi (Obsolete Features): Add background on the
30016 origin of assertions.
30017
30018 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
30019
30020 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
30021 objc_abi == 2.
30022 * config/darwin.c (output_objc_section_asm_op): Added support for
30023 ABI v1 and v2.
30024 (is_objc_metadata): New.
30025 (darwin_objc2_section): New.
30026 (darwin_objc1_section): New.
30027 (machopic_select_section): Added support for ABI v1 and v2.
30028 (darwin_emit_objc_zeroed): New.
30029 (darwin_output_aligned_bss): Detect objc metadata and treat it
30030 appropriately.
30031 (darwin_asm_output_aligned_decl_common): Same.
30032 (darwin_asm_output_aligned_decl_local): Same.
30033 * config/darwin-sections.def: Updated for ABI v1 and v2.
30034 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
30035 compiling Objective-C code for the NeXT runtime, default to using
30036 ABI version 0 for 32-bit, and version 2 for 64-bit.
30037
30038 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30039
30040 * common.opt (optimize_fast): New Variable.
30041 * opts.c (default_options_optimization): Use opts->x_optimize_fast
30042 instead of local variable ofast.
30043
30044 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
30045
30046 * doc/invoke.texi (fobjc-abi-version): Documented.
30047 (fobjc-nilcheck): Documented.
30048 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
30049 version.
30050
30051 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30052
30053 PR driver/47390
30054 * common.opt (export-dynamic): New Driver option.
30055 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
30056
30057 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30058
30059 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
30060
30061 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
30062 Jan Hubicka <jh@suse.cz>
30063
30064 PR debug/47106
30065 PR debug/47402
30066 * cfgexpand.c (account_used_vars_for_block): Remove.
30067 (estimated_stack_frame_size): Use referenced vars.
30068 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
30069 that were referenced in the original function. Test src_fn
30070 rather than cfun. Drop redundant get_var_ann.
30071 (setup_one_parameter): Drop redundant get_var_ann.
30072 (declare_return_variable): Likewise.
30073 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
30074 (copy_arguments_for_versioning): Drop redundant get_var_ann.
30075 * ipa-inline.c (compute_inline_parameters): Do not compute
30076 disregard_inline_limits here.
30077 (compute_inlinable_for_current, pass_inlinable): New.
30078 (pass_inline_parameters): Require PROP_referenced_vars.
30079 * cgraphunit.c (cgraph_process_new_functions): Don't run
30080 compute_inline_parameters explicitly unless function is in SSA form.
30081 (cgraph_analyze_function): Set .disregard_inline_limits.
30082 * tree-sra.c (convert_callers): Compute inliner parameters
30083 only for functions already in SSA form.
30084
30085 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30086
30087 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
30088 -mlittle-endian-data.
30089
30090 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30091
30092 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
30093 -mno-fpu, not -fpu and -no-fpu.
30094 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
30095 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
30096
30097 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
30098
30099 PR target/43653
30100 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
30101 input reload with PLUS RTX.
30102
30103 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30104
30105 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
30106 of InverseVar(MDMX).
30107
30108 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30109
30110 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
30111 --m4-340.
30112
30113 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30114
30115 * config/mn10300/mn10300.opt (mno-crt0): New.
30116
30117 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30118
30119 * config/m68k/uclinux.opt (static-libc): New Driver option.
30120
30121 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30122
30123 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
30124
30125 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30126
30127 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
30128 %{muser-extend-enabled}.
30129
30130 2011-02-16 Richard Guenther <rguenther@suse.de>
30131
30132 PR tree-optimization/47738
30133 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
30134 the TODO from tree_predictive_commoning.
30135
30136 2011-02-15 Jeff Law <law@redhat.com>
30137
30138 Revert
30139 2011-01-25 Jeff Law <law@redhat.com>
30140
30141 PR rtl-optimization/37273
30142 * ira-costs.c (scan_one_insn): Detect constants living in memory and
30143 handle them like argument loads from stack slots. Do not double
30144 count memory for memory constants and argument loads from stack slots.
30145
30146 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
30147
30148 PR target/47755
30149 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
30150 mode for vector constants. Remove code that checks for TImode.
30151
30152 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30153
30154 PR debug/47106
30155 PR debug/47402
30156 * cgraph.h (compute_inline_parameters): Return void.
30157 * ipa-inline.c (compute_inline_parameters): Adjust.
30158
30159 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30160
30161 PR debug/47106
30162 PR debug/47402
30163 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
30164 rather than decl.
30165 * cfgexpand.c (estimated_stack_frame_size): Likewise.
30166 * ipa-inline.c (compute_inline_parameters): Adjust.
30167
30168 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30169
30170 PR debug/47106
30171 PR debug/47402
30172 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
30173 Adjust all users. Pass FN to...
30174 * tree-flow-inline.h (first_referenced_var): ... this. Add
30175 fn argument.
30176 * ipa-struct-reorg.c: Adjust.
30177 * tree-dfa.c: Adjust.
30178 * tree-into-ssa.c: Adjust.
30179 * tree-sra.c: Adjust.
30180 * tree-ssa-alias.c: Adjust.
30181 * tree-ssa-live.c: Adjust.
30182 * tree-ssa.c: Adjust.
30183 * tree-ssanames.c: Adjust.
30184 * tree-tailcall.c: Adjust.
30185
30186 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30187
30188 PR debug/47106
30189 PR debug/47402
30190 * tree-flow.h (referenced_var_lookup): Add fn parameter.
30191 Adjust all callers.
30192 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
30193 * tree-flow-inline.h: Adjust.
30194 * gimple-pretty-print.c: Adjust.
30195 * tree-into-ssa.c: Adjust.
30196 * tree-ssa.c: Adjust.
30197 * cfgexpand.c: Adjust.
30198
30199 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30200
30201 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
30202 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30203 (EXTRA_CONSTRAINT): Delete.
30204 * config/iq2000/constraints.md: New file.
30205 * config/iq2000/iq2000.md: Include it.
30206 (define_insn ""): Delete.
30207 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
30208 unsupported constraint letters from patterns.
30209 (call_value, call_value_internal1): Likewise.
30210 (call_value_multiple_internal1): Likewise.
30211
30212 2011-02-15 Nick Clifton <nickc@redhat.com>
30213
30214 * config/mn10300/mn10300.c: Include tm-constrs.h.
30215 (struct liw_data): New data structure describing an LIW candidate
30216 instruction.
30217 (extract_bundle): Use struct liw_data. Allow small integer
30218 operands for some instructions.
30219 (check_liw_constraints): Use struct liw_data. Remove swapped
30220 parameter. Add comments describing the checks. Fix bug when
30221 assigning the source of liw1 to the source of liw2.
30222 (liw_candidate): Delete. Code moved into extract_bundle.
30223 (mn10300_bundle_liw): Use struct liw_data. Check constraints
30224 before swapping.
30225 * config/mn10300/predicates.md (liw_operand): New predicate.
30226 Allows registers and small integer constants.
30227 * config/mn10300/constraints.md (O): New constraint. Accetps
30228 integers in the range -8 to +7 inclusive.
30229 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
30230 for moving a small integer into a register. Give this alternative
30231 LIW attributes.
30232 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
30233 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
30234 using the J,K,L and M constraints,
30235 (liw): Remove SI mode on second operands to allow for HI and QI
30236 mode values.
30237 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
30238 instruction.
30239
30240 2011-02-15 Richard Guenther <rguenther@suse.de>
30241
30242 PR tree-optimization/47743
30243 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
30244 for a non-type-compatible VN lookup bail out.
30245
30246 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30247
30248 * config/fr30/constraints.md: New file.
30249 * config/fr30/fr30.md: Include it.
30250 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
30251 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30252 (EXTRA_CONSTRAINT): Delete.
30253
30254 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30255
30256 * config/frv/constraints.md: New file.
30257 * config/frv/predicates.md: Include it.
30258 * config/frv/frv.c (reg_class_from_letter): Delete.
30259 (frv_option_override): Don't initialize it.
30260 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
30261 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
30262 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
30263 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
30264 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
30265 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30266 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
30267 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
30268 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
30269 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
30270 (REG_CLASS_FROM_CONSTRAINT): Delete.
30271
30272 2011-02-15 Jakub Jelinek <jakub@redhat.com>
30273
30274 PR middle-end/47581
30275 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
30276 if frame size is 0 in a leaf function.
30277
30278 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30279
30280 PR pch/14940
30281 * config/alpha/host-osf.c: New file.
30282 * config/alpha/x-osf: New file.
30283 * config.host (alpha*-dec-osf*): Use it.
30284
30285 2011-02-14 Anatoly Sokolov <aesok@post.ru>
30286
30287 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30288 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
30289 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
30290 (rx_mode_dependent_address_p): ...this. Make static. Change argument
30291 type to const_rtx.
30292 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30293
30294 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30295
30296 * config/stormy16/constraints.md: New file.
30297 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
30298 Use satisfies_constraint_Q and satisfies_constraint_R.
30299 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
30300 Delete.
30301 (xstormy16_legitiamte_address_p): Declare.
30302 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
30303 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30304 (EXTRA_CONSTRAINT): Delete.
30305 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
30306 Un-staticize.
30307 (xstormy16_extra_constraint_p): Delete.
30308
30309 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
30310
30311 PR tree-optimization/46494
30312 * loop-unroll.c (split_edge_and_insert): Adjust comment.
30313 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
30314 (pass_rtl_loop_done): Add TODO_verify_flow.
30315 * fwprop.c (pass_rtl_fwprop): Likewise.
30316 * modulo-sched.c (pass_sms): Likewise.
30317 * tree-ssa-dom.c (pass_dominator): Likewise.
30318 * tree-ssa-loop-ch.c (pass_ch): Likewise.
30319 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
30320 (pass_tree_loop_done): Likewise.
30321 * tree-ssa-pre.c (execute_pre): Likewise.
30322 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
30323 * tree-ssa-sink.c (pass_sink_code): Likewise.
30324 * tree-vrp.c (pass_vrp): Likewise.
30325
30326 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30327
30328 * config/v850/constraints.md: New file.
30329 * config/v850/v850.md: Include it.
30330 * config/v850/predicates.md (reg_or_0_operand): Use
30331 satisfies_constraint_G.
30332 (special_symbolref_operand): Use satisfies_constraint_K.
30333 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
30334 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
30335 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
30336 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
30337 (EXTRA_CONSTRAINT): Delete.
30338 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
30339 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
30340 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
30341
30342 2011-02-14 Anatoly Sokolov <aesok@post.ru>
30343
30344 PR target/47696
30345 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
30346 description.
30347
30348 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30349
30350 * config/mcore/constraints.md: New file.
30351 * config/mcore/mcore.md: Include it.
30352 * config/mcore/mcore.c (reg_class_from_letter): Delete.
30353 * config/mcore/mcore.h (reg_class_from_letter): Delete.
30354 (REG_CLASS_FROM_LETTER): Delete.
30355 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
30356 insn_const_int_ok_for_constraint.
30357 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
30358 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
30359 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30360 (EXTRA_CONSTRAINT): Delete.
30361
30362 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30363
30364 PR ada/41929
30365 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
30366 (IS_SIGHANDLER): Define.
30367 (sparc64_is_sighandler): New function, split off from
30368 sparc64_fallback_frame_state.
30369 (sparc_is_sighandler): New function, split off from
30370 sparc_fallback_frame_state.
30371 (sparc64_fallback_frame_state): Merge with ...
30372 (sparc_fallback_frame_state): ... this into ...
30373 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
30374 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
30375 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
30376 stack instead of hardcoded offsets.
30377
30378 2011-02-14 Andriy Gapon <avg@freebsd.org>
30379
30380 PR target/45808
30381 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
30382
30383 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30384
30385 * configure: Regenerate.
30386
30387 2011-02-12 Joseph Myers <joseph@codesourcery.com>
30388
30389 PR driver/45731
30390 * gcc.c (asm_options): Correct spec matching --target-help.
30391
30392 2011-02-12 Martin Jambor <mjambor@suse.cz>
30393
30394 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
30395 to gimple call error.
30396
30397 2011-02-12 Mike Stump <mikestump@comcast.net>
30398
30399 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
30400 comments in backslash regions.
30401
30402 2011-02-12 Mike Stump <mikestump@comcast.net>
30403 Jakub Jelinek <jakub@redhat.com>
30404 Iain Sandoe <iains@gcc.gnu.org>
30405
30406 PR target/47324
30407 * dwarf2out.c (output_cfa_loc): When required, apply the
30408 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
30409 (output_loc_sequence): Likewise.
30410 (output_loc_operands_raw): Likewise.
30411 (output_loc_sequence_raw): Likewise.
30412 (output_cfa_loc): Likewise.
30413 (output_loc_list): Suppress register number adjustment when
30414 calling output_loc_sequence()
30415 (output_die): Likewise.
30416
30417 2011-02-12 Anatoly Sokolov <aesok@post.ru>
30418
30419 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
30420 Remove macros.
30421 * config/xtensa/xtensa.c (xtensa_register_move_cost,
30422 xtensa_memory_move_cost): New functions.
30423 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
30424
30425 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
30426
30427 PR lto/47225
30428 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
30429 in the current directory.
30430 * configure: Rebuilt.
30431
30432 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
30433
30434 * config/darwin.c (darwin_override_options): Add a hunk missed
30435 from the commit of r168571. Trim comment line lengths and
30436 correct indents of the preceding block.
30437
30438 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
30439
30440 * gcc.c (driver_handle_option): Concatenate the argument to -F with
30441 the switch.
30442
30443 2011-02-11 Joseph Myers <joseph@codesourcery.com>
30444
30445 * common.opt (nostartfiles): New Driver option.
30446
30447 2011-02-11 Xinliang David Li <davidxl@google.com>
30448
30449 PR tree-optimization/47707
30450 * tree-chrec.c (convert_affine_scev): Keep type precision.
30451
30452 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
30453
30454 PR tree-optimization/47420
30455 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
30456
30457 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
30458
30459 PR rtl-optimization/47614
30460 * rtl.h (check_for_inc_dec): Declare.
30461 * dse.c (check_for_inc_dec): Externalize...
30462 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
30463 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
30464
30465 2011-02-11 Joseph Myers <joseph@codesourcery.com>
30466
30467 PR driver/47678
30468 * gcc.c (main): Do not compile inputs if there were errors in
30469 option handling.
30470 * opts-common.c (read_cmdline_option): Check for wrong language
30471 after other error checks.
30472
30473 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
30474
30475 * cgraph.c: Fix comment typos.
30476 * cgraph.h: Likewise.
30477 * cgraphunit.c: Likewise.
30478 * ipa-cp.c: Likewise.
30479 * ipa-inline.c: Likewise.
30480 * ipa-prop.c: Likewise.
30481 * ipa-pure-const.c: Likewise.
30482 * ipa-ref.c: Likewise.
30483 * ipa-reference.c: Likewise.
30484
30485 2011-02-11 Jakub Jelinek <jakub@redhat.com>
30486
30487 PR debug/47684
30488 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
30489
30490 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30491
30492 PR testsuite/47400
30493 * doc/sourcebuild.texi (Require Support): Document
30494 dg-require-ascii-locale.
30495
30496 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
30497
30498 * doc/lto.texi (Write summary): Fix missing parentheses.
30499
30500 2011-02-10 DJ Delorie <dj@redhat.com>
30501
30502 * config/m32c/m32c.c (m32c_option_override): Disable
30503 -fcombine-stack-adjustments until flag value tracking and compare
30504 optimization can be rewritten.
30505
30506 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
30507
30508 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
30509 PROCESSOR_POWER7.
30510 (PROCESSOR_DEFAULT64): Likewise.
30511
30512 2011-02-10 Richard Henderson <rth@redhat.com>
30513
30514 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
30515 change from 2011-02-03.
30516 * config/rx/rx.c (flags_from_code): Likewise.
30517 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
30518 is valid, n/pz otherwise.
30519 (rx_select_cc_mode): Return CCmode if Y is not zero.
30520
30521 2011-02-10 Richard Guenther <rguenther@suse.de>
30522
30523 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
30524
30525 2011-02-10 Richard Guenther <rguenther@suse.de>
30526
30527 PR tree-optimization/47677
30528 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
30529
30530 2011-02-10 Jakub Jelinek <jakub@redhat.com>
30531
30532 PR target/47665
30533 * combine.c (make_compound_operation): Only change shifts into
30534 multiplication for SCALAR_INT_MODE_P.
30535
30536 2011-02-10 Jie Zhang <jie@codesourcery.com>
30537
30538 PR testsuite/47622
30539 Revert
30540 2011-02-05 Jie Zhang <jie@codesourcery.com>
30541 PR debug/42631
30542 * web.c (entry_register): Don't clobber the number of the
30543 first uninitialized reference in used[].
30544
30545 2011-02-09 Richard Guenther <rguenther@suse.de>
30546
30547 PR tree-optimization/47664
30548 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
30549 all edges again.
30550
30551 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
30552
30553 PR target/46481
30554 PR target/47032
30555 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
30556 PROCESSOR_POWER7.
30557 (PROCESSOR_DEFAULT64): Same.
30558 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
30559
30560 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30561
30562 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
30563
30564 2011-02-09 Martin Jambor <mjambor@suse.cz>
30565
30566 PR middle-end/45505
30567 * tree-sra.c (struct access): New flags grp_scalar_read and
30568 grp_scalar_write. Changed description of assignment read and write
30569 flags.
30570 (dump_access): Dump new flags, reorder all of them.
30571 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
30572 to detect multiple scalar reads.
30573 (analyze_access_subtree): Use the new scalar read write flags instead
30574 of the old flags. Adjusted comments.
30575
30576 2011-02-08 DJ Delorie <dj@redhat.com>
30577
30578 PR target/47548
30579 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
30580 patterns.
30581
30582 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30583
30584 * config/m68k/uclinux.opt: New.
30585 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
30586
30587 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30588
30589 * config/cris/elf.opt (sim): New Driver option.
30590
30591 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30592
30593 * config/xtensa/elf.opt: New.
30594 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
30595
30596 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30597
30598 * config/vax/elf.opt: New.
30599 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
30600
30601 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30602
30603 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
30604
30605 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30606
30607 * config/gnu-user.opt: New.
30608 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
30609 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
30610 *-*-uclinux*): Use gnu-user.opt.
30611
30612 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
30613
30614 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
30615 * config/i386/gnu.h (CPP_SPEC): Likewise.
30616
30617 2011-02-08 Ian Lance Taylor <iant@google.com>
30618
30619 * common.opt (fcx-limited-range): Add SetByCombined flag.
30620 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
30621 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
30622 (fassociative-math, freciprocal-math): Likewise.
30623 (funsafe-math-optimizations): Likewise.
30624 * opth-gen.awk: Handle SetByCombined.
30625 * optc-gen.awk: Likewise.
30626 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
30627 (set_unsafe_math_optimizations_flags): Likewise.
30628 * doc/options.texi (Option properties): Document SetByCombined.
30629
30630 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30631
30632 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
30633 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
30634 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
30635 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
30636 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
30637
30638 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
30639
30640 PR tree-optimization/46834
30641 PR tree-optimization/46994
30642 PR tree-optimization/46995
30643 * graphite-sese-to-poly.c (used_outside_reduction): New.
30644 (detect_commutative_reduction): Call used_outside_reduction.
30645 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
30646 translate_scalar_reduction_to_array only when at least one
30647 loop-phi/close-phi tuple has been detected.
30648
30649 2011-02-08 Richard Guenther <rguenther@suse.de>
30650
30651 PR middle-end/47639
30652 * tree-vect-generic.c (expand_vector_operations_1): Update
30653 stmts here ...
30654 (expand_vector_operations): ... not here. Cleanup EH info
30655 and the CFG if required.
30656
30657 2011-02-08 Richard Guenther <rguenther@suse.de>
30658
30659 PR tree-optimization/47641
30660 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
30661 require type compatibility.
30662
30663 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30664
30665 * gimple-low.c (lower_function_body): Don't remove the location of
30666 the return statement here.
30667 (lower_gimple_return): Do it here instead but only if the return
30668 statement is actually used twice.
30669
30670 2011-02-08 Richard Guenther <rguenther@suse.de>
30671
30672 PR tree-optimization/47632
30673 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
30674 unused up_to_stmt parameter, return whether cfg-cleanup is
30675 necessary, remove EH info properly.
30676 (forward_propagate_into_gimple_cond): Adjust caller.
30677 (forward_propagate_into_cond): Likewise.
30678 (forward_propagate_comparison): Likewise.
30679 (tree_ssa_forward_propagate_single_use_vars): Make
30680 forward_propagate_comparison case similar to the two others.
30681
30682 2011-02-08 Nick Clifton <nickc@redhat.com>
30683
30684 * config/mn10300/mn10300.opt (mliw): New command line option.
30685 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
30686 (liw_bundling): New automaton.
30687 (liw): New attribute.
30688 (liw_op): New attribute.
30689 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
30690 (movsi_internal): Add LIW attributes.
30691 (andsi3): Likewise.
30692 (iorsi3): Likewise.
30693 (xorsi3): Likewise.
30694 (addsi3): Separate register and immediate alternatives.
30695 Add LIW attributes.
30696 (subsi3): Likewise.
30697 (cmpsi): Likewise.
30698 (aslsi3): Likewise.
30699 (lshrsi3): Likewise.
30700 (ashrsi3): Likewise.
30701 (liw): New pattern.
30702 * config/mn10300/mn10300.c (liw_op_names): New
30703 (mn10300_print_operand): Handle 'W' operand descriptor.
30704 (extract_bundle): New function.
30705 (check_liw_constraints): New function.
30706 (liw_candidate): New function.
30707 (mn10300_bundle_liw): New function.
30708 (mn10300_reorg): New function.
30709 (TARGET_MACHINE_DEPENDENT_REORG): Define.
30710 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
30711 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
30712 __LIW__ or __NO_LIW__.
30713 * doc/invoke.texi: Describe the -mliw command line option.
30714
30715 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30716
30717 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
30718 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
30719 pthread_mutex_unlock): Remove.
30720 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
30721 * config/pa/t-pa64: Likewise.
30722 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
30723 shared libc if not linking against libpthread.
30724 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30725
30726 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
30727
30728 PR target/47558
30729 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
30730 on 10.6 and later to ensure that we always use the unwinder from
30731 the system. Only add -no_compact_unwind when tarteting darwin
30732 10.6 or later.
30733
30734 2011-02-07 Steve Ellcey <sje@cup.hp.com>
30735
30736 PR target/46997
30737 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
30738 (vec_interleave_lowv2sf): Ditto.
30739 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
30740 (vec_extract_oddv2sf): Ditto.
30741
30742 2011-02-07 Mike Stump <mikestump@comcast.net>
30743
30744 PR target/42333
30745 Add __ieee_divdc3 entry point.
30746 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
30747 entry point.
30748 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
30749 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
30750 * config/darwin.c (darwin_rename_builtins): Add.
30751 * config/darwin-protos.h (darwin_rename_builtins): Add.
30752
30753 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
30754
30755 PR target/47636
30756 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
30757 for the condition.
30758
30759 2011-02-07 Mike Stump <mikestump@comcast.net>
30760
30761 * config/darwin.opt (mmacosx-version-min): Update default OS version.
30762
30763 2011-02-07 Denis Chertykov <chertykov@gmail.com>
30764
30765 PR target/47534
30766 * config/avr/libgcc.S (exit): Move .endfunc
30767
30768 2011-02-07 Richard Guenther <rguenther@suse.de>
30769
30770 PR tree-optimization/47615
30771 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
30772 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
30773 (run_scc_vn): Initialize it.
30774 (visit_reference_op_load): Use it.
30775 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
30776
30777 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30778
30779 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
30780 DImode trapping arithmetic libfuncs.
30781
30782 2011-02-07 Richard Guenther <rguenther@suse.de>
30783
30784 PR tree-optimization/47621
30785 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
30786 two duplicates ...
30787 (execute_update_addresses_taken): ... here. Make it more
30788 conservative in what we accept.
30789
30790 2011-02-06 Joseph Myers <joseph@codesourcery.com>
30791
30792 * config/sparc/freebsd.h (ASM_SPEC): Define.
30793 * config/sparc/vxworks.h (ASM_SPEC): Define.
30794
30795 2011-02-06 Joseph Myers <joseph@codesourcery.com>
30796
30797 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30798
30799 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
30800
30801 * doc/invoke.texi: Remove reference to compiler internals from
30802 user documentation.
30803
30804 * reg-notes.def: Remove REG_VALUE_PROFILE.
30805 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
30806
30807 2011-02-05 Jakub Jelinek <jakub@redhat.com>
30808
30809 PR middle-end/47610
30810 * varasm.c (default_section_type_flags): If decl is NULL,
30811 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
30812
30813 2011-02-05 Jie Zhang <jie@codesourcery.com>
30814
30815 PR debug/42631
30816 * web.c (entry_register): Don't clobber the number of the
30817 first uninitialized reference in used[].
30818
30819 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
30820
30821 PR tree-optimization/46194
30822 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
30823 (build_classic_dist_vector_1): Do not represent classic distance
30824 vectors when the access functions are variating in different loops.
30825
30826 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30827
30828 * config/mips/iris6.opt: New.
30829 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
30830
30831 2011-02-04 Richard Henderson <rth@redhat.com>
30832 Steve Ellcey <sje@cup.hp.com>
30833
30834 PR target/46997
30835 * config/ia64/predicates.md (mux1_brcst_element): New.
30836 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
30837 * config/ia64/ia64.c (ia64_unpack_assemble): New.
30838 (ia64_unpack_sign): New.
30839 (ia64_expand_unpack): Rewrite using new routines.
30840 (ia64_expand_widen_sum): Ditto.
30841 (ia64_expand_dot_prod_v8qi): Ditto.
30842 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
30843 routines, add endian check.
30844 (pmpy2_even): Rename from pmpy2_r, add endian check.
30845 (pmpy2_odd): Rename from pmpy2_l, add endian check.
30846 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
30847 (vec_widen_smult_hi_v4hi): Ditto.
30848 (vec_widen_umult_lo_v4hi): Ditto.
30849 (vec_widen_umult_hi_v4hi): Ditto.
30850 (mulv2si3): Change endian checks.
30851 (sdot_prodv4hi): Rewrite with new calls.
30852 (udot_prodv4hi): New.
30853 (vec_pack_ssat_v4hi): Add endian check.
30854 (vec_pack_usat_v4hi): Ditto.
30855 (vec_pack_ssat_v2si): Ditto.
30856 (max1_even): Rename from max1_r, add endian check.
30857 (max1_odd): Rename from max1_l, add endian check.
30858 (*mux1_rev): Format change.
30859 (*mux1_mix): Ditto.
30860 (*mux1_shuf): Ditto.
30861 (*mux1_alt): Ditto.
30862 (*mux1_brcst_v8qi): Use new predicate.
30863 (vec_extract_evenv8qi): Remove endian check.
30864 (vec_extract_oddv8qi): Ditto.
30865 (vec_interleave_lowv4hi): Format change.
30866 (vec_interleave_highv4hi): Ditto.
30867 (mix2_even): Rename from mix2_r, add endian check.
30868 (mix2_odd): Rename from mux2_l, add endian check.
30869 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
30870 (vec_extract_evenodd_helper): Format change.
30871 (vec_extract_evenv4hi): Remove endian check.
30872 (vec_extract_oddv4hi): Remove endian check.
30873 (vec_interleave_lowv2si): Format change.
30874 (vec_interleave_highv2si): Format change.
30875 (vec_initv2si): Remove endian check.
30876 (vecinit_v2si): Add endian check.
30877 (reduc_splus_v2sf): Add endian check.
30878 (reduc_smax_v2sf): Ditto.
30879 (reduc_smin_v2sf): Ditto.
30880 (vec_initv2sf): Remove endian check.
30881 (fpack): Add endian check.
30882 (fswap): Add endian check.
30883 (vec_interleave_highv2sf): Add endian check.
30884 (vec_interleave_lowv2sf): Add endian check.
30885 (fmix_lr): Add endian check.
30886 (vec_setv2sf): Format change.
30887 (*vec_extractv2sf_0_be): Use shift to extract operand.
30888 (*vec_extractv2sf_1_be): New.
30889 (vec_pack_trunc_v4hi): Add endian check.
30890 (vec_pack_trunc_v2si): Format change.
30891
30892 2011-02-04 Jakub Jelinek <jakub@redhat.com>
30893
30894 PR inline-asm/23200
30895 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
30896 do bb, locus and block comparison and disallow loads if it is not set.
30897 (stmt_is_replaceable_p): New function.
30898 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
30899 callers.
30900 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
30901 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
30902 SSA_NAME_DEF_STMT.
30903 * tree-flow.h (stmt_is_replaceable_p): New prototype.
30904
30905 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30906
30907 * config/rs6000/xilinx.opt: New.
30908 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
30909
30910 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30911
30912 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
30913
30914 2011-02-03 Anatoly Sokolov <aesok@post.ru>
30915
30916 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
30917 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
30918 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
30919 secondary_reload_info, xtensa_secondary_reload): Remove.
30920 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
30921 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
30922 (xtensa_preferred_reload_class): Make static. Change return and
30923 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
30924 Use CONST_DOUBLE_P predicate.
30925 (xtensa_preferred_output_reload_class): New function.
30926 (xtensa_secondary_reload): Make static.
30927
30928 2011-02-03 Joseph Myers <joseph@codesourcery.com>
30929
30930 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
30931 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
30932 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
30933
30934 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30935
30936 PR middle-end/31490
30937 * output.h (SECTION_RELRO): Define.
30938 (SECTION_MACH_DEP): Adjust.
30939 (get_variable_section): New prototype.
30940 * varpool.c (varpool_finalize_named_section_flags): New function.
30941 (varpool_assemble_pending_decls): Call it.
30942 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
30943 * cgraphunit.c (cgraph_output_in_order): Call
30944 varpool_finalize_named_section_flags.
30945 * varasm.c (get_section): Allow section flags conflicts between
30946 relro and read-only sections if the section hasn't been declared yet.
30947 Set SECTION_OVERRIDE after diagnosing section type conflict.
30948 (get_variable_section): No longer static.
30949 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
30950 readonly sections that need relocations.
30951 (decl_readonly_section_1): New function.
30952 (decl_readonly_section): Use it.
30953
30954 Revert:
30955 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
30956 Steve Ellcey <sje@cup.hp.com>
30957
30958 PR middle-end/31490
30959 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
30960 if section attribute used.
30961
30962 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30963
30964 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
30965 * config/darwin.c (SECTION_NO_ANCHOR): Define.
30966 (darwin_init_sections): Remove assertion.
30967
30968 2011-02-03 Nick Clifton <nickc@redhat.com>
30969
30970 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
30971 lt and ge.
30972 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
30973 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
30974 instead of "n" and "pz".
30975 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
30976 CC_FLAG_S.
30977
30978 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30979
30980 PR target/47312
30981 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
30982 fma, expand FMA_EXPR as fma{,f,l} call.
30983
30984 PR lto/47274
30985 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
30986 copy them into a unsigned char variable and pass address of it to
30987 lto_output_data_stream.
30988
30989 PR target/47564
30990 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
30991 around backend_init_target and lang_dependent_init_target calls.
30992 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
30993 (verify_cgraph_node): Don't call set_cfun here. Use
30994 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
30995 Set error_found for incorrectly represented calls to thunks.
30996
30997 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
30998
30999 PR debug/43092
31000 PR rtl-optimization/43494
31001 * rtl.h (for_each_inc_dec_fn): New type.
31002 (for_each_inc_dec): Declare.
31003 * rtlanal.c (struct for_each_inc_dec_ops): New type.
31004 (for_each_inc_dec_find_inc_dec): New fn.
31005 (for_each_inc_dec_find_mem): New fn.
31006 (for_each_inc_dec): New fn.
31007 * dse.c (struct insn_size): Remove.
31008 (replace_inc_dec, replace_inc_dec_mem): Remove.
31009 (emit_inc_dec_insn_before): New fn.
31010 (check_for_inc_dec): Use it, along with for_each_inc_dec.
31011 (canon_address): Pass mem modes to cselib_lookup.
31012 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
31013 (cselib_lookup_from_insn): Likewise.
31014 (cselib_subst_to_values): Likewise.
31015 * cselib.c (find_slot_memmode): New var.
31016 (cselib_find_slot): New fn. Use it instead of
31017 htab_find_slot_with_hash everywhere.
31018 (entry_and_rtx_equal_p): Use find_slot_memmode.
31019 (autoinc_split): New fn.
31020 (rtx_equal_for_cselib_p): Rename and implement in terms of...
31021 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
31022 Deal with autoinc. Special-case recursion into MEMs.
31023 (cselib_hash_rtx): Likewise.
31024 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
31025 address and MEM modes.
31026 (cselib_subst_to_values): Add memmode, pass it on.
31027 Deal with autoinc.
31028 (cselib_lookup): Add memmode argument, pass it on.
31029 (cselib_lookup_from_insn): Add memmode.
31030 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
31031 (struct cselib_record_autoinc_data): New.
31032 (cselib_record_autoinc_cb): New fn.
31033 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
31034 mode to cselib_lookup. Reset autoinced REGs here instead of...
31035 (cselib_process_insn): ... here.
31036 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
31037 to cselib_lookup.
31038 (add_uses): Likewise, also to cselib_subst_to_values.
31039 (add_stores): Likewise.
31040 * sched-deps.c (add_insn_mem_dependence): Pass mode to
31041 cselib_subst_to_values.
31042 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
31043 * gcse.c (do_local_cprop): Adjusted.
31044 * postreload.c (reload_cse_simplify_set): Adjusted.
31045 (reload_cse_simplify_operands): Adjusted.
31046 * sel-sched-dump (debug_mem_addr_value): Pass mode.
31047
31048 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
31049
31050 PR tree-optimization/45122
31051 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
31052 unsafe assumptions when there's more than one loop exit.
31053
31054 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
31055
31056 PR target/47272
31057 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31058 Document using vector double with the load/store builtins, and
31059 that the load/store builtins always use Altivec instructions.
31060
31061 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
31062 to use altivec memory instructions, even on VSX.
31063 (vector_altivec_store_<mode>): Ditto.
31064
31065 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
31066 function.
31067
31068 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31069 V2DF, V2DI support to load/store overloaded builtins.
31070
31071 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
31072 altivec load/store builtins for V2DF/V2DI types.
31073
31074 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31075 set avoid indexed addresses on power6 if -maltivec.
31076 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
31077 vector_altivec_load/vector_altivec_store builtins.
31078 (altivec_expand_st_builtin): Ditto.
31079 (altivec_expand_builtin): Add VSX memory builtins.
31080 (rs6000_init_builtins): Add V2DI types to internal types.
31081 (altivec_init_builtins): Add support for V2DF/V2DI altivec
31082 load/store builtins.
31083 (rs6000_address_for_altivec): Insure memory address is appropriate
31084 for Altivec.
31085
31086 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
31087 vec_vsx_ld and vec_vsx_st.
31088 (vsx_store_<mode>): Ditto.
31089
31090 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
31091 variables to hold long long types for VSX vector memory builtins.
31092 (RS6000_BTI_unsigned_long_long): Ditto.
31093 (long_long_integer_type_internal_node): Ditti.
31094 (long_long_unsigned_type_internal_node): Ditti.
31095
31096 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
31097 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
31098 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
31099
31100 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
31101 short cuts.
31102 (vec_vsx_st): Ditto.
31103
31104 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31105
31106 * config/pa/pa-hpux10.opt: New.
31107 * config/hpux11.opt (pthread): New Driver option.
31108 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
31109 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
31110
31111 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31112
31113 * config/ia64/vms.opt: New.
31114 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
31115
31116 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
31117
31118 PR target/47580
31119 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
31120 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
31121 generator functions.
31122 (vsx_floatuns<VSi><mode>2): Ditto.
31123 (vsx_fix_trunc<mode><VSi>2): Ditto.
31124 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
31125
31126 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31127
31128 * config/i386/djgpp.opt (posix): New Driver option.
31129
31130 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
31131
31132 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
31133 Move to the unsupported targets list.
31134
31135 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
31136
31137 PR rtl-optimization/47525
31138 * df-scan.c: Update copyright years.
31139 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
31140 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
31141
31142 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31143
31144 * config/i386/sysv4.h (TARGET_VERSION): Remove.
31145 (SUBTARGET_RETURN_IN_MEMORY): Remove.
31146 (ASM_OUTPUT_ASCII): Remove.
31147 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
31148
31149 2011-02-02 Jeff Law <law@redhat.com>
31150
31151 PR middle-end/47543
31152 * reload.c (find_reloads_address): Handle reg+d address where both
31153 components are invalid by reloading the entire address.
31154
31155 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
31156 Richard Guenther <rguenther@suse.de>
31157
31158 PR tree-optimization/40979
31159 PR bootstrap/47044
31160 * passes.c (init_optimization_passes): After LIM call copy_prop
31161 and DCE to clean up.
31162 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
31163
31164 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
31165
31166 PR tree-optimization/47576
31167 PR tree-optimization/47555
31168 * doc/invoke.texi (scev-max-expr-complexity): Documented.
31169 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
31170 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
31171 * tree-scalar-evolution.c (follow_ssa_edge): Use
31172 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
31173
31174 2011-02-02 Richard Guenther <rguenther@suse.de>
31175
31176 PR tree-optimization/47566
31177 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
31178
31179 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
31180
31181 PR debug/47106
31182 PR debug/47402
31183 * tree-inline.c (declare_return_variable): Remove unused caller
31184 variable.
31185
31186 PR debug/47106
31187 PR debug/47402
31188 * tree-flow-inline.h (clear_is_used, is_used_p): New.
31189 * cfgexpand.c (account_used_vars_for_block): Use them.
31190 * tree-nrv.c (tree_nrv): Likewise.
31191 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
31192 (dump_scope_block): Likewise.
31193 (remove_unused_locals): Likewise.
31194
31195 PR debug/47106
31196 PR debug/47402
31197 * tree-inline.c (declare_return_variable): Add result decl to
31198 local decls only once.
31199 * gimple-low.c (record_vars_into): Mark newly-created variables
31200 as referenced.
31201
31202 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
31203
31204 PR debug/47498
31205 PR debug/47501
31206 PR debug/45136
31207 PR debug/45130
31208 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31209 debug insns.
31210 (no_real_insns_p, schedule_block, set_priorities): Drop special
31211 treatment of boundary debug insns.
31212 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31213 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
31214 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31215 (BOUNDARY_DEBUG_INSN_P): Likewise.
31216 (SCHEDULE_DEBUG_INSN_P): Likewise.
31217 * sched-rgn.c (init_ready_list): Drop special treatment of
31218 boundary debug insns.
31219 * final.c (rest_of_clean_state): Clear notes' BB.
31220
31221 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31222
31223 * config/openbsd.opt (assert=): New Driver option.
31224
31225 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31226
31227 * config/i386/nto.opt: New.
31228 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
31229
31230 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31231
31232 * config/i386/netware.opt: New.
31233 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
31234
31235 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31236
31237 * config/interix.opt (posix): New Driver option.
31238
31239 2011-02-01 DJ Delorie <dj@redhat.com>
31240
31241 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
31242
31243 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
31244 class for A0/A1.
31245
31246 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
31247
31248 PR tree-optimization/47561
31249 * toplev.c (process_options): Print the Graphite flags. Add
31250 flag_loop_flatten to the list of options requiring Graphite.
31251
31252 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31253
31254 * config/i386/cygming.opt (posix): New Driver option.
31255
31256 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31257
31258 * config/arm/vxworks.opt: New.
31259 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
31260
31261 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31262
31263 * config/alpha/elf.opt: New.
31264 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
31265 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
31266
31267 2011-02-01 Richard Guenther <rguenther@suse.de>
31268
31269 PR tree-optimization/47559
31270 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
31271 store-motion on references that can throw.
31272
31273 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
31274
31275 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
31276 * tree-pass.h (TDF_CSELIB): New macro.
31277 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
31278 cselib_lookup): Check for it rather than for TDF_DETAILS.
31279
31280 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
31281
31282 PR driver/47547
31283 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
31284 is HOST_BIT_BUCKET.
31285
31286 * opts.c (finish_options): Don't add x_aux_base_name if it is
31287 HOST_BIT_BUCKET.
31288
31289 2011-02-01 Richard Guenther <rguenther@suse.de>
31290
31291 PR tree-optimization/47555
31292 Revert
31293 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
31294
31295 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
31296
31297 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
31298
31299 PR gcc/46692
31300 * config/lm32/t-lm32: Add multilib for all CPU options.
31301
31302 2011-02-01 Richard Guenther <rguenther@suse.de>
31303
31304 PR tree-optimization/47541
31305 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
31306 sure to have a field at offset zero.
31307
31308 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31309
31310 * config/arc/arc.opt (EB, EL): New Driver options.
31311
31312 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31313
31314 * config/alpha/osf5.opt: New.
31315 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
31316
31317 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31318
31319 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
31320
31321 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
31322
31323 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
31324 -floop-interchange.
31325 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
31326 is an alias of -floop-interchange and that it requires the
31327 Graphite infrastructure.
31328 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
31329 flag_loop_interchange based on the value of flag_tree_loop_linear.
31330
31331 2011-01-31 Jakub Jelinek <jakub@redhat.com>
31332 Richard Guenther <rguenther@suse.de>
31333
31334 PR tree-optimization/47538
31335 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
31336 type instead of r1type, except for comparisons. For right
31337 shifts and comparisons punt if there are mismatches in
31338 sizetype vs. non-sizetype types.
31339
31340 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31341
31342 * doc/sourcebuild.texi (Effective-Target Keywords): Document
31343 avx_runtime.
31344
31345 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31346
31347 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
31348 version number.
31349 * configure: Regenerate.
31350
31351 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31352
31353 * configure.ac (gcc_cv_ld_static_option): Define.
31354 (gcc_cv_ld_dynamic_option): Define.
31355 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
31356 instead.
31357 (HAVE_LD_STATIC_DYNAMIC): Update message.
31358 (LD_STATIC_OPTION): Define.
31359 (LD_DYNAMIC_OPTION): Define.
31360 * configure: Regenerate.
31361 * config.in: Regenerate.
31362 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
31363 HAVE_LD_STATIC_DYNAMIC]: Use them.
31364
31365 2011-01-31 Nick Clifton <nickc@redhat.com>
31366
31367 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
31368 registers inside interrupt handlers if the handler is not a leaf
31369 function.
31370
31371 2011-01-31 Nick Clifton <nickc@redhat.com>
31372
31373 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
31374 reg_renumber returning an INVALID_REGNUM.
31375
31376 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
31377
31378 PR libgcj/44341
31379 * doc/install.texi: Document host options discarded when cross
31380 configuring target libraries.
31381
31382 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
31383
31384 Reverted:
31385 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
31386 PR debug/45136
31387 PR debug/45130
31388 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31389 debug insns.
31390 (no_real_insns_p, schedule_block, set_priorities): Drop special
31391 treatment of boundary debug insns.
31392 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31393 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
31394 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31395 (BOUNDARY_DEBUG_INSN_P): Likewise.
31396 (SCHEDULE_DEBUG_INSN_P): Likewise.
31397 * sched-rgn.c (init_ready_list): Drop special treatment of
31398 boundary debug insns.
31399 * final.c (rest_of_clean-state): Clear notes' BB.
31400
31401 2011-01-31 Alan Modra <amodra@gmail.com>
31402
31403 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
31404 toc relative expressions as we do in print_operand_address.
31405
31406 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
31407
31408 * doc/extend.texi: Follow spelling conventions.
31409 * doc/invoke.texi: Fix a typo.
31410
31411 2011-01-30 Joseph Myers <joseph@codesourcery.com>
31412
31413 * config/hpux11.opt: New.
31414 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
31415 ia64*-*-hpux*): Use hpux11.opt.
31416
31417 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
31418
31419 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
31420 to tmake_file.
31421
31422 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31423
31424 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
31425 support sites.
31426
31427 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31428
31429 * doc/install.texi (Binaries): Remove outdated reference for
31430 Motorola 68HC11/68HC12 downloads.
31431
31432 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31433
31434 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
31435 Drepper's paper.
31436
31437 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
31438
31439 PR bootstrap/47147
31440 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
31441 used by NetBSD.
31442
31443 2011-01-28 Ahmad Sharif <asharif@google.com>
31444
31445 * value-prof.c (check_counter): Corrected error message.
31446
31447 2011-01-29 Jie Zhang <jie@codesourcery.com>
31448
31449 * config/arm/arm.c (arm_legitimize_reload_address): New.
31450 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
31451 arm_legitimize_reload_address.
31452 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
31453
31454 2011-01-28 Ian Lance Taylor <iant@google.com>
31455
31456 * godump.c (go_define): Ignore macros whose definitions include
31457 two adjacent operands.
31458
31459 2011-01-28 Jakub Jelinek <jakub@redhat.com>
31460
31461 PR target/42894
31462 * varasm.c (force_const_mem): Store copy of x in desc->constant
31463 instead of x itself.
31464 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
31465 itself into REG_EQUAL note.
31466
31467 2011-01-28 Joseph Myers <joseph@codesourcery.com>
31468
31469 * config/freebsd.opt (posix, rdynamic): New Driver options.
31470
31471 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31472
31473 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
31474 -Bstatic/-Bdynamic.
31475 * configure: Regenerate.
31476
31477 2011-01-27 Joseph Myers <joseph@codesourcery.com>
31478
31479 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
31480 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
31481
31482 2011-01-27 Anatoly Sokolov <aesok@post.ru>
31483
31484 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
31485 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
31486 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
31487 (s390_preferred_reload_class): Make static. Change return and
31488 'rclass' argument type to reg_class_t.
31489
31490 2011-01-27 Jan Hubicka <jh@suse.cz>
31491
31492 PR middle-end/46949
31493 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
31494 (process_function_and_variable_attributes): Check defined weakrefs.
31495
31496 2011-01-27 Martin Jambor <mjambor@suse.cz>
31497
31498 PR tree-optimization/47228
31499 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
31500 build_ref_for_offset.
31501
31502 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31503
31504 * config/spu/spu-elf.h (ASM_SPEC): Remove.
31505
31506 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
31507
31508 PR rtl-optimization/46856
31509 * postreload.c (reload_combine_recognize_const_pattern): Do not
31510 separate cc0 setter and user on cc0 targets.
31511
31512 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
31513
31514 PR c/43082
31515 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
31516 passed a VOID_TYPE expression, immediately emit an error and
31517 return error_mark_node.
31518
31519 2011-01-26 Jeff Law <law@redhat.com>
31520
31521 PR rtl-optimization/47464
31522 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
31523 rather than may_trap_p as needed.
31524
31525 2011-01-26 DJ Delorie <dj@redhat.com>
31526
31527 PR rtl-optimization/46878
31528 * combine.c (insn_a_feeds_b): Check for the implicit cc0
31529 setter/user dependency as well.
31530
31531 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
31532
31533 PR rtl-optimization/44469
31534 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
31535 after removing trivially dead basic blocks.
31536
31537 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31538
31539 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
31540 * config/frv/frv.h (LINK_SPEC): Likewise.
31541 * config/i386/netware.h (LINK_SPEC): Likewise.
31542 * config/m68k/linux.h (ASM_SPEC): Likewise.
31543 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
31544 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
31545 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31546 * config/sparc/linux.h (ASM_SPEC): Likewise.
31547 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31548 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31549
31550 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31551
31552 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
31553 * config/frv/frv.h (ASM_SPEC): Likewise.
31554 * config/m68k/linux.h (ASM_SPEC): Likewise.
31555 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
31556 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
31557 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31558 * config/sparc/linux.h (ASM_SPEC): Likewise.
31559 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31560 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31561
31562 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31563
31564 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
31565 * config/frv/frv.h (LINK_SPEC): Likewise.
31566 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
31567
31568 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31569
31570 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
31571 * config/frv/frv.h (ASM_SPEC): Likewise.
31572 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
31573 * config/m68k/linux.h (ASM_SPEC): Likewise.
31574 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
31575 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
31576 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31577 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
31578 * config/sparc/linux.h (ASM_SPEC): Likewise.
31579 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31580 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31581 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
31582
31583 2011-01-26 Steve Ellcey <sje@cup.hp.com>
31584
31585 PR target/46997
31586 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
31587 (*mux2): Ditto.
31588 (vec_extract_evenodd_help): Ditto.
31589 (vec_extract_evenv4hi): Ditto.
31590 (vec_extract_oddv4hi): Ditto.
31591 (vec_interleave_lowv2si): Ditto.
31592 (vec_interleave_highv2si): Ditto.
31593 (vec_extract_evenv2si): Ditto.
31594 (vec_extract_oddv2si: Ditto.
31595 (vec_pack_trunc_v2si): Ditto.
31596
31597 2011-01-22 Jan Hubicka <jh@suse.cz>
31598
31599 PR target/47237
31600 * cgraph.h (cgraph_local_info): New field can_change_signature.
31601 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
31602 signature can change.
31603 (ipcp_estimate_growth): Call sequence simplify only if calle signature
31604 can change.
31605 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
31606 (cgraph_function_versioning): We can not change signature of functions
31607 that don't allow that.
31608 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
31609 (lto_input_node): Likewise.
31610 * ipa-inline.c (compute_inline_parameters): Compute
31611 local.can_change_signature.
31612 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
31613 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
31614 functions that can not change signature.
31615 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
31616 init_cumulative_args): Do not use local calling conventions
31617 for functions that can not change signature.
31618
31619 2011-01-22 Jan Hubicka <jh@suse.cz>
31620
31621 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
31622
31623 2011-01-26 Richard Guenther <rguenther@suse.de>
31624
31625 PR tree-optimization/47190
31626 * cgraphunit.c (process_common_attributes): New function.
31627 (process_function_and_variable_attributes): Use it.
31628
31629 2011-01-26 Richard Guenther <rguenther@suse.de>
31630
31631 PR lto/47423
31632 * cgraphbuild.c (record_eh_tables): Record reference to personality
31633 function.
31634
31635 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
31636
31637 PR debug/45454
31638 * sel-sched.c (moveup_expr): Don't let debug insns prevent
31639 non-debug insns from moving up.
31640
31641 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
31642
31643 PR target/40125
31644 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
31645 t-dlldir{,-x} fragment for build and add it to tmake_file.
31646 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
31647 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
31648 * config/i386/t-dlldir: New file.
31649 (SHLIB_DLLDIR): Define.
31650 * config/i386/t-dlldir-x: New file.
31651 (SHLIB_DLLDIR): Define.
31652 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
31653 (SHLIB_INSTALL): Use it.
31654
31655 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
31656
31657 PR target/47246
31658 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
31659 lower bound of the allowed Thumb-2 coprocessor load/store
31660 index range to -256. Add explaining comment.
31661
31662 2011-01-25 Ian Lance Taylor <iant@google.com>
31663
31664 * godump.c (go_define): Improve lexing of macro expansion to only
31665 accept expressions which match Go spec.
31666
31667 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
31668
31669 PR c++/43601
31670 * tree.c (handle_dll_attribute): Handle it.
31671 * doc/extend.texi (@item dllexport): Mention it.
31672 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
31673
31674 2011-01-25 Ian Lance Taylor <iant@google.com>
31675
31676 PR tree-optimization/26854
31677 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
31678 (decl_jump_unsafe): Move higher in file, with no other change.
31679 (bind): Set has_jump_unsafe_decl if appropriate.
31680 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
31681 (check_earlier_gotos): Likewise.
31682 (c_check_switch_jump_warnings): Likewise.
31683
31684 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
31685
31686 * doc/invoke.texi (Warning Options): Add missing hyphen.
31687 (-fprofile-dir): Minor grammatical fixes.
31688 (-fbranch-probabilities): Likewise.
31689
31690 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
31691
31692 PR debug/45136
31693 PR debug/45130
31694 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31695 debug insns.
31696 (no_real_insns_p, schedule_block, set_priorities): Drop special
31697 treatment of boundary debug insns.
31698 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31699 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
31700 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31701 (BOUNDARY_DEBUG_INSN_P): Likewise.
31702 (SCHEDULE_DEBUG_INSN_P): Likewise.
31703 * sched-rgn.c (init_ready_list): Drop special treatment of
31704 boundary debug insns.
31705 * final.c (rest_of_clean-state): Clear notes' BB.
31706
31707 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31708
31709 * Makefile.in (LAMBDA_H): Removed.
31710 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
31711 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
31712 lambda-trans.o, and tree-loop-linear.o.
31713 (lto-symtab.o): Remove dependence on LAMBDA_H.
31714 (tree-loop-linear.o): Remove rule.
31715 (lambda-mat.o): Same.
31716 (lambda-trans.o): Same.
31717 (lambda-code.o): Same.
31718 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
31719 (tree-vect-slp.o): Same.
31720 * hwint.h (gcd): Moved here.
31721 (least_common_multiple): Same.
31722 * lambda-code.c: Removed.
31723 * lambda-mat.c: Removed.
31724 * lambda-trans.c: Removed.
31725 * lambda.h: Removed.
31726 * tree-loop-linear.c: Removed.
31727 * lto-symtab.c: Do not include lambda.h.
31728 * omega.c (gcd): Removed.
31729 * passes.c (init_optimization_passes): Remove pass_linear_transform.
31730 * tree-data-ref.c (print_lambda_vector): Moved here.
31731 (lambda_vector_copy): Same.
31732 (lambda_matrix_copy): Same.
31733 (lambda_matrix_id): Same.
31734 (lambda_vector_first_nz): Same.
31735 (lambda_matrix_row_add): Same.
31736 (lambda_matrix_row_exchange): Same.
31737 (lambda_vector_mult_const): Same.
31738 (lambda_vector_negate): Same.
31739 (lambda_matrix_row_negate): Same.
31740 (lambda_vector_equal): Same.
31741 (lambda_matrix_right_hermite): Same.
31742 * tree-data-ref.h: Do not include lambda.h.
31743 (lambda_vector): Moved here.
31744 (lambda_matrix): Same.
31745 (dependence_level): Same.
31746 (lambda_transform_legal_p): Removed declaration.
31747 (lambda_collect_parameters): Same.
31748 (lambda_compute_access_matrices): Same.
31749 (lambda_vector_gcd): Same.
31750 (lambda_vector_new): Same.
31751 (lambda_vector_clear): Same.
31752 (lambda_vector_lexico_pos): Same.
31753 (lambda_vector_zerop): Same.
31754 (lambda_matrix_new): Same.
31755 * tree-flow.h (least_common_multiple): Removed declaration.
31756 * tree-parloops.c (lambda_trans_matrix): Moved here.
31757 (LTM_MATRIX): Same.
31758 (LTM_ROWSIZE): Same.
31759 (LTM_COLSIZE): Same.
31760 (LTM_DENOMINATOR): Same.
31761 (lambda_trans_matrix_new): Same.
31762 (lambda_matrix_vector_mult): Same.
31763 (lambda_transform_legal_p): Same.
31764 * tree-pass.h (pass_linear_transform): Removed declaration.
31765 * tree-ssa-loop.c (tree_linear_transform): Removed.
31766 (gate_tree_linear_transform): Removed.
31767 (pass_linear_transform): Removed.
31768 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
31769 flag_loop_interchange.
31770
31771 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31772
31773 PR tree-optimization/47265
31774 PR tree-optimization/47443
31775 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
31776 if name still has some uses.
31777
31778 2011-01-25 Martin Jambor <mjambor@suse.cz>
31779
31780 PR tree-optimization/47382
31781 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
31782 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
31783
31784 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
31785
31786 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
31787 sjlj_except_unwind_info.
31788
31789 2011-01-25 Richard Guenther <rguenther@suse.de>
31790
31791 PR tree-optimization/47426
31792 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
31793 visible functions results escape.
31794
31795 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31796
31797 PR target/45701
31798 * config/arm/arm.c (any_sibcall_uses_r3): New function.
31799 (arm_get_frame_offsets): Use it.
31800
31801 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31802 Jakub Jelinek <jakub@redhat.com>
31803
31804 PR tree-optimization/47271
31805 * tree-if-conv.c (bb_postdominates_preds): New.
31806 (if_convertible_bb_p): Call bb_postdominates_preds.
31807 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
31808 (predicate_scalar_phi): Call bb_postdominates_preds.
31809
31810 2011-01-25 Nick Clifton <nickc@redhat.com>
31811
31812 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
31813 * config/rx/rx.c (rx_function_value): Likewise.
31814 (rx_promote_function_mode): Likewise.
31815 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
31816 in order to make it legitimate.
31817 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
31818 make sure that the first operand is the same as the result register.
31819 (addsi3_unspec): Delete.
31820 (subdi3): Do not accept immediate operands.
31821 (subdi3_internal): Likewise.
31822
31823 2011-01-25 Jeff Law <law@redhat.com>
31824
31825 PR rtl-optimization/37273
31826 * ira-costs.c (scan_one_insn): Detect constants living in memory and
31827 handle them like argument loads from stack slots. Do not double
31828 count memory for memory constants and argument loads from stack slots.
31829
31830 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31831
31832 PR tree-optimization/47427
31833 PR tree-optimization/47428
31834 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
31835 coalesce if the new root var would be TREE_READONLY.
31836
31837 2011-01-25 Richard Guenther <rguenther@suse.de>
31838
31839 PR middle-end/47414
31840 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
31841 correct type for TBAA.
31842
31843 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31844
31845 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
31846 (close_phi_written_to_memory): Call for_each_index with
31847 dr_indices_valid_in_loop.
31848
31849 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31850
31851 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
31852 when it is initialized.
31853
31854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31855
31856 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
31857 call to graphite_find_data_references_in_stmt.
31858 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
31859 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
31860 call to graphite_find_data_references_in_stmt.
31861 (analyze_drs_in_stmts): Same.
31862 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
31863 in which the scalar analysis of indices is performed.
31864 (create_data_ref): Same. Update call to dr_analyze_indices.
31865 (find_data_references_in_stmt): Update call to create_data_ref.
31866 (graphite_find_data_references_in_stmt): Same.
31867 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
31868 declaration.
31869 (create_data_ref): Same.
31870 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
31871 call to create_data_ref.
31872
31873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31874
31875 * graphite-sese-to-poly.c (build_poly_scop): Move
31876 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
31877
31878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31879
31880 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
31881 VAR_DECL, PARM_DECL, and RESULT_DECL.
31882
31883 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31884
31885 * graphite-dependences.c (reduction_dr_1): Allow several reductions
31886 in a reduction PBB.
31887 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
31888 that have already been marked as PBB_IS_REDUCTION.
31889
31890 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31891
31892 * graphite-scop-detection.c (same_close_phi_node): New.
31893 (remove_duplicate_close_phi): New.
31894 (make_close_phi_nodes_unique): New.
31895 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
31896
31897 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31898
31899 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
31900 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
31901 of both data references to be the same.
31902
31903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31904
31905 * graphite-dependences.c (build_lexicographical_constraint): Remove
31906 the gdim parameter.
31907 (build_lexicographical_constraint): Adjust call to
31908 ppl_powerset_is_empty.
31909 (dependence_polyhedron): Same.
31910 (graphite_legal_transform_dr): Same.
31911 (graphite_carried_dependence_level_k): Same.
31912 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
31913 parameter.
31914 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
31915
31916 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31917
31918 * graphite-sese-to-poly.c
31919 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
31920 (close_phi_written_to_memory): New.
31921 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
31922 and unshare_expr.
31923
31924 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31925
31926 * doc/install.texi: Update the expected version number of PPL to 0.11.
31927 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
31928 #if PPL_VERSION_MINOR < 11.
31929
31930 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31931
31932 * graphite-dependences.c: Include graphite-cloog-util.h.
31933 (new_poly_ddr): Inlined into dependence_polyhedron.
31934 (free_poly_ddr): Moved close by new_poly_ddr.
31935 (dependence_polyhedron_1): Renamed dependence_polyhedron.
31936 Early return NULL when ppl_powerset_is_empty returns true.
31937 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
31938 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
31939 (graphite_legal_transform_dr): Call new_poly_ddr.
31940 (graphite_carried_dependence_level_k): Same.
31941 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
31942 (dot_transformed_deps_stmt_1): Removed.
31943 (dot_deps_stmt_1): Call dot_deps_stmt_2.
31944 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
31945 (dot_deps_1): Call dot_deps_2.
31946 * Makefile.in (graphite-dependences.o): Add missing dependence on
31947 graphite-cloog-util.h.
31948
31949 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31950
31951 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
31952 (build_lexicographical_constraint): Same.
31953 (dependence_polyhedron_1): Same.
31954 (graphite_legal_transform_dr): Same.
31955 (graphite_carried_dependence_level_k): Same.
31956 * graphite-ppl.c (ppl_powerset_is_empty): New.
31957 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
31958 * tree-data-ref.c (dump_data_reference): Print the basic block index.
31959
31960 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31961
31962 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
31963 the "a followed by b" relation and document it.
31964
31965 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31966
31967 * graphite-dependences.c (build_lexicographical_constraint): Stop the
31968 iteration when the bag of constraints is empty.
31969
31970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31971
31972 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
31973
31974 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31975
31976 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
31977 nest and two loop depths as parameters.
31978 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
31979 lst_perfect_nestify.
31980
31981 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31982
31983 * graphite-dependences.c (print_pddr): Call
31984 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
31985
31986 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31987
31988 * graphite-ppl.c (debug_gmp_value): New.
31989 * graphite-ppl.h (debug_gmp_value): Declared.
31990
31991 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
31992
31993 * doc/install.texi: Document availability of cloog-0.16.
31994
31995 2011-01-25 Vladimir Kargov <kargov@gmail.com>
31996
31997 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
31998 invalid postdominance info.
31999
32000 2011-01-24 Jan Hubicka <jh@suse.cz>
32001
32002 PR c/21659
32003 * doc/extend.texi (weak pragma): Drop claim that it must
32004 appear before definition.
32005 * varasm.c (merge_weak, declare_weak): Only sanity check
32006 that DECL is not output at a time it is declared weak.
32007
32008 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
32009
32010 * machmode.def: Fixed comments.
32011
32012 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
32013
32014 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
32015
32016 2011-01-24 Paul Koning <ni1d@arrl.net>
32017
32018 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
32019 WORDS_BIG_ENDIAN.
32020
32021 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
32022
32023 PR target/46519
32024 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
32025 (block_info): Add scanned and prev.
32026 (move_or_delete_vzeroupper_2): Return if the basic block
32027 has been scanned and the upper 128bit state is unchanged
32028 from the last scan.
32029 (move_or_delete_vzeroupper_1): Return true if the exit
32030 state is changed.
32031 (move_or_delete_vzeroupper): Visit basic blocks using the
32032 work-list based algorithm based on vt_find_locations in
32033 var-tracking.c.
32034
32035 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
32036
32037 2011-01-24 Nick Clifton <nickc@redhat.com>
32038
32039 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
32040 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
32041 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
32042 then define __v850e1__.
32043 * doc/invoke.texi: Document -mv850es.
32044
32045 2011-01-24 Richard Henderson <rth@redhat.com>
32046
32047 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
32048 compound unordered comparisons.
32049 * config/rx/rx.c (rx_split_fp_compare): Remove.
32050 * config/rx/rx-protos.h: Update.
32051 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
32052 (cbranchsf4): Don't call rx_split_fp_compare.
32053 (*cbranchsf4): Use rx_split_cbranch.
32054 (*cmpsf): Don't accept "i" constraint.
32055 (*conditional_branch): Only valid after reload.
32056 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
32057
32058 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32059
32060 PR target/47385
32061 * config/rs6000/altivec.md (vector constant splitters): Add
32062 support for creating vector single precision constants if -mvsx is
32063 used and we would create the constant using Altivec primitives.
32064
32065 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
32066 Richard Sandiford <rdsandiford@googlemail.com>
32067
32068 PR rtl-optimization/47166
32069 * reload1.c (emit_reload_insns): Disable the spill_reg_store
32070 mechanism for PRE_MODIFY and POST_MODIFY.
32071 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
32072 reloadreg.
32073
32074 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
32075
32076 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
32077
32078 2011-01-22 Jan Hubicka <jh@suse.cz>
32079
32080 PR lto/47333
32081 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
32082
32083 2011-01-22 Jan Hubicka <jh@suse.cz>
32084
32085 PR tree-optimization/43884
32086 PR lto/44334
32087 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
32088 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
32089
32090 2011-01-22 Anatoly Sokolov <aesok@post.ru>
32091
32092 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
32093 * config/s390/s390.c (s390_register_move_cost,
32094 s390_memory_move_cost): New.
32095 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
32096
32097 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32098
32099 PR middle-end/47401
32100 * except.c (sjlj_assign_call_site_values): Move setting the
32101 crtl->uses_eh_lsda flag to ...
32102 (sjlj_mark_call_sites): ... here.
32103 (sjlj_emit_function_enter): Support NULL dispatch label.
32104 (sjlj_build_landing_pads): In a function with no landing pads
32105 that still has must-not-throw regions, generate code to register
32106 a personality function with empty LSDA.
32107
32108 2011-01-21 Richard Henderson <rth@redhat.com>
32109
32110 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
32111
32112 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
32113
32114 * compare-elim.c: New file.
32115 * Makefile.in (OBJS-common): Add it.
32116 (compare-elim.o): New.
32117 * common.opt (fcompare-elim): New.
32118 * opts.c (default_options_table): Add OPT_fcompare_elim.
32119 * tree-pass.h (pass_compare_elim_after_reload): New.
32120 * passes.c (init_optimization_passes): Add it.
32121 * recog.h: Protect against re-inclusion.
32122 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
32123 * doc/invoke.texi (-fcompare-elim): Document it.
32124 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
32125 * doc/tm.texi: Rebuild.
32126
32127 2011-01-22 Nick Clifton <nickc@redhat.com>
32128
32129 * config/rx/rx.md (cstoresf4): Pass comparison operator to
32130 rx_split_fp_compare.
32131
32132 2011-01-22 Nick Clifton <nickc@redhat.com>
32133
32134 * config/rx/rx.md (UNSPEC_CONST): New.
32135 (deallocate_and_return): Wrap the amount popped off the stack in
32136 an UNSPEC_CONST in order to stop it being rejected by
32137 -mmax-constant-size.
32138 (pop_and_return): Add a "(return)" rtx.
32139 (call): Drop the immediate operand.
32140 (call_internal): Likewise.
32141 (call_value): Likewise.
32142 (call_value_internal): Likewise.
32143 (sibcall_internal): Likewise.
32144 (sibcall_value_internal): Likewise.
32145 (sibcall): Likewise. Generate an explicit call using
32146 sibcall_internal.
32147 (sibcall_value): Likewise.
32148 (mov<>): FAIL if a constant operand is not legitimate.
32149 (addsi3_unpsec): New pattern.
32150
32151 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
32152 (ok_for_max_constant): New function.
32153 (gen_safe_add): New function.
32154 (rx_expand_prologue): Use gen_safe_add.
32155 (rx_expand_epilogue): Likewise.
32156 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
32157 UNSPEC CONSTs.
32158
32159 2011-01-21 Jeff Law <law@redhat.com>
32160
32161 PR tree-optimization/47053
32162 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
32163 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
32164 statements are deleted.
32165 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
32166 is nonempty, then purge dead edges and cleanup the CFG.
32167
32168 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32169
32170 PR debug/47402
32171 Temporarily revert:
32172 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32173 PR debug/47106
32174 * tree-dfa.c (create_var_ann): Mark variable as used.
32175
32176 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32177
32178 PR middle-end/45566
32179 * except.c (convert_to_eh_region_ranges): Emit queued no-region
32180 notes from other section in hot/cold partitioning even if
32181 last_action is -3. Increment call_site_base.
32182
32183 PR rtl-optimization/47366
32184 * fwprop.c (forward_propagate_into): Return bool. If
32185 any changes are made, -fnon-call-exceptions is used and
32186 REG_EH_REGION note is present, call purge_dead_edges
32187 and return true if it purged anything.
32188 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
32189 any EH edges were purged.
32190
32191 2011-01-21 Jeff Law <law@redhat.com>
32192
32193 PR rtl-optimization/41619
32194 * caller-save.c (setup_save_areas): Break out code to determine
32195 which hard regs are live across calls by examining the reload chains
32196 so that it is always used.
32197 Eliminate code which checked REG_N_CALLS_CROSSED.
32198
32199 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32200
32201 PR tree-optimization/47355
32202 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
32203 NOP has non-debug uses beyond PHIs in new_bb.
32204
32205 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32206
32207 PR debug/47106
32208 * cfgexpand.c (account_used_vars_for_block): Only account vars
32209 that are annotated as used.
32210 (estimated_stack_frame_size): Don't set TREE_USED.
32211 * tree-dfa.c (create_var_ann): Mark variable as used.
32212
32213 2011-01-21 Richard Guenther <rguenther@suse.de>
32214
32215 PR middle-end/47395
32216 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
32217
32218 2011-01-21 Richard Guenther <rguenther@suse.de>
32219
32220 PR tree-optimization/47365
32221 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
32222 (vn_reference_lookup_pieces): Adjust.
32223 (vn_reference_lookup): Likewise.
32224 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
32225 (vn_reference_lookup_3): Only look through kills if in
32226 VN_WALKREWRITE mode.
32227 (vn_reference_lookup_pieces): Adjust.
32228 (vn_reference_lookup): Likewise.
32229 (visit_reference_op_load): Likewise.
32230 (visit_reference_op_store): Likewise.
32231 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
32232 (compute_avail): Likewise.
32233 (eliminate): Likewise.
32234
32235 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32236
32237 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
32238 DECL_IGNORED_P non-reg vars if they are used.
32239
32240 PR tree-optimization/47391
32241 * varpool.c (const_value_known_p): Return false if
32242 decl is volatile.
32243
32244 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
32245
32246 PR bootstrap/47215
32247 * config/i386/i386.c (ix86_local_alignment): Handle
32248 case for va_list_type_node is nil.
32249 (ix86_canonical_va_list_type): Likewise.
32250
32251 2011-01-21 Alan Modra <amodra@gmail.com>
32252
32253 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
32254 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
32255
32256 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32257
32258 * config/arm/arm.md (define_attr type): Rename f_load
32259 and f_store to f_fpa_load and f_fpa_store. Update.
32260 (write_conflict): Deal with rename fallout.
32261 (*push_fp_multi): Likewise.
32262 * config/arm/fpa.md (f_load): Use f_fpa_load.
32263 (f_store): Use f_fpa_store.
32264 (*movsf_fpa): Likewise.
32265 (*movdf_fpa): Likewise.
32266 (*movxf_fpa): Likewise.
32267 (*thumb2_movsf_fpa): Likewise.
32268 (*thumb2_movdf_fpa): Likewise.
32269 (*thumb2_movxf_fpa): Likewise.
32270 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
32271 f_loadd and f_stored.
32272 (*thumb2_movdi_vfp): Likewise.
32273 (*thumb2_movsf_vfp): Fix attribute to f_loads.
32274 (*thumb2_movsi_vfp): Likewise.
32275 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
32276 Use f_loads instead of f_load.
32277 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
32278
32279 2011-01-20 Anatoly Sokolov <aesok@post.ru>
32280
32281 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32282 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
32283 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32284 (xtensa_mode_dependent_address_p): New function.
32285 (constantpool_address_p): Make static. Change return type to bool.
32286 Change argument type to const_rtx. Use CONST_INT_P predicate.
32287
32288 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
32289
32290 PR debug/46583
32291 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
32292
32293 2011-01-20 Jakub Jelinek <jakub@redhat.com>
32294
32295 PR debug/47283
32296 * cfgexpand.c (expand_debug_expr): Instead of generating
32297 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
32298 etc. handling.
32299
32300 2011-01-20 Richard Guenther <rguenther@suse.de>
32301
32302 PR middle-end/47370
32303 * tree-inline.c (remap_gimple_op_r): Recurse manually for
32304 the pointer operand of MEM_REFs.
32305
32306 2011-01-20 Jakub Jelinek <jakub@redhat.com>
32307
32308 PR tree-optimization/46130
32309 * ipa-split.c (consider_split): If return_bb contains non-virtual
32310 PHIs other than for retval or if split_function would not adjust it,
32311 refuse to split.
32312
32313 2011-01-20 Richard Guenther <rguenther@suse.de>
32314
32315 PR tree-optimization/47167
32316 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
32317 Revert previous change, only avoid enumeral type changes.
32318
32319 2011-01-19 Mike Stump <mikestump@comcast.net>
32320
32321 * doc/tm.texi.in (BRANCH_COST): Englishify.
32322 * doc/tm.texi (BRANCH_COST): Likewise.
32323
32324 2011-01-19 Dodji Seketeli <dodji@redhat.com>
32325
32326 PR c++/47291
32327 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
32328 (gen_scheduled_generic_parms_dies): New functions.
32329 (gen_struct_or_union_type_die): Schedule template parameters DIEs
32330 generation for the end of CU compilation.
32331 (dwarf2out_finish): Generate template parameters DIEs here.
32332
32333 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32334
32335 PR debug/46240
32336 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
32337 debug bind stmt on merge edges.
32338
32339 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32340
32341 PR debug/47079
32342 PR debug/46724
32343 * function.c (instantiate_expr): Instantiate incoming rtl of
32344 implicit arguments, and recurse on VALUE_EXPRs.
32345 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
32346 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
32347
32348 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32349
32350 * c-parser.c (c_parser_for_statement): Initialize
32351 collection_expression.
32352
32353 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32354
32355 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
32356
32357 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32358
32359 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
32360 (LINK_SHLIB_SPEC): Don't use %(link_path).
32361 (SUBTARGET_EXTRA_SPECS): Remove link_path.
32362
32363 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32364
32365 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
32366 (NO_SHARED_LIB_SUPPORT): Remove.
32367 (LINK_SHLIB_SPEC): Remove one conditional definition.
32368
32369 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32370
32371 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
32372 %{call_shared}.
32373 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
32374 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
32375 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
32376 %{call_shared} and conditionals on these options not being passed.
32377 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
32378 %{call_shared}.
32379
32380 2011-01-19 Jakub Jelinek <jakub@redhat.com>
32381
32382 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
32383 simplify.
32384
32385 * ipa-split.c: Spelling fixes.
32386
32387 2011-01-19 Richard Henderson <rth@redhat.com>
32388
32389 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
32390 (*mulsi3): Likewise.
32391
32392 * longlong.h [__mn10300__] (count_leading_zeros): New.
32393 [__mn10300__] (umul_ppmm, smul_ppmm): New.
32394 [__mn10300__] (add_ssaaaa, subddmmss): New.
32395 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
32396 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
32397
32398 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32399
32400 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
32401
32402 2011-01-19 Richard Henderson <rth@redhat.com>
32403
32404 * config/mn10300/mn10300.md (addsi3_flags): New.
32405 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
32406 (subsi3_flags, subc_internal, subdi3): New.
32407 (subdi3_internal, *subdi3_degenerate): New.
32408 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
32409
32410 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
32411 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
32412 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
32413 * config/mn10300/mn10300-protos.h: Update.
32414 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
32415 (return_ret): Likewise. Rename from return_internal_regs.
32416 (return_internal): Remove.
32417
32418 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
32419 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
32420 (mn10300_legitimate_constant_p): Likewise.
32421 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
32422 (mn10300_frame_size): New.
32423 (mn10300_expand_prologue): Use it.
32424 (mn10300_expand_epilogue): Likewise.
32425 (mn10300_initial_offset): Likewise.
32426 * config/mn10300/mn10300-protos.h: Update.
32427 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
32428 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
32429 (prologue, epilogue, return_internal): Tidy output code.
32430 (mn10300_store_multiple_operation, return): Likewise.
32431 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
32432 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
32433 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
32434 (load_pic, am33_load_pic): New.
32435 (mn10300_load_pic0, mn10300_load_pic1): New.
32436
32437 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
32438 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
32439 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
32440 (cc_flags_for_mode, cc_flags_for_code): New.
32441 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
32442 overflow flag is not valid. Validate that the flags we need
32443 for the comparison are valid.
32444 (mn10300_output_cmp): Remove.
32445 (mn10300_output_add): New.
32446 (mn10300_select_cc_mode): Use cc_flags_for_code.
32447 (mn10300_split_cbranch): New.
32448 (mn10300_match_ccmode): New.
32449 (mn10300_split_and_operand_count): New.
32450 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
32451 to the function.
32452 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
32453 (addsi3): ... here. Use mn10300_output_add.
32454 (*addsi3_flags): New.
32455 (*am33_subsi3, *mn10300_subsi3): Merge...
32456 (subsi3): ... here. Use attribute isa.
32457 (*subsi3_flags): New.
32458 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
32459 when possible.
32460 (*am33_andsi3, *mn10300_andsi3): Merge...
32461 (andsi3): ... here.
32462 (*andsi3_flags): New.
32463 (andsi3 splitters): New.
32464 (*am33_iorsi3, *mn10300_iorsi3): Merge...
32465 (iorsi3): ... here.
32466 (*iorsi3_flags): New.
32467 (*am33_xorsi3, *mn10300_xorsi3): Merge...
32468 (xorsi3): ... here.
32469 (*xorsi3_flags): New.
32470 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
32471 (one_cmplsi2): ... here.
32472 (*one_cmplsi2_flags): New.
32473 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
32474 instead of "dax" in constraints. Use mn10300_split_cbranch.
32475 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
32476 use matching constraints to eliminate a self-comparison.
32477 (*integer_conditional_branch): Rename from integer_conditional_branch.
32478 Use int_mode_flags to match CC_REG.
32479 (*cbranchsi4_btst, *btstsi): New.
32480 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
32481 mn10300_split_cbranch.
32482 (*am33_cmpsf): Rename from am33_cmpsf.
32483 (*float_conditional_branch): Rename from float_conditional_branch.
32484 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
32485 (zero_extendqisi2): ... here.
32486 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
32487 (zero_extendhisi2): ... here.
32488 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
32489 (extendqisi2): ... here.
32490 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
32491 (extendhisi2): ... here.
32492 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
32493 (ashlsi3): ... here.
32494 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
32495 (lshrsi3): ... here.
32496 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
32497 (ashrsi3): ... here.
32498 (consecutive add peephole): Remove.
32499 * config/mn10300/predicates.md (label_ref_operand): New.
32500 (int_mode_flags): New.
32501 (CCZN_comparison_operator): New.
32502
32503 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
32504 (throughput_42_latency_43): New reservation.
32505 (mulsidi3, umulsidi3): New expanders.
32506 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
32507 the MDR register to allocation; separately allocate the low and
32508 high parts of the DImode result.
32509 (umulsidi3_internal): Similarly.
32510 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
32511 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
32512 (udivsi3, umodsi3): Remove.
32513 (udivmodsi4, divmodsi4): New expanders.
32514 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
32515 (*divmodsi4): Simiarly.
32516 (ext_internal): New.
32517
32518 * config/mn10300/constraints.md ("z"): New constraint.
32519 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
32520 (FIXED_REGISTERS): Don't fix MDR.
32521 (CALL_USED_REGSITERS): Reformat nicely.
32522 (REG_ALLOC_ORDER): Add MDR.
32523 (enum regclass): Add MDR_REGS.
32524 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
32525 (IRA_COVER_CLASSES): Add MDR_REGS.
32526 (REGNO_REG_CLASS): Handle MDR_REG.
32527 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
32528 (mn10300_register_move_cost): Likewise.
32529 * config/mn10300/mn10300.md (MDR_REG): New.
32530 (*movsi_internal): Handle moves to/from MDR_REGS.
32531
32532 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
32533 POST_MODIFY.
32534 (mn10300_secondary_reload): Tidy combination reload classes.
32535 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
32536 addresses for AM33. Allow symbolic offsets for reg+imm.
32537 (mn10300_regno_in_class_p): New.
32538 (mn10300_legitimize_reload_address): New.
32539 * config/mn10300/mn10300.h (enum reg_class): Remove
32540 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
32541 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
32542 SP_OR_GENERAL_REGS.
32543 (REG_CLASS_NAMES): Update to match.
32544 (REG_CLASS_CONTENTS): Likewise.
32545 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
32546 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
32547 (REGNO_IN_RANGE_P): Remove.
32548 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
32549 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
32550 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
32551 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
32552 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
32553 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
32554 (REGNO_GENERAL_P): New.
32555 (HAVE_POST_MODIFY_DISP): New.
32556 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
32557 (LEGITIMIZE_RELOAD_ADDRESS): New.
32558 * config/mn10300/mn10300-protos.h: Update.
32559
32560 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
32561 DATA_REGS for AM33 stack-pointer destination.
32562 (mn10300_preferred_output_reload_class): Likewise.
32563 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
32564 into a form appropriate for ...
32565 (TARGET_SECONDARY_RELOAD): New.
32566 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
32567 * config/mn10300/mn10300-protos.h: Update.
32568 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
32569 reload_insi; use the "A" constraint for the scratch; handle AM33
32570 moves of sp to non-address registers.
32571
32572 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
32573 (*movqi_internal): ... here.
32574 (*am33_movhi, *mn10300_movhi): Merge into...
32575 (*movhi_internal): ... here.
32576 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
32577 as the source/destination of moves from/to SP.
32578 (movsf): Only allow for AM33-2.
32579 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
32580 any integer constant constraint. Only allow for AM33-2. Tidy
32581 all of the alternative outputs.
32582 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
32583 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
32584 for MN103.
32585 (udivsi3, umodsi3): New patterns for MN103 only.
32586
32587 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
32588
32589 * doc/tm.texi.in: Spell out that a lack of register class unions
32590 can lead to ICEs.
32591 * doc/tm.texi: Regenerate.
32592
32593 2011-01-19 Jakub Jelinek <jakub@redhat.com>
32594
32595 PR rtl-optimization/47337
32596 * dce.c (check_argument_store): New function.
32597 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
32598
32599 PR tree-optimization/47290
32600 * tree-eh.c (infinite_empty_loop_p): New function.
32601 (cleanup_empty_eh): Use it.
32602
32603 2011-01-18 Steve Ellcey <sje@cup.hp.com>
32604
32605 PR target/46997
32606 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
32607 (a64_expand_widen_sum): Ditto.
32608 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
32609 (vec_extract_evenodd_help): Ditto.
32610 (vec_extract_evenv4hi): Ditto.
32611 (vec_extract_oddv4hi): Ditto.
32612 (vec_extract_evenv2si): Ditto.
32613 (vec_extract_oddv2si): Ditto.
32614 (vec_extract_evenv2sf): Ditto.
32615 (vec_extract_oddv2sf): Ditto.
32616 (vec_pack_trunc_v4hi: Ditto.
32617 (vec_pack_trunc_v2si): Ditto.
32618 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
32619 (vec_interleave_highv8qi): Ditto.
32620 (mix1_r): Ditto.
32621 (vec_extract_oddv8qi): Ditto.
32622 (vec_interleave_lowv4hi): Ditto.
32623 (vec_interleave_highv4hi): Ditto.
32624 (vec_interleave_lowv2si): Ditto.
32625 (vec_interleave_highv2si): Ditto.
32626
32627 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32628
32629 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
32630 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
32631 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
32632 (pa_c_mode_for_suffix): New.
32633 (TARGET_EXPAND_BUILTIN): Define.
32634 (TARGET_C_MODE_FOR_SUFFIX): Define.
32635 (pa_builtins): Define.
32636 (pa_init_builtins): Register __float128 type and init new support
32637 builtins.
32638 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
32639 * config/pa/quadlib.c (_U_Qfcopysign): New.
32640
32641 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
32642
32643 PR middle-end/46894
32644 * explow.c (allocate_dynamic_stack_space): Do not assume more than
32645 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
32646 are defined.
32647
32648 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32649
32650 PR tree-optimization/47179
32651 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
32652 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
32653
32654 2011-01-18 Richard Guenther <rguenther@suse.de>
32655
32656 PR rtl-optimization/47216
32657 * emit-rtl.c: Include tree-flow.h.
32658 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
32659 of replicating it with different semantics.
32660 * Makefile.in (emit-rtl.o): Adjust.
32661
32662 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32663
32664 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
32665 (cortex_a9_dp): Handle neon types correctly.
32666
32667 2011-01-18 Jakub Jelinek <jakub@redhat.com>
32668
32669 PR rtl-optimization/47299
32670 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
32671 subtarget. Use normal multiplication if both operands are constants.
32672 * expmed.c (expand_widening_mult): Don't try to optimize constant
32673 multiplication if op0 has VOIDmode. Convert op1 constant to mode
32674 before using it.
32675
32676 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32677
32678 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
32679 spacing after 'e.g.', typos, comma, hyphenation.
32680
32681 2011-01-17 Richard Henderson <rth@redhat.com>
32682
32683 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
32684 (rx_restricted_mem_operand): New.
32685 (rx_shift_operand): Use register_operand.
32686 (rx_source_operand, rx_compare_operand): Likewise.
32687 * config/rx/rx.md (addsi3_flags): New expander.
32688 (adddi3): Rewrite as expander.
32689 (adc_internal, *adc_flags, adddi3_internal): New patterns.
32690 (subsi3_flags): New expander.
32691 (subdi3): Rewrite as expander.
32692 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
32693
32694 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
32695 (rx_init_builtins): Remove sat builtin.
32696 (rx_expand_builtin): Likewise.
32697 * config/rx/rx.md (ssaddsi3): New.
32698 (*sat): Rename from sat. Represent the CC_REG input.
32699
32700 * config/rx/predicates.md (rshift_operator): New.
32701 * config/rx/rx.c (rx_expand_insv): Remove.
32702 * config/rx/rx-protos.h: Update.
32703 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
32704 operand to the canonical position.
32705 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
32706 (*bitclr, *bitclr_in_memory): Similarly.
32707 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
32708 (insv): Retain the zero_extract in the expansion.
32709
32710 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
32711 (bswaphi2, bitinvert, revw): Likewise.
32712
32713 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
32714 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
32715 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
32716 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
32717 (bitset, bitset_in_memory): Likewise.
32718 (bitinvert, bitinvert_in_memory): Likewise.
32719 (bitclr, bitclr_in_memory): Likewise.
32720 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
32721 (rx_strend, rx_cmpstrn): Likewise.
32722 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
32723 (bitop peep2 patterns): Remove.
32724
32725 * config/rx/rx.c (rx_match_ccmode): New.
32726 * config/rx/rx-protos.h: Update.
32727 * config/rx/rx.md (abssi2): Clobber, don't set flags.
32728 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
32729 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
32730 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
32731 (fix_truncsfsi2, floatsisf2): Likewise.
32732 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
32733 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
32734 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
32735 (*subsi3_flags, *xorsi3_flags): New.
32736
32737 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
32738
32739 * config/rx/rx.c (rx_print_operand): Remove workaround for
32740 unsplit comparison operations.
32741
32742 * config/rx/rx.md (movsicc): Split after reload.
32743 (*movsicc): Merge *movsieq and *movsine via match_operator.
32744 (*stcc): New pattern.
32745
32746 * config/rx/rx.c (rx_float_compare_mode): Remove.
32747 * config/rx/rx.h (rx_float_compare_mode): Remove.
32748 * config/rx/rx.md (cstoresi4): Split after reload.
32749 (*sccc): New pattern.
32750
32751 * config/rx/predicates.md (label_ref_operand): New.
32752 (rx_z_comparison_operator): New.
32753 (rx_zs_comparison_operator): New.
32754 (rx_fp_comparison_operator): New.
32755 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
32756 Validate that the flags are set properly for the comparison.
32757 (rx_gen_cond_branch_template): Remove.
32758 (rx_cc_modes_compatible): Remove.
32759 (mode_from_flags): New.
32760 (flags_from_code): Rename from flags_needed_for_conditional.
32761 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
32762 (rx_select_cc_mode): Likewise.
32763 (rx_split_fp_compare): New.
32764 (rx_split_cbranch): New.
32765 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
32766 (*cbranchsi4): Use match_operator and rx_split_cbranch.
32767 (*cbranchsf4): Similarly.
32768 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
32769 match_operator and rx_split_cbranch.
32770 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
32771 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
32772 (*cmpsi): Rename from cmpsi.
32773 (*tstsi): Rename from tstsi.
32774 (*cmpsf): Rename from cmpsf; use CC_Fmode.
32775 (*conditional_branch): Rename from conditional_branch.
32776 (*reveresed_conditional_branch): Remove.
32777 (b<code>): Remove expander.
32778 * config/rx/rx-protos.h: Update.
32779
32780 * config/rx/rx.c (rx_compare_redundant): Remove.
32781 * config/rx/rx.md (cmpsi): Don't use it.
32782 * config/rx/rx-protos.h: Update.
32783
32784 * config/rx/rx-modes.def (CC_F): New mode.
32785 * config/rx/rx.c (rx_select_cc_mode): New.
32786 * config/rx/rx.h (SELECT_CC_MODE): Use it.
32787 * config/rx/rx-protos.h: Update.
32788
32789 2011-01-17 Richard Henderson <rth@redhat.com>
32790
32791 * except.c (dump_eh_tree): Fix stray ; after for statement.
32792
32793 2011-01-17 Richard Guenther <rguenther@suse.de>
32794
32795 PR tree-optimization/47313
32796 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
32797 handling before copying the body. Properly deal with
32798 by-reference result in SSA form.
32799
32800 2011-01-17 Ian Lance Taylor <iant@google.com>
32801
32802 PR target/47219
32803 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
32804 (struct_value_alias_set): Don't define.
32805 (sparc_option_override): Don't set sparc_sr_alias_set and
32806 struct_value_alias_set.
32807 (save_or_restore_regs): Use gen_frame_mem rather than calling
32808 set_mem_alias_set.
32809 (sparc_struct_value_rtx): Likewise.
32810
32811 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
32812
32813 PR target/47318
32814 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
32815 (_mm_maskstore_pd): Likewise.
32816 (_mm_maskload_ps): Likewise.
32817 (_mm_maskstore_ps): Likewise.
32818 (_mm256_maskload_pd): Change mask to __m256i.
32819 (_mm256_maskstore_pd): Likewise.
32820 (_mm256_maskload_ps): Likewise.
32821 (_mm256_maskstore_ps): Likewise.
32822
32823 * config/i386/i386-builtin-types.def: Updated.
32824 (ix86_expand_special_args_builtin): Likewise.
32825
32826 * config/i386/i386.c (bdesc_special_args): Update
32827 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
32828 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
32829 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
32830 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
32831
32832 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
32833 Use <avxpermvecmode> on mask register.
32834 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
32835
32836 2011-01-17 Olivier Hainque <hainque@adacore.com>
32837 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32838 Eric Botcazou <ebotcazou@adacore.com>
32839
32840 PR target/46655
32841 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
32842 if <= USHRT_MAX in 32-bit mode.
32843
32844 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32845
32846 * doc/install.texi (Configuration, Specific): Wrap long
32847 lines in examples. Allow line wrapping in long options
32848 and URLs where beneficial for PDF output.
32849
32850 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
32851
32852 * config/mips/mips.c (mips_classify_symbol): Don't return
32853 SYMBOL_PC_RELATIVE for nonlocal labels.
32854
32855 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
32856
32857 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
32858
32859 2011-01-15 Jan Hubicka <jh@suse.cz>
32860
32861 PR tree-optimization/47276
32862 * ipa.c (function_and_variable_visibility): Do not try to mark alias
32863 declarations as needed.
32864
32865 2011-01-15 Martin Jambor <mjambor@suse.cz>
32866
32867 * common.opt (fdevirtualize): New flag.
32868 * doc/invoke.texi (Option Summary): Document it.
32869 * opts.c (default_options_table): Add devirtualize flag.
32870 * ipa-prop.c (detect_type_change): Return immediately if
32871 devirtualize flag is not set.
32872 (detect_type_change_ssa): Likewise.
32873 (compute_known_type_jump_func): Likewise.
32874 (ipa_analyze_virtual_call_uses): Likewise.
32875
32876 2011-01-14 Martin Jambor <mjambor@suse.cz>
32877
32878 PR tree-optimization/45934
32879 PR tree-optimization/46302
32880 * ipa-prop.c (type_change_info): New type.
32881 (stmt_may_be_vtbl_ptr_store): New function.
32882 (check_stmt_for_type_change): Likewise.
32883 (detect_type_change): Likewise.
32884 (detect_type_change_ssa): Likewise.
32885 (compute_complex_assign_jump_func): Check for dynamic type change.
32886 (compute_complex_ancestor_jump_func): Likewise.
32887 (compute_known_type_jump_func): Likewise.
32888 (compute_scalar_jump_functions): Likewise.
32889 (ipa_analyze_virtual_call_uses): Likewise.
32890 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
32891
32892 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32893
32894 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
32895 * config/i386/i386.opt (msse5): New Alias.
32896
32897 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32898
32899 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
32900 * config/sparc/linux64.h (CC1_SPEC): Likewise.
32901 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
32902 * config/sparc/sparc.h (CC1_SPEC): Likewise.
32903
32904 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32905
32906 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
32907 -mcpu options.
32908 * config/sparc/linux64.h (CC1_SPEC): Likewise.
32909 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
32910 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
32911 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
32912 Likewise.
32913 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
32914
32915 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32916
32917 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
32918
32919 2011-01-14 Mike Stump <mikestump@comcast.net>
32920
32921 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
32922 * config/fr30/fr30.md: Likweise
32923 (movsi_push): Likewise.
32924 (movsi_pop): Likewise.
32925 (enter_func): Likewise.
32926 * config/moxie/moxie.md (movsi_push): Likewise.
32927 (movsi_pop): Likewise.
32928
32929 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32930
32931 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
32932 %{no_archive} %{exact_version}.
32933 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
32934 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
32935 %{no_archive} %{exact_version}.
32936 * config/mips/openbsd.h (LINK_SPEC): Likewise.
32937 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
32938 * config/mips/vxworks.h: Likewise.
32939
32940 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32941
32942 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
32943
32944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32945
32946 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
32947 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
32948
32949 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32950
32951 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
32952 -nodefaultlib.
32953
32954 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32955
32956 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
32957 for mcpu not cpu.
32958 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
32959 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
32960 not cpu.
32961 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
32962 Don't handle -shlib.
32963
32964 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32965
32966 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
32967 (CC1_SPEC): Don't handle -profile.
32968
32969 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32970
32971 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
32972 * config/mips/mips.h (CC1_SPEC): Likewise.
32973
32974 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32975
32976 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
32977 * config/mips/mips.h (CC1_SPEC): Likewise.
32978
32979 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32980
32981 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
32982 * config/m32r/linux.h (LINK_SPEC): Likewise.
32983 * config/mips/linux.h (LINK_SPEC): Likewise.
32984 * config/mips/linux64.h (LINK_SPEC): Likewise.
32985 * config/sparc/linux.h (LINK_SPEC): Likewise.
32986 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
32987 LINK_SPEC): Likewise.
32988 * config/xtensa/linux.h (LINK_SPEC): Likewise.
32989
32990 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32991
32992 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
32993 %{version:-v}.
32994 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
32995
32996 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32997
32998 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
32999 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
33000
33001 2011-01-14 Joseph Myers <joseph@codesourcery.com>
33002
33003 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
33004
33005 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33006
33007 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
33008 supports -Bstatic/-Bdynamic.
33009 * configure: Regenerate.
33010
33011 2011-01-14 Jan Hubicka <jh@suse.cz>
33012 Jack Howarth <howarth@bromo.med.uc.edu>
33013
33014 PR target/46037
33015 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
33016 when checking debug_info_level. Test write_symbols instead of
33017 debug_hooks->var_location when setting flag_var_tracking_uninit.
33018
33019 2011-01-14 Richard Guenther <rguenther@suse.de>
33020
33021 PR tree-optimization/47179
33022 * target.def (ref_may_alias_errno): New target hook.
33023 * targhooks.h (default_ref_may_alias_errno): Declare.
33024 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
33025 (default_ref_may_alias_errno): New function.
33026 * target.h (struct ao_ref_s): Declare.
33027 * tree-ssa-alias.c: Include target.h.
33028 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
33029 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
33030 (targhooks.o): Likewise.
33031 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
33032 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
33033
33034 2011-01-14 Richard Guenther <rguenther@suse.de>
33035
33036 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
33037
33038 2011-01-14 Richard Guenther <rguenther@suse.de>
33039
33040 PR tree-optimization/47280
33041 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
33042 return CFG changes.
33043 (tree_ssa_forward_propagate_single_use_vars): Deal with
33044 CFG changes from associate_plusminus.
33045
33046 2011-01-14 Richard Guenther <rguenther@suse.de>
33047
33048 PR middle-end/47281
33049 Revert
33050 2011-01-11 Richard Guenther <rguenther@suse.de>
33051
33052 PR tree-optimization/46076
33053 * tree-ssa.c (useless_type_conversion_p): Conversions from
33054 unprototyped to empty argument list function types are useless.
33055
33056 2011-01-14 Richard Guenther <rguenther@suse.de>
33057
33058 PR tree-optimization/47286
33059 * tree-ssa-structalias.c (new_var_info): Register variables are global.
33060
33061 2011-01-14 Martin Jambor <mjambor@suse.cz>
33062
33063 PR middle-end/46823
33064 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
33065
33066 2011-01-13 Anatoly Sokolov <aesok@post.ru>
33067
33068 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
33069 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
33070 * config/xtensa/xtensa.c (xtensa_libcall_value,
33071 xtensa_function_value_regno_p): New functions.
33072 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
33073
33074 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
33075
33076 PR c++/47213
33077 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
33078 PE specific hook.
33079 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
33080 New function prototype.
33081 * config/i386/winnt.c (i386_pe_assemble_visibility):
33082 Warn only if attribute was specified by user.
33083
33084 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33085
33086 PR target/47251
33087 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
33088 floating point.
33089 (floatunsdidf2_fcfidu): Ditto.
33090
33091 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33092
33093 * config/s390/s390.c (print_operand_address): Replace 'error' with
33094 'output_operand_lossage'.
33095 (print_operand): Likewise.
33096
33097 2011-01-13 Jeff Law <law@redhat.com>
33098
33099 PR rtl-optimization/39077
33100 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
33101 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
33102 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
33103 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
33104 * gcse.c (prune_insertions_deletions): New function.
33105 (compute_pre_data): Use it.
33106
33107 2011-01-13 Dodji Seketeli <dodji@redhat.com>
33108
33109 PR debug/PR46973
33110 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
33111 static function.
33112 (prune_unused_types_mark): Use it.
33113
33114 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
33115
33116 PR rtl-optimization/45352
33117 * sel-sched.c: Update copyright years.
33118 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
33119 in the advancing loop when we have issued issue_rate insns.
33120
33121 2011-01-12 Richard Henderson <rth@redhat.com>
33122
33123 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
33124 (TARGET_MD_ASM_CLOBBERS): New.
33125
33126 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
33127 (TARGET_DELEGITIMIZE_ADDRESS): New.
33128
33129 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
33130 (clzsi2, *bsch): New patterns.
33131
33132 * config/mn10300/mn10300.md (INT): New mode iterator.
33133 (*mov<INT>_clr): New pattern, and peep2 to generate it.
33134
33135 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
33136 flag_split_wide_types.
33137
33138 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
33139 (mn10300_trampoline_init): Rewrite without a template, an immediate
33140 load and a direct branch.
33141 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
33142
33143 2011-01-12 Anatoly Sokolov <aesok@post.ru>
33144
33145 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
33146 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
33147 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
33148 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
33149
33150 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
33151
33152 PR debug/47209
33153 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
33154 of type.
33155
33156 2011-01-12 Jan Hubicka <jh@suse.cz>
33157
33158 PR driver/47244
33159 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
33160 (PLUGIN_COND_CLOSE): New macro.
33161 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
33162
33163 2011-01-12 Richard Guenther <rguenther@suse.de>
33164
33165 PR lto/47259
33166 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
33167 register variables in a MEM_REF.
33168
33169 2011-01-12 Joseph Myers <joseph@codesourcery.com>
33170
33171 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
33172 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
33173 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
33174 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
33175 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
33176 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
33177 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
33178 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
33179 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
33180 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
33181 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
33182 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
33183 * config/gnu-user.h: New. Copied from linux.h.
33184 (LINUX_TARGET_STARTFILE_SPEC): Rename to
33185 GNU_USER_TARGET_STARTFILE_SPEC.
33186 (LINUX_TARGET_ENDFILE_SPEC): Rename to
33187 GNU_USER_TARGET_ENDFILE_SPEC.
33188 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
33189 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
33190 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
33191 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
33192 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
33193 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
33194 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
33195 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
33196 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
33197 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
33198 * config/arm/linux-eabi.h (CC1_SPEC): Use
33199 GNU_USER_TARGET_CC1_SPEC.
33200 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
33201 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
33202 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
33203 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
33204 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
33205 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
33206 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
33207 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
33208
33209 2011-01-12 Richard Guenther <rguenther@suse.de>
33210
33211 PR other/46946
33212 * doc/invoke.texi (ffast-math): Document it is turned on
33213 with -Ofast.
33214
33215 2011-01-12 Jan Hubicka <jh@suse.cz>
33216
33217 PR tree-optimization/47233
33218 * opts.c (common_handle_option): Disable ipa-reference with profile
33219 feedback.
33220
33221 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
33222
33223 * c-parser.c (c_parser_objc_at_property_declaration): Improved
33224 error message.
33225
33226 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
33227
33228 * c-parser.c (c_lex_one_token): Updated and reindented some
33229 comments. No changes in code.
33230
33231 2011-01-11 Ian Lance Taylor <iant@google.com>
33232
33233 * godump.c (go_output_var): Don't output the variable if there is
33234 already a type with the same name.
33235
33236 2011-01-11 Ian Lance Taylor <iant@google.com>
33237
33238 * godump.c (go_format_type): Don't generate float80.
33239
33240 2011-01-11 Richard Henderson <rth@redhat.com>
33241
33242 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
33243 declaration. Rewrite for both speed and size.
33244 (mn10300_address_cost_1): Remove.
33245 (mn10300_register_move_cost): New.
33246 (mn10300_memory_move_cost): New.
33247 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
33248 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
33249 extensions, shifts, BSWAP, CLZ.
33250 (mn10300_wide_const_load_uses_clr): Remove.
33251 (TARGET_REGISTER_MOVE_COST): New.
33252 (TARGET_MEMORY_MOVE_COST): New.
33253 * config/mn10300/mn10300-protos.h: Update.
33254 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
33255
33256 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
33257 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
33258 * config/mn10300/mn10300-protos.h: Update.
33259 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
33260 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
33261 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
33262 (*test_int_bitfield, *test_byte_bitfield): Remove.
33263 (*bit_test, *subreg_bit_test): Remove.
33264 * config/mn10300/predicates.md (const_8bit_operand): Remove.
33265
33266 * config/mn10300/constraints.md ("c"): Rename from "A".
33267 ("A", "D"): New constraint letters.
33268 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
33269 (fmssf4, fnmasf4, fnmssf4): Likewise.
33270
33271 * config/mn10300/mn10300.md (isa): New attribute.
33272 (enabled): New attribute.
33273
33274 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
33275 (abssf2, negsf2): Define only for hardware fp.
33276 (sqrtsf2): Reformat.
33277 (addsf3, subsf3, mulsf3): Merge expander and insn.
33278
33279 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
33280 (DEBUGGER_AUTO_OFFSET): Remove.
33281 (DEBUGGER_ARG_OFFSET): Remove.
33282
33283 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
33284 Emit register stores with the same offsets as the hardware.
33285 (mn10300_store_multiple_operation): Don't check that the register
33286 save offsets are monotonic.
33287 * config/mn10300/mn10300-protos.h: Update.
33288
33289 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
33290
33291 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
33292 in terms of the value on the stack, not the MDR register.
33293
33294 2011-01-11 Jan Hubicka <jh@suse.cz>
33295
33296 PR lto/45721
33297 PR lto/45375
33298 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
33299 (symbol_alias_set_destroy, symbol_alias_set_contains,
33300 propagate_aliases_backward): Declare.
33301 * lto-streamer-out.c (struct sets): New sturcture.
33302 (trivally_defined_alias): New function.
33303 (output_alias_pair_p): Rewrite.
33304 (output_unreferenced_globals): Fix output of alias pairs.
33305 (produce_symtab): Likewise.
33306 * ipa.c (function_and_variable_visibility): Set weak alias destination
33307 as needed in lto.
33308 * varasm.c (symbol_alias_set_t): Remove.
33309 (symbol_alias_set_destroy): Export.
33310 (propagate_aliases_forward, propagate_aliases_backward): New functions
33311 based on ...
33312 (compute_visible_aliases): ... this one; remove.
33313 (trivially_visible_alias): New
33314 (trivially_defined_alias): New.
33315 (remove_unreachable_alias_pairs): Rewrite.
33316 (finish_aliases_1): Reorganize code checking if alias is defined.
33317 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
33318 in LTO mode.
33319
33320 2011-01-11 Richard Guenther <rguenther@suse.de>
33321
33322 PR tree-optimization/46076
33323 * tree-ssa.c (useless_type_conversion_p): Conversions from
33324 unprototyped to empty argument list function types are useless.
33325
33326 2011-01-11 Richard Guenther <rguenther@suse.de>
33327
33328 PR middle-end/45235
33329 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
33330 volatile MEMs as MEM_READONLY_P.
33331
33332 2011-01-11 Richard Guenther <rguenther@suse.de>
33333
33334 PR tree-optimization/47239
33335 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
33336
33337 2011-01-11 Jeff Law <law@redhat.com>
33338
33339 PR tree-optimization/47086
33340 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
33341 IVs from statements that might throw.
33342
33343 2011-01-10 Jan Hubicka <jh@suse.cz>
33344
33345 PR lto/45375
33346 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
33347
33348 2011-01-10 Jan Hubicka <jh@suse.cz>
33349
33350 PR lto/45375
33351 * profile.c (read_profile_edge_counts): Ignore profile inconistency
33352 when correcting profile.
33353
33354 2011-01-10 Jan Hubicka <jh@suse.cz>
33355
33356 PR lto/46083
33357 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
33358 DECL_FINI_PRIORITY.
33359 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
33360 Restore DECL_FINI_PRIORITY.
33361
33362 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33363
33364 * doc/gimple.texi: Fix quoting of multi-word return values in
33365 @deftypefn statements. Ensure presence of return value. Wrap
33366 overlong @deftypefn lines.
33367 (is_gimple_operand, is_gimple_min_invariant_address): Remove
33368 descriptions of removed functions.
33369 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
33370 of multi-word return value in @deftypefn statement.
33371
33372 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33373
33374 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
33375 (Conditional Expressions, Logical Operators)
33376 (Statement and operand traversals): Do not indent smallexample
33377 code. Fix duplicate function argument in example.
33378
33379 2011-01-10 Jeff Law <law@redhat.com>
33380
33381 PR tree-optimization/47141
33382 * ipa-split.c (split_function): Handle case where we are
33383 returning a value and the return block has a virtual operand phi.
33384
33385 2011-01-10 Jan Hubicka <jh@suse.cz>
33386
33387 PR tree-optimization/47234
33388 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
33389 (pass_feedback_split_functions): Declare.
33390 * passes.c (init_optimization_passes): Add ipa-split as subpass of
33391 tree-profile.
33392 * ipa-split.c (gate_split_functions): Update comments; disable
33393 split-functions for profile_arc_flag and branch_probabilities.
33394 (gate_feedback_split_functions): New function.
33395 (execute_feedback_split_functions): New function.
33396 (pass_feedback_split_functions): New global var.
33397
33398 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
33399
33400 PR lto/46760
33401 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
33402 calling gimple_call_set_cannot_inline.
33403
33404 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
33405
33406 * config/darwin-sections.def: Remove unused section.
33407
33408 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
33409
33410 PR c++/47218
33411 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
33412
33413 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
33414
33415 PR objc/47232
33416 * c-parser.c (c_parser_declaration_or_fndef): Improved
33417 error message.
33418
33419 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
33420
33421 * config/i386/winnt.c (i386_pe_start_function): Make sure
33422 to switch back to function's section.
33423
33424 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
33425
33426 PR gcc/46902
33427 PR testsuite/46912
33428 * plugin.c: Move include of dlfcn.h from here...
33429 * system.h: ... to here.
33430
33431 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33432
33433 * doc/cpp.texi (C++ Named Operators): Fix markup for header
33434 file name.
33435 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
33436 two extra empty pages in PDF output.
33437
33438 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
33439
33440 PR objc/47078
33441 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
33442 for error recovery purposes behave as if it was not specified so
33443 that the default type is usd.
33444
33445 2011-01-07 Jan Hubicka <jh@suse.cz>
33446
33447 PR tree-optmization/46469
33448 * ipa.c (function_and_variable_visibility): Clear needed flags on
33449 nodes with external decls; handle weakrefs merging correctly.
33450
33451 2011-01-07 Joseph Myers <joseph@codesourcery.com>
33452
33453 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
33454 not false.
33455
33456 2011-01-07 Jan Hubicka <jh@suse.cz>
33457
33458 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
33459 and no longer claim that gold is required for linker plugin.
33460 * configure: Regenerate.
33461 * gcc.c (PLUGIN_COND): New macro.
33462 (LINK_COMMAND_SPEC): Use it.
33463 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
33464 * config.in (HAVE_LTO_PLUGIN): New.
33465 * configure.ac (--with-lto-plugin): New parameter; autodetect
33466 HAVE_LTO_PLUGIN.
33467
33468 2011-01-07 Jan Hubicka <jh@suse.cz>
33469
33470 PR tree-optimization/46367
33471 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
33472 when we can update original.
33473 (cgraph_mark_inline_edge): Sanity check.
33474 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
33475
33476 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33477
33478 * config/spu/spu.h (ASM_COMMENT_START): Define.
33479
33480 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
33481
33482 PR driver/42445
33483 * gcc.c (%>S): New.
33484 (SWITCH_KEEP_FOR_GCC): Likewise.
33485 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
33486 (do_spec_1): Handle "%>".
33487
33488 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
33489
33490 2011-01-07 Jakub Jelinek <jakub@redhat.com>
33491
33492 PR target/47201
33493 * config/i386/i386.c (ix86_delegitimize_address): If
33494 simplify_gen_subreg fails, return orig_x.
33495
33496 PR bootstrap/47187
33497 * value-prof.c (gimple_stringop_fixed_value): Handle
33498 lhs of the call properly.
33499
33500 2011-01-07 Jan Hubicka <jh@suse.cz>
33501
33502 PR lto/45375
33503 * lto-opt.c (lto_reissue_options): Set flag_shlib.
33504
33505 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
33506
33507 * target.def (function_switched_text_sections): New hook.
33508 * doc/tm.texi: Regenerated.
33509 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
33510 * final.c (default_function_switched_text_sections): New.
33511 (final_scan_insn): Call function_switched_text_sections when a
33512 mid-function section change occurs.
33513 * output.h (default_function_switched_text_sections): Declare.
33514 * config/darwin-protos.h (darwin_function_switched_text_sections):
33515 Likewise.
33516 * config/darwin.c (darwin_function_switched_text_sections): New.
33517 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
33518
33519 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
33520
33521 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
33522 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
33523 the secondary code fragment when outputting for DWARF == 2.
33524
33525 2011-01-07 Anatoly Sokolov <aesok@post.ru>
33526
33527 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
33528 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
33529 Remove.
33530 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
33531 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
33532
33533 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
33534
33535 PR debug/46704
33536 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
33537 when it is not empty.
33538
33539 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
33540
33541 Bobcat Enablement
33542 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
33543 (case ${target}): Add btver1.
33544 * config/i386/driver-i386.c (host_detect_local_cpu): Let
33545 -march=native recognize btver1 processors.
33546 * config/i386/i386-c.c (ix86_target_macros_internal): Add
33547 btver1 def_and_undef
33548 * config/i386/i386.c (struct processor_costs btver1_cost): New
33549 btver1 cost table.
33550 (m_BTVER1): New definition.
33551 (m_AMD_MULTIPLE): Includes m_BTVER1.
33552 (initial_ix86_tune_features): Add btver1 tune.
33553 (processor_target_table): Add btver1 entry.
33554 (static const char *const cpu_names): Add btver1 entry.
33555 (software_prefetching_beneficial_p): Add btver1.
33556 (ix86_option_override_internal): Add btver1 instruction sets.
33557 (ix86_issue_rate): Add btver1.
33558 (ix86_adjust_cost): Add btver1.
33559 * config/i386/i386.h (TARGET_BTVER1): New definition.
33560 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
33561 (enum processor_type): Add PROCESSOR_BTVER1.
33562 * config/i386/i386.md (define_attr "cpu"): Add btver1.
33563
33564 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33565
33566 PR target/43309
33567 * config/i386/i386.c (legitimize_tls_address)
33568 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
33569 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
33570 (tls_initial_exec_64_sun): New pattern.
33571
33572 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
33573
33574 * doc/invoke.texi (Overall Options): Improve wording and markup
33575 of the description of -wrapper.
33576
33577 2011-01-06 Joseph Myers <joseph@codesourcery.com>
33578
33579 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
33580 rdynamic, threads): New Driver options.
33581
33582 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33583
33584 PR target/38118
33585 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
33586 if coming from .tdata.
33587 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
33588
33589 2011-01-06 Jan Hubicka <jh@suse.cz>
33590
33591 PR lto/47188
33592 * collect2.c (main): Do not enable LTOmode when plugin is active.
33593
33594 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33595
33596 PR other/45915
33597 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
33598 --version output if supported.
33599 * configure: Regenerate.
33600
33601 2011-01-06 Joseph Myers <joseph@codesourcery.com>
33602
33603 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
33604 Driver options.
33605
33606 2011-01-06 Jakub Jelinek <jakub@redhat.com>
33607
33608 PR c/47150
33609 * c-convert.c (convert): When converting a complex expression
33610 other than COMPLEX_EXPR to a different complex type, ensure
33611 c_save_expr is called instead of save_expr, unless in_late_binary_op.
33612 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
33613 when converting COMPLEX_TYPE.
33614
33615 2011-01-06 Ira Rosen <irar@il.ibm.com>
33616
33617 PR tree-optimization/47139
33618 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
33619 only the last reduction value is used outside the loop. Update
33620 documentation.
33621
33622 2011-01-05 Joseph Myers <joseph@codesourcery.com>
33623
33624 * config/rtems.opt: New.
33625 * config.gcc (*-*-rtems*): Use rtems.opt.
33626
33627 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
33628
33629 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
33630 processors do not support 3DNow instructions.
33631
33632 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33633
33634 * config/spu/spu.c (spu_option_override): Set parameter
33635 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
33636
33637 2011-01-05 Jan Hubicka <jh@suse.cz>
33638
33639 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
33640 at the command line.
33641
33642 2011-01-05 Martin Jambor <mjambor@suse.cz>
33643
33644 PR lto/47162
33645 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
33646 deltas on streamed outgoing edges.
33647 (output_node_opt_summary): Output info for outgoing edges only when
33648 the node is in new parameter set.
33649 (output_cgraph_opt_summary): New parameter set, passed to the two
33650 aforementioned functions. Update its forward declaration and its
33651 callee too.
33652
33653 2011-01-05 Tom Tromey <tromey@redhat.com>
33654
33655 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
33656 operator to c_finish_omp_atomic.
33657 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
33658 (build_unary_op): Update.
33659 (build_modify_expr): Update.
33660 (build_asm_expr): Update.
33661
33662 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33663
33664 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
33665 newly inserted insns.
33666 (pad_bb): Likewise.
33667 (spu_emit_branch_hint): Likewise.
33668 (insert_hbrp_for_ilb_runout): Likewise.
33669 (spu_machine_dependent_reorg): Call df_finish_pass after
33670 schedule_insns returns.
33671
33672 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33673
33674 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
33675
33676 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
33677
33678 PR tree-optimization/47005
33679 * tree-sra.c (struct access): Add 'non_addressable' bit.
33680 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
33681 (decide_one_param_reduction): Return 0 if the parameter is passed by
33682 reference and one of the accesses in the group is non_addressable.
33683
33684 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
33685
33686 PR tree-optimization/47056
33687 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
33688 (mark_load): Likewise. Handle FUNCTION_DECL specially.
33689 (mark_store): Likewise. Pass STMT to ipa_record_reference.
33690
33691 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
33692
33693 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
33694 initializer. Skip view conversions from aggregate types.
33695
33696 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
33697
33698 PR bootstrap/47055
33699 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
33700
33701 2011-01-04 Philipp Thomas <pth@suse.de>
33702
33703 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
33704 obvious typo.
33705
33706 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33707
33708 * function.c (thread_prologue_and_epilogue_insns): Do not crash
33709 on empty epilogue sequences.
33710
33711 2011-01-04 Joseph Myers <joseph@codesourcery.com>
33712
33713 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
33714 non-static): New Driver options.
33715
33716 2011-01-04 Jie Zhang <jie@codesourcery.com>
33717
33718 PR driver/47137
33719 * gcc.c (default_compilers[]): Set combinable field to 0
33720 for all assembly languages.
33721
33722 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
33723
33724 * config/mips/loongson3a.md: New file.
33725 * config/mips/mips.md: Include loongson3a.md.
33726 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
33727 TUNE_LOONGSON_3A.
33728
33729 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
33730
33731 PR middle-end/47017
33732 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
33733 instead of convert_memory_address_addr_space on the base expression.
33734
33735 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33736
33737 * config/spu/spu.c (spu_option_override): Update error text
33738 for bad -march= / -mtune= values.
33739
33740 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33741
33742 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
33743 if branch-hint optimization will be performed.
33744
33745 2011-01-03 Jakub Jelinek <jakub@redhat.com>
33746
33747 PR tree-optimization/47148
33748 * ipa-split.c (split_function): Convert arguments to
33749 DECL_ARG_TYPE if possible.
33750
33751 PR tree-optimization/47155
33752 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
33753 when computing uns.
33754
33755 PR rtl-optimization/47157
33756 * combine.c (try_combine): If undobuf.other_insn becomes
33757 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
33758 and set *new_direct_jump_p too.
33759
33760 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
33761
33762 PR tree-optimization/47021
33763 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
33764
33765 2011-01-03 Jakub Jelinek <jakub@redhat.com>
33766
33767 * gcc.c (process_command): Update copyright notice dates.
33768 * gcov.c (print_version): Likewise.
33769 * gcov-dump.c (print_version): Likewise.
33770 * mips-tfile.c (main): Likewise.
33771 * mips-tdump.c (main): Likewise.
33772
33773 2011-01-03 Martin Jambor <mjambor@suse.cz>
33774
33775 PR tree-optimization/46801
33776 * tree-sra.c (type_internals_preclude_sra_p): Check whether
33777 aggregate fields start at byte boundary instead of the bit-field flag.
33778
33779 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
33780
33781 PR driver/47137
33782 * gcc.c (main): Revert revision 168407.
33783
33784 2011-01-03 Martin Jambor <mjambor@suse.cz>
33785
33786 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
33787
33788 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33789
33790 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
33791 vector optab to expand vector/scalar shift, update gimple to vector.
33792
33793 2011-01-03 Martin Jambor <mjambor@suse.cz>
33794
33795 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
33796 a thunk.
33797
33798 2011-01-03 Martin Jambor <mjambor@suse.cz>
33799
33800 PR tree-optimization/46984
33801 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
33802 HOST_WIDE_INT.
33803 (cgraph_create_indirect_edge): Fixed line length.
33804 (cgraph_indirect_call_info): Declare.
33805 (cgraph_make_edge_direct) Update declaration.
33806 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
33807 (cgraph_create_indirect_edge): Use it.
33808 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
33809 callees.
33810 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
33811 the new thunk_delta representation.
33812 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
33813 HOST_WIDE_INT.
33814 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
33815 (ipa_read_indirect_edge_info): Likewise.
33816 * lto-cgraph.c (output_edge_opt_summary): New function.
33817 (output_node_opt_summary): Call it on all outgoing edges.
33818 (input_edge_opt_summary): New function.
33819 (input_node_opt_summary): Call it on all outgoing edges.
33820
33821 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
33822
33823 PR driver/47137
33824 * gcc.c (main): Don't check have_o when settting combine_inputs.
33825
33826 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
33827
33828 * regrename.c: Add general comment describing the pass.
33829 (struct du_head): Remove 'length' field.
33830 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
33831 (regrename_optimize): Do not sort chains. Rework comments, add others.
33832 Force renaming to the preferred class (if any) in the first pass and do
33833 not consider registers that belong to it in the second pass.
33834 (create_new_chain): Do not set 'length' field.
33835 (scan_rtx_reg): Likewise.
33836
33837 2011-01-02 Jakub Jelinek <jakub@redhat.com>
33838
33839 PR tree-optimization/47140
33840 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
33841 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
33842 to bit_value_binop.
33843
33844 PR rtl-optimization/47028
33845 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
33846 parm_birth_insn instead of at the beginning of first bb.
33847
33848 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
33849
33850 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
33851 Remove the word "see" before "@pxref".
33852 * doc/rtl.texi: Remove the word "see" before "@pxref".
33853
33854 2011-01-01 Jan Hubicka <jh@suse.cz>
33855
33856 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
33857 memory.
33858
33859 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
33860
33861 PR target/38662
33862 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
33863
33864 \f
33865 Copyright (C) 2011 Free Software Foundation, Inc.
33866
33867 Copying and distribution of this file, with or without modification,
33868 are permitted in any medium without royalty provided the copyright
33869 notice and this notice are preserved.