Add vcond/vcondu patterns to sparc backend.
[gcc.git] / gcc / ChangeLog
1 2011-11-01 David S. Miller <davem@davemloft.net>
2
3 * config/sparc/sparc.c (sparc_expand_vcond): New function.
4 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
5 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
6 (vconduv8qiv8qi): Likewise.
7
8 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
9
10 PR debug/50869
11 * cselib.c (cfa_base_preserved_regno): Initialize.
12 (cselib_expand_value_rtx_1): Don't expand it.
13 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
14 Check it's only zero if result is NULL.
15
16 2011-11-01 Jakub Jelinek <jakub@redhat.com>
17
18 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
19 expander.
20
21 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
22 (sseintvecmodelower): New mode iterator.
23 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
24 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
25 (floatunsv4siv4sf2): Macroize into...
26 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
27
28 2011-10-31 David S. Miller <davem@davemloft.net>
29
30 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
31
32 * dwarf2out.c (cached_next_real_insn): New.
33 (dwarf2out_end_epilogue): Set it to NULL_RTX.
34 (dwarf2out_var_location): Remove cached_next_real_insn local static.
35
36 2011-10-31 Richard Henderson <rth@redhat.com>
37
38 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
39 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
40 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
41 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
42 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
43 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
44 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
45 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
46 * config/i386/i386.md (splitters for int-float conversion): Likewise.
47 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
48 (bdesc_args): Likewise.
49 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
50 (ix86_vectorize_builtin_conversion): Remove.
51 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
52
53 2011-10-31 Martin Jambor <mjambor@suse.cz>
54
55 * ipa-prop.c (mark_modified): Moved up in the file.
56 (is_parm_modified_before_call): Renamed to
57 is_parm_modified_before_stmt, moved up in the file.
58 (load_from_unmodified_param): New function.
59 (compute_complex_assign_jump_func): Also attempt to create pass
60 through jump functions for values loaded from (addressable)
61 parameters.
62
63 2011-10-31 Jakub Jelinek <jakub@redhat.com>
64
65 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
66 in a loop and has different type from op0, cast it to op0's type
67 before the loop first. For slp give up. Don't crash if op1_vectype
68 is NULL.
69
70 2011-10-31 Paul Brook <paul@codesourcery.com>
71
72 * cgraphunit.c: Don't mark clones as static constructors.
73
74 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
75
76 * gcc-ar: Do not include stdio.h.
77
78 2011-10-31 Diego Novillo <dnovillo@google.com>
79
80 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
81 TYPE_ADDR_SPACE.
82 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
83 TYPE_ADDR_SPACE.
84
85 2011-10-30 David S. Miller <davem@davemloft.net>
86
87 * config/sparc/sparc.c (vector_init_bshuffle): New function.
88 (vector_init_fpmerge): New function.
89 (sparc_expand_vector_init): Use them to improve non-const cases.
90
91 * dwarf2out.c (dwarf2out_var_location): When processing several
92 consecutive location notes, cache the result of next_real_insn().
93
94 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
95
96 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
97 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
98 (vec_dupv4sf): Remove expander.
99 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
100 (vec_dupv2df): Remove expander.
101 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
102 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
103 (*vec_dupv4si): Merge *vec_dupv4si_avx.
104 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
105
106 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
107
108 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
109 * optabs.c (supportable_convert_operation): New function.
110 * optabs.h (supportable_convert_operation): New prototype.
111 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
112 behavior for NONE modifier case.
113 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
114
115 2011-10-30 Jakub Jelinek <jakub@redhat.com>
116
117 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
118 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
119 function.
120 (vect_vect_recog_func_ptrs): Add it.
121
122 2011-10-30 David S. Miller <davem@davemloft.net>
123
124 * reorg.c (label_before_next_insn): New function.
125 (relax_delay_slots): Use it instead of prev_label.
126 * rtl.h (prev_label): Delete declaration.
127 * emit-rtl.c (prev_label): Remove.
128
129 2011-10-30 Revital Eres <revital.eres@linaro.org>
130
131 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
132 as BB_DISABLE_SCHEDULE.
133 (mark_loop_unsched): New function.
134 (sms_schedule): Call it.
135
136 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
137
138 PR target/50617
139 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
140 (cmpib_comparison_operator): Likewise.
141 (following_cal, output_and, output_ior, output_move_double,
142 output_fp_move_double, output_block_move, output_block_clear,
143 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
144 output_movb, output_parallel_movb, output_parallel_addb, output_call,
145 output_indirect_call, output_millicode_call, output_mul_insn,
146 output_div_insn, output_mod_insn, singlemove_string,
147 output_arg_descriptor, output_global_address, print_operand,
148 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
149 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
150 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
151 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
152 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
153 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
154 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
155 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
156 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
157 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
158 exported functions and variables with "pa_".
159 * config/pa/predicates.md: Likewise.
160 * config/pa/pa64-hpux.h: likewise.
161 * config/pa/som.h: Likewise.
162 * config/pa/elf.h: Likewise.
163 * config/pa/pa64-linux.h: Likewise.
164 * config/pa/pa.md: Likewise.
165 * config/pa/pa.c: Likewise.
166 * config/pa/pa-linux.h: Likewise.
167 * config/pa/pa.h: Likewise.
168 * config/pa/constraints.md: Likewise.
169
170 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
171
172 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
173 Update all uses.
174 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
175 * config/i386/i386.c: Update all uses.
176
177 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
178
179 * config/i386/i386.md (lshlv16qi3): Remove expander.
180 (lshrv16qi3): New expander.
181 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
182 using any_shiftrt code iterator. Cleanup.
183 (ashlv16qi3): Cleanup.
184 (ashrv2di3): Ditto.
185
186 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
187
188 PR target/50691
189 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
190 references.
191 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
192 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
193
194 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
195
196 PR target/50887
197 * config/avr/avr.opt (-maccumulate-args): New option.
198 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
199 avr_starting_frame_offset.
200 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
201 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
202 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
203 (UNSPECV_WRITE_SP): New constant.
204 (*addhi3_sp_R): Rewrite to...
205 (*addhi3_sp): ...this new insn.
206 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
207 (movhi_sp_r): ...this new insn.
208 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
209 (avr_starting_frame_offset): New.
210 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
211 (avr_starting_frame_offset): New function.
212 (avr_outgoing_args_size): New static function.
213 (avr_initial_elimination_offset): Use it.
214 (avr_simple_epilogue): Use it.
215 (avr_asm_function_end_prologue): Use it.
216 (expand_epilogue): Use it.
217 (expand_prologue): Use it. Break out code to...
218 (avr_prologue_setup_frame): ...this new static function.
219 (avr_can_eliminate): Allow eliminating to frame pointer if there
220 is one.
221 (avr_frame_pointer_required_p): Use frame pointer if target has a
222 nonlocal label.
223 * config/avr/constraints.md (R): Remove.
224 (Csp): New constraint.
225 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
226
227 2011-10-29 Andi Kleen <ak@linux.intel.com>
228
229 * gcc-ar.c (target_machine): Add.
230
231 2011-10-29 Anatoly Sokolov <aesok@post.ru>
232
233 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
234 cris_constant_index_p, cris_base_p, cris_index_p,
235 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
236 cris_legitimate_address_p): New functions.
237 (TARGET_LEGITIMATE_ADDRESS_P): Define.
238 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
239 from rtx to const_rtx.
240 (cris_print_operand_address, cris_address_cost,
241 cris_side_effect_mode_ok): Use
242 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
243 cris_biap_index_p and cris_bdap_index_p.
244 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
245 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
246 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
247 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
248 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
249 cris_biap_index_p and cris_bdap_index_p.
250 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
251 cris_base_p.
252 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
253 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
254 prototype.
255 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
256
257 2011-10-21 Andi Kleen <ak@linux.intel.com>
258
259 * ggc-page (PAGE_ALIGN): Add.
260 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
261 Replace ROUND_UP with PAGE_ALIGN.
262
263 2011-10-20 Andi Kleen <ak@linux.intel.com>
264
265 * ggc-page (alloc_anon): Add check argument.
266 (alloc_page): Add fallback to 1 page allocation.
267 Adjust alloc_anon calls to new argument.
268
269 2011-10-18 Andi Kleen <ak@linux.intel.com>
270
271 * ggc-page (release_pages): First free large continuous
272 chunks in the madvise path.
273
274 2011-10-18 Andi Kleen <ak@linux.intel.com>
275
276 * ggc-page.c (alloc_pages): Always round up entry_size.
277
278 2011-10-19 Andi Kleen <ak@linux.intel.com>
279
280 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
281 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
282 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
283 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
284 (install): Depend on install-gcc-ar.
285 (install-gcc-ar): Add.
286 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
287 * gcc-ar.c: Add new file.
288
289 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
290
291 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
292 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
293 type for V2DF.
294 (VStype_div): Use vector types for V2DF/V4SF.
295 (VStype_sqrt): Use *sqrt types.
296 (VS_spdp_type): Change type to vecdouble.
297 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
298 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
299 vsx_xvcvspuxds): Likewise.
300 (*vsx_fms<mode>4): Set type via <VStype_mul>.
301 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
302 <VStype_simple>.
303 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
304 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
305 power7-dsqrt): Correct insn latency.
306 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
307 (power7-veccmp): Delete.
308 (power7-vecfloat): Correct latency/dispatch/VSU values.
309 (define_bypass "power7-vecfloat"): Correct latency and types.
310 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
311 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
312
313 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
314
315 * config/i386/i386.md (shift_insn): Rename code attribute from
316 shiftrt_insn. Also handle ashift RTX.
317 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
318 (vshift): New code attribute.
319 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
320 (any_lshift): Move and rename code iterator from ...
321 * config/i386/sse.md (lshift): ... here.
322 (lshift_insn): Remove code attribute.
323 (lshift): Remove code attribute.
324 (vlshr<mode>3): Use lshiftrt RTX.
325 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
326 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
327 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
328 any_lshift code iterator. Update asm template.
329 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
330 usign any_lshift code iterator.
331 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
332 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
333 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
334
335 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
336
337 PR target/49313
338 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
339 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
340 to the libgcc insn.
341 (*parityqihi2): Same for 8-bit parity.
342
343 2011-10-28 Julian Brown <julian@codesourcery.com>
344
345 PR rtl-optimization/47918
346 * reload1.c (set_initial_label_offsets): Use initial offsets
347 for labels on the nonlocal_goto_handler_labels chain.
348
349 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
350
351 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
352 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
353 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
354 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
355 config/t-darwin.
356 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
357 (GP_SAVE_INLINE): Likewise.
358 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
359 RESTORE_FP_SUFFIX): Set to empty strings.
360 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
361 (debug_stack_info): Print savres_strategy.
362 (rs6000_savres_routine_name): Implement for Darwin.
363 (rs6000_make_savres_rtx): Adjust used register for Darwin.
364 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
365 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
366 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
367 * config/rs6000/darwin-gpsave.asm: New file.
368
369 2011-10-28 Jakub Jelinek <jakub@redhat.com>
370
371 * config/i386/sse.md (VI4SD_AVX2): Removed.
372 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
373 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
374 Add another expander using VI48_128 iterator for
375 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
376 for TARGET_AVX2.
377 (vlshr<mode>3): Likewise. Change register_operand predicate to
378 nonimmediate_operand on last operand in the VI12_128 expander.
379 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
380 (vashrv4si3, vashrv8si3): New expanders.
381 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
382 avx2_<lshift>vv2di): Removed.
383 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
384 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
385 iterator. Simplify pattern.
386
387 2010-10-28 Richard Guenther <rguenther@suse.de>
388
389 PR driver/50876
390 * lto-wrapper.c (get_options_from_collect_gcc_options):
391 Properly count arguments.
392 (run_gcc): Use an obstack to collect argv, properly separate
393 switches and their arguments.
394
395 2011-10-28 Jakub Jelinek <jakub@redhat.com>
396
397 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
398 vector mode from vectype's mode.
399
400 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
401
402 PR rtl-optimization/49720
403 * simplify-rtx.c (simplify_relational_operation_1): Detect
404 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
405 simplifies to (eq/ne x (cst2 - cst1))" case.
406
407 2011-10-27 David S. Miller <davem@davemloft.net>
408
409 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
410 (*snedi_zero): Likewise.
411 (*snedi_zero_trunc): Likewise.
412 (snedi_special_vis3): New expander.
413 (*snedi_zero_vis3): New insn.
414 (*snedi_zero_trunc_vis3): Likewise.
415 (*sltu_insn_vis3): Likewise.
416 (*sltu_insn_vis3_trunc): Likewise.
417 (addxc): Likewise.
418 (*addxc_trunc_sp64_vis3): Likewise.
419 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
420 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
421 sequences on DImode values.
422
423 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
424 constraint.
425
426 * regcprop.c (copyprop_hardreg_forward_1): Reject the
427 transformation when we narrow the mode on big endian.
428
429 2011-10-27 Jakub Jelinek <jakub@redhat.com>
430
431 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
432 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
433 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
434
435 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
436 overrides for -masm=intel memory.
437 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
438 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
439 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
440 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
441 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
442 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
443 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
444
445 2011-10-27 Martin Jambor <mjambor@suse.cz>
446
447 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
448 to parm_ainfo.
449 (ipa_compute_jump_functions_for_edge): Likewise.
450 (ipa_compute_jump_functions): Likewise.
451 (ipa_analyze_indirect_call_uses): Likewise.
452 (ipa_analyze_call_uses): Likewise.
453 (ipa_analyze_params_uses): Likewise.
454 (ipa_analyze_node): Likewise.
455
456 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
457
458 PR target/50875
459 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
460 constraints. Change alternative 1 to "x,m,1".
461
462 2011-10-27 Jakub Jelinek <jakub@redhat.com>
463
464 * Makefile.in (build/gencheck.o): Depend on tree.def and
465 c-family/c-common.def.
466
467 * tree-ssa-strlen.c: Include expr.h.
468 (get_stridx): Don't use c_strlen, instead use string_constant
469 and compute string length from it.
470 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
471
472 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
473
474 PR rtl-optimization/46603
475 PR bootstrap/50879
476 * reload.c (push_reload): In the out case, restore previous behavior
477 for subregs that don't have word mode.
478
479 2011-10-27 Ian Lance Taylor <iant@google.com>
480
481 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
482 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
483 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
484 defined.
485
486 2011-10-27 Richard Henderson <rth@redhat.com>
487
488 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
489 selector. Save the qimode constant selector for later use by the
490 qimode vec_perm pattern.
491
492 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
493
494 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
495 to unit_req_factor to the right enum type.
496 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
497 hwloop_optimize): Remove unused variables.
498
499 2010-10-27 Richard Guenther <rguenther@suse.de>
500
501 PR middle-end/50731
502 * tree-vect-generic.c (do_binop): Handle scalar operands.
503
504 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
505
506 PR target/37191
507 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
508 from different units in a single alternative.
509
510 2011-10-26 David S. Miller <davem@davemloft.net>
511
512 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
513 if we're comparing DImode and comparison is other than EQ or NE.
514
515 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
516 LEU/LTU/GEU/GTU is attempted.
517 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
518 and split.
519 (*neg_seqsi_sign_extend): Likewise.
520 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
521 *neg_sgeu_extend_sp64): New insns.
522
523 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
524 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
525 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
526 (*mov<I:mode>_cc_reg_sp64): Likewise.
527 (*movsf_cc_v9): Likewise.
528 (*movsf_cc_reg_sp64): Likewise.
529 (*movdf_cc_v9): Likewise.
530 (*movdf_cc_reg_sp64): Likewise.
531 (*movtf_cc_hq_v9): Likewise.
532 (*movtf_cc_reg_hq_sp64): Likewise.
533 (*movtf_cc_v9): Likewise.
534 (*movtf_cc_reg_sp64): Likewise.
535 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
536 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
537
538 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
539
540 * reload.c (reload_inner_reg_of_subreg): Change type of return value
541 and type of OUTPUT parameter to bool and adjust. Document MODE and
542 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
543 and improve associated comment.
544 (push_reload): Clarify and update comments about reloading of subregs.
545 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
546 for the reloading of subregs in the out case as well.
547
548 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
549
550 PR debug/50826
551 * var-tracking.c (rtx_debug_expr_p): New.
552 (use_type): Don't use debug exprs to track non-VTA variables.
553
554 2011-10-26 Jeff Law <law@redhat.com>
555
556 * doc/invoke.texi (sink-frequency-threshold): Document.
557 * tree-ssa-sink.c: Include params.h.
558 (select_best_block): New function.
559 (statement_sink_location): Use it.
560 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
561
562 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
563
564 PR target/48108
565 * config/darwin.c (top level): Amend comments concerning LTO output.
566 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
567 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
568 (LTO_NAMES_SECTION): Rename.
569 (darwin_asm_named_section): Record LTO section counts and switches
570 in a vec of darwin_lto_section_e.
571 (darwin_file_start): Remove unused code.
572 (darwin_file_end): Put an LTO section termination label. Handle
573 output of the wrapped LTO sections, index and names table.
574
575 2011-10-26 Alan Modra <amodra@gmail.com>
576
577 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
578 declaration.
579 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
580 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
581 simple_return in pattern, emit instruction, and set jump_label.
582 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
583 simple_return rather than return.
584 (emit_cfa_restores): New function.
585 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
586 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
587 when using out-of-line gpr restore. Add missing LR and FP regs
588 cfa_restores for out-of-line fpr restore. Consolidate code setting
589 up cfa_restores. Formatting. Use LR_REGNO define.
590 (rs6000_output_mi_thunk): Use simple_return rather than return.
591 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
592 (return_internal*): Likewise.
593 (any_return, return_pred, return_str): New iterators.
594 (return, conditional return insns): Provide both return and
595 simple_return variants.
596 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
597 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
598 Move r11 and r0 later to suit shrink-wrapping.
599
600 2011-10-26 Richard Guenther <rguenther@suse.de>
601
602 * lto-wrapper.c (run_gcc): Properly init/free obstack.
603
604 2011-10-26 Jakub Jelinek <jakub@redhat.com>
605
606 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
607 * config/i386/predicates.md (vsib_address_operand,
608 vsib_mem_operator): New predicates.
609 * config/i386/i386.c (ix86_print_operand_address): Handle
610 UNSPEC_VSIBADDR addresses.
611 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
612 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
613 UNSPEC_VSIBADDR address.
614 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
615 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
616
617 2011-10-26 Tom de Vries <tom@codesourcery.com>
618
619 PR tree-optimization/50763
620 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
621 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
622
623 2011-10-26 Richard Guenther <rguenther@suse.de>
624
625 PR lto/41844
626 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
627 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
628 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
629 (run_gcc): Use it. Filter out language specific options.
630
631 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
632
633 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
634 32-bit target does.
635
636 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
637
638 PR driver/46617
639 * gcc.c (main): Fix fatal_error string for translation.
640
641 2011-10-25 Ian Lance Taylor <iant@google.com>
642
643 * tree-eh.c (do_return_redirection): Remove return_value_p
644 parameter. Change all callers.
645 (lower_try_finally_nofallthru): Remove local return_val.
646 (lower_try_finally_onedest): Likewise.
647 (lower_try_finally_copy): Likewise.
648 (lower_try_finally_switch): Likewise.
649
650 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
651
652 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
653 remove "&& !TARGET_64BIT"
654 (*mmx_maskmovq_rex): Removed.
655
656 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
657
658 PR rtl-optimization/46603
659 * reload.c (push_reload): In the out case, reload the subreg as well
660 as the reg if it has word mode.
661
662 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
663
664 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
665 suppress debug info for the parent type.
666
667 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
668
669 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
670
671 2011-10-25 Richard Henderson <rth@redhat.com>
672
673 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
674 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
675
676 * config/rs6000/altivec.md (vec_extract_evenv8hi,
677 vec_extract_evenv16qi, vec_extract_oddv4si,
678 vec_extract_oddv4sf): Remove.
679
680 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
681 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
682 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
683 vec_interleave_highv4sf, vec_interleave_lowv4sf,
684 vec_interleave_highv4si, vec_interleave_lowv4si,
685 vec_interleave_highv8hi, vec_interleave_lowv8hi,
686 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
687
688 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
689 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
690 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
691 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
692 vec_interleave_low_optab, vec_extract_even_optab,
693 vec_extract_odd_optab with expand_vec_perm.
694 (can_vec_perm_for_code_p): New.
695 * optabs.h: Update.
696 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
697 fallback via can_vec_perm_for_code_p.
698 (vect_strided_load_supported): Likewise.
699 * tree-vect-generic.c (expand_vector_operations_1): Never lower
700 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
701 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
702
703 * target.def (vec_perm_const_ok): Change parameters to mode and
704 array of indicies.
705 * doc/tm.texi: Rebuild.
706 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
707 parameters to mode and array of indicies.
708 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
709 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
710 Change parameters to mode and array of indicies.
711 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
712 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
713 parameters to mode and rtx inputs. Try lowering to QImode
714 vec_perm_const before trying fully variable permutation.
715 * optabs.h: Update decls.
716 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
717 VECTOR_CST to pass to can_vec_perm_p.
718 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
719 from int pointer to unsigned char pointer.
720 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
721 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
722
723 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
724 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
725 VEC_INTERLEAVE_LOW_EXPR): Likewise.
726
727 2011-10-25 Mike Stump <mikestump@comcast.net>
728
729 * reload.c (regno_clobbered_p): Fix typo.
730
731 2011-10-25 Dodji Seketeli <dodji@redhat.com>
732
733 * input.c (expand_location): Rewrite using linemap_resolve_location
734 and linemap_expand_location. Add a comment.
735
736 2011-10-25 Jakub Jelinek <jakub@redhat.com>
737
738 PR tree-optimization/50596
739 * tree-vect-stmts.c (vect_mark_relevant): Only use
740 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
741 (vectorizable_store): If is_pattern_stmt_p look through
742 VIEW_CONVERT_EXPR on lhs.
743 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
744 Use unsigned type instead of signed.
745 (vect_recog_bool_pattern): Optimize also stores into bool memory in
746 addition to casts from bool to integral types.
747 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
748 created, don't create it again.
749
750 2011-10-25 Kai Tietz <ktietz@redhat.com>
751
752 * config/i386/i386.c (ix86_frame_pointer_required): Require
753 frame-pointer, if setjmp is used for 32-bit ms-abi.
754
755 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
756
757 * builtins.c (set_builtin_user_assembler_name): Remove extra
758 newline added in October 11th, 2011 change.
759
760 2011-10-24 David S. Miller <davem@davemloft.net>
761
762 * config/sparc/little-endian.opt: Delete.
763 * config.gcc: Remove references to config/sparc/little-endian.opt
764 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
765 * config/sparc/linux64.h: Delete references to -mlittle-endian.
766 * config/sparc/netbsd-elf.h: Likewise.
767 * config/sparc/openbsd64.h: Likewise.
768 * config/sparc/sparc.h: Likewise.
769 * config/sparc/sp64-elf.h: Likewise and delete overrides for
770 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
771 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
772 to MASK_LITTLE_ENDIAN.
773 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
774
775 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
776 Only use D, Y, and Z constraints in vector insns.
777
778 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
779 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
780 called *movsi_insn.
781 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
782 into *movdi_insn_sp32.
783 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
784 one pattern called *movdi_insn_sp64.
785 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
786 Consolidate into one pattern called *movsf_insn.
787 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
788 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
789 into *movdf_insn_sp32.
790 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
791 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
792 *movdf_insn_sp64.
793 (*zero_extendsidi2_insn_sp64_novis3,
794 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
795 called *zero_extendsidi2_insn_sp64.
796 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
797 Consolidate into one pattern named *sign_extendsidi2_insn.
798 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
799 Consolidate into one pattern named *mov<VM32:mode>_insn.
800 (*mov<VM64:mode>_insn_sp64_novis3,
801 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
802 named *mov<VM64:mode>_insn_sp64.
803 (*mov<VM64:mode>_insn_sp32_novis3,
804 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
805 named *mov<VM64:mode>_insn_sp32.
806
807 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
808
809 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
810 (zero_length_string): Change assertion to accept strinfo without
811 length but with stmt instead.
812 Set the endptr pointer also if starting a new chain.
813 (adjust_related_strinfos): Ignore strinfos marked for delayed
814 length computation.
815 (handle_builtin_strcpy): Mark earlier strinfo elements also for
816 delayed length computation.
817
818 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
819
820 PR target/50820
821 Port from 4.6 branch r180379
822 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
823 handling and indirect jump/calls on devices > 128k.
824
825 2011-10-24 Anatoly Sokolov <aesok@post.ru>
826 Georg-Johann Lay <avr@gjlay.de>
827
828 PR target/49824
829 * doc/extend.texi (Declaring Attributes of Functions):
830 Document OS_main and OS_task attributes.
831 (Specifying Attributes of Variables): Move up
832 subsection "AVR Variable Attributes" as of alphabetical order.
833
834 2011-10-24 Richard Guenther <rguenther@suse.de>
835
836 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
837 to vector element type.
838 (vectorizable_assignment): Bail out for non-mode-precision operations.
839 (vectorizable_shift): Likewise.
840 (vectorizable_operation): Likewise.
841 (vectorizable_type_demotion): Likewise.
842 (vectorizable_type_promotion): Likewise.
843 (vectorizable_store): Handle non-mode-precision stores.
844 (vectorizable_load): Handle non-mode-precision loads.
845 (get_vectype_for_scalar_type_and_size): Return a vector type
846 for non-mode-precision integers.
847 * tree-vect-loop.c (vectorizable_reduction): Bail out for
848 non-mode-precision reductions.
849
850 2011-10-24 Julian Brown <julian@codesourcery.com>
851
852 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
853 setting CC_REVERSED for FP comparisons.
854
855 2011-10-24 Richard Guenther <rguenther@suse.de>
856
857 PR tree-optimization/50838
858 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
859 a MEM_REF base if we change it.
860
861 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
862
863 PR bootstrap/50836
864 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
865
866 PR rtl-optimization/50833
867 * function.c (thread_prologue_and_epilogue_insns): Expect the
868 return insn optimization only if optimize.
869
870 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
871
872 * config/avr/avr.c: Break long lines.
873 Define target hooks on the fly if applicable.
874 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
875 overridden later.
876 (targetm): Move definition to end of file.
877 (avr_can_eliminate): Make static on the fly.
878 (avr_frame_pointer_required_p): Ditto.
879 (avr_hard_regno_scratch_ok): Ditto.
880 (avr_builtin_setjmp_frame_value): Make static on the fly.
881 Indent according to coding rules.
882 (avr_case_values_threshold): Ditto.
883 (avr_attribute_table): Move down.
884
885 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
886
887 PR tree-optimization/50730
888 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
889 analysis if encountered unsupported data-ref.
890
891 2011-10-23 David S. Miller <davem@davemloft.net>
892
893 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
894 cpu adjustment.
895 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
896 append -mcpu=v9 when -mv8plus is given.
897
898 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
899 between float and non-float regs when VIS3.
900 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
901 use a restore when the source is a float register.
902 (sparc_split_regreg_legitimate): When VIS3 allow moves between
903 float and integer regs.
904 (sparc_register_move_cost): Adjust to account for VIS3 moves.
905 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
906 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
907 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
908 float and integer regs we sometimes need a FP_REGS class
909 intermediate move to satisfy the reload. When this happens
910 specify an extra cost of 2.
911 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
912 (*movdi_insn_sp32_v9): Likewise.
913 (*movdi_insn_sp64): Likewise.
914 (*movsf_insn): Likewise.
915 (*movdf_insn_sp32_v9): Likewise.
916 (*movdf_insn_sp64): Likewise.
917 (*zero_extendsidi2_insn_sp64): Likewise.
918 (*sign_extendsidi2_insn): Likewise.
919 (*movsi_insn_vis3): New insn.
920 (*movdi_insn_sp32_v9_vis3): New insn.
921 (*movdi_insn_sp64_vis3): New insn.
922 (*movsf_insn_vis3): New insn.
923 (*movdf_insn_sp32_v9_vis3): New insn.
924 (*movdf_insn_sp64_vis3): New insn.
925 (*zero_extendsidi2_insn_sp64_vis3): New insn.
926 (*sign_extendsidi2_insn_vis3): New insn.
927 (TFmode reg/reg split): Make sure both REG operands are float.
928 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
929 easy constant to integer reg alternatives.
930 (*mov<VM64:mode>_insn_sp64): Likewise.
931 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
932 (*mov<VM32:mode>_insn_vis3): New insn.
933 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
934 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
935 (VM64 reg<-->reg split): New splitter for 32-bit.
936
937 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
938 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
939 Declare it.
940 * config/sparc/sparc.md (DImode reg/reg split): Use it.
941 (DFmode reg/reg split): Likewise.
942
943 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
944 generating fzero and fone instructions.
945 (DImode const_int --> reg splitter): Only trigger for integer regs.
946
947 * config/sparc/predicates.md (input_operand): Disallow vector
948 constants other than 0 and -1.
949 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
950 NO_REGS for vector constants other than 0 and -1.
951
952 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
953 SPARC_INT_REG_P): Define.
954 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
955 (REGNO_OK_FOR_INDEX_P): Likewise.
956 * config/sparc/sparc.c (gen_df_reg): Likewise.
957 (eligible_for_return_delay): Likewise.
958 (eligible_for_sibcall_delay): Likewise.
959 (sparc_legitimate_address_p): Likewise.
960 (emit_save_or_restore_regs): Likewise.
961 (registers_ok_for_ldd_peep): Likewise.
962 * config/spac/sparc.md (DI mode splitters): Likewise.
963 (SF mode const splitters): Likewise.
964 (DF mode splitters): Likewise.
965 (32-bit DI mode logical op splitters): Likewise.
966
967 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
968
969 PR c++/50841
970 Revert:
971 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
972
973 PR c++/50810
974 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
975
976 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
977
978 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
979 (VI248_256): Remove mode iterator.
980 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
981 instead of gen_avx2_lshlv4di3.
982 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
983 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
984
985 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
986
987 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
988 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
989 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
990 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
991 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
992 iterator. Use sseintprefix mode attribute.
993 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
994 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
995 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
996 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
997 iterator. Use sseintprefix mode attribute.
998 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
999 attributes.
1000 (*avx2_gatherdi<mode>): Ditto.
1001 (*avx2_gatherdi<mode>256): Ditto.
1002 (VI48_AVX2): Remove mode iterator.
1003 (gthrlastfp): Remove mode attribute.
1004
1005 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1006
1007 PR c++/50810
1008 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1009
1010 2011-10-23 Tom de Vries <tom@codesourcery.com>
1011
1012 PR tree-optimization/50763
1013 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
1014 out of ...
1015 (same_succ_flush_bbs): Use same_succ_flush_bb.
1016 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
1017 release_last_vdef and delete_basic_block.
1018 (unlink_virtual_phi): New function.
1019 (update_vuses): Add and use vuse1_phi_args argument. Set var to
1020 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
1021 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
1022 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
1023 to limit replacement of uses. Propagate phi argument for phis with a
1024 single argument.
1025 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
1026 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
1027 vuse1_phi_args as argument to call to update_vuses. Call
1028 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
1029 CDI_DOMINATORS info.
1030 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
1031 call to free_dominance_info. Only call calculate_dominance_info once.
1032
1033 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
1034
1035 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
1036
1037 PR tree-optimization/44683
1038 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
1039 we can be sure that there are no signed zeros involved.
1040
1041 2011-10-23 Jan Hubicka <jh@suse.cz>
1042
1043 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
1044
1045 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
1046
1047 PR target/50788
1048 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
1049 Remove (match_dup 0).
1050 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
1051 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
1052 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
1053 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
1054 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
1055 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
1056
1057 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
1058
1059 PR tree-optimization/50819
1060 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
1061 the last argument.
1062 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
1063 vect_analyze_data_ref_dependences.
1064 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
1065 the last argument. Check load-after-store dependence for unknown
1066 dependencies in basic blocks.
1067 (vect_analyze_data_ref_dependences): Update call to
1068 vect_analyze_data_ref_dependences.
1069 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
1070 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
1071 (vect_slp_analyze_bb_1): Update call to
1072 vect_analyze_data_ref_dependences. Don't call
1073 vect_bb_vectorizable_with_dependencies.
1074
1075 2011-10-22 David S. Miller <davem@davemloft.net>
1076
1077 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
1078 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1079 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
1080 (sparc_secondary_reload): New function.
1081
1082 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
1083 (struct processor_costs): Move from here..
1084 * config/sparc/sparc.c (struct processor_costs): To here.
1085 (sparc_costs): Mark static.
1086
1087 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
1088 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
1089 Get rid of declarations.
1090
1091 2011-10-21 Paul Brook <paul@codesourcery.com>
1092
1093 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
1094 c6x_asm_init_sections): New functions.
1095 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
1096
1097 2011-10-21 Jakub Jelinek <jakub@redhat.com>
1098
1099 PR target/50813
1100 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
1101 V4DImode and V8SImode for !TARGET_AVX2.
1102
1103 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1104
1105 PR bootstrap/50825
1106 * sched-deps.c (add_dependence): If not doing predication, promote
1107 REG_DEP_CONTROL to REG_DEP_ANTI.
1108
1109 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
1110
1111 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
1112 instead of X to avr_legitimize_reload_address.
1113 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
1114 first argument's type from rtx to rtx*.
1115 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
1116 Pass PX to push_reload instead of &X. Change log messages for
1117 better distinction.
1118
1119 2011-10-21 Roland Stigge <stigge@antcom.de>
1120
1121 PR translation/47064
1122 * params.def: Fix typo "compilatoin" -> "compilation".
1123
1124 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
1125 Kirill Yukhin <kirill.yukhin@intel.com>
1126
1127 PR target/50740
1128 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
1129 if max_level allows that.
1130
1131 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1132
1133 * reg-notes.def (DEP_CONTROL): New.
1134 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
1135 not doing speculation.
1136 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
1137 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
1138 * function.c (record_hard_reg_sets, record_hard_reg_uses,
1139 record_hard_reg_uses_1): Remove; move to rtlanal.c.
1140 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
1141 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
1142 (MUST_RECOMPUTE_SPEC_P): New macro.
1143 (real_insn_for_shadow): New function.
1144 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
1145 toggle_cancelled_flags): New static functions.
1146 (schedule_insn): Relax an assert to only check for empty hard back
1147 dependencies. Skip cancelled dependencies. Call
1148 check_clobbered_conditions.
1149 (copy_insn_list): Remove function, renamed moved to lists.c.
1150 (save_backtrack_point): Use new spelling copy_INSN_LIST.
1151 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
1152 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
1153 (estimate_insn_tick): Ignore cancelled dependencies.
1154 (haifa_speculate_insn): Move declaration.
1155 (try_ready): Move code into recompute_todo_spec and call it. Tweak
1156 some asserts. Ensure predicated patterns are restored if necessary.
1157 Dump DEP_CONTROL flag.
1158 (haifa_change_pattern): Merge with sched_change_pattern.
1159 (sched_change_pattern): Remove function.
1160 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
1161 uses changed to simply not test NON_FLUSH_JUMP_P.
1162 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
1163 REG_DEP_CONTROL.
1164 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
1165 (reg_pending_control_uses, control_dependency_cache): New static
1166 variables.
1167 (sched_get_reverse_condition_uncached): New function.
1168 (sd_find_dep_between): Remove pointless assert. Look in
1169 control_dependency_cache.
1170 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
1171 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
1172 and control_dependency_cache.
1173 (sd_unresolve_dep): Use dep_spec_p.
1174 (add_dependence): Now a wrapper around add_dependence_1, handling
1175 REG_DEP_CONTROL specially.
1176 (flush_pending_lists): Clear pending_jump_insns.
1177 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
1178 (sched_analyze_2): Unconditionally add to pending memory flushes,
1179 keep previous behaviour but apply it to pending_jump_insns instead.
1180 (sched_analyze_insn): Defer adding jump reg dependencies using
1181 reg_pending_control_uses; add them to the control_uses list. Handle
1182 pending_jump_insns and control_uses when adding dependence lists.
1183 (deps_analyze_insn): Update INSN_COND_DEPS.
1184 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
1185 last_pending_memory_flush.
1186 (init_deps): Initialize pending_jump_insns.
1187 (free_deps): Free control_uses.
1188 (remove_from_deps): Remove from pending_jump_insns.
1189 (init_deps_global): Allocate reg_pending_control_uses).
1190 (finish_deps_global): Free it.
1191 (add_dependence_1): Renamed from add_dependence. Handle
1192 REG_DEP_CONTROL.
1193 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
1194 (copy_INSN_LIST, concat_INSN_LIST): Declare.
1195 * sched-int.h (struct deps_reg): Add control_uses.
1196 (struct deps_desc): Add pending_jump_insns.
1197 (struct _haifa_deps_insn_data): Add cond_deps.
1198 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
1199 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
1200 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
1201 (DEP_CONTROL): New macro.
1202 (DEP_TYPES): Include it.
1203 (HARD_DEP): Adjust definition.
1204 (DEP_CANCELLED): New macro.
1205 (enum SCHED_FLAGS): Add DO_PREDICATION.
1206 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
1207 * sched-rgn.c (concat_INSN_LIST): Remove function.
1208 (deps_join): Handle pending_jump_insns.
1209 (free_pending_lists): Likewise.
1210 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
1211 schedule.
1212
1213 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
1214
1215 PR target/50820
1216 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
1217 (__tablejump__): Consistently use EIND for indirect jump/call.
1218 (__tablejump_elpm__): Ditto.
1219
1220 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1221
1222 * config/c6x/c6x.md (attr "op_pattern"): New.
1223 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
1224 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
1225 Likewise.
1226 * config/c6x/c6x-mult.md: Regenerate.
1227 * config/c6x/c6x.c: Include "regrename.h".
1228 (unit_req_table): New typedef.
1229 (unit_reqs): Use it for the declaration.
1230 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
1231 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
1232 static functions.
1233 (count_unit_reqs): New arg reqs. All callers changed. Use
1234 get_unit_reqs, and don't merge here.
1235 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
1236 using unit_req_factor.
1237 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
1238 count_unit_reqs.
1239 (c6x_reorg): Add reg notes problem, and call df_analyze.
1240 * Makefile.in ($(out_object_file)): Depend on regrename.h.
1241
1242 2011-10-21 Kai Tietz <ktietz@redhat.com>
1243
1244 * fold-const.c (simple_operand_p_2): Handle integral
1245 casts from boolean-operands.
1246
1247 2011-10-21 Jan Hubicka <jh@suse.cz>
1248
1249 * cgraph.c (dump_cgraph_node): Dump alias flag.
1250 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
1251 no destination.
1252 (get_alias_symbol): New function.
1253 (output_weakrefs): Output also weakrefs with no destinatoin.
1254 (lto_output_node): Output weakref alias flag when at function boundary.
1255
1256 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
1257
1258 PR target/50809
1259 * config/arm/driver-arm.c (vendors): Make static.
1260
1261 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
1262
1263 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
1264 (ix86_emit_swsqrtsf): Force a into register.
1265
1266 2011-10-20 Mike Stump <mikestump@comcast.net>
1267
1268 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
1269 after validate_change wipes it out.
1270
1271 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1272
1273 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
1274 before using the shufb instruction.
1275
1276 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
1277
1278 PR target/50766
1279 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
1280 memory operand order.
1281 (bmi2_bzhi_<mode>3): Ditto.
1282 (bmi2_pdep_<mode>3): Ditto.
1283 (bmi2_pext_<mode>3): Ditto.
1284
1285 2011-10-20 Richard Henderson <rth@redhat.com>
1286
1287 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
1288 * optabs.c (can_vec_perm_expr_p): Update to match.
1289 (expand_vec_perm_expr): Likewise.
1290 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
1291 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
1292 * doc/tm.texi.in: Likewise.
1293
1294 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
1295
1296 PR target/50572
1297 * config/i386/i386.c (processor_target_table): Change Atom
1298 align_loops_max_skip to 15.
1299
1300 2011-10-20 Richard Henderson <rth@redhat.com>
1301
1302 * target.def (builtin_vec_perm): Remove.
1303 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1304
1305 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
1306 (IX86_BUILTIN_VEC_PERM_*): Remove.
1307 (bdesc_args): Remove vec_perm builtins
1308 (ix86_expand_builtin): Likewise.
1309 (ix86_expand_vec_perm_const_1): Rename from
1310 ix86_expand_vec_perm_builtin_1.
1311 (extract_vec_perm_cst): Merge into...
1312 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
1313 ix86_vectorize_builtin_vec_perm_ok.
1314 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1315
1316 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
1317 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1318
1319 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
1320 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1321
1322 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
1323
1324 PR target/47989
1325 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
1326 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
1327 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
1328 implements vectorized single float division and vectorized sqrtf(x)
1329 with reciprocal sequence with additional Newton-Raphson step with
1330 -ffast-math.
1331
1332 2011-10-20 Dodji Seketeli <dodji@redhat.com>
1333
1334 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
1335 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
1336 it was done in ggc-page.c.
1337
1338 PR other/50659
1339 * doc/cppopts.texi: Use @smallexample/@end smallexample in
1340 documentation for -fdebug-cpp instead of @quotation/@end quotation
1341 that is not supported by contrib/texi2pod.pl.
1342
1343 2011-10-19 Jan Hubicka <jh@suse.cz>
1344
1345 * ipa-inline.c (inline_small_functions): Always update all calles after
1346 inlining.
1347
1348 2011-10-19 Jan Hubicka <jh@suse.cz>
1349
1350 PR bootstrap/50709
1351 * ipa-inline.c (inline_small_functions): Fix checking code to not make
1352 effect on fibheap stability.
1353
1354 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
1355
1356 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
1357
1358 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1359
1360 PR target/50106
1361 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
1362 reg size from 1-3.
1363
1364 2011-10-20 Richard Guenther <rguenther@suse.de>
1365
1366 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
1367 and rotates to the set of expensive operations.
1368
1369 2011-10-19 David S. Miller <davem@davemloft.net>
1370
1371 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
1372 (sparc_emit_set_const32): Likewise.
1373 (sparc_emit_set_const64_longway): Likewise.
1374 (sparc_emit_set_const64): Likewise.
1375 (sparc_legitimize_pic_address): Likewise.
1376 (memory_ok_for_ldd): Likewise.
1377
1378 2011-10-20 Dehao Chen <dehao@google.com>
1379
1380 * profile.c (compute_branch_probabilities): Compute and dump the
1381 overlap between the static estimation and the instrumentation profile.
1382 (OVERLAP_BASE): New macro.
1383 (compute_frequency_overlap): New function
1384
1385 2011-10-19 Jakub Jelinek <jakub@redhat.com>
1386
1387 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
1388 d->op1 instead of d->op0 for the second vpshufb.
1389 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
1390 (ix86_expand_vec_perm_const): If mask indicates two operands are
1391 needed, but both are the same and expanding them as d.op0 == d.op1
1392 failed, retry with d.op0 != d.op1.
1393 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
1394 also for d.nelt == 32.
1395
1396 PR middle-end/50754
1397 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
1398 VEC_PERM_EXPR.
1399
1400 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
1401
1402 * regrename.h: New file.
1403 * regrename.c: Include it. Also include "emit-rtl.h".
1404 (struct du_head, struct du_chain, du_head_p DEF_VEC and
1405 DEF_VEC_ALLOC_P): Move to regrename.h.
1406 (do_replace): Remove declaration.
1407 (insn_rr): New variable.
1408 (cur_operand): New static variable.
1409 (regrename_chain_from_id): Renamed from chain_from_id and no longer
1410 static. All callers changed.
1411 (record_operand_use): New static function.
1412 (scan_rtx_reg): Use it.
1413 (find_best_rename_reg): New function, broken out of rename_chains.
1414 (rename_chains): Use it. Don't update chain regno and nregs here, ...
1415 (regrename_do_replace): ... do it here instead. Renamed from
1416 do_replace, and no longer static. All callers changed.
1417 (regrename_analyze): No longer static. New arg bb_mask.
1418 All callers changed. If bb_mask is nonzero, use it to limit the
1419 number of basic blocks we analyze. If we failed to analyze a block,
1420 clear insn operand data.
1421 (record_out_operands): New arg insn_info. Update cur_operand if it is
1422 nonnull.
1423 (build_def_use): If insn_rr is nonnull, pass an insn_info to
1424 record_out_operands, and update cur_operand here as well.
1425 (regrename_init, regrename_finish): New functions.
1426 (regrename_optimize): Use them.
1427 * Makefile.in (regrename.o): Adjust dependencies.
1428
1429 2011-10-19 Tom de Vries <tom@codesourcery.com>
1430
1431 PR tree-optimization/50769
1432 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
1433 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
1434 dummy argument .MEM to phi when increasing number of arguments of phi by
1435 redirecting edges to the block with phi.
1436
1437 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1438
1439 PR bootstrap/50777
1440 * configure.ac: Save and restore CXXFLAGS around
1441 gcc_AC_CHECK_DECLS uses.
1442 Check for madvise() declaration with g++ if --enable-build-with-cxx.
1443 * configure: Regenerate.
1444 * config.in: Regenerate.
1445 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
1446
1447 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
1448
1449 PR debug/49310
1450 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
1451 (variable_part): Replace offset with union.
1452 (enum onepart_enum, onepart_enum_t): New.
1453 (variable_def): Drop cur_loc_changed, add onepart.
1454 (value_chain_def, const_value_chain): Remove.
1455 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
1456 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
1457 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
1458 (value_chain_pool, value_chains): Remove.
1459 (dropped_values): New.
1460 (struct parm_reg): Only if HAVE_window_save.
1461 (vt_stack_adjustments): Don't record register arguments.
1462 (dv_as_rtx): New.
1463 (dv_onepart_p): Return a onepart_enum_t.
1464 (onepart_pool): New.
1465 (dv_pool): Remove.
1466 (dv_from_rtx): New.
1467 (variable_htab_free): Release onepart aux data. Reset flags.
1468 (value_chain_htab_hash, value_chain_htab_eq): Remove.
1469 (unshare_variable): Use onepart field. Propagate onepart aux
1470 data or offset. Drop cur_loc_changed.
1471 (val_store): Cope with NULL insn. Rephrase dump output. Check
1472 for unsuitable locs. Add FIXME on using cselib locs.
1473 (val_reset): Remove FIXME of unfounded concerns.
1474 (val_resolve): Check for unsuitable locs. Add FIXME on using
1475 cselib locs.
1476 (variable_union): Use onepart field, adjust access to offset.
1477 (NO_LOC_P): New.
1478 (VALUE_CHANGED, DECL_CHANGED): Update doc.
1479 (set_dv_changed): Clear NO_LOC_P when changed.
1480 (find_loc_in_1pdv): Use onepart field.
1481 (intersect_loc_chains): Likewise.
1482 (unsuitable_loc): New.
1483 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
1484 (add_value_chain, add_value_chains): Remove.
1485 (add_cselib_value_chains, remove_value_chain): Likewise.
1486 (remove_value_chains, remove_cselib_value_chains): Likewise.
1487 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
1488 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
1489 (variable_merge_over_cur): Likewise. Adjust access to offset.
1490 Drop cur_loc_changed.
1491 (variable_merge_over_src): Use onepart field.
1492 (remove_duplicate_values): Likewise.
1493 (variable_post_merge_new_vals): Likewise.
1494 (find_mem_expr_in_1pdv): Likewise.
1495 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
1496 and value chains.
1497 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
1498 (variable_different_p): Use onepart field. Move onepart test out
1499 of the loop.
1500 (argument_reg_set): Drop.
1501 (add_uses, add_stores): Preserve but do not record in dynamic
1502 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
1503 Avoid unsuitable address expressions.
1504 (EXPR_DEPTH): Unlimit.
1505 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
1506 (prepare_call_arguments): Use DECL_RTL_IF_SET.
1507 (dump_var): Adjust access to offset.
1508 (variable_from_dropped, recover_dropped_1paux): New.
1509 (variable_was_changed): Drop cur_loc_changed. Use onepart.
1510 Preserve onepart aux in empty_var. Recover empty_var and onepart
1511 aux from dropped_values.
1512 (find_variable_location_part): Special-case onepart. Adjust
1513 access to offset.
1514 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
1515 access to offset. Initialize onepaux. Drop value chains.
1516 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
1517 (VEC (variable, heap), VEC (rtx, stack)): Define.
1518 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
1519 ignore_cur_loc. Add expanding, pending, depth.
1520 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
1521 (loc_exp_dep_insert, loc_exp_dep_set): New.
1522 (notify_dependents_of_resolved_value): New.
1523 (update_depth, vt_expand_var_loc_chain): New.
1524 (vt_expand_loc_callback): Revamped.
1525 (resolve_expansions_pending_recursion): New.
1526 (INIT_ELCD, FINI_ELCD): New.
1527 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
1528 parameter, adjust all callers.
1529 (vt_expand_loc_dummy): Drop.
1530 (vt_expand_1pvar): New.
1531 (emit_note_insn_var_location): Operate on non-debug decls only.
1532 Revamp multi-part cur_loc recomputation and one-part expansion.
1533 Drop cur_loc_changed. Adjust access to offset.
1534 (VEC (variable, heap)): Drop.
1535 (changed_variables_stack, changed_values_stack): Drop.
1536 (check_changed_vars_0, check_changed_vars_1): Remove.
1537 (check_changed_vars_2, check_changed_vars_3): Remove.
1538 (values_to_stack, remove_value_from_changed_variables): New.
1539 (notify_dependents_of_changed_value, process_changed_values): New.
1540 (emit_notes_for_changes): Revamp onepart updates.
1541 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
1542 and value chains. Propagate onepaux. Recover empty_var and onepaux
1543 from dropped_values.
1544 (emit_notes_for_differences_2): Drop value chains.
1545 (emit_notes_in_bb): Adjust.
1546 (vt_emit_notes): Drop value chains, changed_variables_stack.
1547 Initialize and release dropped_values.
1548 (create_entry_value): Revamp.
1549 (vt_add_function_parameter): Use new interface.
1550 (note_register_arguments): Remove.
1551 (vt_initialize): Drop value chains and register arguments.
1552 (vt_finalize): Drop value chains. Release windowed_parm_regs only
1553 if HAVE_window_save.
1554 * rtl.h: Document various pass-local uses of RTL flags.
1555 * tree.h (DECL_RTL_KNOWN_SET): New.
1556 * doc/invoke.texi (param max-vartrack-expr-depth): Update
1557 description and default.
1558
1559 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
1560
1561 PR target/50447
1562 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
1563 (adjust_len): Ditto.
1564 (addhi3): Don't pipe through short; use gen_int_mode instead.
1565 Prior to reload, expand to gen_addhi3_clobber.
1566 (*addhi3): Use avr_out_plus_noclobber if applicable, use
1567 out_plus_noclobber in cc and adjust_len attribute.
1568 (addhi3_clobber): 2 new RTL peepholes.
1569 (addhi3_clobber): New insn.
1570 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
1571 * config/avr/avr.c (avr_out_plus_noclobber): New function.
1572 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
1573 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
1574 Set cc0 to set_zn for adiw on 16-bit values.
1575 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
1576 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
1577
1578 2011-10-19 Richard Guenther <rguenther@suse.de>
1579
1580 PR middle-end/50780
1581 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
1582 the condition is properly gimple before using it.
1583 * tree-eh (stmt_could_throw_1_p): Properly extract the
1584 operation type from comparisons.
1585
1586 2011-10-19 Roland Stigge <stigge@antcom.de>
1587
1588 PR translation/48638
1589 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
1590
1591 2011-10-19 Roland Stigge <stigge@antcom.de>
1592
1593 PR translation/49517
1594 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
1595
1596 2011-10-19 Richard Guenther <rguenther@suse.de>
1597
1598 PR middle-end/50768
1599 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
1600
1601 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
1602
1603 PR rtl-optimization/50340
1604 * sel-sched-ir.c (update_target_availability): LHS register
1605 availability is not known if the unavailable LHS of the other
1606 expression is a different register.
1607
1608 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1609
1610 PR target/50310
1611 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
1612 floating-point comparisons.
1613
1614 2011-10-19 Jan Hubicka <jh@suse.cz>
1615
1616 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
1617 destination declared.
1618 (output_weakrefs): New function.
1619 * varpool.c (varpool_create_variable_alias): Handle external aliases.
1620
1621 2011-10-19 Jakub Jelinek <jakub@redhat.com>
1622
1623 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
1624 second argument instead of mode.
1625
1626 2011-10-18 Jakub Jelinek <jakub@redhat.com>
1627
1628 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
1629 mode SUBREG of operands[0] as target.
1630 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
1631 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
1632 (expand_vec_perm_1): Handle identity and some broadcast
1633 permutations.
1634 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
1635 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
1636 For d->testing_p return true earlier to avoid creating more GC
1637 garbage.
1638 (expand_vec_perm_vpermq_perm_1): New function.
1639 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
1640 earlier to avoid creating more GC garbage. Fix handling of
1641 V16HImode. Avoid some SUBREGs in SET_DEST.
1642 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
1643 vector modes.
1644 (expand_vec_perm_vpshufb4_vpermq2): New function.
1645 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
1646 and expand_vec_perm_vpshufb4_vpermq2.
1647
1648 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1649
1650 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
1651 before exiting.
1652
1653 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1654
1655 PR tree-optimization/50717
1656 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
1657 parameter. Calculate 'type' from stmt.
1658 (convert_mult_to_widen): Update call the is_widening_mult_p.
1659 (convert_plusminus_to_widen): Likewise.
1660
1661 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1662
1663 * config/spu/spu.c (struct machine_function): New data structure.
1664 (spu_init_machine_status): New function.
1665 (spu_option_override): Install it.
1666 (get_pic_reg): Set and use cfun->machine->pic_reg.
1667 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
1668 (need_to_save_reg): Use cfun->machine->pic_reg instead of
1669 checking crtl->uses_pic_offset_table.
1670 (spu_expand_prologue): Likewise.
1671
1672 2011-10-18 Jakub Jelinek <jakub@redhat.com>
1673
1674 PR tree-optimization/50735
1675 * function.c (gimplify_parameters): Use create_tmp_var instead of
1676 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
1677 or vector type, set DECL_GIMPLE_REG_P.
1678
1679 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1680
1681 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
1682 * config/arm/arm.opt: Add 'native' processor_type and
1683 arm_arch enum values.
1684 * config/arm/arm.h (host_detect_local_cpu): New prototype.
1685 (EXTRA_SPEC_FUNCTIONS): New define.
1686 (MCPU_MTUNE_NATIVE_SPECS): New define.
1687 (DRIVER_SELF_SPECS): New define.
1688 * config/arm/driver-arm.c: New file.
1689 * config/arm/x-arm: New file.
1690 * doc/invoke.texi (ARM Options): Document -mcpu=native,
1691 -mtune=native and -march=native.
1692
1693 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
1694
1695 PR rtl-optimization/50205
1696 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
1697 p->x is a register. Forbid substitution when the same register is
1698 found in a different mode.
1699 (count_occurrences_equiv): Assert that 'what' is a register.
1700
1701 2011-10-18 Richard Guenther <rguenther@suse.de>
1702
1703 PR tree-optimization/50767
1704 * tree-ssa-pre.c (create_expression_by_pieces): Update the
1705 folded statement.
1706
1707 2011-10-18 Julian Brown <julian@codesourcery.com>
1708
1709 * config/arm/arm.c (arm_block_move_unaligned_straight)
1710 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
1711 (arm_movmemqi_unaligned): New.
1712 (arm_gen_movmemqi): Support unaligned block copies.
1713
1714 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
1715
1716 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
1717 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
1718 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
1719 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1720 (op_code_prio): Likewise.
1721 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
1722 * optabs.c (optab_for_tree_code): Handle
1723 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1724 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
1725 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
1726 * genopinit.c (optabs): Initialize the new optabs.
1727 * expr.c (expand_expr_real_2): Handle
1728 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1729 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
1730 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
1731 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
1732 VEC_WIDEN_LSHIFT_LO_EXPR): New.
1733 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
1734 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1735 vect_recog_widen_shift_pattern.
1736 (vect_handle_widen_mult_by_const): Rename...
1737 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
1738 Add a new argument, update documentation.
1739 (vect_recog_widen_mult_pattern): Assume that only second
1740 operand can be constant. Update call to
1741 vect_handle_widen_op_by_const.
1742 (vect_recog_over_widening_pattern): Fix typo.
1743 (vect_recog_widen_shift_pattern): New.
1744 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
1745 widening shifts.
1746 (supportable_widening_operation): Likewise.
1747 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
1748 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1749 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1750 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
1751 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
1752 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
1753 Likewise.
1754 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
1755 New.
1756 * config/arm/iterators.md (V_innermode): New.
1757 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
1758 for widening shift.
1759
1760 2011-10-18 Richard Guenther <rguenther@suse.de>
1761
1762 * tree-ssa-alias.h (struct pt_solution): Remove
1763 vars_contains_restrict member.
1764 (pt_solutions_same_restrict_base): Remove.
1765 (pt_solution_set): Adjust.
1766 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
1767 vars_contains_restrict handling.
1768 (dump_points_to_solution): Likewise.
1769 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
1770 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
1771 field.
1772 (new_var_info): Do not initialize it.
1773 (ipa_escaped_pt): Adjust.
1774 (make_constraint_from_restrict): Make the tag global.
1775 (make_constraint_from_global_restrict): New function.
1776 (make_constraint_from_heapvar): Remove.
1777 (create_variable_info_for): Do not make restrict vars point
1778 to NONLOCAL.
1779 (intra_create_variable_infos): Likewise.
1780 (find_what_var_points_to): Remove vars_contains_restrict handling.
1781 (pt_solution_set): Adjust.
1782 (pt_solution_ior_into): Likewise.
1783 (pt_solutions_same_restrict_base): Remove.
1784 (compute_points_to_sets): Do not test is_restrict_var.
1785 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
1786 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
1787
1788 2011-10-18 Tom de Vries <tom@codesourcery.com>
1789
1790 PR tree-optimization/50672
1791 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
1792 factored out of ...
1793 (mark_virtual_phi_result_for_renaming): Use
1794 mark_virtual_operand_for_renaming.
1795 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
1796 * tree-ssa-tail-merge.c (release_last_vdef): New function.
1797 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
1798 deleted basic block.
1799 (tail_merge_optimize): Add argument to call to purge_bbs.
1800
1801 2011-10-18 Richard Guenther <rguenther@suse.de>
1802
1803 PR middle-end/50716
1804 * expr.c (get_object_or_type_alignment): New function.
1805 (expand_assignment): Use it.
1806 (expand_expr_real_1): Likewise.
1807
1808 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1809
1810 PR bootstrap/50760
1811 * input.c (dump_line_table_statistics): Use long, not size_t.
1812
1813 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
1814
1815 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
1816
1817 2011-10-17 Simon Baldwin <simonb@google.com>
1818 Ian Lance Taylor <iant@google.com>
1819
1820 * configure.ac: Add --with-native-system-header-dir. Set and
1821 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
1822 when setting target_header_dir.
1823 * config.gcc: Always set native_system_header_dir.
1824 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
1825 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
1826 use i386/t-djgpp.
1827 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
1828 native_system_header_dir.
1829 (spu-*-elf*): Set native_system_header_dir.
1830 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
1831 @NATIVE_SYSTEM_HEADER_DIR@.
1832 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
1833 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
1834 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1835 STANDARD_INCLUDE_COMPONENT.
1836 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
1837 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1838 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
1839 STANDARD_INCLUDE_COMPONENT.
1840 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
1841 * config/i386/t-mingw-w32: Likewise.
1842 * config/i386/t-mingw-w64: Likewise.
1843 * config/spu/t-spu-elf: Likewise.
1844 * config/i386/t-djgpp: Remove.
1845 * config/t-gnu: Remove.
1846 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
1847 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1848 STANDARD_INCLUDE_COMPONENT.
1849 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
1850 * config/spu/spu-elf.h: Likewise.
1851 * config/vms/xm-vms.h: Likewise.
1852 * config/gnu.h: Likewise.
1853 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
1854 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
1855 NATIVE_SYSTME_HEADER_COMPONENT.
1856 * doc/install.texi (Configuration): Document
1857 --with-native-system-header-dir. Mention it in the documentation
1858 for --with-sysroot and --with-build-sysroot.
1859 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
1860 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
1861 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
1862 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1863 * doc/fragments.texi (Target Fragment): Don't document
1864 NATIVE_SYSTEM_HEADER_DIR.
1865 * configure, doc/tm.texi: Rebuild.
1866
1867 2011-10-17 Richard Henderson <rth@redhat.com>
1868
1869 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
1870 is the constraint.
1871
1872 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
1873 patterns.
1874 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
1875 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
1876
1877 2011-10-17 David S. Miller <davem@davemloft.net>
1878
1879 * config/sparc/sparc-modes.def: Add single entry vector modes for
1880 DImode and SImode.
1881 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
1882 mode iterators.
1883 (mov<V32:mode>): Revert back to plain SFmode pattern.
1884 (*movsf_insn): Likewise.
1885 (mov<V64:mode>): Revert back to plain DFmode pattern.
1886 (*movdf_insn_sp32): Likewise.
1887 (*movdf_insn_sp32_v9): Likewise.
1888 (*movdf_insn_sp64): Likewise.
1889 (V64 mode splitters) Likewise.
1890 (addsi3): Remove VIS alternatives.
1891 (subsi3): Likewise.
1892 (and<V64I:mode>3): Revert to DImode only pattern.
1893 (and<V64I:mode>3_sp32): Likewise.
1894 (*and<V64I:mode>3_sp64): Likewise.
1895 (and<V32I:mode>3): Likewise.
1896 (*and_not_<V64I:mode>_sp32): Likewise.
1897 (*and_not_<V64I:mode>_sp64): Likewise.
1898 (*and_not_<V32I:mode>): Likewise.
1899 (ior<V64I:mode>3): Likewise.
1900 (*ior<V64I:mode>3_sp32): Likewise.
1901 (*ior<V64I:mode>3_sp64): Likewise.
1902 (ior<V32I:mode>3): Likewise.
1903 (*or_not_<V64I:mode>_sp32): Likewise.
1904 (*or_not_<V64I:mode>_sp64): Likewise.
1905 (*or_not_<V32I:mode>): Likewise.
1906 (xor<V64I:mode>3): Likewise.
1907 (*xor<V64I:mode>3_sp32): Likewise.
1908 (*xor<V64I:mode>3_sp64): Likewise.
1909 (xor<V32I:mode>3): Likewise.
1910 (V64I mode splitters): Likewise.
1911 (*xor_not_<V64I:mode>_sp32): Likewise.
1912 (*xor_not_<V64I:mode>_sp64): Likewise.
1913 (*xor_not_<V32I:mode>): Likewise.
1914 (one_cmpl<V64I:mode>2): Likewise.
1915 (*one_cmpl<V64I:mode>2_sp32): Likewise.
1916 (*one_cmpl<V64I:mode>2_sp64): Likewise.
1917 (one_cmpl<V32I:mode>2): Likewise.
1918 (VM32, VM64, VMALL): New mode iterators.
1919 (vbits, vconstr, vfptype): New mode attributes.
1920 (mov<VMALL:mode>): New expander.
1921 (*mov<VM32:mode>_insn): New insn.
1922 (*mov<VM64:mode>_insn_sp64): New insn.
1923 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
1924 specifically for the register to memory case.
1925 (vec_init<mode>): New expander.
1926 (VADDSUB): New mode iterator.
1927 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
1928 with...
1929 (<plusminus_insn><mode>3): New consolidated pattern.
1930 (VL): New mode iterator for logical operations.
1931 (vlsuf): New more attribute.
1932 (vlop): New code iterator.
1933 (vlinsn, vlninsn): New code attributes.
1934 (<code><mode>3): New insn to non-negated vector logical ops.
1935 (*not_<code><mode>3): Likewise for negated variants.
1936 (*nand<mode>_vis): New insn.
1937 (vlnotop): New code iterator.
1938 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
1939 (one_cmpl<mode>2): New insn.
1940 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
1941 (bshuffle<VM64:mode>_vis): Likewise.
1942 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
1943 (fp<plusminus_insn>64_vis): Use V1DI mode.
1944 (VASS mode iterator): Use V1SI not SI mode.
1945 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
1946 single-entry vector mode changes.
1947 (sparc_expand_builtin): Likewise.
1948 (sparc_expand_vector_init): New function.
1949 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
1950
1951 2011-10-17 Kai Tietz <ktietz@redhat.com>
1952
1953 * fold-const.c (simple_operand_p_2): New function.
1954 (fold_truthop): Rename to
1955 (fold_truth_andor_1): function name.
1956 Additionally remove branching creation for logical and/or.
1957 (fold_truth_andor): Handle branching creation for logical and/or here.
1958
1959 2011-10-17 Andi Kleen <ak@linux.intel.com>
1960
1961 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
1962
1963 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
1964
1965 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
1966 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
1967 (adjust_len): Add alternative "call".
1968 (isa, enabled): New insn attributes.
1969 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
1970 mcu_mega attribute.
1971 (*sbrx_branch<mode>): Ditto.
1972 (*sbrx_and_branch<mode>): Ditto.
1973 (*sbix_branch): Ditto.
1974 (*sbix_branch_bit7): Ditto.
1975 (*sbix_branch_tmp): Ditto.
1976 (*sbix_branch_tmp_bit7): Ditto.
1977 (jump): Ditto.
1978 (negsi2): Use attribute "isa" instead of assembler dialect.
1979 (extendhisi2): Ditto.
1980 (call_insn, call_value_insn): Set adjust_len attribute.
1981 (indirect_jump): Indent to coding rules.
1982 (call_prologue_saves): Use isa attribute instead of mcu_mega.
1983 (epilogue_restores): Ditto. Fix setting of SP as described in the
1984 RTX pattern.
1985 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
1986 and *indirect_jump_avr6.
1987 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
1988 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
1989 (*tablejump_rjmp, *tablejump_lib): Remove.
1990 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
1991
1992 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1993
1994 PR c++/50757
1995 * doc/invoke.texi ([Wnonnull]): Update.
1996
1997 2011-10-17 Richard Henderson <rth@redhat.com>
1998
1999 PR 50746
2000 * optabs.c (expand_vec_perm_expr): Fix indexing error.
2001
2002 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
2003
2004 * configure.ac: Display `yes' if the SystemTap header has been found.
2005 * configure: Regenerate.
2006
2007 2011-10-08 Andi Kleen <ak@linux.intel.com>
2008
2009 PR other/50636
2010 * config.in, configure: Regenerate.
2011 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
2012 * ggc-page.c (USING_MADVISE): Add.
2013 (page_entry): Add discarded field.
2014 (alloc_page): Check for discarded pages.
2015 (release_pages): Add USING_MADVISE branch.
2016
2017 2011-10-17 Richard Guenther <rguenther@suse.de>
2018
2019 PR tree-optimization/50729
2020 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
2021 (simplify_conversion_using_ranges): Properly test the
2022 intermediate result.
2023
2024 2011-10-15 Tom Tromey <tromey@redhat.com>
2025 Dodji Seketeli <dodji@redhat.com>
2026
2027 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
2028 * ggc-none.c (ggc_round_alloc_size): New public stub function.
2029 * ggc-page.c (ggc_alloced_size_order_for_request): New static
2030 function. Factorized from ggc_internal_alloc_stat.
2031 (ggc_round_alloc_size): New public function. Uses
2032 ggc_alloced_size_order_for_request.
2033 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
2034 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
2035 from ggc_internal_alloc_zone_stat.
2036 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
2037 * toplev.c (general_init): Initialize
2038 line_table->alloced_size_for_request.
2039
2040 2011-10-15 Tom Tromey <tromey@redhat.com>
2041 Dodji Seketeli <dodji@redhat.com>
2042
2043 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
2044 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
2045 new counters.
2046 (dump_line_table_statistics): Define new function.
2047 * input.h (dump_line_table_statistics): Declare new function.
2048 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
2049
2050 2011-10-15 Tom Tromey <tromey@redhat.com>
2051 Dodji Seketeli <dodji@redhat.com>
2052
2053 * doc/cppopts.texi: Document -fdebug-cpp.
2054 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
2055
2056 2011-10-15 Tom Tromey <tromey@redhat.com>
2057 Dodji Seketeli <dodji@redhat.com>
2058
2059 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
2060 location parameter.
2061 * diagnostic.c (diagnostic_report_current_module): Add a location
2062 parameter to the function definition. Use it instead of
2063 input_location. Resolve the virtual location rather than just
2064 looking up its map and risking to touch a resulting macro map.
2065 (default_diagnostic_starter): Pass the relevant diagnostic
2066 location to diagnostic_report_current_module.
2067 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
2068 (virt_loc_aware_diagnostic_finalizer): Likewise.
2069 (diagnostic_report_current_function): Pass the
2070 relevant location to diagnostic_report_current_module.
2071 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
2072 new function.
2073 * toplev.c (general_init): By default, use the new
2074 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
2075 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
2076
2077 2011-10-15 Tom Tromey <tromey@redhat.com>
2078 Dodji Seketeli <dodji@redhat.com>
2079
2080 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
2081 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
2082 preprocessor related options.
2083
2084 2011-10-15 Tom Tromey <tromey@redhat>
2085 Dodji Seketeli <dodji@redhat.com>
2086
2087 * input.h (struct expanded_location): Move to libcpp/line-map.h.
2088 (LOCATION_COLUMN): New accessor
2089 (in_system_header_at): Use linemap_location_in_system_header_p.
2090 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
2091 touching the internals of struct line_map. Use the public API instead.
2092 (diagnostic_report_diagnostic): Don't use relational operator '<'
2093 on virtual locations. Use linemap_location_before_p instead.
2094 * input.c (expand_location): Adjust to expand to the tokens'
2095 spelling location when macro location tracking is on.
2096
2097
2098 2011-10-08 Andi Kleen <ak@linux.intel.com>
2099
2100 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
2101
2102 2011-10-13 Andi Kleen <ak@linux.intel.com>
2103
2104 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
2105
2106 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
2107
2108 PR tree-optimization/50727
2109 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
2110 DEF_STMT to the list of statements to be replaced by the
2111 pattern statements.
2112
2113 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
2114
2115 PR rtl-optimization/50615
2116 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
2117
2118 2011-10-16 Jakub Jelinek <jakub@redhat.com>
2119
2120 PR tree-optimization/50596
2121 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
2122 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2123 vect_recog_bool_pattern.
2124 (check_bool_pattern, adjust_bool_pattern_cast,
2125 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
2126
2127 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
2128
2129 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
2130 treat the first load of the node as the first element in its
2131 interleaving chain.
2132 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
2133 necessary and possible.
2134 (vect_build_slp_tree): Add new argument. Allow load groups of any size
2135 in basic blocks. Keep all the loads for further permutation check.
2136 Use the new argument to determine if there is a permutation. Update
2137 the recursive calls.
2138 (vect_supported_load_permutation_p): Allow subchains of interleaving
2139 chains in basic block vectorization.
2140 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
2141 Check load permutation based on the new parameter.
2142 (vect_schedule_slp_instance): Don't start from the first element in
2143 interleaving chain unless the loads are permuted.
2144
2145 2011-10-15 Jan Hubicka <jh@suse.cz>
2146
2147 PR target/48668
2148 PR target/50689
2149 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
2150 after function body.
2151
2152 2011-10-15 Richard Henderson <rth@redhat.com>
2153
2154 * tree-vect-slp.c: Include langhooks.h.
2155 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
2156 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
2157 mask creation for VEC_PERM_EXPR.
2158 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
2159 not the builtin.
2160 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
2161 * Makefile.in (tree-vect-slp.o): Update dependency.
2162 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
2163
2164 2011-10-15 Alan Modra <amodra@gmail.com>
2165
2166 PR bootstrap/50738
2167 * ifcvt.c (dead_or_predicable): Revert accidental commit with
2168 HAVE_simple_return test.
2169
2170 2011-10-15 Alan Modra <amodra@gmail.com>
2171
2172 * ifcvt.c (dead_or_predicable): Disable if-conversion when
2173 doing so is likely to kill a shrink-wrapping opportunity.
2174
2175 PR rtl-optimization/49941
2176 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
2177
2178 * rtl.h (set_return_jump_label): Declare.
2179 * function.c (set_return_jump_label): New function, extracted..
2180 (thread_prologue_and_epilogue_insns): ..from here. Use it in
2181 another instance to set return jump_label.
2182 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
2183 * reorg.c (find_end_label): Likewise.
2184
2185 2011-10-14 David S. Miller <davem@davemloft.net>
2186
2187 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
2188 with a more complete cpp test.
2189 * config/sparc/linux64.h: Likewise.
2190 * config/sparc/linux.h: Likewise.
2191 * config/sparc/sparc.opt (sparc_debug): New target variable.
2192 (mdebug): New target option.
2193 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
2194 TARGET_DEBUG_OPTIONS): New defines.
2195 * config/sparc/sparc.c (debug_target_flag_bits,
2196 debug_target_flags): New functions.
2197 (sparc_option_override): Add name strings back to cpu_table[].
2198 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
2199 out the target flags before and after override processing as well
2200 as the selected cpu. If MASK_V8PLUS, make sure that the selected
2201 cpu is at least v9.
2202
2203 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
2204
2205 PR target/49263
2206 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
2207 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
2208 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
2209 and instruction commutative.
2210 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
2211 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
2212 tstsi_t_zero_extract_subreg_xor_little,
2213 tstsi_t_zero_extract_subreg_xor_big): New insns.
2214 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
2215 asm output.
2216 (*andsi_compact): Reorder alternatives so that K08 is considered first.
2217
2218 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
2219
2220 PR target/50354
2221 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
2222 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
2223
2224 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
2225
2226 * invoke.texi (AVR Options): Avoid \leq{}.
2227
2228 2011-10-14 Kai Tietz <ktietz@redhat.com>
2229
2230 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
2231 transformation the operands have compatible types.
2232
2233 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2234
2235 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
2236 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
2237 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
2238 mode iterator and any_extend code iterator.
2239 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
2240 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
2241 also for TARGET_SSE4_1 using pmuldq insn.
2242 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
2243 (sse2_sse4_1): New code attr.
2244 (udot_prodv4si): Macroize using any_extend code iterator.
2245 (<s>dot_prodv8si): New expander.
2246
2247 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
2248
2249 * config/i386/i386.c (atom_cost): Changed cost for loading
2250 QImode using movzbl.
2251
2252 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2253
2254 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
2255 change on October 11th, 2011.
2256
2257 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2258
2259 * config/i386/sse.md (vec_interleave_high<mode>,
2260 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
2261 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
2262 (ix86_expand_vec_perm_builtin_1): Call it.
2263
2264 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
2265
2266 Fix thinko from r179765
2267 * config/avr/avr.c (avr_option_override): Don't override
2268 flag_omit_frame_pointer if not actually needed.
2269
2270 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
2271
2272 PR target/46278
2273 * doc/invoke.texi (AVR Options): Document -mstrict-X.
2274
2275 * config/avr/avr.opt (-mstrict-X): New option.
2276 (avr_strict_X): New variable reflecting -mstrict-X.
2277 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
2278 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
2279 (avr_legitimate_address_p): Pass outer_code to
2280 avr_reg_ok_for_addr_p and use that function in case PLUS.
2281 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
2282 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
2283 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
2284
2285 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2286
2287 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
2288 of VI_128.
2289
2290 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
2291 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
2292 Use <sseinsnmode> instead of TI in mode attr.
2293
2294 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2295
2296 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
2297 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
2298 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
2299 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
2300
2301 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2302
2303 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
2304 (arm_output_strex): Support strexd.
2305 (arm_output_it): New helper to output it in Thumb2 mode only.
2306 (arm_output_sync_loop): Support DI mode. Change comment to
2307 not support const_int.
2308 (arm_expand_sync): Support DI mode.
2309 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
2310 and LDREXD.
2311 * config/arm/iterators.md (NARROW): move from sync.md.
2312 (QHSD): New iterator for all current ARM integer modes.
2313 (SIDI): New iterator for SI and DI modes only.
2314 * config/arm/sync.md (sync_predtab): New mode_attr.
2315 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
2316 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
2317 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
2318 (sync_nandsi): Fold into sync_nand<mode>.
2319 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
2320 (sync_new_nandsi): Fold into sync_new_nand<mode>.
2321 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
2322 (sync_old_nandsi): Fold into sync_old_nand<mode>.
2323 (sync_compare_and_swap<mode>): Support SI & DI.
2324 (sync_lock_test_and_set<mode>): Likewise.
2325 (sync_<sync_optab><mode>): Likewise.
2326 (sync_nand<mode>): Likewise.
2327 (sync_new_<sync_optab><mode>): Likewise.
2328 (sync_new_nand<mode>): Likewise.
2329 (sync_old_<sync_optab><mode>): Likewise.
2330 (sync_old_nand<mode>): Likewise.
2331 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
2332 (arm_sync_lock_test_and_setsi): Likewise.
2333 (arm_sync_new_<sync_optab>si): Likewise.
2334 (arm_sync_new_nandsi): Likewise.
2335 (arm_sync_old_<sync_optab>si): Likewise.
2336 (arm_sync_old_nandsi): Likewise.
2337 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
2338 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
2339 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
2340 (arm_sync_new_nand<mode> NARROW): Likewise.
2341 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
2342 (arm_sync_old_nand<mode> NARROW): Likewise.
2343
2344 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2345
2346 PR target/48126
2347 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
2348
2349 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2350
2351 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
2352
2353 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2354
2355 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
2356
2357 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2358
2359 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
2360 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
2361
2362 2011-10-14 Richard Guenther <rguenther@suse.de>
2363
2364 PR tree-optimization/50723
2365 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
2366
2367 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
2368
2369 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
2370 objc/objc-map.c.
2371
2372 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2373
2374 PR c++/17212
2375 * doc/invoke.texi ([Wformat-zero-length]): Update.
2376
2377 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
2378
2379 PR bootstrap/50699
2380 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
2381 build for powerpc targets. (darwin_patch_builtins): Only build for
2382 powerpc targets.
2383
2384 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2385
2386 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
2387 (avx_cvtdq2pd256_2): ... this.
2388 (sseunpackfltmode): New mode attr.
2389 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
2390 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
2391 using VI2_AVX2 iterator.
2392 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
2393
2394 2011-10-13 David S. Miller <davem@davemloft.net>
2395
2396 * config/sparc/sparc.md (plusminus): New code iterator.
2397 (plusminus_insn): New code attr.
2398 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
2399 using plusminus and plusminus_insn.
2400 (fpadd64_vis, fpsub64_vis): Likewise.
2401
2402 2011-10-13 Richard Henderson <rth@redhat.com>
2403
2404 * doc/md.texi (vec_perm): Document fallback to byte permutation.
2405 * genopinit.c (optabs): Add vec_perm_const.
2406 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
2407 Reject non-vector modes. Allow fallback to byte permutation.
2408 (expand_vec_perm_expr_1): Split out from ...
2409 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
2410 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
2411 * tree-vect-generic.c (lower_vec_perm): Update for name change.
2412
2413 2011-10-13 Richard Henderson <rth@redhat.com>
2414
2415 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
2416
2417 * config/rs6000/spu.md (vec_permv16qi): New pattern.
2418
2419 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
2420 * config/i386/i386-protos.h: Update.
2421 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
2422 (vec_perm_const<VEC_PERM_CONST>): New expander.
2423
2424 * optabs.c (expand_vector_broadcast): New.
2425 (expand_binop): Expand scalar shifts of vectors to vector shifts
2426 of vectors, if the former isn't supported.
2427 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
2428 here; always simplify to scalar shift of vector if possible.
2429
2430 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
2431 test for vector splat.
2432
2433 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2434
2435 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
2436
2437 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2438 Richard Guenther <rguenther@suse.de>
2439
2440 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
2441 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
2442
2443 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2444
2445 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
2446 * config/i386/i386.c (ix86_build_const_vector): Handle
2447 also V32QI, V16QI, V16HI and V8HI modes.
2448 (emit_reduc_half): New function.
2449 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
2450 Use emit_reduc_half helper function.
2451
2452 2011-10-13 Lawrence Crowl <crowl@google.com>
2453 Diego Novillo <dnovillo@google.com>
2454
2455 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
2456 (input_function): ... here.
2457 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
2458 (output_function): ... here.
2459
2460 2011-10-13 Gabriel Charette <gchare@google.com>
2461 Diego Novillo <dnovillo@google.com>
2462
2463 * streamer-hooks.h (struct streamer_hooks): Add hooks
2464 input_location and output_location.
2465 * lto-streamer-in.c (lto_input_location): Use
2466 streamer_hooks.input_location, if set.
2467 * lto-streamer-out.c (lto_output_location): Use
2468 streamer_hooks.output_location, if set.
2469
2470 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
2471
2472 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
2473 * config/sparc/sparc.opt (mfix-at697f): New option.
2474 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
2475 (sparc_reorg): New function.
2476
2477 2011-10-13 Richard Guenther <rguenther@suse.de>
2478
2479 PR tree-optimization/50712
2480 * ipa-split.c (split_function): Always re-gimplify parameters
2481 when they are not gimple vals before passing them. Properly
2482 check for type compatibility.
2483
2484 2011-10-13 Tom de Vries <tom@codesourcery.com>
2485
2486 * function.c (gimplify_parameters): Set number of arguments of call to
2487 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
2488
2489 2011-10-13 Tom de Vries <tom@codesourcery.com>
2490
2491 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
2492 for static const strings.
2493 * varasm.c (build_constant_desc): Generate the memory location of the
2494 constant using gen_const_mem.
2495
2496 2011-10-13 Richard Guenther <rguenther@suse.de>
2497
2498 PR tree-optimization/50698
2499 * tree-data-ref.c (split_constant_offset_1): Also process
2500 offsets of &MEM.
2501
2502 2011-10-12 David S. Miller <davem@davemloft.net>
2503
2504 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
2505 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
2506 unspecs.
2507 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
2508 of a vec_concat.
2509 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
2510 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
2511 Reimplement as unspecs and remove inaccurate comments.
2512 (vis3_shift_patname): New code attr.
2513 (<vis3_shift_insn><vbits>_vis): Rename to
2514 "v<vis3_shift_patname><mode>3".
2515 (vis3_addsub_ss_patname): New code attr.
2516 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
2517 "<vis3_addsub_ss_patname><mode>3".
2518 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
2519 accommodate pattern name changes.
2520
2521 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
2522 to zero when assembler lacks support for such instructions.
2523 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
2524 and MASK_FMAF in defaults when assembler lacks necessary support.
2525
2526 2011-10-12 Jakub Jelinek <jakub@redhat.com>
2527
2528 * config/i386/sse.md (vec_unpacks_lo_<mode>,
2529 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
2530 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
2531 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
2532 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
2533
2534 * config/i386/sse.md (vec_avx2): New mode_attr.
2535 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
2536 (mul<mode>3): ... this.
2537
2538 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
2539 * config/i386/i386.c (ix86_expand_vec_perm): Handle
2540 V16QImode and V32QImode for TARGET_AVX2.
2541 (MAX_VECT_LEN): Increase to 32.
2542 (expand_vec_perm_blend): Add support for 32-byte integer
2543 vectors with TARGET_AVX2.
2544 (valid_perm_using_mode_p): New function.
2545 (expand_vec_perm_pshufb): Add support for 32-byte integer
2546 vectors with TARGET_AVX2.
2547 (expand_vec_perm_vpshufb2_vpermq): New function.
2548 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
2549 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
2550 with TARGET_AVX2.
2551 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
2552 and expand_vec_perm_vpshufb2_vpermq_even_odd.
2553 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
2554 32-byte integer vector modes.
2555 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
2556 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
2557 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
2558 4 new operands.
2559 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
2560 match_dup, instead add 4 new operands and require they have
2561 right cross-lane values.
2562 (avx2_permv4di): Change into define_expand.
2563 (avx2_permv4di_1): New instruction.
2564 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
2565 for "xm" constrained operand.
2566 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
2567
2568 * config/i386/sse.md (avx2_gathersi<mode>,
2569 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
2570 match_scratch, change memory_operand to register_operand,
2571 add (mem:BLK (scratch)) use.
2572 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
2573 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
2574 add earlyclobber to the output operand and match_scratch,
2575 add (mem:BLK (scratch)) use, change the other mem to match_operand.
2576 Use %p6 instead of %c6 in the pattern.
2577 * config/i386/i386.c (ix86_expand_builtin): Adjust for
2578 operand 2 being a Pmode register_operand instead of memory_operand.
2579
2580 2011-10-12 Kai Tietz <ktietz@redhat.com>
2581
2582 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
2583
2584 2011-10-12 Steve Ellcey <sje@cup.hp.com>
2585
2586 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
2587
2588 2011-10-12 Richard Guenther <rguenther@suse.de>
2589
2590 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
2591 of the first store we visit in a basic-block.
2592 (get_continuation_for_phi): Search for a candidate VUSE that
2593 might dominates all others. Do pairwise disambiguation against
2594 that candidate.
2595
2596 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
2597
2598 PR tree-optimization/50189
2599 * tree-vrp.c (extract_range_from_assert): Use the type of
2600 the variable, not the limit.
2601
2602 2011-10-12 Richard Guenther <rguenther@suse.de>
2603
2604 PR tree-optimization/50700
2605 * tree-object-size.c (addr_object_size): Simplify and treat
2606 MEM_REF bases consistently.
2607
2608 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
2609
2610 * function.c (prepare_shrink_wrap, bb_active_p): New function.
2611 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
2612 prepare_shrink_wrap, then recompute bb_active_p for the last block.
2613
2614 2011-10-12 Joseph Myers <joseph@codesourcery.com>
2615
2616 PR c/50565
2617 * convert.c (convert_to_integer): Do not narrow operands of
2618 pointer subtraction.
2619
2620 2011-10-12 Nick Clifton <nickc@redhat.com>
2621
2622 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
2623 emit a .eabi_attribute assembler directive, possibly with a
2624 comment attached.
2625 * config/arm/arm.c (arm_file_start): Use the new macro.
2626 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
2627
2628 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
2629
2630 PR target/49939
2631 * config/avr/avr.md (*movqi): Rename to movqi_insn.
2632 (*call_insn): Rename to call_insn.
2633 (*call_value_insn): Rename to call_value_insn.
2634 * config/avr/avr.c (avr_2word_insn_p): New static function.
2635 (jump_over_one_insn_p): Use it.
2636
2637 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
2638
2639 * expr.h (copy_blkmode_to_reg): Declare.
2640 * expr.c (copy_blkmode_to_reg): New function.
2641 (expand_assignment): Don't expand register RESULT_DECLs before
2642 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
2643 RESULT_DECL register.
2644 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
2645 * stmt.c (expand_return): Move BLKmode-to-register code into
2646 copy_blkmode_to_reg.
2647
2648 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
2649
2650 PR target/49965
2651 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
2652 (mov<F:mode>cc): Likewise.
2653
2654 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2655
2656 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
2657
2658 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2659
2660 * tree.h (built_in_decls): Delete old interface with two parallel
2661 arrays to hold standard builtin declarations, and replace it with
2662 a function based interface that can support creating builtins on
2663 the fly in the future. Change all uses, and poison the old
2664 names. Make sure 0 is not a legitimate builtin index.
2665 (implicit_built_in_decls): Ditto.
2666 (built_in_info): Ditto.
2667 (BUILTIN_VALID_P): Ditto.
2668 (builtin_decl_explicit): Ditto.
2669 (builtin_decl_implicit): Ditto.
2670 (set_builtin_decl): Ditto.
2671 (set_builtin_decl_implicit_p): Ditto.
2672 (builtin_decl_explicit_p): Ditto.
2673 (builtin_decl_implicit_p): Ditto.
2674 * tree-complex.c (expand_complex_libcall): Ditto.
2675 * tree-loop-distribution.c (generate_memset_zero): Ditto.
2676 * tree-ssa-strlen.c (get_string_length): Ditto.
2677 (handle_builtin_strcpy): Ditto.
2678 (handle_builtin_strcat): Ditto.
2679 * tree.c (iterative_hash_expr): Ditto.
2680 (local_define_builtin): Ditto.
2681 (build_common_builtin_nodes): Ditto.
2682 * builtins.c (built_in_decls): Ditto.
2683 (implicit_built_in_decls): Ditto.
2684 (built_in_info): Ditto
2685 (expand_builtin_classify_type): Ditto.
2686 (mathfn_built_in_1): Ditto.
2687 (expand_builtin_cexpi): Ditto.
2688 (expand_builtin_mempcpy_args): Ditto.
2689 (expand_builtin_stpcpy): Ditto.
2690 (gimplify_va_arg_expr): Ditto.
2691 (expand_builtin_sync_operation): Ditto.
2692 (build_builtin_expect_predicate): Ditto.
2693 (fold_builtin_memory_op): Ditto.
2694 (fold_builtin_strcpy): Ditto.
2695 (fold_builtin_stpcpy): Ditto.
2696 (fold_builtin_strncpy): Ditto.
2697 (fold_builtin_interclass_mathfn): Ditto.
2698 (fold_builtin_classify): Ditto.
2699 (fold_builtin_2): Ditto.
2700 (fold_builtin_strstr): Ditto.
2701 (fold_builtin_strrchr): Ditto.
2702 (fold_builtin_strpbrk): Ditto.
2703 (fold_builtin_strcat): Ditto.
2704 (fold_builtin_strncat): Ditto.
2705 (fold_builtin_strcspn): Ditto.
2706 (fold_builtin_fputs): Ditto.
2707 (fold_builtin_sprintf): Ditto.
2708 (fold_builtin_snprintf): Ditto.
2709 (expand_builtin_memory_chk): Ditto.
2710 (fold_builtin_memory_chk): Ditto.
2711 (fold_builtin_stxcpy_chk): Ditto.
2712 (fold_builtin_strncpy_chk): Ditto.
2713 (fold_builtin_strcat_chk): Ditto.
2714 (fold_builtin_strncat_chk): Ditto.
2715 (fold_builtin_sprintf_chk_1): Ditto.
2716 (fold_builtin_snprintf_chk_1): Ditto.
2717 (fold_builtin_printf): Ditto.
2718 (fold_builtin_fprintf): Ditto.
2719 (fold_call_stmt): Ditto.
2720 (set_builtin_user_assembler_name): Ditto.
2721 * tree-emutls.c (emutls_common_1): Ditto.
2722 * omp-low.c (scan_omp): Ditto.
2723 (lower_rec_input_clauses): Ditto.
2724 (lower_reduction_clauses): Ditto.
2725 (expand_parallel_call): Ditto.
2726 (expand_task_call): Ditto.
2727 (maybe_catch_exception): Ditto.
2728 (optimize_omp_library_calls): Ditto.
2729 (expand_omp_for_generic): Ditto.
2730 (expand_omp_for_static_nochunk): Ditto.
2731 (expand_omp_for_static_chunk): Ditto.
2732 (expand_omp_sections): Ditto.
2733 (expand_omp_atomic_fetch_op): Ditto.
2734 (expand_omp_atomic_pipeline): Ditto.
2735 (expand_omp_atomic_mutex): Ditto.
2736 (lower_omp_single_simple): Ditto.
2737 (lower_omp_single_copy): Ditto.
2738 (lower_omp_master): Ditto.
2739 (lower_omp_ordered): Ditto.
2740 (lower_omp_critical): Ditto.
2741 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
2742 * builtins.c (DEF_BUILTIN_STUB): Ditto.
2743 (BUILT_IN_NONE): Ditto.
2744 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
2745 * gimple-low.c (lower_function_body): Ditto.
2746 (lower_builtin_setjmp): Ditto.
2747 * c-decl.c (merge_decls): Ditto.
2748 * tree-eh.c (lower_resx): Ditto.
2749 (lower_resx): Ditto.
2750 (lower_eh_dispatch): Ditto.
2751 * function (gimplify_parameters): Ditto.
2752 * c-typeck.c (build_function_call_vec): Ditto.
2753 * gimplify.c (build_stack_save_restore): Ditto.
2754 (gimplify_vla_decl): Ditto.
2755 (gimplify_modify_expr_to_memcpy): Ditto.
2756 (gimplify_modify_expr_to_memset): Ditto.
2757 (gimplify_variable_sized_compare): Ditto.
2758 (gimplify_function_tree): Ditto.
2759 * calls.c (emit_call_1): Ditto.
2760 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
2761 * tree-nested.c (convert_nl_goto_reference): Ditto.
2762 (convert_tramp_reference_op): Ditto.
2763 (finalize_nesting_tree_1): Ditto.
2764 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
2765 (tree_ssa_prefetch_arrays): Ditto.
2766 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
2767 * system.h (built_in_decls): Ditto.
2768 (implicit_built_in_decls): Ditto.
2769 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2770 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
2771 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
2772 (ix86_veclibabi_svml): Ditto.
2773 (ix86_veclibabi_acml): Ditto.
2774 * config/vms/vms.c (vms_patch_builtins): Ditto.
2775 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
2776 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
2777 (rs6000_builtin_vectorized_libmass): Ditto.
2778 (rs6000_init_builtins): Ditto.
2779 * config/darwin.c (darwin_override_options): Ditto.
2780 (darwin_patch_builtin): Ditto.
2781 (darwin_rename_builtins): Ditto.
2782 * config/pa/pa.c (pa_init_builtins): Ditto.
2783
2784 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2785
2786 * tree.h (copy_ref_info): Expose existing function.
2787 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
2788 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
2789
2790 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
2791
2792 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
2793 prototype.
2794 (avr_regno_mode_code_ok_for_base_p): New prototype.
2795 * config/avr/avr.h (BASE_REG_CLASS): Remove.
2796 (REGNO_OK_FOR_BASE_P): Remove.
2797 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
2798 (REG_OK_FOR_BASE_STRICT_P): Remove.
2799 (MODE_CODE_BASE_REG_CLASS): New define.
2800 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
2801 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
2802 (avr_regno_mode_code_ok_for_base_p): New function.
2803 (avr_reg_ok_for_addr_p): New static function.
2804 (avr_legitimate_address_p): Use it. Beautify.
2805
2806 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
2807
2808 PR target/50447
2809 * config/avr/avr.md (cc): Add out_plus attribute alternative.
2810 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
2811 avr_out_plus for all CONST_INT addends.
2812 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
2813 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
2814 CC_OUT_PLUS.
2815 (avr_out_plus_1): Change prototype and report effect on cc0.
2816 (avr_out_plus): Ditto.
2817 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
2818
2819 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
2820
2821 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
2822 the extra break.
2823
2824 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2825
2826 * doc/invoke.texi: Document new warning.
2827 * common.opt (Wvector-operation-performance): Define new warning.
2828 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
2829 vector operation.
2830 (exapnd_vector_parallel): Warn about expanded vector operation.
2831 (lower_vec_shuffle): Warn about expanded vector operation.
2832 * c-typeck.c (c_build_vec_perm_expr): Store correct location
2833 when creating VEC_PERM_EXPR.
2834
2835 2011-10-11 Richard Guenther <rguenther@suse.de>
2836
2837 PR tree-optimization/50204
2838 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
2839 two argument handling from ...
2840 (get_continuation_for_phi): ... here. Handle arbitrary number
2841 of PHI args.
2842
2843 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
2844
2845 * modulo-sched.c: Fix comment typo. Mention the possibility
2846 of using scheduling windows of II+1 cycles.
2847
2848 2011-10-11 Tristan Gingold <gingold@adacore.com>
2849
2850 * doc/invoke.texi (C Dialect Options): Document
2851 -fallow-parameterless-variadic-functions.
2852 * c-parser.c (c_parser_parms_list_declarator): Handle it.
2853
2854 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2855
2856 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
2857 to 0 if frame pointer is needed for unwinding.
2858
2859 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
2860
2861 PR bootstrap/50665
2862 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
2863 optab_index to enum direct_optab_index.
2864 (vec_perm_optab): Update.
2865
2866 2011-10-10 Anatoly Sokolov <aesok@post.ru>
2867
2868 * config/cris/cris.c (cris_preferred_reload_class): New function.
2869 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2870 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
2871
2872 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2873
2874 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
2875 !AVR_HAVE_JMP_CALL.
2876 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
2877 (*tablejump_enh, *tablejump): Remove insns.
2878 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
2879 EIJMP for indirect jump. Use LPM Z+ where available.
2880
2881 2011-10-10 Richard Henderson <rth@redhat.com>
2882
2883 * doc/md.texi (vec_perm_const): Fix typo in cindex.
2884
2885 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
2886 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
2887
2888 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
2889
2890 2011-10-10 Richard Guenther <rguenther@suse.de>
2891
2892 PR middle-end/50389
2893 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2894 mark symbols for renaming. Append the VUSE to all statements
2895 that possibly can have one.
2896
2897 2011-10-10 Richard Guenther <rguenther@suse.de>
2898
2899 * ipa-split.c (pass_split_functions): Add verification TODOs.
2900 (pass_feedback_split_functions): Likewise.
2901
2902 2011-10-10 Richard Guenther <rguenther@suse.de>
2903
2904 PR middle-end/50195
2905 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
2906 only when optimizing.
2907
2908 2011-10-10 Nick Clifton <nickc@redhat.com>
2909
2910 PR middle-end/49801
2911 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
2912 df_get_live_out instead of accessing the bitmaps directly.
2913 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
2914 df_live_add_problem and df_analyze.
2915
2916 2011-10-10 Michael Matz <matz@suse.de>
2917
2918 PR middle-end/50638
2919 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
2920
2921 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2922
2923 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
2924 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
2925 (node_sched_params): Remove first_reg_move and nreg_moves.
2926 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
2927 (update_node_sched_params): Move up file.
2928 (print_node_sched_params): Print the stage. Don't dump info related
2929 to first_reg_move and nreg_moves.
2930 (set_columns_for_row): New function.
2931 (set_columns_for_ps): Move up file and use set_columns_for_row.
2932 (schedule_reg_move): New function.
2933 (schedule_reg_moves): Call extend_node_sched_params and
2934 schedule_reg_move. Extend size of uses bitmap. Initialize
2935 num_consecutive_stages. Return false if a move could not be
2936 scheduled.
2937 (apply_reg_moves): Don't emit moves here.
2938 (permute_partial_schedule): Handle register moves.
2939 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
2940 to the same stage-count test as ddg nodes.
2941 (generate_prolog_epilog): Update calls accordingly.
2942 (sms_schedule): Allow move-scheduling to add a new first stage.
2943
2944 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2945
2946 * modulo-sched.c (ps_insn): Adjust comment.
2947 (ps_reg_move_info): New structure.
2948 (partial_schedule): Add reg_moves field.
2949 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
2950 (node_sched_params): Turn first_reg_move into an identifier.
2951 (ps_reg_move): New function.
2952 (ps_rtl_insn): Cope with register moves.
2953 (ps_first_note): Adjust comment and assert that the instruction
2954 isn't a register move.
2955 (node_sched_params): Replace with...
2956 (node_sched_param_vec): ...this vector.
2957 (set_node_sched_params): Adjust accordingly.
2958 (print_node_sched_params): Take a partial schedule instead of a ddg.
2959 Use ps_rtl_insn and ps_reg_move.
2960 (generate_reg_moves): Rename to...
2961 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
2962 move in the partial schedule, but don't emit it here. Don't perform
2963 register substitutions here either.
2964 (apply_reg_moves): New function.
2965 (duplicate_insns_of_cycles): Use register indices directly,
2966 rather than finding instructions using PREV_INSN. Use ps_reg_move.
2967 (sms_schedule): Call schedule_reg_moves before committing to
2968 a partial schedule. Try the next ii if the schedule fails.
2969 Use apply_reg_moves instead of generate_reg_moves. Adjust
2970 call to print_node_sched_params. Free node_sched_param_vec
2971 instead of node_sched_params.
2972 (create_partial_schedule): Initialize reg_moves.
2973 (free_partial_schedule): Free reg_moves.
2974
2975 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2976
2977 * modulo-sched.c (ps_insn): Replace node field with an identifier.
2978 (SCHED_ASAP): Replace with..
2979 (NODE_ASAP): ...this macro.
2980 (SCHED_PARAMS): New macro.
2981 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
2982 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
2983 (node_sched_params): Remove asap.
2984 (ps_rtl_insn, ps_first_note): New functions.
2985 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
2986 asap values.
2987 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
2988 (generate_reg_moves): Pass ids to the SCHED_* macros.
2989 (update_node_sched_params): Take a ps insn identifier rather than
2990 a node as parameter. Use ps_rtl_insn.
2991 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
2992 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
2993 (optimize_sc): Update for above field and SCHED_* macro changes.
2994 Update calls to try_scheduling_node_in_cycle and
2995 update_node_sched_params.
2996 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
2997 macro changes. Use ps_rtl_insn and ps_first_note.
2998 (sms_schedule): Pass ids to the SCHED_* macros.
2999 (get_sched_window): Adjust for above field and SCHED_* macro changes.
3000 Use NODE_ASAP instead of SCHED_ASAP.
3001 (try_scheduling_node_in_cycle): Remove node parameter. Update
3002 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
3003 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
3004 (ps_insert_empty_row): Adjust for above field changes.
3005 (compute_split_row): Use ids rather than nodes.
3006 (verify_partial_schedule): Adjust for above field changes.
3007 (print_partial_schedule): Use ps_rtl_insn.
3008 (create_ps_insn): Take an id rather than a node.
3009 (ps_insn_find_column): Adjust for above field changes.
3010 Use ps_rtl_insn.
3011 (ps_insn_advance_column): Adjust for above field changes.
3012 (add_node_to_ps): Remove node parameter. Update call to
3013 create_ps_insn.
3014 (ps_has_conflicts): Use ps_rtl_insn.
3015 (ps_add_node_check_conflicts): Replace node parameter than an id.
3016
3017 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3018
3019 * modulo-sched.c (undo_replace_buff_elem): Delete.
3020 (generate_reg_moves): Don't build and return an undo list.
3021 (free_undo_replace_buff): Delete.
3022 (sms_schedule): Adjust call to generate_reg_moves.
3023 Don't call free_undo_replace_buff.
3024
3025 2011-10-10 Matthias Klose <doko@ubuntu.com>
3026
3027 * common/config/m32c: Remove empty directory.
3028
3029 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
3030
3031 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
3032
3033 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
3034
3035 PR target/50652
3036 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
3037 atmega164a to 0x100.
3038
3039 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
3040
3041 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
3042 the replacement if the conversion to the LHS type is not useless.
3043
3044 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
3045
3046 PR tree-optimization/50635
3047 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
3048 DEF_STMT to the list of statements to be replaced by the
3049 pattern statements.
3050 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
3051
3052 2011-10-09 Anatoly Sokolov <aesok@post.ru>
3053
3054 * system.h: Commit forgotten hunk in previous patch.
3055 (OUTPUT_ADDR_CONST_EXTRA): Poison.
3056
3057 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
3058
3059 PR libobjc/50428
3060 * doc/objc.texi (Garbage Collection): Updated example to protect
3061 +initialize against execution in subclasses.
3062
3063 2011-10-07 Richard Henderson <rth@redhat.com>
3064
3065 * doc/extend.texi (__builtin_shuffle): Improve the description to
3066 include the modulus of the selector. Mention OpenCL.
3067 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
3068
3069 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
3070 * genopinit.c (optabs): Rename vshuffle to vec_perm.
3071 * c-typeck.c (c_build_vec_perm_expr): Rename from
3072 c_build_vec_shuffle_expr. Update for name changes.
3073 * optabs.c (expand_vec_perm_expr_p): Rename from
3074 expand_vec_shuffle_expr_p.
3075 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
3076 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
3077 (vec_perm_optab): Rename from vshuffle_optab.
3078 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
3079 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
3080 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
3081
3082 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
3083 ix86_expand_vshuffle.
3084 * config/i386/i386-protos.h: Update.
3085 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
3086 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
3087
3088 2011-10-07 Richard Henderson <rth@redhat.com>
3089
3090 * config/i386/predicates.md (avx2_pblendw_operand): New.
3091 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
3092 (avx2_pblendw, *avx2_pblendw): New expander and insn.
3093
3094 2011-10-07 Richard Henderson <rth@redhat.com>
3095
3096 * config/i386/i386.c (bdesc_args): Update code for
3097 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
3098 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
3099 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
3100 * config/i386/sse.md (mode iterator V16): Add V2TI.
3101 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
3102 (mode attr ssse3_avx2): Add V2TI.
3103 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
3104
3105 2011-10-07 David S. Miller <davem@davemloft.net>
3106
3107 PR 50655
3108 * configure.ac: Add .register directives to VIS3 test.
3109 * configure: Regenerate.
3110
3111 2011-10-07 Richard Henderson <rth@redhat.com>
3112
3113 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
3114
3115 2011-10-07 Richard Henderson <rth@redhat.com>
3116
3117 PR 49752
3118 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
3119
3120 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
3121
3122 * config/arm/predicates.md (shift_amount_operand): Remove constant
3123 range check.
3124 (shift_operator): Check range of constants for all shift operators.
3125
3126 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3127
3128 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
3129 Load GOT pointer for non-pic builds.
3130 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
3131 (s390_emit_call): Likewise.
3132
3133 2011-10-07 Tom de Vries <tom@codesourcery.com>
3134
3135 PR middle-end/50527
3136 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
3137 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
3138 throw.
3139 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
3140 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
3141 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3142 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3143 * tree-ssa-ccp.c (evaluate_stmt): Set align for
3144 BUILT_IN_ALLOCA_WITH_ALIGN.
3145 (fold_builtin_alloca_for_var): Rename to ...
3146 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
3147 BUILT_IN_ALLOCA_WITH_ALIGN argument.
3148 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
3149 fold_builtin_alloca_with_align.
3150 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3151 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
3152 DEF_BUILTIN_STUB.
3153 * ipa-pure-const.c (special_builtin_state): Handle
3154 BUILT_IN_ALLOCA_WITH_ALIGN.
3155 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
3156 (call_may_clobber_ref_p_1): Same.
3157 * function.c (gimplify_parameters): Lower vla to
3158 BUILT_IN_ALLOCA_WITH_ALIGN.
3159 * gimplify.c (gimplify_vla_decl): Same.
3160 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3161 * tree-mudflap.c (mf_xform_statements): Same.
3162 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3163 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
3164 * varasm.c (incorporeal_function_p): Same.
3165 * tree-object-size.c (alloc_object_size): Same.
3166 * gimple.c (gimple_build_call_from_tree): Same.
3167
3168 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
3169
3170 * function.c (frame_required_for_rtx): Remove function.
3171 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
3172 changed. Compute a set of mentioned registers and compare against
3173 the new arg rather than calling frame_required_for_rtx.
3174 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
3175 reg set. Convert the unconverted_simple_returns mechanism to store
3176 jump insns rather than their basic blocks. Also check the
3177 orig_entry_edge destination for new blocks.
3178
3179 2011-10-07 Jakub Jelinek <jakub@redhat.com>
3180
3181 PR tree-optimization/50650
3182 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
3183 call vect_is_simple_cond here, instead fail if cond_expr isn't
3184 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
3185 for cond_expr's first operand.
3186 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
3187 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
3188
3189 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3190
3191 * config/s390/s390.md (DWH, dwh): New mode macros.
3192 ("umulsidi3"): Extend to support "umulditi3" as well.
3193
3194 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
3195 H.J. Lu <hongjiu.lu@intel.com>
3196
3197 PR target/50603
3198 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
3199 integer PLUS RTX to a register to improve address combine.
3200
3201 2011-10-06 Richard Henderson <rth@redhat.com>
3202
3203 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
3204 parameter; use it to decide whether to merge two notes.
3205 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
3206 for the deallocation case as well.
3207
3208 2011-10-06 Anatoly Sokolov <aesok@post.ru>
3209
3210 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
3211 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
3212 * doc/tm.texi: Regenerate.
3213 * target.def (output_addr_const_extra): Use
3214 hook_bool_FILEptr_rtx_false.
3215 * targhooks.c (default_asm_output_addr_const_extra): Remove.
3216 * targhooks.h (default_asm_output_addr_const_extra): Remove.
3217 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
3218 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
3219
3220 2011-10-06 David S. Miller <davem@davemloft.net>
3221
3222 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
3223 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
3224 SI mode 64-bit code gen case explicitly zero-extend and truncate.
3225 (*popcount<mode>_sp64): Split up into...
3226 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
3227 SImode case use truncate.
3228 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
3229 subtract so the compiler can optimize it.
3230 (SIDI): Remove unused mode iterator.
3231
3232 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3233
3234 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
3235 on the orig_entry_edge. Don't account for it in prologue_clobbered.
3236
3237 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3238
3239 PR tree-optimization/50596
3240 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
3241 (NUM_PATTERNS): Change to 6.
3242 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
3243 function.
3244 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
3245 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
3246 if it already has one, and don't set STMT_VINFO_VECTYPE in it
3247 if it is already set.
3248 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
3249 COND_EXPR in pattern stmts.
3250 (vect_is_simple_cond): No longer static.
3251
3252 2001-10-06 Richard Henderson <rth@redhat.com>
3253
3254 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
3255 * config/i386/sse.md (sseshuffint): Remove.
3256 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
3257 (VSHUFFLE_AVX2): New mode iterator.
3258 (vshuffle<mode>): Use it.
3259 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
3260
3261 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
3262 for vector_all_ones_operand.
3263 (ix86_expand_int_vcond): Distinguish between comparison mode
3264 and data mode. Allow them to differ.
3265 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
3266
3267 2001-10-06 Richard Henderson <rth@redhat.com>
3268
3269 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
3270 mask operand. Tidy the code.
3271
3272 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3273
3274 * tree-vect-patterns.c (vect_pattern_recog_1): Use
3275 vect_recog_func_ptr typedef for the first argument.
3276 (vect_pattern_recog): Rename vect_recog_func_ptr variable
3277 to vect_recog_func, use vect_recog_func_ptr typedef for it.
3278
3279 PR tree-optimization/49279
3280 * tree-ssa-structalias.c (find_func_aliases): Don't handle
3281 CAST_RESTRICT.
3282 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
3283 restrict propagation.
3284 * tree-ssa.c (useless_type_conversion_p): Don't return false
3285 if TYPE_RESTRICT differs.
3286
3287 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3288
3289 * function.c (thread_prologue_and_epilogue_insns): Build a vector
3290 of unconverted simple return blocks rather than trying to
3291 recompute them later based on bb_flags bitmap tests.
3292
3293 2011-10-06 Michael Matz <matz@suse.de>
3294
3295 * tree-flow.h (get_var_ann): Don't declare.
3296 * tree-flow-inline.h (get_var_ann): Remove.
3297 (set_is_used): Use var_ann, not get_var_ann.
3298 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
3299 * tree-profile.c (gimple_gen_edge_profiler): Call
3300 find_referenced_var_in.
3301 (gimple_gen_interval_profiler): Ditto.
3302 (gimple_gen_pow2_profiler): Ditto.
3303 (gimple_gen_one_value_profiler): Ditto.
3304 (gimple_gen_average_profiler): Ditto.
3305 (gimple_gen_ior_profiler): Ditto.
3306 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
3307 (gimple_gen_ic_func_profiler): Call add_referenced_var.
3308 * tree-mudflap.c (execute_mudflap_function_ops): Call
3309 add_referenced_var.
3310
3311 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3312
3313 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
3314 don't set SSA_NAME_DEF_STMT that has been already set by
3315 gimple_build_assign_with_ops.
3316 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
3317 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
3318 Likewise.
3319
3320 * tree.h (avoid_folding_inline_builtin): New prototype.
3321 * builtins.c (avoid_folding_inline_builtin): No longer static.
3322 * gimple-fold.c (gimple_fold_builtin): Give up if
3323 avoid_folding_inline_builtin returns true.
3324
3325 2011-10-06 Richard Guenther <rguenther@suse.de>
3326
3327 * tree-vect-generic.c (vector_element): Look at previous
3328 generated results.
3329
3330 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
3331
3332 PR target/39950
3333 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
3334 __powerpc__, __PPC__, __unix__.
3335
3336 2011-10-06 Michael Matz <matz@suse.de>
3337
3338 * i386/i386.opt (recip_mask, recip_mask_explicit,
3339 x_recip_mask_explicit): New variables and cl_target member.
3340 (mrecip=): New option.
3341 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
3342 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
3343 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
3344 TARGET_RECIP_VEC_SQRT): New tests.
3345 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
3346 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
3347 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
3348 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
3349 * i386/i386.c (ix86_option_override_internal): Set recip_mask
3350 for -mrecip and -mrecip=options.
3351 (ix86_function_specific_save): Save recip_mask_explicit.
3352 (ix86_function_specific_restore): Restore recip_mask_explicit.
3353
3354 * doc/invoke.texi (ix86 Options): Document the new option.
3355
3356 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3357
3358 PR target/49049
3359 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
3360
3361 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
3362
3363 PR target/50305
3364 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
3365 output of a previous pass through legitimize_reload_address.
3366 Do not attempt to optimize addresses if the base register is
3367 equivalent to a constant.
3368
3369 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3370
3371 * function.c (thread_prologue_and_epilogue_insns): Mark
3372 last_bb_active as possibly unused. It is unused for targets which
3373 do neither have "return" nor "simple_return" expanders.
3374
3375 2011-10-06 Richard Guenther <rguenther@suse.de>
3376
3377 * fold-const.c (fold_ternary_loc): Also fold non-constant
3378 vector CONSTRUCTORs. Make more efficient.
3379 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
3380 (cprop_into_stmt): Don't propagate into virtual operands.
3381 (optimize_stmt): Really dump original statement.
3382
3383 2011-10-06 Nick Clifton <nickc@redhat.com>
3384
3385 * config/rx/rx.md (smin3): Revert previous delta.
3386
3387 2011-10-06 Richard Guenther <rguenther@suse.de>
3388
3389 PR tree-optimization/38884
3390 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
3391 reads from aggregate SSA names.
3392
3393 2011-10-05 Jakub Jelinek <jakub@redhat.com>
3394
3395 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
3396 argument, truncate it at the beginning instead of allocating there
3397 and freeing at the end.
3398 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
3399 pass its address to vect_pattern_recog_1.
3400
3401 2011-10-05 David S. Miller <davem@davemloft.net>
3402
3403 * config/sparc/sparc.opt (POPC): New option.
3404 * doc/invoke.texi: Document it.
3405 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
3406 default on Niagara-2 and later.
3407 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3408 * config/sparc/sparc.md (SIDI): New mode iterator.
3409 (ffsdi2): Delete commented out pattern and comments.
3410 (popcount<mode>2, clz<mode>2): New expanders.
3411 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
3412 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
3413
3414 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3415
3416 PR middle-end/50607
3417 * c-tree.h (c_expr_t): New typedef for struct c_expr.
3418 (C_EXPR_APPEND): New macro.
3419 * c-parser.c (c_parser_get_builtin_args): Preserve
3420 original_tree_code of c_expr structure.
3421 (c_parser_postfix_expression): Adjust to the new function.
3422
3423 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3424
3425 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
3426 if profiling after the prologue.
3427
3428 2011-10-05 Jakub Jelinek <jakub@redhat.com>
3429
3430 PR tree-optimization/50613
3431 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
3432 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
3433 and if it is neither that not SSA_NAME, give up.
3434
3435 2011-10-05 Richard Henderson <rth@redhat.com>
3436
3437 * tree-vect-generic.c (vector_element): Never fail. Use
3438 build_zero_cst. Tidy up type references.
3439 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
3440 code duplication. Do update_stmt here ...
3441 (expand_vector_operations_1): ... not here.
3442
3443 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
3444 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
3445 duplication. Handle V2DI without SSE4.1.
3446 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
3447 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
3448
3449 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
3450
3451 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
3452 of "found". Simplify return value calculation.
3453 (distance_agu_use): Ditto.
3454
3455 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3456
3457 PR bootstrap/50621
3458 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
3459 if the function was not shrink-wrapped.
3460 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
3461 to an insn.
3462 * function.c (thread_prologue_and_epilogue_insns): Make sure the
3463 shrink_wrapped flag is set even if there is no dump file.
3464
3465 2011-10-05 DJ Delorie <dj@redhat.com>
3466 Nick Clifton <nickc@redhat.com>
3467
3468 * config/rx/rx.opt (mpid): Define.
3469 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
3470 (MULTILIB_DIRNAMES): Add pid.
3471 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
3472 (rx_num_interrupt_regs): New variable.
3473 (rx_gp_base_regnum): New function. Returns the number of the
3474 small data area register.
3475 (rx_pid_base_regnum): New function. Returns the number of the pid
3476 base register.
3477 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
3478 (rx_pid_data_operand): New function. Returns whether an object is
3479 in the position independent data area.
3480 (rx_legitimize_address): New function. Puts undecided PID
3481 objects in the PID data area.
3482 (rx_is_legitimate_address): Add support for PID operands.
3483 (rx_print_operand_address): Likewise.
3484 (rx_print_operand): Likewise.
3485 (rx_maybe_pidify_operand): New function. Determine if an operand
3486 is suitable for PID addressing.
3487 (rx_gen_move_template): Add PID support.
3488 (rx_conditional_register_usage): Likewise.
3489 (rx_option_override): Initialise rx_num_interrupt_regs.
3490 (rx_is_legitimate_constant): Add support for PID constants.
3491 (TARGET_LEGITIMIZE_ADDRESS): Define.
3492 * config/rx/constraints.md (Rpid): Define.
3493 (Rpda): Define.
3494 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
3495 (tablejump): Add PID support.
3496 (mov<>): Likewise.
3497 (mov<>_internal): Likewise.
3498 (addsi3): Convert to an expander. Add PID support.
3499 (pid_addr): New pattern.
3500 * config/rx/rx.h (CPP_SPEC): Define.
3501 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
3502 (CASE_VECTOR_PC_RELATIVE): Define.
3503 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
3504 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
3505 * doc/invoke.texi (RX Options): Document -mpid command line option.
3506
3507 2011-10-05 Richard Guenther <rguenther@suse.de>
3508
3509 PR tree-optimization/38885
3510 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
3511 from constants.
3512
3513 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3514
3515 * doc/invoke.texi (-fshrink-wrap): Document.
3516 * opts.c (default_options_table): Add it.
3517 * common.opt (fshrink-wrap): Add.
3518 * function.c (emit_return_into_block): Remove useless declaration.
3519 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
3520 requires_stack_frame_p, gen_return_pattern): New static functions.
3521 (emit_return_into_block): New arg simple_p. All callers changed.
3522 Use gen_return_pattern.
3523 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
3524 * config/i386/i386.md (return): Expand into a simple_return.
3525 (simple_return): New expander):
3526 (simple_return_internal, simple_return_internal_long,
3527 simple_return_pop_internal_long, simple_return_indirect_internal):
3528 Renamed from return_internal, return_internal_long,
3529 return_pop_internal_long and return_indirect_internal; changed to use
3530 simple_return.
3531 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
3532 simple returns.
3533 (ix86_pad_returns): Likewise.
3534 * function.h (struct rtl_data): Add member shrink_wrapped.
3535 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
3536 are not jumps or sibcalls can't be compared.
3537
3538 2011-10-05 Richard Guenther <rguenther@suse.de>
3539
3540 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
3541 vector type.
3542 (simplify_unary_expression): Handle BIT_FIELD_REFs.
3543 (try_to_simplify): Handle BIT_FIELD_REFs.
3544
3545 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
3546
3547 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
3548 * config/avr/avr.c (avr_out_addto_sp): New function.
3549 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
3550 * config/avr/avr.md (adjust_len): Add "addto_sp".
3551 (*movhi_sp): Remove insn.
3552 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
3553
3554 2011-10-05 Richard Guenther <rguenther@suse.de>
3555
3556 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
3557 with an embedded expression valueize and fold that as well.
3558 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
3559 results from gimple_fold_stmt_to_constant_1.
3560
3561 2011-10-05 Nick Clifton <nickc@redhat.com>
3562
3563 * config/rx/rx.md (tablejump): Add missing label.
3564 (adddi3_internal): Mark operand 0 as early-clobbered.
3565 (smaxsi3): Revert previous delta.
3566 (adc_internal): Fix whitespace in generated asm.
3567 (adc_flags): Likewise.
3568
3569 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3570
3571 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
3572 with the new widening_optab_handler.
3573
3574 2011-10-05 Richard Guenther <rguenther@suse.de>
3575
3576 PR tree-optimization/50609
3577 * gimple-fold.c (fold_array_ctor_reference): Also handle
3578 vector typed constructors.
3579 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
3580 for vector typed constructors.
3581
3582 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
3583
3584 * config/i386/i386.c (ix86_emit_binop): New static function.
3585 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
3586 instructions.
3587 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
3588
3589 2011-10-04 David S. Miller <davem@davemloft.net>
3590
3591 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
3592 UNSPEC_XMUL): New unspecs.
3593 (muldi3_v8plus): Use output_v8plus_mult.
3594 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
3595 New VIS 3.0 combiner patterns.
3596 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
3597 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
3598 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
3599 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
3600 builtins patterns.
3601 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
3602 (output_v8plus_mult): New function.
3603 * config/sparc/sparc-protos.h: Declare it.
3604 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
3605 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
3606 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
3607 * doc/extend.texi: Document new builtins.
3608
3609 2011-10-04 Richard Henderson <rth@redhat.com>
3610
3611 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
3612 Avoid save_expr unless two_arguments.
3613
3614 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
3615
3616 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
3617 * config/i386/mingw32.h (CPP_SPEC): Likewise.
3618
3619 2011-10-04 David S. Miller <davem@davemloft.net>
3620
3621 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
3622 under Linux.
3623
3624 2011-10-04 Jakub Jelinek <jakub@redhat.com>
3625
3626 PR tree-optimization/50604
3627 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
3628 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
3629 last argument to memcpy has size_type_node type instead of ssizetype.
3630 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
3631 instead of TREE_TYPE (len) as type for newlen.
3632
3633 PR tree-optimization/50522
3634 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
3635 TYPE_RESTRICT.
3636 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
3637 unconditionally.
3638
3639 * fold-const.c (fold_unary_loc): Don't optimize
3640 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
3641 casting the inner pointer if it isn't TYPE_RESTRICT.
3642 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
3643 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
3644
3645 2011-10-04 Joseph Myers <joseph@codesourcery.com>
3646
3647 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
3648
3649 2011-10-04 Jan Hubicka <jh@suse.cz>
3650
3651 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
3652 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
3653 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
3654 * lto-cgraph.c (order_base): New static var.
3655 (lto_output_node): Stream in order.
3656 (lto_output_varpool_node): Stream out order.
3657 (input_node): Stream in order.
3658 (input_varpool_node): Stream out order.
3659 (input_cgraph_1): Initialize order base; update call of
3660 lto_input_toplevel_asms.
3661
3662 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
3663
3664 PR target/50566
3665 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
3666 prototype.
3667 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
3668 from here...
3669 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
3670 function. Log if avr_log.legitimize_reload_address.
3671
3672 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
3673
3674 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
3675
3676 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3677
3678 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
3679 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
3680
3681 2011-10-03 David S. Miller <davem@davemloft.net>
3682
3683 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
3684 GSR_REG an input operand to UNSPEC instead of a parallel USE.
3685 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
3686 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
3687 Reference GSR_REG in DI mode, simplify convoluted expressions by using
3688 zero_extract.
3689 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
3690
3691 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
3692
3693 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
3694
3695 2011-10-03 Jakub Jelinek <jakub@redhat.com>
3696 Ian Lance Taylor <iant@google.com>
3697
3698 * godump.c (go_output_typedef): Support printing enum values that
3699 don't fit in a signed HOST_WIDE_INT.
3700
3701 2011-10-03 Anatoly Sokolov <aesok@post.ru>
3702
3703 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
3704 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3705 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3706 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
3707
3708 2011-10-03 Anatoly Sokolov <aesok@post.ru>
3709
3710 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
3711 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3712 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3713 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
3714
3715 2011-10-03 Steve Ellcey <sje@cup.hp.com>
3716
3717 PR target/49967
3718 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
3719 (gcc_cv_ld_static_option): Ditto.
3720 (gcc_cv_ld_dynamic_option): Ditto.
3721 * configure: Regenerate.
3722
3723 2011-10-03 David S. Miller <davem@davemloft.net>
3724
3725 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
3726 and 'si' patterns which describe the GSR changes explicitly in the
3727 RTL using zero_extract.
3728 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
3729
3730 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
3731 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
3732
3733 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3734
3735 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
3736 if given expression can be expanded by the target.
3737 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
3738 using target vector instructions.
3739 * optabs.h: New optab vshuffle.
3740 (expand_vec_shuffle_expr_p): New prototype.
3741 (expand_vec_shuffle_expr): New prototype.
3742 (vshuffle_optab): New optab.
3743 * genopinit.c: Adjust to support vecshuffle.
3744 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
3745 * expr.c (expand_expr_real_2): Adjust.
3746 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
3747 recognizing the cases of two and three arguments.
3748 (convert_arguments) (build_binary_op)
3749 (scalar_to_vector) (build_array_ref): Spurious whitespace.
3750 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
3751 * tree.def: New tree code VEC_SHUFFLE_EXPR.
3752 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
3753 * tree-vect-generic.c (vector_element): New function. Returns an
3754 element of the vector at the given position.
3755 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
3756 by the backend or expand an expression piecewise.
3757 (expand_vector_operations_1): Adjusted.
3758 (gate_expand_vector_operations_noop): New gate function.
3759 * Makefile.in (tree-vect-generic.o): New include.
3760 * gimple.c (get_gimple_rhs_num_ops): Adjust.
3761 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
3762 * passes.c: Move veclower down.
3763 * tree-pretty-print.c (dump_generic_node): Recognize
3764 VEC_SHUFFLE_EXPR as valid expression.
3765 * c-parser.c (c_parser_get_builtin_args): Helper function for the
3766 builtins with variable number of arguments.
3767 (c_parser_postfix_expression): Use a new helper function for
3768 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
3769 * tree-ssa-operands: Adjust.
3770 * c-family/c-common.c: New __builtin_shuffle keyword.
3771 * c-family/c-common.h: New __builtin_shuffle keyword.
3772 * gcc/doc/extend.texi: Adjust.
3773
3774 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
3775 between the vector and the type of the mask when shuffling.
3776 (vecshuffle<mode>): New expansion.
3777 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
3778 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
3779 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
3780
3781 2011-10-03 Jakub Jelinek <jakub@redhat.com>
3782
3783 PR tree-optimization/50587
3784 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
3785 arg0 is not a SSA_NAME.
3786
3787 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
3788
3789 * ipa-inline-analysis.c (MAX_TIME): Update comment.
3790
3791 2011-10-02 Richard Henderson <rth@redhat.com>
3792 David S. Miller <davem@davemloft.net>
3793
3794 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
3795 conditional insn type setting, we always emit a shift.
3796 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
3797 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
3798 * config/sparc/predicates.md (const_one_operand): Delete.
3799
3800 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
3801
3802 * invoke.texi (SPARC Options): Refer to GNU/Linux.
3803
3804 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
3805
3806 * config/mips/mips.c (mips_frame_barrier): New function.
3807 (mips_expand_prologue): Call it after allocating stack space.
3808 (mips_deallocate_stack): New function.
3809 (mips_expand_epilogue): Call mips_frame_barrier and
3810 mips_deallocate_stack.
3811
3812 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
3813
3814 PR target/49696
3815 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
3816 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
3817 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
3818
3819 2011-10-02 Jan Hubicka <jh@suse.cz>
3820
3821 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
3822
3823 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
3824 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
3825 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
3826 functions are reachable when address is taken.
3827 * tree-sra.c (modify_function): Free dominance info.
3828
3829 2011-10-02 Jan Hubicka <jh@suse.cz>
3830
3831 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
3832
3833 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
3834 (reset_inline_summary): New function.
3835 (compute_inline_parameters, inline_node_removal_hook,
3836 inline_edge_removal_hook): Use it.
3837 (inline_free_summary): Reset holders correctly.
3838 (inline_generate_summary): Free summary before computing it.
3839
3840 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
3841
3842 PR preprocessor/36819
3843 * incpath.c (merge_include_chains): Call free_path on
3844 heads[QUOTE] and tails[QUOTE].
3845
3846 2011-10-02 Jan Hubicka <jh@suse.cz>
3847
3848 PR lto/47247
3849 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
3850 when resolution is already availbale from plugin.
3851 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
3852 * cgraph.c (ld_plugin_symbol_resolution): Add
3853 prevailing_def_ironly_exp.
3854 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
3855 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
3856 externally visible.
3857 * varasm.c (resolution_to_local_definition_p): Add
3858 LDPR_PREVAILING_DEF_IRONLY_EXP.
3859 (resolution_local_p): Likewise.
3860
3861 2011-10-01 David S. Miller <davem@davemloft.net>
3862
3863 * config/sparc/sparc.opt (VIS3): New option.
3864 * doc/invoke.texi: Document it.
3865 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
3866 not capable of such instructions.
3867 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
3868 to 0x300 when TARGET_VIS3.
3869 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
3870 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
3871 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
3872 (V64N8, VASS): New mode iterators.
3873 (vis3_shift, vis3_addsub_ss): New code iterators.
3874 (vbits, vconstr): New mode attributes.
3875 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
3876 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
3877 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
3878 fmean16_vis, fpadd64_vis, fpsub64_vis,
3879 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
3880 VIS 3.0 instruction patterns.
3881 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
3882 default when targetting capable cpus. TARGET_VIS3 implies
3883 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
3884 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
3885 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
3886 is ignored.
3887 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
3888 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
3889 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
3890 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
3891 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
3892 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
3893 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
3894 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
3895 * doc/extend.texi: Document new VIS 3.0 builtins.
3896
3897 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
3898
3899 * ira-color.c (assign_hard_reg): Fix typo.
3900
3901 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
3902
3903 * doc/extend.texi: Add missing ','.
3904
3905 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
3906
3907 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
3908 Enable -fmodulo-sched at -O2 and above.
3909 * config/c6x/c6x.md (doloop_end): New expander.
3910 (mvilc, sploop, spkernel, loop_end): New patterns.
3911 (loop_end with memory destination splitter): New.
3912 * config/c6x/c6x.c: Include "hw-doloop.h".
3913 (enum unitreqs): New.
3914 (unit_req_table): New typedef.
3915 (unit_reqs): New static variable.
3916 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
3917 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
3918 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
3919 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
3920 (struct c6x_sched_context): New member last_scheduled_iter0.
3921 (init_sched_state): Initialize it.
3922 (c6x_variable_issue): Update it.
3923 (sploop_max_uid_iter0): New static variable.
3924 (c6x_sched_reorder_1): Be careful about issuing sploop.
3925 (c6x_reorg): Call c6x_hwlooops before the final schedule.
3926
3927 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
3928
3929 PR target/50566
3930 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
3931 * config/avr/avr.c (avr_address_cost): Use it.
3932 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
3933 (avr_log_vadump): Unknown %-codes finish printing.
3934
3935 2011-09-30 Jakub Jelinek <jakub@redhat.com>
3936
3937 PR inline-asm/50571
3938 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
3939 input constraints allow mem and not reg, pass true instead of
3940 false as second argument to maybe_fold_reference.
3941
3942 PR tree-optimization/46309
3943 * fold-const.c (make_range, merge_ranges): Remove prototypes.
3944 (make_range_step): New function.
3945 (make_range): Use it.
3946 * tree.h (make_range_step): New prototypes.
3947 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
3948 * tree-ssa-reassoc.c: Include diagnostic-core.h.
3949 (struct range_entry): New type.
3950 (init_range_entry, range_entry_cmp, update_range_test,
3951 optimize_range_tests): New functions.
3952 (reassociate_bb): Call optimize_range_tests.
3953
3954 2011-09-30 Jakub Jelinek <jakub@redhat.com>
3955 Richard Guenther <rguenther@suse.de>
3956
3957 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
3958 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
3959 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
3960 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
3961 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
3962 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
3963
3964 2011-09-30 Jan Beulich <jbeulich@suse.com>
3965
3966 * lto-cgraph.c (output_cgraph): Remove processing of
3967 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
3968 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
3969 lto_input_toplevel_asms() instead.
3970 * lto-section-in.c (lto_section_name): Add "asm" entry.
3971 * lto-streamer-in.c (lto_input_toplevel_asms): New.
3972 * lto-streamer-out.c (lto_output_toplevel_asms): New.
3973 * lto-streamer.h (LTO_minor_version): Bump.
3974 (enum lto_section_type): Add LTO_section_asm.
3975 (struct lto_asm_header): New.
3976 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
3977 * tree-streamer.h (streamer_write_string_cst): Declare.
3978 * tree-streamer-out.c (write_string_cst): Rename to
3979 streamer_write_string_cst and make global. Handle incoming string
3980 being NULL.
3981 (streamer_write_tree_header): Adjust call to renamed function.
3982
3983 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
3984
3985 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
3986 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
3987 modulo_last_stage): New static variables.
3988 (set_modulo_params, discard_delay_pairs_above): New functions.
3989 (struct delay_pair): New member stages.
3990 (htab_i2_traverse, htab_i1_traverse): New static functions.
3991 (record_delay_slot_pair): New arg stages. All callers changed.
3992 Record it.
3993 (pair_delay): Take stages into account.
3994 (add_delay_dependencies): Don't do so for stage pairs.
3995 (struct sched_block_state): New member modulo_epilogue.
3996 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
3997 (unschedule_insns_until): Decrease modulo_insns_scheduled.
3998 Set HARD_DEP without using or.
3999 (resolve_dependencies): New static function.
4000 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
4001 If it is true, allow only insns with INSN_EXACT_TICK set.
4002 (schedule_block): Return bool, always true for normal scheduling,
4003 true or false depending on modulo scheduling success otherwise.
4004 Add bookkeeping for modulo scheduling, and call resolve_dependencies
4005 on everything left over after a modulo schedule.
4006 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
4007 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
4008 declarations.
4009 (set_modulo_params, discard_delay_pairs_above): Declare.
4010 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
4011 * doc/invoke.texi (--param): Document it.
4012
4013 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
4014 New arg modulo_scheduling. All callers changed. Move note handling
4015 code here from schedule_ebbs.
4016 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
4017 out of schedule_ebbs.
4018 (schedule_ebbs): Call them. Remove note handling code moved to
4019 schedule_ebb.
4020 * sched-int.h (schedule_ebb, schedule_ebbs_init,
4021 schedule_ebbs_finish): Declare.
4022
4023 2011-09-30 Richard Guenther <rguenther@suse.de>
4024
4025 PR middle-end/50574
4026 * tree-cfg.c (verify_gimple_comparison): Compare component
4027 mode sizes for vector comparisons.
4028
4029 2011-09-30 Revital Eres <revital.eres@linaro.org>
4030
4031 * ddg.c (autoinc_var_is_used_p): New function.
4032 (create_ddg_dep_from_intra_loop_link,
4033 add_cross_iteration_register_deps): Call it.
4034 * ddg.h (autoinc_var_is_used_p): Declare.
4035 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
4036 (sms_schedule): Handle instructions with REG_INC.
4037
4038 2011-09-30 Revital Eres <revital.eres@linaro.org>
4039
4040 * modulo-sched.c (generate_reg_moves): Skip instructions that
4041 do not set a register and verify no regmoves are created for
4042 !single_set instructions.
4043
4044 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
4045
4046 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
4047 insns.
4048
4049 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4050
4051 PR target/50099
4052 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
4053 (qhs_zextenddi_op): New.
4054 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
4055 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
4056 Distinguish between ARM and Thumb2 states.
4057
4058 2011-09-30 David S. Miller <davem@davemloft.net>
4059
4060 * config/sparc/sparc.opt (VIS2): New option.
4061 * doc/invoke.texi: Document it.
4062 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
4063 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
4064 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
4065 (define_attr type): New insn type 'edgen'.
4066 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
4067 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
4068 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
4069 patterns.
4070 * niagara.md: Handle edgen.
4071 * niagara2.md: Likewise.
4072 * ultra1_2.md: Likewise.
4073 * ultra3.md: Likewise.
4074 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
4075 to 0x200 when TARGET_VIS2.
4076 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
4077 default when targetting capable cpus. TARGET_VIS2 implies
4078 TARGET_VIS, clear and it when TARGET_FPU is disabled.
4079 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
4080 (sparc_expand_builtin): Fix predicate indexing when builtin returns
4081 void.
4082 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
4083 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
4084 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
4085 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
4086 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
4087 * doc/extend.texi: Document new VIS 2.0 builtins.
4088
4089 2011-09-29 Nick Clifton <nickc@redhat.com>
4090 Bernd Schmidt <bernds@codesourcery.com>
4091
4092 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
4093 * config/frv/frvend.c: Likewise.
4094 * config/frv/frv.c (frv_function_prologue): Move misplaced
4095 CALL_ARG_LOCATION notes back to their proper locations.
4096
4097 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
4098
4099 PR target/50566
4100 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
4101 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
4102 from avr_rtx_costs.
4103 (avr_legitimate_address_p): Use avr_edump to print log information
4104 filtered by avr_log.
4105 (extra_constraint_Q): Ditto.
4106 (avr_legitimize_address): Ditto.
4107 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
4108 (final_prescan_insn): Use avr_log.rtx_costs as filter.
4109
4110 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
4111
4112 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
4113 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
4114 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
4115 NEON vector and structure modes to be tied.
4116
4117 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4118
4119 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
4120 forward declaration.
4121 (remove_duplicate_close_phi): Detect and repair creation of
4122 duplicate close-phis for a containing loop.
4123
4124 2011-09-27 Andi Kleen <ak@linux.intel.com>
4125
4126 * gcc.c (get_local_tick). Rename to get_random_number. Read from
4127 /dev/urandom. Add getpid call.
4128 (compare_debug_dump_opt_spec_function): Drop getpid call.
4129
4130 2011-09-26 Andi Kleen <ak@linux.intel.com>
4131
4132 * toplev.c (init_local_tick): Try reading random seed
4133 from /dev/urandom.
4134
4135 2011-09-26 Andi Kleen <ak@linux.intel.com>
4136
4137 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
4138 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
4139 Handle numerical random seed.
4140 * lto-streamer.h (lto_file_decl_data): Change id to
4141 unsigned HOST_WIDE_INT.
4142 * toplev.c (random_seed): Add.
4143 (init_random_seed): Change for numerical random seed.
4144 (get_random_seed): Return as HOST_WIDE_INT.
4145 (set_random_seed): Crc32 existing string.
4146 * toplev.h (get_random_seed): Change to numercal return.
4147 * tree.c (get_file_function_name): Remove CRC. Handle
4148 numerical random seed.
4149
4150 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
4151
4152 PR target/50566
4153 * config.gcc (extra_objs): Add avr-log.o for $target in:
4154 avr-*-rtems*, avr-*-*.
4155 * config/avr/t-avr (avr-log.o): New rule to compile...
4156 * config/avr/avr-log.c: ...this new file.
4157 * config/avr/avr.opt (mlog=): New option.
4158 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
4159 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
4160 (avr_log_set_avr_log): New prototype.
4161 (avr_log_t): New typedef.
4162 (avr_log): New declaration.
4163 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
4164
4165 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
4166
4167 * expr.c (do_store_flag): Expand vector comparison by
4168 building an appropriate VEC_COND_EXPR.
4169 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
4170 (c_objc_common_truthvalue_conversion): Adjust.
4171 * tree-vect-generic.c (do_compare): Helper function.
4172 (expand_vector_comparison): Check if hardware supports
4173 vector comparison of the given type or expand vector piecewise.
4174 (expand_vector_operation): Treat comparison as binary
4175 operation of vector type.
4176 (expand_vector_operations_1): Adjust.
4177
4178 2011-09-29 Richard Guenther <rguenther@suse.de>
4179
4180 * tree.c (build_opaque_vector_type): Make opaque vectors
4181 variant types of the corresponding non-opaque type. Make
4182 sure to share opaque vector types properly.
4183
4184 2011-09-29 David S. Miller <davem@davemloft.net>
4185
4186 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
4187 UNSPEC_ARRAY32): New unspec.
4188 (define_attr type): New type 'array'.
4189 (array{8,16,32}<P:mode>_vis): New patterns.
4190 * config/sparc/ultra1_2.md: Add reservations for 'array'.
4191 * config/sparc/ultra3.md: Likewise.
4192 * config/sparc/niagara.md: Likewise.
4193 * config/sparc/niagara2.md: Likewise.
4194 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
4195 array builtins.
4196 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
4197 __vis_array32): New.
4198 * doc/extend.texi: Document new VIS builtins.
4199
4200 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
4201 (VIS pixel-compare insn): Just use <gcond:name>.
4202
4203 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
4204 code iterator used, so just use <code>. There are two mode iterators
4205 so explicitly use <GCM:gcm_name>.
4206
4207 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
4208
4209 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
4210 Darwin >= 9.
4211
4212 2011-09-28 David S. Miller <davem@davemloft.net>
4213
4214 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
4215 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
4216 (UNSPEC_FCMP): New unspec.
4217 (gcond): New code iterator.
4218 (gcond_name): New code attr.
4219 (GCM): New mode iterator.
4220 (gcm_name): New mode attr.
4221 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
4222
4223 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
4224
4225 PR target/49486
4226 * config/sh/sh.md (negdi2): Move expansion into split to
4227 allow more combination options. Add T_REG clobber.
4228 (abssi2): New expander.
4229 (*negdi2, *abssi2, *negabssi2): New insns.
4230 (cneg): Change from insn to insn_and_split. Rename to
4231 negsi_cond. Add alternative for non-SH4.
4232
4233 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
4234
4235 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
4236 (neon_move_hi_quad_<mode>): Likewise.
4237 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
4238
4239 2011-09-28 Nick Clifton <nickc@redhat.com>
4240
4241 * config/rx/predicates.md (rx_minmax_operand): New predicate.
4242 Accepts immediates and a restricted subset of MEMs.
4243 * config/rx/rx.md (int_modes): New iterator.
4244 (smaxsi3, sminsi3): Delete and replace with...
4245 (smax<int_mode>3, smin<int_mode>3): New patterns.
4246 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
4247
4248 2011-09-28 Richard Guenther <rguenther@suse.de>
4249
4250 PR middle-end/50460
4251 * fold-const.c (try_move_mult_to_index): Handle &a.array the
4252 same as &a.array[0].
4253
4254 2011-09-28 Kai Tietz <ktietz@redhat.com>
4255
4256 * configure.ac: Add test for new section attribute
4257 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
4258 * config.in: Regenerated.
4259 * configure: Regenerated.
4260 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
4261 new section flag "e" for excluded sections, if supported.
4262 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
4263
4264 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
4265
4266 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
4267 throughout file.
4268
4269 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
4270
4271 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
4272 throughout file.
4273
4274 2011-09-27 Sriraman Tallam <tmsriram@google.com>
4275
4276 * output.h (SECTION_EXCLUDE): New macro.
4277 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
4278
4279 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
4280
4281 * fwprop.c (forward_propagate_and_simplify): After checking
4282 reg/subreg combinations, check whether the modes are the same.
4283
4284 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
4285 Richard Sandiford <rdsandiford@googlemail.com>
4286
4287 * config/mips/mips.c (mips_add_cfa_restore): New function.
4288 (mips16e_save_restore_reg): Use it.
4289 (mips_restore_reg): Likewise. Split double FPRs for
4290 REG_CFA_RESTORE notes.
4291
4292 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
4293
4294 PR middle-end/50386
4295 PR middle-end/50326
4296 * tree-sra.c (build_ref_for_model): Use the type of the field as
4297 the type of the COMPONENT_REF.
4298
4299 2011-09-27 Jeff Law <law@redhat.com>
4300
4301 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
4302 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
4303 (find_if_case_1): Use the probability of the THEN clause when
4304 determining if speculation is profitable.
4305 (find_if_case_2): Similarly for the ELSE clause.
4306
4307 2011-09-27 Jakub Jelinek <jakub@redhat.com>
4308
4309 * common.opt: Add -foptimize-strlen option.
4310 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
4311 (tree-sssa-strlen.o): Add dependencies.
4312 * opts.c (default_options_table): Enable -foptimize-strlen
4313 by default at -O2 if not -Os.
4314 * passes.c (init_optimization_passes): Add pass_strlen
4315 after pass_object_sizes.
4316 * timevar.def (TV_TREE_STRLEN): New timevar.
4317 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
4318 * tree-pass.h (pass_strlen): Declare.
4319 * tree-ssa-strlen.c: New file.
4320 * c-decl.c (merge_decls): If compatible stpcpy prototype
4321 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
4322
4323 2011-09-27 Tom de Vries <tom@codesourcery.com>
4324
4325 PR middle-end/43864
4326 * tree-ssa-tail-merge.c: New file.
4327 (struct same_succ_def): Define.
4328 (same_succ, const_same_succ): New typedef.
4329 (struct bb_cluster_def): Define.
4330 (bb_cluster, const_bb_cluster): New typedef.
4331 (struct aux_bb_info): Define.
4332 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
4333 (gvn_uses_equal): New function.
4334 (same_succ_print, same_succ_print_traverse, update_dep_bb)
4335 (stmt_update_dep_bb, local_def, same_succ_hash)
4336 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
4337 (same_succ_reset): New function.
4338 (same_succ_htab, same_succ_edge_flags)
4339 (deleted_bbs, deleted_bb_preds): New var.
4340 (debug_same_succ): New function.
4341 (worklist): New var.
4342 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
4343 (init_worklist, delete_worklist, delete_basic_block_same_succ)
4344 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
4345 (print_cluster, debug_cluster, update_rep_bb)
4346 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
4347 (all_clusters): New var.
4348 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
4349 (merge_clusters, set_cluster): New function.
4350 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
4351 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
4352 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
4353 (find_clusters_1, find_clusters): New function.
4354 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
4355 (update_bbs): New var.
4356 (apply_clusters): New function.
4357 (update_debug_stmt, update_debug_stmts): New function.
4358 (tail_merge_optimize): New function.
4359 tree-pass.h (tail_merge_optimize): Declare.
4360 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
4361 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
4362 (tree-ssa-tail-merge.o): New rule.
4363 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
4364 default at OPT_LEVELS_2_PLUS.
4365 * tree-ssa-sccvn.c (vn_valueize): Move to ...
4366 * tree-ssa-sccvn.h (vn_valueize): Here.
4367 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
4368 * common.opt (ftree-tail-merge): New switch.
4369 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
4370 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
4371 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
4372 (-ftree-tail-merge, max-tail-merge-comparisons)
4373 (max-tail-merge-iterations): New item.
4374
4375 2011-09-27 Jan Hubicka <jh@suse.cz>
4376
4377 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
4378
4379 2011-09-27 Jan Hubicka <jh@suse.cz>
4380
4381 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
4382 parameters passed by reference; handle loads from non-SSA scalars
4383 and update comments.
4384
4385 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
4386
4387 PR rtl-optimization/50249
4388 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
4389 instead of opnum and type. All callers changed. Remove useless
4390 declaration.
4391 Search forward for other reloads of the same type for the same operand
4392 using the same register; if any are found, return false.
4393 (reload_regs_reach_end_p): Same argument changes; all callers changed.
4394
4395 2011-09-27 Andi Kleen <ak@linux.intel.com>
4396 Jan Hubicka <jh@suse.cz>
4397
4398 * doc/invoke.texi (ffat-lto-objects): Document.
4399 * toplev.c (compile_file): Do not output assembly when doing slim lto;
4400 Output __gnu_slim_lto when doing slim lto.
4401 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
4402 (cgraph_optimize): Return early when doing slim lto.
4403 * opts.c (finish_options): Complain about lack of linker plugin
4404 when doing slim lto.
4405 * common.opt (ffat-lto-objects): New.
4406
4407 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
4408
4409 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
4410 between signed and unsigned.
4411
4412 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
4413
4414 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
4415 vectorization.
4416 (vectorizable_type_promotion): Likewise.
4417 (vect_analyze_stmt): Call vectorizable_type_demotion and
4418 vectorizable_type_promotion for basic blocks.
4419 (supportable_widening_operation): Don't assume loop vectorization.
4420 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
4421 basic blocks. Update vectorization factor for basic block
4422 vectorization.
4423 (vect_analyze_slp_instance): Allow multiple types for basic block
4424 vectorization. Recheck unrolling factor after construction of SLP
4425 instance.
4426
4427 2011-09-27 Richard Guenther <rguenther@suse.de>
4428
4429 * tree-object-size.c (compute_object_sizes): Fix dumping of
4430 folded statement.
4431
4432 2011-09-27 Richard Guenther <rguenther@suse.de>
4433
4434 PR tree-optimization/50363
4435 * tree-ssa-pre.c (create_expression_by_pieces): Handle
4436 pointer conversions in POINTER_PLUS_EXPRs properly.
4437
4438 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
4439
4440 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
4441 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
4442 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
4443 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
4444 that produce subreg moves. Define using VQX iterators.
4445
4446 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
4447
4448 * config/avr/avr.md (ashrqi3): Split alternative "n"
4449 into its remaining parts C03, C04, C05, C06, C07 and describe
4450 impact in CC by attribute "cc" appropriately.
4451 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
4452 by digging RTX.
4453
4454 2011-09-27 Jakub Jelinek <jakub@redhat.com>
4455
4456 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
4457 from 3 x MAX_MACHINE_MODE.
4458 (CONSTM1_RTX): Define.
4459 * emit-rtl.c (const_tiny_rtx): Change into array of
4460 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
4461 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
4462 CONSTM1_RTX.
4463 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
4464 MODE_VECTOR_INT modes.
4465 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
4466 Optimize if one operand is CONSTM1_RTX.
4467 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
4468 into mask | x.
4469
4470 2011-09-26 David S. Miller <davem@davemloft.net>
4471
4472 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
4473 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
4474 * config/sparc/visintrin.h: Update edge and pixel-compare
4475 intrinsics to return 'long' instead of 'int'.
4476 * doc/extend.texi: Update documentation to match.
4477 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
4478 flat, allow any instruction. Otherwise, when V9 allow parallels
4479 which consist only of sets to registers outside of %o0 to %o5.
4480 (sparc_vis_init_builtins): Update VIS builtin types for edge
4481 and pixel-compare.
4482
4483 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
4484 is enabled, mark %gsr as global.
4485 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
4486 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
4487
4488 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
4489 which will now define __VIS and __VIS__ when -mvis is enabled.
4490 * config/sparc/t-sparc: Likewise.
4491 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
4492 and add t-sparc to tmake_file for all sparc targets.
4493 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
4494 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
4495
4496 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
4497 builtins for VIS vector addition and subtraction.
4498 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
4499 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
4500 __vis_fpsub32, __vis_fpsub32s): New.
4501 * doc/extend.texi: Document new VIS intrinsics.
4502
4503 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4504
4505 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
4506 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
4507 EQ/NE comparisons against +/-1 in the case of unused-after,
4508 non-ld-regs target.
4509
4510 2011-09-26 Jakub Jelinek <jakub@redhat.com>
4511
4512 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
4513 gctx.into_ssa after push_gimplify_context.
4514
4515 * gimple.c (gimple_build_call_valist): New function.
4516 * gimple.h (gimple_build_call_valist): New prototype.
4517 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
4518 (update_gimple_call): Likewise.
4519 (update_call_from_tree): Use finish_update_gimple_call.
4520 * tree-ssa-propagate.h (update_gimple_call): New prototype.
4521
4522 2011-09-26 Richard Guenther <rguenther@suse.de>
4523
4524 PR tree-optimization/50472
4525 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
4526 volatile references.
4527
4528 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
4529
4530 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
4531 * target.def: (addr_space_subset_p): Likewise.
4532
4533 2011-09-26 Tom de Vries <tom@codesourcery.com>
4534
4535 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
4536 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
4537 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
4538 of new var.
4539
4540 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4541
4542 PR target/50465
4543 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
4544 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
4545 output_reload_insisf.
4546 (adjust_len): Set default to "no".
4547 Remove alternative "yes". Add alternatives: "mov8", "mov16",
4548 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
4549 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
4550 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
4551 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
4552 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
4553 *lshrsi3_const): Set attribute "adjust_len".
4554 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
4555 (output_movsisf): Don't pass insn to output_reload_insisf.
4556 (adjust_insn_length): Handle new alternatives to adjust_len.
4557 Remove handling of ADJUST_LEN_YES. Clean-up code.
4558
4559 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
4560
4561 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
4562 may_trap_p to detect loads that may trap of fault.
4563
4564 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4565
4566 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
4567 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
4568 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
4569 prototype.
4570 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
4571 * config/avr/avr.c: Rename output_reload_insisf_1 to
4572 output_reload_in_const.
4573 (avr_popcount_each_byte): Handle SFmode, too.
4574 (output_reload_in_const): Change so it can handle HI loads, too.
4575 Use avr_popcount_each_byte to work out if scratch register must be
4576 created on the fly.
4577 (output_reload_inhi): Rewrite using output_reload_in_const and...
4578 (output_movhi): ...use it to print constants' loads.
4579 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
4580
4581 2011-09-25 David S. Miller <davem@davemloft.net>
4582
4583 * config/sparc/constraints.md (C, P, Z): New constraints for
4584 const_doube, const_int, and const_vector "all ones" values.
4585 Make unused constraint letters comment match reality.
4586 * config/sparc/predicates.md (const_all_ones_operand,
4587 register_or_zero_or_all_ones_operand): New predicates.
4588 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
4589 as well as zero constants when VIS.
4590 (sparc_legitimate_constant_p): Likewise.
4591 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
4592 (movsf_insn): Likewise
4593 (movdi_insn_sp64): Add fone alternative.
4594 (movdf_insn_sp32_v9): Likewise.
4595 (movdf_insn_sp64): Likewise.
4596
4597 * configure.ac: Add feature check to make sure the assembler
4598 supports the FMAF, HPC, and VIS 3.0 instructions found on
4599 Niagara-3 and later cpus.
4600 * configure: Rebuild.
4601 * config.in: Likewise.
4602 * config/sparc/sparc.opt: New option '-mfmaf'.
4603 * config/sparc/sparc.md: Add float fused multiply-add patterns.
4604 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
4605 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
4606 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
4607 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
4608 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
4609 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
4610 disabled.
4611 (sparc_rtx_costs): Handle 'FMA'.
4612 * doc/invoke.texi: Document -mfmaf.
4613
4614 2011-09-25 Jakub Jelinek <jakub@redhat.com>
4615
4616 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
4617 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
4618 DECL_BY_REFERENCE parameters.
4619
4620 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
4621
4622 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
4623 if there is no outgoing edge.
4624
4625 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
4626 integral types.
4627
4628 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
4629
4630 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
4631 of vect_analyze_bb here.
4632 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
4633
4634 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
4635
4636 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
4637 Allow not simple iv if analyzing basic block.
4638 (create_data_ref): Update call to dr_analyze_innermost.
4639 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
4640 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4641 * tree-predcom.c (find_looparound_phi): Likewise.
4642 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
4643
4644 2011-09-24 David S. Miller <davem@davemloft.net>
4645
4646 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
4647 (SPARC_GSR_REG): Define.
4648 (FIXED_REGISTERS): Mark GSR as fixed.
4649 (CALL_USED_REGISTERS): Mark GSR as call used.
4650 (HARD_REGNO_NREGS): GSR is always 1 register.
4651 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
4652 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
4653 (REGISTER_NAMES): Add "%gsr".
4654 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
4655 (UNSPEC_WRGSR): New unspec.
4656 (GSR_REG): New constant.
4657 (type): Add new insn type 'gsr'.
4658 (fpack16_vis, fpackfix_vis, fpack32_vis,
4659 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
4660 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
4661 rdgsr_v8plus): New expanders and insns.
4662 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
4663 using patterns which show that this is a plus in addition to a
4664 modification of GSR_REG, instead of an unspec.
4665 * config/sparc/ultra1_2.md: Handle 'gsr'.
4666 * config/sparc/ultra3.md: Likewise.
4667 * config/sparc/niagara.md: Likewise.
4668 * config/sparc/niagara2.md: Likewise.
4669 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
4670 end of table.
4671 (sparc_option_override): Make -mvis imply -mv8plus.
4672 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
4673 for %gsr.
4674 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
4675 __builtin_vis_read_gsr.
4676 (sparc_expand_buildin): Handle builtins that take one argument and
4677 return void.
4678 (sparc_fold_builtin): Never fold writes to %gsr.
4679 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
4680 * doc/extend.texi: Document new VIS intrinsics.
4681
4682 2011-09-23 Jan Hubicka <jh@suse.cz>
4683
4684 * ipa-inline-transform.c (inline_call): Add comment.
4685 * ipa-inline.h (inline_param_summary): New structure and vector.
4686 (struct inline_edge_summary): Add param field.
4687 * ipa-inline-analysis.c (CHANGED): New constant.
4688 (add_clause): Handle CHANGED and NOT_CONSTANT.
4689 (predicate_probability): New function.
4690 (dump_condition): Dump CHANGED predicate.
4691 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
4692 of unknown function wide invariant.
4693 (evaluate_conditions_for_edge): Handle change probabilities.
4694 (inline_edge_duplication_hook): Copy param summaries.
4695 (inline_edge_removal_hook): Free param summaries.
4696 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
4697 sizes; dump param summaries.
4698 (will_be_nonconstant_predicate): Use CHANGED predicate.
4699 (record_modified_bb_info): New structure.
4700 (record_modified): New function.
4701 (param_change_prob): New function.
4702 (estimate_function_body_sizes): Compute param summaries.
4703 (estimate_edge_size_and_time): Add probability argument.
4704 (estimate_node_size_and_time): Add inline_param_summary argument;
4705 handle predicate probabilities.
4706 (remap_predicate): Fix formating.
4707 (remap_edge_change_prob): New function.
4708 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
4709 (remap_edge_predicates): ... this one.
4710 (inline_merge_summary): Remap edge summaries; handle predicate
4711 probabilities; remove param summaries after we are done.
4712 (do_estimate_edge_time): Update.
4713 (do_estimate_edge_growth): Update.
4714 (read_inline_edge_summary): Read param info.
4715 (inline_read_summary): Fix formating.
4716 (write_inline_edge_summary): Write param summaries.
4717
4718 2011-09-23 Jakub Jelinek <jakub@redhat.com>
4719
4720 * config/i386/i386.c (ix86_print_operand): Handle %~.
4721 (ix86_print_operand_punct_valid_p): Return true also for '~'.
4722 * config/i386/sse.md (i128): New mode_attr.
4723 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
4724 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
4725 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
4726 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
4727 patterns, use "<sseinsnmode>" for "mode" attribute.
4728 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
4729 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
4730 %~128 in the patterns, use "OI" for "mode" attribute.
4731
4732 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4733
4734 PR target/50447
4735 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
4736 "tstsi", "compare".
4737 (*cmpqi_sign_extend): Use s8_operand.
4738 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
4739 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
4740 prototypes.
4741 (out_tsthi, out_tstsi): Remove prototypes.
4742 (avr_out_tsthi, avr_out_tstsi): New prototypes.
4743 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
4744 (avr_asm_len): Negative length now sets *plen to -length.
4745 (compare_sign_p): Return bool instead of int.
4746 (compare_diff_p, compare_eq_p): Ditto and make static.
4747 (avr_out_tsthi): New function.
4748 (avr_out_tstsi): New function.
4749 (avr_out_compare): New function.
4750 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
4751 ADJUST_LEN_COMPARE.
4752
4753 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4754
4755 PR target/50447
4756 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
4757 (addsi3): Rewrite using QI scratch register. Adjust text
4758 peepholes using plus:SI.
4759 (*addsi3_zero_extend.hi): New insn.
4760 (*subsi3_zero_extend.hi): New insn.
4761 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
4762 (*subsi3_zero_extend): Ditto.
4763 (subsi3): Change predicate #2 to register_operand.
4764 * config/avr/avr-protos.h (avr_out_plus): New prototype.
4765 (avr_out_plus_1): New static function.
4766 (avr_out_plus): New function.
4767 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
4768
4769 2011-09-23 Jakub Jelinek <jakub@redhat.com>
4770
4771 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
4772 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
4773
4774 2011-09-23 Ian Lance Taylor <iant@google.com>
4775
4776 * godump.c (go_define): Treat a single character in single quotes,
4777 or a string, as an operand.
4778
4779 2011-09-23 Martin Jambor <mjambor@suse.cz>
4780
4781 * ipa-prop.h (jump_func_type): Updated comments.
4782 (ipa_known_type_data): New type.
4783 (ipa_jump_func): Use it to describe known type jump functions.
4784 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
4785 reflect the new known type jump function contents.
4786 (compute_known_type_jump_func): Likewise.
4787 (combine_known_type_and_ancestor_jfs): Likewise.
4788 (try_make_edge_direct_virtual_call): Likewise.
4789 (ipa_write_jump_function): Likewise.
4790 (ipa_read_jump_function): Likewise.
4791 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
4792 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
4793 (propagate_accross_jump_function): Likewise.
4794
4795 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4796
4797 PR target/50446
4798 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
4799 (rotlqi3_4): Turn insn into expander.
4800 (*rotlqi3): New insn.
4801 (rotlhi3, rotlsi3): Support rotate left/right by 1.
4802 (*rotlhi2.1, *rotlhi2.15): New insns.
4803 (*rotlsi2.1, *rotlsi2.31): New insns.
4804 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
4805
4806 2011-09-23 Bin Cheng <bin.cheng@arm.com>
4807
4808 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
4809
4810 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4811
4812 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
4813
4814 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4815
4816 * reload.c (find_reloads): Set operand_mode to Pmode for address
4817 operands consisting of just a CONST_INT.
4818
4819 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
4820
4821 PR target/50482
4822 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
4823 blendv, force op_true to register if it doesn't satisfy
4824 nonimmediate_operand predicate.
4825
4826 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
4827
4828 PR middle-end/50113
4829 PR middle-end/50061
4830 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
4831 get the locate.where_pad value for register-only arguments.
4832 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
4833 (arm_pad_reg_upward): Handle null types.
4834
4835 2011-09-22 Jan Hubicka <jh@suse.cz>
4836
4837 * ipa-inline-analysis.c: Fix overly long lines.
4838
4839 2011-09-22 Jan Hubicka <jh@suse.cz>
4840
4841 * ipa-inline-transform.c (inline_call): Always update jump functions
4842 after inlining.
4843 * ipa-inline.c (ipa_inline): Likewise; do not call
4844 ipa_create_all_structures_for_iinln.
4845 (ipa_inline): Always free jump functions.
4846 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
4847 (remap_edge_predicates): Fix pasto.
4848 (inline_merge_summary): Remove nlined edge predicate; remove hack.
4849 (inline_analyze_function): Always initialize jump functions.
4850 (inline_generate_summary): Likewise.
4851 (inline_write_summary): Always write jump functions when ipa-cp
4852 is not doing that.
4853 (inline_read_summary): Always read jump functions when ipa-cp
4854 is not doing that.
4855 * ipa-prop.c (iinlining_processed_edges): Remove.
4856 (update_indirect_edges_after_inlining): Do not use
4857 iinlining_processed_edges; instead set param_index to -1.
4858 (propagate_info_to_inlined_callees): Only try to indirect inlining
4859 when asked to do so; update jump functions of indirect calls, too;
4860 remove jump functions of the inlined edge.
4861 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
4862 (ipa_create_all_structures_for_iinln): Remove.
4863 (ipa_free_all_structures_after_iinln): Do not free
4864 iinlining_processed_edges.
4865 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
4866
4867 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4868
4869 * config/arm/predicates.md (expandable_comparison_operator): New
4870 predicate, extracted from...
4871 (arm_comparison_operator): ...here.
4872 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
4873 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
4874 (movdfcc): Use expandable_comparison_operator.
4875
4876 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
4877
4878 PR target/50447
4879 PR target/50465
4880 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
4881 (avr_popcount_each_byte): New prototype.
4882 * config/avr/avr.c (avr_popcount): New static function.
4883 (avr_popcount_each_byte): New function.
4884 (avr_out_bitop): New function.
4885 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
4886 avr_out_bitop. Cleanup code.
4887 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
4888 (Ca4, Co4, Cx4): New constraints.
4889 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
4890 alternative.
4891 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
4892 (andsi3, iorsi3, xorsi3): Ditto.
4893 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
4894
4895 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
4896
4897 PR tree-optimization/50451
4898 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
4899 constant operands in reduction.
4900 (vect_get_slp_defs): Don't create vector operand for NULL scalar
4901 operand.
4902
4903 2011-09-22 David S. Miller <davem@davemloft.net>
4904
4905 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
4906 fpack16, fpack32, fpackfix as const.
4907
4908 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
4909 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
4910 constants. Use them everywhere.
4911
4912 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
4913
4914 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
4915 Added AND special case. Adapted comments.
4916 (sh_rtx_costs): Added XOR and IOR case.
4917
4918 2011-09-21 Jan Hubicka <jh@suse.cz>
4919
4920 * ipa-inline-analsis.c (compute_inline_parameters): Set
4921 cfun and current_function_decl.
4922
4923 2011-09-21 Jan Hubicka <jh@suse.cz>
4924
4925 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
4926 handled components in parameter of builtin_constant_p.
4927 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
4928
4929 2011-09-21 Jan Hubicka <jh@suse.cz>
4930
4931 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
4932 * ipa-inline.h (estimate_edge_time): Fix pasto.
4933 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
4934
4935 2011-09-21 Jakub Jelinek <jakub@redhat.com>
4936
4937 * config/i386/i386.c (ix86_expand_sse_movcc): Use
4938 blendvps, blendvpd and pblendvb if possible.
4939
4940 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
4941
4942 PR target/50464
4943 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
4944 operand 1 predicate to register_operand and operand 2 predicate
4945 to nonimmediate_operand.
4946 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
4947 xop_pcmov, force op_true to register. Also, force op_false to
4948 register if it doesn't satisfy nonimmediate_operand predicate.
4949
4950 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
4951
4952 * config/i386/bmi2intrin.h (_mulx_u64): New.
4953 (_mulx_u32): Ditto.
4954
4955 2011-09-21 Jan Hubicka <jh@suse.cz>
4956
4957 PR tree-optimization/50433
4958 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
4959 Use get_base_address.
4960
4961 2011-09-21 Jakub Jelinek <jakub@redhat.com>
4962
4963 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
4964 nonimmediate_operand instead of register_operand predicate for operands
4965 1 and 2, force them into registers if expanding them as comparison.
4966 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
4967 V8HImode force into register just operand 1.
4968
4969 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
4970
4971 PR target/45099
4972 * config/avr/avr.c (avr_function_arg_advance): Change error to
4973 warning if a fixed register is needed as function argument.
4974
4975 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
4976
4977 PR target/50449
4978 PR target/50465
4979 * config/avr/avr.md (adjust_len): New insn attribute.
4980 (*reload_insi, *reload_insf): Use it.
4981 (*movsi, *movsf): Use new interface of output_movsisf.
4982 * config/avr/avr-protos.h (output_movsisf): Change prototype.
4983 * config/avr/avr.c (output_movsisf): Ditto.
4984 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
4985 lengths of insns *reload_insi, *reload_insf.
4986 (output_reload_insisf_1): New static function.
4987 (output_reload_insisf): Use it.
4988
4989 2011-09-21 David S. Miller <davem@davemloft.net>
4990
4991 * config/sparc/sparc.c (def_builtin): Change from macro into function.
4992 (def_builtin_const): New.
4993 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
4994 other than alignaddr and falignaddr.
4995
4996 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
4997 UNSPEC_FCMPEQ): New unspec codes.
4998 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
4999 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
5000 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
5001 new pixel compare VIS patterns.
5002 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
5003 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
5004 __vis_fcmpeq16, __vis_fcmpeq32): New.
5005 * doc/extend.texi: Document new pixel compare VIS intrinsics.
5006
5007 2011-09-21 Tom de Vries <tom@codesourcery.com>
5008
5009 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
5010
5011 2011-09-20 David S. Miller <davem@davemloft.net>
5012
5013 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
5014 (aligneddrl<P:mode>_vis): New pattern.
5015 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
5016 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
5017 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
5018 alignaddrl insn, and adjust edge operations for updated types.
5019 * config/sparc/visintrin.h: Likewise.
5020 * doc/extend.texi: Make typing in VIS documentation match reality.
5021
5022 2011-09-20 Terry Guo <terry.guo@arm.com>
5023
5024 * config/arm/arm-arches.def: Add armv6s-m.
5025 * config/arm/arm-tables.opt: Regenerate.
5026
5027 2011-09-20 Wei Guozhi <carrot@google.com>
5028
5029 PR rtl-optimization/49452
5030 * postreload.c (reload_combine): Invalidate use information when across
5031 volatile insn.
5032
5033 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
5034
5035 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
5036 Remove maintenance overhead.
5037 (haifa_sched_init, sched_finish): Update.
5038
5039 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
5040
5041 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
5042 to calculate unit, prefix_rep and prefix_data16 attributes.
5043 (*mov<mode>_internal): Ditto for unit attribute.
5044 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
5045 (*movv2sf_internal): Ditto.
5046 * config/i386/sse.md (VI1248_256): Remove mode iterator.
5047 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
5048 (*avx2_eq<mode>3): Ditto.
5049 (avx2_gt<mode>3): Ditto.
5050
5051 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
5052
5053 * config/i386/i386.md (maxmin): New code iterator.
5054 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
5055 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
5056 code iterator.
5057 (*avx2_<maxmin:code><mode>3): Macroize isn from
5058 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
5059 maxmin code iterator.
5060 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
5061 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
5062 <umaxmin:code>v16qi3.
5063
5064 2011-09-19 Alan Modra <amodra@gmail.com>
5065 Michael Meissner <meissner@linux.vnet.ibm.com>
5066
5067 PR target/50341
5068 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
5069 split the load of the indirect function's TOC from the call to
5070 prevent the compiler from moving the load of the new TOC above
5071 code that references the current function's TOC.
5072 (call_indirect_aix<ptrsize>_internal): Ditto.
5073 (call_indirect_aix<ptrsize>_nor11): Ditto.
5074 (call_indirect_aix<ptrsize>_internal2): Ditto.
5075 (call_value_indirect_aix<ptrsize>): Ditto.
5076 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5077 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5078 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5079
5080 2011-09-19 Jakub Jelinek <jakub@redhat.com>
5081
5082 * config/i386/sse.md (*sse4_1_extractps): Change into
5083 define_insn_and_split, add =x 0 n and =x x n alternatives
5084 and split them after reload.
5085
5086 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
5087
5088 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
5089
5090 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
5091
5092 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
5093
5094 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
5095
5096 PR tree-optimization/50413
5097 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
5098 a basic block if one of its data-refs can't be analyzed.
5099
5100 2011-09-19 Paul Brook <paul@codesourcery.com>
5101
5102 * config/arm/predicates.md (shift_amount_operand): Check constant
5103 shift count is in range.
5104 (const_shift_operand): Remove.
5105
5106 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
5107 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5108
5109 PR target/50091
5110 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
5111 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
5112
5113 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
5114
5115 * config/i386/bmiintrin.h: Remove tmp.
5116 * config/i386/tbmintrin.h: Likewise.
5117
5118 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
5119
5120 PR tree-optimization/50414
5121 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
5122 MIN_EXPR.
5123
5124 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
5125
5126 PR tree-optimization/50412
5127 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
5128 acceses that require epilogue loop if vectorizing outer loop.
5129
5130 2011-09-17 David S. Miller <davem@davemloft.net>
5131
5132 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
5133 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
5134 New unspecs.
5135 (define_attr type): New type 'edge'.
5136 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
5137 edge32l_vis): New patterns.
5138 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
5139 * config/sparc/ultra3.md: Likewise.
5140 * config/sparc/niagara.md: Likewise.
5141 * config/sparc/niagara2.md: Likewise.
5142 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
5143 builtins for VIS edge instructions.
5144 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
5145 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
5146 intrinsics.
5147 (__v8qi, __v4qi): Make unsigned.
5148 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
5149 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
5150 __vis_fpack32): Fix types.
5151 * doc/extend.texi: Document new 'edge' VIS intrinsics.
5152
5153 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
5154 divide costs.
5155 (niagara3_costs): New.
5156 (sparc_option_override): Use it.
5157 * gcc/config/sparc/niagara2.md: Adjust with more accurate
5158 Niagara-3 reservations.
5159
5160 2011-09-17 Jakub Jelinek <jakub@redhat.com>
5161
5162 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
5163 (sse2_avx, sseinsnmode): Add V2TI.
5164 (REDUC_SMINMAX_MODE): New mode iterator.
5165 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
5166 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
5167 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
5168 (sse2_lshrv1ti3): Rename to...
5169 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
5170 iterator. Move before umaxmin expanders.
5171 * config/i386/i386.h (VALID_AVX256_REG_MODE,
5172 SSE_REG_MODE_P): Accept V2TImode.
5173 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
5174 V16HImode, V8SImode and V4DImode.
5175
5176 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
5177 and V4DImode.
5178 (ix86_build_signbit_mask): Likewise.
5179 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
5180 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
5181 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
5182 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
5183 (<code><mode>3) ... this.
5184 (avx2_<code><mode>3 smaxmin expand): Rename to...
5185 (<code><mode>3) ... this.
5186 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
5187 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
5188 VI8_AVX2 mode iterator.
5189 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
5190 VI8_AVX2 mode iterator.
5191 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
5192 New expanders.
5193
5194 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
5195
5196 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
5197 throughout file.
5198
5199 2011-09-16 David S. Miller <davem@davemloft.net>
5200
5201 * config/sparc/visintrin.h: New file.
5202 * config.gcc: Add it to extra_headers on sparc.
5203
5204 2011-09-16 Jakub Jelinek <jakub@redhat.com>
5205
5206 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
5207 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
5208 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
5209 reduc_smin_v4sf): Adjust callers.
5210 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
5211 New expanders.
5212
5213 * config/i386/sse.md (vec_extract_hi_<mode>,
5214 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
5215 vextracti128 instead of vextractf128 for -mavx2 and
5216 integer vectors. For V4DFmode fix up mode attribute.
5217 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
5218 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
5219 instead of V8SF mode attribute.
5220 (avx2_extracti128): Change into define_expand.
5221 * config/i386/i386.c (ix86_expand_vector_extract): Handle
5222 32-byte vector modes if TARGET_AVX.
5223
5224 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
5225
5226 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
5227 (umulqi3_highpart, smulqi3_highpart): Ditto.
5228 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
5229 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
5230 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
5231
5232 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
5233
5234 PR target/50358
5235 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
5236 (*maddqi4, *maddqi4.const): New insns.
5237 (*msubqi4, *msubqi4.const): New insns.
5238 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
5239 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
5240 HImode by 1 in the case of multiplying with a CONST_INT.
5241 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
5242
5243 2011-09-15 Jan Hubicka <jh@suse.cz>
5244
5245 PR lto/50430
5246 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
5247 error_mark_node in the DECL_INITIAL of vtable.
5248
5249 2011-09-15 Diego Novillo <dnovillo@google.com>
5250
5251 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
5252 @SYSROOT_CFLAGS_FOR_TARGET@.
5253 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
5254 * configure: Regenerate.
5255 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
5256 Remove setting of GCC_UNDER_TEST.
5257
5258 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
5259
5260 * config/i386/i386.c (output_fp_compare): Return %v prefixed
5261 instruction mnemonics for TARGET_AVX.
5262
5263 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
5264 "type" attribute calculation.
5265 (*movdf_internal): Ditto.
5266 (*movsf_internal): Ditto.
5267
5268 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
5269
5270 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
5271
5272 2011-09-15 Jason Merrill <jason@redhat.com>
5273
5274 PR c++/50361
5275 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
5276
5277 2011-09-15 Jan Hubicka <jh@suse.cz>
5278
5279 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
5280 simplify obviously true clauses.
5281 (and_predicates, or_predicates): Add conditions parameter.
5282 (inline_duplication_hoook): Update.
5283 (mark_modified): New function.
5284 (unmodified_parm): New function.
5285 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
5286 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
5287 Use unmodified_parm.
5288 (estimate_function_body_sizes): Update.
5289 (remap_predicate): Update.
5290
5291 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
5292
5293 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
5294 read-after-read dependencies in basic block SLP.
5295
5296 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5297
5298 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
5299 throughout file.
5300
5301 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5302
5303 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
5304 throughout file.
5305
5306 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5307
5308 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
5309 throughout file.
5310
5311 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5312
5313 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
5314 throughout file.
5315 * config/rs6000/constraints.md: Likewise.
5316
5317 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5318
5319 * config/microblaze/microblaze.md: Use match_test rather than
5320 eq/ne symbol_ref throughout file.
5321
5322 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5323
5324 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
5325 throughout file.
5326
5327 2011-09-14 Tom de Vries <tom@codesourcery.com>
5328
5329 PR middle-end/50251
5330 * explow.c (emit_stack_restore): Set crtl->need_drap if
5331 stack_restore is emitted.
5332
5333 2011-09-14 Julian Brown <julian@codesourcery.com>
5334
5335 * config/arm/arm.c (arm_override_options): Add unaligned_access
5336 support.
5337 (arm_file_start): Emit attribute for unaligned access as appropriate.
5338 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
5339 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
5340 (insv, extzv): Add unaligned-access support.
5341 (extv): Change to expander. Likewise.
5342 (extzv_t1, extv_regsi): Add helpers.
5343 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
5344 (unaligned_storesi, unaligned_storehi): New.
5345 (*extv_reg): New (previous extv implementation).
5346 * config/arm/arm.opt (munaligned_access): Add option.
5347 * config/arm/constraints.md (Uw): New constraint.
5348 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
5349 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
5350 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
5351 volatile accesses when -fstrict-volatile-bitfields is in effect.
5352 (extract_bit_field_1): Likewise.
5353
5354 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5355
5356 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
5357 a scalar integer before applying integer-only optimisations to
5358 inner arithmetic.
5359
5360 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
5361
5362 * config/mips/mips.c (mips_expand_epilogue): Generate a
5363 simple_return only if the return address is in r31.
5364
5365 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
5366
5367 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
5368 NULL for a jump that is a cc0 insn, pick the previous insn for
5369 move_before.
5370
5371 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5372
5373 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
5374 throughout file.
5375
5376 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5377
5378 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
5379 throughout file.
5380
5381 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5382
5383 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
5384 symbol_ref throughout file.
5385
5386 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5387
5388 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
5389 throughout file.
5390
5391 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5392
5393 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
5394 throughout file.
5395
5396 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5397
5398 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
5399 throughout file.
5400 * config/arm/neon.md: Likewise.
5401 * config/arm/vfp.md: Likewise.
5402 * config/arm/thumb2.md: Likewise.
5403 * config/arm/cortex-m4.md: Likewise.
5404
5405 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
5406
5407 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
5408 define_insn patterns for combine.
5409
5410 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
5411
5412 * reorg.c: Always define make_return_insns.
5413
5414 2011-09-13 Jan Hubicka <jh@suse.cz>
5415
5416 PR other/49533
5417 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
5418
5419 2011-09-13 Jan Hubicka <jh@suse.cz>
5420
5421 PR other/49533
5422 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
5423
5424 2011-09-13 Paul Brook <paul@codesourcery.com>
5425
5426 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5427 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
5428 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
5429 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
5430 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
5431 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
5432 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
5433 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
5434 enabling unwind tables.
5435 (c6x_debug_unwind_info): New function.
5436 (TARGET_ARM_EABI_UNWINDER): Define.
5437 (TARGET_DEBUG_UNWIND_INFO): Define.
5438 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
5439 (TARGET_EXTRA_CFI_SECTION): Remove.
5440 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
5441 * ginclude/unwind-arm-common.h: New file.
5442
5443 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
5444
5445 PR target/50358
5446 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
5447 * config/avr/avr.md: (extend_s): New code attribute.
5448 (mul_r_d): New code attribute.
5449 (*maddqihi4, *umaddqihi4): New insns.
5450 (*msubqihi4, *umsubqihi4): New insns.
5451 (*usmaddqihi4, *sumaddqihi4): New insns.
5452 (*usmsubqihi4, *susubdqihi4): New insns.
5453 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
5454 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
5455 (*umsubqihi4.uconst.ashift): New insn-and-split.
5456 (*msubqihi4.sconst.ashift): New insn-and-split.
5457 (*sumaddqihi4.uconst): New insn-and-split.
5458 (*sumsubqihi4.uconst): New insn-and-split.
5459 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
5460 PLUS:HI and MINUS:HI.
5461
5462 2011-09-13 Revital Eres <revital.eres@linaro.org>
5463
5464 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
5465 (optimize_sc): Adjust call to remove_node_from_ps.
5466 (sms_schedule): Add print info.
5467
5468 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
5469
5470 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
5471 flags specially.
5472
5473 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5474
5475 PR bootstrap/50010
5476 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
5477 NOTE_INSN_CFI notes, with the exception of
5478 NOTE_INSN_SWITCH_TEXT_SECTIONS.
5479
5480 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
5481 Richard Sandiford <rdsandiford@googlemail.com>
5482
5483 * config/mips/mips.c (mips_epilogue): New structure.
5484 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
5485 restoring registers.
5486 (mips_epilogue_emit_cfa_restores): New function.
5487 (mips_epilogue_set_cfa): Likewise.
5488 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
5489 the current CFA register from the stack, redefine the CFA in terms
5490 of the stack pointer.
5491 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
5492 to the epilogue instructions.
5493
5494 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
5495
5496 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
5497 argument.
5498 (mips16e_build_save_restore): Update accordingly.
5499
5500 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5501
5502 PR rtl-optimization/50212
5503 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5504 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
5505
5506 PR debug/50299
5507 * calls.c (load_register_parameters): Use use_reg_mode instead
5508 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
5509 entry.
5510 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
5511 for stack CALL_INSN_FUNCTION_USAGE uses.
5512 * expr.h (use_reg_mode): New prototype.
5513 (use_reg): Changed into inline around use_reg_mode.
5514 * expr.c (use_reg): Renamed to...
5515 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
5516 mode to that mode instead of VOIDmode.
5517 * var-tracking.c (prepare_call_arguments): Don't track parameters
5518 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
5519 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
5520 EXPR_LIST mode.
5521
5522 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
5523
5524 PR target/43746
5525 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
5526 (progmem_section): New Variable.
5527 (avr_asm_init_sections): Initialize it.
5528 (TARGET_ASM_SELECT_SECTION): Define to...
5529 (avr_asm_select_section): ... this new Function.
5530 (avr_replace_prefix): New Function.
5531 (avr_asm_function_rodata_section): Use it.
5532 (avr_insert_attributes): Don't add section attribute for PROGMEM.
5533 (avr_section_type_flags): Use avr_progmem_p instead of section
5534 name to detect if object is in PROGMEM.
5535 (avr_asm_named_section): Set section name prefix for objects in
5536 PROGMEM.
5537
5538 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5539
5540 PR bootstrap/50352
5541 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
5542 sprintf format string.
5543
5544 2011-09-12 Richard Guenther <rguenther@suse.de>
5545
5546 PR tree-optimization/50343
5547 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
5548 that the reduction is over an SSA name before checking its definition.
5549
5550 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5551
5552 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
5553 throughout file.
5554
5555 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5556
5557 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
5558 throughout file.
5559 * config/mips/sb1.md: Likewise.
5560 * config/mips/predicates.md: Replace (match_test "!...")
5561 with (not (match_test "..."))
5562 * config/mips/constraints.md: Likewise.
5563
5564 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
5565
5566 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
5567 * config/arm/arm-tables.opt: Regenerate.
5568 * config/arm/arm-tune.md: Regenerate.
5569 * config/arm/arm.c (arm_file_start): Output .arch directive when
5570 user passes -mcpu=generic-*.
5571 (arm_issue_rate): Add genericv7a support.
5572 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
5573 (ASM_CPU_SPEC): New define.
5574 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
5575 * config/arm/semi.h (ASM_SPEC): Likewise.
5576 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
5577 and -mtune=generic-*.
5578
5579 2011-09-09 Richard Guenther <rguenther@suse.de>
5580
5581 PR tree-optimization/50328
5582 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
5583 constant or default-def operand.
5584
5585 2011-09-09 Richard Guenther <rguenther@suse.de>
5586
5587 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
5588 last statement.
5589
5590 2011-09-09 Richard Guenther <rguenther@suse.de>
5591
5592 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
5593 instead of a statement.
5594 * gimple-fold.c (fold_stmt_inplace): Likewise.
5595 * sese.c (graphite_copy_stmts_from_block): Adjust.
5596 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5597 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
5598 fold_stmt.
5599 (forward_propagate_addr_into_variable_array_index): Likewise.
5600 (forward_propagate_addr_expr_1): adjust.
5601 (associate_plusminus): Likewise.
5602 (ssa_forward_propagate_and_combine): Likewise.
5603 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
5604 (execute_cse_reciprocals): Likewise.
5605 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
5606
5607 2011-09-09 Nick Clifton <nickc@redhat.com>
5608
5609 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
5610 Return a positive value to indicate that the bits at the
5611 bottom of the register should be cleared.
5612
5613 2011-09-09 Richard Guenther <rguenther@suse.de>
5614
5615 * tree-ssa-operands.c (swap_tree_operands): Always adjust
5616 existing operand positions.
5617
5618 2011-09-09 Richard Guenther <rguenther@suse.de>
5619
5620 PR middle-end/50333
5621 * tree-data-ref.c (split_constant_offset): Do not try to handle
5622 ternary ops.
5623
5624 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
5625
5626 PR tree-optimization/50318
5627 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
5628 typo in use of mult_rhs1 and mult_rhs2.
5629
5630 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
5631
5632 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
5633 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
5634
5635 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
5636
5637 * config/arm/arm.md (push_multi): Emit predicates.
5638 (push_fp_multi): Likewise.
5639 * config/arm/arm.c (vfp_output_fstmd): Likewise.
5640
5641 2011-09-08 Dodji Seketeli <dodji@redhat.com>
5642
5643 PR c++/33255 - Support -Wunused-local-typedefs warning
5644 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
5645 (pushdecl): Use the new record_locally_defined_typedef.
5646 (store_parm_decls): Allocate cfun->language.
5647 (finish_function): Use the new maybe_warn_unused_local_typedefs,
5648 and free cfun->language.
5649 (c_push_function_context): Allocate cfun->language here only if needed.
5650 (c_pop_function_context): Likewise, mark cfun->language
5651 for collection only when it should be done.
5652 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
5653 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
5654 maybe_record_local_typedef_use.
5655 * doc/invoke.texi: Update documentation for
5656 -Wunused-local-typedefs.
5657
5658 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
5659
5660 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
5661 (ix86_avoid_lea_for_add): Likewise.
5662 (ix86_avoid_lea_for_addr): Likewise.
5663 (ix86_split_lea_for_addr): Likewise.
5664
5665 * config/i386/i386.c (LEA_MAX_STALL): New.
5666 (increase_distance): Likewise.
5667 (insn_defines_reg): Likewise.
5668 (insn_uses_reg_mem): Likewise.
5669 (distance_non_agu_define_in_bb): Likewise.
5670 (distance_agu_use_in_bb): Likewise.
5671 (ix86_lea_outperforms): Likewise.
5672 (ix86_ok_to_clobber_flags): Likewise.
5673 (ix86_avoid_lea_for_add): Likewise.
5674 (ix86_avoid_lea_for_addr): Likewise.
5675 (ix86_split_lea_for_addr): Likewise.
5676 (distance_non_agu_define): Search in pred BBs added.
5677 (distance_agu_use): Search in succ BBs added.
5678 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
5679 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
5680 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
5681
5682 * config/i386/i386.md: Split added to transform non destructive
5683 add into move and add.
5684 (lea_1): transformed into insn_and_split to avoid AGU stalls.
5685 (lea<mode>_2): Likewise.
5686
5687 2011-09-08 Martin Jambor <mjambor@suse.cz>
5688
5689 PR tree-optimization/50287
5690 * ipa-split.c (split_function): Do not create SSA names for
5691 non-gimple-registers.
5692
5693 2011-09-08 Richard Guenther <rguenther@suse.de>
5694
5695 PR tree-optimization/19831
5696 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
5697 skip builtins with vdefs that do not really store something.
5698 (propagate_necessity): For calls to free that we can associate
5699 with an allocation function do not mark the freed pointer
5700 definition necessary.
5701 (eliminate_unnecessary_stmts): Remove a call to free if
5702 the associated call to an allocation function is not necessary.
5703
5704 2011-09-08 Richard Guenther <rguenther@suse.de>
5705
5706 PR tree-optimization/19831
5707 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
5708 allocation functions as necessary.
5709
5710 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
5711
5712 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
5713 cut from ...
5714 (darwin_default_min_version): Amended to provide defaults
5715 for the cross directory case.
5716 (darwin_driver_init): call darwin_default_min_version unconditionally.
5717 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
5718 * config/darwin9.h: Likewise.
5719 * config/darwin10.h: Likewise.
5720 * config/rs6000/darwin7.h: Likewise.
5721
5722 2011-09-08 Jakub Jelinek <jakub@redhat.com>
5723
5724 PR target/50310
5725 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
5726 code early if TARGET_AVX.
5727 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
5728
5729 2011-09-07 Jakub Jelinek <jakub@redhat.com>
5730
5731 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
5732 duplicates.
5733
5734 PR target/50310
5735 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
5736 "mode" attribute computation.
5737
5738 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
5739
5740 * regrename.c (struct du_head): Make nregs signed.
5741 (closed_chains): Remove.
5742 (create_new_chain): Return the new chain.
5743 (chain_from_id): New static function.
5744 (dump_def_use_chain): Change argument to be an int, indicating
5745 the first ID to print. All callers changed.
5746 (merge_overlapping_regs): Use chain_from_id. Assert that
5747 chains don't conflict with themselves.
5748 (rename_chains): Take no argument. Iterate over id_to_chain
5749 rather to find chains to rename. Clear tick before the main loop.
5750 (struct incoming_reg_info): New struct.
5751 (struct bb_rename_info): New struct.
5752 (init_rename_info, set_incoming_from_chain, merge_chains): New
5753 static functions.
5754 (regrename_analyze): New static function, broken out of
5755 regrename_optimize. Record and make use of open chain information
5756 at basic block boundaries, and merge chains where possible.
5757 (scan_rtx_reg): Make this_nregs signed. Don't update
5758 closed_chains.
5759 (build_def_use): Return a bool to indicate success. All callers
5760 changed. Don't initialize global data here.
5761 (regrename_optimize): Move most code out of here into
5762 regrename_analyze.
5763 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
5764 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
5765 static inline functions.
5766 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
5767
5768 * bb-reorder.c (insert_section_boundary_note): Don't check
5769 optimize_function_for_speed_p.
5770 (gate_handle_partition_blocks): Do it here instead.
5771 (gate_handle_reorder_blocks): Move preliminary checks here ...
5772 (rest_of_handle_reorder_blocks): ... from here.
5773
5774 2011-09-07 Martin Jambor <mjambor@suse.cz>
5775
5776 PR middle-end/50301
5777 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
5778 function index bounds.
5779 (perhaps_add_new_callers): Likewise.
5780
5781 2011-09-07 Martin Jambor <mjambor@suse.cz>
5782
5783 PR tree-optimization/49911
5784 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
5785 enumerations to the corresponding plain integer type.
5786
5787 2011-09-07 Richard Guenther <rguenther@suse.de>
5788
5789 PR tree-optimization/50319
5790 * tree-if-conv.c (set_bb_predicate): Assert we only set
5791 canonical predicates.
5792 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
5793 around canonical predicates.
5794 (predicate_bbs): Do not re-gimplify already canonical
5795 predicates. Properly unshare them though.
5796 (find_phi_replacement_condition): Simplify.
5797
5798 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
5799
5800 PR target/49030
5801 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
5802 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
5803 reusing the old code from get_arm_condition_code. Return ARM_NV
5804 for invalid comparison codes.
5805 (get_arm_condition_code): Redefine in terms of
5806 maybe_get_arm_condition_code.
5807 * config/arm/predicates.md (arm_comparison_operator): Use
5808 maybe_get_arm_condition_code.
5809
5810 2011-09-07 Richard Guenther <rguenther@suse.de>
5811
5812 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
5813 Canonicalize negated predicates by swapping edges.
5814 (forward_propagate_into_cond): Likewise.
5815
5816 2011-09-07 Richard Guenther <rguenther@suse.de>
5817
5818 PR tree-optimization/50213
5819 * tree-flow.h (simple_iv_increment_p): Declare.
5820 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
5821 POINTER_PLUS_EXPR.
5822 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
5823 not propagate simple IV counter increments.
5824
5825 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
5826 Iain Sandoe <iains@gcc.gnu.org>
5827
5828 * config/rs6000/rs6000.c (compute_save_world_info): Test
5829 cfun->has_nonlocal_label to determine if the out-of-line save
5830 world call may be used.
5831
5832 2011-09-07 Nick Clifton <nickc@redhat.com>
5833
5834 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
5835 label on the parallel part of the insn.
5836
5837 2011-09-07 Jakub Jelinek <jakub@redhat.com>
5838
5839 PR debug/50191
5840 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
5841 avoid_constant_pool_reference first instead of last.
5842
5843 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5844
5845 * doc/configfiles.texi (Configuration Files): Update documentation
5846 about tm_p.h and remove FIXME comment.
5847
5848 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
5849
5850 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
5851 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
5852
5853 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
5854
5855 * config/darwin10.h Remove duplicate LIB_SPEC.
5856
5857 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
5858
5859 PR middle-end/44382
5860 * target.def (reassociation_width): New hook.
5861
5862 * doc/tm.texi.in (reassociation_width): Likewise.
5863
5864 * doc/tm.texi (reassociation_width): Likewise.
5865
5866 * doc/invoke.texi (tree-reassoc-width): New param documented.
5867
5868 * hooks.h (hook_int_uint_mode_1): New default hook.
5869
5870 * hooks.c (hook_int_uint_mode_1): Likewise.
5871
5872 * config/i386/i386.h (ix86_tune_indices): Add
5873 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5874
5875 (TARGET_REASSOC_INT_TO_PARALLEL): New.
5876 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
5877
5878 * config/i386/i386.c (initial_ix86_tune_features): Add
5879 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5880
5881 (ix86_reassociation_width): New function.
5882
5883 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
5884
5885 * tree-ssa-reassoc.c (get_required_cycles): New function.
5886 (get_reassociation_width): Likewise.
5887 (swap_ops_for_binary_stmt): Likewise.
5888 (rewrite_expr_tree_parallel): Likewise.
5889
5890 (rewrite_expr_tree): Refactored. Part of code moved into
5891 swap_ops_for_binary_stmt.
5892
5893 (reassociate_bb): Now checks reassociation width to be used and
5894 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
5895
5896 2011-09-06 Richard Guenther <rguenther@suse.de>
5897
5898 PR tree-optimization/47025
5899 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
5900 uses nothing.
5901 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
5902 BUILT_IN_FREE.
5903 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
5904 definitely points to.
5905 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5906 BUILT_IN_VA_START doesn't let its va_list argument escape.
5907 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
5908 not make any previous stores necessary.
5909
5910 2011-09-06 Martin Jambor <mjambor@suse.cz>
5911
5912 * ipa-inline.h (struct inline_summary): Move versionable flag...
5913 * cgraph.h (struct cgraph_local_info): ...here
5914 * ipa-cp.c (determine_versionability): Use the new versionable flag.
5915 (determine_versionability): Likewise.
5916 (ipcp_versionable_function_p): Likewise.
5917 (ipcp_generate_summary): Likewise.
5918 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
5919 versionable flag.
5920 (compute_inline_parameters): Do not clear the versionable flag.
5921 (inline_read_section): Do not stream the versionable flag.
5922 (inline_write_summary): Likewise.
5923 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
5924 (input_overwrite_node): Likewise.
5925
5926 2011-09-06 Richard Guenther <rguenther@suse.de>
5927
5928 PR tree-optimization/48149
5929 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
5930 (vn_valueize): Move earlier.
5931 (valueize_expr): Use vn_valueize.
5932 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
5933 operands.
5934 (simplify_unary_expression): Simplify.
5935
5936 2011-09-06 Richard Guenther <rguenther@suse.de>
5937
5938 PR tree-optimization/48317
5939 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
5940 trailing array.
5941 (sizeof_vn_nary_op): New inline function.
5942 (vn_nary_op_lookup_pieces): Adjust.
5943 (vn_nary_op_insert_pieces): Likewise.
5944 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
5945 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
5946 any number of operands.
5947 (vn_nary_length_from_stmt): New function.
5948 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
5949 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
5950 sized temporary.
5951 (vn_nary_op_lookup): Likewise.
5952 (vn_nary_op_lookup_stmt): Likewise.
5953 (vn_nary_op_insert_into): Likewise.
5954 (vn_nary_op_insert_stmt): Likewise.
5955 (visit_use): Handle CONSTRUCTOR as nary.
5956 * tree-ssa-pre.c (phi_translate_1): Adjust.
5957 (create_expression_by_pieces): Likewise.
5958 (compute_avail): Likewise.
5959
5960 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
5961
5962 * config/arm/arm.c (arm_preferred_simd_mode): Check
5963 TARGET_NEON_VECTORIZE_DOUBLE instead of
5964 TARGET_NEON_VECTORIZE_QUAD.
5965 (arm_autovectorize_vector_sizes): Likewise.
5966 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
5967 mask of mvectorize-with-neon-double. Add RejectNegative.
5968 (mvectorize-with-neon-double): New.
5969
5970 2011-09-06 Richard Guenther <rguenther@suse.de>
5971
5972 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
5973
5974 2011-09-06 Tom de Vries <tom@codesourcery.com>
5975
5976 * recog.c (asm_labels_ok): New function.
5977 (check_asm_operands): Use asm_labels_ok.
5978
5979 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
5980
5981 PR target/49606
5982 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
5983 (PMODE_INSN): New macro.
5984 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
5985 (mips_got_load, mips_expand_synci_loop): Likewise.
5986 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
5987 cprestore patterns.
5988 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
5989 copygp_mips16 patterns.
5990 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
5991 and use_cprestore patterns.
5992 (mips_override_options): Check for incompatible -mabi and -mlong
5993 combinations.
5994 * config/mips/mips.md (unspec_got<mode>): Rename to...
5995 (unspec_got_<mode>): ...this.
5996 (copygp_mips16): Use the Pmode iterator.
5997 (potential_cprestore, cprestore, use_cprestore): Likewise.
5998 (clear_cache, indirect_jump): Use PMODE_INSN.
5999 (indirect_jump<mode>): Rename to...
6000 (indirect_jump_<mode>): ...this.
6001 (tablejump): Use PMODE_INSN.
6002 (tablejump<mode>): Rename to...
6003 (tablejump_<mode>): ...this.
6004 (exception_receiver): Handle restore_gp_si and restore_gp_di.
6005 (restore_gp): Use the Pmode iterator.
6006 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
6007 PMODE_INSN.
6008
6009 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
6010
6011 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
6012 Fix the type of the BIT_AND_EXPR.
6013
6014 2011-09-05 David S. Miller <davem@davemloft.net>
6015
6016 * config.host: Add driver-sparc.o and sparc/x-sparc on
6017 native sparc*-*-linux* builds.
6018 * config/sparc/driver-sparc.c: Correct Linux strings.
6019 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
6020 * config/sparc/linux64.h: Likewise.
6021 * doc/invoke.texi: Document that Linux also supports
6022 -mcpu=native and -mtune=native on sparc.
6023
6024 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
6025 PROCESSOR_NIAGARA4): New.
6026 * config/sparc/sparc.opt: Handle new processor types.
6027 * config/sparc/sparc.md: Add to "cpu" attribute.
6028 * config/sparc/sparc.h (TARGET_CPU_niagara3,
6029 TARGET_CPU_niagara4): New, treat as niagara2.
6030 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
6031 * config/sparc/sol2.h: Likewise.
6032 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
6033 * config/sparc/sparc.c (sparc_option_override): Add
6034 niagara3 and niagara4 handling.
6035 (sparc32_initialize_trampoline): Likewise.
6036 (sparc64_initialize_trampoline): Likewise.
6037 (sparc_use_sched_lookahead): Likewise.
6038 (sparc_issue_rate): Likewise.
6039 (sparc_register_move_cost): Likewise.
6040 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
6041 and niagara4 as appropriate.
6042 * doc/invoke.texi: Document new processor types.
6043 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
6044 and --with-tune options.
6045
6046 * config/sparc/sol2-64.h: Move ...
6047 * config/sparc/default-64.h: ... to here. Update comment.
6048 * config.gcc: Update Solaris sparc to use default-64.h, also
6049 prefix this header into the list on sparc64-*-linux.
6050 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
6051 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
6052 to MASK_HARD_QUAD.
6053
6054 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
6055
6056 PR target/50289
6057 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
6058 that contain global register variable.
6059
6060 2011-09-05 Richard Guenther <rguenther@suse.de>
6061
6062 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
6063
6064 2011-09-05 Richard Guenther <rguenther@suse.de>
6065
6066 * stor-layout.c (layout_type): Use size_binop for array size
6067 calculations.
6068
6069 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
6070
6071 * config/avr/avr.h (progmem_section): Remove Declaration.
6072 * config/avr/avr.c (progmem_section): Make static and rename to
6073 progmem_swtable_section.
6074 (avr_output_addr_vec_elt): No need to switch sections.
6075 (avr_asm_init_sections): Use output_section_asm_op as section
6076 callback for progmem_swtable_section.
6077 (avr_output_progmem_section_asm_op): Remove Function.
6078 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
6079 (avr_asm_function_rodata_section): New static Function.
6080 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
6081 alignment 2**1 for jump tables.
6082
6083 2011-09-04 Jan Hubicka <jh@suse.cz>
6084
6085 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
6086 parameter is SSA name.
6087
6088 2011-09-04 Richard Guenther <rguenther@suse.de>
6089
6090 Revert
6091 2011-08-31 Richard Guenther <rguenther@suse.de>
6092
6093 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
6094 special-casing.
6095
6096 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
6097
6098 PR debug/49901
6099 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
6100
6101 2011-09-04 Jakub Jelinek <jakub@redhat.com>
6102 Ira Rosen <ira.rosen@linaro.org>
6103
6104 PR tree-optimization/50208
6105 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
6106 argument. Check that def_stmt is inside the loop.
6107 (vect_recog_widen_mult_pattern): Update calls to
6108 vect_handle_widen_mult_by_cons.
6109 (vect_operation_fits_smaller_type): Check that def_stmt is
6110 inside the loop.
6111
6112 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
6113
6114 * tree-vectorizer.c (vect_print_dump_info): Print line
6115 number when dumping to a file.
6116 (vectorize_loops): Add new messages to dump file.
6117
6118 2011-09-03 Martin Jambor <mjambor@suse.cz>
6119
6120 * ipa-prop.h (ipa_jump_func_t): New typedef.
6121 (struct ipa_edge_args): Removed field argument_count, field
6122 jump_functions turned into a vector.
6123 (ipa_set_cs_argument_count): Removed.
6124 (ipa_get_cs_argument_count): Updated to work on vectors.
6125 (ipa_get_ith_jump_func): Likewise.
6126 * ipa-prop.c (ipa_count_arguments): Removed.
6127 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
6128 jump functions. Update caller.
6129 (compute_pass_through_member_ptrs): Likewise.
6130 (compute_cst_member_ptr_arguments): Likewise.
6131 (ipa_compute_jump_functions_for_edge): Get number of arguments from
6132 the statement, allocate vector.
6133 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
6134 (duplicate_ipa_jump_func_array): Removed.
6135 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
6136 (ipa_read_node_info): Allocate vector.
6137
6138 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6139
6140 PR middle-end/50232
6141 * config/pa/pa.md (return): Define "return" insn pattern.
6142 (epilogue): Use it when no epilogue is needed.
6143 * config/pa/pa.c (pa_can_use_return_insn): New function.
6144 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
6145
6146 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
6147
6148 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
6149 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
6150 Force at least BITS_PER_UNIT alignment on the new variable.
6151
6152 2011-09-02 Gary Funck <gary@intrepid.com>
6153
6154 * opts.c (print_specific_help): Fix off-by-one compare in
6155 assertion check.
6156 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6157 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
6158 Increase by +5 to allow for more languages.
6159 * optc-gen.awk: Generate #if that ensures that the number of
6160 languages is within the implementation-defined limit.
6161
6162 2011-09-02 Michael Matz <matz@suse.de>
6163
6164 PR middle-end/50260
6165 * ipa-split.c (split_function): Call add_referenced_var.
6166
6167 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
6168 (cond_if_else_store_replacement_1): Ditto.
6169 * tree-ssa-pre.c (get_representative_for): Ditto.
6170 (create_expression_by_pieces): Ditto.
6171 (insert_into_preds_of_block): Ditto.
6172 * tree-sra.c (create_access_replacement): Ditto.
6173 (get_replaced_param_substitute): Ditto.
6174
6175 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
6176
6177 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
6178 automata_options.
6179 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
6180 (l1w, s1w, l2w, s2w): Define in the main automaton.
6181 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
6182 units.
6183 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
6184 (c6x_unit_names): Add the new units.
6185 (c6x_unit_codes): New static array.
6186 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
6187 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
6188 UNIT_QID_SIDE_OFFSET): New macros.
6189 (RESERVATION_S2): Adjust value.
6190 (c6x_option_override): Compute c6x_unit_codes.
6191 (assign_reservations): Take the unit_mask of the last instruction
6192 into account. Detect floating point reservations by looking for
6193 the new units. Don't assign reservations if the field is already
6194 nonzero.
6195 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
6196 (init_sched_state): Initialize it.
6197 (c6x_clear_sched_context): Free it.
6198 (insn_set_clock): Clear reservation.
6199 (prev_cycle_state): New static variable.
6200 (c6x_init_sched_context): Save it.
6201 (c6x_sched_init): Allocate space for it and clear it.
6202 (c6x_sched_dfa_pre_cycle_insn): New static function.
6203 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
6204 (c6x_variable_issue): Only record units in the unit_mask that
6205 were not set at the start of the cycle.
6206 (c6x_variable_issue): Compute and store the unit_mask from the
6207 current state.
6208 (reorg_split_calls): Ensure the new information remains correct.
6209 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
6210 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
6211 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
6212 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
6213 Add special reservations.
6214 * config/c6x/c6x-sched.md: Regenerate.
6215
6216 2011-09-02 Martin Jambor <mjambor@suse.cz>
6217
6218 * ipa-prop.h (ipa_node_params): Removed fields
6219 called_with_var_arguments and node_versionable.
6220 (ipa_set_called_with_variable_arg): Removed.
6221 (ipa_is_called_with_var_arguments): Likewise.
6222 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
6223 (determine_versionability): Do not check for type attributes and va
6224 builtins. Record versionability into inline summary.
6225 (initialize_node_lattices): Do not check
6226 ipa_is_called_with_var_arguments.
6227 (propagate_constants_accross_call): Likewise, ignore arguments we do
6228 not have PARM_DECLs for, set variable flag for parameters that were
6229 not passed a value.
6230 (create_specialized_node): Dump info that we cannot change signature.
6231 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
6232 number of arguments.
6233 (ipa_make_edge_direct_to_target): Likewise.
6234 (ipa_update_after_lto_read): Likewise.
6235 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
6236 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
6237 they were remapped.
6238
6239 2011-09-02 Richard Guenther <rguenther@suse.de>
6240
6241 PR tree-optimization/27460
6242 PR middle-end/29269
6243 * doc/md.texi (vcond): Document.
6244 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
6245 optab with two modes.
6246 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
6247 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
6248 (vcond_optab): Adjust.
6249 (vcondu_optab): Likewise.
6250 (expand_vec_cond_expr_p): Adjust prototype.
6251 * optabs.c (get_vcond_icode): Adjust.
6252 (expand_vec_cond_expr_p): Likewise.
6253 (expand_vec_cond_expr): Likewise.
6254 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
6255 vector type.
6256 (vectorizable_condition): Allow differing types for comparison
6257 and result.
6258 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
6259 for the comparison.
6260 * config/i386/sse.md (vcond<mode>): Split to
6261 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
6262 vcond<V_128:mode><VI124_128:mode> and
6263 vcondu<V_128:mode><VI124_128:mode>.
6264 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
6265 (vconduv2di): Likewise.
6266 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
6267 (vcondu<mode>): Likewise.
6268 * config/ia64/vect.md (vcond<mode>): Likewise.
6269 (vcondu<mode>): Likewise.
6270 (vcondv2sf): Likewise.
6271 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
6272 * config/rs6000/paired.md (vcondv2sf): Likewise.
6273 * config/rs6000/vector.md (vcond<mode>): Likewise.
6274 (vcondu<mode>): Likewise.
6275 * config/spu/spu.md (vcond<mode>): Likewise.
6276 (vcondu<mode>): Likewise.
6277
6278 2011-09-02 Richard Guenther <rguenther@suse.de>
6279
6280 * pretty-print.h (pp_unsigned_wide_integer): New.
6281 * tree-pretty-print.c (dump_generic_node): Print unsigned
6282 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
6283
6284 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
6285
6286 PR target/49987
6287 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
6288 valid CONST_VECTOR operands.
6289 (rs6000_expand_vector_init): Likewise.
6290
6291 2011-09-02 Martin Jambor <mjambor@suse.cz>
6292
6293 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
6294 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
6295 BINFO_VTABLE. Parameter delta removed, all callers updated.
6296 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
6297 BINFO_VTABLE.
6298 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
6299 all calls.
6300 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
6301 handling of thunk_delta.
6302 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
6303 (devirtualization_time_bonus): Do not handle thunk deltas.
6304 (ipcp_discover_new_direct_edges): Likewise.
6305 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6306 (try_make_edge_direct_simple_call): Likewise.
6307 (try_make_edge_direct_virtual_call): Likewise.
6308 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
6309 parameter set as unused.
6310 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
6311 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
6312 parameter set as unused.
6313 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
6314 (input_edge_opt_summary): Likewise.
6315 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
6316 BINFO_VIRTUALS at all.
6317 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
6318
6319 2011-09-02 Richard Guenther <rguenther@suse.de>
6320
6321 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
6322 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
6323
6324 2011-08-31 Richard Guenther <rguenther@suse.de>
6325
6326 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
6327 handling here, from ...
6328 (expand_expr_real_1): ... here.
6329 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
6330 and VEC_COND_EXPR.
6331 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
6332 a GIMPLE_TERNARY_RHS.
6333 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
6334 and VEC_COND_EXPR here ...
6335 (verify_gimple_assign_single): ... not here.
6336 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
6337 * tree-object-size.c (cond_expr_object_size): Adjust.
6338 (collect_object_sizes_for): Likewise.
6339 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
6340 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
6341 (ssa_forward_propagate_and_combine): Adjust.
6342 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
6343 as ternary.
6344 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
6345 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
6346 * tree-vect-stmt.c (vectorizable_condition): Likewise.
6347 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
6348 (extract_range_from_assignment): Likewise.
6349
6350 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6351
6352 * config/i386/i386.md: Use (match_test ...) for attribute tests.
6353 * config/i386/mmx.md: Likewise.
6354 * config/i386/sse.md: Likewise.
6355 * config/i386/predicates.md (call_insn_operand): Use
6356 (not (match_test "...")) instead of (match_test "!...")
6357 * config/i386/constraints.md (w): Likewise.
6358
6359 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6360
6361 * doc/md.texi: Describe the use of match_tests in attribute tests.
6362 * rtl.def (MATCH_TEST): Update commentary.
6363 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
6364 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
6365
6366 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6367
6368 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
6369 (attr_string): Use copy_md_ptr_loc.
6370
6371 2011-08-31 Martin Jambor <mjambor@suse.cz>
6372
6373 PR middle-end/49886
6374 * ipa-inline-analysis.c (compute_inline_parameters): Set
6375 can_change_signature of noes with typde attributes.
6376 * ipa-split.c (split_function): Do not skip any arguments if
6377 can_change_signature is set.
6378
6379 2011-08-31 Martin Jambor <mjambor@suse.cz>
6380
6381 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
6382 check removed.
6383
6384 2011-08-31 Richard Guenther <rguenther@suse.de>
6385
6386 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
6387 special-casing.
6388
6389 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
6390
6391 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
6392
6393 2011-08-31 Tom de Vries <tom@codesourcery.com>
6394
6395 PR middle-end/43513
6396 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
6397 * tree-ssa-ccp.c (params.h): Include.
6398 (fold_builtin_alloca_for_var): New function.
6399 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
6400
6401 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
6402
6403 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
6404 Handle FMA option.
6405
6406 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
6407
6408 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
6409 b3 and b4 unsigned.
6410
6411 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
6412
6413 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
6414 when code is SET.
6415
6416 2011-08-30 Richard Guenther <rguenther@suse.de>
6417
6418 PR middle-end/48571
6419 * gimple.h (maybe_fold_offset_to_address): Remove.
6420 (maybe_fold_offset_to_reference): Likewise.
6421 (maybe_fold_stmt_addition): Likewise.
6422 (may_propagate_address_into_dereference): Likewise.
6423 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
6424 array references.
6425 * gimple-fold.c (canonicalize_constructor_val): Likewise.
6426 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
6427 addresses instead.
6428 (may_propagate_address_into_dereference): Remove.
6429 (maybe_fold_offset_to_array_ref): Likewise.
6430 (maybe_fold_offset_to_reference): Likewise.
6431 (maybe_fold_offset_to_address): Likewise.
6432 (maybe_fold_stmt_addition): Likewise.
6433 (fold_gimple_assign): Do not reconstruct array references but
6434 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
6435 MEM_REF addresses.
6436 (gimple_fold_stmt_to_constant_1): Likewise.
6437 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6438 * gimplify.c (gimplify_conversion): Likewise.
6439 (gimplify_expr): Likewise.
6440
6441 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
6442
6443 * config/i386/fmaintrin.h: New.
6444 * config.gcc: Add fmaintrin.h.
6445 * config/i386/i386.c
6446 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
6447 <IX86_BUILTIN_VFMADDSD3>: Likewise.
6448 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
6449 (*fmai_fmadd_<mode>): Likewise.
6450 (*fmai_fmsub_<mode>): Likewise.
6451 (*fmai_fnmadd_<mode>): Likewise.
6452 (*fmai_fnmsub_<mode>): Likewise.
6453 * config/i386/immintrin.h: Add fmaintrin.h.
6454
6455 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
6456
6457 * genautomata.c (NO_COMB_OPTION): New macro.
6458 (no_comb_flag): New static variable.
6459 (gen_automata_option): Handle NO_COMB_OPTION.
6460 (comb_vect_p): False if no_comb_flag.
6461 (add_vect): Move computation of min/max values. Return early if
6462 no_comb_flag.
6463 * doc/md.texi (automata_option): Document no-comb-vect.
6464
6465 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
6466 "__x86.get_pc_thunk".
6467
6468 * bb-reorder.c (insert_section_boundary_note): Only do it if
6469 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
6470
6471 2011-08-30 Christian Bruel <christian.bruel@st.com>
6472
6473 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
6474 flag_profile_use.
6475
6476 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6477
6478 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
6479 to off. Document switch.
6480 * doc/invoke.texi (-msave-toc-indirect): Ditto.
6481
6482 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6483
6484 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
6485 conditionals and comments inside macro arguments.
6486
6487 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
6488 Richard Guenther <rguenther@suse.de>
6489
6490 * tree.h (constant_boolean_node): Adjust prototype.
6491 * fold-const.c (fold_convert_loc): Move aggregate conversion
6492 leeway down.
6493 (constant_boolean_node): Make value parameter boolean, add
6494 vector type handling.
6495 (fold_unary_loc): Use constant_boolean_node.
6496 (fold_binary_loc): Preserve types properly when folding
6497 COMPLEX_EXPR <__real x, __imag x>.
6498 * gimplify.c (gimplify_expr): Handle vector comparison.
6499 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
6500 comparison.
6501 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
6502 comparisons.
6503
6504 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6505
6506 PR middle-end/48722
6507 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
6508 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
6509 (verify_rtl_sharing): Likewise and verify_rtx_sharing
6510 in there too.
6511 (unshare_all_rtl_in_chain): For CALL_INSNs
6512 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
6513
6514 2011-08-29 Richard Guenther <rguenther@suse.de>
6515
6516 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
6517 on the built ADDR_EXPR.
6518
6519 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6520
6521 PR debug/50215
6522 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
6523 before adding ENTRY_VALUE to val->locs.
6524
6525 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
6526
6527 PR bootstrap/50218
6528 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
6529 comp.
6530
6531 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
6532
6533 * doc/rtl.texi (simple_return): Document.
6534 (parallel, PATTERN): Here too.
6535 * doc/md.texi (return): Mention it's allowed to expand to simple_return
6536 in some cases.
6537 (simple_return): Document standard pattern.
6538 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
6539 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
6540 * reorg.c (function_return_label, function_simple_return_label):
6541 New static variables, replacing...
6542 (end_of_function_label): ... this.
6543 (simplejump_or_return_p): New static function.
6544 (optimize_skip, steal_delay_list_from_fallthrough,
6545 fill_slots_from_thread): Use it.
6546 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
6547 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
6548 (find_end_label): Take a new arg which is one of the two return
6549 rtxs. Depending on which, set either function_return_label or
6550 function_simple_return_label. All callers changed.
6551 (make_return_insns): Make both kinds.
6552 (dbr_schedule): Adjust for two kinds of end labels.
6553 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
6554 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
6555 (gen_expand, gen_split): Use ANY_RETURN_P.
6556 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
6557 * rtl.def (SIMPLE_RETURN): New code.
6558 * ifcvt.c (find_if_case_1): Be more careful about
6559 redirecting jumps to the EXIT_BLOCK.
6560 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
6561 returnjump_p_1): Handle SIMPLE_RETURNs.
6562 * print-rtl.c (print_rtx): Likewise.
6563 * rtl.c (copy_rtx): Likewise.
6564 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
6565 * combine.c (simplify_set): Likewise.
6566 * resource.c (find_dead_or_set_registers, mark_set_resources):
6567 Likewise.
6568 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
6569 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
6570 (init_emit_regs): Initialize simple_return_rtx.
6571 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
6572 force_nonfallthru_and_redirect.
6573 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
6574 (GR_SIMPLE_RETURN): New enum value.
6575 (simple_return_rtx): New macro.
6576 * basic-block.h (force_nonfallthru_and_redirect): Adjust
6577 declaration.
6578 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
6579 argument. All callers changed. Be careful about what kinds of
6580 returnjumps to generate.
6581 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
6582 ix86_pad_short_function): Likewise.
6583 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
6584 of return.
6585 * config/mips/mips.md (any_return): New code_iterator.
6586 (optab): Add cases for return and simple_return.
6587 (return): Expand to a simple_return.
6588 (simple_return): New pattern.
6589 (*<optab>, *<optab>_internal for any_return): New patterns.
6590 (return_internal): Remove.
6591 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
6592 a simple_return_internal.
6593
6594 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6595
6596 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
6597 (vec_extract_lo_<mode>): Prevent both operands in memory.
6598 (vec_extract_lo_v16hi): Ditto.
6599 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
6600
6601 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6602
6603 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
6604 (*sse2_mulv4si3): Ditto.
6605 (mulv2di3): Ditto.
6606 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
6607 notes to REG_EQUAL.
6608
6609 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6610
6611 PR target/50202
6612 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
6613 when all outputs are unused.
6614 (sse4_2_pcmpistr): Ditto.
6615
6616 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
6617
6618 * config/i386/i386.md (round<mode>2): New expander.
6619 * config/i386/i386.c (enum ix86_builtins): Add
6620 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
6621 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
6622 descriptions.
6623 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
6624 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
6625
6626 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
6627
6628 PR middle-end/50083
6629 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
6630 only when TARGET_C99_FUNCTIONS.
6631 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
6632 <BUILT_IN_RINT{,F,L}>: Ditto.
6633
6634 2011-08-26 Michael Matz <matz@suse.de>
6635 Jakub Jelinek <jakub@redhat.com>
6636
6637 PR lto/50165
6638 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
6639 don't call strlen twice, use memcpy.
6640
6641 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
6642
6643 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
6644 * config/i386/bmiintrin.h: Likewise.
6645 * config/i386/lzcntintrin.h: Likewise.
6646
6647 * config/i386/immintrin.h: Include <lzcntintrin.h>,
6648 <bmiintrin.h> and <bmi2intrin.h>.
6649
6650 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6651
6652 PR target/50166
6653 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
6654 * configure: Regenerate.
6655
6656 2011-08-26 Jakub Jelinek <jakub@redhat.com>
6657
6658 PR c/50179
6659 * c-typeck.c (c_process_expr_stmt): Skip over nops and
6660 call mark_exp_read even if exprv is ADDR_EXPR.
6661
6662 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
6663
6664 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
6665 to df_set_dead_notes_for_mw.
6666
6667 2011-08-26 Richard Guenther <rguenther@suse.de>
6668
6669 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
6670
6671 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
6672 Tom de Vries <tom@codesourcery.com>
6673
6674 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
6675 (struct ivopts_data): Add loop_single_exit_p field.
6676 (niter_for_exit): Change parameter desc_p into return value. Return
6677 desc if desc->may_be_zero. Free desc if unused.
6678 (niter_for_single_dom_exit): Change return type.
6679 (find_induction_variables): Handle changed return type of
6680 niter_for_single_dom_exit. Dump may_be_zero.
6681 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
6682 (set_use_iv_cost): Add and handle comp parameter.
6683 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
6684 comp argument to set_use_iv_cost.
6685 (strip_wrap_conserving_type_conversions, expr_equal_p)
6686 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
6687 (may_eliminate_iv): Add comp parameter. Handle new return type of
6688 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
6689 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
6690 and may_eliminate_iv.
6691 (rewrite_use_compare): Move call to iv_elimination_compare to ...
6692 (may_eliminate_iv): Here.
6693 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
6694
6695 2011-08-26 Tom de Vries <tom@codesourcery.com>
6696
6697 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
6698 accessing TREE_TYPE.
6699
6700 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
6701
6702 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
6703 (*ior_scc_scc_cmp): Likewise
6704 (*and_scc_scc): Likewise.
6705 (*and_scc_scc_cmp): Likewise.
6706 (*and_scc_scc_nodom): Likewise.
6707 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
6708
6709 2011-08-26 Jakub Jelinek <jakub@redhat.com>
6710
6711 * rtlanal.c (nonzero_bits1): Handle CLRSB.
6712
6713 2011-08-26 Richard Guenther <rguenther@suse.de>
6714
6715 * expr.c (string_constant): Handle &MEM_REF.
6716
6717 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
6718
6719 * config/arm/arm.c (struct four_ints): New type.
6720 (count_insns_for_constant): Delete function.
6721 (find_best_start): Delete function.
6722 (optimal_immediate_sequence): New function.
6723 (optimal_immediate_sequence_1): New function.
6724 (arm_gen_constant): Move constant splitting code to
6725 optimal_immediate_sequence.
6726 Rewrite constant negation/invertion code.
6727
6728 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
6729
6730 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
6731 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
6732 Remove prototype. Remove static function type.
6733 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
6734 Add arch attribute.
6735 * config/arm/constraints.md (Pj, PJ): New constraints.
6736
6737 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6738
6739 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
6740 ("cortex_a9_multiply_long"): New and use above. Handle all
6741 long multiply cases.
6742 ("cortex_a9_multiply"): Handle smmul and smmulr.
6743 ("cortex_a9_mac"): Handle smmla.
6744
6745 2011-08-25 Richard Henderson <rth@redhat.com>
6746
6747 PR 50132
6748 PR 49864
6749 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
6750 non-constant stack adjutment.
6751 * expr.c (find_args_size_adjust): Break out from ...
6752 (fixup_args_size_notes): ... here.
6753 * rtl.h (find_args_size_adjust): Declare.
6754
6755 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
6756
6757 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
6758 sse4 and sse4_noavx.
6759 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
6760 (*pushdf_rex64): Change Y2 register constraint to x.
6761 (*movdf_internal_rex64): Ditto.
6762 (*zero_extendsidi2_rex64): Ditto.
6763 (*movdi_internal): Change Y2 register constraint to x
6764 and update "isa" attribute.
6765 (*pushdf): Ditto.
6766 (*movdf internal): Ditto.
6767 (zero_extendsidi2_1): Ditto.
6768 (*truncdfdf_mixed): Ditto.
6769 (*truncxfdf2_mixed): Ditto.
6770 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
6771 register constraint to x.
6772 (*movv2sf_internal_rex64): Ditto.
6773 (*mov<mode>_internal): Change Y2 register constraint to x
6774 and add "isa" attribute.
6775 (*movv2sf_internal): Ditto.
6776 (*vec_extractv2si_1): Ditto.
6777 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
6778 constraints to x and update "isa" attribute.
6779 (*vec_interleave_highv2df): Change Y3 registerconstraint
6780 to x and update "isa" attribute.
6781 (*vec_interleave_lowv2df): Ditto.
6782 (*vec_concatv2df): Change Y2 register constraint to x and
6783 update "isa" attribute.
6784 (sse2_loadld): Ditto.
6785 (*vec_extractv2di_1): Ditto.
6786 (*vec_dupv4si): Ditto.
6787 (*vec_dupv2di): Ditto.
6788 (*vec_concatv4si): Ditto.
6789 (vec_concatv2di): Ditto.
6790 * config/i386/constraints.md (Y2): Remove.
6791 (Y3): Ditto.
6792 (Y4): Ditto.
6793
6794 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6795
6796 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
6797 dump_def_use_chain): Don't declare.
6798 (mark_conflict, create_new_chain): Move before users.
6799 (regrename_optimize): Move to near end of file.
6800
6801 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6802
6803 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
6804 (secondary_input_reload_class): Remove Prototype.
6805 * config/avr/avr.c (byte_immediate_operand): Remove Function.
6806 * config/avr/avr.md (setmemhi): Use u8_operand.
6807 (strlenhi): Use const0_rtx for comparison.
6808 * config/avr/avr.h (avr_reg_order): Remove Declaration.
6809
6810 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6811
6812 * config/avr/avr.c (reg_class_tab): Make local to
6813 avr_regno_reg_class. Return smallest register class available.
6814
6815 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6816
6817 * config/avr/avr.c (STR_PREFIX_P): New Define.
6818 (avr_asm_declare_function_name): Use it.
6819 (avr_asm_named_section): Use it.
6820 (avr_section_type_flags): Use it.
6821
6822 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6823
6824 * doc/md.texi (automata_option): Document collapse-ndfa.
6825 * genautomata.c (COLLAPSE_OPTION): New macro.
6826 (collapse_flag): New static variable.
6827 (struct description): New member normal_decls_num.
6828 (struct automaton): New members advance_ainsn and collapse_ainsn.
6829 (gen_automata_option): Check for COLLAPSE_OPTION.
6830 (collapse_ndfa_insn_decl): New static variable.
6831 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
6832 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
6833 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
6834 necessary. Use normal_decls_num rather than decls_num, remove
6835 test for special decls.
6836 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
6837 (make_automaton); Likewise. Use the new advance_cycle_insn member
6838 of struct automaton.
6839 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
6840 is set.
6841 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
6842 transition. Create the necessary transitions for it.
6843 (create_ainsns): Return void. Take an automaton_t argument, and
6844 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
6845 callers changed.
6846 (COLLAPSE_NDFA_VALUE_NAME): New macro.
6847 (output_tables): Output code to define it.
6848 (output_internal_insn_code_evaluation): Output code to accept
6849 const0_rtx as collapse-ndfa transition.
6850 (output_default_latencies, output_print_reservation_func,
6851 output_print_description): Reorganize loops to use normal_decls_num
6852 as loop bound; remove special case for advance_cycle_insn_decl.
6853 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
6854 (check_automata_insn_issues): Check for collapse_ainsn.
6855 (expand_automate): Allocate sufficient space. Initialize
6856 normal_decls_num.
6857
6858 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6859
6860 * config/avr/avr.md: Fix indentation from r177991.
6861
6862 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6863
6864 * regrename.c (struct du_head): Remove member terminated.
6865 (create_new_chain): Don't initialize it.
6866 (scan_rtx_reg): Don't set or test it, test the open_chains_set
6867 bitmap instead.
6868 (tick, this_tick): New global variables, moved out of
6869 regrename_optimize.
6870 (current_id, open_chains, closed_chains, open_chains_set,
6871 live_in_chains, live_hard_regs): Reorder declarations.
6872 (dump_def_use_chain): Move function earlier in the file.
6873 (rename_chains): New static function, broken out of
6874 regrename_optimize.
6875 (regrename_optimize): Use it. Remove #if 0'ed code.
6876
6877 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6878
6879 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
6880
6881 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
6882
6883 PR target/50172
6884 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
6885
6886 2011-08-24 Richard Guenther <rguenther@suse.de>
6887
6888 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
6889 ref in the basic-block case. Move stripping array-refs
6890 to the place we create an access-function for it. Remove
6891 bogus stripping down a MEM_REF to its base.
6892
6893 2011-08-24 Richard Guenther <rguenther@suse.de>
6894
6895 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
6896 with -fno-strict-overflow.
6897
6898 2011-08-24 Richard Guenther <rguenther@suse.de>
6899
6900 * tree-vectorizer.c (vect_print_dump_info): Avoid the
6901 file and location clutter when dumping to dump files.
6902
6903 2011-08-24 Simon Baldwin <simonb@google.com>
6904
6905 * gengtype-state.c (write_state): Remove timestamped header line.
6906
6907 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6908
6909 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
6910 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
6911 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
6912 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
6913 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
6914 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
6915 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
6916 rules.
6917 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
6918
6919 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6920
6921 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
6922
6923 2011-08-24 Richard Guenther <rguenther@suse.de>
6924
6925 PR tree-optimization/50067
6926 * tree-data-ref.c (dr_analyze_indices): Do not add an access
6927 function for a MEM_REF base that has no evolution in the loop
6928 nest or that is not analyzable.
6929
6930 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
6931
6932 * ira.c (ira_init_register_move_cost): Check small subclasses
6933 through ira_reg_class_max_nregs and ira_available_class_regs.
6934
6935 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
6936
6937 * config/i386/constraints.md (Yp): New register constraint.
6938 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
6939 Yp register constraint.
6940 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
6941 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
6942 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
6943
6944 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
6945
6946 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
6947
6948 2011-08-23 Mark Heffernan <meheff@google.com>
6949
6950 PR middle-end/38509
6951 * common.opt (Wfree-nonheap-object): New option.
6952 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
6953 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
6954 to warning.
6955 (expand_builtin): Make warning conditional.
6956
6957 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
6958
6959 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
6960 (length_immediate): Handle imulx, ishiftx and rotatex.
6961 (imm_disp): Ditto.
6962 (isa): Add bmi2.
6963 (enabled): Handle bmi2.
6964 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
6965 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
6966 (*bmi2_umulditi3_1): New insn pattern.
6967 (*bmi2_umulsidi3_1): Ditto.
6968 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
6969 (*bmi2_ashl<mode>3_1): New insn pattern.
6970 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
6971 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
6972 (*bmi2_ashlsi3_1_zext): New insn pattern.
6973 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
6974 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
6975 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
6976 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
6977 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
6978 flags dependency.
6979 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
6980 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
6981 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
6982 flags dependency.
6983 (*bmi2_rorx<mode>3_1): New insn pattern.
6984 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
6985 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
6986 (*rotatert<mode>3_1 splitter): Ditto.
6987 (*bmi2_rorxsi3_1_zext): New insn pattern.
6988 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
6989 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
6990 (*rotatertsi3_1_zext splitter): Ditto.
6991
6992 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
6993
6994 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
6995 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
6996 (ix86_handle_option): Handle OPT_mbmi2 case.
6997 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
6998 (x86_64-*-*): Likewise.
6999 * config/i386/bmi2intrin.h: New file.
7000 * config/i386/cpuid.h (bit_BMI2): New.
7001 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7002 BMI2 feature.
7003 * config/i386/i386-c.c (ix86_target_macros_internal):
7004 Conditionally define __BMI2__.
7005 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
7006 Handle BMI2 option.
7007 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
7008 (print_reg): New code.
7009 (ix86_print_operand): Likewise.
7010 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
7011 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
7012 IX86_BUILTIN_PEXT64.
7013 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
7014 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
7015 IX86_BUILTIN_PEXT64.
7016 * config/i386/i386.h (TARGET_BMI2): New.
7017 * config/i386/i386.md (UNSPEC_PDEP): New.
7018 (UNSPEC_PEXT): Likewise.
7019 (*bmi2_bzhi_<mode>3): Likewise.
7020 (*bmi2_pdep_<mode>3): Likewise.
7021 (*bmi2_pext_<mode>3): Likewise.
7022 * config/i386/i386.opt (mbmi2): New.
7023 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
7024 is defined.
7025 * doc/extend.texi: Document BMI2 built-in functions.
7026 * doc/invoke.texi: Document -mbmi2.
7027
7028 2011-08-23 Jakub Jelinek <jakub@redhat.com>
7029
7030 PR middle-end/50161
7031 * simplify-rtx.c (simplify_const_unary_operation): If
7032 op is CONST_INT, don't look at op_mode, but use instead mode.
7033 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
7034 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
7035 operation and TRUNCATE/ZERO_EXTEND if needed.
7036 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
7037 Document that operand mode must be same as operation mode,
7038 or VOIDmode.
7039 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
7040 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
7041 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
7042 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
7043 use the mode of operand for the operation and add truncate
7044 or zero_extend around if needed.
7045 * config/c6x/c6x.md (ctzdi2): Likewise.
7046 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
7047
7048 2011-08-12 Michael Matz <matz@suse.de>
7049
7050 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
7051 (gimple_expand_cfg): Merge alignment info for coalesced pointer
7052 SSA names.
7053
7054 2011-08-23 Richard Guenther <rguenther@suse.de>
7055
7056 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
7057 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
7058 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
7059 from ...
7060 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
7061 (mem_refs_may_alias_p): Adjust.
7062 * tree-data-ref.h (dr_may_alias_p): Adjust.
7063 * tree-data-ref.c: Include tree-affine.h.
7064 (dr_analyze_indices): Do nothing for the non-loop case.
7065 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
7066 more cases in the non-loop case.
7067 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
7068 calls to dr_may_alias_p.
7069 (write_alias_graph_to_ascii_ecc): Likewise.
7070 (write_alias_graph_to_ascii_dot): Likewise.
7071 (build_alias_set_optimal_p): Likewise.
7072
7073 2011-08-23 Richard Guenther <rguenther@suse.de>
7074
7075 PR tree-optimization/50162
7076 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
7077
7078 2011-08-23 Richard Guenther <rguenther@suse.de>
7079
7080 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
7081 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
7082 (create_data_ref): Also dump access functions for the created data-ref.
7083
7084 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
7085 Kirill Yukhin <kirill.yukhin@intel.com>
7086
7087 PR target/50155
7088 * config/i386/sse.md (VI_AVX2): New.
7089 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
7090 (*<plusminus_insn><mode>3): Ditto.
7091 (<sse2_avx2>_andnot<mode>3): Ditto.
7092 (*andnot<mode>3): Fix order of cond operands.
7093 Add asserts for correct TARGET_xxx.
7094 (*<any_logic:code><mode>3): Ditto.
7095
7096 2011-08-22 Anatoly Sokolov <aesok@post.ru>
7097
7098 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
7099 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
7100 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
7101 regclass argument type to reg_class_t. Change 'max' and 'v' vars
7102 and return types to unsigned char. Use reg_class_contents instead
7103 of class_contents.
7104 (TARGET_CLASS_MAX_NREGS): Define.
7105
7106 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
7107
7108 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
7109 to make computed_jump_p return true.
7110
7111 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7112
7113 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
7114 (PICFLAG_FOR_TARGET): Substitute.
7115 * aclocal.m4: Regenerate.
7116 * configure: Regenerate.
7117
7118 2011-08-22 Dodji Seketeli <dodji@redhat.com>
7119
7120 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
7121 after reading in the pch.
7122
7123 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
7124
7125 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
7126 * configure: Regenerated.
7127
7128 2011-08-22 Jakub Jelinek <jakub@redhat.com>
7129
7130 PR tree-optimization/50133
7131 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
7132 from stmt instead of some statement around gsi.
7133
7134 PR middle-end/50141
7135 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
7136 innerdecl is a VAR_DECL.
7137
7138 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7139
7140 * config/i386/avx2intrin.h: New file.
7141 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
7142 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
7143 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
7144 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
7145 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
7146 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
7147 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
7148 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
7149 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
7150 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
7151 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
7152 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
7153 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
7154 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
7155 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
7156 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
7157 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
7158 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
7159 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
7160 VOID_FTYPE_PV8SI_V8SI_V8SI,
7161 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
7162 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
7163 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
7164 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
7165 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
7166 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
7167 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
7168 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
7169 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
7170 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
7171 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
7172 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
7173 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
7174 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
7175 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
7176 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
7177 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
7178 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
7179 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
7180 V4DI_FTYPE_V4DI_INT_CONVERT,
7181 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
7182 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
7183 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
7184 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
7185 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
7186 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
7187 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
7188 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
7189 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
7190 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
7191 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
7192 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
7193 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
7194 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
7195 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
7196 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
7197 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
7198 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
7199 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
7200 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
7201 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
7202 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
7203 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
7204 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
7205 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
7206 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
7207 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
7208 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
7209 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
7210 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
7211 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
7212 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
7213 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
7214 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
7215 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
7216 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
7217 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
7218 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
7219 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
7220 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
7221 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
7222 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
7223 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
7224 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
7225 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
7226 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
7227 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
7228 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
7229 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
7230 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
7231 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
7232 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
7233 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
7234 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
7235 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
7236 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
7237 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
7238 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
7239 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
7240 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
7241 IX86_BUILTIN_VBROADCASTSS_PS256,
7242 IX86_BUILTIN_VBROADCASTSD_PD256,
7243 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
7244 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
7245 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
7246 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
7247 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
7248 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
7249 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
7250 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
7251 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
7252 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
7253 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
7254 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
7255 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
7256 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
7257 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
7258 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
7259 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
7260 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
7261 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
7262 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
7263 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
7264 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
7265 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
7266 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
7267 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
7268 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
7269 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
7270 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
7271 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
7272 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
7273 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
7274 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
7275 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
7276 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
7277 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
7278 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
7279 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
7280 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
7281 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
7282 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
7283 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
7284 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
7285 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
7286 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
7287 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
7288 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
7289 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
7290 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
7291 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
7292 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
7293 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
7294 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
7295 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
7296 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
7297 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
7298 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
7299 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
7300 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
7301 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
7302 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
7303 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
7304 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
7305 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
7306 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
7307 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
7308 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
7309 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
7310 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
7311 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
7312 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
7313 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
7314 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
7315 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
7316 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
7317 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
7318 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
7319 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
7320 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
7321 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
7322 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
7323 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
7324 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
7325 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
7326 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
7327 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
7328 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
7329 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
7330 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
7331 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
7332 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
7333 IX86_BUILTIN_VBROADCASTSD_PD256,
7334 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
7335 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
7336 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
7337 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
7338 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
7339 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
7340 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
7341 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
7342 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
7343 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
7344 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
7345 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
7346 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
7347 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
7348 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
7349 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
7350 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
7351 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
7352 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
7353 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
7354 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
7355 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
7356 IX86_BUILTIN_GATHERDIV8SI.
7357 (ix86_preferred_simd_mode): Support AVX2 modes.
7358 (ix86_expand_args_builtin): Support AVX2 builtins.
7359 (ix86_expand_special_args_builtin): Likewise.
7360 (ix86_expand_builtin): Likewise.
7361 * config/i386/i386.md (UNSPEC_VPERMSI): New.
7362 (UNSPEC_VPERMDF): Likewise.
7363 (UNSPEC_VPERMSF): Likewise.
7364 (UNSPEC_VPERMDI): Likewise.
7365 (UNSPEC_VPERMTI): Likewise.
7366 (UNSPEC_GATHER): Likewise.
7367 (ssemodesuffix): Extend.
7368 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
7369 is defined.
7370 * config/i386/predicates.md (const1248_operand): New.
7371 * config/i386/sse.md (VI1_AVX2): New mode iterator.
7372 (VI2_AVX2): Likewise.
7373 (VI4_AVX2): Likewise.
7374 (VI8_AVX2): Likewise.
7375 (VIMAX_AVX2): Likewise.
7376 (SSESCALARMODE): Likewise.
7377 (VI12_AVX2): Likewise.
7378 (VI24_AVX2): Likewise.
7379 (VI124_AVX2): Likewise.
7380 (VI248_AVX2): Likewise.
7381 (VI48_AVX2): Likewise.
7382 (VI4SD_AVX2): Likewise.
7383 (V48_AVX2): Likewise.
7384 (AVX256MODE2P): Likewise.
7385 (AVXMODE48P_DI): Likewise.
7386 (sse2_avx2): New mode attribute.
7387 (ssse3_avx2): Likewise.
7388 (sse4_1_avx2): Likewise.
7389 (avx_avx2): Likewise.
7390 (ssebytemode): Likewise.
7391 (AVXTOSSEMODE): Likewise.
7392 (AVXMODE48P_DI): Likewise.
7393 (gthrfirstp): Likewise.
7394 (gthrlastp): Likewise.
7395 (lshift): New code_iterator
7396 (lshift): New code attribute.
7397 (lshift): Likewise.
7398 (ssescalarmodesuffix): Update.
7399 (sseunpackmode): Likewise.
7400 (ssepackmode): Likewise.
7401 (avx2_vec_dupv4sf): New insn pattern.
7402 (avx2_vec_dupv8sf): Likewise.
7403 (avx2_interleave_highv4di): Likewise.
7404 (avx2_interleave_lowv4di): Likewise.
7405 (avx2_umulv4siv4di3): Likewise
7406 (*avx2_umulv4siv4di3): Likewise
7407 (avx2_pmaddwd): Likewise.
7408 (*avx2_pmaddwd): Likewise.
7409 (avx2_lshrqv4di3): Likewise.
7410 (avx2_lshlqv4di3): Likewise.
7411 (avx2_lshl<mode>3): Likewise.
7412 (avx2_<umaxmin:code><mode>3): Likewise.
7413 (*avx2_<umaxmin:code><mode>3): Likewise.
7414 (avx2_<smaxmin:code><mode>3): Likewise.
7415 (*avx2_<smaxmin:code><mode>3): Likewise.
7416 (avx2_eq<mode>3): Likewise.
7417 (*avx2_eq<mode>3): Likewise.
7418 (avx2_gt<mode>3): Likewise.
7419 (avx2_interleave_highv32qi): New.
7420 (avx2_interleave_lowv32qi): Likewise.
7421 (avx2_interleave_highv16hi): Likewise.
7422 (avx2_interleave_lowv16hi): Likewise.
7423 (avx2_interleave_highv8si): Likewise.
7424 (avx2_interleave_lowv8si): Likewise.
7425 (avx2_pshufd): Likewise.
7426 (avx2_pshufd_1): Likewise.
7427 (avx2_pshuflwv3): Likewise.
7428 (avx2_pshuflw_1): Likewise.
7429 (avx2_pshufhwv3): Likewise.
7430 (avx2_pshufhw_1): Likewise.
7431 (avx2_uavgv32qi3): Likewise.
7432 (*avx2_uavgv32qi3): Likewise.
7433 (avx2_uavgv16hi3): Likewise.
7434 (*avx2_uavgv16hi3): Likewise.
7435 (avx2_pmovmskb): Likewise.
7436 (avx2_phaddwv16hi3): Likewise.
7437 (avx2_phadddv8si3): Likewise.
7438 (avx2_phaddswv16hi3): Likewise.
7439 (avx2_phsubwv16hi3): Likewise.
7440 (avx2_phsubdv8si3): Likewise.
7441 (avx2_phsubswv16hi3): Likewise.
7442 (avx2_pmaddubsw256): Likewise.
7443 (avx2_umulhrswv16hi3): Likewise.
7444 (*avx2_umulhrswv16hi3): Likewise.
7445 (avx2_packusdw): Likewise.
7446 (avx2_pblendd<mode>): Likewise.
7447 (avx2_<code>v16qiv16hi2): Likewise.
7448 (avx2_<code>v8qiv8si2): Likewise.
7449 (avx2_<code>v8hiv8si2): Likewise.
7450 (avx2_<code>v4qiv4di2): Likewise.
7451 (avx2_<code>v4hiv4di2): Likewise.
7452 (avx2_<code>v4siv4di2): Likewise.
7453 (avx2_pbroadcast<mode>): Likewise.
7454 (avx2_permvarv8si): Likewise.
7455 (avx2_permv4df): Likewise.
7456 (avx2_permvarv8sf): Likewise.
7457 (avx2_permv4di): Likewise.
7458 (avx2_permv2ti): Likewise.
7459 (avx2_vec_dupv4df): Likewise.
7460 (avx2_vbroadcasti128_<mode>): Likewise.
7461 (avx2_vec_set_lo_v4di): Likewise.
7462 (avx2_vec_set_hi_v4di): Likewise.
7463 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
7464 (avx2_extracti128): Likewise.
7465 (avx2_inserti128): Likewise.
7466 (avx2_ashrvv8si): Likewise.
7467 (avx2_ashrvv4si): Likewise.
7468 (avx2_<lshift>vv8si): Likewise.
7469 (avx2_<lshift>v<mode>): Likewise.
7470 (avx2_<lshift>vv2di): Likewise.
7471 (avx2_gathersi<mode>): Likewise.
7472 (*avx2_gathersi<mode>): Likewise.
7473 (avx2_gatherdi<mode>): Likewise.
7474 (*avx2_gatherdi<mode>): Likewise.
7475 (avx2_gatherdi<mode>256): Likewise.
7476 (*avx2_gatherdi<mode>256): Likewise.
7477 (<plusminus_insn><mode>3): Use VI mode iterator.
7478 (*<plusminus_insn><mode>3): Use VI mode iterator.
7479 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
7480 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
7481 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
7482 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
7483 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
7484 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
7485 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
7486 Use VI2_AVX2 mode iterator.
7487 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
7488 Use VI2_AVX2 mode iterator.
7489 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
7490 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
7491 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
7492 Use VI4_AVX2 mode iterator.
7493 (ashr<mode>3): Use VI24_AVX2 mode iterator.
7494 (lshr<mode>3): Use VI248_AVX2 mode iterator.
7495 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
7496 Use VIMAX_AVX2 mode iterator.
7497 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
7498 Use VI mode iterator.
7499 (*andnot<mode>3): Update for AVX2.
7500 (*<any_logic:code><mode>3): Likewise.
7501 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
7502 Use VI1_AVX mode iterator.
7503 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
7504 Use VI2_AVX mode iterator.
7505 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
7506 Use VI1_AVX mode iterator.
7507 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
7508 Use VI8_AVX2 mode iterator.
7509 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
7510 Use VI1_AVX2 mode iterator.
7511 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
7512 Use VI124_AVX2 mode iterator.
7513 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
7514 Use SSESCALARMODE mode iterator.
7515 (abs<mode>2): Use VI124_AVX2 mode iterator.
7516 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
7517 Use VI8_AVX2 mode iterator.
7518 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
7519 Use VI1_AVX2 mode iterator.
7520 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
7521 Use VI1_AVX2 mode iterator.
7522 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
7523 Use VI2_AVX2 mode iterator.
7524 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
7525 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
7526 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
7527 avx_maskstore<ssemodesuffix><avxsizesuffix>.
7528 Use V48_AVX2 mode iterator.
7529 * doc/extend.texi: Document AVX2 built-in functions.
7530 * doc/invoke.texi: Document -mavx2.
7531
7532 2011-08-22 Matthias Klose <doko@debian.org>
7533
7534 Revert:
7535 2011-07-11 Arthur Loiret <aloiret@debian.org>
7536 Matthias Klose <doko@debian.org>
7537 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7538 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7539 convention.
7540 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7541
7542 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
7543
7544 PR bootstrap/50146
7545 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
7546 to #ifndef HONOR_REG_ALLOC_ORDER block.
7547
7548 2011-08-21 Richard Henderson <rth@redhat.com>
7549
7550 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
7551 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
7552 * resource.c (next_insn_no_annul): Likewise.
7553 (mark_set_resources): Likewise.
7554 * reorg.c (delete_from_delay_slot): Likewise.
7555 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
7556 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
7557
7558 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
7559
7560 * config/i386/i386.md (any_div): Remove.
7561 (sgnprefix): Update for removal.
7562 (u): Ditto.
7563
7564 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
7565
7566 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
7567 for ira_reg_class_max_nregs. Increase pressure by 1.
7568 (mark_pseudo_regno_subword_dead): Use allocno class
7569 for ira_reg_class_max_nregs.
7570
7571 2011-08-20 Richard Henderson <rth@redhat.com>
7572
7573 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
7574 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
7575 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
7576 config/c6x/ltf.c: Adjust include path for soft-fp.
7577
7578 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
7579
7580 PR other/46770
7581 * config.gcc (tm_file): Add initfini-array.h if
7582 .init_arrary/.fini_array are supported.
7583
7584 * crtstuff.c: Don't generate .ctors nor .dtors sections if
7585 USE_INITFINI_ARRAY is defined.
7586
7587 * output.h (default_elf_init_array_asm_out_constructor): New.
7588 (default_elf_fini_array_asm_out_destructor): Likewise.
7589 * varasm.c (elf_init_array_section): Likewise.
7590 (elf_fini_array_section): Likewise.
7591 (get_elf_initfini_array_priority_section): Likewise.
7592 (default_elf_init_array_asm_out_constructor): Likewise.
7593 (default_elf_fini_array_asm_out_destructor): Likewise.
7594
7595 * config/initfini-array.h: New.
7596
7597 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
7598
7599 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
7600 OK for ST_REGS and FP_REGS before taking those classes into account.
7601
7602 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
7603
7604 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
7605 before checking for annulled branches.
7606
7607 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
7608
7609 * config/i386/i386.c (ix86_binary_operator_ok): Use
7610 satisfies_constraint_L.
7611
7612 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
7613 Michael Matz <matz@suse.de>
7614
7615 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
7616 trunc (a + copysign (nextafter (0.5, 0.0), a)).
7617
7618 2011-08-20 Anatoly Sokolov <aesok@post.ru>
7619
7620 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7621 * doc/tm.texi: Regenerate.
7622 * targhooks.c (default_preferred_output_reload_class): Don't use
7623 PREFERRED_OUTPUT_RELOAD_CLASS macro.
7624 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
7625
7626 2011-08-20 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR tree-optimization/48739
7629 * tree-ssa.c: Include cfgloop.h.
7630 (execute_update_addresses_taken): When updating ssa, if in loop closed
7631 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
7632 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
7633
7634 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
7635
7636 PR rtl-optimization/49936
7637 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
7638 for calculation of max register move costs.
7639
7640 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7641
7642 * c-parser.c (c_parser_postfix_expression): Convert operands of
7643 __builtin_complex to their semantic types.
7644
7645 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
7646
7647 PR middle-end/49721
7648 * explow.c (convert_memory_address_addr_space): Also permute the
7649 conversion and addition of constant for zero-extend.
7650
7651 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7652
7653 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
7654 * doc/extend.texi (__builtin_complex): Document.
7655
7656 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7657
7658 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
7659 beyond conversions.
7660 (convert_mult_to_widen): Convert constant inputs to the right type.
7661 (convert_plusminus_to_widen): Don't automatically reject inputs that
7662 are not an SSA_NAME.
7663 Convert constant inputs to the right type.
7664
7665 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7666
7667 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
7668 to the correct type.
7669
7670 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7671
7672 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
7673 unsigned inputs of different modes.
7674 (convert_plusminus_to_widen): Likewise.
7675
7676 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7677
7678 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
7679 'type'.
7680 Use 'type' from caller, not inferred from 'rhs'.
7681 Don't reject non-conversion statements. Do return lhs in this case.
7682 (is_widening_mult_p): Add new argument 'type'.
7683 Use 'type' from caller, not inferred from 'stmt'.
7684 Pass type to is_widening_mult_rhs_p.
7685 (convert_mult_to_widen): Pass type to is_widening_mult_p.
7686 (convert_plusminus_to_widen): Likewise.
7687
7688 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7689
7690 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
7691 Ensure the the larger type is the first operand.
7692
7693 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7694
7695 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
7696 unsupported unsigned multiplies to signed.
7697 (convert_plusminus_to_widen): Likewise.
7698
7699 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7700
7701 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
7702 conversion statement separating multiply-and-accumulate.
7703
7704 2011-08-19 Richard Guenther <rguenther@suse.de>
7705
7706 PR tree-optimization/50067
7707 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
7708 offset only if we accounted for it.
7709
7710 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7711
7712 * config/arm/arm.md (maddhidi4): Remove '*' from name.
7713 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
7714 * optabs.c (find_widening_optab_handler_and_mode): New function.
7715 (expand_widen_pattern_expr): Use find_widening_optab_handler.
7716 (expand_binop_directly): Likewise.
7717 (expand_binop): Likewise.
7718 * optabs.h (find_widening_optab_handler): New macro define.
7719 (find_widening_optab_handler_and_mode): New prototype.
7720 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
7721 type precision rules.
7722 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
7723 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
7724 (is_widening_mult_rhs_p): Allow widening by more than one mode.
7725 Explicitly disallow mis-matched input types.
7726 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
7727 input types to fit the new handler.
7728 (convert_plusminus_to_widen): Likewise.
7729
7730 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7731
7732 * expr.c (expand_expr_real_2): Use widening_optab_handler.
7733 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
7734 (gen_insn): $N now means $a must be wider than $b, not consecutive.
7735 * optabs.c (widened_mode): New function.
7736 (expand_widen_pattern_expr): Use widening_optab_handler.
7737 (expand_binop_directly): Likewise.
7738 (expand_binop): Likewise.
7739 * optabs.h (widening_optab_handlers): New struct.
7740 (optab_d): New member, 'widening'.
7741 (widening_optab_handler): New function.
7742 (set_widening_optab_handler): New function.
7743 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
7744 widening_optab_handler.
7745 (convert_plusminus_to_widen): Likewise.
7746
7747 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7748
7749 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
7750 pedantic.
7751 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
7752 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
7753
7754 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7755
7756 * opth-gen.awk: Do not declare target save/restore structures and
7757 functions if IN_RTS defined.
7758
7759 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7760
7761 PR target/49437
7762 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
7763 when stack was realigned in interrupt handler prologue.
7764
7765 2011-08-18 Joseph Myers <joseph@codesourcery.com>
7766
7767 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
7768 (quals_from_declspecs): Assert _Noreturn not present.
7769 (grokdeclarator): Handle _Noreturn.
7770 (build_null_declspecs): Initialize noreturn_p.
7771 (declspecs_add_scspec): Handle RID_NORETURN.
7772 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
7773 (c_parser_attributes): Handle RID_NORETURN.
7774 * c-tree.h (struct c_declspecs): Add noreturn_p.
7775 * ginclude/stdnoreturn.h: New.
7776 * Makefile.in (USER_H): Add stdnoreturn.h.
7777
7778 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
7779
7780 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
7781 (OPTION_MASK_ISA_AVX_UNSET): Update.
7782 (OPTION_MASK_ISA_AVX2_UNSET): New.
7783 (ix86_handle_option): Handle OPT_mavx2 case.
7784 * config/i386/cpuid.h (bit_AVX2): New.
7785 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7786 AVX2 feature.
7787 * config/i386/i386-c.c (ix86_target_macros_internal):
7788 Conditionally define __AVX2__.
7789 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
7790 Define "core-avx2" processor alias. Handle avx2 option.
7791 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
7792 * config/i386/i386.h (TARGET_AVX2): New.
7793 * config/i386/i386.opt (mavx2): New.
7794 * doc/invoke.texi: Document -mavx2.
7795
7796 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
7797
7798 PR rtl-optimization/49890
7799 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
7800 subclasses of class which is superset of a pressure class.
7801
7802 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
7803 Igor Zamyatin <igor.zamyatin@intel.com>
7804
7805 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
7806 with HOST_WIDE_INT for isa_flag.
7807 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
7808 isa variables.
7809
7810 * config/i386/i386.c (ix86_target_string): Replace int with
7811 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
7812 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
7813 (pta_flags): Removed.
7814 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
7815 (pta): Use HOST_WIDE_INT on flags.
7816 (builtin_isa): Use HOST_WIDE_INT on isa.
7817 (ix86_add_new_builtins): Likewise.
7818 (def_builtin): Use HOST_WIDE_INT on mask.
7819 (def_builtin_const): Likewise.
7820 (builtin_description): Likewise.
7821
7822 * config/i386/i386.opt (ix86_isa_flags): Replace int with
7823 HOST_WIDE_INT.
7824 (ix86_isa_flags_explicit): Likewise.
7825 (x_ix86_isa_flags_explicit): Likewise.
7826
7827 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
7828
7829 PR rtl-optimization/50107
7830 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
7831 (ira_hard_reg_in_set_p): New.
7832
7833 * ira-color.c (calculate_saved_nregs): New.
7834 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
7835 hard regs.
7836 (allocno_reload_assign, fast_allocation): Use
7837 ira_hard_reg_set_intersection_p instead of
7838 ira_hard_reg_not_in_set_p.
7839
7840 * ira.c (setup_reg_renumber): Use
7841 ira_hard_reg_set_intersection_p instead of
7842 ira_hard_reg_not_in_set_p.
7843 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
7844 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
7845
7846 * ira-costs.c (ira_tune_allocno_costs): Use
7847 ira_hard_reg_set_intersection_p instead of
7848 ira_hard_reg_not_in_set_p.
7849
7850 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
7851 Igor Zamyatin <igor.zamyatin@intel.com>
7852
7853 * hwint.h (HOST_WIDE_INT_1): New.
7854
7855 * opt-functions.awk (switch_bit_fields): Initialize the
7856 host_wide_int field.
7857 (host_wide_int_var_name): New.
7858 (var_type_struct): Check and return HOST_WIDE_INT.
7859
7860 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
7861
7862 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
7863
7864 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
7865 check masks for HOST_WIDE_INT.
7866
7867 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
7868 (option_enabled): Likewise.
7869 (get_option_state): Likewise.
7870
7871 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
7872 to HOST_WIDE_INT.
7873
7874 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7875 Marc Glisse <marc.glisse@normalesup.org>
7876
7877 PR libstdc++-v3/1773
7878 * target.def (decl_mangling_context): New C++ hook.
7879 * doc/tm.texi: Regenerate.
7880 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
7881 * config/sol2-protos.h: Group by source file.
7882 (solaris_cxx_decl_mangling_context): Declare.
7883 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
7884 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
7885 Use $<.
7886 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
7887 Add sol2-stubs.o to extra_objs.
7888
7889 2011-08-18 Jakub Jelinek <jakub@redhat.com>
7890
7891 PR target/50009
7892 * stor-layout.c (update_alignment_for_field): Don't ICE on
7893 packed flexible array members if ms_bitfield_layout_p.
7894
7895 PR target/50092
7896 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
7897 on the result before returning it.
7898
7899 PR debug/50017
7900 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
7901 is a debug stmt, use location of the first non-debug stmt after it.
7902
7903 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7904
7905 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
7906 (arm_size_rtx_costs): Likewise.
7907
7908 2011-08-18 Richard Guenther <rguenther@suse.de>
7909
7910 * tree.h (tree_int_cst_msb): Remove.
7911 * tree.c (tree_int_cst_msb): Likewise.
7912 (tree_int_cst_sign_bit): Move from ...
7913 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
7914
7915 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7916
7917 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
7918 * doc/tm.texi: Regenerate.
7919 * target.def (rtx_costs): Add an opno parameter.
7920 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7921 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
7922 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7923 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
7924 * cse.c (COST_IN): Add an opno parameter.
7925 (notreg_cost): Likewise. Update call to rtx_cost.
7926 (COST, fold_rtx): Update accordingly.
7927 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
7928 * expmed.c (emit_store_flag): Likewise.
7929 * optabs.c (avoid_expensive_constant): Add an opno parameter.
7930 Update call to rtx_cost.
7931 (expand_binop_directly, expand_binop): Likewise.
7932 (expand_twoval_binop, prepare_cmp_insn): Likewise.
7933 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
7934 (set_src_cost, get_full_set_src_cost): Update accordingly.
7935 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
7936 to target hook.
7937 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
7938 (default_adress_cost): Update calls to rtx_cost.
7939
7940 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
7941 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
7942 (arm_rtx_costs): Add an opno parameter.
7943 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
7944 adjust any recursive rtx-cost calls.
7945 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
7946 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
7947 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
7948 * config/cris/cris.c (cris_rtx_costs): Likewise.
7949 * config/frv/frv.c (frv_rtx_costs): Likewise.
7950 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
7951 * config/i386/i386.c (ix86_rtx_costs): Likewise.
7952 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
7953 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
7954 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
7955 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
7956 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
7957 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
7958 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
7959 * config/mep/mep.c (mep_rtx_cost): Likewise.
7960 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
7961 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
7962 (mips_zero_extend_cost): Add an opno parameter.
7963 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
7964 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
7965 to rtx_cost.
7966 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
7967 rtx-cost calls.
7968 * config/pa/pa.c (hppa_rtx_costs): Likewise.
7969 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
7970 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
7971 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
7972 (rs6000_debug_rtx_costs): Likewise.
7973 * config/s390/s390.c (s390_rtx_costs): Likewise.
7974 * config/score/score-protos.h (score_rtx_costs): Likewise.
7975 * config/score/score.c (score_rtx_costs): Likewise.
7976 * config/sh/sh.c (andcosts): Update call to rtx_cost.
7977 (sh_rtx_costs): Add an opno parameter.
7978 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
7979 * config/spu/spu.c (spu_rtx_costs): Likewise.
7980 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
7981 * config/v850/v850.c (v850_rtx_costs): Likewise.
7982 * config/vax/vax.c (vax_rtx_costs): Likewise.
7983 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
7984
7985 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7986
7987 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
7988 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
7989 rtx_cost.
7990 * calls.c (precompute_register_parameters): Likewise.
7991 * combine.c (expand_compound_operation, make_extraction): Likewise.
7992 (force_to_mode, distribute_and_simplify_rtx): Likewise.
7993 * dse.c (find_shift_sequence): Likewise.
7994 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
7995 * expr.c (compress_float_constant): Likewise.
7996 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
7997 * gcse.c (want_to_gcse_p): Likewise.
7998 * ifcvt.c (noce_try_sign_mask): Likewise.
7999 * loop-doloop.c (doloop_optimize): Likewise.
8000 * loop-invariant.c (create_new_invariant): Likewise.
8001 * optabs.c (avoid_expensive_constant): Likewise.
8002 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
8003 (try_replace_in_use, reload_cse_move2add): Likewise.
8004 * reload1.c (calculate_elim_costs_all_insns): Likewise.
8005 (note_reg_elim_costly): Likewise.
8006 * rtlanal.c (insn_rtx_cost): Likewise.
8007 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8008 * stmt.c (lshift_cheap_p): Likewise.
8009 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
8010 * config/avr/avr.c (final_prescan_insn): Likewise.
8011 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8012 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
8013
8014 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
8015
8016 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
8017 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
8018 * cfgloopanal.c (seq_cost): Likewise.
8019 * loop-invariant.c (create_new_invariant): Likewise.
8020 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
8021 (reload_cse_move2add): Use get_full_set_rtx_cost.
8022
8023 2011-08-18 Richard Guenther <rguenther@suse.de>
8024
8025 * expr.c (get_inner_reference): Fix typo in last change.
8026
8027 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
8028 Joseph Myers <joseph@codesourcery.com>
8029
8030 PR tree-optimization/49963
8031 * hwint.c (absu_hwi): Define.
8032 * hwint.h (absu_hwi): Declare.
8033 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
8034 of abs_hwi.
8035 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8036 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8037
8038 2011-08-18 Richard Guenther <rguenther@suse.de>
8039
8040 * expr.c (get_inner_reference): Sign-extend the constant
8041 twos-complement offset before doing arbitrary precision
8042 arithmetic on it.
8043 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
8044 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
8045 to get_constraint_for_ptr_offset.
8046
8047 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
8048
8049 PR target/50068
8050 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
8051
8052 2011-08-17 Richard Guenther <rguenther@suse.de>
8053
8054 * tree.h (convert_to_ptrofftype_loc): New function.
8055 (convert_to_ptrofftype): Define.
8056 * builtins.c (expand_builtin_bzero): Use size_type_node.
8057 (fold_builtin_bzero): Likewise.
8058 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
8059 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
8060 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
8061 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
8062 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
8063 * fold-const.c (build_range_check): Negate using the original type.
8064 (fold_unary_loc): Use fold_build_pointer_plus_loc.
8065 * gimple-fold.c (gimple_adjust_this_by_delta): Use
8066 convert_to_ptrofftype.
8067 * gimplify.c (gimplify_self_mod_expr): Likewise.
8068 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
8069 (graphite_create_new_loop_guard): Likewise.
8070 * graphite-sese-to-poly.c (my_long_long): Remove.
8071 (scop_ivs_can_be_represented): Adjust.
8072 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
8073 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
8074 * tree-loop-distribution.c (build_size_arg_loc): Use
8075 size_type_node.
8076 (generate_memset_zero): Simplify.
8077 * tree-mudflap.c: Use fold_convert, not convert.
8078 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
8079 its own type.
8080 (determine_offset): Likewise for DR_STEP.
8081 (valid_initializer_p): Likewise.
8082 * tree-profile.c (prepare_instrumented_value): Convert the pointer
8083 to an integer type of same size.
8084 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
8085 to sizetype without need.
8086 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8087 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
8088 * tree-ssa-loop-manip.c (create_iv): Likewise.
8089 (determine_exit_conditions): Adjust comment.
8090 * tree-ssa-pre.c (create_expression_by_pieces): Use
8091 convert_to_ptrofftype.
8092 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
8093 * varasm.c (array_size_for_constructor): Compute using double_ints.
8094
8095 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8096
8097 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
8098 when generating an integer result where possible. Short-cut
8099 comparison against 0 also for QImode.
8100
8101 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8102
8103 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
8104 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
8105 prototype.
8106 * config/spu/spu.c (spu_legitimize_reload_address): New function.
8107 (spu_legitimate_address_p): Do not check displacement if the base
8108 is an eliminable stack register.
8109
8110 2011-08-16 Anatoly Sokolov <aesok@post.ru>
8111
8112 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
8113 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8114 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
8115 m32c_preferred_output_reload_class): Remove.
8116 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
8117 Change rclass argument and return types to reg_class_t. Use
8118 reg_class_subset_p instead of class_sizes.
8119 (m32c_preferred_output_reload_class): Make static. Change rclass
8120 argument and return types to reg_class_t.
8121 (TARGET_PREFERRED_RELOAD_CLASS,
8122 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8123
8124 2011-08-16 Kai Tietz <ktietz@redhat.com>
8125
8126 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
8127
8128 2011-08-16 Richard GUenther <rguenther@suse.de>
8129
8130 PR tree-optimization/50082
8131 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
8132 warnings here, instead of ...
8133 (ssa_forward_propagate_and_combine): ... here.
8134 (forward_propagate_into_comparison_1): Adjust.
8135 (forward_propagate_into_comparison): Likewise.
8136 (forward_propagate_into_gimple_cond): Likewise.
8137 (forward_propagate_into_cond): Likewise.
8138
8139 2011-08-16 Andreas Schwab <schwab@redhat.com>
8140
8141 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
8142 instead of ggc_alloc_zone_vec_rtvec_def.
8143
8144 2011-08-16 Richard Guenther <rguenther@suse.de>
8145
8146 * tree.h (ptrofftype_p): New helper function.
8147 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
8148 offset verification.
8149 (verify_gimple_assign_binary): Likewise.
8150 * tree.c (build2_stat): Likewise.
8151 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
8152 (reset_evolution_in_loop): Likewise.
8153 * tree-chrec.h (build_polynomial_chrec): Likewise.
8154
8155 2011-08-16 Liang Wang <lwang1@marvell.com>
8156
8157 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
8158 ggc_alloc_zone_vec_rtvec_def.
8159
8160 2011-08-16 Richard Guenther <rguenther@suse.de>
8161
8162 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
8163 helper factored out from ...
8164 (extract_range_from_binary_expr_1): ... here. Re-structure
8165 to not glob handling too different tree codes.
8166
8167 2011-08-15 Richard Henderson <rth@redhat.com>
8168
8169 PR middle-end/50006
8170 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
8171 setting out to include allocate_stack named pattern as well.
8172 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
8173 * stmt.c (expand_stack_restore): Likewise.
8174
8175 2011-08-15 Richard Guenther <rguenther@suse.de>
8176
8177 PR middle-end/50082
8178 * fold-const.c (maybe_canonicalize_comparison_1): Properly
8179 convert the modified operand to the other operand type.
8180 (fold_comparison): Call maybe_canonicalize_comparison_1 with
8181 useless conversions stripped from comparison operands.
8182
8183 2011-08-15 Richard Guenther <rguenther@suse.de>
8184
8185 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
8186 (extract_range_from_unary_expr_1): Restructure.
8187
8188 2011-08-15 Richard Guenther <rguenther@suse.de>
8189
8190 PR tree-optimization/50058
8191 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
8192 copy matching.
8193
8194 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8195
8196 PR target/50022
8197 * config/arm/arm.c (output_move_double): Add 2 parameters
8198 to count the number of insns emitted and whether to emit or not.
8199 Use the flag to decide when to emit and count number of instructions
8200 that will be emitted.
8201 Handle case where output_move_double might be called for calculating
8202 lengths with an invalid constant.
8203 (arm_count_output_move_double_insns): Define.
8204 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
8205 (output_move_double): Adjust prototype.
8206 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
8207 output_move_double.
8208 ("*movdi_vfp_cortexa8"): Likewise and add attribute
8209 for ce_count.
8210 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
8211 ("*movdf_soft_insn"): Likewise.
8212 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
8213 ("*cirrus_thumb2_movdi"): Likewise.
8214 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
8215 ("*cirrus_movdf_hard_insn"): Likewise.
8216 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
8217 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
8218 ("mov<mode>_internal VMMX"): Likewise.
8219 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
8220
8221 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
8222
8223 * config/i386/i386.c (ix86_expand_round_sse4): New function.
8224 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
8225 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
8226 for TARGET_ROUND.
8227
8228 (rint<mode>2): Simplify TARGET_ROUND check.
8229 (floor<mode>2): Ditto.
8230 (ceil<mode>2): Ditto.
8231 (btrunc<mode>2): Ditto.
8232
8233 2011-08-14 Anatoly Sokolov <aesok@post.ru>
8234
8235 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
8236 as mmix_preferred_output_reload_class.
8237
8238 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
8239
8240 * PR target/49903
8241 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
8242 (branch_unspec): New insn.
8243 (branch): Beauty farm.
8244 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
8245 to be IF_THEN_ELSE.
8246 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
8247 New static functions.
8248 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
8249 Use CONST_INT_P. Beauty.
8250
8251 2011-08-12 Richard Henderson <rth@redhat.com>
8252
8253 PR rtl-opt/49994
8254 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
8255 * sched-deps.c (init_deps): Clear it.
8256 (deps_analyze_insn): Consume it.
8257 (sched_analyze_insn): Fill it.
8258
8259 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8260
8261 PR target/48328
8262 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
8263 for tbh instructions.
8264
8265 2011-08-12 Diego Novillo <dnovillo@google.com>
8266
8267 * data-streamer.h (streamer_write_zero): Rename from output_zero.
8268 (streamer_write_uhwi): Rename from lto_output_uleb128.
8269 (streamer_write_hwi): Rename from output_sleb128.
8270 (streamer_write_string): Rename from lto_output_string.
8271 (streamer_string_index): Rename from lto_string_index.
8272 (streamer_write_string_with_length): Rename from
8273 lto_output_string_with_length.
8274 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
8275 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
8276 (streamer_read_string): Rename from lto_input_string.
8277 (streamer_read_indexed_string): Rename from input_string_internal.
8278 (streamer_read_uhwi): Rename from lto_input_uleb128.
8279 (streamer_read_hwi): Rename from lto_input_sleb128.
8280 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
8281 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
8282 (streamer_write_enum): Rename from lto_output_enum.
8283 (streamer_read_enum): Rename from lto_input_enum.
8284 (streamer_write_record_start): Rename from output_record_start.
8285 (streamer_read_record_start): Rename from input_record_start.
8286 (streamer_write_bitpack): Rename from lto_output_bitpack.
8287 (streamer_read_bitpack): Rename from lto_input_bitpack.
8288 (streamer_write_char_stream): Rename from lto_output_1_stream.
8289 (streamer_read_uchar): Rename from lto_input_1_unsigned.
8290 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
8291 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
8292 (streamer_read_string_cst): Rename from input_string_cst.
8293 (streamer_read_chain): Rename from lto_input_chain.
8294 (streamer_alloc_tree): Rename from lto_materialize_tree.
8295 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
8296 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
8297 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
8298 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
8299 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
8300 (streamer_write_chain): Rename from lto_output_chain.
8301 (streamer_write_tree_header): Rename from lto_output_tree_header.
8302 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
8303 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
8304 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
8305 (streamer_write_builtin): Rename from lto_output_builtin_tree.
8306 (streamer_check_handled_ts_structures): Rename from
8307 check_handled_ts_structures.
8308 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
8309 (streamer_tree_cache_insert_at): Rename from
8310 lto_streamer_cache_insert_at.
8311 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
8312 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
8313 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
8314 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
8315 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
8316 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
8317 (write_identifier): Rename from output_identifier.
8318 (write_ts_common_tree_pointers): Rename from
8319 lto_output_ts_common_tree_pointers.
8320 (write_ts_vector_tree_pointers): Rename from
8321 lto_output_ts_vector_tree_pointers.
8322 (write_ts_complex_tree_pointers): Rename from
8323 lto_output_ts_complex_tree_pointers.
8324 (write_ts_decl_minimal_tree_pointers): Rename from
8325 lto_output_ts_decl_minimal_tree_pointers.
8326 (write_ts_decl_common_tree_pointers): Rename from
8327 lto_output_ts_decl_common_tree_pointers.
8328 (write_ts_decl_non_common_tree_pointers): Rename from
8329 lto_output_ts_decl_non_common_tree_pointers.
8330 (write_ts_decl_with_vis_tree_pointers): Rename from
8331 lto_output_ts_decl_with_vis_tree_pointers.
8332 (write_ts_field_decl_tree_pointers): Rename from
8333 lto_output_ts_field_decl_tree_pointers.
8334 (write_ts_function_decl_tree_pointers): Rename from
8335 lto_output_ts_function_decl_tree_pointers.
8336 (write_ts_type_common_tree_pointers): Rename from
8337 lto_output_ts_type_common_tree_pointers.
8338 (write_ts_type_non_common_tree_pointers): Rename from
8339 lto_output_ts_type_non_common_tree_pointers.
8340 (write_ts_list_tree_pointers): Rename from
8341 lto_output_ts_list_tree_pointers.
8342 (write_ts_vec_tree_pointers): Rename from
8343 lto_output_ts_vec_tree_pointers.
8344 (write_ts_exp_tree_pointers): Rename from
8345 lto_output_ts_exp_tree_pointers.
8346 (write_ts_block_tree_pointers): Rename from
8347 lto_output_ts_block_tree_pointers.
8348 (write_ts_binfo_tree_pointers): Rename from
8349 lto_output_ts_binfo_tree_pointers.
8350 (write_ts_constructor_tree_pointers): Rename from
8351 lto_output_ts_constructor_tree_pointers.
8352 (write_ts_target_option): Rename from lto_output_ts_target_option.
8353 (write_ts_translation_unit_decl_tree_pointers): Rename from
8354 lto_output_ts_translation_unit_decl_tree_pointers.
8355 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
8356 Rename from lto_streamer_cache_add_to_node_array.
8357 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
8358 (record_common_node): Rename from lto_record_common_node.
8359
8360 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
8361 declarations.
8362 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
8363 function.
8364 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
8365 unused function.
8366 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
8367 (ipa-reference.o): Likewise.
8368 * lto-section-out.c: Include data-streamer.h.
8369 * ipa-reference.c: Include data-streamer.h.
8370
8371 2011-08-12 Nick Clifton <nickc@redhat.com>
8372
8373 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
8374 * doc/md.texi (cmpstrn): Note that the comparison stops if both
8375 fetched bytes are zero.
8376 (cmpstr): Likewise.
8377 (cmpmem): Note that the comparison does not stop if both of the
8378 fetched bytes are zero.
8379
8380 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
8381
8382 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
8383 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
8384 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
8385 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
8386 to integer_type_node.
8387 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
8388 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
8389 * builtins.c (expand_builtin_in): Ditto.
8390 (mathfn_built_in_1): Ditto.
8391 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
8392 BUILT_IN_IFLOOR.
8393 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
8394 BUILT_IN_IROUND.
8395 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
8396 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
8397 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
8398
8399 2011-08-12 Richard Guenther <rguenther@suse.de>
8400
8401 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
8402
8403 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
8404
8405 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
8406
8407 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
8408
8409 * config/arm/arm.c (get_label_padding): New function.
8410 (create_fix_barrier, arm_reorg): Use it.
8411
8412 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
8413
8414 PR target/49781
8415 * config/i386/i386.md (*lea_5_zext): New.
8416 (*lea_6_zext): Ditto.
8417 * config/i386/predicates.md (const_32bit_mask): New predicate.
8418 (lea_address_operand): Reject AND.
8419 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
8420 const_32bit_mask immediate.
8421 (ix86_print_operand_address): Handle AND.
8422 (memory_address_length): Ditto.
8423
8424 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
8425 Brian Hackett <bhackett1024@gmail.com>
8426
8427 * plugin.def: Add event for finish_decl.
8428 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
8429 * c-decl.c (finish_decl): Invoke callbacks on above event.
8430 * doc/plugins.texi: Document above event.
8431
8432 2011-08-11 Richard Guenther <rguenther@suse.de>
8433
8434 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
8435 lookups, make looking through aggregate copies stronger.
8436
8437 2011-08-11 Richard Henderson <rth@redhat.com>
8438
8439 PR bootstrap/50018
8440 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
8441
8442 2011-08-11 Richard Guenther <rguenther@suse.de>
8443
8444 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
8445 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
8446 (vrp_visit_stmt): Likewise.
8447
8448 2011-08-11 Richard Guenther <rguenther@suse.de>
8449
8450 PR middle-end/50040
8451 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
8452 load of the other piece with TREE_NO_WARNING.
8453 * tree-flow.h (warn_uninit): Adjust prototype.
8454 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
8455 the base variable and the expression that is used separately.
8456 Properly query all TREE_NO_WARNING flags.
8457 (struct walk_data): Remove.
8458 (warn_uninitialized_var): Likewise.
8459 (warn_uninitialized_vars): Do not walk gimple pieces but simply
8460 look at all SSA uses of the statement. Handle unused memory
8461 separately.
8462 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
8463
8464 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
8465
8466 * config/rx/rx.md (movsicc): Allow register to register transfers.
8467 (*movsicc): Likewise.
8468 (*stcc): Restrict this pattern to EQ and NE compares.
8469 (*stcc_reg): New pattern. Works for any comparison but only for
8470 register transfers.
8471
8472 2011-08-11 Diego Novillo <dnovillo@google.com>
8473
8474 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
8475 Call stream_write_tree instead of output_record_start.
8476 (lto_output_ts_binfo_tree_pointers): Likewise.
8477
8478 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
8479 Convert it to a macro.
8480 (stream_read_tree): Likewise.
8481
8482 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
8483 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
8484
8485 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
8486 and tree_read_bitfields.
8487 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
8488 (lto_write_tree): Call it.
8489 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
8490 * streamer-hooks.h (struct streamer_hooks): Remove fields
8491 name, is_streamable and alloc_tree. Update all users.
8492 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
8493 (lto_materialize_tree): ... here.
8494 Handle CALL_EXPR codes.
8495 Remove call to lto_streamer_cache_append.
8496 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
8497 * tree-streamer.h (tree_read_bitfields): Declare.
8498
8499 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
8500 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
8501 * tree-streamer.h (stream_read_tree): New. Replace all calls
8502 to lto_input_tree with it.
8503 (stream_write_tree): New. Replace all calls to lto_output_tree,
8504 lto_output_tree_ref and lto_output_tree_or_ref with it.
8505 * lto-streamer-in.c (lto_read_tree): Inline code from
8506 lto_streamer_read_tree.
8507 (lto_input_tree): Move from tree-streamer-in.c.
8508 * lto-streamer-out.c (lto_output_tree_ref): Make static.
8509 Remove handling of NULL values for EXPR.
8510 Do not handle EXPRs that are not indexable.
8511 (lto_write_tree): Move from tree-streamer-out.c.
8512 Inline lto_streamer_write_tree.
8513 (lto_output_tree): Move from tree-streamer-out.c.
8514 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
8515 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
8516 (lto_preload_common_nodes): Likewise.
8517 Remove assertions and adjustments for nodes
8518 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
8519 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
8520 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
8521 * lto-streamer.h (lto_input_tree): Declare.
8522 (lto_output_tree_ref): Remove.
8523 * streamer-hooks.h (struct streamer_hooks): Remove fields
8524 preload_common_nodes, indexable_with_decls_p,
8525 pack_value_fields, unpack_value_fields and output_tree_header.
8526 Update all users.
8527 * tree-streamer-in.c (lto_materialize_tree): Make extern.
8528 (lto_input_tree_pointers): Likewise.
8529 (lto_read_tree): Move to lto-streamer-in.c.
8530 (lto_input_integer_cst): Make extern.
8531 (lto_get_pickled_tree): Likewise.
8532 (lto_get_builtin_tree): Likewise.
8533 (lto_input_tree): Move to lto-streamer-in.c.
8534 * tree-streamer-out.c (pack_value_fields): Make extern.
8535 (lto_output_tree_or_ref): Remove. Replace all callers with
8536 calls to stream_write_tree.
8537 (lto_output_builtin_tree): Make extern.
8538 (lto_streamer_write_tree): Inline into lto_write_tree.
8539 (lto_output_tree_pointers): Make extern.
8540 (lto_output_tree_header): Likewise.
8541 (lto_output_integer_cst): Likewise.
8542 (lto_write_tree): Move to lto-streamer-out.c.
8543 (lto_output_tree): Likewise.
8544 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
8545 (preload_common_nodes): Likewise.
8546 (lto_streamer_cache_create): Call it.
8547 * tree-streamer.h: Include streamer-hooks.h.
8548 (stream_write_tree): New.
8549 (stream_read_tree): New.
8550 (lto_input_tree): Remove.
8551 (lto_materialize_tree): Declare.
8552 (lto_input_tree_pointers): Declare.
8553 (lto_get_pickled_tree): Declare.
8554 (lto_get_builtin_tree): Declare.
8555 (lto_input_integer_cst): Declare.
8556 (lto_output_tree_header): Declare.
8557 (pack_value_fields): Declare.
8558 (lto_output_tree_pointers): Declare.
8559 (lto_output_integer_cst): Declare.
8560 (lto_output_builtin_tree): Declare.
8561
8562 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8563
8564 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
8565 only if producer writes to the register given by regno.
8566
8567 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8568 Alexander Monakov <amonakov@ispras.ru>
8569
8570 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
8571 (sched_get_condition_with_rev_uncached): ... this. Factor out
8572 condition caching logic into ...
8573 (sched_get_condition_with_rev): ... this. Reimplement. Do not
8574 attempt to use cache for instructions with zero luid.
8575 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
8576 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
8577
8578 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8579
8580 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
8581 get_seqno_for_a_jump. Update the caller.
8582 (get_seqno_by_succs): New. Use it ...
8583 (get_seqno_for_a_jump): ... here to find a seqno if looking at
8584 predecessors was not sufficient.
8585 (get_seqno_by_preds): Include head in iteration range, exclude insn.
8586
8587 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8588
8589 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
8590
8591 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8592
8593 * sel-sched-ir.h (register_unavailable_p): Declare.
8594 * sel-sched-ir.c (register_unavailable_p): New. Use it...
8595 (set_unavailable_target_for_expr): ... here to properly test
8596 availability of a register.
8597 (speculate_expr): Ditto.
8598 * sel-sched.c (substitute_reg_in_expr): Ditto.
8599 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
8600
8601 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8602
8603 * sel-sched.c (verify_target_availability): Fix usage of
8604 hard_regno_nregs.
8605
8606 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8607
8608 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
8609 recognized by cannot_copy_insn_p hook and volatile instructions.
8610
8611 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8612
8613 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
8614
8615 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
8616
8617 * doc/md.texi (define_bypass): Say that the instruction names can
8618 be filename-style globs.
8619 * Makefile.in (FNMATCH_H): Define.
8620 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
8621 * genattrtab.c: Include fnmatch.h.
8622 (bypass_list): Change field name from "insn" to "pattern".
8623 (gen_bypass_1): Update accordingly.
8624 (process_bypasses): Use fnmatch to check for matches between
8625 insn reservations and define_bypasses.
8626 * genautomata.c: Include fnmatch.h.
8627 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
8628 and out_pattern respectively.
8629 (gen_bypass, insert_bypass): Update accordingly.
8630 (for_each_matching_insn, process_bypass_2, process_bypass_1)
8631 (process_bypass): New functions.
8632 (process_decls): Use process_bypass. Update after field name changes.
8633
8634 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
8635
8636 PR target/49687
8637 * config/avr/avr.md (smulqi3_highpart): New insn.
8638 (umulqi3_highpart): New insn.
8639 (*subqi3.ashiftrt7): New insn.
8640 (smulhi3_highpart): New expander.
8641 (umulhi3_highpart): Nex expander.
8642 (*smulhi3_highpart_call): New insn.
8643 (*umulhi3_highpart_call): New insn.
8644 (extend_u): New code attribute.
8645 (extend_prefix): Rename code attribute to extend_su.
8646 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
8647 widening QI/HI multiply.
8648
8649 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
8650
8651 PR tree-optimization/50039
8652 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
8653 that DEF_STMT has a stmt_vec_info.
8654
8655 2011-08-10 Richard Guenther <rguenther@suse.de>
8656
8657 * tree.h (can_trust_pointer_alignment): Remove.
8658 * builtins.c (can_trust_pointer_alignment): Remove.
8659
8660 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8661
8662 * c-typeck.c (scalar_to_vector): New function. Try scalar to
8663 vector conversion.
8664 (stv_conv): New enum for scalar_to_vector return type.
8665 (build_binary_op): Adjust.
8666 * doc/extend.texi: Description of scalar to vector expansion.
8667
8668 2011-08-10 Richard Guenther <rguenther@suse.de>
8669
8670 * tree.h (get_pointer_alignment): Remove max-align argument.
8671 (get_object_alignment): Likewise.
8672 * builtins.c (get_object_alignment_1): Adjust.
8673 (get_object_alignment): Remove max-align argument.
8674 (get_pointer_alignment): Likewise.
8675 (expand_builtin_strlen): Adjust.
8676 (expand_builtin_memcpy): Likewise.
8677 (expand_builtin_mempcpy_args): Likewise.
8678 (expand_builtin_strncpy): Likewise.
8679 (expand_builtin_memset_args): Likewise.
8680 (expand_builtin_memcmp): Likewise.
8681 (expand_builtin_strcmp): Likewise.
8682 (expand_builtin_strncmp): Likewise.
8683 (get_builtin_sync_mem): Likewise.
8684 (fold_builtin_memset): Likewise.
8685 (fold_builtin_memory_op): Likewise.
8686 (expand_builtin_memory_chk): Likewise.
8687 * emit-rtl.c (get_mem_align_offset): Likewise.
8688 (set_mem_attributes_minus_bitpos): Likewise.
8689 * expr.c (expand_assignment): Likewise.
8690 (expand_expr_real_1): Likewise.
8691 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
8692 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
8693 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
8694 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
8695 * value-prof.c (gimple_stringops_transform): Likewise.
8696
8697 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
8698
8699 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
8700 * doc/tm.texi: Regenerate.
8701
8702 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
8703
8704 PR target/29560
8705 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
8706 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
8707 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
8708 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
8709 shift target is unused.
8710
8711 2011-08-10 Richard Guenther <rguenther@suse.de>
8712
8713 PR tree-optimization/49937
8714 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
8715 using get_object_alignment_1.
8716
8717 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
8718
8719 * config/i386/i386.c (ix86_emit_i387_round): New function.
8720 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
8721 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
8722 Use ix86_emit_i387_round to expand round function for i387 math.
8723 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
8724 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
8725
8726 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8727
8728 * config/sync.c: Move to ../libgcc.
8729 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
8730 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
8731 Remove.
8732
8733 2011-08-09 Anatoly Sokolov <aesok@post.ru>
8734
8735 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
8736 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
8737 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
8738 Change 'from' and 'to' arguments type to reg_class_t.
8739 (TARGET_REGISTER_MOVE_COST): Define.
8740
8741 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
8742
8743 PR target/50026
8744 Revert:
8745 PR rtl-optimization/49990
8746 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
8747 ignore classes which can not change mode.
8748 (find_costs_and_classes): Ditto.
8749
8750 2011-08-09 Richard Guenther <rguenther@suse.de>
8751
8752 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
8753 information for ranges with only negative values.
8754 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
8755 BIT_AND_EXPR handling to handle ranges with negative values.
8756
8757 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
8758
8759 * config/i386/i386.c: Remove traling spaces.
8760 * config/i386/sse.md: Likewise.
8761 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
8762 (*fma_fmsub_<mode>): Likewise.
8763 (*fma_fnmadd_<mode>): Likewise.
8764 (*fma_fnmsub_<mode>): Likewise.
8765
8766 2011-08-09 Nick Clifton <nickc@redhat.com>
8767
8768 * config/rx/rx.md: Disable extender peepholes at -O3.
8769
8770 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
8771
8772 PR target/49781
8773 * config/i386/i386.md (reload_noff_load): New.
8774 (reload_noff_store): Ditto.
8775 * config/i386/i386.c (ix86_secondary_reload): Use
8776 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
8777 double-word moves from/to non-offsetable addresses instead of
8778 generating XMM temporary.
8779
8780 2011-08-09 Anatoly Sokolov <aesok@post.ru>
8781
8782 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
8783
8784 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
8785
8786 PR tree-optimization/50014
8787 * tree-vect-loop.c (vectorizable_reduction): Get def type before
8788 calling vect_get_vec_def_for_stmt_copy ().
8789
8790 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
8791
8792 PR rtl-optimization/49990
8793 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
8794 ignore classes which can not change mode.
8795 (find_costs_and_classes): Ditto.
8796
8797 2011-08-08 Richard Henderson <rth@redhat.com>
8798
8799 PR middle-end/49990
8800 * config/i386/i386.c (ix86_expand_prologue): Call
8801 for SEH target gen_prologue_use instead of gen_blockage
8802 at prologue's end.
8803
8804 2011-08-08 Martin Jambor <mjambor@suse.cz>
8805
8806 PR middle-end/49923
8807 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
8808 memory alignment.
8809
8810 2011-08-08 Diego Novillo <dnovillo@google.com>
8811
8812 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
8813 (DATA_STREAMER_H): New.
8814 (GIMPLE_STREAMER_H): New.
8815 (TREE_STREAMER_H): New.
8816 (STREAMER_HOOKS_H): New.
8817 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
8818 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
8819 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
8820 (data-streamer.o): New.
8821 (data-streamer-in.o): New.
8822 (data-streamer-out.o): New.
8823 (gimple-streamer-in.o): New.
8824 (gimple-streamer-out.o): New.
8825 (streamer-hooks.o): New.
8826 (tree-streamer.o): New.
8827 (tree-streamer-in.o): New.
8828 (tree-streamer-out.o): New.
8829 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
8830 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
8831 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8832 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
8833 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8834 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
8835 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
8836 (ipa-inline-analysis.o): Likewise.
8837 (ipa-pure-const.o): Likewise.
8838 * data-streamer-in.c: New.
8839 * data-streamer-out.c: New.
8840 * data-streamer.c: New.
8841 * data-streamer.h: New.
8842 * gimple-streamer-in.c: New.
8843 * gimple-streamer-out.c: New.
8844 * gimple-streamer.h: New.
8845 * ipa-inline-analysis.c: Include data-streamer.h.
8846 * ipa-prop.c: Include data-streamer.h.
8847 * ipa-pure-const.c: Include data-streamer.h.
8848 * lto-cgraph.c: Include data-streamer.h.
8849 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
8850 (lto_input_widest_uint_uleb128): Likewise.
8851 (lto_input_sleb128): Likewise.
8852 (bp_unpack_var_len_unsigned): Likewise.
8853 (bp_unpack_var_len_int): Likewise.
8854 * lto-section-out.c (lto_output_uleb128_stream): Move to
8855 data-streamer-out.c.
8856 (lto_output_widest_uint_uleb128_stream): Likewise.
8857 (lto_output_sleb128_stream): Likewise.
8858 (bp_pack_var_len_unsigned): Likewise.
8859 (bp_pack_var_len_int): Likewise.
8860 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
8861 (struct string_slot): Remove. Update all users.
8862 (lto_tag_check_set): Make extern.
8863 (lto_tag_check_range): Move to lto-streamer.h.
8864 (lto_tag_check): Likewise.
8865 (hash_string_slot_node): Remove. Update all users.
8866 (eq_string_slot_node): Remove. Update all users.
8867 (string_for_index): Move to data-streamer-in.c
8868 (input_string_internal): Likewise.
8869 (input_string_cst): Move to tree-streamer-in.c.
8870 (input_identifier): Likewise.
8871 (lto_input_string): Move to data-streamer-in.c
8872 (input_record_start): Move to data-streamer.h
8873 (canon_file_name): Use new definition of struct string_slot
8874 from data-streamer.h. Set S_SLOT.LEN.
8875 (lto_input_location): Make extern.
8876 (lto_input_chain): Move to tree-streamer-in.c.
8877 (lto_init_eh): Make extern.
8878 (input_phi): Move to gimple-streamer-in.c.
8879 (input_gimple_stmt): Likewise.
8880 (input_bb): Likewise.
8881 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
8882 (unpack_ts_real_cst_value_fields): Likewise.
8883 (unpack_ts_fixed_cst_value_fields): Likewise.
8884 (unpack_ts_decl_common_value_fields): Likewise.
8885 (unpack_ts_decl_wrtl_value_fields): Likewise.
8886 (unpack_ts_decl_with_vis_value_fields): Likewise.
8887 (unpack_ts_function_decl_value_fields): Likewise.
8888 (unpack_ts_type_common_value_fields): Likewise.
8889 (unpack_ts_block_value_fields): Likewise.
8890 (unpack_ts_translation_unit_decl_value_fields): Likewise.
8891 (unpack_value_fields): Likewise.
8892 (lto_materialize_tree): Likewise.
8893 (lto_input_ts_common_tree_pointers): Likewise.
8894 (lto_input_ts_vector_tree_pointers): Likewise.
8895 (lto_input_ts_complex_tree_pointers): Likewise.
8896 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
8897 (lto_input_ts_decl_common_tree_pointers): Likewise.
8898 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
8899 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
8900 (lto_input_ts_field_decl_tree_pointers): Likewise.
8901 (lto_input_ts_function_decl_tree_pointers): Likewise.
8902 (lto_input_ts_type_common_tree_pointers): Likewise.
8903 (lto_input_ts_type_non_common_tree_pointers): Likewise.
8904 (lto_input_ts_list_tree_pointers): Likewise.
8905 (lto_input_ts_vec_tree_pointers): Likewise.
8906 (lto_input_ts_exp_tree_pointers): Likewise.
8907 (lto_input_ts_block_tree_pointers): Likewise.
8908 (lto_input_ts_binfo_tree_pointers): Likewise.
8909 (lto_input_ts_constructor_tree_pointers): Likewise.
8910 (lto_input_ts_target_option): Likewise.
8911 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
8912 (lto_input_tree_pointers): Likewise.
8913 (lto_get_pickled_tree): Likewise.
8914 (lto_get_builtin_tree): Likewise.
8915 (lto_read_tree): Likewise.
8916 (lto_input_integer_cst): Likewise.
8917 (lto_input_tree): Likewise.
8918 * lto-streamer-out.c: Include data-streamer.h,
8919 gimple-streamer.h and streamer-hooks.h.
8920 (struct string_slot): Move to data-streamer.h.
8921 (hash_string_slot_node): Likewise.
8922 (eq_string_slot_node): Likewise.
8923 (lto_string_index): Move to data-streamer-out.c.
8924 (lto_output_string_with_length): Likewise.
8925 (lto_output_string): Likewise.
8926 (output_string_cst): Move to tree-streamer-out.c.
8927 (output_identifier): Likewise.
8928 (output_zero): Move to data-streamer-out.c
8929 (output_uleb128): Likewise.
8930 (output_sleb128): Likewise.
8931 (output_record_start): Move to data-streamer.h
8932 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
8933 (pack_ts_real_cst_value_fields): Likewise.
8934 (pack_ts_fixed_cst_value_fields): Likewise.
8935 (pack_ts_decl_common_value_fields): Likewise.
8936 (pack_ts_decl_wrtl_value_fields): Likewise.
8937 (pack_ts_decl_with_vis_value_fields): Likewise.
8938 (pack_ts_function_decl_value_fields): Likewise.
8939 (pack_ts_type_common_value_fields): Likewise.
8940 (pack_ts_block_value_fields): Likewise.
8941 (pack_ts_translation_unit_decl_value_fields): Likewise.
8942 (pack_value_fields): Likewise.
8943 (lto_output_chain): Likewise.
8944 (lto_output_ts_common_tree_pointers): Likewise.
8945 (lto_output_ts_vector_tree_pointers): Likewise.
8946 (lto_output_ts_complex_tree_pointers): Likewise.
8947 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
8948 (lto_output_ts_decl_common_tree_pointers): Likewise.
8949 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
8950 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
8951 (lto_output_ts_field_decl_tree_pointers): Likewise.
8952 (lto_output_ts_function_decl_tree_pointers): Likewise.
8953 (lto_output_ts_type_common_tree_pointers): Likewise.
8954 (lto_output_ts_type_non_common_tree_pointers): Likewise.
8955 (lto_output_ts_list_tree_pointers): Likewise.
8956 (lto_output_ts_vec_tree_pointers): Likewise.
8957 (lto_output_ts_exp_tree_pointers): Likewise.
8958 (lto_output_ts_block_tree_pointers): Likewise.
8959 (lto_output_ts_binfo_tree_pointers): Likewise.
8960 (lto_output_ts_constructor_tree_pointers): Likewise.
8961 (lto_output_ts_target_option): Likewise.
8962 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
8963 (lto_output_tree_pointers): Likewise.
8964 (lto_output_tree_header): Likewise.
8965 (lto_output_builtin_tree): Likewise.
8966 (lto_write_tree): Likewise.
8967 (lto_output_integer_cst): Likewise.
8968 (lto_output_tree): Likewise.
8969 (output_phi): Move to gimple-streamer-out.c.
8970 (output_gimple_stmt): Likewise.
8971 (output_bb): Likewise.
8972 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
8973 (streamer_hooks): Move to streamer-hooks.c.
8974 (check_handled_ts_structures): Move to tree-streamer.c
8975 (lto_streamer_cache_add_to_node_array): Likewise.
8976 (lto_streamer_cache_insert_1): Likewise.
8977 (lto_streamer_cache_insert): Likewise.
8978 (lto_streamer_cache_insert_at): Likewise.
8979 (lto_streamer_cache_append): Likewise.
8980 (lto_streamer_cache_lookup): Likewise.
8981 (lto_streamer_cache_get): Likewise.
8982 (lto_record_common_node): Likewise.
8983 (lto_preload_common_nodes): Likewise.
8984 (lto_streamer_cache_create): Likewise.
8985 (lto_streamer_cache_delete): Likewise.
8986 (streamer_hooks_init): Move to streamer-hooks.c.
8987 * lto-streamer.h: Include diagnostic.h
8988 (struct output_block, struct lto_input_block,
8989 struct data_in, struct bitpack_d): Remove forward declarations.
8990 (struct bitpack_d): Move to data-streamer.h.
8991 (struct lto_streamer_cache_d): Move to tree-streamer.h.
8992 (struct streamer_hooks): Move to streamer-hooks.h.
8993 (bp_pack_var_len_unsigned): Move to data-streamer.h.
8994 (bp_pack_var_len_int): Likewise.
8995 (bp_unpack_var_len_unsigned): Likewise.
8996 (bp_unpack_var_len_int): Likewise.
8997 (lto_input_location): Declare.
8998 (lto_tag_check_set): Declare.
8999 (lto_init_eh): Declare.
9000 (lto_output_tree_ref): Declare.
9001 (lto_output_location): Declare.
9002 (bitpack_create): Move to data-streamer.h.
9003 (bp_pack_value): Likewise.
9004 (lto_output_bitpack): Likewise.
9005 (lto_input_bitpack): Likewise.
9006 (bp_unpack_value): Likewise.
9007 (lto_output_1_stream): Likewise.
9008 (lto_input_1_unsigned): Likewise.
9009 (lto_output_int_in_range): Likewise.
9010 (lto_input_int_in_range): Likewise.
9011 (bp_pack_int_in_range): Likewise.
9012 (bp_unpack_int_in_range): Likewise.
9013 (lto_output_enum): Likewise.
9014 (lto_input_enum): Likewise.
9015 (bp_pack_enum): Likewise.
9016 (bp_unpack_enum): Likewise.
9017 * streamer-hooks.c: New.
9018 * streamer-hooks.h: New.
9019 * tree-streamer-in.c: New.
9020 * tree-streamer-out.c: New.
9021 * tree-streamer.c: New.
9022 * tree-streamer.h: New.
9023
9024 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9025
9026 * gthr-posix95.h: Remove.
9027 * gthr.h [_PTHREADS95]: Remove.
9028 * configure.ac (enable_threads): Remove posix95.
9029 * configure: Regenerate.
9030 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
9031
9032 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
9033
9034 PR target/49781
9035 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
9036 SImode addresses.
9037 (ix86_print_operand_address): Handle zero-extended addresses.
9038 (memory_address_length): Add length of addr32 prefix for
9039 zero-extended addresses.
9040 (ix86_secondary_reload): Handle moves to/from double-word general
9041 registers from/to zero-extended addresses.
9042 * config/i386/predicates.md (lea_address_operand): Reject
9043 zero-extended operands.
9044
9045 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
9046
9047 PR other/48007
9048 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
9049
9050 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
9051 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
9052
9053 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
9054 (_Unwind_Context_Reg_Val): Likewise.
9055 (_Unwind_Get_Unwind_Word): Likewise.
9056 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
9057 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
9058 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
9059 for EXTENDED_CONTEXT_BIT.
9060 (__frame_state_for): Likewise.
9061 (uw_init_context_1): Likewise.
9062 (_Unwind_GetGR): Updated.
9063 (_Unwind_SetGR): Likewise.
9064 (_Unwind_GetGRPtr): Likewise.
9065 (_Unwind_SetGRPtr): Likewise.
9066 (_Unwind_SetGRValue): Likewise.
9067 (_Unwind_GRByValue): Likewise.
9068 (uw_install_context_1): Likewise.
9069
9070 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
9071 ASSUME_EXTENDED_UNWIND_CONTEXT.
9072 * doc/tm.texi: Regenerated.
9073
9074 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9075
9076 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
9077
9078 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9079
9080 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
9081 Linux/GNU-specific.
9082 (DEC Alpha Options, -mtune): Likewise.
9083 (MIPS Options, -march): native is supported on IRIX.
9084
9085 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9086
9087 * config/sparc/driver-sparc.c: New file.
9088 * config/sparc/x-sparc: New file.
9089 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
9090 * config/sparc/sparc.opt (native): New value for enum processor_type.
9091 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
9092 * config/sparc/sparc.c (sparc_option_override): Abort if
9093 PROCESSOR_NATIVE gets here.
9094 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
9095 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
9096 DRIVER_SELF_SPECS): Define.
9097 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
9098 (SPARC Options, -mtune): Likewise.
9099 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
9100 Substitute result.
9101 * configure: Regenerate.
9102 * Makefile.in (EXTRA_GCC_LIBS): Set.
9103 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
9104 (cpp$(exeext)): Likewise.
9105
9106 2011-08-08 Richard Guenther <rguenther@suse.de>
9107
9108 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
9109 split out from ...
9110 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
9111 by composition.
9112
9113 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
9114
9115 PR tree-optimization/50005
9116 * ipa-inline-analysis (remap_predicate): Add cast to
9117 silence signed/unsigned comparison warning.
9118
9119 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
9120
9121 * modulo-sched.c (get_sched_window): Use a table for the debug output.
9122 Print the current ii.
9123 (sms_schedule_by_order): Reduce whitespace in dump line.
9124
9125 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
9126
9127 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
9128 and one loop for successors. Fix upper bound of memory range.
9129
9130 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9131
9132 PR target/50001
9133 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
9134 (TARGET_INSTANTIATE_DECLS): New define.
9135
9136 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
9137 Mikael Morin <mikael.morin@sfr.fr>
9138
9139 * Makefile.in (INCLUDES_FOR_TARGET): New.
9140 (LIBGCC2_CFLAGS): Use it.
9141 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
9142
9143 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9144
9145 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
9146 frame->save_regs_using_mov calculation.
9147
9148 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9149
9150 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
9151 * config/i386/sse.md (castmode): New mode attribute.
9152 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
9153 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
9154
9155 2011-08-05 Jan Hubicka <jh@suse.cz>
9156
9157 PR middle-end/49494
9158 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
9159
9160 2011-08-05 Jan Hubicka <jh@suse.cz>
9161
9162 PR middle-end/49500
9163 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
9164 handle aliases.
9165 (create_emultls_var):New function.
9166 (ipa_lower_emutls): Handle aliases correctly.
9167
9168 2011-08-05 Jan Hubicka <jh@suse.cz>
9169
9170 PR middle-end/49735
9171 * ipa-inline.c (recursive_inlining): Look through aliases.
9172
9173 2011-08-05 Jason Merrill <jason@redhat.com>
9174
9175 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
9176 declarations to beginning of function.
9177
9178 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
9179
9180 PR rtl-optimization/49900
9181 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
9182 ensure basic blocks stay in the same order.
9183
9184 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
9185
9186 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
9187 store_bit_field.
9188 (s390_expand_atomic): Same.
9189
9190 2011-08-05 Richard Henderson <rth@redhat.com>
9191
9192 PR rtl-opt/49977
9193 * dwarf2cfi.c (scan_insn_after): Split out of ...
9194 (scan_trace): ... here. Correctly place notes wrt sequences.
9195
9196 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
9197 Richard Henderson <rth@redhat.com>
9198
9199 PR rtl-opt/49982
9200 * expr.c (fixup_args_size_notes): Look through no-op moves.
9201
9202 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9203
9204 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
9205 of "m" for operand 0. Add type and mode attribute.
9206 (*pushxf_nointeger"): Use "<" constraint for operand 0.
9207 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
9208 constraint instead of "o" for opreand 1.
9209 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
9210 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
9211 operand 0, alternative 4.
9212 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
9213
9214 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9215
9216 * config/i386/predicates.md (lea_address_operand): Rename from
9217 no_seg_address_operand.
9218 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
9219 (*lea_1_zext): Ditto.
9220 (*lea_2): Ditto.
9221 (*lea_2_zext): Ditto.
9222
9223 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9224
9225 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
9226 parts.base and parts.index.
9227 * config/i386/predicates.md (aligned_operand): Ditto.
9228 (cmpxchg8b_pic_memory_operand): Ditto.
9229
9230 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9231
9232 * config/soft-fp: Move to ../libgcc.
9233 * Makefile.in (SFP_MACHINE): Remove.
9234 (libgcc-support): Remove $(SFP_MACHINE) dependency.
9235 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
9236 * config/arm/t-arm-softfp: Move to
9237 ../libgcc/config/arm/t-softfp.
9238 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
9239 * config/c6x/t-c6x-softfp: Remove.
9240 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
9241 * config/i386/t-fprules-softfp: Move to
9242 ../libgcc/config/t-softfp-tf.
9243 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
9244 * config/ia64/t-fprules-softfp: Remove.
9245 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
9246 * config/lm32/t-fprules-softfp: Remove.
9247 * config/moxie/sfp-machine.h: Remove.
9248 * config/moxie/t-moxie-softfp: Remove.
9249 * config/rs6000/darwin-ldouble-format: Move to
9250 ../libgcc/config/rs6000/ibm-ldouble-format.
9251 * config/rs6000/darwin-ldouble.c: Move to
9252 ../libgcc/config/rs6000/ibm-ldouble.c
9253 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
9254 * config/rs6000/libgcc-ppc64.ver: Likewise.
9255 * config/rs6000/sfp-machine.h: Likewise.
9256 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
9257 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
9258 (LIB2FUNCS_EXTRA): Remove.
9259 (TARGET_LIBGCC2_CFLAGS): Remove.
9260 * config/rs6000/t-aix52: Likewise
9261 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
9262 $(srcdir)/config/rs6000/darwin-ldouble.c.
9263 (SHLIB_MAPFILES): Remove.
9264 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
9265 $(srcdir)/config/rs6000/darwin-ldouble.c.
9266 * config/rs6000/t-fprules-softfp: Move to
9267 ../libgcc/config/t-softfp-sfdf.
9268 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
9269 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
9270 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
9271 $(srcdir)/config/rs6000/darwin-ldouble.c.
9272 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
9273 * config/score/t-score-softfp: Remove.
9274 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
9275 soft-fp/t-softfp from tmake_file.
9276 (arm*-*-uclinux*): Likewise.
9277 (arm*-*-ecos-elf): Likewise.
9278 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
9279 (arm*-*-rtems*): Likewise.
9280 (arm*-*-elf): Likewise.
9281 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
9282 tmake_file.
9283 (moxie-*-uclinux*): Likewise.
9284 (moxie-*-rtems*): Likewise.
9285 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
9286 tmake_file.
9287 (lm32-*-rtems*): Likewise.
9288 (lm32-*-uclinux*): Likewise.
9289 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
9290 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
9291 (powerpc-*-linux*, powerpc64-*-linux*): Remove
9292 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
9293 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
9294 tmake_file.
9295 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
9296 tmake_file.
9297 (tic6x-*-uclinux): Likewise.
9298 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
9299 soft-fp/t-softfp from tmake_file.
9300 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
9301 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
9302 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
9303 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
9304 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
9305
9306 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9307
9308 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
9309 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
9310 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
9311 TPBIT, TPBIT_FUNCS.
9312 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
9313 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
9314 Remove.
9315 * config/arm/t-vxworks: Likewise.
9316 * config/arm/t-wince-pe: Likewise.
9317 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
9318 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9319 * config/bfin/t-bfin-elf: Likewise.
9320 * config/bfin/t-bfin-linux: Likewise.
9321 * config/bfin/t-bfin-uclinux: Likewise.
9322 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
9323 Remove.
9324 * config/fr30/t-fr30: Likewise.
9325 * config/frv/t-frv: Likewise.
9326 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
9327 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9328 * config/m32c/t-m32c: Likewise.
9329 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
9330 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9331 * config/mcore/t-mcore: Likewise.
9332 * config/mep/t-mep: Likewise.
9333 * config/microblaze/t-microblaze: Likewise.
9334 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
9335 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9336 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
9337 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9338 * config/mn10300/t-linux: Remove.
9339 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9340 * config/pdp11/t-pdp11: Likewise.
9341 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
9342 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
9343 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9344 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
9345 * config/rs6000/t-aix52: Likewise.
9346 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
9347 $(srcdir)/config/rs6000/ppc64-fp.c.
9348 * config/rs6000/t-fprules-fpbit: Remove.
9349 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
9350 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9351 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
9352 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9353 * config/sparc/t-elf: Likewise.
9354 * config/sparc/t-leon: Likewise.
9355 * config/sparc/t-leon3: Likewise.
9356 * config/spu/t-spu-elf: Likewise.
9357 (DPBIT_FUNCS): Remove.
9358 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9359 * config/v850/t-v850: Likewise.
9360 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
9361 (avr-*-*): Likewise.
9362 (h8300-*-rtems*): Set libgcc_tm_file.
9363 (h8300-*-elf*): Likewise.
9364 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
9365 tmake_file.
9366 (powerpc-*-eabisim*): Likewise.
9367 (powerpc-*-elf*): Likewise.
9368 (powerpc-*-eabialtivec*): Likewise.
9369 (powerpc-xilinx-eabi*): Likewise.
9370 (powerpc-*-eabi*): Likewise.
9371 (powerpc-*-rtems*): Likewise.
9372 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
9373 (powerpcle-*-elf*): Likewise.
9374 (powerpcle-*-eabisim*): Likewise.
9375 (powerpcle-*-eabi*): Likewise.
9376 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
9377 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
9378 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
9379 Remove.
9380
9381 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9382
9383 * Makefile.in (UNWIND_H): Remove.
9384 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
9385 ../libgcc/Makefile.in.
9386 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
9387 (LIBUNWINDDEP): Remove.
9388 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
9389 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
9390 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
9391 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
9392 Don't copy $(UNWIND_H).
9393 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
9394 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
9395 * aclocal.m4: Regenerate.
9396 * configure: Regenerate.
9397 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
9398 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
9399 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
9400 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
9401 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
9402 * config/arm/libunwind.S, config/arm/pr-support.c,
9403 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
9404 ../libgcc/config/arm.
9405 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
9406 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
9407 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
9408 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
9409 ($(T)frvend$(objext)): Likewise.
9410 * config/ia64/t-glibc (LIB2ADDEH): Remove.
9411 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
9412 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
9413 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
9414 ../libgcc/config/ia64.
9415 * config/ia64/t-hpux (LIB2ADDEH): Remove.
9416 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
9417 * config/ia64/t-vms (LIB2ADDEH): Remove.
9418 * config/ia64/vms.h (UNW_IVMS_MODE,
9419 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
9420 * config/picochip/t-picochip (LIB2ADDEH): Remove.
9421 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
9422 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
9423 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
9424 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
9425 $(srcdir)/../libgcc to refer to unwinder sources.
9426 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
9427 * config/t-darwin (LIB2ADDEH): Remove.
9428 * config/t-freebsd (LIB2ADDEH): Remove.
9429 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
9430 * config/t-libunwind-elf: Move to ../libgcc/config.
9431 * config/t-linux (LIB2ADDEH): Remove.
9432 * config/t-sol2 (LIB2ADDEH): Remove.
9433 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
9434 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
9435
9436 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
9437
9438 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
9439
9440 * doc/invoke.texi: Document core-avx-i.
9441
9442 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9443
9444 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
9445
9446 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
9447
9448 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
9449 result of multiple results reduction when extracting the final
9450 value using scalar code.
9451
9452 2011-08-05 Richard Guenther <rguenther@suse.de>
9453
9454 PR tree-optimization/49984
9455 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
9456
9457 2011-08-05 Richard Guenther <rguenther@suse.de>
9458
9459 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
9460 return true for constant integer ranges.
9461 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
9462 BIT_IOR_EXPR handling.
9463
9464 2011-08-04 Kai Tietz <ktietz@redhat.com>
9465
9466 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
9467 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
9468
9469 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
9470
9471 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
9472 pattern def statement, and its access macro.
9473 (NUM_PATTERNS): Set to 5.
9474 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
9475 pattern def statement.
9476 (vect_transform_loop): Likewise.
9477 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
9478 function vect_recog_over_widening_pattern ().
9479 (vect_operation_fits_smaller_type): New function.
9480 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
9481 Likewise.
9482 (vect_pattern_recog_1): Move the code that marks pattern
9483 statements to vect_mark_pattern_stmts (), and call it. Update
9484 documentation.
9485 * tree-vect-stmts.c (vect_supportable_shift): New function.
9486 (vect_analyze_stmt): Handle pattern def statement.
9487 (new_stmt_vec_info): Initialize pattern def statement.
9488
9489 2011-08-04 Richard Henderson <rth@redhat.com>
9490
9491 PR target/49964
9492 * config/i386/i386.c (ix86_expand_call): Don't create nested
9493 PARALLELs for TARGET_VZEROUPPER.
9494 (ix86_split_call_vzeroupper): Fix extraction of the original call.
9495 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
9496 recognize nested PARALLELs.
9497 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
9498 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
9499 *sibcall_value_pop_vzeroupper): Likewise.
9500
9501 2011-08-04 Richard Henderson <rth@redhat.com>
9502
9503 PR middle-end/49968
9504 * calls.c (expand_call): Use fixup_args_size_notes for
9505 emit_stack_restore.
9506 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
9507 in non-standard modes.
9508
9509 2011-08-04 Jakub Jelinek <jakub@redhat.com>
9510
9511 * gcc.c (self_spec): New variable.
9512 (static_specs): Add self_spec.
9513 (main): Call do_self_spec on "self_spec" specs after reading
9514 user specs files. Move compare_debug handling right after that.
9515
9516 2011-08-04 Richard Guenther <rguenther@suse.de>
9517
9518 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
9519 (value_range_nonnegative_p): New function.
9520 (ssa_name_nonnegative_p): Use it.
9521 (value_range_constant_singleton): New function.
9522 (op_with_constant_singleton_value_range): Use it.
9523 (extract_range_from_binary_expr_1): New function, split out from ...
9524 (extract_range_from_binary_expr): ... this. Remove fallback
9525 constant folding done here.
9526
9527 2011-08-04 Richard Guenther <rguenther@suse.de>
9528
9529 PR tree-optimization/49806
9530 * tree-vrp.c (op_with_boolean_value_range_p): New function.
9531 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
9532 a new statement for a final conversion to bool.
9533
9534 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
9535
9536 * gengtype-state.c: Include "bconfig.h" if
9537 GENERATOR_FILE is defined, "config.h" otherwise.
9538 * gengtype.c: Likewise.
9539 * gengtype-lex.l: Likewise.
9540 * gengtype-parse.c: Likewise.
9541 * Makefile.in (gengtype-lex.o-warn): New variable.
9542 (plugin_resourcesdir): Likewise.
9543 (plugin_bindir): Likewise.
9544 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
9545 (MOSTLYCLEANFILES): Add gengtype$(exeext).
9546 (native): Depend on gengtype$(exeext) is $enable_plugin
9547 is set to "yes".
9548 (gtype.state): Depend on s-gtype. Use temporary file.
9549 (gengtype-lex.o): New rule.
9550 (gengtype-parse.o): Likewise.
9551 (gengtype-state.o): Likewise.
9552 (gengtype$(exeext)): Likewise.
9553 (install-gengtype): Likewise.
9554 (gengtype.o): Likewise.
9555 (build/gengtype.o): Depend on version.h.
9556 (build/gengtype-state): Depend on double-int.h, version.h,
9557 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
9558 (install-plugin): Depend on install-gengtype.
9559
9560 2011-08-04 Jakub Jelinek <jakub@redhat.com>
9561
9562 PR middle-end/49905
9563 * tree.h (init_attributes): New prototype.
9564 * attribs.c (init_attributes): No longer static.
9565
9566 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9567
9568 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
9569 maybe_suffix.
9570
9571 2011-08-03 David Li <davidxl@google.com>
9572
9573 * tree-optimize.c (execute_fixup_cfg): Fix up entry
9574 outgoing edge counts after inlining.
9575
9576 2011-08-03 David Li <davidxl@google.com>
9577
9578 * profile.c (compute_branch_probabilities): Compute
9579 function frequency after profile annotation.
9580
9581 2011-08-04 Alan Modra <amodra@gmail.com>
9582
9583 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
9584 use_backchain_to_restore_sp initialisation.
9585 (rs6000_legitimate_offset_address_p): Simplify offset test.
9586
9587 2011-08-03 Richard Henderson <rth@redhat.com>
9588
9589 * config/spu/spu.md: Use define_c_enum instead of define_constants.
9590 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
9591 (UNSPECV_NOP): New.
9592
9593 2011-08-03 Richard Henderson <rth@redhat.com>
9594
9595 PR target/34888
9596 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
9597
9598 2011-08-03 Jakub Jelinek <jakub@redhat.com>
9599
9600 PR tree-optimization/49948
9601 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
9602
9603 2011-08-03 Anatoly Sokolov <aesok@post.ru>
9604
9605 * config/m32c/m32c.c (class_sizes): Remove.
9606 (reduce_class): Change arguments and return type to reg_class_t.
9607 Change type cc var to HARD_REG_SET. Change type best var to
9608 reg_class_t. Change type best_size var to unsigned int. Remove
9609 initialization class_sizes var. Use reg_class_size array instead
9610 of class_sizes. Use reg_class_contents array instead
9611 of class_contents.
9612
9613 2011-08-03 Richard Guenther <rguenther@suse.de>
9614
9615 PR middle-end/49958
9616 * fold-const.c (fold_binary_loc): Only associate
9617 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
9618 overflow wraps.
9619
9620 2011-08-03 Alan Modra <amodra@gmail.com>
9621
9622 PR rtl-optimization/49941
9623 * jump.c (mark_jump_label): Comment.
9624 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
9625 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
9626 (mark_used_flags): Don't mark RETURN.
9627
9628 2011-08-03 Richard Guenther <rguenther@suse.de>
9629
9630 PR tree-optimization/49938
9631 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
9632 deal with a POLYNOMIAL_CHREC.
9633
9634 2011-08-03 Revital Eres <revital.eres@linaro.org>
9635
9636 * modulo-sched.c (calculate_stage_count,
9637 calculate_must_precede_follow, get_sched_window,
9638 try_scheduling_node_in_cycle, remove_node_from_ps): Add
9639 declaration.
9640 (update_node_sched_params, set_must_precede_follow, optimize_sc):
9641 New functions.
9642 (reset_sched_times): Call update_node_sched_params.
9643 (sms_schedule): Call optimize_sc.
9644 (get_sched_window): Change function arguments.
9645 (sms_schedule_by_order): Update call to get_sched_window.
9646 Call set_must_precede_follow.
9647 (calculate_stage_count): Add function argument.
9648
9649 2011-08-02 Richard Henderson <rth@redhat.com>
9650
9651 PR target/49864
9652 PR target/49879
9653 * reg-notes.def (REG_ARGS_SIZE): New.
9654 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
9655 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
9656 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
9657 different stack levels.
9658 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
9659 (maybe_move_args_size_note): New.
9660 (combine_stack_adjustments_for_block): Use it.
9661 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
9662 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
9663 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
9664 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
9665 (cur_cfa): New.
9666 (queued_args_size): Remove.
9667 (add_cfi_args_size): Assert size is non-negative.
9668 (stack_adjust_offset, dwarf2out_args_size): Remove.
9669 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
9670 (notice_args_size, notice_eh_throw): New.
9671 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
9672 (dwarf2out_frame_debug_adjust_cfa): Likewise.
9673 (dwarf2out_frame_debug_cfa_offset): Likewise.
9674 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
9675 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
9676 (change_cfi_row): Don't emit args_size.
9677 (maybe_record_trace_start_abnormal): Split out from ...
9678 (maybe_record_trace_start): Here. Set args_size_undefined.
9679 (create_trace_edges): Update to match.
9680 (scan_trace): Handle REG_ARGS_SIZE.
9681 (connect_traces): Connect args_size between EH insns.
9682 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
9683 * explow.c (suppress_reg_args_size): New.
9684 (adjust_stack_1): Split out from ...
9685 (adjust_stack): ... here.
9686 (anti_adjust_stack): Use it.
9687 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
9688 * expr.c (mem_autoinc_base): New.
9689 (fixup_args_size_notes): New.
9690 (emit_single_push_insn_1): Rename from emit_single_push_insn.
9691 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
9692 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
9693 * reload1.c (reload_as_needed): Likewise.
9694 * rtl.h (fixup_args_size_notes): Declare.
9695
9696 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
9697
9698 PR bootstrap/49914
9699 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
9700 of abs.
9701 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
9702 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
9703
9704 2011-08-02 Richard Henderson <rth@redhat.com>
9705
9706 * config/h8300/h8300.c (push, pop): Return the insn.
9707 (h8300_swap_into_er6): Generate correct unwind info.
9708 (h8300_swap_out_of_er6): Likewise.
9709 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
9710 complex cfa expression.
9711 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
9712
9713 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9714
9715 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
9716
9717 2011-08-02 Richard Henderson <rth@redhat.com>
9718
9719 PR target/49878
9720 * config/h8300/h8300.c (h8300_move_ok): New.
9721 * config/h8300/h8300-protos.h: Declare it.
9722 * config/h8300/h8300.md (P): New mode iterator.
9723 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
9724 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
9725 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
9726 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
9727 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
9728 and pushqi1_h8300hs_normal; use PRE_MODIFY and
9729 register_no_sp_elim_operand.
9730 (*pushhi1_h8300hs_<P>): Similarly.
9731 (pushqi1, pushhi1, pushhi1_h8300): Remove.
9732 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
9733
9734 2011-08-02 Richard Henderson <rth@redhat.com>
9735
9736 PR target/49881
9737 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
9738
9739 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9740
9741 * c-parser.c (enum c_parser_prec): New enum, moved from within
9742 c_parser_binary_expression.
9743 (c_parser_binary_expression): Add PREC argument. Stop parsing
9744 if operator has lower or equal precedence than PREC.
9745 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
9746 callers.
9747 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
9748 Adjust c_finish_omp_atomic caller.
9749 (c_parser_omp_taskyield): New function.
9750 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
9751 (c_parser_omp_clause_name): Handle final and mergeable clauses.
9752 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
9753 functions.
9754 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
9755 and PRAGMA_OMP_CLAUSE_MERGEABLE.
9756 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
9757 (c_parser_omp_clause_reduction): Handle min and max.
9758 * c-typeck.c (c_finish_omp_clauses): Don't complain about
9759 const qualified predetermined vars in firstprivate clause.
9760 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9761 Handle MIN_EXPR and MAX_EXPR.
9762 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
9763 and OMP_CLAUSE_MERGEABLE.
9764 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
9765 and OMP_ATOMIC_CAPTURE_NEW.
9766 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
9767 OMP_CLAUSE_MERGEABLE.
9768 (omp_clause_code_name): Likewise.
9769 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9770 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
9771 and OMP_CLAUSE_MERGEABLE.
9772 (OMP_CLAUSE_FINAL_EXPR): Define.
9773 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
9774 OMP_CLAUSE_MERGEABLE.
9775 (expand_task_call): Likewise.
9776 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
9777 (expand_omp_atomic_fetch_op): Handle cases where old or new
9778 value is needed afterwards.
9779 (expand_omp_atomic): Call expand_omp_atomic_load resp.
9780 expand_omp_atomic_store.
9781 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
9782 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
9783 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
9784 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9785 * tree-nested.c (convert_nonlocal_omp_clauses,
9786 convert_local_omp_clauses): Likewise.
9787 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
9788 OMP_ATOMIC_CAPTURE_NEW): New.
9789 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
9790 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
9791 New inlines.
9792 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
9793 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
9794 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9795
9796 2011-08-02 Kai Tietz <ktietz@redhat.com>
9797
9798 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
9799 boolean-type.
9800 (ssa_forward_propagate_and_combine): Interprete result of
9801 forward_propagate_comparison.
9802 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
9803 boolean-typed operands for comparisons.
9804
9805 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
9806
9807 * config/avr/libgcc.S: Gather related function in the
9808 same input section.
9809 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
9810 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
9811 references.
9812 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
9813 __udivmodsi4, __divmodsi4, __prologue_saves__,
9814 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
9815 __do_copy_data, __do_clear_bss, __do_global_ctors,
9816 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
9817
9818 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
9819
9820 PR target/47766
9821 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
9822 (stack_protect_test): The pattern compares ptr_mode value.
9823
9824 2011-08-02 Alan Modra <amodra@gmail.com>
9825
9826 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
9827 note for save_LR_around_toc_setup sequence.
9828
9829 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9830
9831 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
9832
9833 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
9834 Joseph Myers <joseph@codesourcery.com>
9835
9836 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
9837 * hwint.c: Include diagnostic-core.h.
9838 (abs_hwi): New.
9839 (gcd): Moved here...
9840 (pos_mul_hwi): New.
9841 (mul_hwi): New.
9842 (least_common_multiple): Moved here...
9843 * hwint.h (gcd): ... from here.
9844 (least_common_multiple): ... from here.
9845 (HOST_WIDE_INT_MIN): New.
9846 (HOST_WIDE_INT_MAX): New.
9847 (abs_hwi): Declared.
9848 (gcd): Declared.
9849 (pos_mul_hwi): Declared.
9850 (mul_hwi): Declared.
9851 (least_common_multiple): Declared.
9852 * omega.c (check_pos_mul): Removed.
9853 (check_mul): Removed.
9854 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
9855 mul_hwi instead of check_mul.
9856
9857 2011-08-01 Richard Henderson <rth@redhat.com>
9858
9859 PR target/49881
9860 * config/avr/avr.h (PUSH_ROUNDING): New.
9861 * config/avr/avr.md (pushqi1): Rename from *pushqi.
9862 (*pushhi, *pushsi, *pushsf): Remove.
9863 (MPUSH): New mode iterator.
9864 (push<MPUSH>1): New expander.
9865
9866 2011-08-01 Anatoly Sokolov <aesok@post.ru>
9867
9868 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
9869 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9870 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
9871 mmix_preferred_output_reload_class): Remove.
9872 * config/mmix/mmix.c (mmix_preferred_reload_class,
9873 mmix_preferred_output_reload_class): Make static. Change rclass
9874 argument and return type to reg_class_t.
9875 (TARGET_PREFERRED_RELOAD_CLASS,
9876 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9877
9878 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
9879
9880 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
9881 handling.
9882
9883 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9884
9885 PR target/47766
9886 * config/i386/i386.md (PTR): New.
9887 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
9888 (stack_protect_test): Likewise.
9889 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
9890 (stack_tls_protect_set_<mode>): Likewise.
9891 (stack_tls_protect_test_<mode>): Likewise.
9892
9893 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
9894
9895 PR target/49927
9896 * config/i386/i386.c (ix86_address_subreg_operand): New.
9897 (ix86_decompose_address): Use ix86_address_subreg_operand.
9898 (ix86_legitimate_address_p): Do not assert that subregs satisfy
9899 register_no_elim_operand in DImode.
9900
9901 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
9902
9903 PR tree-optimization/49926
9904 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
9905 in a chain doesn't have uses both inside and outside the loop.
9906
9907 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
9908
9909 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
9910 * config/avr/avr-devices.c (avr_mcu_types): Use it.
9911 * config/avr/avr-mcus.def (AVR_MCU): Use it.
9912 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
9913 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
9914 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
9915 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
9916 to detect if XJMP must not be skipped.
9917
9918 2011-08-02 Alan Modra <amodra@gmail.com>
9919
9920 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
9921 Delete.
9922 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
9923 (rs6000_emit_prologue): Don't prematurely return when
9924 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
9925 save_toc_in_prologue case.
9926 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
9927 calls_alloca.
9928
9929 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
9930
9931 * config/avr/avr-devices.c: Delete SVN property svn:executable.
9932 * config/avr/predicates.md: Ditto.
9933 * config/avr/driver-avr.c: Ditto.
9934 * config/avr/genopt.sh: Set SVN property svn:executable to *.
9935
9936 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9937
9938 * calls.c (emit_library_call_value_1): Declare size only if
9939 BLOCK_REG_PADDING is defined.
9940
9941 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
9942
9943 PR target/49547
9944 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
9945 (x86_64-*-*): Likewise.
9946 * config/i386/i386.opt (mlzcnt): New.
9947 * config/i386/abmintrin.h: File removed.
9948 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
9949 * config/i386/lzcntintrin.h: ... here. New file.
9950 (__lzcnt): Rename to ...
9951 (__lzcnt32): ... this.
9952 * config/i386/bmiintrin.h (head): Update copyright year.
9953 (__lzcnt_u16): Removed.
9954 (__lzcnt_u32): Likewise.
9955 (__lzcnt_u64): Likewise.
9956 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
9957 is defined, remove abmintrin.h.
9958 * config/i386/cpuid.h (bit_LZCNT): New.
9959 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9960 LZCNT feature.
9961 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9962 __LZCNT__ if needed.
9963 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
9964 (ix86_option_override_internal): Handle LZCNT option.
9965 (ix86_valid_target_attribute_inner_p): Likewise.
9966 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
9967 * config/i386/i386.h (TARGET_LZCNT): New.
9968 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
9969 * config/i386/i386.md (clz<mode>2): Update insn constraint.
9970 (clz<mode>2_lzcnt): Likewise.
9971 * doc/invoke.texi: Mention -mlzcnt option.
9972 * doc/extend.texi: Likewise.
9973
9974 2011-08-01 Julian Brown <julian@codesourcery.com>
9975
9976 * configure.ac (fixed-point): Add ARM support.
9977 * configure: Regenerate.
9978 * config/arm/arm.c (arm_fixed_mode_set): New struct.
9979 (arm_set_fixed_optab_libfunc): New.
9980 (arm_set_fixed_conv_libfunc): New.
9981 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
9982 ARM-specific names.
9983 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
9984 return values in SImode.
9985 (arm_return_in_msb): Return fixed-point types in the msb.
9986 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
9987 upwards.
9988 (arm_scalar_mode_supported_p): Support fixed-point modes.
9989 (arm_vector_mode_supported_p): Support vector fixed-point modes.
9990 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
9991 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
9992 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
9993 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
9994 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
9995 New mode iterators.
9996 (qaddsub_suf): New mode attribute.
9997 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
9998 vector modes.
9999 * config/arm/predicates.md (sat_shift_operator): New predicate.
10000 * config/arm/arm-fixed.md: New.
10001 * config/arm/arm.md: Include arm-fixed.md.
10002 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
10003
10004 2011-08-01 Julian Brown <julian@codesourcery.com>
10005
10006 * calls.c (emit_library_call_value_1): Support padding for libcall
10007 arguments and return values.
10008 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
10009 downwards in big-endian mode.
10010
10011 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10012
10013 PR debug/49887
10014 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
10015 * config/sol2-protos.h: Likewise.
10016 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
10017 solaris_code_end.
10018 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
10019 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
10020 solaris_file_end.
10021 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
10022
10023 2011-08-01 Julian Brown <julian@codesourcery.com>
10024
10025 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
10026
10027 2011-08-01 Julian Brown <julian@codesourcery.com>
10028
10029 * final.c (output_addr_const): Print fixed-point constants as
10030 decimal not hex.
10031
10032 2011-08-01 Richard Guenther <rguenther@suse.de>
10033
10034 * stor-layout.c (initialize_sizetypes): Properly sign-extend
10035 bitsiztype TYPE_MAX_VALUE.
10036
10037 2011-08-01 Julian Brown <julian@codesourcery.com>
10038
10039 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
10040 comparison helpers.
10041
10042 2011-07-31 Richard Henderson <rth@redhat.com>
10043
10044 * config/h8300/crti.asm: Add flags to .section directive.
10045 * config/h8300/crtn.asm: Likewise.
10046
10047 2011-07-31 Richard Henderson <rth@redhat.com>
10048
10049 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
10050 * tree.c (build_common_tree_nodes): Likewise.
10051
10052 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10053
10054 PR target/49880
10055 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
10056 (divsi3_i1): Likewise.
10057
10058 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10059
10060 PR tree-optimization/49749
10061 * tree-ssa-reassoc.c (get_rank): New forward declaration.
10062 (PHI_LOOP_BIAS): New macro.
10063 (phi_rank): New function.
10064 (loop_carried_phi): Likewise.
10065 (propagate_rank): Likewise.
10066 (get_rank): Add calls to phi_rank and propagate_rank.
10067
10068 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
10069
10070 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
10071 of TARGET_64BIT.
10072 (PTRDIFF_TYPE): Likewise.
10073
10074 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
10075
10076 PR target/49920
10077 * config/i386/i386.md (strset): Do not expand strset_singleop
10078 when %eax or $edi are fixed.
10079 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
10080 (*strsetsi_1): Ditto.
10081 (*strsethi_1): Ditto.
10082 (*strsetqi_1): Ditto.
10083 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
10084 (*rep_stossi): Ditto.
10085 (*rep_stosqi): Ditto.
10086 (*strlenqi_1): Ditto.
10087 (cmpstrnsi): Also fail when %ecx is fixed.
10088 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
10089 (*cmpstrnqi_1): Ditto.
10090 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
10091 (*strmovsi_1): Ditto.
10092 (*strmovhi_1): Ditto.
10093 (*strmovqi_1): Ditto.
10094 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
10095 (*rep_movsi): Ditto.
10096 (*rep_movqi): Ditto.
10097
10098 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
10099
10100 PR target/47908
10101 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
10102 Disable instruction scheduling for non-ColdFire targets.
10103 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10104
10105 2011-07-31 Revital Eres <revital.eres@linaro.org>
10106
10107 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
10108 of anti-dep edge from a branch.
10109 (add_cross_iteration_register_deps): Create anti-dep edge from
10110 a branch.
10111
10112 2011-07-31 Revital Eres <revital.eres@linaro.org>
10113
10114 * modulo-sched.c: Change comment.
10115 (reset_sched_times): Fix print message.
10116 (print_partial_schedule): Add print info.
10117
10118 2011-07-31 Tom de Vries <tom@codesourcery.com>
10119
10120 PR middle-end/43513
10121 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
10122 get_object_alignment and TYPE_ALIGN.
10123
10124 2011-07-30 Tom de Vries <tom@codesourcery.com>
10125
10126 PR middle-end/43513
10127 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
10128 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
10129
10130 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10131
10132 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
10133 <sys/sbd.h>.
10134 (cpu_types): New array.
10135 (cputype): New function.
10136 (host_detect_local_cpu): Only define buf, f if !__sgi__.
10137 Use scaninvent instead of /proc/cpuinfo if __sgi__.
10138 * config.host: Also use driver-native.o, mips/x-native on
10139 mips-sgi-irix*.
10140 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
10141 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
10142 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
10143
10144 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10145
10146 PR middle-end/49897
10147 PR middle-end/49898
10148 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
10149 in nested parallel and outer is a gimple_reg, mark it as addressable
10150 and set its bit in task_shared_vars bitmap too.
10151
10152 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
10153
10154 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
10155
10156 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10157
10158 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
10159 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
10160 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
10161 AMASK_LOCKPFTCHOK): Define.
10162 (host_detect_local_cpu): Remove buf, f, cpu_names.
10163 Define cpu_types, implver, amask.
10164 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
10165 native CPU.
10166 * config.host: Also use driver-alpha.o, alpha/x-alpha on
10167 alpha*-dec-osf*.
10168 * config/alpha/osf5.h [__alpha__ || __alpha]
10169 (host_detect_local_cpu): Declare.
10170 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
10171 (DRIVER_SELF_SPECS): Define.
10172
10173 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
10174
10175 PR target/47715
10176 * config/i386/i386.md (*load_tp_x32): New.
10177 (*load_tp_x32_zext): Ditto.
10178 (*add_tp_x32): Ditto.
10179 (*add_tp_x32_zext): Ditto.
10180 (*load_tp_<mode>): Disable for TARGET_X32 targets.
10181 (*add_tp_<mode>): Ditto.
10182 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
10183 ptr_mode and convert to Pmode if needed.
10184
10185 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
10186
10187 PR target/49687
10188 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
10189 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
10190 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
10191 Add X to register footprint: Clobber r26/r27.
10192
10193 2011-07-29 Richard Guenther <rguenther@suse.de>
10194
10195 * builtins.c (fold_builtin_signbit): Build the comparison
10196 with a proper type.
10197
10198 2011-07-29 Richard Guenther <rguenther@suse.de>
10199
10200 PR tree-optimization/49893
10201 * tree-predcom.c (suitable_reference_p): Volatile references
10202 are not suitable.
10203
10204 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
10205
10206 PR target/49313
10207 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
10208 (__ctzsi2): Result for 0 may be undefined.
10209 (__ctzhi2): Result for 0 may be undefined.
10210 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
10211 (__popcountsi2): Ditto. And don't clobber r26.
10212 (__popcountdi2): Ditto. And don't clobber r27.
10213 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
10214 (parityhi2): New expand.
10215 (paritysi2): New expand.
10216 (popcounthi2): New expand.
10217 (popcountsi2): New expand.
10218 (clzhi2): New expand.
10219 (clzsi2): New expand.
10220 (ctzhi2): New expand.
10221 (ctzsi2): New expand.
10222 (ffshi2): New expand.
10223 (ffssi2): New expand.
10224 (copysignsf3): New insn.
10225 (bswapsi2): New expand.
10226 (*parityhi2.libgcc): New insn.
10227 (*parityqihi2.libgcc): New insn.
10228 (*paritysihi2.libgcc): New insn.
10229 (*popcounthi2.libgcc): New insn.
10230 (*popcountsi2.libgcc): New insn.
10231 (*popcountqi2.libgcc): New insn.
10232 (*popcountqihi2.libgcc): New insn-and-split.
10233 (*clzhi2.libgcc): New insn.
10234 (*clzsihi2.libgcc): New insn.
10235 (*ctzhi2.libgcc): New insn.
10236 (*ctzsihi2.libgcc): New insn.
10237 (*ffshi2.libgcc): New insn.
10238 (*ffssihi2.libgcc): New insn.
10239 (*bswapsi2.libgcc): New insn.
10240
10241 2011-07-29 Richard Guenther <rguenther@suse.de>
10242
10243 * tree-vrp.c (get_value_range): Only set parameter default
10244 definitions to varying, leave others at undefined.
10245 (extract_range_from_binary_expr): Fix undefined handling.
10246 (vrp_visit_phi_node): Handle merged undefined state.
10247
10248 2011-07-29 Wei Guozhi <carrot@google.com>
10249
10250 PR rtl-optimization/49799
10251 * combine.c (make_compound_operation): Check if the bit field is valid
10252 before change it to bit field extraction.
10253
10254 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
10255
10256 PR rtl-optimization/49891
10257 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
10258 newly created returnjumps.
10259
10260 2011-07-28 DJ Delorie <dj@redhat.com>
10261
10262 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
10263 local frame in a naked function, and produce a suitable error for
10264 that specific case.
10265
10266 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
10267 registers to be reloaded in HI classes when the target is HI.
10268
10269 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10270
10271 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
10272 bound_one, bound_two.
10273
10274 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10275
10276 PR middle-end/48648
10277 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
10278 CLAST assignments.
10279 (translate_clast): Same.
10280 (translate_clast_assignment): New.
10281
10282 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10283
10284 PR tree-optimization/49876
10285 * sese.c (rename_uses): Do not return false on gloog_error: set
10286 the new_expr to integer_zero_node and continue code generation.
10287 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
10288
10289 2011-07-28 Jakub Jelinek <jakub@redhat.com>
10290
10291 PR debug/49846
10292 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
10293 arguments also check if they aren't initialized with a MODE_INT
10294 mode of the same size.
10295
10296 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
10297
10298 * expr.c (get_bit_range): Handle *MEM_REF's.
10299
10300 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
10301
10302 * rtlanal.c (tablejump_p): False for returns.
10303 * reorg.c (first_active_target_insn): New static function.
10304 (find_end_label): Set JUMP_LABEL for a new returnjump.
10305 (optimize_skip, get_jump_flags, rare_destination,
10306 mostly_true_jump, get_branch_condition,
10307 steal_delay_list_from_target, own_thread_p,
10308 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
10309 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
10310 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
10311 * jump.c (delete_related_insns): Likewise.
10312 (jump_to_label_p): New function.
10313 (redirect_target): New static function.
10314 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
10315 (redirect_jump_1): Assert that the new label is nonnull.
10316 (redirect_jump): Likewise.
10317 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
10318 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
10319 exit block.
10320 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
10321 changed. Ensure that the right label is passed to redirect_jump.
10322 * function.c (emit_return_into_block,
10323 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
10324 ret_rtx in their JUMP_LABEL.
10325 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
10326 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
10327 pass ret_rtx as label.
10328 * cfglayout.c (fixup_reorder_chain): Use
10329 force_nonfallthru_and_redirect rather than force_nonfallthru.
10330 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
10331 * rtl.h (ANY_RETURN_P): New macro.
10332 (jump_to_label_p): Declare.
10333 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
10334 JUMP_LABELs.
10335 (mark_target_live_regs): Likewise.
10336 * basic-block.h (force_nonfallthru_and_redirect): Declare.
10337 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
10338 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
10339 alpha_tablejump_best_label): Remove functions.
10340 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
10341 alpha_tablejump_best_label): Remove declarations.
10342 * config/sh/sh.c (barrier_align, split_branches): Adjust for
10343 ret_rtx in JUMP_LABELs.
10344 * config/arm/arm.c (is_jump_table): Likewise.
10345
10346 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10347
10348 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
10349 special predicate. Remove explicit mode checks.
10350
10351 2011-07-28 Jakub Jelinek <jakub@redhat.com>
10352
10353 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
10354 DW_AT_data_member_location containing just DW_OP_plus_uconst.
10355
10356 PR debug/49871
10357 * dwarf2out.c (size_of_die, value_format, output_die): Use
10358 DW_FORM_udata instead of DW_FORM_data[48] for
10359 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
10360
10361 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10362
10363 * config/i386/i386.md (*tls_global_dynamic_64): Update
10364 length attribute.
10365
10366 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10367
10368 PR target/47715
10369 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
10370 tls_symbolic_operand check. Update code sequence for TARGET_X32.
10371 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
10372 (tls_dynamic_gnu2_64): Ditto.
10373 (*tls_dynamic_gnu2_lea_64): Ditto.
10374 (*tls_dynamic_gnu2_call_64): Ditto.
10375 (*tls_dynamic_gnu2_combine_64): Ditto.
10376
10377 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10378
10379 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
10380
10381 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10382
10383 PR target/47364
10384 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
10385
10386 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10387
10388 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
10389 before the core constraints. Adjust attributes.
10390 ("*thumb2_movdf_vfp"): Likewise.
10391
10392 2011-07-28 Kai Tietz <ktietz@redhat.com>
10393
10394 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
10395 (simplify_truth_ops_using_ranges): Likewise.
10396 (build_assert_expr_for): Likewise.
10397 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
10398 and handle BIT_NOT_EXPR for truth-operation.
10399
10400 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
10401
10402 PR target/49313
10403 Undo r176835 from trunk
10404 2011-07-27 Georg-Johann Lay
10405
10406 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
10407
10408 PR target/49687
10409 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
10410 Add _muluhisi3, _mulshisi3, _usmulhisi3.
10411 * config/avr/libgcc.S (__mulsi3): Rewrite.
10412 (__mulhisi3): Rewrite.
10413 (__umulhisi3): Rewrite.
10414 (__usmulhisi3): New.
10415 (__muluhisi3): New.
10416 (__mulshisi3): New.
10417 (__mulohisi3): New.
10418 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
10419 declare.
10420 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
10421 (pseudo_register_or_const_int_operand): New.
10422 (combine_pseudo_register_operand): New.
10423 (u16_operand): New.
10424 (s16_operand): New.
10425 (o16_operand): New.
10426 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
10427 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
10428 (any_extend, any_extend2): New code iterators.
10429 (extend_prefix): New code attribute.
10430 (mulsi3): Rewrite. Turn insn to expander.
10431 (mulhisi3): Ditto.
10432 (umulhisi3): Ditto.
10433 (usmulhisi3): New expander.
10434 (*mulsi3): New insn-and-split.
10435 (mulu<mode>si3): New insn-and-split.
10436 (muls<mode>si3): New insn-and-split.
10437 (mulohisi3): New insn-and-split.
10438 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
10439 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
10440 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
10441 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
10442 insn-and-split.
10443 (*mulsi3_call): Rewrite.
10444 (*mulhisi3_call): Rewrite.
10445 (*umulhisi3_call): Rewrite.
10446 (*usmulhisi3_call): New insn.
10447 (*muluhisi3_call): New insn.
10448 (*mulshisi3_call): New insn.
10449 (*mulohisi3_call): New insn.
10450 (extendqihi2): Use combine_pseudo_register_operand as predicate
10451 for operand 1.
10452 (extendqisi2): Ditto.
10453 (zero_extendqihi2): Ditto.
10454 (zero_extendqisi2): Ditto.
10455 (zero_extendhisi2): Ditto.
10456 (extendhisi2): Ditto. Don't early-clobber operand 0.
10457
10458 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10459
10460 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
10461
10462 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10463
10464 PR tree-optimization/49471
10465 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
10466 iv only when the largest type is unsigned. Do not call
10467 lang_hooks.types.type_for_size.
10468
10469 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10470
10471 PR middle-end/45450
10472 * graphite-poly.c (apply_poly_transforms): Disable legality check
10473 after an openscop read.
10474
10475 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10476
10477 PR middle-end/47691
10478 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
10479 copy_bb_and_scalar_dependences.
10480 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
10481 (graphite_copy_stmts_from_block): Update call to rename_uses.
10482 (copy_bb_and_scalar_dependences): Update call to
10483 graphite_copy_stmts_from_block.
10484 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10485
10486 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
10487
10488 PR target/49313
10489 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
10490 (__ctzsi2): Result for 0 may be undefined.
10491 (__ctzhi2): Result for 0 may be undefined.
10492 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
10493 (__popcountsi2): Ditto. And don't clobber r26.
10494 (__popcountdi2): Ditto. And don't clobber r27.
10495 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
10496 (parityhi2): New expand.
10497 (paritysi2): New expand.
10498 (popcounthi2): New expand.
10499 (popcountsi2): New expand.
10500 (clzhi2): New expand.
10501 (clzsi2): New expand.
10502 (ctzhi2): New expand.
10503 (ctzsi2): New expand.
10504 (ffshi2): New expand.
10505 (ffssi2): New expand.
10506 (copysignsf3): New insn.
10507 (bswapsi2): New expand.
10508 (*parityhi2.libgcc): New insn.
10509 (*parityqihi2.libgcc): New insn.
10510 (*paritysihi2.libgcc): New insn.
10511 (*popcounthi2.libgcc): New insn.
10512 (*popcountsi2.libgcc): New insn.
10513 (*popcountqi2.libgcc): New insn.
10514 (*popcountqihi2.libgcc): New insn-and-split.
10515 (*clzhi2.libgcc): New insn.
10516 (*clzsihi2.libgcc): New insn.
10517 (*ctzhi2.libgcc): New insn.
10518 (*ctzsihi2.libgcc): New insn.
10519 (*ffshi2.libgcc): New insn.
10520 (*ffssihi2.libgcc): New insn.
10521 (*bswapsi2.libgcc): New insn.
10522
10523 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
10524
10525 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
10526 the mode of symbolic_opreand RTXes.
10527
10528 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
10529
10530 * config/i386/predicates.md (x86_64_movabs_operand): Return false
10531 for pic_32bit_operand RTXes.
10532 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
10533 in DImode.
10534
10535 2011-07-27 Kai Tietz <ktietz@redhat.com>
10536
10537 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
10538 for 32-bit, too.
10539 (ix86_handle_abi_attribute): Allow function attributes
10540 ms_abi/sysv_abi in 32-bit mode, too.
10541 * doc/extend.texi: Adjust attribute documentation.
10542
10543 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
10544 expression handling.
10545 (and_var_with_comparison_1): Likewise.
10546
10547 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
10548
10549 * params.h (ALLOW_STORE_DATA_RACES): New.
10550 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
10551 * Makefile.in (expr.o): Depend on PARAMS_H.
10552 * machmode.h (get_best_mode): Add argument.
10553 * fold-const.c (optimize_bit_field_compare): Add argument to
10554 get_best_mode.
10555 (fold_truthop): Same.
10556 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
10557 * expr.c (emit_group_store): Same.
10558 (copy_blkmode_from_reg): Same.
10559 (write_complex_part): Same.
10560 (optimize_bitfield_assignment_op): Add argument.
10561 Add argument to get_best_mode.
10562 (get_bit_range): New.
10563 (expand_assignment): Calculate maxbits and pass it down accordingly.
10564 (store_field): New argument.
10565 (expand_expr_real_2): New argument to store_field. Include params.h.
10566 * expr.h (store_bit_field): New argument.
10567 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
10568 into account maxbits.
10569 * calls.c (store_unaligned_arguments_into_pseudos): New argument
10570 to store_bit_field.
10571 * expmed.c (store_bit_field_1): New argument. Use it.
10572 (store_bit_field): Same.
10573 (store_fixed_bit_field): Same.
10574 (store_split_bit_field): Same.
10575 (extract_bit_field_1): Pass new argument to get_best_mode.
10576 (extract_bit_field): Same.
10577 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
10578 * doc/invoke.texi: Document parameter allow-store-data-races.
10579
10580 2011-07-27 Jakub Jelinek <jakub@redhat.com>
10581
10582 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
10583
10584 2011-07-27 Kai Tietz <ktietz@redhat.com>
10585
10586 * tree-vrp.c (extract_range_from_binary_expr): Remove
10587 TRUTH-binary cases and add new bitwise-cases.
10588 (extract_range_from_assignment): Likewise.
10589 (register_edge_assert_for_1): Likeiwise.
10590 (register_edge_assert_for): Likewise.
10591 (simplify_truth_ops_using_ranges): Likewise.
10592 (simplify_stmt_using_ranges): Likewise.
10593
10594 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
10595
10596 PR target/47372
10597 * config/i386/i386.c (ix86_delegitimize_address): Call
10598 simplify_gen_subreg for PIC with mode of x only if modes of
10599 x and orig_x are different.
10600
10601 2011-07-26 Jakub Jelinek <jakub@redhat.com>
10602
10603 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
10604 to GC allocated copy of the string.
10605 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
10606 before .debug_line, not after it.
10607
10608 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10609
10610 PR middle-end/47046
10611 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
10612 evolution_function_is_affine_p on CHREC_RIGHT.
10613
10614 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10615
10616 * tree-data-ref.c (max_stmt_executions_tree): Do not call
10617 lang_hooks.types.type_for_size.
10618
10619 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10620
10621 PR middle-end/47653
10622 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
10623 loops using wrapping semantics.
10624
10625 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10626
10627 PR middle-end/48805
10628 * tree-scalar-evolution.c (instantiate_scev_r): Return
10629 chrec_dont_know for ADDR_EXPR.
10630
10631 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10632 H.J. Lu <hongjiu.lu@intel.com>
10633
10634 PR target/47369
10635 PR target/49853
10636 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
10637 if legitimize_tls_address returned operand in wrong mode. Allow
10638 SImode and DImode symbolic operand for PIC. Call convert_to_mode
10639 if legitimize_pic_address returned operand in wrong mode.
10640
10641 2011-07-26 Martin Jambor <mjambor@suse.cz>
10642
10643 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
10644 return false for invariants.
10645
10646 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10647
10648 * config/i386/i386.md (add->lea splitter): Implement using SWI
10649 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
10650 (add->lea zext splitter): Change operand 2 predicate to
10651 x86_64_nonmemory_operand.
10652
10653 2011-07-26 Richard Guenther <rguenther@suse.de>
10654
10655 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
10656 frequency makes everything hot.
10657
10658 2011-07-26 Richard Guenther <rguenther@suse.de>
10659
10660 PR tree-optimization/49840
10661 * tree-vrp.c (range_fits_type_p): Properly handle full
10662 double-int precision.
10663
10664 2011-07-26 Martin Jambor <mjambor@suse.cz>
10665
10666 PR bootstrap/49786
10667 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
10668 counts.
10669 (update_specialized_profile): Likewise.
10670
10671 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10672 H.J. Lu <hongjiu.lu@intel.com>
10673
10674 PR target/47381
10675 PR target/49832
10676 PR target/49833
10677 * config/i386/i386.md (i): Change SImode attribute to "e".
10678 (g): Change SImode attribute to "rme".
10679 (di): Change SImode attribute to "nF".
10680 (general_operand): Change SImode attribute to x86_64_general_operand.
10681 (general_szext_operand): Change SImode attribute to
10682 x86_64_szext_general_operand.
10683 (immediate_operand): Change SImode attribute to
10684 x86_64_immediate_operand.
10685 (nonmemory_operand): Change SImode attribute to
10686 x86_64_nonmemory_operand.
10687 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
10688 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
10689 (*lea_1): Use SWI48 mode iterator.
10690 (*lea_1_zext): New insn pattern.
10691 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
10692 (*bt<mode>): Ditto.
10693 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
10694 Update operand constraints.
10695 (addsi_1_zext): Ditto.
10696 (*add<mode>2): Ditto.
10697 (*addsi_3_zext): Ditto.
10698 (*subsi_1_zext): Ditto.
10699 (*subsi_2_zext): Ditto.
10700 (*subsi_3_zext): Ditto.
10701 (*addsi3_carry_zext): Ditto.
10702 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
10703 (*mulsi3_1_zext): Ditto.
10704 (*andsi_1): Ditto.
10705 (*andsi_1_zext): Ditto.
10706 (*andsi_2_zext): Ditto.
10707 (*<any_or:code>si_1_zext): Ditto.
10708 (*<any_or:code>si_2_zext): Ditto.
10709 (*test<mode>_1): Use <general_operand> predicate for operand 1.
10710 (*and<mode>_2): Ditto.
10711 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
10712 (add->lea splitter): Check operand modes in insn constraint. Extend
10713 operands less than SImode wide to SImode.
10714 (add->lea zext splitter): Do not extend input operands to DImode.
10715 (*lea_general_1): Handle only QImode and HImode operands.
10716 (*lea_general_2): Ditto.
10717 (*lea_general_3): Ditto.
10718 (*lea_general_1_zext): Remove.
10719 (*lea_general_2_zext): Ditto.
10720 (*lea_general_3_zext): Ditto.
10721 (*lea_general_4): Check operand modes in insn constraint. Extend
10722 operands less than SImode wide to SImode.
10723 (ashift->lea splitter): Ditto.
10724 * config/i386/i386.c (ix86_print_operand_address): Print address
10725 registers with 'q' modifier on 64bit targets.
10726 * config/i386/predicates.md (pic_32bit_opreand): Define as special
10727 predicate. Reject non-SI and non-DI modes.
10728
10729 2011-07-25 Andrew Pinski <apinski@cavium.com>
10730
10731 PR tree-opt/49671
10732 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
10733 TREE_THIS_NOTRAP into the inner most MEM_REF.
10734 Always copy TREE_THIS_VOLATILE.
10735 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
10736 arguments are not volatile references.
10737
10738 2011-07-25 Richard Henderson <rth@redhat.com>
10739
10740 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
10741 * final.c (final_scan_insn): Don't test for it.
10742 (rest_of_clean_state): Likewise.
10743
10744 2011-07-25 Richard Henderson <rth@redhat.com>
10745
10746 PR debug/49841
10747 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
10748 (emit_frame_save): Likewise.
10749 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
10750 insn onto a dummy blockage insn after the join label.
10751
10752 2011-07-25 Richard Henderson <rth@redhat.com>
10753
10754 * dwarf2cfi.c (dw_trace_info): Add ID member.
10755 (get_trace_index): Remove. Change users to use ID member.
10756 (before_next_cfi_note): New.
10757 (connect_traces): Remove unreachable traces before the main loop.
10758 Look across one trace and generate remember/restore_state if needed.
10759
10760 2011-07-25 Richard Henderson <rth@redhat.com>
10761
10762 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
10763
10764 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
10765
10766 * genattr.c (write_upcase, gen_attr <enum definition writing>):
10767 Move to ...
10768 * genattr-common.c ... here.
10769 (main): Call gen_attr.
10770 * optc-gen.awk: Make generated program include insn-attr-common.h .
10771 * Makefile.in (oprions.o): Depend on insn-attr-common.h
10772
10773 2011-07-25 Anatoly Sokolov <aesok@post.ru>
10774
10775 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10776 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
10777 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
10778 m32c_print_operand, m32c_print_operand_address): Remove.
10779 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
10780 Change return type to bool. Change argument type to bool.
10781 (m32c_print_operand, m32c_print_operand_address): Make static.
10782 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
10783 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10784
10785 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10786
10787 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
10788 attributes): Document mmap.
10789
10790 2011-07-25 Anatoly Sokolov <aesok@post.ru>
10791
10792 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10793 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
10794 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
10795 mmix_print_operand, mmix_print_operand_address): Remove.
10796 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
10797 Change return type to bool. Change argument type to bool.
10798 (mmix_print_operand, mmix_print_operand_address): Make static.
10799 (mmix_intval, mmix_output_condition): Change 'x' argument type
10800 to const_rtx.
10801 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
10802 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10803
10804 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
10805
10806 PR target/39386
10807 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
10808 shift counter for x << x and x >> x shifts.
10809
10810 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10811
10812 PR target/47124
10813 * config.gcc: Reject *-*-solaris2 configuration.
10814
10815 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
10816
10817 PR tree-optimization/49809
10818 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
10819 gimple_get_lhs instead of gimple_assign_lhs.
10820
10821 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10822
10823 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
10824
10825 2011-07-25 Richard Guenther <rguenther@suse.de>
10826
10827 PR tree-optimization/49822
10828 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
10829 more. Make sure to preserve stmts with side-effects. Properly
10830 handle virtual defs, follow a longer def chain.
10831
10832 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
10833
10834 PR plugins/45348
10835 PR plugins/48425
10836 PR plugins/46577
10837 * Makefile.in: Do not flatten c-family directory when installing
10838 plugin headers.
10839
10840 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
10841
10842 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
10843 original nodes if we are dealing with virtual clones.
10844
10845 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
10846
10847 * common/config/c6x/c6x-common.c: New file.
10848
10849 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
10850
10851 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
10852
10853 2011-07-25 Richard Guenther <rguenther@suse.de>
10854
10855 PR tree-optimization/49715
10856 * tree-vrp.c: Include expr.h and optabs.h.
10857 (range_fits_type_): New function.
10858 (simplify_float_conversion_using_ranges): Likewise.
10859 (simplify_stmt_using_ranges): Call it.
10860 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
10861 * optabs.c (can_float_p): Export.
10862 * optabs.h (can_float_p): Declare.
10863
10864 2011-07-25 Richard Guenther <rguenther@suse.de>
10865
10866 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
10867 (get_value_range): For out-of-range SSA names or names created
10868 after propagation return a read-only varying range.
10869 (dump_all_value_ranges): Adjust.
10870 (vrp_initialize): Likewise.
10871 (vrp_finalize): Likewise.
10872
10873 2011-07-24 Richard Henderson <rth@redhat.com>
10874
10875 PR debug/49831
10876 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
10877 them entirely.
10878
10879 2011-07-24 Richard Henderson <rth@redhat.com>
10880
10881 PR debug/49825
10882 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
10883 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
10884
10885 2011-07-24 Richard Henderson <rth@redhat.com>
10886
10887 PR debug/49827
10888 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
10889
10890 2011-07-24 Richard Henderson <rth@redhat.com>
10891
10892 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
10893 Zero args_size for abnormal edges. Adjust all callers.
10894
10895 2011-07-24 Richard Henderson <rth@redhat.com>
10896
10897 PR debug/49825
10898 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
10899
10900 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
10901
10902 PR bootstrap/49835
10903 * collect2.c (demangle_flag): Removed.
10904
10905 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
10906
10907 * configure.ac (demangler_in_ld): Default to yes.
10908 * configure: Regenerated.
10909 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
10910 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
10911 --no-demangle options straight through to ld. When
10912 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
10913 way that has the intended effect on Windows.
10914
10915 2011-07-23 Richard Henderson <rth@redhat.com>
10916
10917 * dwarf2cfi.c: Include basic-block.h.
10918 (dw_label_info): Remove.
10919 (trace_work_list, trace_index): New.
10920 (remember_row, emit_cfa_remember): Remove.
10921 (dw_trace_info_hash, dw_trace_info_eq): New.
10922 (get_trace_index, get_trace_info): New.
10923 (save_point_p): New.
10924 (free_cfi_row): Remove.
10925 (add_cfi): Do not emit DW_CFA_remember_state.
10926 (cfa_row_equal_p): New.
10927 (barrier_args_size): Remove.
10928 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
10929 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
10930 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
10931 (dwarf2out_cfi_begin_epilogue): Remove.
10932 (dwarf2out_frame_debug_restore_state): Remove.
10933 (connect_traces, create_pseudo_cfg): New.
10934 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
10935 * Makefile.in (dwarf2cfi.o): Update.
10936
10937 2011-07-23 Richard Henderson <rth@redhat.com>
10938
10939 * dwarf2cfi.c (dw_trace_info): New.
10940 (dw_label_info): New.
10941 (cie_return_save): New.
10942 (cur_trace): New.
10943 (queued_args_size): Rename from args_size. Update all users.
10944 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
10945 (def_cfa_1): Use cur_trace instead of cfa_*.
10946 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
10947 (clobbers_queued_reg_save, reg_saved_in): Likewise.
10948 (dwarf2out_frame_debug_expr): Likewise.
10949 (create_cie_data): Split out from ...
10950 (execute_dwarf2_frame): ... here. Initialize cur_trace.
10951
10952 2011-07-23 Richard Henderson <rth@redhat.com>
10953
10954 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
10955 Update all users to match.
10956 (execute_dwarf2_frame): Free reg_saved_in_data.
10957
10958 2011-07-23 Richard Henderson <rth@redhat.com>
10959
10960 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
10961 (queued_reg_saves): Don't GTY. Change to a VEC.
10962 (queue_reg_save): Update to match.
10963 (dwarf2out_flush_queued_reg_saves): Likewise.
10964 (clobbers_queued_reg_save): Likewise.
10965 (reg_saved_in): Likewise.
10966 (execute_dwarf2_frame): Free queued_reg_saves.
10967
10968 2011-07-23 Richard Henderson <rth@redhat.com>
10969
10970 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
10971
10972 2011-07-23 Richard Henderson <rth@redhat.com>
10973
10974 * dwarf2cfi.c (add_cfi_args_size): Split out from...
10975 (dwarf2out_args_size): ... here.
10976 (add_cfi_restore): Split out from ...
10977 (dwarf2out_frame_debug_cfa_restore): ... here.
10978 (def_cfa_0): Split out from ...
10979 (def_cfa_1): ... here.
10980 (cfi_oprnd_equal_p, cfi_equal_p): New.
10981 (change_cfi_row): New.
10982 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
10983 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
10984 (output_cfis): Remove.
10985 * dwarf2out.c (output_fde): Simplify output_cfi loop.
10986 (dwarf2out_switch_text_section): Don't call output_cfis.
10987 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
10988 * dwarf2out.h: Update decls.
10989 (enum dw_val_class): Add dw_val_class_none.
10990
10991 2011-07-23 Richard Henderson <rth@redhat.com>
10992
10993 * dwarf2cfi.c (update_row_reg_save): New.
10994 (dwarf2out_frame_debug_cfa_expression): Use it.
10995 (dwarf2out_frame_debug_cfa_restore): Likewise.
10996 (reg_save): Likewise. Do not emit DW_CFA_same_value.
10997
10998 2011-07-23 Richard Henderson <rth@redhat.com>
10999
11000 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
11001
11002 2011-07-23 Richard Henderson <rth@redhat.com>
11003
11004 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
11005 (cie_cfi_row): New.
11006 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
11007 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
11008 (cur_row, remember_row): New.
11009 (def_cfa_1): Use cur_row instead of the old_* variables.
11010 (dwarf2out_frame_debug_restore_state): Similarly.
11011 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
11012 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
11013 (dwarf2out_frame_debug_adjust_cfa): Likewise.
11014 (dwarf2out_frame_debug_cfa_offset): Likewise.
11015 (dwarf2out_frame_debug_expr): Likewise.
11016 (execute_dwarf2_frame): Set up cur_row.
11017 * dwarf2out.h (struct cfa_loc): Mark for GTY.
11018
11019 2011-07-23 Richard Henderson <rth@redhat.com>
11020
11021 * basic-block.h (EDGE_PRESERVE): New.
11022 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
11023 * bb-reorder.c: Include except.h.
11024 (fix_up_crossing_landing_pad): New.
11025 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
11026 landing pads in the right partition. Duplicate as necessary.
11027 (partition_hot_cold_basic_blocks): Fix up DF info after
11028 duplicating landing pads.
11029 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
11030 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
11031 is set properly. Validate that EH edges are not CROSSING.
11032 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
11033 (dw2_build_landing_pads): ... here.
11034 (convert_to_eh_region_ranges): Remove code to fixup crossing
11035 landing pads.
11036 * except.h (expand_dw2_landing_pad_for_region): Declare.
11037 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
11038
11039 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
11040
11041 PR target/49816
11042 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
11043
11044 2011-07-22 Jason Merrill <jason@redhat.com>
11045
11046 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
11047
11048 2011-07-22 Richard Henderson <rth@redhat.com>
11049
11050 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
11051
11052 2011-07-22 Richard Henderson <rth@redhat.com>
11053
11054 * jump.c (maybe_propagate_label_ref): Split out of...
11055 (mark_all_labels): ... here. Do not attempt label_ref
11056 propagation while in cfglayout mode.
11057
11058 2011-07-22 Jakub Jelinek <jakub@redhat.com>
11059
11060 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
11061 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
11062 (dwarf_attr_name): Handle DW_AT_GNU_macros.
11063 (dwarf2out_define): If the vector is empty and
11064 lineno is 0, emit a dummy entry first.
11065 (dwarf2out_undef): Likewise. Remove redundant semicolon.
11066 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
11067 optimize_macinfo_range): New functions.
11068 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
11069 mergeable, optimize longer strings using
11070 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
11071 optimize longer sequences of define/undef ops from headers
11072 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
11073 emit a section headers.
11074 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
11075 and macinfo_section_label to DEBUG_MACRO_SECTION
11076 resp. DEBUG_MACRO_SECTION_LABEL.
11077 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
11078 instead of DW_AT_macro_info.
11079
11080 PR other/32998
11081 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
11082 options.
11083 * dwarf2out.c: Include opts.h.
11084 (dchar_p): New typedef. Define heap VEC for it.
11085 (producer_string): New variable.
11086 (gen_producer_string): New function.
11087 (gen_compile_unit_die): Use it.
11088 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
11089 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
11090 * doc/invoke.texi: Document -grecord-gcc-switches and
11091 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
11092 to -frecord-gcc-switches description.
11093
11094 2011-07-22 Jason Merrill <jason@redhat.com>
11095
11096 PR c++/30112
11097 * c-decl.c (c_linkage_bindings): Define.
11098
11099 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
11100
11101 PR debug/49815
11102 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
11103
11104 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
11105
11106 * config/i386/i386.c (ix86_option_override_internal): Disallow
11107 MS ABI in x32 mode.
11108 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
11109 only for TARGET_LP64.
11110 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
11111
11112 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11113
11114 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
11115 avoid warnings when GCC is built with a C++ compiler.
11116
11117 2011-07-22 Martin Jambor <mjambor@suse.cz>
11118
11119 PR lto/49796
11120 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
11121 if decl node is in another partition, call cgraph_get_node only once.
11122
11123 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
11124
11125 * config.gcc (x86_64-*-linux*): Set
11126 default_gnu_indirect_function to yes.
11127
11128 2011-07-22 Richard Guenther <rguenther@suse.de>
11129
11130 PR tree-optimization/45819
11131 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
11132 preserve volatile and notrap flags.
11133
11134 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11135 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11136
11137 PR bootstrap/49794
11138 * configure.ac: Test AM_ICONV with CXX.
11139 * configure: Regenerate.
11140 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
11141
11142 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11143
11144 PR bootstrap/49797
11145 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
11146 (set_cloog_options): Use it.
11147
11148 2011-07-22 Jakub Jelinek <jakub@redhat.com>
11149
11150 PR c++/49756
11151 * gcc.c (main): Call stack_limit_increase (64MB).
11152 * toplev.c (toplev_main): Likewise.
11153
11154 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11155
11156 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
11157 instead of force_reg.
11158
11159 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11160
11161 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
11162 needed and use force_reg after convert.
11163 (ix86_expand_call): Likewise.
11164 (ix86_expand_special_args_builtin): Likewise.
11165 (ix86_expand_builtin): Likewise.
11166
11167 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11168
11169 PR middle-end/47654
11170 PR middle-end/49649
11171 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
11172 in parameter. Initialize v1 and v2 based on the values returned
11173 by clast_name_to_lb_ub.
11174 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
11175 values.
11176 (type_for_clast_bin): Same.
11177 (type_for_clast_expr): Same.
11178 (type_for_clast_eq): Update calls to type_for_clast_expr.
11179 (type_for_clast_for): Same.
11180 (build_iv_mapping): Same.
11181 * graphite-ppl.h (value_min): New.
11182
11183 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11184
11185 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
11186 types whenever possible.
11187
11188 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11189
11190 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
11191 and ub fields.
11192 (new_clast_name_index): Add lb and ub parameters.
11193 (free_clast_name_index): New.
11194 (clast_name_to_lb_ub): New.
11195 (save_clast_name_index): Add lb and ub parameters.
11196 (compute_bounds_for_param): New.
11197 (type_for_level): Removed.
11198 (type_for_clast_for): Removed level parameter. Do not call
11199 type_for_level.
11200 (graphite_create_new_loop): Store the lb and ub for the clast_name
11201 of the iterator of the loop that has been generated.
11202 (graphite_create_new_loop_guard): Remove parameter level.
11203 (create_params_index): Store the lb and ub of each parameter.
11204 (gloog): Use free_clast_name_index. Pass to create_params_index
11205 the current scop.
11206
11207 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11208
11209 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
11210 (max_precision_type): Inline max_signed_precision_type.
11211 (type_for_clast_red): Use max_precision_type.
11212 (type_for_clast_bin): Same.
11213 (type_for_clast_for): Same.
11214
11215 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11216
11217 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
11218 type_for_interval.
11219 (gcc_type_for_value): Renamed type_for_value.
11220 (gcc_type_for_clast_term): Renamed type_for_clast_term.
11221 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
11222 (gcc_type_for_clast_red): Renamed type_for_clast_red.
11223 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
11224 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
11225 (graphite_translate_clast_equation): Update calls.
11226 (compute_type_for_level): Renamed type_for_level.
11227 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
11228 (build_iv_mapping): Update calls.
11229 (graphite_create_new_loop_guard): Same.
11230
11231 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11232
11233 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
11234 comment.
11235
11236 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11237
11238 * graphite-clast-to-gimple.c (struct ivs_params): New.
11239 (clast_name_to_gcc): Use ivs_params to pass around parameters.
11240 (clast_to_gcc_expression): Same.
11241 (clast_to_gcc_expression_red): Same.
11242 (gcc_type_for_clast_term): Same.
11243 (gcc_type_for_clast_expr): Same.
11244 (gcc_type_for_clast_red): Same.
11245 (gcc_type_for_clast_bin): Same.
11246 (gcc_type_for_clast_eq): Same.
11247 (graphite_translate_clast_equation): Same.
11248 (graphite_create_guard_cond_expr): Same.
11249 (graphite_create_new_guard): Same.
11250 (graphite_create_new_loop): Same.
11251 (build_iv_mapping): Same.
11252 (translate_clast_user): Same.
11253 (graphite_create_new_loop_guard): Same.
11254 (translate_clast): Same.
11255 (translate_clast_for_loop): Same.
11256 (translate_clast_for): Same.
11257 (translate_clast_guard): Same.
11258 (initialize_cloog_names): Fix typo.
11259 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
11260
11261 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11262
11263 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
11264 (new_clast_name_index): Add level parameter.
11265 (clast_name_to_level): New.
11266 (save_clast_name_index): Add level parameter.
11267 (newivs_to_depth_to_newiv): Removed.
11268 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
11269 (graphite_create_new_loop): Add level parameter. Pass level to
11270 save_clast_name_index.
11271 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
11272 (create_params_index): Pass level to save_clast_name_index.
11273
11274 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11275
11276 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
11277 recompute type, lb, and ub. Get them from...
11278 (graphite_create_new_loop_guard): ...here. Pass in parameter
11279 pointers to type, lb, and ub.
11280 (translate_clast_for_loop): Update function calls.
11281 (translate_clast_for): Same.
11282
11283 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11284
11285 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
11286 psct_dynamic_dim.
11287 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
11288 (gcc_type_for_iv_of_clast_loop): Update use of level.
11289 (gloog): Start counting nesting level from 0.
11290 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
11291 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
11292 psct_dynamic_dim on level.
11293
11294 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11295
11296 * config/i386/i386.c (ix86_legitimize_address): Convert to
11297 Pmode if needed.
11298
11299 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11300
11301 * config/i386/i386.c (function_value_64): Always return pointers
11302 in Pmode.
11303 (ix86_promote_function_mode): New.
11304 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
11305
11306 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11307
11308 PR tree-optimization/49749
11309 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
11310 remove no-longer-used maxrank variable.
11311
11312 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
11313
11314 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
11315
11316 2011-07-21 Jason Merrill <jason@redhat.com>
11317
11318 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
11319 * recog.h (struct insn_data_d): Check it instead of
11320 HAVE_DESIGNATED_INITIALIZERS.
11321 * genoutput.c (output_insn_data): Likewise.
11322
11323 2011-07-21 Richard Guenther <rguenther@suse.de>
11324
11325 PR tree-optimization/49770
11326 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
11327 valueized any operand. Renamed from ...
11328 (valueize_refs): ... this. New wrapper around valueize_refs_1.
11329 (valueize_shared_reference_ops_from_ref): Return whether we
11330 valueized any operand.
11331 (vn_reference_lookup): Only when we valueized any operand
11332 use the valueized reference for alias analysis. Do not preserve
11333 the original reference tree in this case.
11334
11335 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
11336
11337 * config/i386/i386.c (ix86_decompose_address): Reject all but
11338 register operands and subregs of DImode hard registers in index.
11339
11340 2011-07-21 Kai Tietz <ktietz@redhat.com>
11341
11342 * fold-const.c (fold_unary_loc): Preserve indirect
11343 comparison cast to none-boolean type.
11344 * tree-ssa.c (useless_type_conversion_p): Preserve cast
11345 from/to boolean-type.
11346 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
11347 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
11348 * tree-cfg.c (verify_gimple_comparison): Check result
11349 type of comparison expression.
11350 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
11351 of condition result and disallow type-cast sinking into comparison.
11352
11353 2011-07-21 Richard Guenther <rguenther@suse.de>
11354
11355 * tree-ssa-forwprop.c (combine_conversions): Return whether
11356 we have to run cfg-cleanup. Properly remove dead stmts.
11357 (ssa_forward_propagate_and_combine): Adjust.
11358
11359 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
11360
11361 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
11362
11363 2011-07-21 Kai Tietz <ktietz@redhat.com>
11364
11365 * tree-ssa-propagate.c (substitute_and_fold): Use
11366 do_dce flag to deside, if BB's statements are scanned
11367 in last to first, or first to last order.
11368
11369 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
11370
11371 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
11372
11373 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
11374 Uros Bizjak <ubizjak@gmail.com>
11375 Richard Henderson <rth@redhat.com>
11376
11377 * config/i386/constraints.md (w): New.
11378
11379 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
11380 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
11381
11382 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
11383 instead of TARGET_64BIT.
11384
11385 * config/i386/i386.md (indirect_jump): Replace
11386 nonimmediate_operand with indirect_branch_operand.
11387 (*indirect_jump): Likewise. Replace constraint "m" with "w".
11388 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
11389 Convert operand 0 to Pmode for x32 if not PIC.
11390 (*tablejump_1): Replace nonimmediate_operand with
11391 indirect_branch_operand. Replace constraint "m" with "w".
11392 (*call_vzeroupper): Replace constraint "m" with "w".
11393 (*call): Likewise.
11394 (*call_rex64_ms_sysv_vzeroupper): Likewise.
11395 (*call_rex64_ms_sysv): Likewise.
11396 (*call_value_vzeroupper): Likewise.
11397 (*call_value): Likewise.
11398 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
11399 (*call_value_rex64_ms_sysv): Likewise.
11400 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
11401
11402 * config/i386/predicates.md (indirect_branch_operand): New.
11403 (call_insn_operand): Support x32.
11404
11405 2011-07-20 Michael Eager <eager@eagercon.com>
11406
11407 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
11408
11409 2011-07-20 Richard Henderson <rth@redhat.com>
11410
11411 * cfg.c (dump_bb_info): Dump basic_block->flags.
11412 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
11413
11414 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
11415
11416 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11417 of DImode hard registers in index.
11418 (ix86_legitimate_address_p): Allow subregs of base and index to span
11419 more than a word. Assert that subregs of base and index satisfy
11420 register_no_elim_operand predicates. Reject addresses where
11421 base and index have different modes.
11422
11423 2011-07-20 Robert Millan <rmh@gnu.org>
11424
11425 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
11426
11427 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11428
11429 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
11430 removing now-unnecessary assignment.
11431
11432 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11433
11434 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
11435 memory address space to the type's address space.
11436
11437 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
11438
11439 PR target/36467
11440 PR target/49687
11441 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
11442 and expand appropriately if there is a CONST_INT in operand2.
11443 (usmulqihi3): New insn.
11444 (*sumulqihi3): New insn.
11445 (*osmulqihi3): New insn.
11446 (*oumulqihi3): New insn.
11447 (*muluqihi3.uconst): New insn_and_split.
11448 (*muluqihi3.sconst): New insn_and_split.
11449 (*mulsqihi3.sconst): New insn_and_split.
11450 (*mulsqihi3.uconst): New insn_and_split.
11451 (*mulsqihi3.oconst): New insn_and_split.
11452 (*ashifthi3.signx.const): New insn_and_split.
11453 (*ashifthi3.signx.const7): New insn_and_split.
11454 (*ashifthi3.zerox.const): New insn_and_split.
11455 (mulsqihi3): New insn.
11456 (muluqihi3): New insn.
11457 (muloqihi3): New insn.
11458 * config/avr/predicates.md (const_2_to_7_operand): New.
11459 (const_2_to_6_operand): New.
11460 (u8_operand): New.
11461 (s8_operand): New.
11462 (o8_operand): New.
11463 (s9_operand): New.
11464 (register_or_s9_operand): New.
11465
11466 2011-07-20 Kai Tietz <ktietz@redhat.com>
11467
11468 * builtins.c (fold_builtin_expect): See through the cast
11469 from truthvalue_type_node to long.
11470
11471 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11472
11473 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
11474 where we can use them from the standard and altivec instruction
11475 sets, instead of always using the 3 operand VSX forms that require
11476 the destination to overlap one of the inputs.
11477 (vsx_fms*): Ditto.
11478 (vsx_fnma*): Ditto.
11479 (vsx_fnms*): Ditto.
11480
11481 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
11482 for DF types.
11483 (fmsdf4_fpr): Ditto.
11484 (nfmadf4_fpr): Ditto.
11485 (nfmsdf4_fpr): Ditto.
11486
11487 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
11488
11489 * genrecog.c (make_insn_sequence): Correct position numbering
11490 when filtering out match_scratch and match_dup.
11491
11492 2011-07-20 Richard Guenther <rguenther@suse.de>
11493
11494 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
11495 against already removed statements.
11496 (forward_propagate_into_comparison): Remove dead defining stmts.
11497 (forward_propagate_into_gimple_cond): Likewise.
11498 (forward_propagate_into_cond): Simplify.
11499 (ssa_forward_propagate_and_combine): Handle changed cfg from
11500 forward_propagate_into_comparison.
11501 * tree-ssa-phiopt.c (conditional_replacement): Use proper
11502 locations for newly built statements.
11503
11504 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
11505
11506 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
11507
11508 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11509
11510 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
11511 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
11512
11513 2011-07-20 Richard Guenther <rguenther@suse.de>
11514
11515 PR middle-end/18908
11516 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
11517 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
11518 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
11519
11520 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
11521
11522 * config/frv/frv.c (frv_register_move_cost): Define explicitly
11523 costs for subclasses of GR_REGS.
11524
11525 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
11526
11527 PR target/49780
11528 * config/i386/predicates.md (no_seg_addres_operand): No more special.
11529 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11530 of DImode hard registers in base.
11531 (ix86_legitimate_address_p): Allow SImode and DImode base and index
11532 registers.
11533
11534 2011-07-20 Richard Guenther <rguenther@suse.de>
11535
11536 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
11537 (unify_nodes): Deal with that.
11538 (solve_graph): Likewise.
11539
11540 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
11541
11542 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
11543 canonicalize left operand from ZERO_EXTEND to AND.
11544
11545 2011-07-20 Anatoly Sokolov <aesok@post.ru>
11546
11547 * target.def (class_max_nregs): New hook.
11548 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
11549 * doc/tm.texi: Regenerate.
11550 * targhooks.c (default_class_max_nregs): New function.
11551 * targhooks.h (default_class_max_nregs): Declare.
11552 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
11553 x_ira_reg_class_min_nregs arrays to unsigned char.
11554 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
11555 hook instead of CLASS_MAX_NREGS macro.
11556 * reginfo.c (restore_register_info): Ditto.
11557 * ira-conflicts.c (process_regs_for_copy): Use
11558 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
11559 Change type rclass and aclass vars to reg_class_t.
11560 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
11561 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
11562 reg_class_t.
11563 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
11564 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
11565
11566 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
11567 * config/i386/i386.c (ix86_class_max_nregs): New function.
11568 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
11569 instead of CLASS_MAX_NREGS macro.
11570 (TARGET_CLASS_MAX_NREGS): Define.
11571 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
11572 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
11573 * config/avr/avr.c (class_max_nregs): Remove function.
11574 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
11575 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
11576 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
11577 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
11578 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
11579 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
11580 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
11581 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
11582 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
11583 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
11584 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
11585 * config/score/score.h (CLASS_MAX_NREGS): Remove.
11586 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
11587 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
11588 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
11589
11590 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
11591
11592 * cif-code.def (OVERWRITABLE): Fix typo and move around.
11593 (TARGET_OPTIMIZATION_MISMATCH): Delete.
11594 (EH_PERSONALITY): Fix typo.
11595 (NON_CALL_EXCEPTIONS): Fix message.
11596 (OPTIMIZATION_MISMATCH): Adjust message.
11597 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
11598
11599 2011-07-19 Ian Lance Taylor <iant@google.com>
11600
11601 * doc/install.texi (Configuration): Document
11602 --enable-build-poststage1-with-cxx.
11603
11604 2011-07-19 Robert Millan <rmh@gnu.org>
11605
11606 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
11607 (GLIBC_DYNAMIC_LINKER): Remove.
11608
11609 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
11610 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
11611 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
11612 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
11613 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
11614 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
11615
11616 * config/mips/linux.h: Remove everything except for ...
11617 (GLIBC_DYNAMIC_LINKER): ... this macro.
11618
11619 * config/mips/linux64.h: Remove everything except for ...
11620 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
11621 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
11622 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
11623 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
11624 (GNU_USER_LINK_EMULATIONN32): New macros.
11625
11626 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
11627 Use the new headers.
11628
11629 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11630
11631 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
11632 Add offset_known_p and size_known_p fields.
11633 (MEM_OFFSET_KNOWN_P): Update accordingly.
11634 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
11635 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
11636 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
11637 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
11638 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
11639 (init_emit_regs): Likewise.
11640
11641 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11642
11643 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
11644 (MEM_OFFSET): Change from returning an rtx to returning a
11645 HOST_WIDE_INT.
11646 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
11647 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
11648 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
11649 (clear_mem_offset): Declare.
11650 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
11651 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
11652 MEM_OFFSET to get a HOST_WIDE_INT offset.
11653 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
11654 (adjust_offset_for_component_ref): Take a bool "known_p"
11655 parameter and a HOST_WIDE_INT "offset" parameter.
11656 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
11657 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
11658 than an rtx. Use clear_mem_offset to clear the offset.
11659 * cfgcleanup.c (merge_memattrs): Likewise.
11660 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
11661 * function.c (assign_parm_find_stack_rtl): Likewise.
11662 (assign_parm_setup_stack): Likewise.
11663 * print-rtl.c (print_rtx): Likewise.
11664 * reload.c (find_reloads_subreg_address): Likewise.
11665 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
11666 * var-tracking.c (INT_MEM_OFFSET): Likewise.
11667 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11668 (get_mem_align_offset): Likewise.
11669 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
11670 (clear_mem_offset): New function.
11671 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
11672 offset rather than an rtx. Assume both the expressio and offset
11673 are available.
11674 (r10k_needs_protection_p_1): Update accordingly, checking the
11675 expression and offset availability here instead.
11676
11677 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11678
11679 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
11680 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
11681 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
11682 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
11683 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
11684 (clear_mem_size): Declare.
11685 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
11686 (clear_mem_size): New function.
11687 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
11688 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
11689 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
11690 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
11691 to clear the size.
11692 (nonoverlapping_memrefs_p): Likewise.
11693 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
11694 (expand_builtin_init_trampoline): Likewise.
11695 * calls.c (compute_argument_addresses): Likewise.
11696 * cfgcleanup.c (merge_memattrs): Likewise.
11697 * dce.c (find_call_stack_args): Likewise.
11698 * dse.c (record_store, scan_insn): Likewise.
11699 * dwarf2out.c (dw_sra_loc_expr): Likewise.
11700 * expr.c (emit_block_move_hints): Likewise.
11701 * function.c (assign_parm_find_stack_rtl): Likewise.
11702 * print-rtl.c (print_rtx): Likewise.
11703 * reload.c (find_reloads_subreg_address): Likewise.
11704 * rtlanal.c (may_trap_p_1): Likewise.
11705 * var-tracking.c (track_expr_p): Likewise.
11706 * varasm.c (assemble_trampoline_template): Likewise.
11707 * config/arm/arm.c (arm_print_operand): Likewise.
11708 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
11709 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
11710 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
11711 (expand_constant_setmem_prologue): Likewise.
11712 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
11713 * config/rs6000/rs6000.c (expand_block_move): Likewise.
11714 (adjacent_mem_locations): Likewise.
11715 * config/s390/s390.c (s390_expand_setmem): Likewise.
11716 (s390_expand_insv): Likewise.
11717 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
11718 (*extendqi<mode>2_short_displ): Likewise.
11719 * config/sh/sh.c (expand_block_move): Likewise.
11720 * config/sh/sh.md (extv, extzv): Likewise.
11721
11722 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11723
11724 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
11725 (mem_attrs_htab_eq): ...here.
11726 (find_mem_attrs): Replace with...
11727 (set_mem_attrs): ...this function. Take a mem_attrs structure
11728 rather than individual fields.
11729 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
11730 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
11731 (set_mem_size, change_address, adjust_address_1, offset_address)
11732 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
11733 Update accordingly.
11734
11735 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11736
11737 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
11738 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
11739 Provide a dummy definition of MEM_ADDR_SPACE for generators.
11740 (target_rtl): Add x_mode_mem_attrs.
11741 (mode_mem_attrs): New macro.
11742 (get_mem_attrs): New function.
11743 * emit-rtl.c (get_mem_attrs): Rename to...
11744 (find_mem_attrs): ...this.
11745 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
11746 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
11747 (set_mem_size, change_address, adjust_address_1, offset_address)
11748 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
11749 Update accordingly.
11750 (init_emit_regs): Initialize mode_mem_attrs.
11751
11752 2011-07-19 Richard Guenther <rguenther@suse.de>
11753
11754 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
11755 TRUTH_*_EXPR handling.
11756 * tree-ssa-operands.c (get_expr_operands): Likewise.
11757 * tree-ssa-pre.c (fully_constant_expression): Likewise.
11758 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
11759 Likewise.
11760 (is_and_or_or): Likewise.
11761 (is_norm_cond_subset_of): Likewise.
11762
11763 2011-07-19 Richard Guenther <rguenther@suse.de>
11764
11765 * tree.h (fold_build_pointer_plus_loc): New helper function.
11766 (fold_build_pointer_plus_hwi_loc): Likewise.
11767 (fold_build_pointer_plus): Define.
11768 (fold_build_pointer_plus_hwi): Likewise.
11769 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
11770 (fold_builtin_memory_op): Likewise.
11771 (fold_builtin_stpcpy): Likewise.
11772 (fold_builtin_memchr): Likewise.
11773 (fold_builtin_strstr): Likewise.
11774 (fold_builtin_strchr): Likewise.
11775 (fold_builtin_strrchr): Likewise.
11776 (fold_builtin_strpbrk): Likewise.
11777 (fold_builtin_strcat): Likewise.
11778 (expand_builtin_memory_chk): Likewise.
11779 (fold_builtin_memory_chk): Likewise.
11780 * c-typeck.c (build_unary_op): Likewise.
11781 * cgraphunit.c (thunk_adjust): Likewise.
11782 * fold-const.c (build_range_check): Likewise.
11783 (fold_binary_loc): Likewise.
11784 * omp-low.c (extract_omp_for_data): Likewise.
11785 (expand_omp_for_generic): Likewise.
11786 (expand_omp_for_static_nochunk): Likewise.
11787 (expand_omp_for_static_chunk): Likewise.
11788 * tree-affine.c (add_elt_to_tree): Likewise.
11789 * tree-data-ref.c (split_constant_offset_1): Likewise.
11790 * tree-loop-distribution.c (generate_memset_zero): Likewise.
11791 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
11792 * tree-predcom.c (ref_at_iteration): Likewise.
11793 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
11794 (add_to_parts): Likewise.
11795 (create_mem_ref): Likewise.
11796 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11797 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
11798 (number_of_iterations_le): Likewise.
11799 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
11800 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
11801 (vect_create_addr_base_for_vector_ref): Likewise.
11802 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
11803 (vect_create_cond_for_alias_checks): Likewise.
11804 * tree-vrp.c (extract_range_from_assert): Likewise.
11805 * config/alpha/alpha.c (alpha_va_start): Likewise.
11806 (alpha_gimplify_va_arg_1): Likewise.
11807 * config/i386/i386.c (ix86_va_start): Likewise.
11808 (ix86_gimplify_va_arg): Likewise.
11809 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11810 * config/mep/mep.c (mep_expand_va_start): Likewise.
11811 (mep_gimplify_va_arg_expr): Likewise.
11812 * config/mips/mips.c (mips_va_start): Likewise.
11813 (mips_gimplify_va_arg_expr): Likewise.
11814 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11815 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
11816 (rs6000_gimplify_va_arg): Likewise.
11817 * config/s390/s390.c (s390_va_start): Likewise.
11818 (s390_gimplify_va_arg): Likewise.
11819 * config/sh/sh.c (sh_va_start): Likewise.
11820 (sh_gimplify_va_arg_expr): Likewise.
11821 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
11822 * config/spu/spu.c (spu_va_start): Likewise.
11823 (spu_gimplify_va_arg_expr): Likewise.
11824 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
11825 Likewise.
11826 (xstormy16_gimplify_va_arg_expr): Likewise.
11827 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
11828 (xtensa_gimplify_va_arg_expr): Likewise.
11829
11830 2011-07-19 Richard Guenther <rguenther@suse.de>
11831
11832 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
11833 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
11834 handling.
11835
11836 PR middle-end/18908
11837 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
11838 result of BIT_*_EXPR to bitfield precision.
11839
11840 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
11841
11842 PR tree-optimization/49742
11843 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
11844 as a potential write.
11845
11846 2011-07-19 Richard Guenther <rguenther@suse.de>
11847
11848 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
11849 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
11850 (forward_propagate_comparison): Simplify, remove obsolete code.
11851
11852 2011-07-19 Richard Guenther <rguenther@suse.de>
11853
11854 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
11855 BIT_XOR_EXPR, same as the RTL expander does.
11856 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
11857 (verify_gimple_assign_unary): Likewise.
11858 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
11859 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
11860 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
11861
11862 2011-07-19 Jakub Jelinek <jakub@redhat.com>
11863
11864 PR tree-optimization/49768
11865 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
11866 if offset is smaller than bitoffset, but offset+size is bigger
11867 than bitoffset.
11868
11869 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
11870
11871 PR tree-optimization/49771
11872 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
11873 zero step, set segment length to the size of the data-ref's type.
11874
11875 2011-07-18 Martin Jambor <mjambor@suse.cz>
11876
11877 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
11878 comments.
11879 (ipcp_values_pool): Declare.
11880 (ipcp_sources_pool): Likewise.
11881 (ipcp_lattice): Changed to forward declaration.
11882 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
11883 cannot_devirtualize.
11884 (ipa_node_params): New fields descriptors, lattices, known_vals,
11885 clone_for_all_contexts and node dead, removed fields params and
11886 count_scale.
11887 (ipa_set_param_count): Removed.
11888 (ipa_get_param_count): Made to work with descriptors vector.
11889 (ipa_get_param): Updated.
11890 (ipa_param_cannot_devirtualize_p): Removed.
11891 (ipa_param_types_vec_empty): Likewise.
11892 (ipa_set_param_used): New function.
11893 (ipa_get_param_used): Updated to use descriptors vector.
11894 (ipa_func_list): Removed.
11895 (ipa_init_func_list): Removed declaration.
11896 (ipa_push_func_to_list_1): Likewise.
11897 (ipa_pop_func_from_list): Likewise.
11898 (ipa_push_func_to_list): Removed.
11899 (ipa_lattice_from_jfunc): Remove declaration.
11900 (ipa_get_jf_pass_through_result): Declare.
11901 (ipa_get_jf_ancestor_result): Likewise.
11902 (ipa_value_from_jfunc): Likewise.
11903 (ipa_get_lattice): Update.
11904 (ipa_lat_is_single_const): New function.
11905 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
11906 (ipa_init_func_list): Likewise.
11907 (ipa_pop_func_from_list): Likewise.
11908 (ipa_get_param_decl_index): Fix coding style.
11909 (count_formal_params): Removed.
11910 (count_formal_params_1): Renamed to count_formal_params.
11911 (ipa_populate_param_decls): Update to use descriptors vector.
11912 (ipa_initialize_node_params): Likewise.
11913 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
11914 (ipa_analyze_params_uses): Likewise.
11915 (ipa_free_node_params_substructures): Likewise and free also lattices
11916 and known values.
11917 (duplicate_array): Removed.
11918 (ipa_edge_duplication_hook): Add the new edge to the list of edge
11919 clones.
11920 (ipa_node_duplication_hook): Update to use new lattices.
11921 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
11922 (ipa_free_all_structures_after_iinln): Likewise.
11923 (ipa_write_node_info): Update to use new lattices.
11924 (ipa_read_node_info): Likewise.
11925 (ipa_get_jf_pass_through_result): New function.
11926 (ipa_get_jf_ancestor_result): Likewise.
11927 (ipa_value_from_jfunc): Likewise.
11928 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
11929 * ipa-cp.c: Reimplemented.
11930 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
11931 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
11932 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
11933 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
11934 * doc/invoke.texi (devirt-type-list-size): Removed description.
11935 (ipa-cp-value-list-size): Added description.
11936
11937 2011-07-18 Richard Henderson <rth@redhat.com>
11938
11939 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
11940 before calling create_basic_block.
11941
11942 2011-07-18 Jakub Jelinek <jakub@redhat.com>
11943
11944 PR middle-end/49675
11945 * tree.c (build_common_builtin_nodes): Register
11946 __builtin_return_address, __cyg_profile_func_enter
11947 and __cyg_profile_func_exit.
11948
11949 2011-07-18 Richard Henderson <rth@redhat.com>
11950
11951 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
11952 (add_labels_and_missing_jumps): ... here.
11953 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
11954
11955 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
11956
11957 PR target/47744
11958 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11959 of DImode hard registers in PLUS address chains.
11960
11961 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11962
11963 PR bootstrap/49769
11964 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
11965 (alpha*-*-freebsd*): Likewise.
11966 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11967 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11968 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
11969 crtprec80.o, crtfastmath.o to extra_parts for all targets.
11970 (ia64*-*-elf*): Remove extra_parts.
11971 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
11972 (sparc64-*-linux*): Likewise.
11973 (sparc64-*-freebsd*): Likewise.
11974
11975 Revert:
11976 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
11977 (ia64*-*-linux*): Likewise.
11978 (mips64*-*-linux*): Likewise.
11979 (mips*-*-linux*): Likewise.
11980
11981 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
11982
11983 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
11984
11985 2011-07-18 Richard Guenther <rguenther@suse.de>
11986
11987 * gimplify.c (gimplify_expr): Use input_location, not saved_location
11988 when building new trees.
11989
11990 2011-07-18 Richard Guenther <rguenther@suse.de>
11991
11992 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
11993 expansion result to bitfield precision if required.
11994
11995 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11996
11997 * config.gcc (i[3456x]86-*-netware*): Remove.
11998
11999 * gthr-nks.h: Remove.
12000 * configure.ac (enable_threads): Remove nks.
12001 * configure: Regenerate.
12002
12003 * config/i386/i386.c (ix86_encode_section_info): Remove netware
12004 reference.
12005 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
12006 <netware.h> reference.
12007
12008 * config/i386/netware-libgcc.c,
12009 gcc/config/i386/netware-libgcc.def,
12010 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
12011 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
12012 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
12013 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
12014
12015 * doc/extend.texi (Function Attributes,
12016 callee_pop_aggregate_return): Remove i?86-netware reference.
12017 * doc/install.texi (Configuration, --enable-threads): Remove nks.
12018
12019 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12020
12021 PR target/49746
12022 Revert:
12023 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12024
12025 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
12026 patterns.
12027
12028 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
12029
12030 PR middle-end/49732
12031 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
12032
12033 2011-07-16 Matthias Klose <doko@ubuntu.com>
12034
12035 * doc/install.texi: Document --enable-static-libjava.
12036
12037 2011-07-15 Richard Henderson <rth@redhat.com>
12038
12039 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12040 Replace all three arguments by returning a VEC of edges.
12041 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
12042 pointers and counts.
12043 (fix_edges_for_rarely_executed_code): Merge ...
12044 (rest_of_handle_partition_blocks): ... into...
12045 (partition_hot_cold_basic_blocks): ... here. Return todo items if
12046 any work was performed.
12047 (pass_partition_blocks): Clear todo_flags_finish.
12048
12049 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
12050 Jakub Jelinek <jakub@redhat.com>
12051 Jonathan Wakely <jwakely.gcc@gmail.com>
12052
12053 PR libstdc++/49745
12054 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
12055 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
12056
12057 2011-07-15 Jason Merrill <jason@redhat.com>
12058
12059 PR testsuite/49741
12060 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
12061 rather than --tool_opts.
12062
12063 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
12064
12065 * doc/plugins.texi (Building GCC plugins): gengtype needs its
12066 corresponding gtype.state.
12067
12068 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12069
12070 PR target/49723
12071 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
12072
12073 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
12074
12075 PR target/48220
12076 * doc/md.texi (Standard Names): Document window_save.
12077 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
12078 expand_debug_expr and expand_debug_source_expr. If the target has
12079 a window_save instruction, adjust the ENTRY_VALUE_EXP.
12080 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
12081 SSA_NAME_VAR is a parameter.
12082 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
12083 * var-tracking.c (parm_reg_t): New type and associated vector type.
12084 (windowed_parm_regs): New variable.
12085 (adjust_insn): If the target has a window_save instruction and this
12086 is the instruction, make its effect on parameter registers explicit.
12087 (next_non_note_insn_var_location): New function.
12088 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
12089 (vt_add_function_parameter): If the target has a window_save insn,
12090 adjust the incoming RTL and record that in windowed_parm_regs.
12091 (vt_finalize): Free windowed_parm_regs.
12092
12093 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
12094
12095 * doc/invoke.texi (C6X Options): New section.
12096 * doc/md.texi (TI C6X family): New section.
12097 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
12098 tic6x-*-uclinux.
12099 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
12100 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
12101 Provide C6X definitions.
12102 * config/c6x/c6x.md: New file.
12103 * config/c6x/constraints.md: New file.
12104 * config/c6x/predicates.md: New file.
12105 * config/c6x/c6x-sched.md.in: New file.
12106 * config/c6x/c6x-sched.md: New file.
12107 * config/c6x/gensched.sh: New file.
12108 * config/c6x/c6x-mult.md.in: New file.
12109 * config/c6x/genmult.sh: New file.
12110 * config/c6x/c6x-mult.md: New file.
12111 * config/c6x/sync.md: New file.
12112 * config/c6x/c6x-protos.h: New file.
12113 * config/c6x/sfp-machine.h: New file.
12114 * config/c6x/c6x.c: New file.
12115 * config/c6x/c6x.h: New file.
12116 * config/c6x/crti.s: New file.
12117 * config/c6x/crtn.s: New file.
12118 * config/c6x/lib1funcs.asm: New file.
12119 * config/c6x/c6x-modes.def: New file.
12120 * config/c6x/genopt.sh: New file.
12121 * config/c6x/c6x.opt: New file.
12122 * config/c6x/c6x-tables.opt: New file.
12123 * config/c6x/c6x-opts.h: New file.
12124 * config/c6x/c6x-isas.def: New file.
12125 * config/c6x/elf.h: New file.
12126 * config/c6x/elf-common.h: New file.
12127 * config/c6x/uclinux-elf.h: New file.
12128 * config/c6x/t-c6x: New file.
12129 * config/c6x/t-c6x-elf: New file.
12130 * config/c6x/t-c6x-uclinux: New file.
12131 * config/c6x/t-c6x-softfp: New file.
12132 * config/c6x/gtd.c: New file.
12133 * config/c6x/gtf.c: New file.
12134 * config/c6x/ltd.c: New file.
12135 * config/c6x/ltf.c: New file.
12136 * config/c6x/ged.c: New file.
12137 * config/c6x/gef.c: New file.
12138 * config/c6x/led.c: New file.
12139 * config/c6x/lef.c: New file.
12140 * config/c6x/eqd.c: New file.
12141 * config/c6x/eqf.c: New file.
12142 * config/c6x/libgcc-c6xeabi.ver: New file.
12143
12144 Revert
12145 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
12146 PR rtl-optimization/11320
12147 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12148 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12149 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12150 current_sched_info->compute_jump_reg_dependencies. Record which
12151 registers are used and which registers are set by the jump.
12152 Clear deps->reg_conditional_sets after a barrier.
12153 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12154 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12155 (init_deps): Initialize reg_conditional_sets.
12156 (free_deps): Clear reg_conditional_sets.
12157 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12158 Mark registers live on entry of the fallthrough block and conditionally
12159 set as set by the jump. Mark registers live on entry of non-fallthrough
12160 blocks as used by the jump.
12161 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12162 Mark new parameters as unused.
12163
12164 2011-07-14 Andrew Pinski <pinskia@gmail.com>
12165
12166 PR tree-opt/49309
12167 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
12168 Use fold_build2_loc instead of build2.
12169 Use the correct type for the new tree.
12170
12171 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12172
12173 PR rtl-optimization/11320
12174 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
12175 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
12176
12177 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
12178
12179 PR target/49487
12180 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
12181 of REG.
12182 (*rotw<mode>): Use const_int_operand for operand2.
12183 Use match_scatch for operand3.
12184 (*rotb<mode>): Ditto
12185 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
12186
12187 2011-07-14 Richard Guenther <rguenther@suse.de>
12188
12189 PR tree-optimization/49651
12190 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12191 handle dereferences with subvariables.
12192
12193 2011-07-14 Richard Guenther <rguenther@suse.de>
12194
12195 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
12196 (fold_stmt_1): Do it here directly on gimple and as a first thing.
12197
12198 2011-07-14 Richard Guenther <rguenther@suse.de>
12199
12200 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
12201 not bool_var when folding bool_var != 1 or bool_var == 0.
12202
12203 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12204
12205 * haifa-sched.c (schedule_insns): Remove outdated comment.
12206 (schedule_block): When computing a known value for TODO_SPEC,
12207 just set it rather than using logical operations.
12208 (try_ready): Likewise. Use a local variable rather than a
12209 pointer to TODO_SPEC. Reorder an if statement to move the
12210 easy case to the then block.
12211 * sched-deps.c (dep_spec_p): New static function.
12212 (update_dep): Use it to decide whether to call
12213 change_spec_dep_to_hard.
12214 (get_back_and_forw_lists): Use it.
12215 (sd_resolve_dep): Likewise.
12216 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
12217 (haifa_note_mem_dep): Likewise.
12218 (check_dep): Likewise.
12219 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
12220 (sched_free_deps): Free in two passes.
12221
12222 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
12223
12224 PR middle-end/49736
12225 * expr.c (all_zeros_p): Undo bogus part of last change.
12226
12227 2011-07-14 Matthias Klose <doko@ubuntu.com>
12228
12229 * doc/extend.texi (optimize attribute): Fix typo.
12230
12231 2011-07-14 Richard Guenther <rguenther@suse.de>
12232
12233 * gimplify.c (gimplify_expr): Only do required conversions.
12234
12235 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
12236
12237 PR target/43746
12238 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
12239 i.e. use default_elf_select_section.
12240 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
12241 (READONLY_DATA_SECTION_ASM_OP): Remove.
12242 (TARGET_ASM_NAMED_SECTION): Move from here...
12243 * config/avr/avr.c: ...to here.
12244 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
12245 (avr_asm_named_section): Make static.
12246
12247 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12248
12249 PR bootstrap/49739
12250 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
12251 and crtfastmath.o for Linux/x86.
12252
12253 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12254
12255 * haifa-sched.c: Include "hashtab.h"
12256 (sched_no_dce): New global variable.
12257 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
12258 SHADOW_P): New macros.
12259 (last_clock_var, cycle_issued_insns): Move declarations.
12260 (must_backtrack): New static variable.
12261 (struct delay_pair): New structure.
12262 (delay_htab, delay_htab_i2): New static variables.
12263 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
12264 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
12265 functions.
12266 (dep_cost_1): If delay pairs exist, try to look up the insns and
12267 use the correct pair delay if we find them.
12268 (rank-for_schedule): Tweak priority for insns that must be scheduled
12269 soon to avoid backtracking.
12270 (queue_insn): Detect conditions which force backtracking.
12271 (ready_add): Likewise.
12272 (struct sched_block_state): Add member shadows_only_p.
12273 (struct haifa_save_data): New structure.
12274 (backtrack_queue): New static variable.
12275 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
12276 unschedule_insns_until, restore_last_backtrack_point,
12277 free_topmost_backtrack_point, free_backtrack_queue,
12278 estimate_insn_tick, estimate_shadow_tick): New functions.
12279 (prune_ready_list): New arg shadows_only_p. All callers changed.
12280 If true, remove everything that isn't SHADOW_P. Look up delay
12281 pairs and estimate ticks to avoid scheduling the first insn too early.
12282 (verify_shadows): New function.
12283 (schedule_block): Add machinery to enable backtracking.
12284 (sched_init): Take sched_no_dce into account when setting
12285 DF_LR_RUN_DCE.
12286 (free_delay_pairs): New function.
12287 (init_h_i_d): Initialize INSN_EXACT_TICK.
12288 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
12289 * sched-deps.c (sd_unresolve_dep): New function.
12290 * sched-int. (struct haifa_sched_info): New fields save_state
12291 and restore_state.
12292 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
12293 feeds_backtrack_insn and shadow_p.
12294 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
12295 (sched_no_dce): Declare variable.
12296 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
12297 sd_unresolve_dep): Declare functions.
12298 * modulo-sched.c (sms_sched_info): Clear the two new fields.
12299 * sched-rgn.c (rgn_const_sched_info): Likewise.
12300 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12301 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
12302 (ebb_sched_info): Add them for the two new fields.
12303 (add_deps_for_risky_insns): Call add_delay_dependencies.
12304
12305 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12306
12307 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
12308 Rename -mr11.
12309 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
12310 (rs6000_call_indirect_aix): Ditto.
12311 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
12312 (call_indirect_aix<ptrsize>_internal): Ditto.
12313 (call_indirect_aix<ptrsize>_nor11): Ditto.
12314 (call_indirect_aix<ptrsize>_internal2): Ditto.
12315 (call_value_indirect_aix<ptrsize>): Ditto.
12316 (call_value_indirect_aix<ptrsize>_internal): Ditto.
12317 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
12318 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
12319 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
12320
12321 2011-07-13 Jason Merrill <jason@redhat.com>
12322
12323 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
12324
12325 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12326
12327 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
12328 * config/spu/spu.md ("clrsb<mode>2"): New expander.
12329
12330 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
12331
12332 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
12333 * configure: Regenerate.
12334
12335 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12336
12337 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
12338 (asm_file_start): Remove.
12339 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
12340 free_bb_for_insn around code that modifies insns before
12341 restarting df analysis.
12342
12343 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12344
12345 PR target/49541
12346 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
12347 (LINK_SPEC): ... here.
12348
12349 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12350
12351 * haifa-sched.c (struct sched_block_state): New.
12352 (schedule_block): Move some local variables into such a structure.
12353
12354 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12355
12356 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
12357 * config/i386/t-crtpc: Remove.
12358 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
12359 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
12360 tmake_file.
12361 (x86_64-*-darwin*): Likewise.
12362 (i[34567]86-*-linux*): Likewise.
12363 (x86_64-*-linux*): Likewise.
12364
12365 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
12366 Handle -mpc32, -mpc64, -mpc80.
12367
12368 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12369
12370 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
12371 * config/alpha/t-crtfm: Remove.
12372 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
12373 * config/i386/t-crtfm: Remove.
12374 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
12375 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
12376 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
12377 * config/sparc/t-crtfm: Remove.
12378
12379 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
12380 (alpha*-*-freebsd*): Likewise.
12381 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
12382 (x86_64-*-darwin*): Likewise.
12383 (i[34567]86-*-linux*): Likewise.
12384 (x86_64-*-linux*): Likewise.
12385 (x86_64-*-mingw*): Likewise.
12386 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
12387 (ia64*-*-freebsd*): Likewise.
12388 (ia64*-*-linux*): Likewise.
12389 (mips64*-*-linux*): Likewise.
12390 (mips*-*-linux*): Likewise.
12391 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
12392 (sparc64-*-linux*): Likewise.
12393 (sparc64-*-freebsd*): Likewise.
12394
12395 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12396
12397 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
12398 * config/darwin-crt3.c: Move to ../libgcc/config.
12399 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
12400 ($(T)crt3$(objext)): Remove.
12401 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
12402 ($(T)crt2$(objext)): Remove.
12403 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
12404 (powerpc64-*-darwin*): Likewise.
12405
12406 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
12407
12408 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
12409
12410 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
12411 (addsi_1_zext): This.
12412
12413 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12414
12415 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
12416 * doc/tm.texi: Regenerate.
12417 * target.def (mergeable_rodata_prefix): New defhookpod.
12418 * varasm.c (mergeable_string_section, mergeable_constant_section):
12419 Use it. Allocate name with alloca.
12420
12421 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
12422
12423 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
12424
12425 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
12426
12427 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
12428 overlap check.
12429
12430 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
12431
12432 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
12433 (count_type_elements): Delete.
12434 (complete_ctor_at_level_p): Declare.
12435 * expr.c (flexible_array_member_p): New function, split out from...
12436 (count_type_elements): ...here. Make static. Replace allow_flexarr
12437 parameter with for_ctor_p. When for_ctor_p is true, return the
12438 number of elements that should appear in the top-level constructor,
12439 otherwise return an estimate of the number of scalars.
12440 (categorize_ctor_elements): Replace p_must_clear with p_complete.
12441 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
12442 (complete_ctor_at_level_p): New function, borrowing union logic
12443 from old categorize_ctor_elements_1.
12444 (mostly_zeros_p): Return true if the constructor is not complete.
12445 (all_zeros_p): Update call to categorize_ctor_elements.
12446 * gimplify.c (gimplify_init_constructor): Update call to
12447 categorize_ctor_elements. Don't call count_type_elements.
12448 Unconditionally prevent clearing for variable-sized types,
12449 otherwise rely on categorize_ctor_elements to detect
12450 incomplete initializers.
12451
12452 2011-07-13 Richard Guenther <rguenther@suse.de>
12453
12454 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
12455 the final type is integral.
12456
12457 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12458
12459 * sched-int.h (struct _dep): Add member cost.
12460 (DEP_COST, UNKNOWN_DEP_COST): New macros.
12461 * sched-deps.c (init_dep_1): Initialize DEP_COST.
12462 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
12463 (sched_change_pattern): Reset it for dependent insns.
12464
12465 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12466
12467 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
12468 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
12469 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
12470 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
12471 (CRT0_S, MCRT0_S): Remove.
12472 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
12473 Remove.
12474 (s-crt0): Remove.
12475 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
12476
12477 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
12478
12479 * cse.c (insert_with_costs): Put semi-colon after empty loop body
12480 on the next line.
12481 * emit-rtl.c (push_to_sequence): Likewise.
12482 * haifa-sched.c (max_issue): Likewise.
12483 * matrix-reorg.c (add_allocation_site): Likewise.
12484 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
12485 * reload.c (alternative_allows_const_pool_ref): Likewise.
12486 * sched-rgn.c (rgn_add_block): Likewise.
12487 (rgn_fix_recovery_cfg): Likewise.
12488 * tree.c (attribute_list_contained): Likewise.
12489
12490 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
12491
12492 * config/i386/i386.c: Tidy processor feature bitmasks.
12493 (m_P4_NOCONA): New.
12494
12495 2011-07-12 Andrew Pinski <pinskia@gmail.com>
12496
12497 PR rtl-opt/49474
12498 * cprop.c (find_implicit_sets): Correct the condition.
12499
12500 2011-07-12 Richard Henderson <rth@redhat.com>
12501
12502 PR target/49713
12503 * dwarf2out.h (dwarf_frame_regnum): Remove.
12504 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
12505 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
12506 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
12507 (execute_dwarf2_frame): Initialize them.
12508 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
12509 users of the macros with the variables.
12510 (expand_builtin_dwarf_sp_column): Revert last change.
12511 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
12512 result of DWARF_FRAME_REGNUM into a local variable.
12513
12514 2011-07-12 Richard Henderson <rth@redhat.com>
12515
12516 PR target/49714
12517 * config/i386/i386.c (x86_output_mi_thunk): Use
12518 machopic_indirect_call_target instead of machopic_indirection_name
12519 directly.
12520
12521 2011-07-12 Laurent GUERBY <laurent@guerby.net>
12522 Eric Botcazou <ebotcazou@adacore.com>
12523
12524 * prefix.h: Wrap up in extern "C" block.
12525
12526 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
12527
12528 AMD bdver2 Enablement
12529 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
12530 (case ${target}): Add bdver2.
12531 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12532 -march=native recognize bdver2 processors.
12533 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12534 bdver2 def_and_undef
12535 * config/i386/i386.c (struct processor_costs bdver2_cost): New
12536 bdver2 cost table.
12537 (m_BDVER2): New definition.
12538 (m_AMD_MULTIPLE): Includes m_BDVER2.
12539 (initial_ix86_tune_features): Add bdver2 tuning.
12540 (processor_target_table): Add bdver2 entry.
12541 (static const char *const cpu_names): Add bdver2 entry.
12542 (ix86_option_override_internal): Add bdver2 instruction sets.
12543 (ix86_issue_rate): Add bdver2.
12544 (ix86_adjust_cost): Add bdver2.
12545 (has_dispatch): Add bdver2.
12546 * config/i386/i386.h (TARGET_BDVER2): New definition.
12547 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
12548 (enum processor_type): Add PROCESSOR_BDVER2.
12549 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
12550 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
12551 description.
12552
12553 2011-07-12 Richard Henderson <rth@redhat.com>
12554
12555 PR target/49714
12556 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
12557 destination address in memory on some paths.
12558
12559 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
12560
12561 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
12562 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
12563 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
12564 * function.c (locate_and_pad_parm): Take it into account.
12565 * target.def (function_arg_round_boundary): New hook.
12566 * targhooks.c (default_function_arg_round_boundary): New function.
12567 * targhooks.h (default_function_arg_round_boundary): Declare.
12568 * doc/tm.texi: Regenerate.
12569
12570 2011-07-12 Richard Guenther <rguenther@suse.de>
12571
12572 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
12573 Do not perform no-op changes.
12574
12575 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
12576
12577 * config/arm/predicates.md (neon_struct_operand): Make a normal
12578 predicate.
12579 (neon_struct_or_register_operand): New predicate.
12580 * config/arm/neon.md (movmisalign<mode>): Replace predicates
12581 with neon_struct_or_register_operand.
12582 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
12583 neon_struct_operand instead of memory_operand.
12584
12585 2011-07-12 Martin Jambor <mjambor@suse.cz>
12586
12587 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
12588 * cgraph.c (cgraph_get_node_or_alias): Removed.
12589 (change_decl_assembler_name): Changed all calls to
12590 cgraph_get_node_or_alias to a call to cgraph_get_node.
12591 (cgraph_make_decl_local): Likewise.
12592 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
12593 * varasm.c (default_binds_local_p_1): Likewise.
12594 (decl_binds_to_current_def_p): Likewise.
12595
12596 2011-07-12 Jakub Jelinek <jakub@redhat.com>
12597
12598 PR tree-optimization/49712
12599 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
12600
12601 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
12602
12603 * genautomata.c (add_arc): Return void. All callers changed.
12604 (make_automaton): Remove dead code.
12605
12606 2011-07-11 Richard Henderson <rth@redhat.com>
12607
12608 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
12609 (DW_FRAME_POINTER_REGNUM): New.
12610 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
12611 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
12612 (dwf_regno): New.
12613 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
12614 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
12615 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
12616 Use it.
12617 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
12618 * dwarf2out.h (dwarf_frame_regnum): New.
12619 (struct cfa_loc): Document the domain of the reg member.
12620
12621 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
12622
12623 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
12624 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
12625
12626 2011-07-11 Jakub Jelinek <jakub@redhat.com>
12627
12628 PR debug/49676
12629 * dwarf2out.c (int_shift_loc_descriptor): New function.
12630 (int_loc_descriptor): If shorter, emit i as
12631 (i >> shift), shift, DW_OP_shl for suitable shift value.
12632 Similarly, try to optimize large negative values using
12633 DW_OP_neg of a positive value if shorter.
12634 (size_of_int_shift_loc_descriptor): New function.
12635 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
12636 changes.
12637 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
12638 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
12639 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
12640 is shorter.
12641 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
12642 addend as added DW_OP_plus if it is shorter.
12643
12644 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12645
12646 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
12647 (DTORS_SECTION_ASM_OP): Define.
12648
12649 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12650
12651 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
12652 * config/t-dfprules: Move to ../libgcc/config.
12653 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
12654 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
12655 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
12656 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
12657 Likewise.
12658 (i[34567]86-*-cygwin*): Likewise.
12659 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
12660 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
12661 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
12662 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
12663 D64PBIT_FUNCS, D128PBIT_FUNCS.
12664
12665 2011-07-11 Richard Guenther <rguenther@suse.de>
12666
12667 * tree-vrp.c (simplify_conversion_using_ranges): Manually
12668 translate the source value-range through the conversion chain.
12669
12670 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
12671
12672 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
12673
12674 2011-07-11 Arthur Loiret <aloiret@debian.org>
12675
12676 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
12677 a bi-arch compiler defaulting to 31-bit. In this case:
12678 (tmake_file): Add s390/t-linux64.
12679 * doc/install.texi: Add s390-linux to the list of targets supporting
12680 --enable-targets=all.
12681
12682 2011-07-11 Arthur Loiret <aloiret@debian.org>
12683 Matthias Klose <doko@debian.org>
12684
12685 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
12686 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
12687 (tm_file): Add mips/linux64.h.
12688 (tmake_file): Add mips/t-linux64.
12689 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
12690 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
12691 instead of hardcoded mabi=n32.
12692 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
12693 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
12694 convention.
12695
12696 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12697
12698 * passes.c (init_optimization_passes): Add invariant motion pass
12699 after induction variable optimization.
12700
12701 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
12702
12703 PR target/39633
12704 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
12705 offsets 1..5 set cc0 in a usable way.
12706
12707 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
12708
12709 * tree.h (call_expr_arg): Remove.
12710 (call_expr_argp): Likewise.
12711
12712 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
12713
12714 * config/sparc/sparc.md (save_register_window_1): Rename to...
12715 (window_save): ...this.
12716 * config/sparc/sparc.c (emit_save_register_window): Rename to...
12717 (emit_window_save): ...this.
12718 (sparc_expand_prologue): Adjust to above renaming.
12719
12720 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
12721
12722 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
12723 of movabs for x32.
12724
12725 2011-07-10 Richard Henderson <rth@redhat.com>
12726
12727 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
12728 run final, instead of emitting text directly.
12729
12730 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
12731
12732 * config/i386/i386.c (ix86_option_override_internal): Turn on
12733 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
12734 small PIC models for TARGET_X32.
12735
12736 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
12737
12738 PR target/49684
12739 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
12740 $(LIBGCC2_CFLAGS).
12741
12742 PR bootstrap/49680
12743 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
12744 stray notes and debug insns by using prev_nonnote_nondebug_insn
12745 instead of PREV_INSN.
12746
12747 2011-07-09 Richard Henderson <rth@redhat.com>
12748
12749 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
12750 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
12751 * dwarf2out.c: ... here.
12752 (output_all_cfis): Remove.
12753 (dwarf2out_switch_text_section): Use output_cfis directly.
12754 (size_of_locs): Export.
12755 (output_loc_sequence, output_loc_sequence_raw): Export.
12756 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
12757 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
12758 output_cfa_loc_raw): Move to ...
12759 * dwarfcfi.c: ... here.
12760 * dwarf2out.h: Update decls.
12761
12762 2011-07-09 Richard Henderson <rth@redhat.com>
12763
12764 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
12765 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
12766 * dwarf2cfi.c: ... here.
12767 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
12768 (DWARF_ROUND, DWARF_CIE_ID): Remove.
12769 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
12770 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
12771 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
12772
12773 2011-07-09 Richard Henderson <rth@redhat.com>
12774
12775 * dwarf2cfi.c (cie_return_save): New.
12776 (queue_reg_save): Use compare_reg_or_pc.
12777 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
12778 (dwarf2out_frame_debug_expr): Likewise.
12779 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
12780 (initial_return_save): Likewise.
12781 (execute_dwarf2_frame): Save and restore initial return save from
12782 the cie to the fde.
12783 * config/mips/mips.c (mips_frame_set): Remove special case for
12784 DWARF_FRAME_RETURN_COLUMN.
12785
12786 2011-07-09 Richard Henderson <rth@redhat.com>
12787
12788 * dwarf2cfi.c (lookup_cfa): Remove.
12789 (execute_dwarf2_frame): Assert queues are empty on entry.
12790 Setup initial cfa directly, not via lookup_cfa.
12791 Don't clear args_size state here.
12792
12793 2011-07-09 Richard Henderson <rth@redhat.com>
12794
12795 * dwarf2cfi.c (add_cfi_vec): New.
12796 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
12797 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
12798 (execute_dwarf2_frame): Set add_cfi_vec.
12799
12800 2011-07-09 Richard Henderson <rth@redhat.com>
12801
12802 * defaults.h (ASM_COMMENT_START): Move here...
12803 * dwarf2asm.c: ... from here.
12804 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
12805 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
12806 * varasm.c: Likewise.
12807
12808 2011-07-09 Richard Henderson <rth@redhat.com>
12809
12810 PR debug/49686
12811 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
12812 (create_cfi_notes): ... do it here instead.
12813
12814 2011-07-09 Jakub Jelinek <jakub@redhat.com>
12815
12816 PR debug/49676
12817 * dwarf2out.c (size_of_int_loc_descriptor): New function.
12818 (address_of_int_loc_descriptor): Use it.
12819 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
12820
12821 2011-07-09 Richard Henderson <rth@redhat.com>
12822
12823 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
12824 (prologue, epilogue): New.
12825 (return, *rts): New.
12826 (blockage, setd, seti): New.
12827 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12828 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
12829 (pdp11_saved_regno): New.
12830 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
12831 generate rtl instead of text.
12832 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
12833 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
12834 * config/pdp11/pdp11-protos.h: Update.
12835
12836 2011-07-09 Richard Henderson <rth@redhat.com>
12837
12838 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
12839 try to insert an rtl prologue here.
12840 (rs6000_output_function_epilogue): Similarly.
12841 * config/rs6000/rs6000.md (prologue): Emit a barrier to
12842 satisfy !TARGET_SCHED_PROLOG.
12843 (epilogue, sibcall_epilogue): Likewise.
12844
12845 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
12846
12847 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
12848 (FP_REG_P): Delete.
12849 (IN_OR_GLOBAL_P): Likewise.
12850
12851 2011-07-08 Jason Merrill <jason@redhat.com>
12852
12853 PR c++/45437
12854 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
12855 compound assignment.
12856
12857 * cgraph.c (cgraph_add_to_same_comdat_group): New.
12858 * cgraph.h: Declare it.
12859 * ipa.c (function_and_variable_visibility): Make sure thunks
12860 have the right visibility.
12861
12862 2011-07-08 Richard Henderson <rth@redhat.com>
12863
12864 PR bootstrap/49680
12865 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
12866 any tablejump vector.
12867
12868 PR bootstrap/49680
12869 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
12870 end of the prologue.
12871
12872 2011-07-08 Jakub Jelinek <jakub@redhat.com>
12873
12874 PR target/49621
12875 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
12876 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
12877 * config/rs6000/vector.md (vector_select_<mode>,
12878 vector_select_<mode>_uns): Change second operand of NE to
12879 CONST0_RTX (<MODE>mode) instead of const0_rtx.
12880 * config/rs6000/altivec.md (*altivec_vsel<mode>,
12881 *altivec_vsel<mode>_uns): Expect second operand of NE to be
12882 zero_constant of the corresponding vector mode.
12883 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
12884 Likewise.
12885
12886 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
12887
12888 * graphite-dependences.c (build_alias_set_powerset): Remove
12889 continue from loop, add one more assert.
12890
12891 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
12892
12893 PR target/46779
12894 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
12895 In particular, allow 8-bit values in r28 and r29.
12896 (avr_hard_regno_scratch_ok): Disallow any register that might be
12897 part of the frame pointer.
12898 (avr_hard_regno_rename_ok): Same.
12899 (avr_legitimate_address_p): Don't allow SUBREGs.
12900
12901 2011-07-08 Julian Brown <julian@codesourcery.com>
12902
12903 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
12904 big-endian mode.
12905 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
12906 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
12907 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
12908 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
12909 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
12910 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
12911 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
12912 registers in big-endian mode.
12913
12914 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
12915
12916 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
12917 in terms of another.
12918 (write_attr_value): Write a cast if necessary.
12919
12920 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
12921 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
12922 (REG_WORDS_BIG_ENDIAN): Document.
12923 * doc/tm.texi: Regenerate.
12924 * reload.c (operands_match_p): Take it into account.
12925 (reload_adjust_reg_for_mode): Likewise.
12926 * rtlanal.c (subreg_get_info): Likewise.
12927
12928 2011-07-08 Richard Guenther <rguenther@suse.de>
12929
12930 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
12931 folding.
12932
12933 2011-07-08 Kai Tietz <ktietz@redhat.com>
12934
12935 * fold-const.c (fold_truth_andor): Factored out truth_andor
12936 label from fold_binary as function.
12937 (fold_binary_loc): Replace truth_andor lable
12938 by function fold_truth_andor.
12939
12940 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
12941
12942 PR middle-end/49519
12943 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
12944 check if address is stored in register. If so - give up.
12945 (check_sibcall_argument_overlap_1): Do not perform check of
12946 overlapping when it is call to address.
12947
12948 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
12949
12950 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
12951 of magic '31'.
12952
12953 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
12954
12955 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
12956 GET_MODE_BITSIZE where appropriate.
12957 (widen_leading, expand_parity, expand_ctz, expand_ffs,
12958 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
12959 expand_float, expand_fix): Likewise.
12960 * expr.c (convert_move, convert_modes, expand_expr_real_2,
12961 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
12962 * stor-layout.c (get_mode_bounds): Likewise.
12963 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
12964 Likewise.
12965 * convert.c (convert_to_integer): Likewise.
12966 * expmed.c (expand_shift_1): Likewise.
12967
12968 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
12969 a bitsize.
12970
12971 * optabs.c (expand_binop): Tighten conditions for doubleword
12972 expansions.
12973 (widen_bswap): Assert that mode bitsize and precision are the same.
12974 * stor-layout.c (get_best_mode): Skip modes that have lower
12975 precision than bitsize.
12976 * recog.c (simplify_while_replacing): Assert that bitsize and
12977 precision are the same.
12978
12979 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12980
12981 * Makefile.in (LIBGCOV): Remove.
12982 (libgcc.mvars): Remove LIBGCOV.
12983 * libgov.c: Move to ../libgcc.
12984
12985 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12986
12987 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
12988
12989 2011-07-08 Martin Jambor <mjambor@suse.cz>
12990
12991 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
12992 is too big for total scalarization.
12993
12994 2011-07-07 Richard Henderson <rth@redhat.com>
12995
12996 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
12997 (DBX_DEBUGGING_INFO): Undef.
12998
12999 2011-07-07 Richard Henderson <rth@redhat.com>
13000
13001 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
13002 Handle some opcodes specially for debugging.
13003 * print-rtl.c: Include dwarf2out.h
13004 (print_rtx): Handle NOTE_INSN_CFI.
13005 * Makefile.in (print-rtl.o): Update.
13006
13007 2011-07-07 Richard Henderson <rth@redhat.com>
13008
13009 * tree-pass.h (pass_dwarf2_frame): Declare.
13010 * passes.c (init_optimization_passes): Add it.
13011 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
13012 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
13013 make static, do not call add_cfis_to_fde.
13014 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
13015 dwarf2out_frame_init): Merge into...
13016 (execute_dwarf2_frame): ... here. New function.
13017 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
13018 saved_do_cfi_asm to a tri-state variable.
13019 (gate_dwarf2_frame, pass_dwarf2_frame): New.
13020 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
13021 if it has yet to be done. Don't call dwarf2cfi_function_init.
13022 * dwarf2out.h, debug.h: Update decls.
13023 * final.c (final_start_function): Don't call
13024 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
13025 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
13026 * toplev.c (lang_dependent_init): Likewise.
13027
13028 2011-07-07 Richard Henderson <rth@redhat.com>
13029
13030 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
13031 FDE_TABLE_INCREMENT): Replace with...
13032 (fde_vec): ... this, a new vector.
13033 (current_fde): Remove. Replace all users with cfun->fde.
13034 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
13035 (size_of_aranges, dwarf2out_finish): Likewise.
13036 (dwarf2out_alloc_current_fde): Break out from ...
13037 (dwarf2out_begin_prologue): ... here.
13038 (dwarf2out_frame_init): Remove.
13039 * dwarf2cfi.c: Update all users of current_fde.
13040 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
13041 * dwarf2out.h: Update decls.
13042 (dw_fde_node): Add fde_index member.
13043 * function.h (struct function): Add fde member.
13044
13045 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13046 Richard Henderson <rth@redhat.com>
13047
13048 * dwarf2cfi.c (add_cfi): Remove.
13049 (dwarf2out_cfi_label): Remove force argument. Only generate the
13050 label name.
13051 (add_fde_cfi): Simplify the different code paths.
13052 (add_cie_cfi): New.
13053 (old_cfa, old_cfa_remember): New.
13054 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
13055 (last_reg_save_label): Remove.
13056 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
13057 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
13058 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
13059 dwarf2out_frame_debug_cfa_expression,
13060 dwarf2out_frame_debug_cfa_restore,
13061 dwarf2out_frame_debug_cfa_window_save,
13062 dwarf2out_frame_debug_expr): Remove label parameter.
13063 (cfi_label_required_p, add_cfis_to_fde): New.
13064 (dwarf2out_frame_debug_after_prologue): New.
13065 (dwarf2cfi_frame_init): Initialize old_cfa.
13066 (dwarf2out_frame_debug_restore_state): Likewise.
13067 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
13068 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
13069 * final.c (final_start_function): Call
13070 dwarf2out_frame_debug_after_prologue.
13071
13072 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13073 Richard Henderson <rth@redhat.com>
13074
13075 * dwarf2cfi.c (cfi_insn): New.
13076 (dwarf2out_cfi_label): Don't emit cfi label here.
13077 (add_fde_cfi): Create a NOTE_INSN_CFI.
13078 (dwarf2out_frame_debug): Setup cfi_insn.
13079 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
13080 (dwarf2out_cfi_begin_epilogue): Make static.
13081 (dwarf2out_frame_debug_restore_state): Make static.
13082 * dwarf2out.c (output_cfi_directive): Make static.
13083 (dwarf2out_emit_cfi): New.
13084 * dwarf2out.h: Update.
13085 * final.c (final): Remove CFI notes.
13086 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
13087 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
13088 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
13089 * insn-notes.def (NOTE_INSN_CFI): New.
13090 (NOTE_INSN_CFI_LABEL): New.
13091 * rtl.h (union rtunion_def): Add rt_cfi member.
13092 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
13093
13094 2011-07-07 Richard Henderson <rth@redhat.com>
13095
13096 * dwarf2cfi.c: New file.
13097 * Makefile.in (OBJS): Add it.
13098 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
13099 * gengtype.c (open_base_files): Include dwarf2out.h.
13100 * coretypes.h (enum var_init_status): Move from ...
13101 * rtl.h: ... here.
13102 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
13103 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
13104 expand_builtin_dwarf_sp_column, init_return_column_size,
13105 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
13106 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
13107 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
13108 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
13109 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
13110 compute_barrier_args_size, dwarf2out_args_size,
13111 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
13112 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
13113 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
13114 queue_reg_save, dwarf2out_flush_queued_reg_saves,
13115 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
13116 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
13117 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
13118 dwarf2out_frame_debug_cfa_expression,
13119 dwarf2out_frame_debug_cfa_restore,
13120 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
13121 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
13122 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
13123 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
13124 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
13125 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
13126 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
13127 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
13128 dw_loc_descr_node): Move to dwarf2out.h.
13129 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
13130 mem_loc_descriptor): Export.
13131 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
13132 (dwarf2out_frame_init): Extract CIE generation code to
13133 dwarf2cfi_frame_init.
13134
13135 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
13136
13137 PR target/49660
13138 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
13139 MASK_V8PLUS, remove commented out flag and reorder.
13140
13141 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13142
13143 PR c/49644
13144 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
13145 one non-complex and one complex argument, call c_save_expr on both
13146 operands.
13147
13148 2011-07-07 Martin Jambor <mjambor@suse.cz>
13149
13150 PR middle-end/49495
13151 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
13152 (verify_cgraph_node): Some functinality moved to
13153 verify_edge_corresponds_to_fndecl, call it.
13154
13155 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13156
13157 * config.gcc (*local*): Remove.
13158 * doc/install-old.texi: Don't mention local configurations.
13159
13160 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13161
13162 PR debug/49522
13163 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
13164 referencing debug insns that have been reset.
13165 (dead_debug_insert_before): Don't assert reg is non-NULL,
13166 instead return immediately if it is NULL.
13167
13168 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13169
13170 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
13171
13172 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13173
13174 * hw-doloop.c: New file.
13175 * hw-doloop.h: New file.
13176 * Makefile.in (OBJS): Add hw-doloop.o.
13177 (hw-doloop.o): New rule.
13178 ($(obj_out_file)): Add hw-doloop.h dependency.
13179 * config/bfin/bfin.c: Include "hw-doloop.h".
13180 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
13181 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
13182 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
13183 type changed to hwloop_info. Return bool, true if the loop was
13184 successfully optimized. Remove code that was moved to
13185 hw-doloop.c, and adjust other parts.
13186 (hwloop_fail): New static function, containing parts that used
13187 to be in bfin_optimize_loop.
13188 (bfin_discover_loop, bfin_discover_loops, free_loops,
13189 bfin_reorder_loops): Remove.
13190 (hwloop_pattern_reg): New static function.
13191 (bfin_doloop_hooks): New variable.
13192 (bfin_reorg_loops): Remove most code, call reorg_loops.
13193 * config/bfin/bfin.md (doloop_end splitter): Also enable if
13194 loop counter is a memory_operand.
13195
13196 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
13197
13198 * config.gcc: Support --with-multilib-list for x86 Linux targets.
13199
13200 * configure.ac: Mention x86-64 for --with-multilib-list.
13201 * configure: Regenerated.
13202
13203 * config/i386/gnu-user64.h (SPEC_64): Support x32.
13204 (SPEC_32): Likewise.
13205 (ASM_SPEC): Likewise.
13206 (LINK_SPEC): Likewise.
13207 (TARGET_THREAD_SSP_OFFSET): Likewise.
13208 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
13209 (SPEC_X32): New.
13210
13211 * config/i386/i386.h (TARGET_X32): New.
13212 (TARGET_LP64): New.
13213 (LONG_TYPE_SIZE): Likewise.
13214 (POINTER_SIZE): Likewise.
13215 (POINTERS_EXTEND_UNSIGNED): Likewise.
13216 (OPT_ARCH64): Support x32.
13217 (OPT_ARCH32): Likewise.
13218
13219 * config/i386/i386.opt (mx32): New.
13220
13221 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
13222 (GLIBC_DYNAMIC_LINKERX32): Likewise.
13223 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
13224 (GLIBC_DYNAMIC_LINKERX32): Likewise.
13225
13226 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
13227 (BIONIC_DYNAMIC_LINKERX32): Likewise.
13228 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
13229
13230 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
13231
13232 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
13233
13234 * doc/invoke.texi: Document -mx32.
13235
13236 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
13237
13238 * doc/invoke.texi (mwords-little-endian): Deprecate.
13239 * config/arm/arm.opt (mwords-little-endian): Likewise.
13240 * config/arm/arm.c (arm_option_override): Warn about the deprecation
13241 of -mwords-little-endian.
13242
13243 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
13244
13245 * reload1.c (choose_reload_regs): Use mode sizes to check whether
13246 an old reload register completely defines the required value.
13247
13248 2011-07-07 Richard Guenther <rguenther@suse.de>
13249
13250 * fold-const.c (fold_unary_loc): Do not strip sign-changes
13251 for NEGATE_EXPR.
13252
13253 2011-07-07 Richard Guenther <rguenther@suse.de>
13254
13255 * tree-vrp.c (simplify_conversion_using_ranges): New function.
13256 (simplify_stmt_using_ranges): Call it.
13257
13258 2011-07-07 Kai Tietz <ktietz@redhat.com>
13259
13260 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
13261 (lookup_logical_inverted_value): Likewise.
13262 (simplify_bitwise_binary_1): Likewise.
13263 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
13264
13265 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13266
13267 * gcc.c (%[Spec]): Don't document.
13268 (struct spec_list): Update comment.
13269 (do_spec_1): Don't handle %[Spec].
13270 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
13271
13272 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13273
13274 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
13275 default based on TARGET_ASM_NAMED_SECTION.
13276 * common/common-target.def (have_named_sections): Default to true.
13277 * common/config/default-common.c: Don't include tm.h.
13278 * common/config/picochip/picochip-common.c
13279 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
13280 * common/config/m32c/m32c-common.c: Remove.
13281 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
13282 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13283 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13284 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13285 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13286 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13287 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13288
13289 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13290
13291 PR middle-end/49640
13292 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
13293 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
13294
13295 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13296
13297 PR libmudflap/49550
13298 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
13299
13300 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13301
13302 PR target/39150
13303 * configure.ac (gcc_cv_as_hidden): Also accept
13304 x86_64-*-solaris2.1[0-9]*.
13305 (gcc_cv_as_cfi_directive): Likewise.
13306 (gcc_cv_as_comdat_group_group): Likewise.
13307 (set_have_as_tls): Likewise.
13308 * configure: Regenerate.
13309 * config.gcc (i[34567]86-*-solaris2*): Also handle
13310 x86_64-*-solaris2.1[0-9]*.
13311 * config.host (i[34567]86-*-solaris2*): Likewise.
13312 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13313 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
13314 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
13315 (TARGET_LD_EMULATION): Use it.
13316 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
13317 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
13318 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
13319 (ASM_CPU64_DEFAULT_SPEC): Define.
13320 (ASM_CPU_SPEC): Use %(asm_cpu_default).
13321 (ASM_SPEC): Redefine.
13322 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
13323 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
13324 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
13325 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
13326 configuration.
13327 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
13328
13329 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13330
13331 * config/sol2.h (ASM_SPEC): Split into ...
13332 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
13333 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
13334 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
13335 (ASM_SPEC): Use ASM_SPEC_BASE.
13336 * config/sparc/sol2.h (ASM_SPEC): Redefine.
13337
13338 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
13339
13340 * config/avr/avr.md (*reload_insi): Change predicate #1 to
13341 const_int_operand. Ditto for peep2 producing this insn.
13342 Add argument to output_reload_insisf call.
13343 (*movsi,*movsf): Add argument to output_movsisf call.
13344 (*reload_insf): New insn and new peep2 to produce it.
13345 * config/avr/avr-protos.h (output_movsisf): Change prototype.
13346 (output_reload_insisf): Change prototype.
13347 * config/avr/avr.c (avr_asm_len): New function.
13348 (output_reload_insisf): Rewrite.
13349 (output_movsisf): Change prototype. output_reload_insisf for
13350 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
13351 (adjust_insn_length): Add argument to output_movsisf and
13352 output_reload_insisf call.
13353
13354 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13355
13356 * emit-rtl.c (paradoxical_subreg_p): New function.
13357 * rtl.h (paradoxical_subreg_p): Declare.
13358 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
13359 apply_distributive_law, simplify_comparison, simplify_set): Use it.
13360 * cse.c (record_jump_cond, cse_insn): Likewise.
13361 * expr.c (force_operand): Likewise.
13362 * rtlanal.c (num_sign_bit_copies1): Likewise.
13363 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
13364 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
13365 (push_reload): Use precision to check for paradoxical subregs.
13366 * expmed.c (extract_bit_field_1): Likewise.
13367
13368 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
13369 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
13370 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
13371 simplify_set, simplify_logical, expand_compound_operation,
13372 make_extraction, force_to_mode, if_then_else_cond, extended_count,
13373 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
13374 record_value_for_reg): Likewise.
13375 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
13376 * simplify-rtx. c (simplify_unary_operation_1,
13377 simplify_binary_operation_1, simplify_const_relational_operation):
13378 Likewise.
13379
13380 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
13381 instead of GET_MODE_BITSIZE where appropriate.
13382 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
13383 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
13384 init_num_sign_bit_copies_in_rep): Likewise.
13385 * cse.c (fold_rtx, cse_insn): Likewise.
13386 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
13387 * simplify-rtx.c (simplify_unary_operation_1,
13388 simplify_const_unary_operation, simplify_binary_operation_1,
13389 simplify_const_binary_operation, simplify_ternary_operation,
13390 simplify_const_relational_operation, simplify_subreg): Likewise.
13391 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
13392 simplify_if_then_else, simplify_set, expand_compound_operation,
13393 expand_field_assignment, make_extraction, if_then_else_cond,
13394 make_compound_operation, force_to_mode, make_field_assignment,
13395 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
13396 extended_count, try_widen_shift_mode, simplify_shift_const_1,
13397 simplify_comparison, record_promoted_value, simplify_compare_const,
13398 record_dead_and_set_regs_1): Likewise.
13399
13400 Revert:
13401 * simplify-rtx.c (simplify_const_binary_operation): Use the
13402 shift_truncation_mask hook instead of performing modulo by width.
13403 Compare against mode precision, not bitsize.
13404 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
13405 Use shift_truncation_mask instead of constructing the value manually.
13406
13407 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13408
13409 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
13410 declaration.
13411 (rs6000_save_toc_in_prologue_p): Ditto.
13412
13413 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
13414 up the static chain (r11) during indirect function calls.
13415 (-msave-toc-indirect): New undocumented debug switch.
13416
13417 * config/rs6000/rs6000.c (struct machine_function): Add
13418 save_toc_in_prologue field to note whether the prologue needs to
13419 save the TOC value in the reserved stack location.
13420 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
13421 to save the TOC in the prologue, do so.
13422 (rs6000_trampoline_init): Don't allow creating AIX style
13423 trampolines if -mno-r11 is in effect.
13424 (rs6000_call_indirect_aix): New function to create AIX style
13425 indirect calls, adding support for -mno-r11 to suppress loading
13426 the static chain, and saving the TOC in the prologue instead of
13427 the call body.
13428 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
13429 TOC in the prologue.
13430
13431 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
13432 register numbers.
13433 (TOC_REGNUM): Ditto.
13434 (STATIC_CHAIN_REGNUM): Ditto.
13435 (ARG_POINTER_REGNUM): Ditto.
13436 (SFP_REGNO): Delete, unused.
13437 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
13438 function descriptor offsets.
13439 (TOC_SAVE_OFFSET_64BIT): Ditto.
13440 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
13441 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
13442 (AIX_FUNC_DESC_SC_32BIT): Ditto.
13443 (AIX_FUNC_DESC_SC_64BIT): Ditto.
13444 (ptrload): New mode attribute for the appropriate load of a pointer.
13445 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
13446 (call_indirect_aix64): Ditto.
13447 (call_value_indirect_aix32): Ditto.
13448 (call_value_indirect_aix64): Ditto.
13449 (call_indirect_nonlocal_aix32_internal): Ditto.
13450 (call_indirect_nonlocal_aix32): Ditto.
13451 (call_indirect_nonlocal_aix64_internal): Ditto.
13452 (call_indirect_nonlocal_aix64): Ditto.
13453 (call): Rewrite AIX indirect function calls. Add support for
13454 eliminating the static chain, and for moving the save of the TOC
13455 to the function prologue.
13456 (call_value): Ditto.
13457 (call_indirect_aix<ptrsize>): Ditto.
13458 (call_indirect_aix<ptrsize>_internal): Ditto.
13459 (call_indirect_aix<ptrsize>_internal2): Ditto.
13460 (call_indirect_aix<ptrsize>_nor11): Ditto.
13461 (call_value_indirect_aix<ptrsize>): Ditto.
13462 (call_value_indirect_aix<ptrsize>_internal): Ditto.
13463 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
13464 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
13465 (call_nonlocal_aix32): Relocate in the rs6000.md file.
13466 (call_nonlocal_aix64): Ditto.
13467
13468 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
13469 -mno-r11 documentation.
13470
13471 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13472
13473 PR other/49658
13474 * doc/extend.texi (Compound Literals): Fix typo.
13475
13476 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
13477
13478 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
13479
13480 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
13481
13482 * configure.ac (plugin-version.h): Generate
13483 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
13484 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
13485 macros.
13486
13487 * configure: Regenerate.
13488
13489 * doc/plugins.texi (Building GCC plugins): Mention
13490 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
13491
13492 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13493
13494 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
13495 * combine.c (make_extraction, gen_lowpart_or_truncate,
13496 apply_distributive_law, simplify_comparison,
13497 reg_truncated_to_mode, record_truncated_value): Use it.
13498 * cse.c (notreg_cost): Likewise.
13499 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13500 * expr.c (convert_move, convert_modes): Likewise.
13501 * optabs.c (expand_binop, expand_unop): Likewise.
13502 * postreload.c (move2add_last_label): Likewise.
13503 * regmove.c (optimize_reg_copy_3): Likewise.
13504 * rtlhooks.c (gen_lowpart_general): Likewise.
13505 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
13506
13507 2011-07-06 Joseph Myers <joseph@codesourcery.com>
13508
13509 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
13510
13511 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13512
13513 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
13514 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
13515 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
13516 (simplify_const_unary_operation, simplify_binary_operation_1,
13517 simplify_const_binary_operation, simplify_const_relational_operation):
13518 Use them. Use GET_MODE_MASK for masking and sign-extensions.
13519 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
13520 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
13521 simplify_shift_const_1, simplify_comparison): Likewise.
13522 * expr.c (convert_modes): Likewise.
13523 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
13524 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
13525 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
13526
13527 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
13528
13529 2011-07-06 Richard Guenther <rguenther@suse.de>
13530
13531 PR tree-optimization/49645
13532 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
13533 register variables.
13534 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
13535 in type qualification here ...
13536 (copy_reference_ops_from_ref): ... not here.
13537 (vn_reference_lookup_3): ... or here.
13538 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
13539 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
13540
13541 2011-07-06 Ian Lance Taylor <iant@google.com>
13542
13543 * doc/install.texi (Configuration): It's
13544 --enable-gnu-indirect-function, not --enable-indirect-function.
13545
13546 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13547
13548 * simplify-rtx.c (simplify_const_binary_operation): Use the
13549 shift_truncation_mask hook instead of performing modulo by width.
13550 Compare against mode precision, not bitsize.
13551 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
13552 Use shift_truncation_mask instead of constructing the value manually.
13553
13554 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
13555
13556 PR middle-end/47383
13557 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
13558 address computation and convert to address_mode if needed.
13559
13560 2011-07-06 Richard Guenther <rguenther@suse.de>
13561
13562 * tree.c (build_common_tree_nodes_2): Merge with
13563 build_common_tree_nodes.
13564 * tree.h (build_common_tree_nodes): Adjust prototype.
13565 (build_common_tree_nodes_2): Remove.
13566 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
13567 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
13568
13569 2011-07-05 Jakub Jelinek <jakub@redhat.com>
13570
13571 PR tree-optimization/49618
13572 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
13573 t recurse on the decl.
13574 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
13575 return true if expr isn't known to be defined in current
13576 TU or some other LTO partition.
13577
13578 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13579
13580 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
13581 override CASE_VALUES_THRESHOLD.
13582
13583 * stmt.c (toplevel): Include params.h.
13584 (case_values_threshold): Use the --param case-values-threshold
13585 value if non-zero, otherwise use machine dependent value.
13586 (expand_case): Use case_values_threshold.
13587
13588 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
13589
13590 * doc/invoke.texi (--param case-values-threshold): Document.
13591
13592 2011-07-05 Richard Henderson <rth@redhat.com>
13593
13594 * dwarf2out.c (dwarf2out_cfi_label): Make static.
13595 (dwarf2out_flush_queued_reg_saves): Make static.
13596 (dwarf2out_reg_save): Remove.
13597 (dwarf2out_return_save): Remove.
13598 (dwarf2out_return_reg): Remove.
13599 (dwarf2out_reg_save_reg): Remove.
13600 (dwarf2out_def_cfa): Merge into ...
13601 (dwarf2out_frame_init): ... here.
13602 * dwarf2out.h, tree.h: Remove declarations as necessary.
13603
13604 2011-07-05 Richard Henderson <rth@redhat.com>
13605
13606 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
13607 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13608 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
13609 the alloc insn.
13610
13611 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
13612 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
13613 (process_epilogue): Don't call dwarf2out_def_cfa.
13614
13615 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
13616 indicate the return address save.
13617 (process_cfa_register): Likewise.
13618
13619 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
13620 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
13621
13622 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
13623 for ar.pfs save at alloc insn.
13624
13625 2011-07-05 Richard Henderson <rth@redhat.com>
13626
13627 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
13628 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13629 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
13630 stack pointer save.
13631 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
13632 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
13633 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
13634 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
13635
13636 2011-07-05 Richard Henderson <rth@redhat.com>
13637
13638 * config/vax/vax.md (define_c_enum unspecv): New. Define the
13639 VUNSPEC_* constants here instead of via define_constants.
13640 (VUNSPEC_PEM): New constant.
13641 (procedure_entry_mask): New insn.
13642 (prologue): New expander.
13643 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
13644 (vax_expand_prologue): Rename from vax_output_function_prologue;
13645 emit rtl instead of text.
13646 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
13647 (print_operand): Add 'x' prefix.
13648
13649 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
13650
13651 PR middle-end/47715
13652 * calls.c (precompute_register_parameters): Promote the function
13653 argument before checking non-legitimate constant.
13654
13655 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13656
13657 PR tree-optimization/47654
13658 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
13659 (lst_do_strip_mine_loop): Return an int.
13660 (lst_do_strip_mine): Same.
13661 (scop_do_strip_mine): Same.
13662 (scop_do_block): Loop blocking should strip-mine at least two loops.
13663 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
13664 (scop_do_interchange): Same.
13665 * graphite-poly.h (scop_do_interchange): Update declaration.
13666 (scop_do_strip_mine): Same.
13667
13668 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13669
13670 * graphite-clast-to-gimple.c (precision_for_value): Removed.
13671 (precision_for_interval): Removed.
13672 (gcc_type_for_interval): Use mpz_sizeinbase.
13673
13674 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13675
13676 * graphite-ppl.h (value_max): Correct computation of max.
13677
13678 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13679
13680 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
13681
13682 2011-07-05 Richard Guenther <rguenther@suse.de>
13683
13684 * c-decl.c (c_init_decl_processing): Defer building common
13685 tree nodes to c_common_nodes_and_builtins.
13686
13687 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
13688
13689 PR tree-optimization/49580
13690 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
13691 the loop's number of iterations.
13692 * tree-parloops.c (transform_to_exit_first_loop): Add the
13693 handling of the loop's number of iterations before the call
13694 to gimple_duplicate_sese_tail.
13695 Insert the stmt caclculating the new rhs of the loop's
13696 condition stmt to the preheader instead of iters_bb.
13697
13698 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
13699
13700 PR rtl-optimization/47449
13701 * fwprop.c (forward_propagate_subreg): Don't propagate hard
13702 register nor zero/sign extended hard register.
13703
13704 2011-07-05 Richard Guenther <rguenther@suse.de>
13705
13706 PR tree-optimization/49518
13707 PR tree-optimization/49628
13708 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
13709 irrelevant and invariant data-references.
13710 (vect_analyze_data_ref_access): For invariant loads clear the
13711 group association.
13712
13713 2011-07-04 Jakub Jelinek <jakub@redhat.com>
13714
13715 PR rtl-optimization/49619
13716 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
13717 pass VOIDmode as op0_mode to recursive call, and return temp even
13718 when different from tor, just if it is not IOR of the original
13719 PLUS arguments.
13720
13721 PR rtl-optimization/49472
13722 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
13723 negating MULT, negate the second operand instead of first.
13724 (simplify_binary_operation_1) <case MULT>: If one operand is
13725 a NEG and the other is MULT, don't attempt to optimize by negation
13726 of the MULT operand if it only moves the NEG operation around.
13727
13728 PR debug/49602
13729 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
13730 get_current_def return value if it can't be trusted to be
13731 the current value of the variable in the current bb.
13732
13733 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
13734
13735 PR target/49600
13736 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
13737 general register to memory for !TARGET_INTER_UNIT_MOVES.
13738
13739 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13740
13741 PR target/44643
13742 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
13743 instead of TREE_READONLY.
13744
13745 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13746
13747 * doc/extend.texi (AVR Built-in Functions): Update documentation
13748 of __builtin_avr_fmul*.
13749 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
13750 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
13751 * config/avr/avr.md (fmul): Rename to fmul_insn.
13752 (fmuls): Rename to fmuls_insn.
13753 (fmulsu): Rename to fmulsu_insn.
13754 (fmul,fmuls,fmulsu): New expander.
13755 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
13756 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
13757 * config/avr/libgcc.S (__fmul): New function.
13758 (__fmuls): New function.
13759 (__fmulsu,__fmulsu_exit): New function.
13760
13761 2011-07-04 Richard Guenther <rguenther@suse.de>
13762
13763 PR tree-optimization/49615
13764 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
13765 basic-block index check.
13766
13767 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13768
13769 * longlong.h (count_leading_zeros, count_trailing_zeros,
13770 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
13771 resp. 64.
13772
13773 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
13774
13775 PR tree-optimization/49610
13776 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
13777 a basic block.
13778
13779 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
13780 Olivier Hainque <hainque@adacore.com>
13781 Nicolas Setton <setton@adacore.com>
13782
13783 * tree.h (TYPE_ARTIFICIAL): New flag.
13784 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
13785 the DIE of the type if it is artificial.
13786 (gen_array_type_die): Likewise.
13787 (gen_enumeration_type_die): Likewise.
13788 (gen_struct_or_union_type_die): Likewise.
13789 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
13790 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
13791
13792 2011-07-01 Jakub Jelinek <jakub@redhat.com>
13793
13794 * tree-object-size.c (pass_through_call): Handle
13795 BUILT_IN_ASSUME_ALIGNED.
13796
13797 2011-07-01 Martin Jambor <mjambor@suse.cz>
13798
13799 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
13800
13801 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
13802
13803 PR middle-end/48016
13804 * explow.c (update_nonlocal_goto_save_area): Use proper mode
13805 for stack save area.
13806 * function.c (expand_function_start): Likewise.
13807
13808 2011-07-01 Richard Guenther <rguenther@suse.de>
13809
13810 PR middle-end/49596
13811 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
13812 may have unknown refs.
13813
13814 2011-07-01 Kai Tietz <ktietz@redhat.com>
13815
13816 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
13817
13818 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13819
13820 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
13821 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
13822 (Specific, mips-sgi-irix6): Likewise.
13823
13824 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13825
13826 PR libmudflap/49549
13827 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
13828
13829 2011-07-01 Jakub Jelinek <jakub@redhat.com>
13830
13831 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
13832 [idx]= and [idx1 ... idx2]= before initializers if needed for
13833 array initializers.
13834
13835 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
13836
13837 * config.gcc (score-*-elf): Remove score7.o.
13838 * config/score/t-score-elf: Likewise.
13839 * config/score/score.c: Merge score7 to score.c and
13840 remove forwarding functions.
13841 * config/score/score7.c: Deleted.
13842 * config/score/score7.h: Deleted.
13843
13844 2011-07-01 Richard Guenther <rguenther@suse.de>
13845
13846 PR tree-optimization/49603
13847 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
13848
13849 2011-06-30 Martin Jambor <mjambor@suse.cz>
13850
13851 * tree-sra.c (struct access): Rename total_scalarization to
13852 grp_total_scalarization
13853 (completely_scalarize_var): New function.
13854 (sort_and_splice_var_accesses): Set total_scalarization in the
13855 representative access.
13856 (analyze_access_subtree): Propagate total scalarization accross the
13857 tree, no holes in totally scalarized trees, simplify coverage
13858 computation.
13859 (analyze_all_variable_accesses): Call completely_scalarize_var instead
13860 of completely_scalarize_record.
13861
13862 2011-06-30 Richard Henderson <rth@redhat.com>
13863
13864 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
13865 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
13866 * config/i386/i386.c: Don't include dwarf2out.h.
13867 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
13868 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
13869 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
13870 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
13871 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
13872
13873 2011-06-30 Richard Henderson <rth@redhat.com>
13874
13875 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
13876 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13877 * final.c (final_scan_insn): Look for it, and invoke
13878 dwarf2out_frame_debug before the insn if found.
13879
13880 2011-06-30 Richard Henderson <rth@redhat.com>
13881
13882 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
13883 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
13884
13885 2011-06-30 Richard Henderson <rth@redhat.com>
13886
13887 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
13888 Define a vector of this type.
13889 (regs_saved_in_regs): Use a VEC.
13890 (num_regs_saved_in_regs): Remove.
13891 (compare_reg_or_pc): New.
13892 (record_reg_saved_in_reg): Split out from...
13893 (dwarf2out_flush_queued_reg_saves): ... here.
13894 (clobbers_queued_reg_save): Update for VEC.
13895 (reg_saved_in): Likewise.
13896 (dwarf2out_frame_debug_init): Likewise.
13897 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
13898 (dwarf2out_frame_debug_cfa_register): Likewise.
13899
13900 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13901
13902 PR tree-optimization/49572
13903 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
13904 type of the RHS instead of that of the LHS for the expression type.
13905
13906 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13907
13908 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
13909 unconditionally.
13910
13911 2011-06-30 Richard Guenther <rguenther@suse.de>
13912
13913 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
13914 * tree-ssa-structalias.c (create_variable_info_for): Do not
13915 add initial constraints for non-var-decls. Properly handle
13916 globals in other ltrans partitions.
13917 (intra_create_variable_infos): Manually create constraints for
13918 the fake no-alias parameter.
13919 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
13920 and assert there are no clones.
13921
13922 2011-06-30 Richard Guenther <rguenther@suse.de>
13923
13924 PR tree-optimization/46787
13925 * tree-data-ref.c (dr_address_invariant_p): Remove.
13926 (find_data_references_in_stmt): Invariant accesses are ok now.
13927 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
13928 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
13929 invariant loads.
13930
13931 2011-06-30 Martin Jambor <mjambor@suse.cz>
13932
13933 PR tree-optimization/49094
13934 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
13935 (build_accesses_from_assign): Use it.
13936
13937 2011-06-30 Jakub Jelinek <jakub@redhat.com>
13938
13939 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
13940 handling of BUILT_IN_ASSUME_ALIGNED.
13941
13942 PR debug/49364
13943 * dwarf2out.c (output_abbrev_section): Don't return early
13944 if abbrev_die_table_in_use is 1.
13945 (dwarf2out_finish): Instead don't call output_abbrev_section
13946 nor emit abbrev_section_label in that case.
13947
13948 2011-06-30 Nick Clifton <nickc@redhat.com>
13949
13950 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
13951 for the V850E.
13952
13953 2011-06-30 Jakub Jelinek <jakub@redhat.com>
13954
13955 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
13956 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
13957
13958 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
13959
13960 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
13961 both pattern and original statements if necessary.
13962 (vect_transform_loop): Likewise.
13963 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
13964 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
13965 Mark the pattern statement only if the original statement doesn't
13966 have its own uses.
13967 (process_use): Call vect_mark_relevant with additional parameter.
13968 (vect_mark_stmts_to_be_vectorized): Likewise.
13969 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
13970 (vect_analyze_stmt): Handle both pattern and original statements
13971 if necessary.
13972 (vect_transform_stmt): Don't store vectorized pattern statement
13973 in the original statement.
13974 (vect_is_simple_use_1): Use related pattern statement only if the
13975 original statement is irrelevant.
13976 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
13977
13978 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
13979
13980 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
13981 option.
13982 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
13983 entry.
13984 (TARGET_AVX128_OPTIMAL): New definition.
13985 * config/i386/i386.c (initial_ix86_tune_features): Initialize
13986 X86_TUNE_AVX128_OPTIMAL entry.
13987 (ix86_option_override_internal): Enable the generation
13988 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
13989 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
13990 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
13991
13992 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
13993
13994 PR tree-optimization/49539
13995 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
13996 names by means of stmt_references_abnormal_ssa_name.
13997 (associate_plusminus): Call can_propagate_from before propagating
13998 from definition statements.
13999 (ssa_forward_propagate_and_combine): Remove superfluous newline.
14000
14001 2011-06-29 Richard Guenther <rguenther@suse.de>
14002
14003 * doc/invoke.texi: Document -scev dump modifier.
14004 * tree-pass.h (TDF_SCEV): New dump flag.
14005 * tree-dump.c (dump_option_value_in): Add scev.
14006 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
14007 * tree-scalar-evolution.c: Likewise.
14008
14009 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
14010
14011 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
14012 (cxa_type_match): Correct declaration.
14013 (__gnu_unwind_pr_common): Reconstruct additional indirection
14014 when __cxa_type_match returns succeeded_with_ptr_to_base.
14015
14016 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14017
14018 PR rtl-optimization/49114
14019 * reload.c (struct replacement): Remove SUBREG_LOC member.
14020 (push_reload): Do not set it.
14021 (push_replacement): Likewise.
14022 (subst_reload): Remove dead code.
14023 (copy_replacements): Remove assertion.
14024 (copy_replacements_1): Do not handle SUBREG_LOC.
14025 (move_replacements): Likewise.
14026 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
14027 Detect subregs via recursive descent instead of via SUBREG_LOC.
14028
14029 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14030
14031 * config/avr/avr.c (avr_encode_section_info): Dispatch to
14032 default_encode_section_info.
14033
14034 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
14035
14036 PR tree-optimization/49545
14037 * builtins.c (get_object_alignment_1): Update function comment.
14038 Do not use DECL_ALIGN for functions, but test
14039 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
14040 * fold-const.c (get_pointer_modulus_and_residue): Don't check
14041 for functions here.
14042 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
14043
14044 2011-06-29 Jakub Jelinek <jakub@redhat.com>
14045
14046 PR debug/49567
14047 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
14048 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
14049
14050 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14051
14052 PR target/34734
14053 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
14054 about uninitialized data attributed 'progmem' from here...
14055 (avr_encode_section_info): ...to this new function.
14056 (TARGET_ENCODE_SECTION_INFO): New define.
14057 (avr_section_type_flags): For data in ".progmem.data", remove
14058 section flag SECTION_WRITE.
14059
14060 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14061
14062 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
14063 _xmulhisi3_exit.
14064 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
14065 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
14066 (__umulhisi3): Ditto.
14067 * config/avr/avr.md (mulhisi3): New insn expender.
14068 (umulhisi3): New insn expender.
14069 (*mulhisi3_call): New insn.
14070 (*umulhisi3_call): New insn.
14071
14072 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14073
14074 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
14075
14076 2011-06-28 Richard Henderson <rth@redhat.com>
14077
14078 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
14079 all code and arguments that handled pushes. Update all callers.
14080
14081 2011-06-28 Richard Henderson <rth@redhat.com>
14082
14083 * config/arm/arm.c (arm_output_function_prologue): Don't call
14084 thumb1_output_function_prologue.
14085 (arm_expand_prologue): Avoid dead store.
14086 (number_of_first_bit_set): Use ctz_hwi.
14087 (thumb1_emit_multi_reg_push): New.
14088 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
14089 to emit the entire prologue as rtl.
14090 (thumb1_output_interwork): Split out from
14091 thumb1_output_function_prologue.
14092 (thumb1_output_function_prologue): Remove.
14093 (arm_attr_length_push_multi): Handle thumb1.
14094 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
14095 (prologue_thumb1_interwork): New.
14096 (*push_multi): Allow thumb1; use push_mult_memory_operand.
14097 * config/arm/predicates.md (push_mult_memory_operand): New.
14098
14099 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
14100
14101 * config/sparc/sync.md (*stbar): Delete.
14102 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
14103
14104 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
14105
14106 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
14107
14108 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14109
14110 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
14111 (TARGET_64BIT_DEFAULT): Define.
14112 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
14113 of tm_file.
14114 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
14115
14116 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14117
14118 * common.opt (in_lto_p): New Variable entry.
14119 * flags.h (in_lto_p): Move to common.opt.
14120 * gcc.c: Include params.h.
14121 (set_option_handlers): Also use common_handle_option and
14122 target_handle_option.
14123 (main): Call global_init_params, finish_params and init_options_struct.
14124 * opts.c (debug_type_names): Move from toplev.c.
14125 (print_filtered_help): Access quiet_flag through opts pointer.
14126 (common_handle_option): Return early in the driver for some options.
14127 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
14128 opts pointer.
14129 * toplev.c (in_lto_p): Move to common.opt.
14130 (debug_type_names): Move to opts.c.
14131 * Makefile.in (OBJS): Remove opts.o.
14132 (OBJS-libcommon-target): Add opts.o.
14133 (gcc.o): Update dependencies.
14134
14135 2011-06-28 Kai Tietz <ktietz@redhat.com>
14136
14137 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
14138
14139 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14140
14141 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
14142 with '=' constraint modifier.
14143 (*divdf3_vfp): Likewise.
14144 ("*mulsf3_vfp"): Likewise.
14145 ("*muldf3_vfp"): Likewise.
14146 ("*mulsf3negsf_vfp"): Likewise.
14147 ("*muldf3negdf_vfp"): Likewise.
14148
14149 2011-06-28 Nick Clifton <nickc@redhat.com>
14150
14151 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
14152 relaxation when performing an incremental link.
14153
14154 2011-06-28 Kai Tietz <ktietz@redhat.com>
14155
14156 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
14157 within BB from last to first.
14158
14159 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14160
14161 * genattr-common.c: New. Based on genattr.c.
14162 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
14163 (MOSTLYCLEANFILES): Add insn-attr-common.h.
14164 (opts.o): Update dependencies.
14165 (.PRECIOUS): Add insn-attr-common.h.
14166 (simple_rtl_generated_h): Add insn-attr-common.h.
14167 (build/genattr-common.o): New.
14168 (genprogrtl): Add attr-common.
14169 * genattr.c (main): Include insn-attr-common.h. Don't generate
14170 definitions of DELAY_SLOTS or INSN_SCHEDULING.
14171 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
14172
14173 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
14174
14175 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
14176 avr-*-* and avr-*-rtems* targets.
14177
14178 * config/avr/elf.h: New file.
14179 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
14180 (TARGET_ASM_SELECT_SECTION): Define.
14181 (INIT_SECTION_ASM_OP): Undefine.
14182 (FINI_SECTION_ASM_OP): Undefine.
14183 (READONLY_DATA_SECTION_ASM_OP): Undefine.
14184 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
14185 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
14186 * config/avr/avr.h:
14187 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
14188 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
14189 (MAX_OFILE_ALIGNMENT): Move to elf.h.
14190 (STRING_LIMIT): Move to elf.h.
14191 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
14192 (ASM_DECLARE_OBJECT_NAME): Remove.
14193 (ESCAPES): Remove.
14194 (ASM_OUTPUT_SKIP): Remove.
14195 (DWARF2_DEBUGGING_INFO): Remove.
14196 (OBJECT_FORMAT_ELF): Remove.
14197 (USER_LABEL_PREFIX): Remove.
14198 (ASM_OUTPUT_EXTERNAL): Remove.
14199 (ASM_OUTPUT_ASCII): Remove.
14200 (TYPE_ASM_OP): Remove.
14201 (SIZE_ASM_OP): Remove.
14202 (WEAK_ASM_OP): Remove.
14203 (STRING_ASM_OP): Remove.
14204 (SET_ASM_OP): Remove.
14205 (ASM_WEAKEN_LABEL): Remove.
14206 (TYPE_OPERAND_FMT): Remove.
14207 (ASM_DECLARE_FUNCTION_SIZE): Remove.
14208 (ASM_FINISH_DECLARE_OBJECT): Remove.
14209 (NO_DOLLAR_IN_LABEL): Remove.
14210 (ASM_GENERATE_INTERNAL_LABEL): Remove.
14211 (ASM_OUTPUT_CASE_LABEL): Remove.
14212 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
14213 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
14214 (gas_output_ascii): Remove.
14215 (gas_output_limited_string): Remove.
14216 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
14217 * config/avr/avr-protos.h
14218 (gas_output_ascii): Remove prototye.
14219 (gas_output_limited_string): Remove prototype.
14220
14221 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
14222
14223 PR target/48637
14224 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
14225 asm operands.
14226
14227 2011-06-27 Jan Hubicka <jh@suse.cz>
14228
14229 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
14230 node instead of references in node.
14231
14232 2011-06-27 Richard Henderson <rth@redhat.com>
14233
14234 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
14235 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
14236 inside ifdef.
14237
14238 2011-06-27 Jakub Jelinek <jakub@redhat.com>
14239
14240 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
14241
14242 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
14243 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
14244 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
14245 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
14246 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
14247 (evaluate_stmt, execute_fold_all_builtins): Handle
14248 BUILT_IN_ASSUME_ALIGNED.
14249 * tree-ssa-dce.c (propagate_necessity): Likewise.
14250 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14251 call_may_clobber_ref_p_1): Likewise.
14252 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
14253 (expand_builtin_assume_aligned): New function.
14254 * doc/extend.texi (__builtin_assume_aligned): Document.
14255
14256 PR debug/49544
14257 * cselib.c (promote_debug_loc): If cselib_preserve_constants
14258 and l has two DEBUG_INSN owned locs instead of just one, adjust
14259 the second location's setting_insn too.
14260
14261 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14262
14263 PR libmudflap/38738
14264 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
14265
14266 2011-06-27 Nick Clifton <nickc@redhat.com>
14267
14268 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
14269 bit position of highest bit set into a count of the high zero bits.
14270
14271 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14272
14273 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
14274
14275 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14276
14277 PR lto/48492
14278 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
14279 to a NULL parent.
14280
14281 2011-06-27 Richard Guenther <rguenther@suse.de>
14282
14283 PR tree-optimization/49394
14284 * passes.c (execute_one_pass): Restore current_pass after
14285 applying IPA transforms.
14286
14287 2011-06-27 Kai Tietz <ktietz@redhat.com>
14288
14289 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
14290 out of type precision after operation.
14291 (find_bswap): Take for limit value the integer auto-promotion
14292 into account.
14293
14294 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14295
14296 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
14297 forward scan as well.
14298
14299 2011-06-27 Tristan Gingold <gingold@adacore.com>
14300
14301 PR target/44241
14302 * config/vms/vms-protos.h: New file.
14303 * config/vms/vms-crtlmap.map: New file.
14304 * config/vms/vms.c: New file.
14305 * config/vms/make-crtlmap.awk: New file.
14306 * config/vms/vms-crtl.h: File removed.
14307 * config/vms/vms-crtl-64.h: File removed.
14308 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
14309 * config/alpha/vms64.h: Do not include vms-crtl-64.h
14310 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
14311 clear some builtins on VMS. Calls vms_patch_builtins.
14312 (avms_asm_output_external): Remove.
14313 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
14314 (struct crtl_name_spec): Remove
14315 (DO_CTRL_NAMES): Remove.
14316 * config/ia64/vms.h (struct crtl_name_spec): Remove
14317 (DO_CTRL_NAMES): Remove.
14318 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
14319 clear some builtins on VMS. Calls vms_patch_builtins.
14320 (ia64_asm_output_external): Remove DO_CRTL_NAME.
14321 * config/ia64/vms64.h: Do not include vms-crtl-64.h
14322 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
14323
14324 2011-06-27 Tristan Gingold <gingold@adacore.com>
14325
14326 * config/alpha/alpha.c (alpha_end_function): Always generate .end
14327 directive on VMS.
14328
14329 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14330
14331 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
14332 the function receives nonlocal gotos.
14333
14334 2011-06-27 Richard Guenther <rguenther@suse.de>
14335
14336 PR tree-optimization/49536
14337 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14338 For non-scalar inner types use a scalar type according to
14339 the scalar inner mode.
14340
14341 2011-06-27 Richard Guenther <rguenther@suse.de>
14342
14343 PR tree-optimization/49365
14344 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
14345
14346 2011-06-27 Richard Guenther <rguenther@suse.de>
14347
14348 PR tree-optimization/49169
14349 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
14350 the alignment of function decls.
14351
14352 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
14353
14354 PR target/47997
14355 * config/darwin.c (darwin_mergeable_string_section): Place string
14356 constants in '.cstring' rather than '.const' when CF/NSStrings are
14357 active.
14358
14359 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
14360
14361 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
14362 (emit_save_register_window): Likewise.
14363 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
14364 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
14365 Swap back %o7/%i7 in register naming.
14366
14367 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
14368
14369 PR driver/49371
14370 * config/darwin.c (darwin_override_options): Improve warning when
14371 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
14372 is given with fpie/fPIE.
14373 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
14374 * config/darwin9.h (PIE_SPEC): New.
14375
14376 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
14377
14378 * timevar.c (timevar_print): Increase width for display of timevar
14379 name.
14380
14381 2011-06-24 Jakub Jelinek <jakub@redhat.com>
14382
14383 PR c++/46400
14384 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
14385 instead of TYPE_CHAIN for chain_next for types.
14386
14387 2011-06-24 Richard Henderson <rth@redhat.com>
14388
14389 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
14390 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
14391 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
14392 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
14393 (sparc_flat_expand_prologue): Emit individual instructions
14394 instead of one of the above.
14395
14396 2011-06-24 Easwaran Raman <eraman@google.com>
14397
14398 PR rtl-optimization/49429
14399 PR target/49454
14400 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
14401 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
14402 used to copy y into x.
14403 * calls.c (initialize_argument_information): Mark
14404 an argument addressable if it is passed by invisible reference.
14405 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
14406 if it is passed by reference.
14407
14408 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
14409
14410 PR rtl-optimization/49504
14411 * rtlanal.c (nonzero_bits1): Properly handle addition or
14412 subtraction of a pointer in Pmode if pointers extend unsigned.
14413 (num_sign_bit_copies1): Likewise.
14414
14415 2011-06-24 Martin Jambor <mjambor@suse.cz>
14416
14417 PR tree-optimizations/49516
14418 * tree-sra.c (sra_modify_assign): Choose the safe path for
14419 aggregate copies if we also did scalar replacements.
14420
14421 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14422
14423 PR target/49335
14424 * config/arm/predicates.md (add_operator): New.
14425 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
14426
14427 2011-06-24 Andi Kleen <ak@linux.intel.com>
14428
14429 * tree-sra.c (type_internals_preclude_sra_p): Add msg
14430 parameter. Split up ifs and report reason in *msg.
14431 (reject): Add.
14432 (find_var_candiate): Add msg variable.
14433 Split up ifs and report reason to reject.
14434 (find_param_candidates): Add msg variable.
14435 Pass msg to type_internals_preclude_sra_p.
14436
14437 2011-06-23 Jeff Law <law@redhat.com>
14438
14439 PR middle-end/48770
14440 * reload.h (reload): Change to return a bool.
14441 * ira.c (ira): If requested by reload, run a fast DCE pass after
14442 reload has completed. Fix comment typo.
14443 * reload1.c (need_dce): New file scoped static.
14444 (reload): Set reload_completed here. Return whether or not a DCE
14445 pass after reload is needed.
14446 (delete_dead_insn): Set need_dce as needed.
14447
14448 PR middle-end/49465
14449 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
14450 to detect threading through joiner block. If there was already
14451 an edge to the new target, then do not change the PHI nodes.
14452
14453 2011-06-23 Jakub Jelinek <jakub@redhat.com>
14454
14455 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
14456 get_pointer_alignment to see if base isn't sufficiently aligned.
14457
14458 2011-06-23 Jan Hubicka <jh@suse.cz>
14459
14460 PR tree-optimize/49373
14461 * tree-pass.h (all_late_ipa_passes): Declare.
14462 * cgraphunit.c (init_lowered_empty_function): Fix properties.
14463 (cgraph_optimize): Execute late passes; remove unreachable funcions
14464 after materialization.
14465 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
14466 LTOing.
14467 * passes.c (all_late_ipa_passes): Declare.
14468 (dump_passes, register_pass): Handle late ipa passes.
14469 (init_optimization_passes): Move ipa_pta to late passes; schedule
14470 fixup_cfg at beggining of all_passes.
14471 (apply_ipa_transforms): New function.
14472 (execute_one_pass): When doing simple ipa pass, apply all transforms.
14473
14474 2011-06-23 Joseph Myers <joseph@codesourcery.com>
14475
14476 * params.c: Include common/common-target.h. Don't include tm.h.
14477 (lang_independent_params): Move from toplev.c.
14478 (global_init_params): New.
14479 * params.h (global_init_params): Declare.
14480 * target.def (default_params): Move to common-target.def.
14481 * toplev.c (lang_independent_options): Remove.
14482 (lang_independent_params): Move to params.c.
14483 (general_init): Use global_init_params.
14484 * common/common-target.def (option_default_params): Move from
14485 target.def.
14486 * common/config/ia64/ia64-common.c: Include params.h.
14487 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14488 from ia64.c.
14489 * common/config/rs6000/rs6000-common.c: Include params.h.
14490 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14491 from rs6000.c.
14492 * common/config/sh/sh-common.c: Include params.h.
14493 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14494 from sh.c.
14495 * common/config/spu/spu-common.c: Include params.h.
14496 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14497 from spu.c.
14498 * config/ia64/ia64.c (ia64_option_default_params,
14499 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
14500 * config/rs6000/rs6000.c (rs6000_option_default_params,
14501 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
14502 * config/sh/sh.c (sh_option_default_params,
14503 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
14504 * config/spu/spu.c (spu_option_default_params,
14505 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
14506 * Makefile.in (OBJS): Remove params.o.
14507 (OBJS-libcommon-target): Add params.o.
14508 (params.o, $(common_out_object_file)): Update dependencies.
14509 * doc/tm.texi: Regenerate.
14510
14511 2011-06-23 Alan Modra <amodra@gmail.com>
14512
14513 PR bootstrap/49383
14514 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
14515 invocation for 2011-06-09 changes.
14516
14517 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14518
14519 PR libgomp/49490
14520 * omp-low.c (expand_omp_for_static_nochunk): Only
14521 use n ceil/ nthreads size for the first n % nthreads threads in the
14522 team instead of all threads except for the last few ones which
14523 get less work or none at all.
14524
14525 PR debug/49496
14526 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
14527 uses.
14528
14529 2011-06-22 Richard Guenther <rguenther@suse.de>
14530
14531 PR tree-optimization/49493
14532 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
14533 Refer to the alias target of variables.
14534 (associate_varinfo_to_alias_1): Remove.
14535 (ipa_pta_execute): Do not associate aliases with anything.
14536 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
14537 (cgraph_function_node): Likewise.
14538 (cgraph_function_or_thunk_node): Likewise.
14539 (varpool_variable_node): Likewise.
14540
14541 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
14542
14543 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
14544 * config.gcc (arm*-*-linux*): Default to gnu tls.
14545 (arm*-*-*): Add --with-tls option.
14546 (all_defaults): Add 'tls'.
14547
14548 2011-06-22 Richard Henderson <rth@redhat.com>
14549
14550 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
14551 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
14552 (dwarf2out_frame_debug_cfa_window_save): Rename from
14553 dwarf2out_window_save; make static.
14554 * tree.h (dwarf2out_window_save): Don't declare.
14555
14556 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
14557 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
14558 (emit_save_register_window): Rename from gen_save_register_window;
14559 emit the insn and add REG_CFA_* notes.
14560 (sparc_expand_prologue): Update to match.
14561 * config/sparc/sparc.md (save_register_window_1): Simplify from
14562 save_register_window<P:mode>.
14563
14564 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
14565
14566 PR target/49497
14567 * config/i386/i386.md (*lea_general_2): Always allow SImode.
14568 (*lea_general_2_zext): Likewise.
14569 (imul to lea peepholes): Use const359_operand and check
14570 TARGET_PARTIAL_REG_STALL.
14571
14572 * config/i386/predicates.md (const359_operand): New.
14573
14574 2011-06-22 Michael Matz <matz@suse.de>
14575
14576 * cgraphunit.c (assemble_thunk): Use correct return type.
14577
14578 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
14579 Dmitry Melnik <dm@ispras.ru>
14580
14581 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
14582 (neon_output_shift_immediate): Ditto.
14583 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
14584 prototype.
14585 (neon_output_shift_immediate): Ditto.
14586 * config/arm/neon.md (vashl<mode>3): Modified constraint.
14587 (vashr<mode>3_imm): New insn pattern.
14588 (vlshr<mode>3_imm): Ditto.
14589 (vashr<mode>3): Modified constraint.
14590 (vlshr<mode>3): Ditto.
14591 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
14592 predicate.
14593 (imm_for_neon_rshift_operand): Ditto.
14594 (imm_lshift_or_reg_neon): Ditto.
14595 (imm_rshift_or_reg_neon): Ditto.
14596
14597 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
14598
14599 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14600
14601 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
14602 builtin calls even if likelyvalue is not CONSTANT.
14603 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
14604 Return get_value_for_expr of first operand
14605 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
14606 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14607 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
14608 their non-checking counterparts.
14609 (call_may_clobber_ref_p_1): Likewise.
14610 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
14611 like their non-checking counterparts.
14612 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14613 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
14614 like their non-checking counterparts.
14615 (find_func_clobbers): Likewise.
14616 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
14617 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
14618
14619 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
14620 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
14621 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
14622 of base type reference as argument.
14623 (resolve_addr_in_expr): Likewise. Fix keep computation.
14624 (convert_descriptor_to_signed): Renamed to...
14625 (convert_descriptor_to_mode): ... this. For wider types convert to
14626 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
14627 (typed_binop): New function.
14628 (scompare_loc_descriptor, ucompare_loc_descriptor,
14629 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
14630 default to unsigned type instead of signed.
14631
14632 PR debug/47858
14633 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
14634 (gimple_build_debug_source_bind_stat): New prototype.
14635 (gimple_build_debug_source_bind): Define.
14636 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
14637 gimple_debug_source_bind_get_value,
14638 gimple_debug_source_bind_get_value_ptr,
14639 gimple_debug_source_bind_set_var,
14640 gimple_debug_source_bind_set_value): New inlines.
14641 * gimple.c (gimple_build_debug_source_bind_stat): New function.
14642 * gimple-pretty-print.c (dump_gimple_debug): Handle
14643 GIMPLE_DEBUG_SOURCE_BIND.
14644 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
14645 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14646 * tree-parloops.c (eliminate_local_variables,
14647 separate_decls_in_region): Likewise.
14648 (separate_decls_in_region_debug): Renamed from
14649 separate_decls_in_region_debug_bind. Handle
14650 gimple_debug_source_bind_p.
14651 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
14652 prototypes.
14653 (DECL_HAS_DEBUG_ARGS_P): Define.
14654 (struct tree_function_decl): Add has_debug_args_flag field.
14655 * tree.c (debug_args_for_decl): New variable.
14656 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
14657 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
14658 (rewrite_debug_stmt_uses): New function.
14659 (rewrite_stmt): Use it to rewrite debug stmt uses.
14660 * rtl.def (DEBUG_PARAMETER_REF): New.
14661 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
14662 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
14663 DEBUG_PARAMETER_REF.
14664 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
14665 * print-rtl.c (print_rtx): Likewise.
14666 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
14667 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
14668 debug stmts in the first bb.
14669 * tree-inline.c (remap_ssa_name): If remapping default def
14670 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
14671 a source bind debug stmt.
14672 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
14673 (maybe_move_debug_stmts_to_successors): Likewise.
14674 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
14675 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
14676 debug args vector from old_decl to new_decl.
14677 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
14678 or modified parameters, add debug bind stmts before call
14679 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
14680 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
14681 on DECL_DEBUG_EXPRs from debug args vector.
14682 (expand_debug_source_expr): New function.
14683 (expand_debug_locations): Use it for source bind insns.
14684 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
14685 * var-tracking.c (prepare_call_arguments): Add debug args
14686 to call_arguments if any.
14687 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
14688 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
14689 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
14690 (get_ref_die_offset, parameter_ref_descriptor): New functions.
14691 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
14692 (gen_subprogram_die): Handle parameters identified by
14693 DEBUG_PARAMETER_REF.
14694
14695 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
14696
14697 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
14698 * doc/install.texi (Configuration): Document --with-tls.
14699 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
14700 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
14701 (arm_tls_descseq_addr): New.
14702 (legitimize_tls_address): Add tlsdesc support.
14703 (arm_cannot_copy_insn_p): Check for tlscall.
14704 (arm_emit_tls_decoration): Likewise.
14705 * config/arm/arm.h (TARGET_GNU2_TLS): New.
14706 (OPTION_DEFAULT_SPECS): Add with-tls support.
14707 * config/arm/arm.md (R1_REGNUM): Define.
14708 (tlscall): New.
14709 * config/arm/arm.opt (tls_type): New enumeration type and values.
14710 (mtls-dialect): New switch.
14711 * config/arm/arm-opts.h (enum tls_type): New.
14712
14713 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
14714
14715 * attribs.c (register_attribute): Added assert to check that all
14716 attribute specs are registered with a name that is not empty and
14717 does not start with '_'.
14718 (decl_attributes): Avoid the lookup of the "naked" attribute spec
14719 if the function has no attributes.
14720 * tree.c (is_attribute_with_length_p): Removed.
14721 (is_attribute_p): Removed.
14722 (private_is_attribute_p): New.
14723 (private_lookup_attribute): New.
14724 (lookup_attribute): Removed.
14725 (lookup_ident_attribute): New.
14726 (remove_attribute): Require the first argument to be in the form
14727 'text', not '__text__'. Updated asserts.
14728 (merge_attributes): Use lookup_ident_attributes instead of
14729 lookup_attribute.
14730 (merge_dllimport_decl_attributes): Use remove_attribute.
14731 (attribute_list_contained): Likewise.
14732 (attribute_list_equal): Immediately return 1 if the arguments are
14733 identical pointers.
14734 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
14735 'int'. Require the first argument to be in the form 'text', not
14736 '__text__'. Require the second argument to be an identifier.
14737 (lookup_attribute): Made inline. Require the first argument to be
14738 in the form 'text', not '__text__'.
14739 (private_is_attribute_p, private_lookup_attribute): New.
14740 Updated comments.
14741
14742 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
14743
14744 * builtins.c: Add sync_ or SYNC__ to builtin names.
14745 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
14746 * omp-low.c: Add sync_ or SYNC__ to builtin names.
14747
14748 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
14749
14750 PR target/33049
14751 * config/avr/avr.md (extzv): New expander.
14752 (*extzv): New insn.
14753 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
14754 * config/avr/constraints.md (C04): New constraint.
14755 * doc/md.texi (Machine Constraints): Document it.
14756
14757 2011-06-21 Jakub Jelinek <jakub@redhat.com>
14758
14759 PR middle-end/49489
14760 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
14761 unsignedp argument instead of 1 for clrsb_optab.
14762 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
14763 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
14764 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
14765 * optabs.c (widen_leading): Call widen_operand and expand_unop
14766 with 0 as unsignedp argument instead of 1 for clrsb_optab.
14767 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
14768
14769 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
14770
14771 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
14772
14773 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
14774
14775 * gensupport.c (add_define_attr): New static function.
14776 (is_predicable): Allow multi-alternative lists for the "predicable"
14777 attribute.
14778 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
14779 (process_one_cond_exec): Call alter_attrs_for_insn.
14780 * doc/md.texi (Defining Attributes): Mention some standard names.
14781 (Conditional Execution): Update documentation for "predicable".
14782
14783 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
14784 __builtin_clrsbll): Document.
14785 * doc/rtl.texi (clrsb): New entry.
14786 * optabs.c (widen_leading): Renamed from widen_clz. New argument
14787 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
14788 (expand_unop): Handle clrsb_optab.
14789 (init_optabs): Initialize it.
14790 * optabs.h (enum optab_index): New entry OTI_clrsb.
14791 (clrsb_optab): Define.
14792 * genopinit.c (optabs): Add an entry for it.
14793 * builtins.c (expand_builtin): Handle clrsb builtin functions.
14794 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
14795 BUILT_IN_CLRSBLL): New.
14796 * rtl.def (CLRSB): New code.
14797 * dwarf2out.c (mem_loc_descriptor): Handle it.
14798 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14799 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
14800 and popcount.
14801 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
14802 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
14803 (__ctzDI2): Move declaration.
14804 * config/bfin/bfin.md (clrsbsi2): New expander.
14805 (signbitssi2): Use the CLRSB rtx.
14806 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
14807 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
14808
14809 2011-06-21 Richard Guenther <rguenther@suse.de>
14810
14811 * ipa-inline-transform.c (inline_transform): Fix previous change.
14812
14813 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
14814
14815 PR tree-optimization/49478
14816 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
14817 with constant operand.
14818
14819 2011-06-21 Richard Guenther <rguenther@suse.de>
14820
14821 * ipa-inline-transform.c (inline_transform): Fix typo.
14822
14823 2011-06-21 Richard Guenther <rguenther@suse.de>
14824
14825 PR tree-optimization/49483
14826 * tree-vect-stmts.c (vectorizable_assignment): Also handle
14827 VIEW_CONVERT_EXPR conversions.
14828
14829 2011-06-21 Joseph Myers <joseph@codesourcery.com>
14830
14831 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
14832 * config/avr/avr-tables.opt: New file (generated).
14833 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
14834 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
14835 avr-mcus.def.
14836 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
14837 (avr_option_override): Don't process -mmcu= argument here. Set
14838 avr_current_device using avr_mcu_index.
14839 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
14840 * config/avr/avr.opt (mmcu=): Use Enum.
14841 * config/avr/t-avr (avr-devices.o): Update dependencies.
14842 ($(srcdir)/config/avr/avr-tables.opt): New.
14843 * target.def (help): Remove.
14844 * doc/tm.texi.in (TARGET_HELP): Remove.
14845 * doc/tm.texi: Regenerate.
14846 * opts.c: Don't include target.h.
14847 (common_handle_option): Don't call targetm.help.
14848 * system.h (TARGET_HELP): Poison.
14849 * Makefile.in (opts.o): Update dependencies.
14850
14851 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14852
14853 * config/usegld.h: New file.
14854 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
14855 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
14856 (LIB_SPEC): Likewise. Search /lib.
14857 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
14858 (RDYNAMIC_SPEC): Handle GNU ld.
14859 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
14860 Define.
14861 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
14862 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
14863 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
14864 (STACK_CHECK_STATIC_BUILTIN): Define.
14865 * config/sol2.opt (compat-bsd): Remove.
14866 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
14867 * config/sol2-bi.h: New file.
14868 * config/sol2-gld.h: Remove.
14869 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
14870 (NO_DBX_BNSYM_ENSYM): Remove.
14871 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14872 (STACK_CHECK_STATIC_BUILTIN): Remove.
14873 Test USE_GLD instead of TARGET_GNU_LD.
14874 * config/i386/sol2-10.h: Rename to ...
14875 * config/i386/sol2-bi.h .. this.
14876 (SUBTARGET_EXTRA_SPECS): Redefine.
14877 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
14878 (MULTILIB_DEFAULTS): Remove.
14879 (DEFAULT_ARCH32_P): Define.
14880 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
14881 (ARCH64_SUBDIR): Define.
14882 Test USE_GLD instead of TARGET_GNU_LD.
14883 (I386_EMULATION): Rename to ...
14884 (ARCH32_EMULATION): ... this.
14885 (X86_64_EMULATION): Rename to ...
14886 (ARCH64_EMULATION): ... this.
14887 (TARGET_LD_EMULATION): Remove.
14888 (LINK_ARCH_SPEC): Remove.
14889 * config/i386/sol2-gas.h: Remove.
14890 * config/i386/t-sol2-10: Rename to ...
14891 * config/i386/t-sol2-64: ... this.
14892 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
14893 (AS_SPARC64_FLAG): Define.
14894 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
14895 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
14896 depending on TARGET_CPU_DEFAULT.
14897 (CPP_CPU_SPEC): Redefine.
14898 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
14899 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
14900 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
14901 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
14902 ASM_ARCH_DEFAULT_SPEC): Redefine.
14903 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14904 LINK_ARCH_DEFAULT_SPEC.
14905 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
14906 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
14907 (ARCH64_SUBDIR): Define.
14908 (LINK_ARCH64_SPEC): Redefine.
14909 (CC1_SPEC): Redefine.
14910 (OPTION_DEFAULT_SPECS): Redefine.
14911 (MULTILIB_DEFAULTS): Define.
14912 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
14913 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
14914 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
14915 (NO_DBX_BNSYM_ENSYM): Remove.
14916 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14917 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
14918 (TARGET_ASM_NAMED_SECTION): Likewise.
14919 (STACK_CHECK_STATIC_BUILTIN): Remove.
14920 * config/sparc/sol2-bi.h: Remove.
14921 * config/sparc/sol2-gas-bi.h: Remove.
14922 * config/sparc/sol2-gas.h: Remove.
14923 * config/sparc/sol2-gld-bi.h: Remove.
14924 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
14925 common parts ...
14926 (*-*-solaris2*): ... here.
14927
14928 2011-06-21 Christian Bruel <christian.bruel@st.com>
14929
14930 PR other/43564
14931 * ipa-inline.c (can_inline_edge_p): Check
14932 !DECL_DISREGARD_INLINE_LIMITS.
14933
14934 2011-06-21 Christian Bruel <christian.bruel@st.com>
14935
14936 PR middle-end/49139
14937 * cgraphunit.c (process_function_and_variable_attributes): warn when
14938 always_inline functions that are not inline.
14939 * ipa-inline-transform.c (inline_transform): Always call
14940 optimize_inline.
14941 * tree-inline.c (tree_inlinable_function_p): Use error instead
14942 of sorry.
14943 (expand_call_inline): Likewise.
14944
14945 2011-06-21 Jakub Jelinek <jakub@redhat.com>
14946
14947 * Makefile.in (dg_target_exps): Set.
14948 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
14949 instead of 7, try to divide it more evenly.
14950
14951 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
14952
14953 PR target/49089
14954 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
14955 (avx256_split_unaligned_store): New definition.
14956 (ix86_option_override_internal): Enable avx256 unaligned load/store
14957 splitting only when avx256_split_unaligned_load/store is set.
14958
14959 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
14960
14961 * regrename.c (scan_rtx_reg): Handle the case where we write to an
14962 open chain in a smaller mode without failing the entire block.
14963
14964 2011-06-21 Alan Modra <amodra@gmail.com>
14965
14966 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
14967 CONST high part large-toc address.
14968 (rs6000_tls_referenced_p): Make static.
14969 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
14970
14971 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14972
14973 PR target/49385
14974 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
14975 one of the operands is a register.
14976
14977 2011-06-20 Kai Tietz <ktietz@redhat.com>
14978
14979 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
14980 operations in combination with binary and.
14981
14982 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
14983
14984 * regrename.c (do_replace): Don't update notes.
14985
14986 2011-06-20 Alan Modra <amodra@gmail.com>
14987
14988 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
14989 of toc-relative address in CONST.
14990 (rs6000_delegitimize_address): Recognize changed address.
14991 (rs6000_legitimize_reload_address): Likewise.
14992 (rs6000_emit_move): Don't force these constants to memory.
14993 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
14994 toc-relative address in CONST.
14995 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
14996 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
14997
14998 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
14999
15000 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
15001 (count_trailing_zeros): Likewise.
15002
15003 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
15004
15005 PR other/49325
15006 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
15007 .init_array can be used with .ctors on targets.
15008 * configure: Regenerated.
15009
15010 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
15011
15012 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
15013 if the element type is volatile.
15014
15015 2011-06-18 Jan Hubicka <jh@suse.cz>
15016
15017 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
15018 extra name aliases.
15019 (lto_symtab_resolve_can_prevail_p): Likewise.
15020 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
15021 * cgraphbuild.c (record_reference): Remove extra body alias code.
15022 (mark_load): Likewise.
15023 (mark_store): Likewise.
15024 * cgraph.h (varpool_node): Remove extra_name filed;
15025 add alias_of and extraname_alias.
15026 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
15027 (varpool_alias_aliased_node): New inline function.
15028 (varpool_variable_node): New function.
15029 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
15030 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
15031 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
15032 (input_varpool_node): Likewise.
15033 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
15034 (varpool_externally_visible_p): Remove extra body alias code.
15035 (function_and_variable_visibility): Likewise.
15036 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
15037 (ipa_pta_execute): Use it.
15038 * varpool.c (varpool_remove_node): Remove extra name alias code.
15039 (varpool_mark_needed_node): Likewise.
15040 (varpool_analyze_pending_decls): Analyze aliases.
15041 (assemble_aliases): New functoin.
15042 (varpool_assemble_decl): Use it.
15043 (varpool_create_variable_alias): New function.
15044 (varpool_extra_name_alias): Rewrite.
15045 (varpool_for_node_and_aliases): New function.
15046
15047 2011-06-18 Jakub Jelinek <jakub@redhat.com>
15048
15049 PR target/49411
15050 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
15051 last_arg_constant and last argument doesn't match its predicate,
15052 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
15053 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
15054 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
15055 spelling of error message.
15056 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
15057 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
15058 const_0_to_255_operand instead of const_int_operand.
15059
15060 Revert:
15061 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
15062
15063 * config/i386/sse.md (blendbits): Remove mode attribute.
15064 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
15065 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
15066 Check integer value of operand 3 in insn constraint.
15067
15068 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
15069
15070 PR rtl-optimization/48542
15071 * reload.c (find_equiv_reg): Stop looking when finding a
15072 setjmp-type call.
15073 * reload1.c (reload_as_needed): Invalidate all reload
15074 registers when crossing a setjmp-type call.
15075
15076 2011-06-16 Jeff Law <law@redhat.com>
15077
15078 * tree-ssa-threadupdate.c (struct redirection_data): New field
15079 intermediate_edge.
15080 (THREAD_TARGET2): Define.
15081 (redirection_data_eq): Also check that the intermediate edge is equal.
15082 (lookup_redirection_data): Drop useless argument. Extract the
15083 outgoing_edge and intermediate edge from E. Callers updated.
15084 (copy_phi_args, update_destination_phis): New functions.
15085 (fix_duplicate_block_edges): Likewise.
15086 (create_edge_and_update_destination_phis): Duplicate all the edges
15087 hung off e->aux. Use copy_phi_args.
15088 (create_duplicates): Use fix_duplicate_block_edges.
15089 (fixup_template_block): Likewise.
15090 (redirect_edges): If necessary, redirect the joiner block's incoming
15091 edge to the duplicate of the joiner block.
15092 (thread_block): Don't muck up loops when threading through a joiner
15093 block.
15094 (thread_through_loop_header): Handle threading through a joiner block.
15095 (mark_threaded_blocks, register_jump_thread): Likewise.
15096 * tree-flow.h (register_jump_thread): Add new argument. Callers
15097 updated.
15098 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
15099 (thread_across_edge): Handle threading through a joiner block.
15100
15101 2011-06-16 Martin Jambor <mjambor@suse.cz>
15102
15103 PR tree-optimization/49343
15104 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
15105 calculate offset, provide 2nd operand for the new COMPONENT_REF.
15106
15107 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
15108
15109 * config/darwin-protos.h (machopic_select_rtx_section): Move to
15110 inside RTX_CODE ifdef.
15111
15112 2011-06-16 Tom de Vries <tom@codesourcery.com>
15113
15114 PR target/45098
15115 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
15116 Disallow NULL pointer for pointer arithmetic.
15117
15118 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15119
15120 PR target/49398
15121 Revert.
15122 2011-06-10 Wei Guozhi <carrot@google.com>
15123
15124 PR target/45335
15125 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
15126 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
15127 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
15128 related peephole2.
15129 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
15130 related peephole2.
15131 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
15132 (arm_legitimate_ldrd_p): New prototype.
15133 (arm_output_ldrd): New prototype.
15134 * config/arm/arm.c (arm_check_ldrd_operands): New function.
15135 (arm_legitimate_ldrd_p): New function.
15136 (arm_output_ldrd): New function.
15137
15138 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
15139
15140 PR middle-end/46500
15141 * doc/tm.texi.in: Update Copyright date.
15142 * doc/tm.texi: Regenerate.
15143 * targhooks.c (default_setup_incoming_varargs): Replace
15144 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15145 (default_pretend_outgoing_varargs_named): Likewise.
15146 (hook_pass_by_reference_must_pass_in_stack): Likewise.
15147 (hook_callee_copies_named): Likewise.
15148 (default_function_arg_advance): Likewise.
15149 (default_function_arg): Likewise.
15150 (default_function_incoming_arg): Likewise.
15151 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
15152 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
15153 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
15154 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15155 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
15156 * targhooks.h (default_setup_incoming_varargs): Likewise.
15157 (default_pretend_outgoing_varargs_named): Likewise.
15158 (hook_pass_by_reference_must_pass_in_stack): Likewise.
15159 (hook_callee_copies_named): Likewise.
15160 (default_function_arg_advance): Likewise.
15161 (default_function_arg): Likewise.
15162 (default_function_incoming_arg): Likewise.
15163 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
15164 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
15165 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
15166 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15167 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
15168 * target.def (pass_by_reference): Likewise.
15169 (setup_incoming_varargs, strict_argument_naming): Likewise.
15170 (pretend_outgoing_varargs_named, callee_copies): Likewise.
15171 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
15172 (function_incoming_arg): Likewise.
15173 * target.h: Don't include "tm.h" .
15174 (cumulative_args_t): New typedef.
15175 [GCC_TM_H] (get_cumulative_args): New static inline function.
15176 [GCC_TM_H] (pack_cumulative_args): Likewise.
15177 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
15178 argument type with cumulative_args_t.
15179 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
15180 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
15181 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15182 (frv_arg_partial_bytes, frv_function_arg): Likewise.
15183 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
15184 (frv_function_arg_1): Likewise.
15185 * config/s390/s390.c (s390_pass_by_reference): Likewise.
15186 (s390_function_arg_advance, s390_function_arg): Likewise.
15187 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15188 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
15189 (m32c_strict_argument_naming): Likewise.
15190 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
15191 (spu_function_arg_advance): Likewise.
15192 (spu_setup_incoming_varargs): Likewise. Make static.
15193 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
15194 Remove prototype.
15195 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
15196 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15197 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
15198 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
15199 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
15200 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
15201 (mep_pass_by_reference, mep_function_arg): Likewise.
15202 (mep_function_arg_advance): Likewise.
15203 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15204 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
15205 (m32r_function_arg, m32r_function_arg_advance): Likewise.
15206 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
15207 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15208 (ix86_function_arg, ix86_pass_by_reference): Likewise.
15209 (ix86_setup_incoming_varargs): Likewise.
15210 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15211 (sh_strict_argument_naming): Likewise.
15212 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
15213 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
15214 (sh_function_arg_advance, sh_function_arg): Likewise.
15215 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15216 (pdp11_function_arg_advance): Likewise.
15217 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15218 Likewise.
15219 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
15220 * config/avr/avr.c (avr_function_arg): Likewise.
15221 (avr_function_arg_advance): Likewise.
15222 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15223 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
15224 (xtensa_function_arg_1): Likewise.
15225 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
15226 Likewise.
15227 (xstormy16_function_arg): Likewise.
15228 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15229 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15230 (fr30_function_arg_advance): Likewise.
15231 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15232 (lm32_function_arg, lm32_function_arg_advance): Likewise.
15233 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15234 (moxie_function_arg, moxie_function_arg_advance): Likewise.
15235 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
15236 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15237 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
15238 (cris_function_arg, cris_function_incoming_arg): Likewise.
15239 (cris_function_arg_advance, cris_function_arg_1): Likewise.
15240 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15241 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
15242 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
15243 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15244 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
15245 (mn10300_arg_partial_bytes): Likewise.
15246 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15247 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
15248 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
15249 (ia64_function_arg_1): Likewise.
15250 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15251 (m68k_function_arg): Likewise.
15252 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
15253 (rs6000_function_arg, setup_incoming_varargs): Likewise.
15254 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
15255 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
15256 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
15257 (picochip_arg_advance): Likewise.
15258 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15259 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
15260 (mcore_function_arg_advance): Likewise.
15261 * config/score/score.c (score_pass_by_reference): Likewise.
15262 (score_function_arg_advance): Likewise.
15263 (score_arg_partial_bytes): Likewise. Make static.
15264 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
15265 * config/arm/arm.c (arm_arg_partial_bytes): Replace
15266 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15267 (arm_function_arg, arm_function_arg_advance): Likewise.
15268 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
15269 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15270 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
15271 (pa_function_arg): Likewise.
15272 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
15273 (mips_function_arg, mips_function_arg_advance): Likewise.
15274 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
15275 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
15276 * config/vax/vax.c (vax_function_arg): Likewise.
15277 (vax_function_arg_advance): Likewise.
15278 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15279 (h8300_function_arg_advance): Likewise.
15280 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15281 (v850_strict_argument_naming, v850_function_arg): Likewise.
15282 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
15283 (v850_setup_incoming_varargs): Likewise.
15284 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15285 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
15286 (mmix_function_arg, mmix_pass_by_reference): Likewise.
15287 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
15288 with const void *.
15289 * config/bfin/bfin.c (setup_incoming_varargs): Replace
15290 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15291 (bfin_function_arg_advance, bfin_function_arg): Likewise.
15292 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
15293 * calls.c (emit_call_1): Change type of args_so_far to
15294 cumulative_args_t. Changed all callers.
15295 (initialize_argument_information): Likewise.
15296 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
15297 * dse.c (get_call_args): Likewise.
15298 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15299 * function.c (pass_by_reference, reference_callee_copied): Likewise.
15300 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
15301 New member args_so_far_v. Changed all users.
15302 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
15303 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15304 * config/mips/mips.c (mips_output_args_xfer): Likewise.
15305 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15306 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15307 * config/microblaze/microblaze.c (microblaze_expand_prologue):
15308 Likewise.
15309 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
15310 m32r_pass_by_reference.
15311
15312 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
15313
15314 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
15315 argument to be a VEC of statements.
15316 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
15317 assert that pattern statements have to have their vector type set.
15318 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
15319 Change the first argument to be a VEC of statements. Update
15320 documentation.
15321 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
15322 (vect_handle_widen_mult_by_const): New function.
15323 (vect_recog_widen_mult_pattern): Change the first argument to be a
15324 VEC of statements. Update documentation. Check that the constant is
15325 INTEGER_CST. Support multiplication by a constant that fits an
15326 intermediate type - call vect_handle_widen_mult_by_const.
15327 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
15328 call. Handle additional pattern statements if necessary.
15329
15330 2011-06-16 Nick Clifton <nickc@redhat.com>
15331
15332 PR target/49427
15333 * config.gcc: Set cpu_type to v850 for any V850 architecture.
15334 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
15335 md_file, extra_modes, out_file and extra_options are these are all
15336 deduced from cpu_type.
15337
15338 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
15339
15340 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
15341 truncation mask to 63.
15342
15343 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
15344
15345 PR target/49313
15346 PR target/29524
15347 * longlong.h: Add AVR support:
15348 (count_leading_zeros): New macro.
15349 (count_trailing_zeros): New macro.
15350 (COUNT_LEADING_ZEROS_0): New macro.
15351 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
15352 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
15353 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
15354 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
15355 (LIB2FUNCS_EXCLUDE): Add _clz.
15356 * config/avr/libgcc.S (XCALL): Move up in file.
15357 (XJMP): New C Macro.
15358 (DEFUN): New asm macro.
15359 (ENDF): New asm macro.
15360 (__ffssi2): New function.
15361 (__ffshi2): New function.
15362 (__loop_ffsqi2): New function.
15363 (__ctzsi2): New function.
15364 (__ctzhi2): New function.
15365 (__clzdi2): New function.
15366 (__clzsi2): New function.
15367 (__clzhi2): New function.
15368 (__paritydi2): New function.
15369 (__paritysi2): New function.
15370 (__parityhi2): New function.
15371 (__parityqi2): New function.
15372 (__popcounthi2): New function.
15373 (__popcountsi2): New function.
15374 (__popcountdi2): New function.
15375 (__popcountqi2): New function.
15376 (__bswapsi2): New function.
15377 (__bswapdi2): New function.
15378 (__ashldi3): New function.
15379 (__ashrdi3): New function.
15380 (__lshrdi3): New function.
15381 Fix suspicous lines.
15382
15383 2011-06-16 Richard Guenther <rguenther@suse.de>
15384
15385 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
15386 the same as x != 0.
15387 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
15388 to (bool) X & 1.
15389 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
15390 equality compares against zero for the lower bit.
15391
15392 2011-06-16 Jakub Jelinek <jakub@redhat.com>
15393
15394 PR tree-optimization/49419
15395 * tree-vrp.c (execute_vrp): Call init_range_assertions
15396 before estimate_numbers_of_iterations, call
15397 free_number_of_iterations_estimates before calling
15398 remove_range_assertions.
15399
15400 2011-06-16 Revital Eres <revital.eres@linaro.org>
15401
15402 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
15403 (struct partial_schedule): Add rows_length field.
15404 (verify_partial_schedule): Check rows_length.
15405 (ps_insert_empty_row): Handle rows_length.
15406 (create_partial_schedule): Likewise.
15407 (free_partial_schedule): Likewise.
15408 (reset_partial_schedule): Likewise.
15409 (create_ps_insn): Remove rest_count argument.
15410 (remove_node_from_ps): Update rows_length.
15411 (add_node_to_ps): Update rows_length and call create_ps_insn
15412 without passing row_rest_count.
15413 (rotate_partial_schedule): Update rows_length.
15414
15415 2011-06-16 Revital Eres <revital.eres@linaro.org>
15416
15417 * ddg.c (add_intra_loop_mem_dep): New function.
15418 (build_intra_loop_deps): Call it.
15419
15420 2011-06-13 Jeff Law <law@redhat.com>
15421
15422 * df-problems.c (df_lr_local_compute): Manually CSE
15423 PIC_OFFSET_TABLE_REGNUM.
15424 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
15425 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
15426
15427 2011-06-13 Jan Hubicka <jh@suse.cz>
15428
15429 * cgraphunit.c (handle_alias_pairs): New function.
15430 (cgraph_finalize_compilation_unit): Use it.
15431 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
15432 as externally visible.
15433
15434 2011-06-15 Richard Guenther <rguenther@suse.de>
15435
15436 * expr.c (expand_expr_real_2): Reduce all integral types to
15437 bitfield precision.
15438 (expand_expr_real_1): Likewise.
15439
15440 2011-06-15 Martin Jambor <mjambor@suse.cz>
15441
15442 PR tree-optimization/48613
15443 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
15444 ipa_node_params_vector is NULL.
15445
15446 2011-06-15 Jakub Jelinek <jakub@redhat.com>
15447
15448 PR debug/49382
15449 * dwarf2out.c (dw_loc_list_node): Add force field.
15450 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
15451 location in the list, even if it is modified before first real insn.
15452 (output_loc_list): Emit empty ranges with force flag set.
15453 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
15454
15455 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
15456
15457 PR target/49349
15458 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
15459 (fence_to_rewind). Use it to notice when bookkeeping will be placed
15460 above a fence. Update comments.
15461 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
15462 placed just above it. Do not allow NULL place_to_insert.
15463
15464 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
15465
15466 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
15467 (slpeel_tree_peel_loop_to_edge): Don't call
15468 remove_dead_stmts_from_loop.
15469 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15470 remove irrelevant pattern statements. For irrelevant statements
15471 check if it is the last statement of a detected pattern, use
15472 corresponding pattern statement instead.
15473 (destroy_loop_vec_info): No need to remove pattern statements,
15474 only free stmt_vec_info.
15475 (vect_transform_loop): For irrelevant statements check if it is
15476 the last statement of a detected pattern, use corresponding
15477 pattern statement instead.
15478 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
15479 pattern statements. Set basic block for the new statement.
15480 (vect_pattern_recog): Update documentation.
15481 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
15482 operands of pattern statements.
15483 (vectorizable_call): Fix printing. In case of a pattern statement
15484 use the lhs of the original statement when creating a dummy
15485 statement to replace the original call.
15486 (vect_analyze_stmt): For irrelevant statements check if it is
15487 the last statement of a detected pattern, use corresponding
15488 pattern statement instead.
15489 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
15490 statements use gsi of the original statement.
15491
15492 2011-06-14 Joseph Myers <joseph@codesourcery.com>
15493
15494 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
15495 common/common-target-def.h.
15496 * target.def (default_target_flags, handle_option,
15497 supports_split_stack, optimization_table, init_struct,
15498 except_unwind_info, unwind_tables_default, have_named_sections):
15499 Move to common/common-target.def.
15500 * target.h (enum opt_levels, struct default_options): Move to
15501 common/common-target.h.
15502 * targhooks.c (default_except_unwind_info,
15503 dwarf2_except_unwind_info, sjlj_except_unwind_info,
15504 default_target_handle_option, empty_optimization_table): Move to
15505 common/common-targhooks.c.
15506 * targhooks.h (default_except_unwind_info,
15507 dwarf2_except_unwind_info, sjlj_except_unwind_info,
15508 default_target_handle_option, empty_optimization_table): Move to
15509 common/common-targhooks.h.
15510 * common/common-target-def.h: Include common/common-targhooks.h.
15511 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
15512 defined.
15513 * common/common-target.def (handle_option, option_init_struct,
15514 option_optimization_table, default_target_flags,
15515 except_unwind_info, supports_split_stack, unwind_tables_default,
15516 have_named_sections): Move from target.def.
15517 (HOOK_PREFIX): Undefine at end of file.
15518 * common/common-target.h: Include input.h.
15519 (enum opt_levels, struct default_options): Move from target.h.
15520 * common/common-targhooks.c, common/common-targhooks.h: New.
15521 * config.gcc (target_has_targetm_common): Default to yes.
15522 (moxie*): Set target_has_targetm_common=no.
15523 (hppa*-*-*): Don't set target_has_targetm_common=yes.
15524 * doc/tm.texi: Regenerate.
15525 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
15526 (C_TARGET_DEF_H): Add common/common-targhooks.h.
15527 (GCC_OBJS): Remove vec.o.
15528 (OBJS): Remove hooks.o and vec.o.
15529 (OBJS-libcommon-target): Add vec.o, hooks.o and
15530 common/common-targhooks.o.
15531 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
15532 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
15533 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
15534 cfglayout.o, $(out_object_file), $(common_out_object_file)):
15535 Update dependencies.
15536 (common/common-targhooks.o): New.
15537 * common/config/default-common.c: Include tm.h. Add FIXME comment.
15538 * common/config/pa/pa-common.c: Include more headers. Take
15539 copyright dates from pa.c.
15540 (pa_option_optimization_table, pa_handle_option,
15541 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
15542 TARGET_HANDLE_OPTION): Move from pa.c.
15543 * common/config/alpha/alpha-common.c,
15544 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
15545 common/config/bfin/bfin-common.c,
15546 common/config/cris/cris-common.c,
15547 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
15548 common/config/h8300/h8300-common.c,
15549 common/config/i386/i386-common.c,
15550 common/config/ia64/ia64-common.c,
15551 common/config/iq2000/iq2000-common.c,
15552 common/config/lm32/lm32-common.c,
15553 common/config/m32c/m32c-common.c,
15554 common/config/m32r/m32r-common.c,
15555 common/config/m68k/m68k-common.c,
15556 common/config/mcore/mcore-common.c,
15557 common/config/mep/mep-common.c,
15558 common/config/microblaze/microblaze-common.c,
15559 common/config/mips/mips-common.c,
15560 common/config/mmix/mmix-common.c,
15561 common/config/mn10300/mn10300-common.c,
15562 common/config/pdp11/pdp11-common.c,
15563 common/config/picochip/picochip-common.c,
15564 common/config/rs6000/rs6000-common.c,
15565 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
15566 common/config/score/score-common.c, common/config/sh/sh-common.c,
15567 common/config/sparc/sparc-common.c,
15568 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
15569 common/config/vax/vax-common.c,
15570 common/config/xstormy16/xstormy16-common.c,
15571 common/config/xtensa/xtensa-common.c: New.
15572 * config/alpha/alpha.c: Include common/common-target.h.
15573 (alpha_option_optimization_table, alpha_handle_option,
15574 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15575 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
15576 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
15577 * config/arm/arm.c (arm_option_optimization_table,
15578 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15579 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
15580 arm-common.c.
15581 * config/avr/avr.c (avr_option_optimization_table,
15582 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
15583 to avr-common.c.
15584 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
15585 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
15586 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
15587 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
15588 * config/cris/cris.c (cris_option_optimization_table,
15589 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15590 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
15591 cris-common.c.
15592 * config/fr30/fr30.c (fr30_option_optimization_table,
15593 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
15594 to fr30-common.c.
15595 * config/frv/frv.c (frv_option_optimization_table,
15596 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
15597 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
15598 * config/h8300/h8300.c (h8300_option_optimization_table,
15599 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15600 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
15601 * config/i386/i386-protos.h (ix86_handle_option): Declare.
15602 * config/i386/i386.c: Include common/common-target.h.
15603 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
15604 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
15605 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
15606 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
15607 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
15608 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
15609 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
15610 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
15611 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
15612 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
15613 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
15614 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
15615 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
15616 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
15617 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
15618 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
15619 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
15620 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
15621 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
15622 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
15623 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
15624 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
15625 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
15626 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
15627 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
15628 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
15629 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
15630 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
15631 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
15632 ix86_option_optimization_table, ix86_option_init_struct,
15633 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
15634 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15635 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
15636 i386-common.c.
15637 * config/i386/t-i386 (i386.o): Update dependencies.
15638 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
15639 * config/ia64/ia64.c (ia64_option_optimization_table,
15640 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
15641 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15642 ia64_handle_option): Move to ia64-common.c.
15643 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
15644 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
15645 * config/lm32/lm32.c (lm32_option_optimization_table,
15646 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
15647 to lm32-common.c.
15648 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
15649 m32c-common.c.
15650 * config/m32r/m32r.c (m32r_option_optimization_table,
15651 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15652 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
15653 m32r_handle_option): Move to m32r-common.c.
15654 (m32r_memory_move_cost): Remove comment referring to
15655 TARGET_HANDLE_OPTION.
15656 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
15657 Move to m68k-common.c.
15658 * config/mcore/mcore.c (mcore_option_optimization_table,
15659 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15660 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
15661 * config/mep/mep.c (mep_option_optimization_table,
15662 mep_handle_option, TARGET_HANDLE_OPTION,
15663 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
15664 Move to mep-common.c.
15665 * config/microblaze/microblaze.c
15666 (microblaze_option_optimization_table,
15667 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15668 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
15669 * config/mips/mips.c (mips_handle_option,
15670 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
15671 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
15672 mips-common.c.
15673 * config/mmix/mmix.c (mmix_option_optimization_table,
15674 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
15675 Move to mmix-common.c.
15676 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
15677 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
15678 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15679 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
15680 * config/pa/pa.c: Include common/common-target.h.
15681 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
15682 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15683 pa_handle_option): Move to pa-common.c.
15684 (pa_option_override): Use targetm_common.except_unwind_info.
15685 (pa_asm_output_mi_thunk, pa_function_section): Use
15686 targetm_common.have_named_sections.
15687 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
15688 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15689 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
15690 pdp11_handle_option, pdp11_option_init_struct): Move to
15691 pdp11-common.c.
15692 * config/picochip/picochip.c (picochip_option_optimization_table,
15693 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
15694 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
15695 * config/rs6000/rs6000.c: Include common/common-target.h.
15696 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
15697 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
15698 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
15699 rs6000_handle_option): Move to rs6000-common.c.
15700 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15701 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
15702 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15703 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
15704 * config/s390/s390.c (processor_flags_table,
15705 s390_option_optimization_table, s390_option_init_struct,
15706 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
15707 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15708 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
15709 * config/s390/s390.h (processor_flags_table): Declare.
15710 * config/score/score.c (score_option_optimization_table,
15711 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15712 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
15713 score_handle_option): Move to score-common.c.
15714 * config/sh/sh.c (sh_option_optimization_table,
15715 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
15716 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15717 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
15718 * config/sparc/sparc.c: Include common/common-target.h.
15719 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
15720 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
15721 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
15722 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
15723 spu_option_init_struct): Move to spu-common.c.
15724 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
15725 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
15726 * config/v850/v850.c (small_memory_physical_max,
15727 v850_handle_memory_optionn v850_handle_option,
15728 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
15729 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
15730 v850-common.c.
15731 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
15732 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
15733 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
15734 Move to xtensa-common.c.
15735 * cfglayout.c: Include common/common-target.h.
15736 (fixup_reorder_chain): Use targetm_common.have_named_sections.
15737 * cfgrtl.c: Include common/common-target.h.
15738 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
15739 targetm_common.have_named_sections.
15740 * dbxout.c: Include common/common-target.h.
15741 (dbxout_function_end): Use targetm_common.have_named_sections.
15742 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
15743 targetm_common.except_unwind_info.
15744 * dwarf2out.c: Include common/common-target.h.
15745 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
15746 dwarf2out_begin_prologue, dwarf2out_frame_init,
15747 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
15748 targetm_common.except_unwind_info.
15749 * except.c: Include common/common-target.h.
15750 (init_eh, finish_eh_generation,
15751 output_one_function_exception_table): Use
15752 targetm_common.except_unwind_info.
15753 (switch_to_exception_section): Use targetm_common.have_named_sections.
15754 * explow.c: Include common/common-target.h.
15755 * expr.c: Include common/common-target.h.
15756 (build_personality_function): Use targetm_common.except_unwind_info.
15757 * function.c: Include common/common-target.h.
15758 (expand_function_end): Use targetm_common.except_unwind_info.
15759 * haifa-sched.c: Include common/common-target.h.
15760 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
15761 * lto-opts.c: Include common/common-target.h instead of target.h.
15762 (lto_reissue_options): Use targetm_common.handle_option.
15763 * opts.c: Include common/common-target.h.
15764 (target_handle_option): Use targetm_common.handle_option.
15765 (init_options_struct): Update comment referring to
15766 targetm.target_option.optimization. Use
15767 targetm_common.default_target_flags,
15768 targetm_common.unwind_tables_default and
15769 targetm_common.option_init_struct.
15770 (default_options_optimization): Use
15771 targetm_common.option_optimization_table.
15772 (finish_options): Use targetm_common.except_unwind_info,
15773 targetm_common.unwind_tables_default,
15774 targetm_common.have_named_sections and
15775 targetm_common.supports_split_stack.
15776 * toplev.c: Include common/common-target.h.
15777 (process_options): Use targetm_common.have_named_sections.
15778 * tree-tailcall.c: Include common/common-target.h.
15779 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
15780 * tree.c: Include common/common-target.h.
15781 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
15782 * varasm.c: Include common/common-target.h.
15783 (resolve_unique_section, hot_function_section,
15784 default_function_section): Use targetm_common.have_named_sections.
15785
15786 2011-06-14 Easwaran Raman <eraman@google.com>
15787
15788 PR rtl-optimization/44194
15789 * dse.c: Include tree-flow.h
15790 (insn_info): Add new field non_frame_wild_read.
15791 (group_info): Add new fields escaped_n and escaped_p.
15792 (kill_on_calls): New variable.
15793 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
15794 (dse_step0): Initialize kill_on_calls.
15795 (can_escape): New function.
15796 (set_usage_bits): Add additional parameter; record information
15797 about escaped locations.
15798 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
15799 (dse_step2_nospill): Set kill_on_calls based on
15800 group->escaped_n and group->escaped_n.
15801 (add_wild_read): Refactor into...
15802 (reset_active_stores): ... New function, and
15803 (free_read_records): ... New function.
15804 (add_non_frame_wild_read): New function.
15805 (scan_insn): Call add_non_frame_wild_read on non-const calls.
15806 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
15807 (dse_step5_nospill): Call scan_reads_nospill for instructions
15808 marked as non_frame_wild_read.
15809 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
15810
15811 2011-06-14 Joseph Myers <joseph@codesourcery.com>
15812
15813 * common/common-target-def.h, common/common-target.def,
15814 common/common-target.h, common/config/default-common.c,
15815 common/config/pa/pa-common.c: New files.
15816 * Makefile.in (common_out_file, common_out_object_file,
15817 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
15818 (OBJS-libcommon-target): Include $(common_out_object_file).
15819 (prefix.o): Update dependencies.
15820 ($(common_out_object_file), common/common-target-hooks-def.h,
15821 s-common-target-hooks-def-h): New.
15822 (s-tm-texi): Also check timestamp on common-target.def.
15823 (build/genhooks.o): Update dependencies.
15824 * config.gcc (common_out_file, target_has_targetm_common): Define.
15825 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
15826 TARGET_ALWAYS_STRIP_DOTDOT.
15827 * configure.ac (common_out_object_file): Define.
15828 (common_out_file, common_out_object_file): Substitute.
15829 (common): Create directory.
15830 * configure: Regenerate.
15831 * doc/tm.texi.in (targetm_common): Document.
15832 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
15833 * doc/tm.texi: Regenerate.
15834 * genhooks.c (hook_array): Also include common/common-target.def.
15835 * prefix.c (tm.h): Don't include.
15836 (common/common-target.h): Include.
15837 (ALWAYS_STRIP_DOTDOT): Don't define.
15838 (update_path): Use targetm_common.always_strip_dotdot instead of
15839 ALWAYS_STRIP_DOTDOT.
15840 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
15841
15842 2011-06-14 David Li <davidxl@google.com>
15843
15844 * passes.c (execute_function_todo): Remove TODO_dump_func.
15845 (execute_one_pass): Remove TODO_dump_func.
15846 (execute_function_dump): New function.
15847 * tree-vrp.c: Remove TODO_dump_func.
15848 * regrename.c: Remove TODO_dump_func.
15849 * fwprop.c: Remove TODO_dump_func.
15850 * tree-into-ssa.c: Remove TODO_dump_func.
15851 * tree-complex.c: Remove TODO_dump_func.
15852 * tracer.c: Remove TODO_dump_func.
15853 * tree-loop-distribution.c: Remove TODO_dump_func.
15854 * postreload-gcse.c: Remove TODO_dump_func.
15855 * postreload.c: Remove TODO_dump_func.
15856 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
15857 * tree-tailcall.c: Remove TODO_dump_func.
15858 * ipa-cp.c: Remove TODO_dump_func.
15859 * final.c: Remove TODO_dump_func.
15860 * tree-emutls.c: Remove TODO_dump_func.
15861 * omp-low.c: Remove TODO_dump_func.
15862 * tree-ssa-dse.c: Remove TODO_dump_func.
15863 * tree-ssa-uncprop.c: Remove TODO_dump_func.
15864 * auto-inc-dec.c: Remove TODO_dump_func.
15865 * reorg.c: Remove TODO_dump_func.
15866 * tree-ssa-copyrename.c: Remove TODO_dump_func.
15867 * tree-ssa-ccp.c: Remove TODO_dump_func.
15868 * compare-elim.c: Remove TODO_dump_func.
15869 * mode-switching.c: Remove TODO_dump_func.
15870 * modulo-sched.c: Remove TODO_dump_func.
15871 * tree-call-cdce.c: Remove TODO_dump_func.
15872 * cse.c: Remove TODO_dump_func.
15873 * web.c: Remove TODO_dump_func.
15874 * tree-stdarg.c: Remove TODO_dump_func.
15875 * lto-streamer-out.c: Remove TODO_dump_func.
15876 * tree-ssa-math-opts.c: Remove TODO_dump_func.
15877 * tree-ssa-dom.c: Remove TODO_dump_func.
15878 * tree-nrv.c: Remove TODO_dump_func.
15879 * loop-init.c: Remove TODO_dump_func.
15880 * gimple-low.c: Remove TODO_dump_func.
15881 * ipa-inline.c: Remove TODO_dump_func.
15882 * tree-ssa-sink.c: Remove TODO_dump_func.
15883 * jump.c: Remove TODO_dump_func.
15884 * ifcvt.c: Remove TODO_dump_func.
15885 * tree-ssa-loop.c: Remove TODO_dump_func.
15886 * recog.c: Remove TODO_dump_func.
15887 * dse.c: Remove TODO_dump_func.
15888 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
15889 * matrix-reorg.c: Remove TODO_dump_func.
15890 * tree-eh.c: Remove TODO_dump_func.
15891 * regmove.c: Remove TODO_dump_func.
15892 * function.c: Remove TODO_dump_func.
15893 * tree-vectorizer.c: Remove TODO_dump_func.
15894 * ipa-split.c: Remove TODO_dump_func.
15895 * gcse.c: Remove TODO_dump_func.
15896 * tree-if-conv.c: Remove TODO_dump_func.
15897 * init-regs.c: Remove TODO_dump_func.
15898 * tree-ssa-phiopt.c: Remove TODO_dump_func.
15899 * implicit-zee.c: Remove TODO_dump_func.
15900 * lower-subreg.c: Remove TODO_dump_func.
15901 * bt-load.c: Remove TODO_dump_func.
15902 * tree-dfa.c: Remove TODO_dump_func.
15903 * except.c: Remove TODO_dump_func.
15904 * emit-rtl.c: Remove TODO_dump_func.
15905 * store-motion.c: Remove TODO_dump_func.
15906 * cfgexpand.c: Remove TODO_dump_func.
15907 * tree-cfgcleanup.c: Remove TODO_dump_func.
15908 * cfgcleanup.c: Remove TODO_dump_func.
15909 * tree-ssa-pre.c: Remove TODO_dump_func.
15910 * tree-sra.c: Remove TODO_dump_func.
15911 * tree-mudflap.c: Remove TODO_dump_func.
15912 * tree-ssa-copy.c: Remove TODO_dump_func.
15913 * cfglayout.c: Remove TODO_dump_func.
15914 * tree-ssa-forwprop.c: Remove TODO_dump_func.
15915 * tree-ssa-dce.c: Remove TODO_dump_func.
15916 * ira.c: Remove TODO_dump_func.
15917 * tree-ssa.c: Remove TODO_dump_func.
15918 * integrate.c: Remove TODO_dump_func.
15919 * tree-optimize.c: Remove TODO_dump_func.
15920 * tree-ssa-phiprop.c: Remove TODO_dump_func.
15921 * tree-object-size.c: Remove TODO_dump_func.
15922 * combine.c: Remove TODO_dump_func.
15923 * bb-reorder.c: Remove TODO_dump_func.
15924 * cprop.c: Remove TODO_dump_func.
15925 * var-tracking.c: Remove TODO_dump_func.
15926 * tree-profile.c: Remove TODO_dump_func.
15927 * tree-vect-generic.c: Remove TODO_dump_func.
15928 * reg-stack.c: Remove TODO_dump_func.
15929 * sched-rgn.c: Remove TODO_dump_func.
15930 * tree-ssa-structalias.c: Remove TODO_dump_func.
15931 * tree-switch-conversion.c: Remove TODO_dump_func.
15932 * tree-cfg.c: Remove TODO_dump_func.
15933 * tree-ssa-reassoc.c: Remove TODO_dump_func.
15934 * combine-stack-adj.c: Remove TODO_dump_func.
15935 * dce.c: Remove TODO_dump_func.
15936 * tree-ssanames.c: Remove TODO_dump_func.
15937 * regcprop.c: Remove TODO_dump_func.
15938
15939 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
15940
15941 PR middle-end/47364
15942 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
15943 and properly handle result not in Pmode.
15944
15945 2011-06-14 Robert Millan <rmh@gnu.org>
15946
15947 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
15948 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
15949 `config/linux.h'.
15950
15951 * config/i386/kfreebsd-gnu64.h: New file.
15952 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
15953 with `i386/kfreebsd-gnu64.h'.
15954
15955 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
15956 (GNU_USER_LINK_EMULATION64): New macros.
15957 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
15958 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
15959 of hardcoding `elf_i386' and `elf_x86_64'.
15960
15961 2011-06-14 Nick Clifton <nickc@redhat.com>
15962
15963 PR target/49403
15964 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
15965
15966 PR target/49402
15967 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
15968
15969 2011-06-14 Jakub Jelinek <jakub@redhat.com>
15970
15971 PR fortran/49103
15972 * tree.h (DECL_NONSHAREABLE): Define.
15973 (struct tree_decl_common): Change decl_common_unused to
15974 decl_nonshareable_flag.
15975 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
15976 Ignore vars with DECL_NONSHAREABLE bit set.
15977 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
15978 on stores to automatic aggregate vars.
15979
15980 PR rtl-optimization/49390
15981 Revert:
15982 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
15983
15984 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
15985 MEM_ALIAS_SET.
15986
15987 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
15988 Tom de Vries <tom@codesourcery.com>
15989
15990 PR target/45098
15991 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
15992 Document changed semantics.
15993 (max_stmt_executions, max_stmt_executions_int): Declare.
15994 * tree-data-ref.c (estimated_loop_iterations)
15995 (estimated_loop_iterations_int): Move functions...
15996 * tree-ssa-loop-niter.c (estimated_loop_iterations)
15997 (estimated_loop_iterations_int): here.
15998 (record_estimate): Change nb_iterations_upper_bound and
15999 nb_iterations_estimate semantics.
16000 (max_stmt_executions, max_stmt_executions_int): New function.
16001 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
16002 (max_stmt_executions_tree): this.
16003 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
16004 estimated_loop_iterations_tree.
16005 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
16006 max_stmt_executions_int instead of estimated_loop_iterations_int.
16007 * predict.c (predict_loops): Idem.
16008 * tree-parloops.c (parallelize_loops): Idem.
16009 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
16010 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
16011 (init_omega_for_ddr_1): Idem.
16012 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
16013 (loop_prefetch_arrays): Idem
16014 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
16015 max_stmt_executions instead of estimated_loop_iterations.
16016 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
16017 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
16018 instead of nb_iterations_upper_bound.
16019
16020 2011-06-13 Jan Hubicka <jh@suse.cz>
16021
16022 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
16023
16024 2011-06-14 Richard Henderson <rth@redhat.com>
16025
16026 PR debug/48459
16027 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
16028 (based_loc_descr): Assert it's true.
16029 (compute_frame_pointer_to_fb_displacement): Set it, rather than
16030 aborting immediately.
16031
16032 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
16033 Mingfeng Wu <mingfeng@faraday-tech.com>
16034
16035 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
16036
16037 2011-06-13 Jan Hubicka <jh@suse.cz>
16038
16039 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
16040
16041 2011-06-13 Jan Hubicka <jh@suse.cz>
16042
16043 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
16044 similarly to DECL_COMDAT.
16045 * cgraphunit.c (cgraph_analyze_function): Likewise.
16046 * ipa.c (function_and_variable_visibility): Likewise.
16047
16048 2011-06-13 Jan Hubicka <jh@suse.cz>
16049
16050 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
16051 BINFO_VIRTUALS when streaming for ltrans unit.
16052
16053 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
16054
16055 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
16056 (movdi_internal64): Same.
16057
16058 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
16059
16060 PR target/44618
16061 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
16062 a set of similar patterns, where the MATCH_OPERAND for the function
16063 argument is replaced with individual references to hardware registers.
16064 (save_fpregs_<mode>): Ditto
16065 (restore_gpregs_<mode>): Ditto
16066 (return_and_restore_gpregs_<mode>): Ditto
16067 (return_and_restore_fpregs_<mode>): Ditto
16068 (return_and_restore_fpregs_aix_<mode>): Ditto
16069
16070 2011-06-13 Jan Hubicka <jh@suse.cz>
16071
16072 * ipa-utils.c (postorder_stack): New structure.
16073 (ipa_reverse_postorder): Handle aliases.
16074
16075 2011-06-13 Jan Hubicka <jh@suse.cz>
16076
16077 * ipa-inline.c (reset_edge_caches): Walk aliases.
16078 (update_caller_keys): Do not test inlinability of aliases.
16079 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
16080 (do_estimate_growth): Fix typo.
16081
16082 2011-06-13 Jan Hubicka <jh@suse.cz>
16083
16084 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
16085 (can_remove_node_now_p): ... here; handle same comdat groups.
16086 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
16087 (inline_call): Update use of can_remove_node_now_p.
16088
16089 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16090
16091 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
16092 condition to disallow non-identical memory locations.
16093 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
16094 preference to bit manipulation instructions.
16095
16096 2011-06-13 Jan Hubicka <jh@suse.cz>
16097
16098 * cgraph.c (cgraph_for_node_thunks_and_aliases,
16099 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
16100 (nonremovable_p): New function.
16101 (cgraph_can_remove_if_no_direct_calls_p): New function.
16102 (used_from_object_file_p): New functoin.
16103 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
16104 references from aliases.
16105 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
16106 * ipa-inline.c (check_caller_edge): New function.
16107 (want_inline_function_called_once_p): Use it; accept aliases called
16108 once, too.
16109 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
16110
16111 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16112
16113 PR target/48454
16114 * config/arm/neon.md (vec_pack_trunc): Set the lengths
16115 correctly for the case with Quad vectors.
16116
16117 2011-06-13 Jakub Jelinek <jakub@redhat.com>
16118 Ira Rosen <ira.rosen@linaro.org>
16119
16120 PR tree-optimization/49352
16121 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
16122 all, make sure loop_use_stmt after the loop is a def stmt of a used
16123 SSA_NAME that is the only one defined inside of the loop. Don't
16124 check for COND_EXPR and GIMPLE_BINARY_RHS.
16125 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
16126 check_reduction is true.
16127
16128 2011-06-11 Jan Hubicka <jh@suse.cz>
16129
16130 PR middle-end/49373
16131 * ipa.c (cgraph_externally_visible_p): Check resolution info.
16132
16133 2011-06-11 Jan Hubicka <jh@suse.cz>
16134
16135 PR middle-end/48836
16136 * ipa-inline-transform.c: Include tree-pass.h
16137 (inline_transform): Set TODO_update_ssa_only_virtuals.
16138 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
16139
16140 2011-06-11 Jan Hubicka <jh@suse.cz>
16141
16142 PR middle-end/49378
16143 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
16144 aliases and thunks.
16145
16146 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
16147
16148 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
16149 Take number of iterations to peel into account for equally frequent
16150 misalignment values.
16151
16152 2011-06-11 Jan Hubicka <jh@suse.cz>
16153
16154 * lto-streamer-out.c (produce_symtab): Stream out the newly
16155 represented aliases.
16156
16157 2011-06-11 Jan Hubicka <jh@suse.cz>
16158
16159 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
16160 varying args.
16161 (ipa_update_after_lto_read): Likewise.
16162 (ipa_write_node_info): Do not sream call_with_var_arguments.
16163 (ipa_read_node_info): Likewise.
16164
16165 2011-06-11 Jan Hubicka <jh@suse.cz>
16166
16167 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
16168
16169 2011-06-11 Jan Hubicka <jh@suse.cz>
16170
16171 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
16172 (lto_symtab_resolve_can_prevail_p): Likewise.
16173 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
16174 * cgraph.c (same_body_aliases_done): New global var.
16175 (cgraph_same_body_alias_1): Rename to ...
16176 (cgraph_create_function_alias): ... this one; reorg to new
16177 representation.
16178 (cgraph_same_body_alias): Use cgraph_create_function_alias;
16179 record references when asked to.
16180 (cgraph_add_thunk): Fix formating.
16181 (cgraph_get_node): Kill same body alias code.
16182 (cgraph_node_for_asm): Likewise.
16183 (cgraph_remove_same_body_alias): Remove.
16184 (cgraph_remove_node): Kill same body alias code.
16185 (cgraph_mark_address_taken_node): Mark also the aliased function
16186 as having address taken.
16187 (dump_cgraph_node): Dump same body aliases.
16188 (cgraph_for_node_thunks_and_aliases): Update for new alias
16189 representation.
16190 (cgraph_for_node_and_aliases): Likewise.
16191 * cgraph.h (same_body): Kll pointer.
16192 (same_body_alias): Update comment.
16193 (same_body_aliases_done): Declare.
16194 (cgraph_remove_same_body_alias): Remove declaration.
16195 (cgraph_create_function_alias): Declare.
16196 (cgraph_process_same_body_aliases): Declare.
16197 (cgraph_function_with_gimple_body_p): Check for alias.
16198 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
16199 (cgraph_alias_aliased_node): New function.
16200 (cgraph_function_node): Update for new aliases.
16201 (cgraph_function_or_thunk_node): Likewise.
16202 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
16203 (inline_call): Remove dead aliases.
16204 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
16205 name hack for same body aliases.
16206 (clone_of_p): Look through aliases.
16207 (verify_cgraph_node): Verify aliases.
16208 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
16209 (cgraph_process_same_body_aliases): New function.
16210 (process_function_and_variable_attributes): Disable weakref warning on
16211 alias.
16212 (cgraph_analyze_functions): Handle aliases.
16213 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
16214 (assemble_thunks): Rename to ...
16215 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
16216 (cgraph_expand_function): Remove alias output code.
16217 (cgraph_output_in_order): Skip aliases.
16218 (cgraph_preserve_function_body_p): Aliases don't need preserving.
16219 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
16220 (ipa_record_reference): Do not assert on alias references.
16221 (ipa_ref_has_aliases_p): New function.
16222 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
16223 (ipa_ref_has_aliases_p): Declare.
16224 * lto-cgraph.c (lto_output_node): Handle aliases.
16225 (input_node): Likewise.
16226 * lto-streamer-out.c (lto_output): Skip aliases.
16227 (produce_symtab): Kill same_body_alias code.
16228 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
16229 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
16230 * ipa-inline.c (update_caller_keys): Walk aliases.
16231 (inline_small_functions): Fix thinko in previous patch.
16232 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
16233 (function_and_variable_visibility): Do not walk same body aliases.
16234 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
16235 (ipa_pta_execute): Use it.
16236
16237 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16238
16239 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
16240 (*vec_dupv2df): Rename from vec_dupv2df.
16241 (vec_dupv2df): New expander.
16242
16243 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16244
16245 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
16246
16247 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16248
16249 * config/i386/i386.md: Use default value in "isa" attribute.
16250 * config/i386/sse.md: Ditto.
16251 * config/i386/mmx.md: Ditto.
16252
16253 2011-06-10 Wei Guozhi <carrot@google.com>
16254
16255 PR target/45335
16256 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
16257 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
16258 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
16259 related peephole2.
16260 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
16261 related peephole2.
16262 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
16263 (arm_legitimate_ldrd_p): New prototype.
16264 (arm_output_ldrd): New prototype.
16265 * config/arm/arm.c (arm_check_ldrd_operands): New function.
16266 (arm_legitimate_ldrd_p): New function.
16267 (arm_output_ldrd): New function.
16268
16269 2011-06-10 David Li <davidxl@google.com>
16270
16271 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
16272 * passes.c (passr_eq): New function.
16273 (create_pass_tab): New function.
16274 (pass_traverse): New function.
16275 (dump_one_pass): New function.
16276 (dump_pass_list): New function.
16277 (dump_passes): New function.
16278
16279 2011-06-10 Jan Hubicka <jh@suse.cz>
16280
16281 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
16282 setting the nothrow flag.
16283 * ipa-reference.c (propagate): Skip aliases.
16284 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
16285 (propagate_nothrow): Skip aliases; do not update cgraph.
16286 (local_pure_const): Do not update cgraph.
16287 * tree-profile.c (tree_profiling): Do fixup_cfg.
16288
16289 2011-06-10 Jan Hubicka <jh@suse.cz>
16290
16291 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
16292 (cgraph_local_node_p): ... here; handle aliases.
16293 (has_addr_references_p): Break out from ...;
16294 (cgraph_remove_unreachable_nodes) ... here.
16295
16296 2011-06-10 Jan Hubicka <jh@suse.cz>
16297
16298 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
16299 * common.opt (flag_inline_functions_called_once): Do not
16300 initialize to 1.
16301
16302 2011-06-10 Jan Hubicka <jh@suse.cz>
16303
16304 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
16305 (ipcp_initialize_node_lattices): Do not deal with aliases;
16306 Do not try to propagate through thunks.
16307 (ipcp_change_tops_to_bottom): Do not deal with aliases.
16308
16309 2011-06-10 Jan Hubicka <jh@suse.cz>
16310
16311 * ipa-prop.c (ipa_write_node_info): Stream jump functions
16312 for indirect calls.
16313 (ipa_read_node_info): Likewise.
16314
16315 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16316
16317 PR lto/49302
16318 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
16319 (build_and_insert_call): Likewise.
16320 (build_and_insert_ref): New.
16321 (gimple_expand_builtin_pow): Minor cleanup.
16322 (gimple_expand_builtin_cabs): New.
16323 (execute_cse_sincos): Add case for BUILT_IN_CABS.
16324
16325 2011-06-10 Jan Hubicka <jh@suse.cz>
16326
16327 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
16328 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
16329 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
16330 (ipcp_propagate_stage): Skip aliases when propagating.
16331 (ipcp_need_redirect_p): Skip aliases.
16332 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
16333 collect_callers_of_node.
16334 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
16335 for aliases.
16336 (ipa_compute_jump_functions): Look through aliases.
16337
16338 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16339
16340 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
16341
16342 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16343
16344 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
16345 Adjust comments.
16346 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
16347
16348 2011-06-10 Jan Hubicka <jh@suse.cz>
16349
16350 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
16351 Update call of gimple_get_virt_method_for_binfo.
16352 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
16353 refuse_thunks parameter.
16354 (gimple_fold_call): Update.
16355 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
16356
16357 2011-06-10 Jan Hubicka <jh@suse.cz>
16358
16359 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
16360 (not_all_callers_have_enough_arguments_p): ... this one; turn into
16361 worker for cgraph_for_node_and_aliases.
16362 (convert_callers_for_node): Break out from ...
16363 (convert_callers): ... here.
16364 (modify_function): Use collect_callers_of_node.
16365 (ipa_early_sra): Use cgraph_for_node_and_aliases.
16366
16367 2011-06-10 Richard Guenther <rguenther@suse.de>
16368
16369 PR tree-optimization/49361
16370 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
16371 when not already in gimple form.
16372
16373 2011-06-10 Richard Guenther <rguenther@suse.de>
16374
16375 PR bootstrap/49344
16376 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
16377 FOR_EACH_PHI_OR_STMT_USE.
16378
16379 2011-06-10 Jan Hubicka <jh@suse.cz>
16380
16381 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
16382 (clone_inlined_nodes): ... here.
16383 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
16384 to real destination prior inlining.
16385 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
16386 can_early_inline_edge_p, want_early_inline_function_p,
16387 want_early_inline_function_p, want_inline_small_function_p,
16388 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
16389 edge_badness, update_all_callee_keys, lookup_recursive_calls,
16390 add_new_edges_to_heap, inline_small_functions, flatten_function,
16391 inline_always_inline_functions, early_inline_small_functions): Use
16392 cgraph_function_or_thunk_node.
16393 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
16394 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
16395 (do_estimate_edge_growth_1): Break out from ...
16396 (do_estimate_growth) ... here; walk aliases.
16397 (inline_generate_summary): Skip aliases.
16398
16399 2011-06-10 Richard Guenther <rguenther@suse.de>
16400
16401 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
16402 forward when combining, visit inserted stmts when a stmt was changed.
16403
16404 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
16405
16406 * tree.h (error_operand_p): Add.
16407 * dbxout.c (dbxout_type_fields): Use the latter.
16408 * c-decl.c (add_stmt): Likewise.
16409 * gimplify.c (omp_add_variable, omp_notice_variable,
16410 gimplify_scan_omp_clauses): Likewise.
16411
16412 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
16413
16414 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
16415 when a value is actually passed in regs.
16416
16417 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
16418 Laurent Rougé <laurent.rouge@menta.fr>
16419
16420 * doc/invoke.texi (SPARC options): Add -mflat.
16421 * config/sparc/sparc.opt: Likewise.
16422 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
16423 (sparc_flat_expand_prologue): Declare.
16424 (sparc_flat_expand_epilogue): Likewise.
16425 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
16426 (CPP_ENDIAN_SPEC): Replace with...
16427 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
16428 (CPP_SPEC): Adjust to above change.
16429 (EXTRA_SPECS): Likewise.
16430 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
16431 (INCOMING_REGNO): Likewise.
16432 (OUTGOING_REGNO): Likewise.
16433 (LOCAL_REGNO): Likewise.
16434 (SETUP_FRAME_ADDRESSES): Likewise.
16435 (FIXED_REGISTERS): Set 0 for %fp.
16436 (CALL_USED_REGISTERS): Likewise.
16437 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
16438 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
16439 (RETURN_ADDR_REGNUM): Define.
16440 (RETURN_ADDR_RTX): Use it.
16441 (INCOMING_RETURN_ADDR_REGNUM): Define.
16442 (INCOMING_RETURN_ADDR_RTX): Use it.
16443 (DWARF_FRAME_RETURN_COLUMN): Likewise.
16444 (EH_RETURN_REGNUM): Define.
16445 (EH_RETURN_STACKADJ_RTX): Use it.
16446 (EH_RETURN_HANDLER_RTX): Delete.
16447 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
16448 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
16449 Delete.
16450 (struct machine_function): Add frame_size, apparent_frame_size,
16451 frame_base_reg, frame_base_offset, n_global_fp_regs and
16452 save_local_in_regs_p fields.
16453 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
16454 sparc_frame_base_offset, sparc_n_global_fp_regs,
16455 sparc_save_local_in_regs_p): New macros.
16456 (sparc_option_override): Error out if -fcall-saved-REG is specified
16457 for Out registers.
16458 (eligible_for_restore_insn): Fix formatting.
16459 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
16460 (eligible_for_sibcall_delay): Likewise.
16461 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
16462 (sparc_legitimate_address_p): Adjust to above change.
16463 (save_global_or_fp_reg_p): New predicate.
16464 (return_addr_reg_needed_p): Likewise.
16465 (save_local_or_in_reg_p): Likewise.
16466 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
16467 (SORR_SAVE, SORR_RESTORE): Delete.
16468 (sorr_pred_t): New typedef.
16469 (sorr_act_t): New enum.
16470 (save_or_restore_regs): Rename to...
16471 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
16472 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
16473 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
16474 mechanism. Add CFI information for double-word saves in 32-bit mode.
16475 (emit_adjust_base_to_offset): New function extracted from...
16476 (emit_save_or_restore_regs): ...this. Rename the rest to...
16477 (emit_save_or_restore_regs_global_fp_regs): ...this.
16478 (emit_save_or_restore_regs_local_in_regs): New function.
16479 (gen_create_flat_frame_[123]): New functions.
16480 (sparc_expand_prologue): Use SIZE local variable. Adjust.
16481 (sparc_flat_expand_prologue): New function.
16482 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
16483 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
16484 (sparc_flat_expand_epilogue): New function.
16485 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
16486 (output_return): Likewise.
16487 (output_sibcall): Likewise.
16488 (sparc_output_mi_thunk): Likewise.
16489 (sparc_frame_pointer_required): Likewise.
16490 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
16491 function optimization.
16492 * config/sparc/sparc.md (flat): New attribute.
16493 (prologue): Add TARGET_FLAT handling.
16494 (save_register_window): Disable if TARGET_FLAT.
16495 (create_flat_frame_[123]): New patterns.
16496 (epilogue): Add TARGET_FLAT handling.
16497 (sibcall_epilogue): Likewise.
16498 (eh_return): New expander.
16499 (eh_return_internal): New insn and splitter.
16500 (return_internal): Add TARGET_FLAT handling.
16501 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
16502 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
16503 (nonlocal_goto): Add TARGET_FLAT handling.
16504 * config/sparc/t-elf: Add -mflat multilib.
16505 * config/sparc/t-leon: Likewise.
16506
16507 2011-06-10 Jan Hubicka <jh@suse.cz>
16508
16509 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
16510 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
16511 (self_recursive_p): Use cgraph_function_node.
16512 (propagate_pure_const): Likewise.
16513 (propagate_nothrow): Likewise.
16514 * ipa-reference.c (ipa_reference_get_not_read_global): Use
16515 cgraph_function_node.
16516 (propagate_bits): Likewise.
16517 (propagate): Likewise.
16518
16519 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16520 Richard Earnshaw <rearnsha@arm.com>
16521
16522 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
16523 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
16524 (*thumb2_movdi_vfp): Delete.
16525 (*arm_movdi_vfp_cortexa8): Delete.
16526 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
16527 (*movdi_vfp_cortexa8): Likewise.
16528
16529 2011-06-10 Richard Guenther <rguenther@suse.de>
16530
16531 * stor-layout.c (initialize_sizetypes): Give names to all
16532 sizetype kinds.
16533
16534 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
16535
16536 PR tree-optimization/49318
16537 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
16538 irrelevant pattern statements.
16539
16540 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16541
16542 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
16543
16544 PR bootstrap/49354
16545 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
16546 to last assignment.
16547
16548 2011-06-09 Jan Hubicka <jh@suse.cz>
16549
16550 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
16551 do not recompute reachable flag.
16552 (cgraph_finalize_function, cgraph_analyze_functions): Set
16553 redefined_extern_inline here.
16554
16555 2011-06-09 Jan Hubicka <jh@suse.cz>
16556
16557 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
16558 (cgraph_only_called_directly_p): ... this one; bring offline.
16559 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
16560 varpool_used_from_object_file_p): Drop names from the declaratoin.
16561 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
16562 collect_callers_of_node): New.
16563 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
16564 (cgraph_edge_recursive_p): Use cgraph_function_node.
16565 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
16566 (cgraph_node_cannot_be_local_p_1): Break out from ...
16567 (cgraph_node_can_be_local_p): ... here; walk aliases.
16568 (cgraph_for_node_thunks_and_aliases): New function.
16569 (cgraph_for_node_and_aliases): New function.
16570 (cgraph_make_node_local_1): Break out from ...
16571 (cgraph_make_node_local) ... here; use
16572 cgraph_for_node_thunks_and_aliases.
16573 (cgraph_set_nothrow_flag_1): Break out from ...
16574 (cgraph_set_nothrow_flag) ... here;
16575 use cgraph_for_node_thunks_and_aliases.
16576 (cgraph_set_const_flag_1): Break out from ...
16577 (cgraph_set_const_flag) ... here;
16578 use cgraph_for_node_thunks_and_aliases.
16579 (cgraph_set_pure_flag_1): Break out from ...
16580 (cgraph_set_pure_flag) ... here;
16581 use cgraph_for_node_thunks_and_aliases.
16582 (cgraph_propagate_frequency_1): Break out from ...
16583 (cgraph_propagate_frequency) ... here; use
16584 cgraph_for_node_thunks_and_aliases.
16585 (cgraph_used_from_object_file_p): Do not care about aliases.
16586 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
16587 New functions.
16588 (collect_callers_of_node_1, collect_callers_of_node): New functions.
16589
16590 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16591
16592 PR rtl-optimization/49154
16593 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
16594 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
16595 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
16596 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
16597 * config/cris/cris.h (cris_register_move_cost): Remove
16598 !TARGET_V32 code. Tweak comments.
16599
16600 2011-06-09 Jan Hubicka <jh@suse.cz>
16601
16602 * cgraphbuild.c (record_eh_tables): Mark personality function as having
16603 address taken.
16604
16605 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16606
16607 PR rtl-optimization/49154
16608 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
16609 is a matching slot in the hashtable, assign it to classes_ptr.
16610
16611 PR rtl-optimization/49154
16612 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
16613 register classes.
16614 * doc/tm.texi: Regenerate.
16615
16616 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
16617
16618 PR target/49307
16619 * config/sh/sh.md (UNSPEC_CHKADD): New.
16620 (chk_guard_add): New define_insn_and_split.
16621 (symGOT_load): Use chk_guard_add instead of blockage.
16622
16623 2011-06-09 Kai Tietz <ktietz@redhat.com>
16624
16625 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
16626
16627 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
16628
16629 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
16630
16631 2011-06-09 Wei Guozhi <carrot@google.com>
16632
16633 PR target/46975
16634 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
16635 (peephole2 for conditional move): Generate 16 bit instructions.
16636
16637 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
16638
16639 * config/i386/i386.md (*movdi_internal_rex64): Merge
16640 alternatives 6 and 8.
16641
16642 2011-06-09 David Li <davidxl@google.com>
16643
16644 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
16645 * passes.c (passr_eq): New function.
16646 (create_pass_tab): New function.
16647 (pass_traverse): New function.
16648 (dump_one_pass): New function.
16649 (dump_pass_list): New function.
16650 (dump_passes): New function.
16651
16652 2011-06-09 David Li <davidxl@google.com>
16653
16654 * tree-complex.c (tree_lower_complex): Gate cleanup.
16655 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
16656 (execute_optimize_stdarg): Ditto.
16657 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
16658 (execute_cleanup_eh_1): Ditto.
16659 (execute_cleanup_eh): Ditto.
16660 * gcse.c (gate_rtl_pre): Ditto.
16661 (execute_rtl_pre): Ditto.
16662 * except.c (finish_eh_generation): Ditto.
16663 (convert_to_eh_region_ranges): Ditto.
16664 * cprop.c (one_cprop_pass): Ditto.
16665
16666 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
16667
16668 PR target/48673
16669 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
16670 in all basic blocks.
16671
16672 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16673
16674 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
16675 (HAVE_ENABLE_EXECUTE_STACK): Define.
16676 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
16677 (HAVE_ENABLE_EXECUTE_STACK): Define.
16678 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
16679 (HAVE_ENABLE_EXECUTE_STACK): Define.
16680 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
16681 (ENABLE_EXECUTE_STACK): Remove.
16682 (HAVE_ENABLE_EXECUTE_STACK): Define.
16683 [IN_LIBGCC2]: Don't include <windows.h>.
16684 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
16685 (HAVE_ENABLE_EXECUTE_STACK): Define.
16686 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
16687 (HAVE_ENABLE_EXECUTE_STACK): Define.
16688 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
16689 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
16690 (HAVE_ENABLE_EXECUTE_STACK): Define.
16691 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
16692 (HAVE_ENABLE_EXECUTE_STACK): Define.
16693 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
16694 (HAVE_ENABLE_EXECUTE_STACK): Define.
16695 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
16696 (HAVE_ENABLE_EXECUTE_STACK): Define.
16697 * config/alpha/alpha.c (alpha_trampoline_init): Test
16698 HAVE_ENABLE_EXECUTE_STACK.
16699 * config/i386/i386.c (ix86_trampoline_init): Likewise.
16700 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16701 (sparc64_initialize_trampoline): Likewise.
16702 * libgcc2.c [L_enable_execute_stack]: Remove.
16703 * system.h (ENABLE_EXECUTE_STACK): Poison.
16704 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
16705 * doc/tm.texi: Regenerate.
16706 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
16707
16708 2011-06-09 Jakub Jelinek <jakub@redhat.com>
16709
16710 PR middle-end/49308
16711 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
16712 variable. After resetting and rescanning insn continue with previous
16713 statement.
16714
16715 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16716
16717 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
16718 (gcc_cv_ld_hidden): Likewise.
16719 * configure: Regenerate.
16720 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
16721 (ix86_stack_protect_fail): Mark unused.
16722 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
16723 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
16724 [TARGET_MACHO]: Don't define.
16725 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
16726 (TARGET_STACK_PROTECT_FAIL): Likewise.
16727 (rs6000_stack_protect_fail): Mark unused.
16728 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
16729 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
16730
16731 2011-06-08 Andi Kleen <ak@linux.intel.com>
16732
16733 * varasm.c (get_section): Print location of other conflict
16734 for section conflicts.
16735
16736 2011-06-08 Andi Kleen <ak@linux.intel.com>
16737
16738 * config/i386/driver-i386.c (host_detect_local_cpu):
16739 Add model 0x2d Intel CPU.
16740
16741 2011-06-08 Andi Kleen <ak@linux.intel.com>
16742
16743 * reginfo.c (global_regs_decl): Add.
16744 (globalize_reg): Add decl parameter. Compute location. Pass location
16745 to warnings and add inform. Store decl in global_regs_decl.
16746 * rtl.h (globalize_reg): Update prototype.
16747 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
16748
16749 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
16750
16751 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
16752
16753 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16754
16755 PR target/49305
16756 * config/sh/predicates.md (general_movsrc_operand): Check
16757 mode for memory with indexed address for QI and HImode.
16758 (general_movdst_operand): Likewise.
16759
16760 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
16761
16762 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
16763
16764 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
16765
16766 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
16767 (num_ssa_operands): Likewise.
16768 (op_iter_init_phiuse): Forward-declare.
16769 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
16770
16771 2011-06-08 Nick Clifton <nickc@redhat.com>
16772
16773 * doc/invoke.texi (ARM Options): Update description of
16774 -mthumb-interwork.
16775
16776 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
16777
16778 * config/i386/driver-i386.c (host_detect_local_cpu): Support
16779 unknown Intel family 0x6 CPUs.
16780
16781 2011-06-08 Martin Jambor <mjambor@suse.cz>
16782
16783 * tree-sra.c (mark_rw_status): Removed.
16784 (analyze_access_subtree): New parameter parent instead of
16785 mark_read and mark_write, propagate from that.
16786
16787 2011-06-08 Julian Brown <julian@codesourcery.com>
16788
16789 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
16790 for double-precision helper functions in hard-float mode if only
16791 single-precision arithmetic is supported in hardware.
16792
16793 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
16794
16795 PR rtl-optimization/49303
16796 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
16797 code_motion_path_driver returned 0 or 1.
16798 (sel_region_finish): Clear h_d_i_d.
16799
16800 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16801
16802 * config/sh/sh.c (prepare_move_operands): Set pic register
16803 appropriately for global and local dynamic tls models even
16804 if flag_pic is unset.
16805
16806 2011-06-07 Jason Merrill <jason@redhat.com>
16807
16808 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
16809
16810 2011-06-07 Xinliang David Li <davidxl@google.com>
16811 * passes.c (enable_disable_pass): Handle assembler name.
16812 (is_pass_explicitly_enabled_or_disabled): Ditto.
16813
16814 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16815
16816 PR tree-optimization/48497
16817 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
16818
16819 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16820
16821 PR tree-optimization/46728
16822 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
16823 to use gimple_val_nonnegative_real_p.
16824 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
16825 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
16826
16827 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
16828
16829 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
16830
16831 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
16832
16833 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
16834 constant vectors.
16835
16836 2011-06-07 Richard Guenther <rguenther@suse.de>
16837
16838 * stor-layout.c (initialize_sizetypes): Initialize all
16839 sizetypes based on target definitions.
16840 (set_sizetype): Remove.
16841 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
16842 * tree.h (set_sizetype): Remove.
16843
16844 2011-06-07 Nick Clifton <nickc@redhat.com>
16845
16846 * config.gcc: Unify V850 architecture options and add support for
16847 newer V850 architectures.
16848 * config/v850/t-v850e: Delete.
16849
16850 2011-06-07 Richard Guenther <rguenther@suse.de>
16851
16852 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
16853 Call set_sizetype from here.
16854
16855 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
16856
16857 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
16858 (*maddhisi4tb, *maddhisi4tt): New define_insns.
16859
16860 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
16861 Andrew Stubbs <ams@codesourcery.com>
16862
16863 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
16864 multiplies.
16865 * doc/md.texi (Canonicalization of Instructions): Document widening
16866 multiply canonicalization.
16867
16868 2011-06-07 Jakub Jelinek <jakub@redhat.com>
16869
16870 PR gcov-profile/49299
16871 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
16872
16873 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
16874
16875 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
16876 a pointer.
16877 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
16878 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
16879 vect_recog_pow_pattern): Likewise.
16880 (vect_pattern_recog_1): Remove declaration.
16881 (widened_name_p): Remove declaration. Add new argument to specify
16882 whether to check that both types are either signed or unsigned.
16883 (vect_recog_widen_mult_pattern): Update documentation. Handle
16884 unsigned patterns and multiplication by constants.
16885 (vect_pattern_recog_1): Update vect_recog_func references. Use
16886 statement information from the statement returned from pattern
16887 detection functions.
16888 (vect_pattern_recog): Update vect_recog_func reference.
16889 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
16890 multiplication by a constant use the type of the other operand.
16891
16892 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16893
16894 PR rtl-optimization/49145
16895 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
16896
16897 2011-06-06 Jakub Jelinek <jakub@redhat.com>
16898
16899 PR debug/49262
16900 * dwarf2out.c (native_encode_initializer): Decrement count in each
16901 iteration.
16902
16903 PR debug/49294
16904 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
16905 non-MODE_INT modes.
16906
16907 PR c++/49264
16908 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
16909 if stmt folded into nothing.
16910 * tree-inline.c (fold_marked_statements): If a builtin at the end of
16911 a bb folded into nothing, just update cgraph edges and move to next bb.
16912 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
16913 to be NULL. Don't compute count and frequency if new_call is NULL.
16914
16915 2011-06-04 Diego Novillo <dnovillo@google.com>
16916
16917 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
16918 (cgraph.o): Likewise.
16919 (cgraphunit.o): Likewise.
16920 * cgraphunit.c: Include lto-streamer.h
16921 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
16922 if LTO is enabled.
16923 * lto-streamer-in.c (unpack_value_fields): Call
16924 streamer_hooks.unpack_value_fields if set.
16925 (lto_materialize_tree): For unhandled nodes, first try to
16926 call lto_streamer_hooks.alloc_tree, if it exists.
16927 (lto_input_ts_decl_common_tree_pointers): Move reading of
16928 DECL_INITIAL to lto_streamer_read_tree.
16929 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
16930 (lto_streamer_read_tree): New.
16931 (lto_reader_init): Rename from lto_init_reader.
16932 Move initialization code to lto/lto.c.
16933 * lto-streamer-out.c (pack_value_fields): Call
16934 streamer_hooks.pack_value_fields if set.
16935 (lto_output_tree_ref): For tree nodes that are not normally indexable,
16936 call streamer_hooks.indexable_with_decls_p before giving up.
16937 (lto_output_ts_decl_common_tree_pointers): Move handling
16938 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
16939 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
16940 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
16941 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
16942 (lto_streamer_write_tree): New.
16943 (lto_output): Call lto_streamer_init directly.
16944 (lto_writer_init): Remove.
16945 * lto-streamer.c (streamer_hooks): New.
16946 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
16947 instead of lto_preload_common_nodes.
16948 (lto_is_streamable): Move from lto-streamer.h
16949 (lto_streamer_hooks_init): New.
16950 (streamer_hooks): New.
16951 (streamer_hooks_init): New.
16952 * lto-streamer.h (struct output_block): Forward declare.
16953 (struct lto_input_block): Likewise.
16954 (struct data_in): Likewise.
16955 (struct bitpack_d): Likewise.
16956 (struct streamer_hooks): Declare.
16957 (streamer_hooks): Declare.
16958 (lto_streamer_hooks_init): Declare.
16959 (lto_streamer_write_tree): Declare.
16960 (lto_streamer_read_tree): Declare.
16961 (streamer_hooks_init): Declare.
16962 (lto_is_streamable): Move to lto-streamer.c
16963
16964 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16965
16966 * longlong.h (smul_ppmm): The resulting register pair contains the
16967 higher order word first.
16968
16969 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16970
16971 PR tree-optimization/46728
16972 * builtins.c (powi_table): Remove.
16973 (powi_lookup_cost): Remove.
16974 (powi_cost): Remove.
16975 (expand_powi_1): Remove.
16976 (expand_powi): Remove.
16977 (expand_builtin_pow_root): Remove.
16978 (expand_builtin_pow): Remove.
16979 (expand_builtin_powi): Eliminate handling of constant exponent.
16980 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
16981
16982 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
16983
16984 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
16985
16986 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
16987
16988 * dce.c (reset_unmarked_insns_debug_uses): New.
16989 (delete_unmarked_insns): Skip debug insns.
16990 (prescan_insns_for_dce): Likewise.
16991 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
16992 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
16993 active reg can be found.
16994 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
16995 (convert_regs_1): Use it.
16996
16997 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
16998
16999 * tree-pretty-print.c (dump_function_header): Add flags.
17000 Don't dump decl_uid with nouid.
17001 * tree-pretty-print.h (dump_function_header): Adjust.
17002 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
17003 * passes.c (pass_init_dump_file): Pass dump_flags on.
17004 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
17005
17006 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17007
17008 PR bootstrap/49270
17009 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
17010
17011 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
17012
17013 PR tree-optimization/49243
17014 * calls.c (setjmp_call_p): Also check if fndecl has the
17015 returns_twice attribute.
17016
17017 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17018
17019 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
17020 -ffast-math etc.
17021
17022 2011-06-06 Richard Henderson <rth@redhat.com>
17023 Georg-Johann Lay <avr@gjlay.de>
17024
17025 PR target/42210
17026 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
17027 New predicates.
17028 * config/avr/avr.md ("insv"): New insn expander.
17029 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
17030 "*insv.not.io", "*insv.reg"): New insns.
17031
17032 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
17033
17034 PR target/49285
17035 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
17036 to nonimmediate_operand from memory_operand for the operand that is to
17037 be forced to memory by the expander. Lose the constraints.
17038
17039 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
17040
17041 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
17042 EH return when delayed branches are disabled.
17043
17044 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
17045
17046 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
17047 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
17048 calculation.
17049 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
17050 Simplify MODE_V1DF and MODE_V2SF handling.
17051 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
17052 Simplify MODE_SF handling.
17053
17054 2011-06-04 Jan Hubicka <jh@suse.cz>
17055
17056 PR tree-optimization/48893
17057 PR tree-optimization/49091
17058 PR tree-optimization/49179
17059 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
17060 Bounds check.
17061
17062 2011-06-04 Jan Hubicka <jh@suse.cz>
17063
17064 PR lto/48954
17065 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
17066 bitmaps.
17067
17068 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
17069
17070 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
17071
17072 2011-06-04 Jakub Jelinek <jakub@redhat.com>
17073
17074 PR target/49281
17075 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
17076 to be strictly smaller than 1 << shiftcount.
17077
17078 2011-06-04 Jan Hubicka <jh@suse.cz>
17079
17080 PR tree-optimize/48929
17081 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
17082 of empty predicate.
17083
17084 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
17085
17086 PR debug/48333
17087 * calls.c (emit_call_1): Prefer the __builtin declaration of
17088 builtin functions.
17089
17090 2011-06-03 Diego Novillo <dnovillo@google.com>
17091
17092 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
17093 (lto_input_tree_pointers): Likewise.
17094 * lto-streamer-out.c (pack_value_fields): Likewise.
17095 (lto_output_tree_pointers): Likewise.
17096 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
17097 and OPTIMIZATION_NODE.
17098
17099 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17100
17101 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
17102 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
17103 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
17104 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
17105 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
17106 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
17107 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
17108 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
17109 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
17110 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
17111 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
17112 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
17113 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
17114 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
17115 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
17116 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
17117 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
17118 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
17119 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
17120 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
17121 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
17122 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
17123 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
17124 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
17125 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
17126 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
17127 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
17128 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
17129 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
17130 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
17131 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
17132 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
17133 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
17134 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
17135 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
17136 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
17137 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
17138 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
17139 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
17140 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
17141 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
17142 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
17143 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
17144 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
17145 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
17146 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
17147 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
17148 * system.h (MD_UNWIND_SUPPORT): Poison.
17149 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
17150 * doc/tm.texi: Regenerate.
17151 * unwind-dw2.c: Include md-unwind-support.h instead of
17152 MD_UNWIND_SUPPORT.
17153 * config/ia64/unwind-ia64.c: Likewise.
17154 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
17155
17156 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
17157
17158 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
17159
17160 2011-06-03 Richard Henderson <rth@redhat.com>
17161 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17162
17163 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
17164 (sigill_hdlr): Correct insn, insn size.
17165 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
17166
17167 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17168
17169 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
17170 t-slibgcc-dummy.
17171 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
17172 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
17173 * config/mips/t-iris: Remove.
17174 * config/mips/t-irix6: New file.
17175 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
17176
17177 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17178
17179 * Makefile.in (LIB2ADDEHDEP): Remove.
17180 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
17181 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
17182 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
17183 * config/t-darwin (LIB2ADDEHDEP): Remove.
17184 * config/t-freebsd (LIB2ADDEHDEP): Remove.
17185 * config/t-linux (LIB2ADDEHDEP): Remove.
17186
17187 2011-06-03 Diego Novillo <dnovillo@google.com>
17188
17189 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
17190 (lto_register_var_decl_in_symtab): Likewise.
17191 (lto_register_function_decl_in_symtab): Likewise.
17192 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
17193 logic to uniquify_nodes.
17194
17195 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17196
17197 * config/alpha/t-osf5: Remove.
17198 * config/alpha/t-osf-pthread: Remove.
17199 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
17200 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
17201
17202 2011-06-03 Julian Brown <julian@codesourcery.com>
17203
17204 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
17205 (strongarm1110): Use strongarm tuning.
17206 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
17207 * config/arm/arm.c (arm_strongarm_tune): New.
17208 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
17209 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
17210 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
17211 setting, using previous defaults or 1 for Cortex-A5.
17212 (arm_option_override): Set max_insns_skipped from current tuning.
17213
17214 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
17215
17216 * doc/install.texi (Options specification): Document --with-specs.
17217
17218 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17219
17220 * config/arm/neon.md (orndi3_neon): Actually split it.
17221
17222 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
17223
17224 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
17225 * var-tracking.c (reverse_op): Limite recurse depth to 5.
17226
17227 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
17228
17229 PR debug/47590
17230 * target.def (delay_sched2, delay_vartrack): New.
17231 * doc/tm.texi.in: Update.
17232 * doc/tm.texi: Rebuild.
17233 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
17234 * var-tracking.c (gate_handle_var_tracking): Likewise.
17235 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
17236 (bfin_flag_var_tracking): Drop.
17237 (output_file_start): Don't save and override flag_var_tracking.
17238 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
17239 (bfin_reorg): Test original variables.
17240 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17241 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
17242 (ia64_flag_var_tracking): Drop.
17243 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17244 (ia64_file_start): Don't save and override flag_var_tracking.
17245 (ia64_override_options_after_change): Ditto
17246 flag_schedule_insns_after_reload.
17247 (ia64_reorg): Test original variables.
17248 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
17249 (picochip_flag_var_tracking): Drop.
17250 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17251 (picochip_option_override): Don't save and override
17252 flag_schedule_insns_after_reload.
17253 (picochip_asm_file_start): Ditto flag_var_tracking.
17254 (picochip_reorg): Test original variables.
17255 * config/spu/spu.c (spu_flag_var_tracking): Drop.
17256 (TARGET_DELAY_VARTRACK): Define.
17257 (spu_var_tracking): New.
17258 (spu_machine_dependent_reorg): Call it.
17259 (asm_file_start): Don't save and override flag_var_tracking.
17260
17261 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
17262
17263 PR target/49163
17264 * config/sh/predicates.md (general_movsrc_operand): Return 0
17265 for memory and memory subreg of which address is an invalid
17266 indexed address for QI and HImode.
17267 (general_movdst_operand): Likewise.
17268
17269 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
17270
17271 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
17272 edges only, when there is a non-local label in the function.
17273 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
17274
17275 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
17276
17277 * config/i386/constraints.md (Y3): New register constraint.
17278 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
17279 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
17280 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
17281 *sse2_interleave_lowv2df.
17282
17283 2011-06-02 Julian Brown <julian@codesourcery.com>
17284
17285 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
17286 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
17287 (arm_cortex_a5_tune): New.
17288
17289 2011-06-02 Julian Brown <julian@codesourcery.com>
17290
17291 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
17292 * config/arm/arm.c (arm_default_branch_cost): New.
17293 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
17294 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
17295 (arm_fa726_tune): Set branch_cost field using
17296 arm_default_branch_cost.
17297 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
17298 current_tune structure.
17299 * dojump.c (tm_p.h): Include file.
17300
17301 2011-06-02 Julian Brown <julian@codesourcery.com>
17302
17303 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
17304 tuning.
17305 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
17306 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
17307 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
17308 field.
17309 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
17310 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
17311 (arm_fa726te_tune): Add prefer_constant_pool setting.
17312 (arm_v6t2_tune, arm_cortex_tune): New.
17313 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
17314 prefer_constant_pool setting.
17315
17316 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
17317
17318 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
17319 switch statement.
17320 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
17321 (*movdf_internal) <case 6,7,8>: Ditto.
17322
17323 * config/i386/constraints.md (Y4): New register constraint.
17324 * config/i386/sse.md (vec_set<mode>_0): Merge with
17325 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
17326 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
17327 *vec_extractv2di_1_sse.
17328 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
17329 and *vec_concatv2di_rex64_sse.
17330
17331 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
17332
17333 PR target/48807
17334 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
17335 of cgraph_local_info for null before attempting to use it.
17336
17337 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
17338
17339 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
17340 (current_function_dynamic_alloc_count): Delete.
17341 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
17342 (expand_builtin_nonlocal_goto): Remove obsolete comment.
17343 (expand_builtin_update_setjmp_buf): Remove dead code.
17344 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
17345 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
17346 support.
17347 * function.c (instantiate_virtual_regs): Likewise.
17348 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
17349 for a block with a single abnormal incoming edge.
17350 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
17351 (SETJMP_VIA_SAVE_AREA): Delete.
17352 * config/sparc/sparc-protos.h (load_got_register): Declare.
17353 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
17354 (load_got_register): Make global.
17355 (sparc_frame_pointer_required): Add 'static'.
17356 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
17357 (sparc_builtin_setjmp_frame_value): New function.
17358 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
17359 (save_stack_nonlocal): New expander.
17360 (restore_stack_nonlocal): Likewise.
17361 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
17362 (nonlocal_goto_internal): New insn.
17363 (goto_handler_and_restore): Delete.
17364 (builtin_setjmp_setup): Likewise.
17365 (do_builtin_setjmp_setup): Likewise.
17366 (setjmp): Likewise.
17367 (builtin_setjmp_receiver): New expander.
17368
17369 2011-06-01 David Li <davidxl@google.com>
17370
17371 PR middle-end/49261
17372 * tree-pretty-print.c (dump_function_header): Format cleanup.
17373
17374 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
17375
17376 PR target/49238
17377 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
17378 needed when original operands are used for msw_skip comparison.
17379
17380 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17381
17382 PR debug/49250
17383 * var-tracking.c (add_uses, add_stores): Don't call
17384 cselib_subst_to_values on ENTRY_VALUE.
17385
17386 2011-06-01 Diego Novillo <dnovillo@google.com>
17387
17388 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
17389 output_record_start with LTO_null instead of output_zero.
17390 (lto_output_ts_binfo_tree_pointers): Likewise.
17391 (lto_output_tree): Likewise.
17392 (output_eh_try_list): Likewise.
17393 (output_eh_region): Likewise.
17394 (output_eh_lp): Likewise.
17395 (output_eh_regions): Likewise.
17396 (output_bb): Likewise.
17397 (output_function): Likewise.
17398 (output_unreferenced_globals): Likewise.
17399 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
17400 instead of NUM_TREE_CODES.
17401 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
17402 (lto_output_int_in_range): Change << to >> when shifting VAL.
17403
17404 2011-06-01 Diego Novillo <dnovillo@google.com>
17405
17406 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
17407 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
17408
17409 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
17410
17411 PR target/45074
17412 * optabs.h (valid_multiword_target_p): Declare.
17413 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
17414 doing multi-word operations.
17415 * optabs.c (expand_binop): Likewise.
17416 (expand_doubleword_bswap): Likewise.
17417 (expand_absneg_bit): Likewise.
17418 (expand_unop): Likewise.
17419 (expand_copysign_bit): Likewise.
17420 (multiword_target_p): New function.
17421
17422 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
17423
17424 PR rtl-optimization/48830
17425 PR rtl-optimization/48808
17426 PR rtl-optimization/48792
17427 * reload.c (push_reload): Check contains_reg_of_mode.
17428 * reload1.c (strip_paradoxical_subreg): New function.
17429 (gen_reload_chain_without_interm_reg_p): Use it to handle
17430 paradoxical subregs.
17431 (emit_output_reload_insns, gen_reload): Likewise.
17432
17433 2011-06-01 David Li <davidxl@google.com>
17434
17435 * predict.c : Change pass name
17436 * ipa.c: Ditto.
17437 * dce.c: Ditto.
17438 * tree-profile.c: Ditto.
17439 * except.c: Ditto.
17440
17441 2011-06-01 David Li <davidxl@google.com>
17442
17443 * tree-pretty-print.c (dump_function_header): New function.
17444 * final.c (rest_of_clean_state): Use header dumper.
17445 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
17446 * passes.c (pass_init_dump_file): Use header dumper.
17447
17448 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17449
17450 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
17451 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
17452 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
17453 New functions.
17454 (mem_loc_descriptor): Use them.
17455
17456 * var-tracking.c (create_entry_value): New function.
17457 (vt_add_function_parameter): Use it.
17458
17459 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17460
17461 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
17462 Include <signal.h>, <ucontext.h>.
17463 (sigill_caught): Define.
17464 (sigill_hdlr): New function.
17465 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
17466 insns can be executed.
17467 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
17468 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
17469
17470 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17471
17472 * config/t-slibgcc-darwin: Move to ...
17473 * config/t-slibgcc-dummy: ... this. Clarify comments.
17474 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
17475 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
17476 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
17477 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
17478 Remove i386/t-crtstuff from tmake_file.
17479 (i[34567]86-*-solaris2*): Remove t-svr4,
17480 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
17481 t-slibgcc-dummy.
17482 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
17483 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
17484 sparc/t-crtfm from tmake_file.
17485 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
17486 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
17487 Remove extra_parts.
17488 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
17489 * config/i386/t-nwld (SHLIB_LINK): Remove.
17490 * config/i386/t-rtems-i386: Rename to ...
17491 * config/i386/t-rtems: ... this.
17492 ($(T)crti.o, $(T)crtn.o): Remove.
17493 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
17494 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
17495 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
17496 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
17497 EXTRA_MULTILIB_PARTS): Remove.
17498 * config/sparc/t-sol2-64: Likewise.
17499 * config/sparc/t-sol2: Remove.
17500 * config/sparc/t-crtin: Remove.
17501 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
17502 * config/i386/gmon-sol2.c: Remove.
17503 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
17504 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
17505 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
17506 * config/i386/sol2-gc1.asm: Remove.
17507 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
17508 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
17509 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
17510 * config/t-slibgcc-sld: Remove.
17511
17512 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17513
17514 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
17515 base_type_for_mode with op_mode instead of mode.
17516
17517 2011-06-01 Paul Brook <paul@cpodesourcery.com>
17518
17519 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
17520 Cortex-A15.
17521 * config/arm/arm-tune.md: Regenerate.
17522 * config/arm/arm-tables.opt: Regenerate.
17523 * config/arm/arm.c (FL_DIV): Rename...
17524 (FL_THUMB_DIV): ... to this.
17525 (FL_ARM_DIV): Define.
17526 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
17527 (arm_arch_hwdiv): Remove.
17528 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
17529 (arm_issue_rate): Add cortexr5.
17530 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
17531 __ARM_ARCH_EXT_IDIV__.
17532 (TARGET_IDIV): Define.
17533 (arm_arch_hwdiv): Remove.
17534 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
17535 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
17536 (divsi3, udivsi3): New patterns.
17537 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
17538 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
17539
17540 2011-06-01 Martin Jambor <mjambor@suse.cz>
17541
17542 * ipa-utils.c (ipa_dfs_info): New field scc_no.
17543 * ipa-utils.c (searchc): Set scc_no.
17544
17545 2011-06-01 Martin Jambor <mjambor@suse.cz>
17546
17547 * ipa-utils.c (searchc_env): New field allow_overwritable.
17548 (searchc): do not ignore edges to overwritable nodes if indicated
17549 by env->allow_overwritable.
17550 (ipa_reduced_postorder): Set env.allow_overwritable.
17551
17552 2011-06-01 Richard Guenther <rguenther@suse.de>
17553
17554 * tree.c (free_lang_data): Do not reset boolean_type_node nor
17555 char_type_node.
17556 * lto-streamer.c (lto_record_common_node): Take node pointer,
17557 do not register types.
17558 (lto_preload_common_nodes): Explicitly skip preloading nodes
17559 that differ between frontends.
17560
17561 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
17562
17563 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
17564 NON_FLOAT_REGS.
17565
17566 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
17567
17568 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
17569 parameter value for dump. Dump cost on outermost call only.
17570 (rs6000_memory_move_cost): Dump cost on outermost call only.
17571
17572 2011-05-31 Jakub Jelinek <jakub@redhat.com>
17573
17574 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
17575 DW_OP_GNU_convert ops.
17576
17577 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
17578 cselib_preserve_constants.
17579 (cselib_lookup_1): If cselib_preserve_constants,
17580 a new VALUE is being created for REG and there is a VALUE for the
17581 same register in wider mode, add another loc with lowpart SUBREG of
17582 the wider VALUE.
17583 (cselib_subst_to_values): Handle ENTRY_VALUE.
17584 * var-tracking.c (replace_expr_with_values): Return NULL for
17585 ENTRY_VALUE too.
17586 * dwarf2out.c (convert_descriptor_to_signed): New function.
17587 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
17588 instead of two shifts.
17589 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
17590 the right mode if needed.
17591 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
17592 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
17593 convert_descriptor_to_signed.
17594 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
17595 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
17596
17597 PR target/48688
17598 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
17599
17600 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17601
17602 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
17603 of X87MODEI12 and SWI48x instead of SSEMODEI24.
17604 (SWI248x): New mode iterator, rename from X87MODEI.
17605 (X87MODEI): Remove mode iterator.
17606 (X87MODEI12): Ditto.
17607 (SSEMODEI24): Ditto.
17608
17609 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17610
17611 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
17612 * doc/invoke.texi: Document max-vartrack-expr-depth.
17613 * var-tracking.c (EXPR_DEPTH): New.
17614 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
17615
17616 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17617
17618 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
17619 * config/i386/sse.md: Add n to negated FMA pattern names.
17620
17621 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17622
17623 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
17624
17625 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17626
17627 * gengtype-state.c (read_state_params_structs): Initialize previous.
17628
17629 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17630
17631 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
17632 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
17633
17634 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17635
17636 * config/i386/i386.md (*movtf_internal): Avoid allocating general
17637 registers. Penalize F*r->o alternative to prevent partial memory
17638 stalls. Slightly penalize *roF->*r alternative. Generate SSE
17639 CONST_DOUBLE immediates when optimizing function for size. Do not move
17640 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
17641 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
17642 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
17643 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
17644 alternatives.
17645 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
17646
17647 (fp_register_operand splitters): Use fp_register_operand
17648 constraint. Do not use FP_REG_P in insn condition.
17649 (any_fp_register_operand splitters): Use any_fp_register_operand
17650 constraint. Do not use ANY_FP_REG_P in insn condition.
17651
17652 2011-05-31 Jan Hubicka <jh@suse.cz>
17653
17654 * cgraph.h (cgraph_inline_failed_t): Give enum a name
17655 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
17656 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
17657 (lto_output_edge): Use output_enum and var_len_unsigned.
17658 (lto_output_varpool_node): Likewise.
17659 (input_overwrite_node): Do not take resolution parameter;
17660 extract it from a bitpack.
17661 (input_node): Do not read resolution; use input_enum and
17662 var_len_unsigned.
17663 (input_varpool_node): Likewise.
17664 (input_edge): Likewise.
17665 (input_cgraph_1): Likewise.
17666
17667 2011-05-31 Richard Guenther <rguenther@suse.de>
17668
17669 * gimple.c (gimple_register_canonical_type): Do not register
17670 any types via gimple_register_type.
17671
17672 2011-05-31 Jan Hubicka <jh@suse.cz>
17673
17674 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
17675 of thunks.
17676
17677 2011-05-31 Jakub Jelinek <jakub@redhat.com>
17678
17679 PR rtl-optimization/49235
17680 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
17681 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
17682
17683 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
17684
17685 PR tree-optimization/49093
17686 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
17687 data references.
17688
17689 2011-05-31 Dodji Seketeli <dodji@redhat.com>
17690
17691 PR debug/49047
17692 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
17693 for concrete functions containing the code of cloned functions.
17694
17695 2011-05-31 Richard Guenther <rguenther@suse.de>
17696
17697 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
17698 to ...
17699 (forward_propagate_into_comparison_1): ... this.
17700 (forward_propagate_comparison): Rename to ...
17701 (forward_propagate_into_comparison): ... this. Split out
17702 real forward propagation code to ...
17703 (forward_propagate_comparison): ... this.
17704 (forward_propagate_into_gimple_cond): Remove looping.
17705 (forward_propagate_into_cond): Likewise.
17706 (simplify_not_neg_expr): Return whether we have done something.
17707 (simplify_gimple_switch): Likewise.
17708 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
17709 (ssa_forward_propagate_and_combine): ... this. Re-structure
17710 to do a forward forward-propagation walk on BBs and a backward
17711 stmt combining walk on BBs. Consistently re-scan changed statements.
17712 (pass_forwprop): Adjust.
17713
17714 2011-05-30 Ian Lance Taylor <iant@google.com>
17715
17716 * godump.c (go_format_type): Correct length of name added to
17717 obstack for anonymous field.
17718
17719 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
17720
17721 PR target/49186
17722 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
17723 part of the second operand is 0.
17724
17725 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
17726
17727 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
17728 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
17729 to memory for !TARGET_MEMORY_MISMATCH_STALL.
17730 (*movdf_internal_rex64): Do not penalize F->r alternative.
17731 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
17732 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
17733 when optimizing function for size. Do not move CONST_DOUBLEs
17734 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
17735 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
17736 SUBREGs. Do not check for MEM_P operands in the insn condition,
17737 check for ANY_FP_REGNO_P instead.
17738 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
17739 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
17740 function for speed.
17741 * config/i386/i386.c (ix86_option_override_internal): Do not
17742 set TARGET_INTEGER_DFMODE_MOVES here.
17743
17744 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
17745
17746 PR target/49168
17747 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
17748
17749 2011-05-30 Jakub Jelinek <jakub@redhat.com>
17750
17751 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
17752 DW_TAG_rvalue_reference_type even for
17753 -gdwarf-4 -fno-debug-types-section.
17754
17755 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17756
17757 PR tree-optimization/46728
17758 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
17759 (build_and_insert_binop): New.
17760 (gimple_expand_builtin_pow): Reorder args for
17761 build_and_insert_call; use build_and_insert_binop; add more
17762 optimizations for fractional exponents.
17763
17764 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
17765
17766 PR bootstrap/49190
17767
17768 Revert:
17769 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
17770
17771 * tree.h (struct tree_identifier): Inherit from tree_typed, not
17772 tree_common.
17773 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
17774 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
17775 TS_BASE instead of TS_COMMON.
17776 * varasm.c (assemble_name): Remove assert.
17777
17778 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17779
17780 * config.gcc: Keep obselete list sorted.
17781
17782 2011-05-30 Jakub Jelinek <jakub@redhat.com>
17783 Eric Botcazou <ebotcazou@adacore.com>
17784
17785 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
17786 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
17787 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
17788 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
17789 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
17790
17791 2011-05-30 Richard Guenther <rguenther@suse.de>
17792
17793 * gimple.c (gimple_types_compatible_p_1): Compare record
17794 and union type members properly.
17795
17796 2011-05-30 Richard Guenther <rguenther@suse.de>
17797
17798 PR tree-optimization/49210
17799 * ipa-split.c (split_function): Care for the case where the call
17800 result is not trivially convertible to the result holding variable.
17801
17802 2011-05-30 Richard Guenther <rguenther@suse.de>
17803
17804 PR tree-optimization/49218
17805 * tree-vrp.c (adjust_range_with_scev): Properly check whether
17806 overflow occured.
17807
17808 2011-05-30 Richard Guenther <rguenther@suse.de>
17809
17810 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
17811 New function split out from ...
17812 (forward_propagate_into_gimple_cond): ... here. Adjust.
17813 (forward_propagate_into_cond): Likewise.
17814 (forward_propagate_comparison): Also propagate into
17815 comparisons on assignment RHS. Change return value to
17816 behave similar to forward_propagate_into_cond.
17817 (tree_ssa_forward_propagate_single_use_vars): Handle
17818 strict-overflow warnings properly for forward_propagate_comparison.
17819
17820 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17821
17822 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
17823 from plugin linker.
17824 * configure: Regenerate.
17825
17826 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
17827
17828 PR tree-optimization/49199
17829 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
17830 non-reduction operands are either defined in the loop or by induction.
17831
17832 2011-05-29 Xinliang David Li <davidxl@google.com>
17833
17834 * opts-global.c (handle_common_deferred_options): Handle new options.
17835 * passes.c (register_one_dump_file): Call register_pass_name.
17836 (execute_one_pass): Check explicit enable/disable flag.
17837 (passr_hash): New function.
17838 (passr_eq): Ditto.
17839 (register_pass_name): Ditto.
17840 (get_pass_by_name): Ditto.
17841 (pass_hash): Ditto.
17842 (pass_eq): Ditto.
17843 (enable_pass): Ditto.
17844 (disable_pass): Ditto.
17845 (is_pass_explicitly_enabled_or_disabled): Ditto.
17846
17847 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
17848
17849 * config/i386/i386.md (*movoi_internal_avx): Use
17850 standard_sse_constant_opcode for alternative 0.
17851 (*movti_internal_sse): Ditto.
17852 (*movti_internal_rex64): Use standard_sse_constant_opcode for
17853 alternative 2.
17854 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
17855 sselog1 type moves.
17856 (*movsi_internal): Ditto.
17857 (*movdi_internal): Ditto. Add ssecvt type moves.
17858
17859 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
17860
17861 PR target/48830
17862 * rtlanal.c (simplify_subreg_regno): Adjust comment.
17863
17864 2011-05-29 Jakub Jelinek <jakub@redhat.com>
17865
17866 PR rtl-optimization/49095
17867 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
17868 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
17869
17870 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17871
17872 PR target/43995
17873 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
17874 recurse_p argument. Only follow register copies if it is set,
17875 and prevent mips_find_pic_call_symbol from recursing.
17876 (mips_find_pic_call_symbol): Add a recurse_p argument.
17877 Pass it to mips_pic_call_symbol_from_set.
17878 (mips_annotate_pic_calls): Update accordingly.
17879
17880 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17881
17882 * emit-rtl.c (try_split): Use a loop to search for
17883 NOTE_INSN_CALL_ARG_LOCATIONs.
17884
17885 2011-05-29 Richard Guenther <rguenther@suse.de>
17886
17887 PR tree-optimization/49217
17888 * ipa-pure-const.c (propagate_pure_const): Fix typos.
17889
17890 2011-05-28 Jan Hubicka <jh@suse.cz>
17891
17892 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
17893 length.
17894 (string_slot_free): Remove
17895 (create_output_block): Initialize obstack.
17896 (destroy_output_block): Free obstack.
17897 (lto_string_index): Add PERSISTENT parameter; do not duplicate
17898 the string unless it needs to be added into the hash.
17899 (lto_output_string_with_length): Add persistent attribute;
17900 handle NULL strings.
17901 (lto_output_string): Add PERSISTENT parameter.
17902 (output_string_cst, output_identifier): Simplify.
17903 (lto_output_location_bitpack): Update.
17904 (lto_output_builtin_tree): Update.
17905 * lto-streamer.h (struct output_block): Add obstack.
17906 (lto_output_string, lto_output_string_with_length): Remove
17907 declarations; functions are static now.
17908
17909 2011-05-28 Jan Hubicka <jh@suse.cz>
17910
17911 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
17912 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
17913 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
17914 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
17915 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
17916 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
17917 unpack_ts_decl_with_vis_value_fields,
17918 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
17919 lto_get_builtin_tree): Use enum and variable length i/o.
17920 * basic-block.h (profile_status_d): Add PROFILE_LAST.
17921 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
17922 New functions.
17923 (bp_pack_enum, bp_unpack_enum): New macros.
17924
17925 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17926
17927 * genrecog.c: Remove redundant forward declarations.
17928
17929 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17930
17931 * config.gcc: Deprecate mips*-*-openbsd*.
17932
17933 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17934
17935 PR bootstrap/49195
17936 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
17937 for match_op_dup.
17938
17939 2011-05-27 Andrew Pinski <pinskia@gmail.com>
17940
17941 PR middle-end/48981
17942 * gengtype.c (vec_prefix_type): New function.
17943 (note_def_vec): Use vec_prefix_type and change the length
17944 attribute to be based on the prefix.
17945 * vec.c: Include coretypes.h before vec.h.
17946 (struct vec_prefix): Remove.
17947 (vec_gc_p_reserve): Change the offsetof to sizeof.
17948 (vec_gc_p_reserve_exact): Likewise.
17949 (vec_heap_p_reserve): Likewise.
17950 (vec_heap_p_reserve_exact): Likewise.
17951 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
17952 (vec_stack_p_reserve): Change the offsetof to sizeof.
17953 (vec_stack_p_reserve_exact): Likewise.
17954 * vec.h (struct vec_prefix): New struct definition.
17955 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
17956 (VEC_T_GTY(T,B)): Likewise.
17957 (DEF_VEC_FUNC_P(T)): Use prefix field.
17958 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
17959 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
17960
17961 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17962
17963 PR tree-optimization/46728
17964 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
17965 (powi_as_mults): Add gimple_set_location.
17966 (build_and_insert_call): New.
17967 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
17968 0.5, 0.25, 0.75, 1./3., or 1./6.
17969
17970 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
17971
17972 * doc/contrib.texi: Update copyright years.
17973 (Contributors): Add Zdenek Sojka.
17974
17975 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
17976
17977 * c-decl.c (c_push_function_context): Copy the current statement
17978 list stack.
17979 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
17980 (finish_struct): Call building_stmt_list_p instead of checking
17981 cur_stmt_list.
17982 * c-parser.c (c_parser_postfix_expression): Likewise.
17983 * c-typeck.c (c_end_compound_stmt): Likewise.
17984 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
17985 * tree-iterator.c (stmt_list_cache): Change to a VEC.
17986 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
17987 (free_stmt_list): Likewise.
17988 * tree.h (struct tree_statement_list): Include typed_tree instead
17989 of tree_common.
17990 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
17991 as TS_TYPED instead of TS_COMMON.
17992
17993 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17994 Uros Bizjak <ubizjak@gmail.com>
17995
17996 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
17997 (HAVE_AS_IX86_TLSGDPTL): Define.
17998 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
17999 (HAVE_AS_IX86_TLSLDMPLT): Define.
18000 * configure: Regenerate.
18001 * config.in: Regenerate.
18002 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
18003 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
18004 TARGET_SUN_TLS, use @tlsgdplt or @plt.
18005 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
18006 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
18007 @tlsldmplt or @plt.
18008 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
18009
18010 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
18011
18012 * sched-int.h (struct _haifa_deps_insn_data): New members cond
18013 and reverse_cond.
18014 (INSN_COND, INSN_REVERSE_COND): New macros.
18015 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
18016 once.
18017 (sched_get_condition_with_rev): Cache the results, and look them up
18018 if possible.
18019 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
18020 are clobbered by the current insn.
18021 * target.def (exposed_pipline): New sched data hook.
18022 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
18023 * doc/tm.texi: Regenerate.
18024
18025 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18026
18027 PR tree-optimization/49170
18028 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
18029 sincos or cexp.
18030
18031 2011-05-27 Richard Guenther <rguenther@suse.de>
18032
18033 PR middle-end/49189
18034 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
18035 of comparisons.
18036
18037 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
18038
18039 * haifa-sched.c (sched_scan_info): Remove.
18040 (schedule_block): Call sched_extend_luids rather than sched_init_luids
18041 with NULL args.
18042 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
18043 Remove functions.
18044 (sched_scan): Remove.
18045 (sched_extend_luids): Renamed from luids_extend_insn and no longer
18046 static. All callers changed.
18047 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
18048 static. All callers changed.
18049 (sched_init_luids): Remove all arguments except the first. All
18050 callers changed. Don't use sched_scan.
18051 (haifa_init_h_i_d): Likewise.
18052 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
18053 manually rather than using sched_init_luids. Likewise with
18054 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
18055 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
18056 rather than sched_init_luids with NULL args.
18057 * sel-sched-ir.c (new_insns): Remove variable.
18058 (sched_scan): New static function, previously in haifa-sched.c. Remove
18059 all arguments but the first two; all callers changed.
18060 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
18061 rather than sched_init_luids.
18062 (sel_init_bbs): Remove second argument. All callers changed.
18063 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
18064 with NULL arguments.
18065 (create_insn_rtx_from_pattern): Likewise.
18066 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
18067 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
18068 (sched_init_insn_luid, sched_extend_luids): Declare.
18069 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
18070 declarations.
18071
18072 2011-05-27 Richard Guenther <rguenther@suse.de>
18073
18074 PR middle-end/49177
18075 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
18076 A CMP B ? (T) true : (T) false for non-integral types T again.
18077
18078 2011-05-27 Jan Hubicka <jh@suse.cz>
18079
18080 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
18081 so 0 means NULL string.
18082 (lto_output_string_with_length): ... here.
18083 (lto_output_string, output_string_cst, output_identifier): Update
18084 handling of NULL strings.
18085 (lto_output_location_bitpack): New function.
18086 (lto_output_location): Use it.
18087 (lto_output_tree_ref): Use output_record_start.
18088 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
18089 len values.
18090 * lto-streamer-in.c (string_for_index): Break out from ...; offset
18091 values by 1.
18092 (input_string_internal): ... here;
18093 (input_string_cst, input_identifier, lto_input_string): Update handling
18094 of NULL strings.
18095 (lto_input_location_bitpack): New function
18096 (lto_input_location): Use it.
18097 (unpack_ts_type_common_value_fields): Pack align & alias in var len
18098 values.
18099 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
18100 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
18101 (bp_pack_value): Sanity check the value range.
18102 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
18103 New functions.
18104 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
18105 New functions.
18106
18107 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
18108
18109 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
18110 call_arg_location instructions down the floor.
18111
18112 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
18113
18114 PR rtl-optimization/49154
18115 * ira.c (setup_pressure_classes): Process class without sublcasses
18116 as a candidate for pressure classes.
18117
18118 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
18119
18120 PR rtl-optimization/48575
18121 * genrecog.c (position_type): New enum.
18122 (position): New structure.
18123 (decision): Use position structure instead of a string.
18124 (root_pos, peep2_insn_pos_list): New variables.
18125 (next_position, compare_positions): New functions.
18126 (new_decision): Use position structures instead of strings.
18127 (maybe_both_true): Likewise.
18128 (change_state): Likewise.
18129 (write_tree): Likewise.
18130 (make_insn_sequence): Likewise.
18131
18132 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
18133
18134 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
18135 TS_BASE instead of TS_COMMON.
18136 (find_decls_types_r): Check for TS_TYPED structure before looking at
18137 TREE_TYPE.
18138 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
18139 Add chain field.
18140 (BLOCK_CHAIN): Use new chain field.
18141
18142 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
18143
18144 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
18145 moves expensive on Power7 also.
18146
18147 2011-05-26 Richard Guenther <rguenther@suse.de>
18148
18149 * fold-const.c (fold_unary_loc): Remove bogus code.
18150
18151 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
18152
18153 * tree.h (struct tree_identifier): Inherit from tree_typed, not
18154 tree_common.
18155 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
18156 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
18157 TS_BASE instead of TS_COMMON.
18158 * varasm.c (assemble_name): Remove assert.
18159
18160 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
18161
18162 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
18163 substituted first.
18164 * libgcc-std.ver: Delete file.
18165
18166 2011-05-26 Richard Guenther <rguenther@suse.de>
18167
18168 PR tree-optimization/48702
18169 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
18170 only when we know the base address is within bounds.
18171 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
18172 assume the base address of TARGET_MEM_REFs is in bounds.
18173
18174 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18175
18176 PR target/49099
18177 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
18178 declaration in TARGET_SOLARIS.
18179
18180 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
18181
18182 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
18183 The instruction is then expanded explicitly.
18184 (supported_compare): Callable instruction.
18185 (compare): Likewise.
18186
18187 2011-05-26 Jakub Jelinek <jakub@redhat.com>
18188
18189 PR c++/49165
18190 * gimplify.c (shortcut_cond_r): Don't special case
18191 COND_EXPRs if they have void type on one of their arms.
18192
18193 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
18194
18195 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
18196 to reduce duplication, and to achieve a slightly more logical order
18197 of operations.
18198
18199 2011-05-26 Jakub Jelinek <jakub@redhat.com>
18200
18201 PR tree-optimization/49161
18202 * tree-vrp.c (struct case_info): New type.
18203 (compare_case_labels): Sort case_info structs instead of
18204 trees, and not primarily by CASE_LABEL uids but by
18205 label_for_block indexes.
18206 (find_switch_asserts): Put case labels into struct case_info
18207 array instead of TREE_VEC, adjust sorting, compare label_for_block
18208 values instead of CASE_LABELs.
18209
18210 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18211
18212 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
18213 ("orndi3_neon"): Likewise.
18214 ("bic<mode>3_neon"): Likewise.
18215
18216 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
18217
18218 PR tree-optimization/49038
18219 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
18220 Ensure at least one epilogue iteration if required by data
18221 accesses with gaps.
18222 * tree-vectorizer.h (struct _loop_vec_info): Add new field
18223 to mark loops that require peeling for gaps.
18224 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
18225 (vect_get_known_peeling_cost): Take peeling for gaps into
18226 account.
18227 (vect_transform_loop): Generate epilogue if required by data
18228 access with gaps.
18229 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
18230 loop as requiring an epilogue if there are gaps in the end of
18231 the strided group.
18232
18233 2011-05-25 Ian Lance Taylor <iant@google.com>
18234
18235 * godump.c (go_format_type): Output the first field with a usable
18236 Go type, if any.
18237
18238 2011-05-25 Ian Lance Taylor <iant@google.com>
18239
18240 * godump.c (go_format_type): Check for invalid type names, pointer
18241 target types, and struct field types.
18242
18243 2011-05-25 Jason Merrill <jason@redhat.com>
18244
18245 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
18246
18247 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
18248
18249 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
18250
18251 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18252
18253 * config/i386/i386.md (*movqi_extv_1)): Put back
18254 "register_operand" check in "type" calculation.
18255 (*movqi_extzv_2): Likewise.
18256
18257 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18258
18259 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
18260
18261 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
18262
18263 PR bootstrap/49160
18264 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
18265 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
18266 __divxc3, __divtc3): Wrap definitions in #ifndef.
18267
18268 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18269
18270 PR target/49142
18271 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
18272 "register_operand" check and replace q_regs_operand with
18273 QIreg_operand in "type" calculation.
18274 (*movqi_extv_1): Likewise.
18275 (*movqi_extzv_2_rex64): Likewise.
18276 (*movqi_extzv_2): Likewise.
18277
18278 * config/i386/predicates.md (QIreg_operand): New.
18279
18280 2011-05-25 Richard Guenther <rguenther@suse.de>
18281
18282 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
18283 type-based offset disambiguation, streamline MEM_REF and
18284 TARGET_MEM_REF handling.
18285
18286 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18287
18288 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
18289 (bdesc_special_args): Add pause intrinsic.
18290
18291 * config/i386/i386.md (UNSPEC_PAUSE): New.
18292 (pause): Likewise.
18293 (*pause): Likewise.
18294 * config/i386/ia32intrin.h (__pause): Likewise.
18295
18296 * doc/extend.texi (X86 Built-in Functions): Add documentation for
18297 pause intrinsic.
18298
18299 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18300
18301 PR tree-optimization/46728
18302 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
18303 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
18304
18305 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
18306
18307 * tree.h (struct tree_exp): Inherit from struct tree_typed.
18308 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
18309 instead of TS_COMMON.
18310
18311 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
18312
18313 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
18314 LIBGCC2_GNU_PREFIX is defined.
18315 (__N): New macro.
18316 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
18317 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
18318 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
18319 __clz_tab): Define using __N.
18320 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
18321 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
18322 * target.def (libfunc_gnu_prefix): New hook.
18323 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
18324 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
18325 * doc/tm.texi: Regenerate.
18326 * system.h (LIBGCC2_GNU_PREFIX): Poison.
18327 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
18328 account.
18329 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
18330 (init_optabs): Likewise for the bswap libfuncs.
18331 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
18332 and divide.
18333 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
18334 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
18335 * libgcc-std.ver: Remove.
18336 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
18337 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
18338 libgcc-std.ver.
18339 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18340 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
18341 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
18342 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
18343 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
18344 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18345 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18346 * config/fixed-bit.h (FIXED_OP): Define differently depending on
18347 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
18348 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
18349
18350 2011-05-25 Jan Hubicka <jh@suse.cz>
18351
18352 * lto-streamer-out.c (output_record_start): Use lto_output_enum
18353 (lto_output_tree): Use output_record_start.
18354 * lto-streamer-in.c (input_record_start): Use lto_input_enum
18355 (lto_get_pickled_tree): Use input_record_start.
18356 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
18357 (lto_value_range_error): New function.
18358 * lto-streamer.h (lto_value_range_error): Declare.
18359 (lto_output_int_in_range, lto_input_int_in_range): New functions.
18360 (lto_output_enum, lto_input_enum): New macros.
18361
18362 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
18363
18364 * common.opt (flag_stack_usage_info): New variable.
18365 (-Wstack-usage): New option.
18366 * doc/invoke.texi (Warning options): Document -Wstack-usage.
18367 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
18368 <OPT_fstack_usage>: Likewise.
18369 * toplev.c (output_stack_usage): Handle -Wstack-usage.
18370 * calls.c (expand_call): Test flag_stack_usage_info variable instead
18371 of flag_stack_usage.
18372 (emit_library_call_value_1): Likewise.
18373 * explow.c (allocate_dynamic_stack_space): Likewise.
18374 * function.c (instantiate_virtual_regs ): Likewise.
18375 (prepare_function_start): Likewise.
18376 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
18377 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
18378 * config/arm/arm.c (arm_expand_prologue): Likewise.
18379 (thumb1_expand_prologue): Likewise.
18380 * config/avr/avr.c (expand_prologue): Likewise.
18381 * config/i386/i386.c (ix86_expand_prologue): Likewise.
18382 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
18383 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
18384 * config/mips/mips.c (mips_expand_prologue): Likewise.
18385 * config/pa/pa.c (hppa_expand_prologue): Likewise.
18386 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
18387 * config/s390/s390.c (s390_emit_prologue): Likewise.
18388 * config/sh/sh.c (sh_expand_prologue): Likewise.
18389 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
18390 * config/spu/spu.c (spu_expand_prologue): Likewise.
18391
18392 2011-05-25 Richard Guenther <rguenther@suse.de>
18393
18394 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
18395 (gimple_canonical_types_compatible_p): Likewise.
18396
18397 2011-05-25 Jan Hubicka <jh@suse.cz>
18398
18399 PR middle-end/49062
18400 * ipa.c (function_and_variable_visibility): Only add to same
18401 comdat group list if DECL_ONE_ONLY.
18402
18403 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
18404
18405 PR rtl-optimization/49014
18406 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
18407
18408 2011-05-25 Jakub Jelinek <jakub@redhat.com>
18409
18410 PR target/49128
18411 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
18412
18413 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18414
18415 PR rtl-optimization/48757
18416 * ira-build.c (loop_with_eh_edge_p): Rename to
18417 loop_with_complex_edge_p, check edges on complexity, make function
18418 conditional.
18419 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
18420 conditional.
18421
18422 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18423
18424 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
18425 force flag_ira_share_save_slots to 0.
18426
18427 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18428
18429 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
18430 (vt_initialize): Set PROLOGUE_BB unconditionally.
18431 Add block comment about CFA_BASE_RTX machinery.
18432 Reset FP_CFA_OFFSET to -1 on all invalid paths.
18433 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
18434
18435 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
18436
18437 PR objc/48187
18438 * c-parser.c (c_parser_objc_class_instance_variables): More robust
18439 parsing of syntax error in ObjC instance variable lists. In
18440 particular, avoid an infinite loop if there is a stray ']'.
18441 Updated error message.
18442
18443 2011-05-24 Ian Lance Taylor <iant@google.com>
18444
18445 * godump.c (go_define): Don't accept a string immediately after
18446 another operand.
18447
18448 2011-05-24 Ian Lance Taylor <iant@google.com>
18449
18450 * godump.c (struct godump_container): Add invalid_hash field.
18451 (go_format_type): Return false if type is found in invalid_hash.
18452 (go_output_typedef): Add invalid type to invalid_hash.
18453 (go_finish): Create and delete invalid_hash.
18454
18455 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18456
18457 PR tree-optimization/46728
18458 * tree-ssa-math-opts.c (powi_table): New.
18459 (powi_lookup_cost): New.
18460 (powi_cost): New.
18461 (powi_as_mults_1): New.
18462 (powi_as_mults): New.
18463 (gimple_expand_builtin_powi): New.
18464 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
18465 (gate_cse_sincos): Remove sincos/cexp restriction.
18466
18467 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18468
18469 PR target/3746
18470 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
18471 mips-tdump native.
18472 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
18473 * mips-tdump.c: Likewise.
18474
18475 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
18476
18477 PR target/49128
18478 * config/i386/driver-i386.c (host_detect_local_cpu): Always
18479 add -mno-XXX. Handle FMA.
18480
18481 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18482
18483 PR rtl-optimization/48633
18484 * ira-build.c (loop_with_eh_edge_p): New function.
18485 (mark_loops_for_removal): Use it.
18486
18487 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18488
18489 PR rtl-optimization/48971
18490 * ira.c (setup_pressure_classes): Don't check register move cost
18491 for classes with one registers. Don't add pressure class if there
18492 is a pressure class with the same available hard registers.
18493 Check contains_reg_of_mode. Fix a typo in collecting
18494 temp_hard_regset. Ignore hard registers not belonging to a class.
18495
18496 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
18497
18498 PR target/49133
18499 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
18500
18501 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18502 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18503
18504 PR gcov-profile/48845
18505 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
18506
18507 2011-05-24 Richard Guenther <rguenther@suse.de>
18508
18509 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
18510 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
18511 (gimple_types_compatible_p_1): Adjust.
18512 (iterative_hash_canonical_type): Do not bother about complete vs.
18513 incomplete types.
18514 (gimple_canonical_types_compatible_p): Likewise.
18515
18516 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18517
18518 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
18519
18520 2011-05-24 Richard Guenther <rguenther@suse.de>
18521
18522 PR bootstrap/49078
18523 * gimple.c (gimple_register_canonical_type): Revert
18524 previous change.
18525 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
18526 does not for a tree for the case where it matters. Cache
18527 pointer-type alias-sets.
18528
18529 2011-05-24 Joseph Myers <joseph@codesourcery.com>
18530
18531 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
18532 (OBJS): Remove options.o, opts-common.o and prefix.o.
18533 (OBJS-libcommon-target): New.
18534 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
18535 (BACKEND): Include libcommon-target.a.
18536 (MOSTLYCLEANFILES): Include libcommon-target.a.
18537 (libcommon-target.a): New.
18538 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
18539 prefix.o.
18540
18541 2011-05-23 Joseph Myers <joseph@codesourcery.com>
18542
18543 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
18544 parts of output shared with the driver.
18545 * optc-gen.awk: Don't generate parts of output not shared with the
18546 driver.
18547 * opth-gen.awk: Remove GCC_DRIVER conditionals.
18548 * doc/options.texi (SourcerInclude): Mention options-save.c.
18549 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
18550 (OBJS): Add options-save.o.
18551 (options-save.c, options-save.o): New.
18552 (options.o): Update dependencies.
18553 (gcc-options.o): Remove.
18554 (mostlyclean): Remove options-save.c.
18555
18556 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18557
18558 PR debug/49032
18559 * dbxout.c: Include cgraph.h.
18560 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
18561 and without value expr, return NULL if no varpool node exists for
18562 it or if it is not needed.
18563 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
18564
18565 PR c/49120
18566 * c-decl.c (start_decl): Convert expr to void_type_node.
18567
18568 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
18569
18570 PR rtl-optimization/48826
18571 * emit-rtl.c (try_split): When splitting a call that is followed
18572 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
18573
18574 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18575
18576 * cfgexpand.c (expand_debug_expr): For unused non-addressable
18577 parameters passed in memory prefer using DECL_INCOMING_RTL over
18578 the pseudos it will be copied into.
18579
18580 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
18581
18582 PR target/47315
18583 * config/i386/i386.c (ix86_option_override_internal): Save the
18584 initial options after checking vzeroupper.
18585
18586 2011-05-23 David Li <davidxl@google.com>
18587
18588 PR tree-optimization/48988
18589 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
18590 Initialize has_valid_pred for each pred chain.
18591
18592 2011-05-23 Richard Guenther <rguenther@suse.de>
18593
18594 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
18595 (iterative_hash_gimple_type): Always hash type names.
18596
18597 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
18598
18599 * c-typeck.c (build_function_call_vec): Tweak call to
18600 check_function_arguments.
18601
18602 2011-05-23 Richard Guenther <rguenther@suse.de>
18603
18604 PR tree-optimization/49115
18605 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
18606 is not necessarily carried out, do not claim it kills the ref.
18607 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
18608
18609 2011-05-23 Richard Guenther <rguenther@suse.de>
18610
18611 PR middle-end/15419
18612 * builtins.c (fold_builtin_memory_op): Be less restrictive about
18613 what pointer types we accept for folding.
18614
18615 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18616
18617 * gthr-gnat.c: Remove.
18618 * gthr-gnat.h: Remove.
18619 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
18620 * config/t-freebsd (LIB2ADDEH): Likewise.
18621 * config/t-linux (LIB2ADDEH): Likewise.
18622 * config/t-sol2 (LIB2ADDEH): Likewise.
18623 * config/ia64/t-vms (LIB2ADDEH): Likewise.
18624 * configure.ac (target_thread_file): Remove gnat handling.
18625 * configure: Regenerate.
18626 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
18627
18628 2011-05-23 Tristan Gingold <gingold@adacore.com>
18629 Eric Botcazou <ebotcazou@adacore.com>
18630
18631 * gcov.c (create_file_names): If no object directory is specified,
18632 keep the directory of the file.
18633
18634 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18635
18636 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
18637 * configure: Regenerate.
18638
18639 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18640
18641 PR middle-end/48973
18642 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
18643 failed and the comparison has a single bit signed type, use
18644 constm1_rtx instead of const1_rtx for true value.
18645 (do_store_flag): If ops->type is single bit signed type, disable
18646 signel bit test optimization and pass -1 instead of 1 as last
18647 parameter to emit_store_flag_force.
18648
18649 2011-05-23 Tom de Vries <tom@codesourcery.com>
18650
18651 PR target/45098
18652 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
18653 function.
18654 (infer_loop_bounds_from_undefined): Use new function.
18655
18656 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
18657
18658 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
18659 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
18660 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
18661 and -O0 otherwise.
18662 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
18663
18664 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18665
18666 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
18667 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
18668 returns true.
18669
18670 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
18671
18672 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
18673
18674 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18675
18676 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
18677 UNSPEC_MOVE_PIC pattern.
18678
18679 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18680
18681 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
18682 (sparc-*-rtems*): Likewise.
18683 (sparc64-*-elf*): Likewise.
18684 (sparc64-*-rtems*): Likewise.
18685 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
18686 * config/sparc/t-crtin: New file.
18687 * config/sparc/t-sol2 (crti.o): Delete rule.
18688 (crtn.o): Likewise.
18689 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
18690 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
18691 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
18692 (ENDFILE_SPEC): Add crtn.o.
18693
18694 2011-05-22 Tom de Vries <tom@codesourcery.com>
18695
18696 PR middle-end/48689
18697 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
18698 CODE_CONTAINS_STRUCT (TS_COMMON).
18699
18700 2011-05-22 Jakub Jelinek <jakub@redhat.com>
18701
18702 PR middle-end/49029
18703 * expmed.c (extract_fixed_bit_field): Test whether target can be used
18704 only after deciding which mode to use.
18705
18706 2011-05-22 Tom de Vries <tom@codesourcery.com>
18707
18708 PR target/45098
18709 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
18710 for call to get_shiftadd_cost.
18711
18712 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
18713
18714 PR target/49104
18715 * config/i386/cpuid.h (bit_MMXEXT): New define.
18716
18717 2011-05-22 Nick Clifton <nickc@redhat.com>
18718
18719 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
18720 initialisation of non-existant args[2] element. Use args[] array
18721 not arg[] array to pass arguments to build_function_type_list.
18722
18723 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
18724
18725 PR tree-optimization/49087
18726 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
18727
18728 2011-05-21 Jason Merrill <jason@redhat.com>
18729
18730 PR c++/49092
18731 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
18732 static storage duration.
18733
18734 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
18735
18736 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
18737 frame pointer.
18738
18739 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
18740
18741 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
18742 false if there are call-saved registers here...
18743 (sparc_can_use_return_insn_p): ...but here instead.
18744 (save_or_restore_regs): Fix thinko.
18745 (sparc_expand_prologue): Use current_function_is_leaf.
18746 (sparc_frame_pointer_required): Likewise.
18747
18748 2011-05-21 Nick Clifton <nickc@redhat.com>
18749
18750 PR target/49098
18751 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
18752
18753 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
18754
18755 * gengtype.c (walk_type): Implemented "atomic" GTY option.
18756 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
18757
18758 2011-05-21 Joseph Myers <joseph@codesourcery.com>
18759
18760 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
18761 * optc-gen.awk: Move common code to opt-read.awk.
18762 * opth-gen.awk: Likewise.
18763 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
18764
18765 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
18766
18767 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
18768
18769 2011-05-20 Tom de Vries <tom@codesourcery.com>
18770
18771 PR target/45098
18772 * tree-ssa-loop-ivopts.c: Include expmed.h.
18773 (get_shiftadd_cost): New function.
18774 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
18775
18776 2011-05-20 Jakub Jelinek <jakub@redhat.com>
18777
18778 PR bootstrap/49086
18779 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
18780 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
18781
18782 2011-05-20 Joseph Myers <joseph@codesourcery.com>
18783
18784 * Makefile.in: Update comment referring to $(OBJS-common).
18785
18786 2011-05-20 Ian Lance Taylor <iant@google.com>
18787
18788 * godump.c (go_output_typedef): Put enum constants in the macro
18789 hash table to avoid duplicate Go const definitions.
18790
18791 2011-05-20 Joseph Myers <joseph@codesourcery.com>
18792
18793 * Makefile.in (LIBDEPS): Add libcommon.a.
18794 (LIBS): Likewise.
18795 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
18796 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
18797 pretty-print.o and version.o.
18798 (OBJS-libcommon): New.
18799 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
18800 (BACKEND): Add libcommon.a.
18801 (MOSTLYCLEANFILES): Likewise.
18802 (libcommon.a): New.
18803 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
18804 (cpp$(exeext)): Likewise.
18805 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
18806 pretty-print.o and input.o.
18807 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
18808 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
18809 (errors.o): Remove.
18810 (mips-tfile): Don't explicitly use version.o.
18811 (mips-tdump): Likewise.
18812 (gcov.o): Depend on $(DIAGNOSTIC_H).
18813 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
18814 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
18815 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
18816 * gcov-dump.c: Include intl.h and diagnostic.h.
18817 (main): Initialize diagnostics.
18818 * gcov.c: Include diagnostic.h.
18819 (fnotice): Remove.
18820 (main): Initialize diagnostics.
18821 * lto-wrapper.c: Include diagnostic.h.
18822 (main): Initialize diagnostics.
18823
18824 2011-05-20 Michael Matz <matz@suse.de>
18825
18826 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
18827
18828 2011-05-20 Michael Matz <matz@suse.de>
18829 Richard Guenther <rguenther@suse.de>
18830
18831 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
18832 use lto_streamer_cache_append directly instead of returning a VEC.
18833 (preload_common_node): Remove.
18834 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
18835 track seen nodes.
18836 (lto_streamer_cache_create): Call lto_preload_common_nodes.
18837
18838 2011-05-20 Richard Guenther <rguenther@suse.de>
18839
18840 PR tree-optimization/49079
18841 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
18842 MEM_REFs correctly for the trailing array access detection.
18843 Special case constants the same way as decls for overall size
18844 constraining.
18845
18846 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
18847
18848 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
18849 argument expansion.
18850
18851 2011-05-20 Jakub Jelinek <jakub@redhat.com>
18852
18853 PR tree-optimization/49073
18854 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
18855 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
18856 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
18857
18858 2011-05-20 Richard Guenther <rguenther@suse.de>
18859
18860 PR middle-end/48849
18861 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
18862 of pointer types the same way the middle-end does.
18863
18864 2011-05-20 Richard Guenther <rguenther@suse.de>
18865
18866 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
18867 or pointer-to chains. Delay all fixup to uniquify_nodes.
18868
18869 2011-05-19 Quentin Neill <quentin.neill@amd.com>
18870
18871 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
18872 (fma4_fmaddsub): Likewise
18873
18874 2011-05-19 Jan Hubicka <jh@suse.cz>
18875
18876 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
18877 (GIMPLE_TYPE_PAIR_SIZE): New macro.
18878 (type_pair_cache): New static var.
18879 (lookup_type_pair): Use fixed sized custom hash; make inline.
18880 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
18881 calls of lookup_type_pair.
18882 (print_gimple_types_stats): Remove cache stats.
18883 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
18884 and gtc_ob.
18885
18886 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
18887
18888 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
18889 when TARGET_RDRND is active.
18890 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
18891 Generate dummy SImode target register when target is NULL.
18892
18893 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18894
18895 * config/arm/arm-fpus.def: New.
18896 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
18897 arm-fpus.def.
18898 * config/arm/arm-tables.opt: Regenerate.
18899 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
18900 (arm_option_override): Don't decode FPU name to string here.
18901 * config/arm/arm.opt (mfpu=): Use Enum.
18902 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
18903 Update dependencies.
18904
18905 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18906
18907 * collect2.c: Include diagnostic.h.
18908 (fatal_perror, fatal, error, fancy_abort): Remove.
18909 (main): Set progname. Call xmalloc_set_program_name and
18910 diagnostic_initialize.
18911 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
18912 scan_libraries, resolve_lib_name): Call fatal_error instead of
18913 fatal and fatal_perror.
18914 * collect2.h (error, fatal, fatal_perror): Don't declare.
18915 * tlink.c: Include diagnostic-core.h.
18916 (recompile_files): Call fatal_error instead of fatal_perror.
18917 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
18918 pretty-print.o and input.o.
18919 (collect2.o, tlink.o): Update dependencies.
18920
18921 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18922
18923 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
18924
18925 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18926
18927 PR target/40483
18928 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
18929 COMDAT group syntax, both SPARC and x86 variants.
18930 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
18931 * configure: Regenerate.
18932 * config/sol2.h (TARGET_SOLARIS): Define.
18933 (PUSHSECTION_FORMAT): Remove.
18934 (SECTION_NAME_FORMAT): Define.
18935 * config/sol2.c: Include hashtab.h.
18936 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
18937 expansion, using SECTION_NAME_FORMAT.
18938 (solaris_comdat_htab): New variable.
18939 (struct comdat_entry): Define.
18940 (comdat_hash): New function.
18941 (comdat_eq): New function.
18942 (solaris_elf_asm_comdat_section): New function.
18943 (solaris_define_comdat_signature): New function.
18944 (solaris_code_end): New function.
18945 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
18946 (solaris_code_end): Declare.
18947 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
18948 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
18949 solaris_code_end.
18950 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
18951 Remove ATTRIBUTE_UNUSED.
18952 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
18953 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
18954 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
18955 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
18956 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
18957 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
18958 (PUSHSECTION_FORMAT): Remove.
18959 (SECTION_NAME_FORMAT): Redefine.
18960
18961 2011-05-19 Kai Tietz <ktietz@redhat.com>
18962
18963 * tree-cfg.c (verify_gimple_assign_binary): Barf on
18964 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
18965 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
18966
18967 2011-05-19 Anatoly Sokolov <aesok@post.ru>
18968 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18969
18970 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
18971
18972 2011-05-19 Richard Guenther <rguenther@suse.de>
18973
18974 PR middle-end/48985
18975 * tree-object-size.c (addr_object_size): If the pointed-to
18976 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
18977
18978 2011-05-19 Richard Guenther <rguenther@suse.de>
18979
18980 * gimple.c (gimple_types_compatible_p_1): Compare names of
18981 the types themselves.
18982 (iterative_hash_gimple_type): And hash them that way.
18983 (gimple_register_type_1): If we register a main variant properly
18984 initialize the leader to ourselves.
18985
18986 2011-05-19 Tom de Vries <tom@codesourcery.com>
18987
18988 PR target/45098
18989 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
18990 get_loop_invariant_expr_id.
18991 (get_loop_invariant_expr_id): Use get_expr_id.
18992 (parm_decl_cost): New function.
18993 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
18994 Improve bound cost estimation. Use different inv_expr_id for elim and
18995 express cases.
18996
18997 2011-05-19 Tom de Vries <tom@codesourcery.com>
18998
18999 PR target/45098
19000 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
19001 cost_base.cost == 0.
19002
19003 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
19004
19005 PR target/49002
19006 * config/i386/sse.md
19007 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
19008 load cast.
19009
19010 2011-05-18 Jakub Jelinek <jakub@redhat.com>
19011
19012 PR tree-optimization/49039
19013 * tree-vrp.c (extract_range_from_binary_expr): For
19014 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
19015 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
19016
19017 2011-05-18 Tom de Vries <tom@codesourcery.com>
19018
19019 PR target/45098
19020 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
19021
19022 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
19023
19024 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
19025 (*tls_global_dynamic_64): Ditto.
19026 (*tls_local_dynamic_base_32_gnu): Ditto.
19027 (*tls_local_dynamic_base_64): Ditto.
19028 (tls_initial_exec_64_sun): Ditto.
19029
19030 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
19031
19032 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
19033 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
19034 bf592-none.
19035 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
19036 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
19037 * config/bfin/bfin.c (bfin_cpus): Add bf592.
19038 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
19039 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
19040 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
19041 * config/bfin/elf.h (LIB_SPEC): Add bf592.
19042
19043 2011-05-18 Joseph Myers <joseph@codesourcery.com>
19044
19045 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
19046 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
19047 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
19048 target_thread_pointer, arm_structure_size_boundary, struct
19049 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
19050 struct abi_name, arm_all_abis): Remove.
19051 (arm_option_override) Don't process most enumerated option values here.
19052 Don't process target_fpe_name here. Work with integer not string for
19053 structure size boundary; use separate diagnostics for each case.
19054 * config/arm/arm.h (enum float_abi_type, enum
19055 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
19056 to arm-opts.h.
19057 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
19058 arm_structure_size_boundary): Remove.
19059 * config/arm/arm.opt (mabi=): Use Enum and Init.
19060 (arm_abi_type): New Enum and EnumValue entries.
19061 (mfloat-abi=): Use Enum and Init.
19062 (float_abi_type): New Enum and EnumValue entries.
19063 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
19064 (mfp16-format=): Use Enum and Init.
19065 (arm_fp16_format_type): New Enum and EnumValue entries.
19066 (mstructure-size-boundary=): Use UInteger and Init.
19067 (mtp=): Use Enum and Init.
19068 (arm_tp_type): New Enum and EnumValue entries.
19069
19070 2011-05-18 Richard Guenther <rguenther@suse.de>
19071
19072 PR tree-optimization/49018
19073 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
19074 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
19075 gimple_has_side_effects.
19076
19077 2011-05-18 Richard Guenther <rguenther@suse.de>
19078
19079 * gimple.c (gimple_register_type_1): New function, split out from ...
19080 (gimple_register_type): ... here. Avoid infinite recursion.
19081
19082 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
19083
19084 PR tree-optimization/41881
19085 * tree-vectorizer.h (struct _loop_vec_info): Add new field
19086 reduction_chains along with a macro for its access.
19087 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
19088 (destroy_loop_vec_info): Free reduction chains.
19089 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
19090 (vect_is_slp_reduction): New function.
19091 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
19092 (vect_create_epilog_for_reduction): Support SLP reduction chains.
19093 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
19094 definition types for reduction chains.
19095 (vect_supported_load_permutation_p): Don't allow permutations for
19096 reduction chains.
19097 (vect_analyze_slp_instance): Support reduction chains.
19098 (vect_analyze_slp): Try to build SLP instance from reduction chains.
19099 (vect_get_constant_vectors): Handle reduction chains.
19100 (vect_schedule_slp_instance): Mark the first statement of the
19101 reduction chain as reduction.
19102
19103 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
19104
19105 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
19106 names for group elements access.
19107 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
19108 reduction chains as well. Remove data reference and interleaving
19109 related words from the fields names.
19110 * tree-vect-loop.c (vect_transform_loop): Use new names for group
19111 elements access.
19112 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
19113 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
19114 vect_update_interleaving_chain, vect_same_range_drs,
19115 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
19116 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
19117 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
19118 vect_analyze_group_access, vect_analyze_data_ref_access,
19119 vect_create_data_ref_ptr, vect_transform_strided_load,
19120 vect_record_strided_load_vectors): Likewise.
19121 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
19122 vect_model_load_cost, vectorizable_store, vectorizable_load,
19123 vect_remove_stores, new_stmt_vec_info): Likewise.
19124 * tree-vect-slp.c (vect_build_slp_tree,
19125 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
19126
19127 2011-05-18 Richard Guenther <rguenther@suse.de>
19128
19129 PR middle-end/48989
19130 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
19131 operand verification.
19132 (verify_gimple_assign_binary): Likewise.
19133 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
19134 to non-1-precision BOOLEAN_TYPEs.
19135
19136 2011-05-18 Tom de Vries <tom@codesourcery.com>
19137
19138 PR target/45098
19139 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
19140
19141 2011-05-18 Jakub Jelinek <jakub@redhat.com>
19142
19143 PR tree-optimization/49000
19144 * tree-ssa.c (execute_update_addresses_taken): Call
19145 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
19146 be rewritten and decl has been marked for renaming, reset
19147 the debug stmt.
19148
19149 2011-05-17 Joseph Myers <joseph@codesourcery.com>
19150
19151 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
19152 enum_opts_set when testing if attributes have set -mfpmath=.
19153
19154 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19155
19156 * config/mips/mips.c (mips_handle_option): Remove unused variable.
19157
19158 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
19159
19160 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
19161 info->entry with 0
19162 * tree-inline.c (maybe_inline_call_in_expr): Initialize
19163 id.transform_lang_insert_block with NULL.
19164
19165 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
19166
19167 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
19168 (output_fp_compare): Change args 3 and 4 to bool.
19169 (ix86_expand_call): Change arg 6 to bool.
19170 (ix86_attr_length_immediate_default): Change arg 2 to bool.
19171 (ix86_attr_length_vex_default): Change arg 3 to bool.
19172 * config/i386/i386.md: Update all uses.
19173 * config/i386/i386.c: Ditto.
19174 (ix86_flags_dependent): Change return type to bool.
19175
19176 2011-05-17 Richard Guenther <rguenther@suse.de>
19177
19178 * gimple.c (type_hash_pair_compare): Fix comparison.
19179
19180 2011-05-17 Richard Guenther <rguenther@suse.de>
19181
19182 * gimple.c (iterative_hash_gimple_type): Simplify singleton
19183 case some more, fix final hash value of the non-singleton case.
19184
19185 2011-05-17 Richard Guenther <rguenther@suse.de>
19186
19187 PR bootstrap/49013
19188 Revert
19189 2011-05-16 Richard Guenther <rguenther@suse.de>
19190
19191 * gimple.c (gimple_types_compatible_p_1): Use names of the
19192 type itself, not its main variant.
19193 (iterative_hash_gimple_type): Likewise.
19194
19195 2011-05-17 Richard Guenther <rguenther@suse.de>
19196
19197 * gimple.c (gimple_register_canonical_type): Use the main-variant
19198 leader for computing the canonical type.
19199
19200 2011-05-17 Nick Clifton <nickc@redhat.com>
19201
19202 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
19203 moves.
19204
19205 * config/rx/rx.md: Add peephole to remove redundant extensions
19206 after loads.
19207 (bitset_in_memory): Use rx_restricted_mem_operand.
19208 (bitinvert_in_memory): Likewise.
19209 (bitclr_in_memory): Likewise.
19210
19211 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
19212 Nick Clifton <nickc@redhat.com>
19213
19214 * config/rx/rx.md: Add peepholes to match a register move followed
19215 by a comparison of the moved register. Replace these with an
19216 addition of zero that does both actions in one instruction.
19217
19218 2011-05-17 Jakub Jelinek <jakub@redhat.com>
19219
19220 PR target/48986
19221 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
19222 predicate to allow CONST_INT.
19223 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
19224
19225 2011-05-16 Joseph Myers <joseph@codesourcery.com>
19226
19227 * opts-common.c (opt_enum_arg_to_value): New.
19228 * opts.h (opt_enum_arg_to_value): Declare.
19229 * config/i386/i386.opt (fpmath): Remove.
19230 (mfpmath=): Use Enum, Init and Save.
19231 (fpmath_unit): New Enum and EnumValue entries.
19232 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
19233 name for function fpmath state.
19234 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
19235 * config/i386/i386.c: Include diagnostic.h.
19236 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
19237 (ix86_target_string): Take enum fpmath_unit value instead of string.
19238 (ix86_debug_options): Update call to ix86_target_string.
19239 (ix86_option_override_internal): Don't process fpmath strings here.
19240 (x86_function_specific_save, ix86_function_specific_restore):
19241 Don't handle fpmath state specially.
19242 (ix86_function_specific_print): Pass fpmath state to
19243 ix86_target_string instead of printing in this function.
19244 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
19245 Handle enum attributes.
19246 (IX86_ATTR_ENUM, ix86_opt_enum): New.
19247 (ix86_valid_target_attribute_tree): Update option_strings
19248 handling. Handle fpmath as enum option.
19249 (ix86_can_inline_p): Update field names for function fpmath state.
19250 (ix86_expand_builtin): Update call to ix86_target_string.
19251 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
19252 (ix86_fpmath): Remove.
19253 * config/i386/t-i386 (i386.o): Update dependencies.
19254
19255 2011-05-16 Joseph Myers <joseph@codesourcery.com>
19256
19257 PR preprocessor/48677
19258 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
19259 from decoded_options[0], not from itself.
19260
19261 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
19262
19263 * config/i386/constraints.md (z): New constraint.
19264 * config/i386/i386.c (c): New mode attribute.
19265 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
19266 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
19267 constraint for operand 0.
19268 (*call_vzeroupper): Ditto.
19269 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
19270 (*call_rex64_ms_sysv_vzeroupper): Ditto.
19271 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
19272 Use "lzm" constraint for operand 0.
19273 (*call_pop_vzeroupper): Ditto.
19274 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
19275 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
19276 constraint for operand 0.
19277 (*sibcall_vzeroupper): Ditto.
19278 (*sibcall_rex64_ms_sysv): Ditto.
19279 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
19280 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
19281 *sibcall_pop_1. Use "Uz" constraint for operand 0.
19282 (*sibcall_pop_vzeroupper): Ditto.
19283 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
19284 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
19285 mode iterator. Use "<c>zm" constraint for operand 1.
19286 (*call_value_vzeroupper): Ditto.
19287 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
19288 for operand 1.
19289 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
19290 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
19291 *call_value_pop_1. Use "lzm" constraint for operand 1.
19292 (*call_value_pop_vzeroupper): Ditto.
19293 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
19294 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
19295 mode iterator. Use "Uz" constraint for operand 1.
19296 (*sibcall_value_vzeroupper): Ditto.
19297 (*sibcall_value_rex64_ms_sysv): Ditto.
19298 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
19299 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
19300 constraint for operand 1.
19301 (*sibcall_value_pop_vzeroupper): Ditto.
19302 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
19303 and "z" constraint for operand 2.
19304 (*tls_global_dynamic_32_gnu): Ditto.
19305 (*tls_local_dynamic_base_32_gnu): Ditto.
19306 (*tls_local_dynamic_base_64): Ditto.
19307 (*tls_local_dynamic_32_once): Ditto.
19308 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
19309 Update all callers.
19310 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
19311
19312 2011-05-16 Richard Guenther <rguenther@suse.de>
19313
19314 * gimple.c (gimple_types_compatible_p_1): Use names of the
19315 type itself, not its main variant.
19316 (iterative_hash_gimple_type): Likewise.
19317
19318 2011-05-16 Richard Guenther <rguenther@suse.de>
19319
19320 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
19321 always visit pointer target and function result and argument types.
19322
19323 2011-05-16 Jason Merrill <jason@redhat.com>
19324
19325 PR c++/48999
19326 * tree-inline.c (copy_statement_list): Put back recursion.
19327
19328 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
19329
19330 PR target/27663
19331 PR target/41076
19332 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
19333 * config/avr/avr.md ("*ior<mode>qi.byte0",
19334 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
19335
19336 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
19337
19338 PR target/45099
19339 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
19340 register is needed for a function argument.
19341
19342 2011-05-16 Richard Guenther <rguenther@suse.de>
19343
19344 * gimple.c (struct type_hash_pair): New type.
19345 (type_hash_pair_compare): New function.
19346 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
19347
19348 2011-05-16 Revital Eres <revital.eres@linaro.org>
19349
19350 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
19351
19352 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
19353
19354 * config/i386/i386.md (floating point move splitters): Fix
19355 usage of standard_80387_constant_p.
19356 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
19357
19358 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
19359
19360 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
19361
19362 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
19363
19364 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
19365 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
19366 (tree_ssa_lim_finalize): Likewise.
19367
19368 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
19369
19370 * config/i386/constraint.md (Yd, Yx): New register constraints.
19371 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
19372 Yd conditional register constraint.
19373 (*movtf_internal): Use standard_sse_constant_opcode.
19374 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
19375 Yx conditional register constraint.
19376 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
19377 Yd conditional register constraint. Use standard_sse_constant_p to
19378 check for valid SSE constants and call standard_sse_constant_opcode to
19379 output SSE insn.
19380 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
19381 constants and call standard_sse_constant_opcode to output SSE insn.
19382 * config/i386/i386.c (ix86_option_ovverride_internal): Set
19383 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
19384 optimize_size is set.
19385 (standard_sse_constant_opcode): Output conditional AVX insn templates.
19386
19387 2011-05-14 Tobias Burnus <burnus@net-b.de>
19388
19389 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
19390
19391 2011-05-13 Martin Jambor <mjambor@suse.cz>
19392
19393 * ipa-prop.c (ipa_cst_from_jfunc): New function.
19394 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
19395 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
19396 (evaluate_conditions_for_ipcp_clone): Removed.
19397 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
19398 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
19399 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
19400
19401 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
19402
19403 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
19404 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
19405 lieu of MAY_HAVE_DEBUG_STMTS.
19406 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
19407 debug statements if !MAY_HAVE_DEBUG_STMTS.
19408
19409 2011-05-13 Martin Thuresson <martint@google.com>
19410
19411 PR gcov-profile/47793
19412 * libgcov.c (gcov_exit): Support relative profile paths.
19413 * doc/invoke.texi (-fprofile-dir): Update for above change.
19414
19415 2011-05-13 Richard Guenther <rguenther@suse.de>
19416
19417 * gimple.c (gimple_canonical_types_compatible_p): Do not use
19418 type-pair caching, do not compare hashes.
19419
19420 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
19421
19422 PR middle-end/48965
19423 * tree-cfg.c (edge_to_cases_cleanup): Return true.
19424 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
19425
19426 2011-05-13 Kai Tietz <ktietz@redhat.com>
19427
19428 * gimplify.c (gimplify_expr): Make sure operand is boolified.
19429 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
19430 compatible type for TRUTH_NOT_EXPR.
19431
19432 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
19433
19434 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
19435 (ix86_hard_regno_mode_ok): Change return value to bool. Use
19436 can_create_pseudo_p ().
19437
19438 2011-05-13 Richard Guenther <rguenther@suse.de>
19439
19440 PR lto/48978
19441 * gimple.c (iterative_hash_gimple_type): Revert change in
19442 pointer target and function result and argument hashing.
19443
19444 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
19445
19446 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
19447 (*movxf_internal_nointeger): Ditto.
19448 (*movdf_internal_rex64): Ditto.
19449 (*movdf_internal): Ditto.
19450 (*movdf_internal_nointeger): Ditto.
19451 (*movsf_internal): Ditto.
19452 (sincos splitters): Use can_create_pseudo ().
19453
19454 2011-05-13 Joseph Myers <joseph@codesourcery.com>
19455
19456 * config/i386/i386-opts.h: New.
19457 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
19458 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
19459 ix86_section_threshold): Remove.
19460 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
19461 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
19462 OPT_mbranch_cost_.
19463 (ix86_option_override_internal): Don't decode strings for options
19464 other than -march=, -mtune= and -mfpmath=. Don't allow for
19465 __attribute__ uses in remaining diagnostics for options with
19466 string arguments. Don't check for integer arguments being negative.
19467 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
19468 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
19469 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
19470 ix86_branch_cost, ix86_section_threshold): Remove.
19471 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
19472 HeaderInclude.
19473 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
19474 but not Var.
19475 (masm=): Use Enum and Init.
19476 (asm_dialect): New Enum and EnumValue entries.
19477 (mbranch-cost=): Use UInteger.
19478 (mlarge-data-threshold=): Use UInteger and Init.
19479 (mcmodel=): Use Enum and Init.
19480 (cmodel): New Enum and EnumValue entries.
19481 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
19482 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
19483 mregparm=): Use UInteger.
19484 (mstringop-strategy=): Use Enum and Init.
19485 (stringop_alg): New Enum and EnumValue entries.
19486 (mtls-dialect=): Use Enum and Init.
19487 (tls_dialect): New Enum and EnumValue entries.
19488 (mabi=): Use Enum and Init.
19489 (calling_abi): New Enum and EnumValue entries.
19490 (mveclibabi=): Use Enum and Init.
19491 (ix86_veclibabi): New Enum and EnumValue entries.
19492
19493 2011-05-13 Nick Clifton <nickc@redhat.com>
19494
19495 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
19496 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
19497
19498 2011-05-13 Kai Tietz <ktietz@redhat.com>
19499
19500 PR middle-end/48984
19501 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
19502 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
19503 (gimple_boolify): Check for cast for boolean_type_node instead for
19504 BOOLEAN_TYPE.
19505
19506 2011-05-13 Richard Guenther <rguenther@suse.de>
19507
19508 PR tree-optimization/48172
19509 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
19510 multiplying by number of iterations for equal step.
19511 (vect_create_cond_for_alias_checks): Likewise.
19512
19513 2011-05-13 Andreas Schwab <schwab@redhat.com>
19514
19515 * configure.ac: Use AS_HELP_STRING throughout.
19516 * configure: Regenerate.
19517
19518 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
19519
19520 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
19521 (ix86_emit_restore_regs_using_mov): Likewise.
19522 (ix86_emit_restore_sse_regs_using_mov): Likewise.
19523
19524 2011-05-12 Anatoly Sokolov <aesok@post.ru>
19525
19526 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
19527 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
19528 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
19529 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
19530 RTX_OK_FOR_OLO10_P): ...here.
19531 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
19532 SYMBOLIC_CONST.
19533
19534 2011-05-12 Kai Tietz <ktietz@redhat.com>
19535
19536 * gimplify.c (gimple_boolify): Re-boolify expression
19537 arguments even if expression type is of kind BOOLEAN_TYPE.
19538 (gimplify_boolean_expr): Removed.
19539 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
19540 and XOR. Additional take care that we keep expression's type.
19541 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
19542 of TRUTH_AND|OR|XOR_EXPR.
19543
19544 2011-05-12 Jakub Jelinek <jakub@redhat.com>
19545
19546 PR tree-optimization/48975
19547 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
19548 on all bbs here and free and clear ifc_bbs at the end.
19549
19550 2011-05-12 Richard Guenther <rguenther@suse.de>
19551
19552 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
19553 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
19554 until after simple checks.
19555 (gimple_types_compatible_p): Likewise.
19556 (iterative_hash_gimple_type): Always hash pointer targets
19557 and function return and argument types.
19558 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
19559 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
19560 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
19561 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
19562 completely in the simple compare section.
19563 (gimple_register_canonical_type): Query the cache again after
19564 registering.
19565
19566 2011-05-12 Richard Guenther <rguenther@suse.de>
19567
19568 PR tree-optimization/48172
19569 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
19570 the number of iterations from the segment size calculation.
19571 (vect_create_cond_for_alias_checks): Adjust.
19572
19573 2011-05-12 Jakub Jelinek <jakub@redhat.com>
19574
19575 PR debug/48967
19576 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
19577 if validate_subreg fails.
19578
19579 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
19580
19581 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
19582 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
19583 early.
19584
19585 2011-05-12 DJ Delorie <dj@redhat.com>
19586
19587 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
19588 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
19589 created builtin into rx_builtins array.
19590 (rx_builtin_decl): New function.
19591 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
19592
19593 2011-05-12 DJ Delorie <dj@redhat.com>
19594 Nick Clifton <nickc@redhat.com>
19595
19596 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
19597 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
19598 (rx_is_legitimate_address): Add pre-decrement and post-increment
19599 addressing in HImode and QImode. Fix test for out of range
19600 REG+INT addressing.
19601 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
19602 (rx_align_for_label): Test label before extracting its usage count.
19603 (rx_adjust_insn_lengths): Fix selection of insn codes.
19604 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
19605
19606 2011-05-11 Jason Merrill <jason@redhat.com>
19607
19608 * tree.c (type_hash_canon): Use struct tree_type_non_common.
19609
19610 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
19611
19612 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
19613 reindent the subsequent block.
19614
19615 2011-05-11 Satoru Takabayashi <satorux@google.com>
19616 Paul Pluzhnikov <ppluzhnikov@google.com>
19617
19618 * doc/install.texi (Configuration): Document --with-linker-hash-style.
19619 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
19620 * config.in: Add LINKER_HASH_STYLE.
19621 * configure.ac: Add --with-linker-hash-style.
19622 * configure: Regenerate.
19623
19624 2011-05-11 Richard Guenther <rguenther@suse.de>
19625
19626 PR middle-end/48964
19627 * gimple.c (iterative_hash_canonical_type): Fix typo.
19628
19629 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
19630
19631 * config/i386/i386.c (legitimize_tls_address)
19632 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
19633 expanders directly for TARGET_GNU2_TLS. Determine pic and
19634 __tls_get_addr symbol reference here. Update call to
19635 gen_tls_global_dynamic_{32,64} for added arguments.
19636 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
19637 expanders directly for TARGET_GNU2_TLS. Determine
19638 __tls_get_addr symbol reference here. Update call to
19639 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
19640 unique UNSPEC REG_EQUIV to libcall block.
19641 (ix86_tls_get_addr): Declare static.
19642 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
19643 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
19644 Do not determine pic and __tls_get_addr symbol reference here. Do not
19645 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
19646 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
19647 (tls_global_dynamic_64): Add operand 2. Do not determine
19648 __tls_get_addr symbol reference here. Do not call
19649 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
19650 (tls_local_dynamic_base64): Ditto for operand 1.
19651
19652 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
19653
19654 * function.c (expand_function_start): Initialize stack_check_probe_note
19655 only if the generic stack checking mechanism is used.
19656
19657 2011-05-11 Richard Guenther <rguenther@suse.de>
19658
19659 PR tree-optimization/15256
19660 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
19661 (A & B) | C, combine (A op CST1) op CST2.
19662 (tree_ssa_forward_propagate_single_use_vars): Only bother to
19663 visit assigns that have uses.
19664
19665 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
19666
19667 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
19668 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
19669 (unpack_ts_type_common_value_fields): ...this. Update comment.
19670 (unpack_value_fields): Adjust for renaming.
19671 (lto_input_ts_type_tree_pointers): Split into...
19672 (lto_input_ts_type_common_tree_pointer): ...this and...
19673 (lto_input_ts_type_non_common_tree_pointers): ...this.
19674 (lto_input_tree_pointers): Adjust for above split.
19675 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
19676 (pack_ts_type_common_value_fields): ...this. Update comment.
19677 (lto_output_ts_type_tree_pointers): Split into...
19678 (lto_output_ts_type_common_tree_pointers): ...this and...
19679 (lto_output_ts_type_non_common_tree_pointers): ...this.
19680 (lto_output_tree_pointers): Adjust for above split.
19681 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
19682 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
19683 * stor-layout.c (vector_type_mode): Adjust location of mode field.
19684 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
19685 Define.
19686 (struct tree_type): Split into...
19687 (struct tree_type_common: ...this and...
19688 (struct tree_type_with_lang_specific): ...this and...
19689 (struct tree_type_non_common): ...this. Adjust accessor macros
19690 accordingly.
19691 (TYPE_VALUES_RAW): Define.
19692 (union tree_node): Update for above changes.
19693 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
19694 TS_TYPE_NON_COMMON.
19695 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
19696 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
19697 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
19698 * treestructu.def (TS_TYPE): Remove.
19699 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
19700 Define.
19701
19702 2011-05-11 Jakub Jelinek <jakub@redhat.com>
19703
19704 PR debug/48159
19705 * tree-ssa.c (reset_debug_uses): New function.
19706 * tree-flow.h (reset_debug_uses): New prototype.
19707 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
19708 * tree-loop-distribution.c (generate_loops_for_partition): Call
19709 reset_debug_uses on the stmts that will be removed. Keep around
19710 all debug stmts, don't count them as bits in partition bitmap.
19711 (generate_builtin): Don't count debug stmts or labels as bits in
19712 partition bitmap.
19713
19714 2011-05-11 Richard Guenther <rguenther@suse.de>
19715
19716 * gimple.c (gimple_type_hash_1): Merge with ...
19717 (gimple_type_hash): ... this.
19718 (gtc_visit): Remove mode parameter and simplify accordingly.
19719 (gimple_types_compatible_p_1): Likewise.
19720 (gimple_types_compatible_p): Likewise.
19721 (iterative_hash_gimple_type): Likewise.
19722 (visit): Likewise.
19723 (gimple_type_eq): Adjust.
19724
19725 2011-05-11 Revital Eres <revital.eres@linaro.org>
19726
19727 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
19728 enters the branch create an anti edge in the opposite direction
19729 to prevent the creation of reg-moves.
19730 * modulo-sched.c: Adjust comment to reflect the fact we are
19731 scheduling closing branch.
19732 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
19733 (stage_count): New field in struct partial_schedule.
19734 (calculate_stage_count): New function.
19735 (normalize_sched_times): Rename to reset_sched_times and handle
19736 incrementing the sched time of the nodes by a constant value
19737 passed as parameter.
19738 (duplicate_insns_of_cycles): Skip closing branch.
19739 (sms_schedule_by_order): Schedule closing branch.
19740 (ps_insn_find_column): Handle closing branch.
19741 (sms_schedule): Call reset_sched_times and adjust the code to
19742 support scheduling of the closing branch.
19743 (ps_insert_empty_row): Update calls to normalize_sched_times
19744 and rotate_partial_schedule functions.
19745
19746 2011-05-11 Richard Guenther <rguenther@suse.de>
19747
19748 PR middle-end/48953
19749 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
19750
19751 2011-05-11 Joseph Myers <joseph@codesourcery.com>
19752
19753 * opts.c (finish_options): Move warning settings from process_options.
19754 * toplev.c (process_options): Move warning settings to finish_options.
19755
19756 2011-05-11 Richard Guenther <rguenther@suse.de>
19757
19758 PR tree-optimization/18041
19759 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
19760 (simplify_bitwise_binary): ... this. Handle operand conversions
19761 by applying them to the result instead.
19762 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
19763
19764 2011-05-11 Richard Guenther <rguenther@suse.de>
19765
19766 * gimple.c (gimple_canonical_types_compatible_p): Split out
19767 from gimple_types_compatible_p and friends. Do not recurse
19768 to pointed-to types.
19769 (gimple_canonical_type_eq): Use it.
19770 (iterative_hash_canonical_type): Split out from
19771 iterative_hash_gimple_type and friends. Do not recurse
19772 to pointed-to types.
19773 (gimple_canonical_type_hash): Use it, allocate the hash here.
19774
19775 2011-05-11 Revital Eres <revital.eres@linaro.org>
19776
19777 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
19778 recognizing doloop.
19779
19780 2011-05-11 Revital Eres <revital.eres@linaro.org>
19781
19782 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
19783 instead of PREV_INSN.
19784
19785 2011-05-11 Revital Eres <revital.eres@linaro.org>
19786
19787 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
19788 * loop-doloop.c (doloop_condition_get): Likewise.
19789 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
19790 (doloop_end): New.
19791 * config/arm/arm.md (*addsi3_compare0): Remove "*".
19792
19793 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
19794
19795 * tree.def (CASE_LABEL_EXPR): Add an operand.
19796 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
19797
19798 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19799
19800 * c-decl.c (c_override_global_bindings_to_false): Remove.
19801 (global_bindings_p): Don't check
19802 c_override_global_bindings_to_false.
19803 * c-tree.h (c_override_global_bindings_to_false): Remove.
19804 * c-typeck.c (composite_type): Don't set
19805 c_override_global_bindings_to_false.
19806
19807 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19808
19809 PR target/48857, 48495
19810 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
19811 (VSX_MODE): Ditto.
19812 (VSX_MOVE_MODE): Ditto.
19813 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
19814 VSX vector types. Add V2DImode.
19815 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
19816 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
19817 (MODES_TIEABLE_P): Ditto.
19818
19819 * config/rs6000/rs6000.c (rs6000_emit_move): Use
19820 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
19821 VSX_VECTOR_MODE.
19822 (init_cumulative_args): Ditto.
19823 (rs6000_function_arg_boundary): Ditto.
19824 (rs6000_function_arg_advance_1): Ditto.
19825 (rs6000_function_arg): Ditto.
19826 (rs6000_function_ok_for_sibcall): Ditto.
19827 (emit_frame_save): Ditto.
19828 (rs6000_function_value): Ditto.
19829 (rs6000_libcall_value): Ditto.
19830
19831 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19832
19833 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
19834 i386/darwin-lib.h to $libgcc_tm_file.
19835 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
19836
19837 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19838
19839 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
19840
19841 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19842
19843 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
19844 * config/rs6000/rs6000-tables.opt: New file (generated).
19845 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
19846 rs6000/rs6000-tables.opt to extra_options.
19847 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
19848 * config/rs6000/rs6000.c (rs6000_select): Remove.
19849 (processor_target_table): Move contents to rs6000-cpus.def.
19850 (darwin_rs6000_override_options): Check
19851 global_options_set.x_rs6000_cpu_index instead of
19852 rs6000_select[1].string.
19853 (rs6000_option_override_internal): Likewise.
19854 (rs6000_handle_option): Don't assert that global structures are in
19855 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
19856 (rs6000_default_cpu): New variable.
19857 (rs6000_file_start): Set it instead of local default_cpu. Check
19858 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
19859 global_options_set.x_rs6000_tune_index instead of rs6000_select.
19860 (rs6000_darwin_file_start): Check rs6000_default_cpu and
19861 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
19862 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
19863 rs6000_select): Remove.
19864 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
19865 Remove.
19866 (mcpu=, mtune=): Use Var, Init, Enum and Save.
19867 * config/rs6000/t-rs6000
19868 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
19869 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19870 global_options_set.x_rs6000_cpu_index instead of
19871 rs6000_select[1].string.
19872 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19873 global_options_set.x_rs6000_cpu_index instead of
19874 rs6000_select[1].string.
19875
19876 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19877
19878 * config.gcc (libgcc_tm_file): Define instead of including files
19879 from ../../libgcc/config/ in tm_file.
19880 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
19881 * configure: Regenerate.
19882 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
19883 libgcc_tm.h, cs-libgcc_tm.h): New.
19884 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
19885 (clean): Remove libgcc_tm.h.
19886 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
19887 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
19888 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
19889
19890 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
19891
19892 PR target/48896
19893 * config/avr/avr.c (avr_ret_register): Return unsigned int
19894 instead of int.
19895 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
19896 it to avr_libcall_value.
19897 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
19898 expand_expr.
19899 (avr_expand_binop_builtin): Ditto.
19900 (avr_expand_unop_builtin): Ditto.
19901
19902 2011-05-10 DJ Delorie <dj@redhat.com>
19903
19904 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
19905 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
19906 * config/rx/rx.c (rx_align_for_label): Add label and
19907 uses_threshold parameters. Do not align when the label is not
19908 used enough.
19909 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
19910
19911 2011-05-10 Richard Guenther <rguenther@suse.de>
19912
19913 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
19914 a series of conversions and apply foldings similar to what
19915 fold-const does.
19916 (tree_ssa_forward_propagate_single_use_vars): Call it.
19917
19918 2011-05-10 Jakub Jelinek <jakub@redhat.com>
19919
19920 PR tree-optimization/48611
19921 PR tree-optimization/48794
19922 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
19923 referenced from RESX or EH_DISPATCH arguments.
19924
19925 PR debug/48928
19926 * dfp.c (decimal_to_decnumber): Handle conversion from
19927 dconst{1,2,m1,half}.
19928
19929 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19930
19931 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
19932 for !flag_prefer_avx128.
19933 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
19934
19935 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
19936
19937 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
19938 (fold_ternary_loc): Use expr_location_or.
19939
19940 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
19941
19942 PR debug/48853
19943 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
19944 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
19945 Pmode and mem_mode is not VOIDmode.
19946
19947 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
19948
19949 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
19950 TYPE_QUAL_RESTRICT): Convert to enum.
19951
19952 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19953
19954 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
19955 (const_pow2_1_to_8_operand): Ditto.
19956 (const_pow2_1_to_128_operand): Ditto.
19957 (const_pow2_1_to_32768_operand): Ditto.
19958 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
19959 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
19960 in insn constraint to check integer value of operand 3.
19961 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
19962
19963 (PINSR_MODE): New mode iterator.
19964 (sse2p4_1): New mode attribute.
19965 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
19966 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
19967 iterator. Use const_int_operand instead of
19968 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
19969 exact_log2 in insn constraint to check integer value of operand 3.
19970
19971 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19972
19973 * config/i386/sse.md (blendbits): Remove mode attribute.
19974 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
19975 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
19976 Check integer value of operand 3 in insn constraint.
19977
19978 2011-05-09 Richard Guenther <rguenther@suse.de>
19979
19980 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
19981 for diagnostics.
19982 (lto_symtab_merge): Likewise. Do not register types here.
19983 (lto_symtab_merge_decls_2): Likewise.
19984 (lto_symtab_merge_decls_1): Likewise.
19985 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
19986 * gimple.c (enum gtc_mode): Declare.
19987 (gimple_types_compatible_p): Make static.
19988
19989 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19990
19991 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
19992 temporary register to match Pmode.
19993
19994 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19995
19996 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
19997 and *vec_concatv4si_1_avx.
19998
19999 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20000
20001 PR rtl-optimization/48927
20002 * ira-conflicts.c (commutative_constraint_p): Use
20003 recog_data.alternative_enabled_p to disable alternatives where
20004 "enabled" attribute is false.
20005 (get_dup_num): Ditto.
20006 * ira-lives.c (single_reg_class): Ditto.
20007 (ira_implicitly_set_insn_hard_regs): Ditto.
20008
20009 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
20010
20011 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
20012 (dataflow_set_preserve_mem_locs): Likewise.
20013
20014 2011-05-09 Philipp Thomas <pth@suse.de>
20015
20016 * config/mep/mep.c (mep_validate_vliw): Syntax description
20017 should not be translated.
20018
20019 2011-05-09 Joseph Myers <joseph@codesourcery.com>
20020
20021 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
20022 * config/mips/mips-tables.opt: New file (generated).
20023 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
20024 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
20025 MIPS_ARCH_OPTION_NATIVE): Define.
20026 * config/mips/mips.c (mips_cpu_info_table): Move contents to
20027 mips-cpus.def.
20028 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
20029 mips_parse_cpu): Remove.
20030 (mips_cpu_info_from_opt, mips_default_arch): New.
20031 (mips_handle_option): Don't assert that global structures are in
20032 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
20033 (mips_option_override): Use new variables and functions to set
20034 state of these options. Use strcmp to check for individual CPU names.
20035 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
20036 definition.
20037 * config/mips/mips.opt (march=): Use ToLower and Enum.
20038 (mips): Use ToLower, Enum and Var.
20039 (mtune=): Use ToLower and Enum.
20040 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
20041
20042 2011-05-08 Jan Hubicka <jh@suse.cz>
20043
20044 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
20045 Arrange type pairs to be UID ordered.
20046 (gimple_lookup_type_leader): Make inline.
20047
20048 2011-05-09 Nick Clifton <nickc@redhat.com>
20049
20050 PR target/48899
20051 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
20052 PROCESSOR_DEFAULT.
20053
20054 PR target/48897
20055 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
20056 variable 's'.
20057
20058 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
20059
20060 * combine.c (simplify_comparison): Abstract out parts into...
20061 (simplify_compare_const): ... new function.
20062 (try_combine): Generalize parallel arithmetic/compare combining
20063 to call simplify_compare_const() and CANONICALIZE_COMPARE().
20064
20065 2011-05-08 Jan Hubicka <jh@suse.cz>
20066
20067 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
20068 (cgraph_create_virtual_clone): Call hooks once virtual clone
20069 is finished.
20070 * cgraph.h (cgraph_clone_node): Update prototype.
20071 * ipa-cp.c (ipcp_estimate_growth): Use
20072 estimate_ipcp_clone_size_and_time.
20073 * ipa-inline-transform.c (clone_inlined_nodes): Update.
20074 * lto-cgraph.c (input_node): Update.
20075 * ipa-inline.c (recursive_inlining): Update.
20076 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
20077 (evaluate_conditions_for_known_args): Break out from ...
20078 (evaluate_conditions_for_edge): ... here.
20079 (evaluate_conditions_for_ipcp_clone): New function.
20080 (inline_node_duplication_hook): Update clone summary based
20081 on parameter map.
20082 (estimate_callee_size_and_time): Rename to ...
20083 (estimate_node_size_and_time): take NODE instead of EDGE;
20084 take POSSIBLE_TRUTHS as argument.
20085 (estimate_callee_size_and_time): Update.
20086 (estimate_ipcp_clone_size_and_time): New function.
20087 (do_estimate_edge_time): Update.
20088
20089 2011-05-08 Richard Guenther <rguenther@suse.de>
20090
20091 PR middle-end/48908
20092 PR middle-end/48905
20093 * expmed.c (expand_shift_1): Compute adjusted constant shift
20094 amount manually.
20095
20096 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
20097
20098 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
20099
20100 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
20101
20102 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
20103
20104 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
20105
20106 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
20107
20108 2011-05-07 Jan Hubicka <jh@suse.cz>
20109
20110 * ipa-inline-transform.c (inline_call): Account when program size
20111 decreases.
20112 * ipa-inline.c (relative_time_benefit): New function.
20113 (edge_badness): Reorganize to be power 2 based; fix thinko when
20114 computing badness for negative growth; update comments to match
20115 reality; better dumps.
20116
20117 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
20118
20119 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
20120 type to bool and adjust comment.
20121 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
20122 (fold_mathfn_compare): Remove calls to global_bindings_p.
20123 (fold_inf_compare): Likewise.
20124 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
20125 * c-tree.h (global_bindings_p): Adjust prototype.
20126 * c-decl.c (global_bindings_p): Return bool and simplify.
20127
20128 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
20129
20130 PR tree-optimization/48837
20131 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
20132 when accumulator transformation is performed.
20133
20134 2011-05-06 Jan Hubicka <jh@suse.cz>
20135
20136 * i386.h (ix86_tune_indices): Add
20137 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
20138 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
20139 * i386.c (initial_ix86_tune_features): Add
20140 X86_SOFTARE_PREFETCHING_BENEFICIAL.
20141 (software_prefetching_beneficial_p): Remove predicate.
20142 (ix86_option_override_internal): Use new macro.
20143
20144 2011-05-06 Jan Hubicka <jh@suse.cz>
20145
20146 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
20147
20148 2011-05-06 Jan Hubicka <jh@suse.cz>
20149
20150 * cgraph.c (cgraph_add_thunk): Create real function node instead
20151 of alias node; finalize it and mark needed/reachale; arrange visibility
20152 to be right and add it into the corresponding same comdat group list.
20153 (dump_cgraph_node): Dump thunks.
20154 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
20155 cgraph_function_with_gimple_body_p,
20156 cgraph_first_function_with_gimple_body,
20157 cgraph_next_function_with_gimple_body): New functions.
20158 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
20159 New macros.
20160 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
20161 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
20162 * cgraphunit.c (cgraph_finalize_function): Only look into possible
20163 devirtualization when optimizing.
20164 (verify_cgraph_node): Verify thunks.
20165 (cgraph_analyze_function): Analyze thunks.
20166 (cgraph_mark_functions_to_output): Output thunks only in combination
20167 with function they are assigned to.
20168 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
20169 alias into normal node.
20170 (assemble_thunks): New functoin.
20171 (cgraph_expand_function): Use it.
20172 * lto-cgraph.c (lto_output_node): Stream thunks.
20173 (input_overwrite_node): Stream in thunks.
20174 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
20175 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
20176 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
20177 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
20178 (inline_analyze_function): Do not care about thunk jump functions.
20179 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
20180 * ipa-prop.c (ipa_prop_write_jump_functions): Use
20181 cgraph_function_with_gimple_body_p.
20182 * passes.c (do_per_function_toporder): Use
20183 cgraph_function_with_gimple_body_p.
20184 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
20185 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
20186 (function_called_by_processed_nodes_p): Likewise.
20187
20188 2011-05-06 Joseph Myers <joseph@codesourcery.com>
20189
20190 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
20191 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
20192 entries.
20193 (mabi=): Replace with separate entries for mabi=altivec,
20194 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
20195 mabi=ieeelongdouble and mabi=ibmlongdouble.
20196 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
20197 check for -mabi=spe without SPE ABI support here.
20198 (rs6000_handle_option): Replace OPT_mabi_ handling with
20199 OPT_mabi_altivec and OPT_mabi_spe handling.
20200
20201 2011-05-06 Cary Coutant <ccoutant@google.com>
20202
20203 * dwarf2out.c (contains_subprogram_definition): New function.
20204 (should_move_die_to_comdat): Call it.
20205
20206 2011-05-06 Jeff Law <law@redhat.com>
20207
20208 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
20209 remove_ctrl_stmt_and_useless_edges.
20210 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
20211 (fixup_template_block, thread_single_edge): Likewise.
20212 (mark_threaded_blocks): Use THREAD_TARGET.
20213
20214 2011-05-06 Alan Modra <amodra@gmail.com>
20215
20216 PR target/48900
20217 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
20218 const0_rtx as the arg to the dummy __tls_get_addr libcall.
20219
20220 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
20221
20222 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
20223 constraint modifier to "r".
20224
20225 2011-05-06 Joseph Myers <joseph@codesourcery.com>
20226
20227 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
20228 fall through for OPT_mcmodel_.
20229
20230 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20231
20232 * config/s390/s390.c (s390_asm_trampoline_template): Comment
20233 instruction sizes.
20234 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
20235
20236 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20237
20238 PR target/47930
20239 * config/arm/arm.opt (marm): Document it.
20240 (mthumb): Reject negative variant.
20241
20242 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
20243
20244 PR target/48898
20245 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20246 Fix typo in "ccvt" variable name.
20247
20248 2011-05-06 Tristan Gingold <gingold@adacore.com>
20249
20250 PR target/48895
20251 * config/vms/vms-ar.c (main): Remove cwd variable.
20252
20253 2011-05-06 Jakub Jelinek <jakub@redhat.com>
20254
20255 PR debug/48902
20256 * var-tracking.c (prepare_call_arguments): Move else before #endif.
20257
20258 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
20259
20260 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
20261 * gimplify.c (gimplify_switch_expr): Likewise.
20262 * omp-low.c (expand_omp_sections): Likewise.
20263 * tree-eh.c (lower_try_finally_switch): Likewise.
20264 (lower_eh_dispatch): Likewise.
20265 * tree.h (build_case_label): Declare.
20266 * tree.c (build_case_label): Define.
20267
20268 2011-05-05 Jason Merrill <jason@redhat.com>
20269
20270 PR c++/40975
20271 * tree-inline.c (copy_tree_r): Use copy_statement_list.
20272 (copy_statement_list): Don't recurse.
20273 * stor-layout.c (copy_self_referential_tree_r): Don't allow
20274 STATEMENT_LIST.
20275
20276 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20277
20278 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
20279 through from -mfpu= handling.
20280 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
20281
20282 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
20283
20284 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
20285 POST_MODIFY.
20286
20287 2011-05-05 Steve Ellcey <sje@cup.hp.com>
20288
20289 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
20290 for 11.31.
20291 (hppa[12]*-*-hpux11*): Ditto.
20292 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
20293 * config/ia64/hpux-unix2003.h: New.
20294 * config/pa/pa-hpux1131.opt: New.
20295 * config/pa/pa-hpux1131.h: New.
20296 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
20297 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
20298 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
20299
20300 2011-05-05 Jakub Jelinek <jakub@redhat.com>
20301
20302 PR debug/48853
20303 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
20304 instead of mode as 3rd argument to recursive call.
20305 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
20306 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
20307 VOIDmode.
20308 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
20309 don't give up if mode is Pmode and mem_mode is not VOIDmode.
20310 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
20311 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
20312
20313 2011-05-05 Julian Brown <julian@codesourcery.com>
20314
20315 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
20316 parenthesis in D-register case.
20317
20318 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20319
20320 * opt-functions.awk (var_type_struct): Handle Enum options.
20321 * optc-gen.awk: Don't check range of variables of character type.
20322 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
20323 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
20324 rs6000_sdata_name, rs6000_explicit_options): Remove.
20325 (rs6000_option_override_internal): Check for -malign-power here.
20326 Use global_options_set instead of rs6000_explicit_options.
20327 (rs6000_parse_fpu_option): Remove.
20328 (rs6000_handle_option): Access variables via opts and opts_set
20329 pointers. Use error_at and warning_at. Add fall-through
20330 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
20331 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
20332 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
20333 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
20334 here. Don't use rs6000_parse_fpu_option.
20335 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
20336 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
20337 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
20338 (mrecip=): Use Var.
20339 (mspe): Use Var and Save.
20340 (mtraceback=): Use Enum and Var.
20341 (rs6000_traceback_type): New Enum and EnumValue entries.
20342 (mfloat-gprs=): Use Enum, Var and Save.
20343 (rs6000_float_gprs): New Enum and EnumValue entries.
20344 (mlong-double-): use Var and Save.
20345 (msched-costly-dep=, minsert-sched-nops=): Use Var.
20346 (malign-): Use Enum and Var.
20347 (rs6000_alignment_flags): New Enum and EnumValue entries.
20348 (mfpu=): Use Enum.
20349 (fpu_type_t): New Enum and EnumValue entries.
20350 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20351 global_options_set instead of rs6000_explicit_options.
20352 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20353 global_options_set instead of rs6000_explicit_options.
20354 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20355 global_options_set instead of rs6000_explicit_options.
20356 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20357 global_options_set instead of rs6000_explicit_options.
20358 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
20359 global_options_set instead of rs6000_explicit_options.
20360 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20361 global_options_set instead of rs6000_explicit_options.
20362 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
20363 definition.
20364 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20365 global_options_set instead of rs6000_explicit_options.
20366 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
20367 (rs6000_cmodel): New Enum and EnumValue entries.
20368 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20369 global_options_set instead of rs6000_explicit_options.
20370 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
20371 (mtls-size=): Use Enum and Var.
20372 (rs6000_tls_size): New Enum and EnumValue entries.
20373
20374 2011-05-05 Michael Matz <matz@suse.de>
20375
20376 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
20377 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
20378 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
20379 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
20380 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
20381 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
20382 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
20383 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
20384 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
20385 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
20386 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
20387 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
20388 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
20389 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
20390 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
20391 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
20392
20393 2011-05-05 Richard Guenther <rguenther@suse.de>
20394
20395 * expmed.c (expand_variable_shift): Rename to ...
20396 (expand_shift_1): ... this. Take an expanded shift amount.
20397 For rotates recurse directly not building trees for the shift amount.
20398 (expand_variable_shift): Wrap around expand_shift_1.
20399 (expand_shift): Adjust.
20400
20401 2011-05-05 Jakub Jelinek <jakub@redhat.com>
20402
20403 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
20404
20405 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
20406
20407 * tree.h (get_pending_sizes): Remove prototype.
20408 (put_pending_size): Likewise.
20409 (put_pending_sizes): Likewise.
20410 * stor-layout.c (pending_sizes): Delete.
20411 (get_pending_sizes): Likewise.
20412 (put_pending_size): Likewise.
20413 (put_pending_sizes): Likewise.
20414 (variable_size): Do not call put_pending_size and tidy up.
20415 * function.h (struct function): Remove dont_save_pending_sizes_p.
20416 * lto-streamer-in.c (input_function): Do not stream it.
20417 * lto-streamer-out.c (output_function): Likewise.
20418 * tree-inline.c (initialize_cfun): Do not copy it.
20419 * c-decl.c (store_parm_decls): Do not set it.
20420 * omp-low.c (create_task_copyfn): Likewise.
20421 * tree-optimize.c (tree_rest_of_compilation): Likewise.
20422
20423 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
20424
20425 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
20426 conditions.
20427 (*movdf_internal): Ditto.
20428 (*movdf_internal_nointeger): Ditto.
20429 (*movsf_internal): Ditto.
20430
20431 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20432
20433 * c-decl.c (finish_decl): Don't call get_pending_sizes.
20434 (grokparm): Add parameter expr. Pass it to grokdeclarator.
20435 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
20436 (c_variable_size): Remove.
20437 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
20438 call put_pending_sizes.
20439 (get_parm_info): Add parameter expr. Use it to set
20440 arg_info->pending_sizes.
20441 (store_parm_decls): Use arg_info->pending_sizes instead or calling
20442 get_pending_sizes.
20443 * c-parser.c (c_parser_parms_declarator): Update call to
20444 c_parser_parms_list_declarator.
20445 (c_parser_parms_list_declarator): Take parameter expr. Update
20446 call to push_parm_decl. Update recursive call. Don't call
20447 get_pending_sizes. Update calls to get_parm_info.
20448 (c_parser_objc_method_definition): Update calls to
20449 c_parser_objc_method_decl and objc_start_method_definition.
20450 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
20451 (c_parser_objc_method_decl): Add parameter expr. Update call to
20452 grokparm.
20453 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
20454 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
20455 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
20456
20457 2011-05-05 Michael Hope <michael.hope@linaro.org>
20458
20459 PR pch/45979
20460 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
20461 __ARM_EABI__ hosts.
20462
20463 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20464
20465 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20466 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
20467 (spu_output_mi_thunk): New function.
20468
20469 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20470
20471 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
20472 targetm.asm_out.print_operand.
20473 * config/sol2.c: Include target.h.
20474
20475 2011-05-04 Jan Hubicka <jh@suse.cz>
20476
20477 * ipa-inline.c (reset_edge_caches): New function.
20478 (update_caller_keys): Add check_inlinablity_for; do not
20479 reset edge caches; remove now unnecesary loop.
20480 (update_callee_keys): Add comments; reset node_growth_cache of callee.
20481 (update_all_callee_keys): Likewise.
20482 (inline_small_functions): Sanity check cache; update code
20483 recomputing it.
20484
20485 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
20486
20487 PR rtl-optimization/47612
20488 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
20489 as the last insn of the sequence to be moved.
20490
20491 2011-05-04 Tobias Burnus <burnus@net-b.de>
20492
20493 PR fortran/48864
20494 * doc/invoke.texi (Ofast): Document that it
20495 enables Fortran's -fno-protect-parens.
20496
20497 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
20498
20499 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
20500
20501 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
20502
20503 * stor-layout.c (variable_size): Do not issue errors.
20504
20505 2011-05-04 Richard Guenther <rguenther@suse.de>
20506
20507 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
20508 for array-ref indices.
20509 (tree_coverage_counter_addr): Likewise.
20510 (build_fn_info_type): Use size_int for index types.
20511 (build_gcov_info): Likewise.
20512
20513 2011-05-04 Richard Guenther <rguenther@suse.de>
20514
20515 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
20516 to build_int_cst.
20517 * c-typeck.c (really_start_incremental_init): Use bitsize_int
20518 for constructor indices.
20519 (push_init_level): Likewise.
20520
20521 2011-05-04 Richard Guenther <rguenther@suse.de>
20522
20523 * explow.c (promote_mode): Move variable declarations before code.
20524
20525 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
20526
20527 * tree.h (build_function_type_array): Declare.
20528 (build_varargs_function_type_array): Declare.
20529 (build_function_type_vec, build_varargs_function_type_vec): Define.
20530 * tree.c (build_function_type_array_1): New function.
20531 (build_function_type_array): New function.
20532 (build_varargs_function_type_array): New function.
20533
20534 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
20535
20536 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
20537 before setting STMT_VINFO_TYPE.
20538
20539 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20540
20541 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
20542 instead of spu_pass_by_reference.
20543
20544 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20545
20546 * calls.c (emit_library_call_value_1): Invoke
20547 promote_function_mode hook on libcall arguments.
20548 * explow.c (promote_function_mode, promote_mode): Handle TYPE
20549 argument being NULL.
20550 * targhooks.c (default_promote_function_mode): Lisewise.
20551 * config/s390/s390.c (s390_promote_function_mode): Likewise.
20552 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
20553
20554 * doc/tm.texi: Document that TYPE argument might be NULL.
20555
20556 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20557
20558 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
20559
20560 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20561
20562 From Bernd Schmidt
20563 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
20564
20565 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20566
20567 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
20568 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
20569 Move ...
20570 * mips-tfile.c: ... here.
20571 Don't include coretypes.h, tm.h, filenames.h.
20572 (saber_stop): Remove definition and all calls.
20573 [__SABER__]: Remove.
20574 (__LINE__): Remove default.
20575 (Size_t, Ptrdiff_t): Remove definitions.
20576 Replace by size_t, ptrdiff_t.
20577 [!MIPS_DEBUGGING_INFO]: Remove.
20578 (SHASH_SIZE, THASH_SIZE): Remove defaults.
20579 (progname): Add const.
20580 (STATIC): Remove.
20581 Replace all uses by static.
20582 (ALIGN_SYMTABLE_OFFSET): Remove default.
20583 * mips-tdump.c: Don't include coretypes.h, tm.h.
20584 Remove !MIPS_IS_STAB guard.
20585 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
20586 $(TM_H), filenames.h dependencies.
20587 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
20588
20589 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20590
20591 From Jie Zhang
20592 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
20593 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
20594
20595 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20596
20597 From Bernd Schmidt
20598 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
20599 account and save/restore RETS.
20600 (PROFILE_BEFORE_PROLOGUE): Define.
20601 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
20602 the push insn to use predecrement.
20603
20604 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20605
20606 From Jie Zhang
20607 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
20608
20609 2011-05-04 Nick Clifton <nickc@redhat.com>
20610
20611 * config/mn10300/mn10300.c: Include cfgloop.h.
20612 (DUMP): New macro.
20613 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
20614 Lcc or a FLcc insn into the instruction stream.
20615 (mn10300_block_contains_call): New function. Returns true if the
20616 given basic block contains a CALL insn.
20617 (mn10300_loop_contains_call_insn): New function. Returns true if
20618 the given loop contains a CALL insn.
20619 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
20620 to use the SETLB and Lcc or FLcc insns.
20621 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
20622 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
20623 * config/mn10300/mn10300.opt (msetlb): New option. Used to
20624 disable the SETLB optimization.
20625 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
20626 __SETLB__ or __NO_SETLB__.
20627 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
20628 (movsf_internal): Handle MDR register.
20629 (cmpsi): Make visible.
20630 (setlb): New pattern.
20631 (Lcc): New pattern.
20632 (FLcc): New pattern.
20633
20634 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
20635
20636 PR target/48860
20637 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
20638 for reg<->xmm moves.
20639 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
20640 (vec_concatv2di_rex64_sse): Ditto.
20641 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
20642 (*vec_extractv2di_1_rex64): Ditto.
20643
20644 Revert:
20645 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
20646
20647 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
20648 reg<->xmm moves.
20649 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
20650
20651 2011-05-04 Richard Guenther <rguenther@suse.de>
20652
20653 * tree.h (int_const_binop): Remove notrunc argument.
20654 * fold-const.c (int_const_binop): Remove notrunc argument. Always
20655 create integer constants that are properly truncated.
20656 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
20657 (const_binop): Remove zero notrunc argument to int_const_binop.
20658 (size_binop_loc): Likewise.
20659 (fold_div_compare): Likewise.
20660 (maybe_canonicalize_comparison_1): Likewise.
20661 (fold_comparison): Likewise.
20662 (fold_binary_loc): Likewise.
20663 (multiple_of_p): Likewise.
20664 * expr.c (store_constructor): Likewise.
20665 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
20666 (maybe_fold_stmt_addition): Likewise.
20667 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
20668 * stor-layout.c (layout_type): Likewise.
20669 * tree-data-ref.c (tree_fold_divides_p): Likewise.
20670 * tree-sra.c (build_ref_for_offset): Likewise.
20671 (build_user_friendly_ref_for_offset): Likewise.
20672 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
20673 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20674 * tree-ssa-loop-niter.c (inverse): Likewise.
20675 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
20676 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
20677 * tree-switch-conversion.c (check_range): Likewise.
20678 (build_constructors): Likewise.
20679 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
20680 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
20681 (extract_range_from_assert): Likewise.
20682 (vrp_int_const_binop): Likewise.
20683 (extract_range_from_binary_expr): Likewise.
20684 (extract_range_from_unary_expr): Likewise.
20685 (check_array_ref): Likewise.
20686 (find_case_label_range): Likewise.
20687 (simplify_div_or_mod_using_ranges): Likewise.
20688 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
20689 comparing case labels for merging.
20690
20691 2011-05-03 Mark Wielaard <mjw@redhat.com>
20692
20693 * dwarf2out.c (debug_str_hash_forced): Removed.
20694 (gen_label_for_indirect_string): Removed.
20695 (get_debug_string_label): Removed.
20696 (AT_string_form): Generate label directly.
20697 (output_indirect_string): Test indirect_string_node for
20698 DW_FORM_strp instead of checking label and refcount.
20699 (prune_indirect_string): Removed.
20700 (prune_unused_types): Don't check debug_str_hash_forced or
20701 call prune_indirect_string.
20702
20703 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
20704
20705 PR other/48093
20706 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
20707
20708 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
20709
20710 PR debug/47994
20711 PR debug/47919
20712 * combine.c (try_combine): Skip debug insns at m_split tests.
20713
20714 2011-04-26 Mark Wielaard <mjw@redhat.com>
20715
20716 PR42288
20717 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
20718 when info_section_emitted.
20719
20720 2011-05-03 Joseph Myers <joseph@codesourcery.com>
20721
20722 * config/mips/mips-opts.h: New.
20723 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
20724 to mips-opts.h.
20725 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
20726 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
20727 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
20728 via opts pointer.
20729 * config/mips/mips.h (enum mips_code_readable_setting): Move to
20730 mips-opts.h.
20731 (mips_abi, mips_code_readable): Don't declare.
20732 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
20733 (mabi=): Use Enum and Var.
20734 (mips_abi): New Enum and EnumValue entries.
20735 (mcode-readable=): Use Enum and Var.
20736 (mips_code_readable_setting): New Enum and EnumValue entries.
20737 (mr10k-cache-barrier=): Use Enum and Var.
20738 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
20739
20740 2011-05-03 Jan Hubicka <jh@suse.cz>
20741
20742 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
20743 replace hash by pointer map.
20744 (cgraph_node_set_element_def, cgraph_node_set_element,
20745 const_cgraph_node_set_element, varpool_node_set_element_def,
20746 varpool_node_set_element, const_varpool_node_set_element): Remove.
20747 (free_cgraph_node_set, free_varpool_node_set): New function.
20748 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
20749 * tree-emutls.c: Free varpool node set.
20750 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
20751 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
20752 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
20753 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
20754 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
20755 Move here from ipa.c; implement using pointer_map
20756 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
20757 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
20758 debug_cgraph_node_set, varpool_node_set_new,
20759 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
20760 dump_varpool_node_set, debug_varpool_node_set):
20761 Move to ipa-uitls.c.
20762 * passes.c (ipa_write_summaries): Update.
20763
20764 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20765
20766 From Mike Frysinger:
20767 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
20768 bf542/bf544/bf547/bf548/bf549.
20769
20770 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
20771
20772 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
20773
20774 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20775
20776 From Bernd Schmidt:
20777 * config/bfin/bfin.md (MOVCC): New mode_macro.
20778 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
20779 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
20780 comments from generated assembly.
20781
20782 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20783
20784 From Bernd Schmidt
20785 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
20786 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
20787 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
20788 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
20789 * config/bfin/lib1funcs.asm (___muldi3): New function.
20790
20791 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20792
20793 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
20794 build_function_type_list instead of build_function_type.
20795 Rearrange initialization of `args' to do so.
20796
20797 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20798
20799 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
20800 instead of build_function_type.
20801
20802 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20803
20804 * config/rs6000/rs6000.c (spe_init_builtins): Call
20805 build_function_type_list instead of build_function_type.
20806 (paired_init_builtins, altivec_init_builtins): Likewise.
20807 (builtin_function_type): Likewise.
20808
20809 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20810
20811 * config/sh/sh.c (sh_media_init_builtins): Call
20812 build_function_type_list instead of build_function_type.
20813
20814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20815
20816 * config/sparc/sparc.c (sparc_file_end): Call
20817 build_function_type_list instead of build_function_type.
20818
20819 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20820
20821 * config/alpha/alpha.c (alpha_init_builtins): Call
20822 build_function_type_list instead of build_function_type.
20823
20824 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20825
20826 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
20827 build_function_type_list instead of build_function_type.
20828
20829 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20830
20831 * config/iq2000/i2000.c (iq2000_init_builtins): Call
20832 build_function_type_list instead of build_function_type.
20833 Delete `endlink' variable.
20834
20835 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20836
20837 * config/avr/avr.c (avr_init_builtins): Call
20838 build_function_type_list instead of build_function_type.
20839
20840 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20841
20842 * config/picochip/picochip.c (picochip_init_builtins): Call
20843 build_function_type_list instead of build_function_type.
20844 Delete `endlink' variable.
20845
20846 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20847
20848 * config/bfin/bfin.c (bfin_init_builtins): Call
20849 build_function_type_list instead of build_function_type.
20850
20851 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20852
20853 From Bernd Schmidt
20854 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
20855 that's not CONST_INT. Seemingly redundant check is due to PR39768.
20856
20857 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20858
20859 From Jie Zhang:
20860 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
20861 libbffastfp overrides libgcc when -mfast-fp.
20862
20863 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20864
20865 Originally from Bernd Schmidt
20866 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
20867 * config/bfin/bfin.c (override_options): Test it and error if
20868 TARGET_FDPIC.
20869
20870 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20871
20872 Originally From Bernd Schmidt
20873 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
20874 FD-PIC.
20875
20876 2011-05-03 Jeff Law <law@redhat.com>
20877
20878 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
20879 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
20880 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
20881 than accessing AUX field directly. Free the AUX field before
20882 clearing it.
20883 (thread_block, thread_through_loop_header): Likewise.
20884 (thread_single_edge, mark_threaded_blocks): Likewise.
20885 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
20886 (register_jump_thread): Do not attempt to thread to a NULL edge.
20887
20888 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20889
20890 * function.c (init_function_start): Call decide_function_section.
20891 * varasm.c (decide_function_section): New function.
20892 (assemble_start_function): When not using
20893 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
20894 or first_function_block_is_cold.
20895 * rtl.h (decide_function_section): Declare.
20896
20897 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
20898 Jakub Jelinek <jakub@redhat.com>
20899
20900 PR target/48774
20901 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
20902 only succeed if req_mode is the same as set_mode.
20903
20904 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20905
20906 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
20907 * genemit.c (gen_exp): Handle RETURN.
20908 * emit-rtl.c (verify_rtx_sharing): Likewise.
20909 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
20910 * rtl.c (copy_rtx): RETURN is shared.
20911 * rtl.h (enum global_rtl_index): Add GR_RETURN.
20912 (ret_rtx): New.
20913 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
20914 * config/s390/s390.c (s390_emit_epilogue): Likewise.
20915 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
20916 * config/cris/cris.c (cris_expand_return): Likewise.
20917 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
20918 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
20919 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
20920 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
20921 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
20922 Likewise.
20923 * config/v850/v850.c (expand_epilogue): Likewise.
20924 * config/bfin/bfin.c (bfin_expand_call): Likewise.
20925 * config/arm/arm.md (epilogue): Likewise.
20926 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
20927 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
20928 variable to ret_reg.
20929
20930 2011-05-03 Richard Guenther <rguenther@suse.de>
20931
20932 PR lto/48846
20933 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
20934 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
20935 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
20936
20937 2011-05-03 Richard Guenther <rguenther@suse.de>
20938
20939 * c-decl.c (grokdeclarator): Instead of looking at
20940 TREE_OVERFLOW check if the constant fits in the index type.
20941
20942 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
20943
20944 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
20945 (vec_store_lanes<mode><mode>): Likewise.
20946
20947 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
20948
20949 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
20950 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
20951 convert_optab_index values.
20952 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
20953 * genopinit.c (optabs): Initialize the new optabs.
20954 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
20955 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
20956 (expand_STORE_LANES): New functions.
20957 * tree.h (build_array_type_nelts): Declare.
20958 * tree.c (build_array_type_nelts): New function.
20959 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
20960 (vect_model_load_cost): Likewise.
20961 (vect_store_lanes_supported, vect_load_lanes_supported)
20962 (vect_record_strided_load_vectors): Declare.
20963 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
20964 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
20965 (vect_transform_strided_load): Split out statement recording into...
20966 (vect_record_strided_load_vectors): ...this new function.
20967 * tree-vect-stmts.c (create_vector_array, read_vector_array)
20968 (write_vector_array, create_array_ref): New functions.
20969 (vect_model_store_cost): Add store_lanes_p argument.
20970 (vect_model_load_cost): Add load_lanes_p argument.
20971 (vectorizable_store): Try to use store-lanes functions for
20972 interleaved stores.
20973 (vectorizable_load): Likewise load-lanes and loads.
20974 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
20975 to vect_model_store_cost.
20976 (vect_build_slp_tree): Likewise vect_model_load_cost.
20977
20978 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
20979
20980 * hooks.h (hook_bool_mode_uhwi_false): Declare.
20981 * hooks.c (hook_bool_mode_uhwi_false): New function.
20982 * target.def (array_mode_supported_p): New hook.
20983 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
20984 * doc/tm.texi: Regenerate.
20985 * stor-layout.c (mode_for_array): New function.
20986 (layout_type): Use it.
20987 * config/arm/arm.c (arm_array_mode_supported_p): New function.
20988 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
20989
20990 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
20991
20992 PR target/48723
20993 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
20994 for -fstack-check if the size to allocate is negative.
20995
20996 2011-05-02 Lawrence Crowl <crowl@google.com>
20997
20998 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
20999 (timevar_cond_start): New for starting a timer only when it is not
21000 already running.
21001 (timevar_cond_stop): New for stopping a timer when it was not already
21002 running.
21003
21004 * timevar.c (timevar_stop): Enable start/stop timers to start again.
21005 (timevar_cond_start): New as above.
21006 (timevar_cond_stop): New as above.
21007
21008 * timevar.def: Add start/stop timers for compiler phases,
21009 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
21010 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
21011 and TV_PHASE_FINALIZE.
21012 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
21013 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
21014 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
21015 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
21016 Make unused TV_OVERLOAD into a start/stop timer.
21017
21018 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
21019 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
21020 to indicate that they are start/stop timers.
21021
21022 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
21023 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
21024 Move initialization to do_compile.
21025 (do_compile): Add initialization from above.
21026 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
21027
21028 * c-decl.c (c_write_global_declarations): Add start/stop of
21029 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
21030
21031 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
21032 or TV_PARSE_INLINE, as appropriate.
21033 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
21034 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
21035
21036 2011-05-02 Jason Merrill <jason@redhat.com>
21037
21038 PR c++/40975
21039 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
21040
21041 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
21042
21043 PR c/35445
21044 * c-decl.c (finish_decl): Only create a composite if the types are
21045 compatible.
21046
21047 2011-05-02 Joseph Myers <joseph@codesourcery.com>
21048
21049 * config/fr30/fr30-protos.h (Mmode): Don't define.
21050 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
21051 definition where used.
21052 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
21053 define. Expand definitions where used.
21054 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
21055 Expand definitions where used.
21056 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
21057 rx_function_arg, rx_function_arg_advance,
21058 rx_function_arg_boundary): Expand definitions of those macros.
21059 * config/v850/v850-protos.h (Mmode): Don't define. Expand
21060 definition where used.
21061
21062 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
21063
21064 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
21065 reg<->xmm moves.
21066 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
21067 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
21068 with *movv2sf_internal_rex64_avx.
21069 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
21070 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
21071 Use %v prefix in insn mnemonic to handle TARGET_AVX.
21072 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
21073 "vex" in "prefix" attribute calculation.
21074 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
21075
21076 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
21077
21078 PR target/47951
21079 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
21080 inputs match the output.
21081
21082 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
21083
21084 PR target/47955
21085 * config/m68k/m68k.c (m68k_expand_prologue): Set
21086 current_function_static_stack_size.
21087
21088 2011-05-02 Jan Hubicka <jh@suse.cz>
21089
21090 * lto-streamer.c (lto_streamer_cache_insert_1,
21091 lto_streamer_cache_lookup, lto_streamer_cache_create,
21092 lto_streamer_cache_delete): Use pointer map instead of hashtable.
21093 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
21094
21095 2011-05-02 Joseph Myers <joseph@codesourcery.com>
21096
21097 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
21098 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
21099 config/m68k/t-opts: New files.
21100 * config/m68k/m68k-tables.opt: New file (generated).
21101 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
21102 extra_options and m68k/t-opts to tmake_file.
21103 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
21104 (all_isas): Initialize using m68k-isas.def.
21105 (all_microarchs): Initialize using m68k-microarchs.def.
21106 (m68k_find_selection): Remove.
21107 (m68k_handle_option): Don't assert that global structures are in
21108 use. Use error_at. Access variables via opts pointer. Don't
21109 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
21110 directly for -m68020-40 and -m68020-60.
21111 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
21112 m68k_tune_entry here.
21113 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
21114 to m68k-opts.h.
21115 (m68k_library_id_string): Remove declaration.
21116 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
21117 (m68k_library_id_string): New Variable.
21118 (march=, mcpu=, mtune=): Use Enum and Var.
21119
21120 2011-05-02 Richard Guenther <rguenther@suse.de>
21121
21122 * varasm.c (output_constructor_regular_field): Compute zero-based
21123 index with double-ints. Make sure to ICE instead of producing
21124 wrong code.
21125 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
21126 in asserts. Properly use a signed type.
21127
21128 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
21129
21130 * config/i386/sse.md (V): New mode iterator.
21131 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
21132 TARGET_SSE2.
21133 (V_256): Rename from AVX256MODE.
21134 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
21135 condition to all users.
21136 (VF1): Ditto.
21137 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
21138 condition to all users.
21139 (VF_128): Make V4SF mode unconditional.
21140 (VF_256): Rename from AVX256MODEF2P.
21141 (VI4F_128): Rename from SSEMODE4S.
21142 (VI8F_128): Rename from SSEMODE2D.
21143 (VI4F_256): Rename from AVX256MODE8P.
21144 (VI8F_256): Rename from AVX256MODE4P.
21145 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
21146 (ssescalarmodesuffix): Remove SF and DF modes.
21147 (SSEMODE124): Remove.
21148 (SSEMODE1248): Ditto.
21149 (SSEMODEF2P): Ditto.
21150 (AVXMODEF2P): Ditto.
21151 (AVXMODEFDP): Ditto.
21152 (AVXMODEFSP): Ditto.
21153 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
21154 unconditional.
21155 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
21156 unconditional.
21157 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
21158 xop_pcmov_<mode>256. Use V mode iterator.
21159
21160 Adjust RTX patterns globally for renamed mode attributes.
21161
21162 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21163
21164 * haifa-sched.c (sched_emit_insn): Emit insn before first
21165 non-scheduled insn. Inform back-end about new insn. Add
21166 new insn to scheduled_insns list.
21167
21168 2011-05-02 Richard Guenther <rguenther@suse.de>
21169
21170 PR tree-optimization/48822
21171 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
21172 (process_scc): Indicate which iteration we start.
21173
21174 2011-05-02 Jan Hubicka <jh@suse.cz>
21175
21176 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
21177 (lto_section_overrun): New.
21178 * lto-section-out.c (append_block): Rename to ...
21179 (lto_append_block): ... this one; export.
21180 (lto_output_1_stream): Move lto lto-streamer.h
21181 (lto_output_data_stream): Update.
21182 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
21183 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
21184 functions.
21185
21186 2011-05-02 Richard Guenther <rguenther@suse.de>
21187
21188 * tree.c (tree_code_counts): New global array.
21189 (record_node_allocation_statistics): Count individual tree codes.
21190 (dump_tree_statistics): Dump individual code stats.
21191
21192 2011-05-01 Jan Hubicka <jh@suse.cz>
21193
21194 * ipa-inline.c (caller_growth_limits): Fix thinko when
21195 looking for largest stack frame.
21196 * ipa-inline.h (dump_inline_summary): Declare.
21197 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
21198 on stack usage.
21199 (dump_inline_summary): Export.
21200 (debug_inline_summary): Declare as DEBUG_FUNCTION.
21201
21202 2011-05-01 Anatoly Sokolov <aesok@post.ru>
21203
21204 * reginfo.c (memory_move_cost): Change rclass argument type form
21205 'enum reg_class' to reg_class_t.
21206 * reload.h (memory_move_cost): Update prototype.
21207 * postreload.c reload_cse_simplify_set): Change type dclass var to
21208 reg_class_t.
21209 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
21210 Update prototype.
21211 (ira_allocate_and_set_costs): Change aclass argument type form
21212 'enum reg_class' to reg_class_t.
21213 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
21214 Change aclass argument type to reg_class_t.
21215 (update_conflict_hard_reg_costs): Change type aclass and pref vars
21216 to reg_class_t.
21217 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
21218 memory_move_cost call.
21219
21220 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
21221 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
21222 Change type tmp var to reg_class_t.
21223
21224 2011-04-30 Jan Hubicka <jh@suse.cz>
21225
21226 * ipa-inline.c (can_inline_edge_p): Disregard limits when
21227 inlining into function with flatten attribute.
21228 (want_inline_small_function_p): Be more realistic about inlining
21229 cold calls where callee size grows.
21230
21231 2011-04-30 Jan Hubicka <jh@suse.cz>
21232
21233 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
21234 flags.
21235
21236 2011-04-30 Anatoly Sokolov <aesok@post.ru>
21237
21238 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
21239 PRINT_OPERAND_PUNCT_VALID_P): Remove.
21240 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
21241 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
21242 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21243 (print_operand): Rename to...
21244 (sparc_print_operand): ...this. Make static. Adjust
21245 sparc_print_operand function call.
21246 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
21247 functions.
21248
21249 2011-04-30 Jan Hubicka <jh@suse.cz>
21250
21251 PR middle-end/48752
21252 * ipa-inline.c (early_inliner): Disable when doing late
21253 addition of function.
21254
21255 2011-04-30 Jakub Jelinek <jakub@redhat.com>
21256
21257 * dwarf2out.c (get_address_mode): New inline.
21258 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
21259 if not dwarf_strict emit
21260 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
21261 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
21262 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
21263 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
21264 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
21265 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
21266 mem_loc_descriptor callers.
21267 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21268 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
21269 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
21270 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
21271 (base_types): New variable.
21272 (get_base_type_offset, calc_base_type_die_sizes,
21273 base_type_for_mode, mark_base_types, base_type_cmp,
21274 move_marked_base_types): New functions.
21275 (calc_die_sizes): Assert that die_offset is 0 or equal to
21276 next_die_offset.
21277 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
21278 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
21279 callers. If not dwarf_strict, call mem_loc_descriptor even for
21280 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
21281 (gen_subprogram_die): Don't give up on call site parameters
21282 with non-integral or large integral modes. Adjust
21283 mem_loc_descriptor callers.
21284 (prune_unused_types): Call prune_unused_types_mark on base_types
21285 vector entries.
21286 (resolve_addr): Call mark_base_types.
21287 (dwarf2out_finish): Call move_marked_base_types.
21288
21289 PR tree-optimization/48809
21290 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
21291 type.
21292 (gen_inbound_check): Don't compute index_expr - range_min in utype
21293 again, instead reuse SSA_NAME initialized in build_arrays.
21294 Remove two useless gsi_for_stmt calls.
21295
21296 2011-04-29 Jeff Law <law@redhat.com>
21297
21298 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
21299
21300 2011-04-29 Martin Jambor <mjambor@suse.cz>
21301
21302 * cgraph.h (cgraph_postorder): Remove declaration.
21303 * ipa-utils.h (ipa_free_postorder_info): Declare.
21304 (ipa_reverse_postorder): Likewise.
21305 * cgraphunit.c: Include ipa-utils.h.
21306 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
21307 * ipa-inline.c: Include ipa-utils.h.
21308 (ipa_inline): Update call to ipa_reverse_postorder.
21309 * ipa-pure-const.c (propagate_pure_const): Update call to
21310 ipa_reduced_postorder and ipa_print_order. Call
21311 ipa_free_postorder_info to clean up.
21312 (propagate_nothrow): Likewise.
21313 * ipa-reference.c (propagate): Removed a useless call to
21314 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
21315 and ipa_print_order. Call ipa_free_postorder_info to clean up.
21316 * ipa.c: Include ipa-utils.h.
21317 (ipa_profile): Update call to ipa_reverse_postorder.
21318 (cgraph_postorder): Moved to...
21319 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
21320 (ipa_utils_print_order): Renamed to ipa_print_order.
21321 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
21322 comments.
21323 (ipa_free_postorder_info): New function.
21324 * passes.c: Include ipa-utils.h.
21325 (do_per_function_toporder): Update call to ipa_reverse_postorder.
21326 (ipa_write_summaries): Likewise.
21327 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
21328 (cgraphunit.o): Likewise.
21329 (ipa.o): Likewise.
21330 (ipa-inline.o): Likewise.
21331
21332 2011-04-29 Jan Hubicka <jh@suse.cz>
21333
21334 * ipa-inline.h (clause_t): Turn into unsigned int.
21335 * ipa-inline-analysis.c (add_clause): Do more simplification.
21336 (and_predicates): Shortcut more cases.
21337 (predicates_equal_p): Move forward; check that clauses are properly
21338 ordered.
21339 (or_predicates): Shortcut more cases.
21340 (edge_execution_predicate): Rewrite as...
21341 (set_cond_stmt_execution_predicate): ... this function; handle
21342 __builtin_constant_p.
21343 (set_switch_stmt_execution_predicate): New .
21344 (compute_bb_predicates): New.
21345 (will_be_nonconstant_predicate): Update TODO.
21346 (estimate_function_body_sizes): Use compute_bb_predicates
21347 and free them later, always try to estimate if stmt is constant.
21348 (estimate_time_after_inlining, estimate_size_after_inlining):
21349 Gracefully handle optimized out edges.
21350 (read_predicate): Fix off by one error.
21351
21352 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
21353
21354 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
21355
21356 2011-04-27 Xinliang David Li <davidxl@google.com>
21357
21358 * tree-profile.c (init_ic_make_global_vars): Set
21359 tls attribute on ic vars.
21360 * coverage.c (coverage_end_function): Initialize
21361 function_list with zero.
21362
21363 2011-04-29 Richard Guenther <rguenther@suse.de>
21364
21365 * builtins.c (fold_builtin_classify_type): Use integer_type_node
21366 for the type of the result.
21367 (fold_builtin_isascii): Likewise.
21368 (fold_builtin_toascii): Use integer_type_node where appropriate.
21369 (fold_builtin_logb): Likewise.
21370 (fold_builtin_frexp): Likewise.
21371 (fold_builtin_strstr): Likewise.
21372 (fold_builtin_strpbrk): Likewise.
21373 (fold_builtin_fputs): Likewise.
21374 (fold_builtin_sprintf): Likewise.
21375 (fold_builtin_snprintf): Likewise.
21376 (fold_builtin_printf): Likewise.
21377 (do_mpfr_remquo): Use a proper type for the assigned constant.
21378 (do_mpfr_lgamma_r): Likewise.
21379 * dwarf2out.c (resolve_one_addr): Use size_int.
21380 * except.c (init_eh): Likewise.
21381 (assign_filter_values): Use integer_type_node for filter values.
21382 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
21383 indices.
21384 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
21385 for EH region numbers.
21386 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
21387 for the shift amount.
21388
21389 2011-04-29 Richard Guenther <rguenther@suse.de>
21390
21391 * expr.h (expand_shift): Rename to ...
21392 (expand_variable_shift): ... this.
21393 (expand_shift): Take a constant shift amount.
21394 * expmed.c (expand_shift): Rename to ...
21395 (expand_variable_shift): ... this.
21396 (expand_shift): New wrapper around expand_variable_shift.
21397 * expr.c (convert_move, emit_group_load_1, emit_group_store,
21398 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
21399 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
21400 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
21401 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
21402 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
21403 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
21404 emit_store_flag_1, emit_store_flag): Likewise.
21405 * builtins.c (expand_builtin_signbit): Likewise.
21406 * calls.c (load_register_parameters): Likewise.
21407 * function.c (assign_parm_setup_block): Likewise.
21408 * lower-subreg.c (resolve_shift_zext): Likewise.
21409 * optabs.c (widen_bswap, expand_abs_nojump,
21410 expand_one_cmpl_abs_nojump, expand_float): Likewise.
21411 * spu/spu.c (spu_expand_extv): Likewise.
21412 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
21413
21414 2011-04-29 Richard Guenther <rguenther@suse.de>
21415
21416 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
21417 for the remapped region number.
21418 * predict.c (build_predict_expr): Use integer_type_node for the
21419 predict kind.
21420 * fold-const.c (fold_binary_loc): Use integer_type_node for
21421 the shift amount. Use a proper type for the PLUS_EXPR operand.
21422
21423 2011-04-29 Michael Matz <matz@suse.de>
21424
21425 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
21426 other trees that just builtins.
21427 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
21428
21429 2011-04-29 Richard Guenther <rguenther@suse.de>
21430
21431 * tree-nested.c (get_trampoline_type): Use size_int.
21432 (get_nl_goto_field): Likewise.
21433 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
21434 for all indexes.
21435 (lower_eh_constructs_2): Likewise.
21436 (lower_resx): Likewise.
21437 (lower_eh_dispatch): Likewise.
21438 * tree-mudflap.c (mf_build_string): Use size_int.
21439 (mudflap_register_call): Use integer_type_node for the flag.
21440 (mudflap_enqueue_constant): Use size_int.
21441 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
21442 instead of rebuilding it.
21443
21444 2011-04-29 Richard Guenther <rguenther@suse.de>
21445
21446 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
21447 Handle OBJ_TYPE_REF.
21448 (find_func_aliases_for_call): Use it more consistently.
21449
21450 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
21451
21452 * haifa-sched.c (last_nondebug_scheduled_insn): New.
21453 (rank_for_schedule): Use it.
21454 (schedule_block): Set it.
21455
21456 2011-04-28 David Li <davidxl@google.com>
21457
21458 * tree.c (crc32_string): Use crc32_byte.
21459 (crc32_byte): New function.
21460 * tree.h (crc32_byte): New function.
21461 * gcov.c (read_graph_file): Handle new cfg_cksum.
21462 (read_count_file): Ditto.
21463 * profile.c (instrument_values): Ditto.
21464 (get_exec_counts): Ditto.
21465 (read_profile_edge_counts): Ditto.
21466 (compute_branch_probabilities): Ditto.
21467 (compute_value_histograms): Ditto.
21468 (branch_prob): Ditto.
21469 (end_branch_prob): Ditto.
21470 * coverage.c (read_counts_file): Ditto.
21471 (get_coverage_counts): Ditto.
21472 (tree_coverage_counter_addr): Ditto.
21473 (coverage_checksum_string): Ditto.
21474 (coverage_begin_output): Ditto.
21475 (coverage_end_function): Ditto.
21476 (build_fn_info_type): Ditto.
21477 (build_fn_info_value): Ditto.
21478 * libgcov.c (gcov_exit): Ditto.
21479 * gcov-dump.c (tag_function): Ditto.
21480 (compute_checksum): Remove.
21481
21482 2011-04-29 Alan Modra <amodra@gmail.com>
21483
21484 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21485 unspec plus offset. Tidy macho code.
21486
21487 2011-04-29 Martin Jambor <mjambor@suse.cz>
21488
21489 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
21490 node instead of a decl. Update all callers.
21491 * cgraph.h: Update declaration.
21492
21493 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
21494
21495 PR tree-optimization/48765
21496 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
21497 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
21498 to indicate if loop aware SLP is being used. Scan the statements
21499 and update the vectorization factor according to the type of
21500 vectorization before statement analysis.
21501 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
21502 pass it to vect_analyze_loop_operations.
21503 (vectorizable_reduction): Set number of copies to 1 in case of pure
21504 SLP statement.
21505 * tree-vect-stmts.c (vectorizable_conversion,
21506 vectorizable_assignment, vectorizable_shift,
21507 vectorizable_operation, vectorizable_type_demotion,
21508 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
21509 Likewise.
21510 (vectorizable_condition): Move the check that it is not SLP
21511 vectorization before the number of copies check.
21512 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
21513 to vectorize the loop using SLP.
21514
21515 2011-04-28 Jakub Jelinek <jakub@redhat.com>
21516
21517 PR middle-end/48597
21518 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
21519 inline asm.
21520
21521 2011-04-28 Joseph Myers <joseph@codesourcery.com>
21522
21523 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
21524 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
21525 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21526 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21527 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
21528 linux*.h headers.
21529 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
21530 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21531 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21532 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21533 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21534 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
21535 REG_NAME.
21536 * config/i386/linux.h (REG_NAME): Don't define.
21537 * config/i386/linux64.h (REG_NAME): Don't define.
21538 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
21539 Undefine before defining.
21540
21541 2011-04-28 Jan Hubicka <jh@suse.cz>
21542
21543 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
21544 nonconstant_names array.
21545 (estimate_function_body_sizes): Build nonconstant_names array; handle
21546 BUILT_IN_CONSTANT_P.
21547
21548 2011-04-28 Richard Guenther <rguenther@suse.de>
21549
21550 PR bootstrap/48804
21551 Revert
21552 2011-04-28 Richard Guenther <rguenther@suse.de>
21553
21554 * tree-ssa-structalias.c (solve_constraints): Build succ graph
21555 as late as possible.
21556
21557 2011-04-28 Richard Guenther <rguenther@suse.de>
21558
21559 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
21560 (debug_constraint): Do it here.
21561 (dump_constraints): And here.
21562 (rewrite_constraints): And here.
21563 (dump_constraint_edge): Remove.
21564 (dump_constraint_graph): Rewrite to produce DOT output.
21565 (solve_constraints): Build succ graph as late as possible.
21566 Dump constraint graphs before and after solving.
21567
21568 2011-04-28 Richard Guenther <rguenther@suse.de>
21569
21570 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21571 New function split out from ...
21572 (find_func_aliases): ... here. Call it.
21573 (find_func_aliases_for_call): Likewise.
21574
21575 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
21576
21577 * internal-fn.h (internal_fn_name_array): Declare.
21578 (internal_fn_flags_array): Likewise.
21579
21580 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
21581
21582 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
21583 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
21584 Move from sse.md.
21585 (ssemodefsuffix): Remove.
21586 (ssevecmodesuffix): New mode attribute.
21587 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
21588 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21589 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21590 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21591 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
21592 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
21593 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
21594 ssemodesuffix mode attribute.
21595 (float splitters): Use ssevecmodesuffix mode attribute.
21596 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
21597 (sseinsmode): Rename from avxvecmode.
21598 (avxsizesuffix): Rename from avxmodesuffix.
21599 (sseintvecmode): Rename from avxpermvecmode.
21600 (ssedoublevecmode): Rename from ssedoublesizemode.
21601 (ssehalfvecmode): Rename from avxhalfvecmode.
21602 (ssescalarmode): Rename from avxscalarmode.
21603 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
21604 templates for ssemodesuffix mode attribute.
21605 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
21606 mode attribute.
21607
21608 Adjust RTX patterns globally for renamed mode attributes.
21609
21610 2011-04-27 Jan Hubcika <jh@suse.cz>
21611
21612 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
21613 * ipa-inline-analysis.c: Include alloc-pool.h.
21614 (edge_predicate_pool): New.
21615 (trye_predicate_p): New function
21616 (false_predicate_p): New function.
21617 (add_clause): Sanity check that false clauses are "optimized";
21618 never add clauses to predicate that is already known to be false.
21619 (and_predicate): Use flase_predicate_p.
21620 (evaulate_predicate): Rename to ...
21621 (evaluate_predicate): ... this one; update all callers; assert
21622 that false is not listed among possible truths.
21623 (dump_predicate): Use true_predicate_p.
21624 (account_size_time): Use false_predicate_p.
21625 (evaulate_conditions_for_edge): Rename to ...
21626 (evaluate_conditions_for_edge) ... this one.
21627 (edge_set_predicate): New function.
21628 (inline_edge_duplication_hook): Duplicate edge predicates.
21629 (inline_edge_removal_hook): Free edge predicates.
21630 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
21631 (dump_inline_summary): Update.
21632 (estimate_function_body_sizes): Set edge predicates.
21633 (estimate_calls_size_and_time): Handle predicates.
21634 (estimate_callee_size_and_time): Update.
21635 (remap_predicate): Add toplev_predicate; update comment.
21636 (remap_edge_predicates): New function.
21637 (inline_merge_summary): Compute toplev predicate; update.
21638 (read_predicate): New function.
21639 (read_inline_edge_summary): Use it.
21640 (inline_read_section): Likewise.
21641 (write_predicate): New function.
21642 (write_inline_edge_summary): Use it.
21643 (inline_write_summary): Likewise.
21644 (inline_free_summary): Free alloc pool and edge summary vec.
21645
21646 2011-04-27 Richard Guenther <rguenther@suse.de>
21647
21648 * tree-ssa-structalias.c (changed_count): Remove.
21649 (changed): Use a bitmap.
21650 (unify_nodes): Adjust.
21651 (do_sd_constraint): Likewise.
21652 (do_ds_constraint): Likewise.
21653 (do_complex_constraint): Likewise.
21654 (solve_graph): Likewise.
21655
21656 2011-04-27 Jan Hubicka <jh@suse.cz>
21657
21658 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
21659
21660 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
21661
21662 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
21663 (avx_vperm2f128_*_operand): Ditto.
21664 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
21665 Use avx_vpermilp_parallel in insn condition.
21666 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
21667 Use avx_vperm2f128_parallel in insn condition.
21668
21669 2011-04-27 Richard Guenther <rguenther@suse.de>
21670
21671 * Makefile.in (tree-ssa-structalias.o): Remove
21672 gt-tree-ssa-structalias.h dependency.
21673 (GTFILES): Remove tree-ssa-structalias.c.
21674 * tree.c (allocate_decl_uid): New function.
21675 (make_node_stat): Use it.
21676 (copy_node_stat): Likewise.
21677 * tree.h (allocate_decl_uid): Declare.
21678 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
21679 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
21680 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
21681 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
21682 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
21683 (struct heapvar_map): Likewise.
21684 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
21685 heapvar_insert): Likewise.
21686 (make_heapvar_for): Rename to ...
21687 (make_heapvar): ... this. Simplify.
21688 (fake_var_decl_obstack): New global var.
21689 (build_fake_var_decl): New function.
21690 (make_constraint_from_heapvar): Adjust.
21691 (handle_lhs_call): Likewise.
21692 (create_function_info_for): Likewise.
21693 (intra_create_variable_infos): Likewise.
21694 (init_alias_vars): Allocate fake_var_decl_obstack.
21695 (init_alias_heapvars, delete_alias_heapvars): Remove.
21696 (compute_points_to_sets): Do not call init_alias_heapvars.
21697 (ipa_pta_execute): Likewise.
21698 (delete_points_to_sets): Free fake_var_decl_obstack.
21699
21700 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21701
21702 * config/spu/divmovti4.c (union qword_UTItype): New data type.
21703 (si_from_UTItype, si_to_UTItype): New functions.
21704 (__udivmodti4): Use them to implement type-punning.
21705 * config/spu/multi3.c (union qword_TItype): New data type.
21706 (si_from_TItype, si_to_TItype): New functions.
21707 (__multi3): Use them to implement type-punning.
21708
21709 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21710
21711 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
21712
21713 2011-04-27 Jan Hubicka <jh@suse.cz>
21714
21715 * ipa-prop.c (function_insertion_hook_holder): New holder.
21716 (ipa_add_new_function): New function.
21717 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
21718 Register/deregister holder.
21719
21720 2011-04-27 Richard Guenther <rguenther@suse.de>
21721
21722 PR tree-optimization/48772
21723 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
21724
21725 2011-04-27 Richard Guenther <rguenther@suse.de>
21726
21727 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
21728 TARGET_MEM_REF handling.
21729
21730 2011-04-27 Nick Clifton <nickc@redhat.com>
21731
21732 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
21733 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
21734 (REG_CLASS_NAMES): Likewise.
21735 (REG_CLASS_CONTENTS): Likewise.
21736 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
21737 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
21738 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
21739 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
21740 (EVEN_REGS): New macro. Alias for QUAD_REGS.
21741 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
21742 duplicate register classes.
21743 (frv_class_likely_spilled_p): Likewise.
21744 (frv_register_move_cost): Likewise.
21745
21746 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
21747 end of the regno_reg_class array.
21748
21749 2011-04-27 Jakub Jelinek <jakub@redhat.com>
21750
21751 PR c/48742
21752 * c-typeck.c (build_binary_op): Don't wrap arguments if
21753 int_operands is true.
21754
21755 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
21756
21757 PR target/48767
21758 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
21759 targetm.calls.must_pass_in_stack for void type.
21760
21761 2011-04-26 Jan Hubicka <jh@suse.cz>
21762
21763 * cgraphbuild.c (build_cgraph_edges): Update call
21764 of cgraph_create_edge and cgraph_create_indirect_edge.
21765 * cgraph.c (cgraph_create_edge_including_clones,
21766 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
21767 cgraph_update_edges_for_call_stmt_node): Do not take nest
21768 argument; do not initialize call_stmt_size/time.
21769 (dump_cgraph_node): Do not dump nest.
21770 (cgraph_clone_edge): Do not take loop_nest argument;
21771 do not propagate it; do not clone call_stmt_size/time.
21772 (cgraph_clone_node): Likewise.
21773 (cgraph_create_virtual_clone): Update.
21774 * cgraph.h (struct cgraph_edge): Remove
21775 call_stmt_size/call_stmt_time/loop_nest.
21776 (cgraph_create_edge, cgraph_create_indirect_edge,
21777 cgraph_create_edge_including_clones, cgraph_clone_node): Update
21778 prototype.
21779 * tree-emutls.c (gen_emutls_addr): Update.
21780 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
21781 loop_nest; handle indirect calls, too.
21782 (clone_inlined_nodes): Do not care about updating inline summaries.
21783 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
21784 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
21785 stream call_stmt_size/call_stmt_time/loop_nest.
21786 * ipa-inline.c (edge_badness): Update.
21787 (ipa_inline): dump summaries after inlining.
21788 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
21789 New.
21790 (inline_edge_summary): New function.
21791 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
21792 (inline_edge_removal_hook): Handle edge summaries.
21793 (inline_edge_duplication_hook): New hook.
21794 (inline_summary_alloc): Alloc hooks.
21795 (initialize_growth_caches): Do not register removal hooks.
21796 (free_growth_caches); Do not free removal hook.
21797 (dump_inline_edge_summary): New function.
21798 (dump_inline_summary): Use it.
21799 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
21800 (inline_update_callee_summaries): New function.
21801 (inline_merge_summary): Use it.
21802 (do_estimate_edge_time, do_estimate_edge_growth): Update.
21803 (read_inline_edge_summary): New function.
21804 (inline_read_section): Use it.
21805 (write_inline_edge_summary): New function.
21806 (inline_write_summary): Use it.
21807 (inline_free_summary): Free edge new holders.
21808 * tree-inline.c (copy_bb): Update.
21809
21810 2011-04-26 Jason Merrill <jason@redhat.com>
21811
21812 * tree-eh.c (lower_try_finally_switch): Create the label along with
21813 the CASE_LABEL_EXPR.
21814
21815 2011-04-26 David S. Miller <davem@davemloft.net>
21816 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21817
21818 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
21819 * configure: Regenerate.
21820
21821 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21822
21823 PR target/48258
21824 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
21825 reduction.
21826 (VEC_reduc): New code iterator and splitters for vector reduction.
21827 (VEC_reduc_name): Ditto.
21828 (VEC_reduc_rtx): Ditto.
21829 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
21830 (reduc_<VEC_reduc_name>_v4sf): Ditto.
21831
21832 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
21833 support for extracting SF on VSX.
21834
21835 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
21836 generating xscvspdp.
21837 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
21838 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
21839 double add, minimum, maximum vector reduction.
21840 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
21841 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
21842 optimize double vector reduction.
21843 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
21844
21845 2011-04-26 Joseph Myers <joseph@codesourcery.com>
21846
21847 * config/fr30/fr30.h (inhibit_libc): Don't define.
21848 * config/m32r/m32r-protos.h: Correct comment.
21849 * config/v850/v850.h (GHS_default_section_names,
21850 GHS_current_section_names): Use tree, not union tree_node *.
21851
21852 2011-04-26 Xinliang David Li <davidxl@google.com>
21853
21854 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
21855 * c-family/c-opts.c (c_common_handle_option): Set
21856 warn_maybe_uninitialized.
21857 * opts.c (common_handle_option): Ditto.
21858 * common.opt: New option.
21859 * tree-ssa.c (warn_uninit): Add one more parameter.
21860 (warn_uninitialized_var): Pass warning code.
21861 * tree-flow.h: Interface change.
21862
21863 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21864
21865 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
21866 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
21867 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
21868
21869 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21870
21871 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
21872 * config/mips/mips.opt (mmips-tfile): Remove.
21873
21874 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
21875 mips-tdump reference to ...
21876 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
21877 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
21878 reference by Tru64 UNIX.
21879
21880 2011-04-26 Jakub Jelinek <jakub@redhat.com>
21881
21882 PR debug/48768
21883 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
21884 is error_mark_node, set value to NULL.
21885
21886 PR tree-optimization/48734
21887 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
21888 if return value from maybe_fold_*_comparsions isn't something
21889 the code is prepared to handle.
21890
21891 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
21892
21893 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
21894 mode check.
21895 (ext_QIreg_nomode_operands): Remove.
21896 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
21897 (*andsi_1): Ditto.
21898 (*andhi_1): Ditto.
21899
21900 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
21901
21902 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
21903
21904 2011-04-26 Richard Guenther <rguenther@suse.de>
21905
21906 * c-typeck.c (build_unary_op): Do not expand array-refs via
21907 pointer arithmetic. Only adjust qualifiers for function types.
21908
21909 2011-04-26 Richard Guenther <rguenther@suse.de>
21910
21911 PR middle-end/48694
21912 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
21913 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
21914 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
21915 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
21916
21917 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
21918
21919 * doc/extend.texi: Document __underlying_type.
21920
21921 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
21922
21923 * config/rs6000/titan.md (automata_option "progress"): Remove.
21924
21925 2011-04-25 Jeff Law <law@redhat.com>
21926
21927 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
21928
21929 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
21930
21931 * system.h (ENUM_BITFIELD): Remove.
21932
21933 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
21934 Eric Botcazou <ebotcazou@adacore.com>
21935
21936 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
21937 for STORE_FLAG_VALUE==-1 case.
21938
21939 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
21940
21941 PR target/43804
21942 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
21943 LEGITIMATE_PIC_OPERAND_P.
21944
21945 2011-04-24 Jan Hubicka <jh@suse.cz>
21946
21947 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
21948 WPA hack.
21949 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
21950 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
21951 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
21952 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
21953 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
21954 Sanity check predicate length.
21955 (remap_predicate): Likewise; sanity check jump functions.
21956 (inline_read_section, inline_write_summary): Sanity check
21957 predicate length.
21958
21959 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
21960
21961 PR other/48748
21962 * doc/extend.texi (Type Traits): Document __is_standard_layout,
21963 __is_literal_type, and __is_trivial; update throughout about
21964 possibly cv-qualified void types.
21965
21966 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
21967
21968 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
21969 testsuite and make it version agnostic.
21970
21971 2011-04-22 Jan Hubicka <jh@suse.cz>
21972
21973 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
21974
21975 2011-04-23 Jakub Jelinek <jakub@redhat.com>
21976
21977 PR c/48685
21978 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
21979 to VOID_TYPE even around MODIFY_EXPR.
21980
21981 2011-04-22 Mike Stump <mikestump@comcast.net>
21982
21983 * gensupport.c (read_md_rtx): Fix typo in comment.
21984 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
21985 comment.
21986
21987 2011-04-22 Jan Hubicka <jh@suse.cz>
21988
21989 * gengtype.c (open_base_files): Add ipa-inline.h include.
21990 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
21991 ipa-prop.c; update all uses.
21992 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
21993 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
21994 merge summary of inlined function into former caller.
21995 * ipa-inline.c (max_benefit): Remove.
21996 (edge_badness): Compensate for removal of benefits.
21997 (update_caller_keys): Use
21998 reset_node_growth_cache/reset_edge_growth_cache.
21999 (update_callee_keys): Likewise.
22000 (update_all_callee_keys): Likewise.
22001 (inline_small_functions): Do not collect max_benefit; do not reset
22002 estimated_growth; call free_growth_caches and initialize_growth_caches.
22003 * ipa-inline.h (struct condition, type clause_t, struct predicate,
22004 struct size_time_entry): New structures.
22005 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
22006 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
22007 and estimated_growth.
22008 (edge_growth_cache_entry): New structure.
22009 (node_growth_cache, edge_growth_cache): New global vars.
22010 (estimate_growth): Turn into inline.
22011 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
22012 initialize_growth_caches, free_growth_caches): Declare.
22013 (estimate_edge_growth): Rewrite.
22014 (estimate_edge_time): Implement as inline cache lookup.
22015 (reset_node_growth_cache, reset_edge_growth_cache): New inline
22016 functions.
22017 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
22018 (NUM_CONDITIONS): New constant.
22019 (predicate_conditions): New enum.
22020 (IS_NOT_CONSTANT): New constant.
22021 (edge_removal_hook_holder): New var.
22022 (node_growth_cache, edge_growth_cache): New global vars.
22023 (true_predicate, single_cond_predicate, false_predicate,
22024 not_inlined_predicate, add_condition, add_clause, and_predicates,
22025 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
22026 dump_clause, dump_predicate, account_size_time,
22027 evaulate_conditions_for_edge): New functions.
22028 (inline_summary_alloc): Move to heap.
22029 (inline_node_removal_hook): Clear condition and entry vectors.
22030 (inline_edge_removal_hook): New function.
22031 (initialize_growth_caches, free_growth_caches): New function.
22032 (dump_inline_summary): Update.
22033 (edge_execution_predicate): New function.
22034 (will_be_nonconstant_predicate): New function.
22035 (estimate_function_body_sizes): Compute BB and constantness predicates.
22036 (compute_inline_parameters): Do not clear estimated_growth.
22037 (estimate_edge_size_and_time): New function.
22038 (estimate_calls_size_and_time): New function.
22039 (estimate_callee_size_and_time): New function.
22040 (remap_predicate): New function.
22041 (inline_merge_summary): New function.
22042 (do_estimate_edge_time): New function based on...
22043 (estimate_edge_time): ... this one.
22044 (do_estimate_edge_growth): New function.
22045 (do_estimate_growth): New function based on....
22046 (estimate_growth): ... this one.
22047 (inline_analyze_function): Analyze after deciding on jump functions.
22048 (inline_read_section): New function.
22049 (inline_read_summary): Use it.
22050 (inline_write_summary): Write all the new data.
22051 * ipa-prop.c (ipa_get_param_decl_index): Export.
22052 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
22053 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
22054 Declare.
22055 (ipa_get_lattice): Move here from ipa-cp.c
22056 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
22057 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
22058 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
22059 cgraph_edge_inlinable_p): Remove.
22060 * cgraphunit.c: Include ipainline.h
22061 (cgraph_process_new_functions): Update call of
22062 compute_inline_parameters.
22063
22064 2011-04-22 Richard Guenther <rguenther@suse.de>
22065
22066 * tree.c (build_int_cst): Properly create canonicalized integer
22067 constants.
22068 (build_int_cst_type): Remove scary comments.
22069
22070 2011-04-22 Xinliang David Li <davidxl@google.com>
22071
22072 * toplev.c (process_options): Enable -Werror=coverage-mismatch
22073 by default when -Wno-error is not specified.
22074 * opts-global.c (decode_options): Remove call to
22075 control_warning_options.
22076
22077 2011-04-22 Jakub Jelinek <jakub@redhat.com>
22078
22079 PR tree-optimization/48717
22080 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
22081 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
22082
22083 2011-04-22 Joseph Myers <joseph@codesourcery.com>
22084
22085 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
22086 definition where used.
22087
22088 2011-04-22 Jakub Jelinek <jakub@redhat.com>
22089
22090 PR c/48716
22091 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
22092 TREE_STATIC variables declared inside of some OpenMP construct.
22093
22094 2011-04-22 Martin Jambor <mjambor@suse.cz>
22095
22096 PR middle-end/48585
22097 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
22098
22099 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
22100
22101 PR c/36750
22102 * c-typeck.c (pop_init_level): Do not warn about initializing
22103 with ` = {0}'.
22104
22105 2011-04-22 Alan Modra <amodra@gmail.com>
22106
22107 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
22108 when returning call_cookie.
22109 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
22110 pointers, to functions with no more vector args than the current
22111 function, and some non-local calls for ABI_V4.
22112 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
22113 sibcall_nonlocal_aix64): Combine to ..
22114 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
22115 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
22116 (sibcall_value_nonlocal_aix<mode>): ..likewise.
22117 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
22118 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
22119 operand.
22120 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
22121 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
22122 sibcall_value_symbolic_64): Delete.
22123
22124 2011-04-21 Xinliang David Li <davidxl@google.com>
22125
22126 * cgraph.h: Remove pid.
22127 * cgraph.c: Remove pid.
22128 * value-prof.c (init_node_map): New function.
22129 (del_node_map): New function.
22130 (find_func_by_funcdef_no): New function.
22131 (gimple_ic_transform): Call new function.
22132 * cgraphunit.c (cgraph_finalize_function): Remove pid.
22133 * function.c (get_last_funcdef_no): New function.
22134 * function.h (get_last_funcdef_no): New function.
22135 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
22136 to libgcov function.
22137 (tree-profiling): Call node map init and delete function.
22138
22139 2011-04-21 Ian Lance Taylor <iant@google.com>
22140
22141 * godump.c (go_format_type): Use exported Go name for anonymous
22142 field name.
22143
22144 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22145
22146 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
22147 Call builtin_function_type_list instead of builtin_function_type.
22148 (UNARY, BINARY, TRINARY, QUAD): Likewise.
22149
22150 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22151
22152 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
22153 build_function_type_list instead of build_function_type.
22154 Delete variable `endlink'.
22155
22156 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22157
22158 * config/s390/s390.c (s390_init_builtins): Call
22159 build_function_type_list instead of build_function_type.
22160
22161 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22162
22163 * config/ia64/ia64.c (ia64_init_builtins): Call
22164 build_function_type_list instead of builtin_function_type.
22165
22166 2011-04-21 Easwaran Raman <eraman@google.com>
22167
22168 * cfgexpand.c (stack_var): Remove OFFSET...
22169 (add_stack_var): ...and its reference here...
22170 (expand_stack_vars): ...and here.
22171 (stack_var_cmp): Sort by descending order of size.
22172 (partition_stack_vars): Change heuristic.
22173 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
22174 (dump_stack_var_partition): Add newline after each partition.
22175
22176 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
22177 Jeff Law <law@redhat.com>
22178
22179 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
22180 * gengtype.c (matching_file_name_substitute): Likewise.
22181
22182 2011-04-21 Richard Guenther <rguenther@suse.de>
22183
22184 PR lto/48703
22185 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
22186
22187 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
22188
22189 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
22190
22191 2011-04-21 Richard Guenther <rguenther@suse.de>
22192
22193 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
22194 file name.
22195
22196 2011-04-21 Richard Guenther <rguenther@suse.de>
22197
22198 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
22199 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
22200 Use DECL_P, not SSA_VAR_P.
22201 (ptr_derefs_may_alias_p): Likewise.
22202 (ptr_deref_may_alias_ref_p_1): Likewise.
22203 (decl_refs_may_alias_p): Likewise.
22204 (refs_may_alias_p_1): Likewise.
22205 (ref_maybe_used_by_call_p_1): Likewise.
22206 (call_may_clobber_ref_p_1): Likewise.
22207 (indirect_ref_may_alias_decl_p): Assume indirect refrences
22208 are either MEM_REF or TARGET_MEM_REF.
22209 (indirect_refs_may_alias_p): Likewise.
22210 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
22211 for MEM_EXPR of indirect calls.
22212
22213 2011-04-21 Tristan Gingold <gingold@adacore.com>
22214
22215 * vmsdbgout.c (write_srccorr): Compute file length from the string.
22216 (dst_file_info_struct): Remove flen field.
22217 (lookup_filename): Remove code that set flen field.
22218
22219 2011-04-21 Tristan Gingold <gingold@adacore.com>
22220
22221 * config/ia64/ia64.c (ia64_start_function): Add a guard.
22222
22223 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
22224
22225 PR target/48708
22226 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
22227 vec_extract and vec_concat for non-SSE4_1 targets.
22228
22229 2011-04-21 Richard Guenther <rguenther@suse.de>
22230
22231 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
22232 return statements.
22233
22234 2011-04-21 Joseph Myers <joseph@codesourcery.com>
22235
22236 * config/i386/cygming.h (union tree_node, TREE): Don't define or
22237 undefine.
22238 (FILE): Don't undefine.
22239
22240 2011-04-21 Joseph Myers <joseph@codesourcery.com>
22241
22242 * config/alpha/alpha.c (struct machine_function): Use rtx, not
22243 struct rtx_def *.
22244 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
22245 struct rtx_def *.
22246 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
22247 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
22248 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
22249 rtx_def *.
22250 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
22251 definitions where used.
22252 * config/microblaze/microblaze.h (struct microblaze_args): Use
22253 rtx, not struct rtx_def *.
22254 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
22255 rtx_def *.
22256 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
22257 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
22258 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
22259 not struct rtx_def *.
22260 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
22261 struct rtx_def *.
22262 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
22263 rtx_def *.
22264 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
22265
22266 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22267
22268 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
22269 operand_equal_p to compare DR_BASE_ADDRESSes.
22270 (vect_check_interleaving): Likewise.
22271
22272 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22273
22274 PR target/46329
22275 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
22276 for all Neon struct constants.
22277
22278 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22279
22280 * target.def (legitimate_constant_p): New hook.
22281 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
22282 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
22283 * doc/tm.texi: Regenerate.
22284 * hooks.h (hook_bool_mode_rtx_true): Declare.
22285 * hooks.c (hook_bool_mode_rtx_true): Define.
22286 * system.h (LEGITIMATE_CONSTANT_P): Poison.
22287 * calls.c (precompute_register_parameters): Replace uses of
22288 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
22289 (emit_library_call_value_1): Likewise.
22290 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
22291 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
22292 * ira-costs.c (scan_one_insn): Likewise.
22293 * recog.c (general_operand, immediate_operand): Likewise.
22294 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
22295 * reload1.c (init_eliminable_invariants): Likewise.
22296
22297 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
22298 mode argument.
22299 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
22300 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
22301 argument.
22302 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22303 * config/alpha/predicates.md (input_operand): Update call to
22304 alpha_legitimate_constant_p.
22305
22306 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
22307 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
22308 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
22309 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22310 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
22311 (arm_legitimate_constant_p): New functions.
22312 (arm_cannot_force_const_mem): Make static.
22313
22314 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
22315
22316 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
22317 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
22318 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
22319 instead of bfin_legitimate_constant_p.
22320 (bfin_legitimate_constant_p): Make static. Add a mode argument.
22321 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22322
22323 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
22324
22325 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
22326
22327 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
22328 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
22329 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22330 (frv_legitimate_constant_p): Make static. Add a mode argument.
22331
22332 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
22333 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
22334 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
22335
22336 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
22337 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
22338 * config/i386/i386.c (legitimate_constant_p): Rename to...
22339 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
22340 argument.
22341 (ix86_cannot_force_const_mem): Update accordingly.
22342 (ix86_legitimate_address_p): Likewise.
22343 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22344 * config/i386/i386.md: Update commentary.
22345
22346 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
22347 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
22348 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22349 (ia64_legitimate_constant_p): Make static. Add a mode argument.
22350
22351 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
22352
22353 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
22354 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
22355 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22356 (lm32_legitimate_constant_p): Make static. Add a mode argument.
22357
22358 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
22359 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
22360 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
22361
22362 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
22363 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22364 (m32r_legitimate_constant_p): New function.
22365
22366 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
22367 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
22368 LEGITIMATE_CONSTANT_P.
22369 (LEGITIMATE_CONSTANT_P): Delete.
22370 * config/m68k/m68k.c (m68k_expand_prologue): Call
22371 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
22372 (m68k_legitimate_constant_p): New function.
22373 * config/m68k/m68k.md: Update comments.
22374
22375 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
22376 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22377 (mcore_legitimate_constant_p): New function.
22378
22379 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
22380 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
22381 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
22382 Add a mode argument.
22383 (mep_legitimate_address): Update accordingly.
22384 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22385
22386 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
22387 Delete.
22388 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
22389 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
22390 static. Check OP's mode for VOIDmode.
22391 (microblaze_legitimate_constant_p): New function.
22392 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22393
22394 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
22395 * config/mips/mips.c (mips_legitimate_constant_p): New function.
22396 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
22397 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22398 * config/mips/predicates.md: Update comments.
22399
22400 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
22401 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
22402 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22403 (mmix_legitimate_constant_p): Make static, return a bool, and take
22404 a mode argument.
22405 (mmix_print_operand_address): Update accordingly.
22406
22407 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
22408 Delete.
22409 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
22410 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
22411 static. Add a mode argument.
22412 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22413
22414 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
22415
22416 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
22417 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22418 (pa_legitimate_constant_p): New function.
22419
22420 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
22421
22422 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
22423 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22424 (pdp11_legitimate_constant_p): New function.
22425
22426 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
22427 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22428 (rs6000_legitimate_constant_p): New function.
22429
22430 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
22431 (rx_legitimate_constant_p): ...this.
22432 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
22433 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
22434 (rx_legitimate_constant_p): ...this.
22435 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22436 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
22437
22438 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
22439 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
22440 * config/s390/s390.c (legitimate_constant_p): Rename to...
22441 (s390_legitimate_constant_p): ...this. Make static, return a bool,
22442 and add a mode argument.
22443 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22444
22445 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
22446
22447 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
22448 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22449 (sh_legitimate_constant_p): New function.
22450
22451 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
22452 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
22453 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22454 (legitimate_constant_p): Rename to...
22455 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
22456 argument.
22457 (constant_address_p): Update accordingly.
22458
22459 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
22460 argument and return a bool.
22461 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
22462 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22463 (spu_legitimate_constant_p): Add a mode argument and return a bool.
22464 (spu_rtx_costs): Update accordingly.
22465 * config/spu/predicates.md (vec_imm_operand): Likewise.
22466
22467 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
22468
22469 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
22470 * config/v850/v850.c (v850_legitimate_constant_p): New function.
22471 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22472
22473 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
22474 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
22475 * config/vax/vax.c (legitimate_constant_p): Likewise.
22476
22477 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
22478 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22479 (xtensa_legitimate_constant_p): New function.
22480
22481 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22482
22483 * target.def (cannot_force_const_mem): Add a mode argument.
22484 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
22485 * doc/tm.texi: Regenerate.
22486 * hooks.h (hook_bool_mode_rtx_false): Declare.
22487 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
22488 (hook_bool_mode_const_rtx_true): Likewise.
22489 (hook_bool_mode_rtx_false): New function.
22490 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
22491 to be non-VOID. Update call to cannot_force_const_mem.
22492 (find_reloads): Update accordingly.
22493 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
22494 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
22495 argument.
22496 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
22497 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
22498 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
22499 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
22500 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
22501 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
22502 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
22503 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
22504 (m68k_cannot_force_const_mem): ...this new function.
22505 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
22506 argument.
22507 (mips_const_insns, mips_legitimize_const_move): Update calls.
22508 (mips_secondary_reload_class): Likewise.
22509 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
22510 (pa_cannot_force_const_mem): ...this new function.
22511 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
22512 (rs6000_cannot_force_const_mem): ...this new function.
22513 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
22514 argument.
22515 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
22516 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
22517 to...
22518 (xtensa_cannot_force_const_mem): ...this new function.
22519
22520 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22521
22522 * config/mips/mips.c (mips16_build_function_stub): Call
22523 build_function_type_list instead of build_function_type.
22524 (mips16_build_call_stub): Likewise.
22525
22526 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22527
22528 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
22529 instead of build_function_type.
22530
22531 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22532
22533 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
22534 instead of build_function_type.
22535
22536 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
22537
22538 PR target/48678
22539 * config/i386/i386.md (insv): Change operand 0 constraint to
22540 "register_operand". Change operand 1 and 2 constraint to
22541 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
22542 * config/i386/sse.md (sse4_1_pinsrb): Export.
22543 (sse2_pinsrw): Ditto.
22544 (sse4_1_pinsrd): Ditto.
22545 (sse4_1_pinsrq): Ditto.
22546 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
22547 * config/i386/i386.c (ix86_expand_pinsr): New.
22548
22549 2011-04-20 Easwaran Raman <eraman@google.com>
22550
22551 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
22552 containing union type only with -fstrict-aliasing.
22553
22554 2011-04-20 Jim Meyering <meyering@redhat.com>
22555
22556 Remove useless if-before-free tests.
22557 * calls.c (expand_call, save_area): Likewise.
22558 * cfgcleanup.c (try_forward_edges): Likewise.
22559 * collect2.c (collect_execute): Likewise.
22560 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
22561 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
22562 * coverage.c (coverage_checksum_string): Likewise.
22563 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
22564 * cselib.c (cselib_init): Likewise.
22565 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
22566 (df_set_clean_cfg): Likewise.
22567 * function.c (free_after_compilation): Likewise.
22568 * gcc.c (do_spec_1, main): Likewise.
22569 * gcov.c (create_file_names): Likewise.
22570 * gensupport.c (identify_predicable_attribute): Likewise.
22571 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
22572 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
22573 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
22574 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
22575 * ipa-pure-const.c (local_pure_const): Likewise.
22576 * ipa-reference.c (propagate): Likewise.
22577 * ira-costs.c (free_ira_costs): Likewise.
22578 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
22579 * matrix-reorg.c (mat_free): Likewise.
22580 * prefix.c (get_key_value): Likewise.
22581 * profile.c (compute_value_histograms): Likewise.
22582 * reload1.c (free_reg_equiv): Likewise.
22583 * sched-deps.c (free_deps): Likewise.
22584 * sel-sched-ir.c (fence_clear): Likewise.
22585 * sese.c (set_rename, if_region_set_false_region): Likewise.
22586 * tree-data-ref.c (free_rdg): Likewise.
22587 * tree-eh.c (lower_try_finally): Likewise.
22588 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
22589 * tree-ssa-live.c (delete_var_map): Likewise.
22590 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
22591 * tree-ssa-pre.c (phi_trans_add): Likewise.
22592
22593 2011-04-20 Jakub Jelinek <jakub@redhat.com>
22594
22595 PR tree-optimization/48611
22596 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
22597 beyond ERT_MUST_NOT_THROW region.
22598
22599 2011-04-20 Catherine Moore <clm@codesourcery.com>
22600
22601 * config/mips/mips.opt (mfix-24k): New.
22602 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
22603 * config/mips/mips.md (length): Increase by 4 for stores if
22604 fixing 24K errata.
22605 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
22606 all noreorder if fixing 24K errata.
22607 * doc/invoke.texi: Document mfix-24k.
22608
22609 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
22610
22611 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
22612 quad-word modes, reduce to 9-bit index range when above 1016 limit.
22613
22614 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
22615
22616 * config/arm/arm.c (arm_gen_constant): Move movw support ....
22617 (const_ok_for_op): ... to here.
22618
22619 2011-04-20 Kai Tietz <ktietz@redhat.com>
22620
22621 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
22622 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
22623
22624 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
22625
22626 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
22627
22628 2011-04-20 Richard Guenther <rguenther@suse.de>
22629
22630 PR tree-optimization/47892
22631 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
22632 are if-convertible.
22633
22634 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
22635
22636 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
22637
22638 2011-04-20 Tristan Gingold <gingold@adacore.com>
22639
22640 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
22641
22642 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
22643
22644 PR target/18145
22645
22646 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
22647 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
22648 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22649 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
22650 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
22651
22652 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
22653 New prototype.
22654
22655 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
22656 (avr_asm_named_section, avr_asm_output_aligned_common,
22657 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
22658 New functions to update...
22659 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
22660 (avr_asm_init_sections): Overwrite section callbacks for
22661 data_section, bss_section.
22662 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
22663 from here to...
22664 (avr_file_end): ...here.
22665
22666 2011-04-20 Richard Guenther <rguenther@suse.de>
22667
22668 PR middle-end/48695
22669 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
22670 objects and types here. Adjust for their offset before comparing.
22671
22672 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
22673
22674 * tree-vect-stmts.c (vectorizable_store): Only chain one related
22675 statement per copy.
22676
22677 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
22678
22679 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
22680 (GIMPLE_H): Include $(INTERNAL_FN_H).
22681 (OBJS-common): Add internal-fn.o.
22682 (internal-fn.o): New rule.
22683 * internal-fn.def: New file.
22684 * internal-fn.h: Likewise.
22685 * internal-fn.c: Likewise.
22686 * gimple.h: Include internal-fn.h.
22687 (GF_CALL_INTERNAL): New gf_mask.
22688 (gimple_statement_call): Put fntype into a union with a new
22689 internal_fn field.
22690 (gimple_build_call_internal): Declare.
22691 (gimple_build_call_internal_vec): Likewise.
22692 (gimple_call_same_target_p): Likewise.
22693 (gimple_call_internal_p): New function.
22694 (gimple_call_internal_fn): Likewise.
22695 (gimple_call_fntype): Return null for internal calls.
22696 (gimple_call_set_fntype): Assert that the function is not internal.
22697 (gimple_call_set_fn): Likewise.
22698 (gimple_call_set_fndecl): Likewise.
22699 (gimple_call_set_internal_fn): New function.
22700 (gimple_call_addr_fndecl): Handle null functions.
22701 (gimple_call_return_type): Likewise null types.
22702 * gimple.c (gimple_build_call_internal_1): New function.
22703 (gimple_build_call_internal): Likewise.
22704 (gimple_build_call_internal_vec): Likewise.
22705 (gimple_call_same_target_p): Likewise.
22706 (gimple_call_flags): Handle calls to internal functions.
22707 (gimple_call_fnspec): New function.
22708 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
22709 (gimple_has_side_effects): Handle null functions.
22710 (gimple_rhs_has_side_effects): Likewise.
22711 (gimple_call_copy_skip_args): Handle calls to internal functions.
22712 * cfgexpand.c (expand_call_stmt): Likewise.
22713 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
22714 * gimple-fold.c (gimple_fold_call): Handle null functions.
22715 (gimple_fold_stmt_to_constant_1): Don't fold
22716 calls to internal functions.
22717 * gimple-low.c (gimple_check_call_args): Handle calls to internal
22718 functions.
22719 * gimple-pretty-print.c (dump_gimple_call): Likewise.
22720 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
22721 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
22722 (do_warn_unused_result): Likewise.
22723 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
22724 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
22725 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
22726 the target of a call.
22727 (initialize_hash_element): Update accordingly.
22728 (hashable_expr_equal_p): Use gimple_call_same_target_p.
22729 (iterative_hash_hashable_expr): Handle calls to internal functions.
22730 (print_expr_hash_elt): Likewise.
22731 * tree-ssa-pre.c (can_value_number_call): Likewise.
22732 (eliminate): Handle null functions.
22733 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
22734 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
22735 (find_func_aliases): Likewise.
22736 * value-prof.c (gimple_ic_transform): Likewise.
22737 (gimple_indirect_call_to_profile): Likewise.
22738 * lto-streamer-in.c (input_gimple_stmt): Likewise.
22739 * lto-streamer-out.c (output_gimple_stmt): Likewise.
22740
22741 2011-04-19 Jan Hubicka <jh@suse.cz>
22742
22743 * ipa-inline-transform.c (save_inline_function_body): Add comments.
22744 * ipa-inline.c (inline_small_functions): Compute summaries first,
22745 populate heap later.
22746
22747 2011-04-19 Jan Hubicka <jh@suse.cz>
22748
22749 * cgraph.h (save_inline_function_body): Remove.
22750 * ipa-inline-transform.c: New file, broke out of...
22751 * ipa-inline.c: ... this one; Update toplevel comment.
22752 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
22753 make global.
22754 (update_noncloned_frequencies): Move to ipa-inline-transform.c
22755 (cgraph_mark_inline_edge): Rename to inline_call; move to
22756 ipa-inline-transform.c.
22757 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
22758 move to ipa-inline-transform.c
22759 (recursive_inlining, inline_small_functions, flatten_function,
22760 ipa_inline, inline_always_inline_functions,
22761 early_inline_small_functions): Update.
22762 (inline_transform): Move to ipa-inline-transform.c.
22763 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
22764 Declare.
22765 * Makefile.in (ipa-inline-transform.o): New file.
22766 * cgraphunit.c (save_inline_function_body): Move to
22767 ipa-inline-transform.c
22768
22769 2011-04-19 DJ Delorie <dj@redhat.com>
22770
22771 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
22772 registers if we already know there aren't any.
22773 (m32c_emit_epilogue): Don't emit a barrier here.
22774 (m32c_emit_eh_epilogue): Likewise.
22775 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
22776 operands at expand time.
22777 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
22778 int" wchar type.
22779 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
22780 duplicates. Provide aliases instead.
22781 * config/m32c/prologue.md (eh_return): Emit a barrier here.
22782 (eh_epilogue): Add a "(return)" here as a hint to other parts of
22783 the compiler.
22784
22785 2011-04-19 Anatoly Sokolov <aesok@post.ru>
22786
22787 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
22788 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
22789 (general_or_i64_p, sparc_register_move_cost): New function.
22790
22791 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22792
22793 * doc/install.texi (Configuration, --enable-threads): Remove mach.
22794 Add lynx, mipssde. Sort table.
22795
22796 2011-04-19 Xinliang David Li <davidxl@google.com>
22797
22798 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
22799 not negative.
22800
22801 2011-04-19 Jakub Jelinek <jakub@redhat.com>
22802
22803 PR target/48678
22804 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
22805 is a SUBREG with non-MODE_INT mode inside of it.
22806
22807 2011-04-19 Martin Jambor <mjambor@suse.cz>
22808
22809 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
22810 also according to actual contants.
22811 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
22812 (gimple_fold_call): Use it.
22813 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
22814
22815 2011-04-19 Martin Jambor <mjambor@suse.cz>
22816
22817 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
22818 non-pointer assignments.
22819
22820 2011-04-19 Martin Jambor <mjambor@suse.cz>
22821
22822 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
22823 account anc_offset and otr_type from the indirect edge info.
22824 * ipa-prop.c (get_ancestor_addr_info): New function.
22825 (compute_complex_ancestor_jump_func): Assignment analysis moved to
22826 get_ancestor_addr_info, call it.
22827 (ipa_note_param_call): Do not initialize information about polymorphic
22828 calls, return the indirect call graph edge. Remove the last
22829 parameter, adjust all callers.
22830 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
22831 parameters. Initialize polymorphic information in the indirect edge.
22832
22833 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22834
22835 PR lto/48148
22836 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
22837 the types if they have different enumeration identifiers.
22838
22839 2011-04-19 Jan Hubicka <jh@suse.cz>
22840
22841 * cgraph.h (cgraph_optimize_for_size_p): Declare.
22842 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
22843 * predict.c (cgraph_optimize_for_size_p): Break out from ...
22844 (optimize_function_for_size_p) ... here.
22845
22846 2011-04-19 Richard Guenther <rguenther@suse.de>
22847
22848 PR lto/48207
22849 * tree.c (free_lang_data): Do not reset the decl-assembler-name
22850 langhook.
22851
22852 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22853
22854 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
22855 if DECL_NO_INLINE_WARNING_P is set on the function.
22856
22857 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
22858
22859 PR fortran/47976
22860 * reload1.c (inc_for_reload): Return void. All callers changed.
22861 (emit_input_reload_insns): Don't try to delete previous output
22862 reloads to a register, or record spill_reg_store for autoincs.
22863
22864 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
22865
22866 * gengtype.h: Updated copyright year.
22867 (struct input_file_st): Add inpisplugin field.
22868 (type_fileloc): New function.
22869 * gengtype.c
22870 (write_typed_struct_alloc_def): Add gcc_assert.
22871 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
22872 (write_typed_alloc_defns): Don't output for plugin files.
22873 (input_file_by_name): Clear inpisplugin field.
22874 (main): Set inpisplugin field for plugin files.
22875
22876 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
22877
22878 * gengtype-state.c (string_eq): New.
22879 (read_state): Use string_eq instead of strcmp when creating the
22880 state_ident_tab.
22881
22882 2011-04-19 Wei Guozhi <carrot@google.com>
22883
22884 PR target/47855
22885 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
22886 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
22887 linkage.
22888 * config/arm/constraints.md (Uu): New constraint.
22889 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
22890
22891 2011-04-19 Tristan Gingold <gingold@adacore.com>
22892
22893 * config.gcc (-*-*-*vms): Added.
22894 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
22895 definitions moved.
22896 * config/vms/vms-ld.c: New file.
22897 * config/vms/vms-ar.c: New file.
22898 * config/vms/t-vmsnative: New file.
22899
22900 2011-04-18 Xinliang David Li <davidxl@google.com>
22901
22902 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
22903
22904 2011-04-18 Jakub Jelinek <jakub@redhat.com>
22905
22906 PR middle-end/48661
22907 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
22908 if TREE_TYPE (v) is non-NULL.
22909
22910 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
22911 gimple_get_virt_mehtod_for_binfo.
22912 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
22913 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
22914 callers.
22915 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
22916
22917 2011-04-18 Michael Matz <matz@suse.de>
22918 Steve Ellcey <sje@cup.hp.com>
22919
22920 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
22921 use its mode as source mode if it isn't VOIDmode.
22922
22923 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
22924
22925 * doc/passes.texi: Fill crossref nodes.
22926
22927 2011-04-18 Jim Meyering <meyering@redhat.com>
22928
22929 Fix doubled-word typos in comments and strings
22930 * config/alpha/vms-unwind.h: s/for for/for/
22931 * config/arm/unwind-arm.h: Likewise.
22932 * config/microblaze/microblaze.c: Likewise.
22933 * config/sh/constraints.md: s/in in/in/
22934 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
22935
22936 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
22937
22938 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
22939 (AVX_FLOAT_MODE_P): Ditto.
22940 (AVX128_VEC_FLOAT_MODE_P): Ditto.
22941 (AVX256_VEC_FLOAT_MODE_P): Ditto.
22942 (AVX_VEC_FLOAT_MODE_P): Ditto.
22943 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
22944 (UNSPEC_MASKSTORE): Ditto.
22945 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
22946 Merge from <sse>_movmsk<ssemodesuffix> and
22947 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
22948 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
22949 iterator.
22950 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
22951 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
22952 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
22953
22954 2011-04-18 Jan Hubicka <jh@suse.cz>
22955
22956 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
22957
22958 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
22959 (want_inline_function_called_once_p): Break out the logic from
22960 ipa_inline.
22961 (edge_badness): Ensure that profile is not misupdated.
22962 (lookup_recursive_calls): Prioritize by call frequencies.
22963 (inline_small_functions): Move program size estimates here;
22964 actually process whole queue even when unit growth has been
22965 met. (to properly compute inline_failed reasons and for the
22966 case unit size decrease.) Revisit comments on recursive inlining.
22967 (ipa_inline): Remove unit summary code; first inline hot calls
22968 of functions called once, cold calls next.
22969 (order, nnodes): Remove unused variables.
22970 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
22971 (GTFILES): Remove ipa-inline.c
22972 * sel-sched.c (fill_insns): Silence uninitialized var warning.
22973
22974 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
22975
22976 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
22977
22978 2011-04-18 Jie Zhang <jie@codesourcery.com>
22979 Richard Earnshaw <rearnsha@arm.com>
22980
22981 * arm.c (neon_builtin_type_bits): Remove.
22982 (typedef enum neon_builtin_mode): New.
22983 (T_MAX): Don't define.
22984 (typedef enum neon_builtin_datum): Remove bits, codes[],
22985 num_vars and base_fcode. Add mode, code and fcode.
22986 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
22987 VAR10): Change accordingly.
22988 (neon_builtin_data[]): Change accordingly
22989 (arm_init_neon_builtins): Change accordingly.
22990 (neon_builtin_compare): Remove.
22991 (locate_neon_builtin_icode): Remove.
22992 (arm_expand_neon_builtin): Change accordingly.
22993
22994 * arm.h (enum arm_builtins): Move to ...
22995 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
22996
22997 * arm.c (arm_builtin_decl): Declare.
22998 (TARGET_BUILTIN_DECL): Define.
22999 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
23000 (arm_builtin_decls[]): New.
23001 (arm_init_neon_builtins): Store builtin declarations in
23002 arm_builtin_decls[].
23003 (arm_init_tls_builtins): Likewise.
23004 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
23005 (arm_builtin_decl): New.
23006
23007 2011-04-18 Richard Guenther <rguenther@suse.de>
23008
23009 * tree.c (upper_bound_in_type): Build properly canonicalized
23010 INTEGER_CSTs.
23011 (lower_bound_in_type): Likewise.
23012
23013 2011-04-18 Richard Guenther <rguenther@suse.de>
23014
23015 * gimple.h (gimple_call_addr_fndecl): New function.
23016 (gimple_call_fndecl): Use it.
23017 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
23018 for direct calls.
23019 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
23020 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
23021
23022 2011-04-18 Richard Guenther <rguenther@suse.de>
23023
23024 PR middle-end/48650
23025 * tree.c (build_string): STRING_CST is now derived from tree_typed.
23026
23027 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
23028
23029 PR lto/48492
23030 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
23031 DECL_IN_CONSTANT_POOL without RTL.
23032
23033 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
23034 Ira Rosen <ira.rosen@linaro.org>
23035
23036 PR target/48252
23037 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
23038 to match neon_vzip/vuzp/vtrn_internal.
23039 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
23040 outputs explicitly dependent on both inputs.
23041 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
23042
23043 2011-04-18 Jakub Jelinek <jakub@redhat.com>
23044
23045 PR tree-optimization/48616
23046 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
23047 whether the shift is by scalar or vector based on whether all SLP
23048 scalar stmts have the same rhs.
23049
23050 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
23051
23052 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
23053 memory operands.
23054
23055 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
23056
23057 PR target/43700
23058 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
23059 registers.
23060
23061 2011-04-17 Jan Hubicka <jh@suse.cz>
23062
23063 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
23064 * cgrpahunit.c (cgraph_finalize_function): Do not set
23065 finalized_by_frontend.
23066 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
23067 finalized_by_frontend.
23068
23069 2011-04-17 Jan Hubicka <jh@suse.cz>
23070
23071 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
23072 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
23073 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
23074 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
23075 method.
23076 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
23077 gimple-fold.c
23078 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
23079
23080 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
23081
23082 PR lto/48538
23083 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
23084 is non-null before accessing it.
23085 (input_cgraph): Remove trailing spaces.
23086
23087 2011-04-17 Revital Eres <revital.eres@linaro.org>
23088
23089 * params.def (sms-min-sc): New param flag.
23090 * modulo-sched.c (sms_schedule): Use it.
23091 * doc/invoke.texi (sms-min-sc): Document it.
23092
23093 2011-04-17 Jan Hubicka <jh@suse.cz>
23094
23095 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
23096 present, also set gimple_call_set_cannot_inline.
23097 * ipa-inline.c: Update toplevel comment.
23098 (MAX_TIME): Remove.
23099 (cgraph_clone_inlined_nodes): Fix linebreaks.
23100 (cgraph_check_inline_limits): Restructure to ...
23101 (caller_growth_limits): ... this one; be more tolerant
23102 on growth in nested inline chains; add explanatory comment;
23103 fix stack accounting thinko introduced by previous patch.
23104 (cgraph_default_inline_p): Remove.
23105 (report_inline_failed_reason): New function.
23106 (can_inline_edge_p): New function.
23107 (can_early_inline_edge_p): New function.
23108 (leaf_node_p): Move upwards in file.
23109 (want_early_inline_function_p): New function.
23110 (want_inline_small_function_p): New function.
23111 (want_inline_self_recursive_call_p): New function.
23112 (cgraph_edge_badness): Rename to ...
23113 (edge_badness) ... this one; fix linebreaks.
23114 (update_edge_key): Update call of edge_baddness; add
23115 detailed dump about queue updates.
23116 (update_caller_keys): Use can_inline_edge_p and
23117 want_inline_small_function_p.
23118 (cgraph_decide_recursive_inlining): Rename to...
23119 (recursive_inlining): Use can_inline_edge_p and
23120 want_inline_self_recursive_call_p; simplify and remove no longer
23121 valid FIXME.
23122 (cgraph_set_inline_failed): Remove.
23123 (add_new_edges_to_heap): Use can_inline_edge_p and
23124 want_inline_small_function_p.
23125 (cgraph_decide_inlining_of_small_functions): Rename to ...
23126 (inline_small_functions): ... this one; cleanup; use
23127 can/want predicates; cleanup debug ouput; work edges till fibheap
23128 is exhausted and do not stop once unit growth is reached; remove
23129 later loop processing remaining edges.
23130 (cgraph_flatten): Rename to ...
23131 (flatten_function): ... this one; use can_inline_edge_p
23132 and can_early_inline_edge_p predicates.
23133 (cgraph_decide_inlining): Rename to ...
23134 (ipa_inline): ... this one; remove unreachable nodes before
23135 inlining functions called once; simplify the pass.
23136 (cgraph_perform_always_inlining): Rename to ...
23137 (inline_always_inline_functions): ... this one; use
23138 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
23139 (cgraph_decide_inlining_incrementally): Rename to ...
23140 (early_inline_small_functions): ... this one; simplify
23141 using new predicates; cleanup; make dumps prettier.
23142 (cgraph_early_inlining): Rename to ...
23143 (early_inliner): newer inline regular functions into always-inlines;
23144 fix updating of call stmt summaries.
23145 (pass_early_inline): Update for new names.
23146 (inline_transform): Fix formating.
23147 (gate_cgraph_decide_inlining): Rename to ...
23148 (pass_ipa_inline): ... this one.
23149 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
23150 * ipa-inline-analysis.c (dump_inline_summary): Update.
23151 (compute_inline_parameters): Do not compute disregard_inline_limits;
23152 look for mismatching arguments.
23153 (estimate_growth): Fix handlig of non-trivial self recursion.
23154 (inline_read_summary): Do not read info->disregard_inline_limits.
23155 (inline_write_summary): Do not write info->disregard_inline_limits.
23156 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
23157 and move all checks into can_inline_edge_p predicate; re-enable code
23158 comparing optimization levels.
23159 (expand_call_inline): Do not test inline_forbidden_into_p.
23160 * Makefile.in (ipa-inline.o): Update arguments.
23161
23162 2011-04-17 Revital Eres <revital.eres@linaro.org>
23163
23164 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
23165
23166 2011-04-17 Revital Eres <revital.eres@linaro.org>
23167
23168 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
23169
23170 2011-04-17 Michael Matz <matz@suse.de>
23171
23172 PR tree-optimization/48622
23173 PR lto/48645
23174 * ipa-inline-analysis.c (inline_read_summary): Read size/time
23175 in same order as they're written.
23176
23177 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23178
23179 * config/pa/predicates.md: Reorganize and simplify predicates.
23180 Eliminate duplicate code checks.
23181 (arith_operand): Rename to arith14_operand
23182 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
23183 * config/pa/pa.md: Use renamed operands.
23184 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
23185 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
23186 arith11_operand, adddi3_operand, indexed_memory_operand,
23187 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
23188 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
23189 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
23190 move_dest_operand, move_src_operand, prefetch_cc_operand,
23191 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
23192 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
23193 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
23194 div_operand, int5_operand, movb_comparison_operator,
23195 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
23196 arith_double_operand, ireg_operand, lhs_lshift_operand,
23197 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
23198 integer_store_memory_operand): Likewise.
23199 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
23200 (integer_store_memory_operand, read_only_operand,
23201 function_label_operand, borx_reg_operand,
23202 non_hard_reg_operand): Likewise.
23203 (eq_neq_comparison_operator): Delete unused operator.
23204 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
23205 function_label_operand.
23206 (emit_move_sequence): Likewise.
23207
23208 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
23209
23210 * config/i386/sse.md (sseunpackmode): New mode attribute.
23211 (ssepackmode): Ditto.
23212 (vec_pack_trunc_<mode>): Macroize expander from
23213 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
23214 (vec_unpacks_lo_<mode>): Macroize expander from
23215 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23216 (vec_unpacks_hi_<mode>): Macroize expander from
23217 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23218 (vec_unpacku_lo_<mode>): Macroize expander from
23219 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23220 (vec_unpacku_hi_<mode>): Macroize expander from
23221 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23222 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
23223 ix86_expand_sse4_unpack.
23224 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
23225
23226 2011-04-16 Jan Hubicka <jh@suse.cz>
23227
23228 * cgraphbuild.c: Include ipa-inline.h.
23229 (reset_inline_failed): Use initialize_inline_failed.
23230 * cgraph.c: Include ipa-inline.h.
23231 (cgraph_create_node_1): Do not initialize estimated_growth.
23232 (initialize_inline_failed): More to ipa-inline-analysis.c
23233 (dump_cgraph_node): Do not dump inline flags.
23234 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
23235 and disregard_inline_limits flags.
23236 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
23237 time, size, estimated_growth.
23238 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
23239 Update.
23240 * cgraphunit.c (cgraph_decide_is_function_needed): Use
23241 DECL_DISREGARD_INLINE_LIMITS.
23242 (cgraph_analyze_function): Do not initialize
23243 node->local.disregard_inline_limits.
23244 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
23245 inlinable, versionable and disregard_inline_limits.
23246 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
23247 cgraph_check_inline_limits, cgraph_default_inline_p,
23248 cgraph_edge_badness, update_caller_keys, update_callee_keys,
23249 add_new_edges_to_heap): Update.
23250 (cgraph_decide_inlining_of_small_function): Update; set
23251 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
23252 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
23253 cgraph_decide_inlining_incrementally): Update.
23254 * ipa-inline.h (inline_summary): Add inlinable, versionable,
23255 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
23256 time, size and estimated_growth parameters.
23257 (estimate_edge_growth): Update.
23258 (initialize_inline_failed): Declare.
23259 * ipa-split.c: Include ipa-inline.h
23260 (execute_split_functions): Update.
23261 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
23262 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
23263 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
23264 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
23265 estimated_growth to INT_MIN.
23266 (inline_node_duplication_hook): Likewise.
23267 (dump_inline_summary): Dump new fields.
23268 (compute_inline_parameters): Update.
23269 (estimate_edge_time, estimate_time_after_inlining,
23270 estimate_size_after_inlining, estimate_growth, inline_read_summary,
23271 inline_write_summary):
23272 (initialize_inline_failed): Move here from cgraph.c.
23273 * tree-sra.c: Include ipa-inline.h.
23274 (ipa_sra_preliminary_function_checks): Update.
23275 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
23276 ipa-inline.h.
23277
23278 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
23279
23280 * config/i386/sse.md (V16): New mode iterator.
23281 (VI1, VI8): Ditto.
23282 (AVXMODEQI, AVXMODEDI): Remove.
23283 (sse2, sse3): New mode attribute.
23284 (mov<mode>): Use V16 mode iterator.
23285 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
23286 (push<mode>1): Use V16 mode iterator.
23287 (movmisalign<mode>): Ditto.
23288 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
23289 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
23290 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
23291 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
23292 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
23293 avx_movdqu<avxmodesuffix>.
23294 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
23295 *avx_movdqu<avxmodesuffix>.
23296 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
23297 avx_lddqu<avxmodesuffix>.
23298 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
23299 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
23300 avx_movnt<AVXMODEDI:mode>.
23301 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
23302 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
23303
23304 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
23305
23306 PR target/48629
23307 * haifa-sched.c (prune_ready_list, schedule_block): Use
23308 sched_pressure_p rather than flag_sched_pressure.
23309
23310 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
23311
23312 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
23313 cgraph_get_node instead of cgraph_get_create_node.
23314
23315 2011-04-15 Jakub Jelinek <jakub@redhat.com>
23316
23317 * cfgexpand.c (expand_debug_expr): Use
23318 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
23319
23320 2011-04-15 Michael Matz <matz@suse.de>
23321
23322 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
23323 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
23324 * function.c (gimplify_parameters): Ditto.
23325 * gimplify.c (gimplify_vla_decl): Ditto.
23326
23327 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
23328 (gimple_call_set_alloca_for_var): New inline function.
23329 (gimple_call_alloca_for_var_p): Ditto.
23330 * gimple.c (gimple_build_call_from_tree): Remember
23331 CALL_ALLOCA_FOR_VAR_P state.
23332 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
23333
23334 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
23335 calls if they were for VLA objects.
23336
23337 2011-04-15 Martin Jambor <mjambor@suse.cz>
23338
23339 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
23340 of ADR_EXPRs.
23341
23342 2011-04-15 Martin Jambor <mjambor@suse.cz>
23343
23344 PR middle-end/48601
23345 * tree-emutls.c (lower_emutls_function_body): Call
23346 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
23347 result is non-NULL.
23348
23349 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
23350
23351 * c-decl.c (detect_field_duplicates): Call
23352 objc_detect_field_duplicates instead of objc_get_interface_ivars.
23353
23354 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
23355
23356 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
23357 * gimple.c (gimple_asm_clobbers_memory_p): Define.
23358 * ipa-pure-const.c (check_stmt): Call it.
23359 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
23360
23361 2011-04-15 Richard Guenther <rguenther@suse.de>
23362
23363 PR tree-optimization/48290
23364 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
23365 Properly decide inhibiting propagation based on the valueized
23366 operand. Do loop-closed SSA form preserving here ...
23367 (init_copy_prop): ... not here.
23368
23369 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
23370
23371 PR target/48612
23372 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
23373 (*ieee_smax<mode>3): Likewise.
23374
23375 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23376
23377 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
23378 Replace match_operand with match_dup for the third operand in
23379 these expanders.
23380
23381 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
23382
23383 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
23384 to track processing of conditionals. Update all callers.
23385 (try_combine, simplify_if_then_else): Update.
23386
23387 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
23388
23389 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
23390 -fsched-pressure.
23391
23392 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
23393
23394 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
23395 instead of match_operand for operand 3.
23396
23397 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
23398
23399 * recog.h (insn_operand_data): Add an "allows_mem" field.
23400 * genoutput.c (output_operand_data): Initialize it.
23401 * optabs.c (maybe_legitimize_operand_same_code): New function.
23402 (maybe_legitimize_operand): Use it when matching the original
23403 op->value.
23404
23405 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
23406
23407 * gimplify.c: Fix issues in comments throughout.
23408 (voidify_wrapper_expr): Fix long line.
23409 (build_stack_save_restore): Likewise.
23410 (gimplify_loop_expr): Likewise.
23411 (gimplify_compound_lval): Likewise.
23412 (gimplify_init_ctor_eval): Likewise.
23413 (gimplify_modify_expr_rhs): Likewise.
23414 (omp_notice_threadprivate_variable): Likewise.
23415
23416 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
23417
23418 * cfgexpand.c (expand_call_stmt): Convert the function type to the
23419 original one if this is not a builtin function.
23420
23421 2011-04-14 Jakub Jelinek <jakub@redhat.com>
23422
23423 PR target/48605
23424 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
23425 offset it as needed based on top 2 bits in operands[3], change
23426 MEM mode to SFmode and mask those 2 bits away from operands[3].
23427
23428 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
23429
23430 * c-parser.c (c_parser_objc_protocol_definition): Updated for
23431 change from objc_declare_protocols() to objc_declare_protocol().
23432
23433 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
23434
23435 * config/i386/sse.md (sse4_1): New mode attribute.
23436 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
23437 avx_blend<ssemodesuffix><avxmodesuffix> and
23438 sse4_1_blend<ssemodesuffix> using VF mode iterator.
23439 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
23440 avx_blendv<ssemodesuffix><avxmodesuffix> and
23441 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
23442 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
23443 avx_dp<ssemodesuffix><avxmodesuffix> and
23444 sse4_1_dp<ssemodesuffix> using VF mode iterator.
23445 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
23446 (sse4_1_packusdw): Merge with *avx_packusdw.
23447 (sse4_1_pblendvb): Merge with *avx_pblendvb.
23448 (sse4_1_pblendw): Merge with *avx_pblendw.
23449 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
23450 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
23451 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
23452 VF mode iterator.
23453 (sse4_1_round<ssescalarmodesuffix>): Merge with
23454 *avx_round<ssescalarmodesuffix>.
23455 (aesenc): Merge with *avx_aesenc.
23456 (aesenclast): Merge with *avx_aesenclast.
23457 (aesdec): Merge with *avx_aesdec.
23458 (aesdeclast): Merge with *avx_aesdeclast.
23459 (pclmulqdq): Merge with *pclmulqdq.
23460 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
23461 New predicate.
23462 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
23463
23464 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
23465
23466 PR middle-end/48608
23467 * cfgexpand.c (get_decl_align_unit): Renamed to ...
23468 (align_local_variable): This. Update DECL_ALIGN.
23469 (add_stack_var): Updated.
23470 (expand_one_stack_var): Likewise.
23471
23472 2011-04-14 Richard Guenther <rguenther@suse.de>
23473
23474 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
23475 Remove.
23476 (dse_initialize_block_local_data, dse_leave_block,
23477 record_voperand_set, get_stmt_uid): Likewise.
23478 (dse_possible_dead_store_p): Allow any kind of killing stmt.
23479 (dse_optimize_stmt): Remove voperand set handling code.
23480 Simplify and improve to handle any kind of killing stmt.
23481 (dse_record_phi): Remove.
23482 (dse_enter_block): Simplify.
23483 (tree_ssa_dse): Likewise.
23484 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
23485
23486 2011-04-14 Jan Hubicka <jh@suse.cz>
23487
23488 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
23489 * cgraph.h (struct inline_summary): Move to ipa-inline.h
23490 (cgraph_local_info): Remove inline_summary.
23491 * ipa-cp.c: Include ipa-inline.h.
23492 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
23493 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
23494 accesor.
23495 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
23496 (input_overwrite_node): Do not set inline summary.
23497 (input_node): Do not stream inline summary.
23498 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
23499 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
23500 growth; we do not have inline parameters computed for that anyway.
23501 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
23502 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
23503 (inline_summary_t): New type and VECtor.
23504 (debug_inline_summary, dump_inline_summaries): Declare.
23505 (inline_summary): Use VOCtor.
23506 (estimate_edge_growth): Kill hack computing call stmt size directly.
23507 * lto-section-in.c (lto_section_name): Add inline section.
23508 * ipa-inline-analysis.c: Include lto-streamer.h
23509 (node_removal_hook_holder, node_duplication_hook_holder): New holders
23510 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
23511 (inline_summary_vec): Define.
23512 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
23513 dump_inline_summaries): New functions.
23514 (estimate_function_body_sizes): Properly compute size/time of outgoing
23515 calls.
23516 (compute_inline_parameters): Alloc inline_summary; do not compute
23517 size/time of incomming calls.
23518 (estimate_edge_time): Avoid missing time summary hack.
23519 (inline_read_summary): Read inline summary info.
23520 (inline_write_summary): Write inline summary info.
23521 (inline_free_summary): Free all hooks and inline summary vector.
23522 * lto-streamer.h: Add LTO_section_inline_summary section.
23523 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
23524 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
23525
23526 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23527
23528 * tree-vectorizer.h (vect_strided_store_supported): Add a
23529 HOST_WIDE_INT argument.
23530 (vect_strided_load_supported): Likewise.
23531 (vect_permute_store_chain): Return void.
23532 (vect_transform_strided_load): Likewise.
23533 (vect_permute_load_chain): Delete.
23534 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
23535 count argument. Check that the count is a power of two.
23536 (vect_strided_load_supported): Likewise.
23537 (vect_permute_store_chain): Return void. Update after above changes.
23538 Assert that the access is supported.
23539 (vect_permute_load_chain): Likewise.
23540 (vect_transform_strided_load): Return void.
23541 * tree-vect-stmts.c (vectorizable_store): Update calls after
23542 above interface changes.
23543 (vectorizable_load): Likewise.
23544 (vect_analyze_stmt): Don't check for strided powers of two here.
23545
23546 2011-04-14 Richard Guenther <rguenther@suse.de>
23547
23548 PR tree-optimization/48590
23549 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23550 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
23551 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
23552 BUILT_IN_STACK_SAVE.
23553 * tree-ssa-dce.c (propagate_necessity): Handle
23554 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
23555
23556 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
23557
23558 * c-parser.c (c_parser_objc_class_declaration): Updated call to
23559 objc_declare_class.
23560
23561 2011-04-14 Richard Guenther <rguenther@suse.de>
23562
23563 * tree.h (get_object_alignment_1): Declare.
23564 * builtins.c (get_object_alignment_1): Split out worker from ...
23565 (get_object_alignment): ... here.
23566 * fold-const.c (get_pointer_modulus_and_residue): Use
23567 get_object_alignment_1.
23568
23569 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23570
23571 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
23572 type parameter.
23573 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
23574 parameter. Generalise code to handle arrays as well as vectors.
23575 (vect_setup_realignment): Update accordingly.
23576 * tree-vect-stmts.c (vectorizable_store): Likewise.
23577 (vectorizable_load): Likewise.
23578
23579 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23580
23581 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
23582 within the per-copy loop.
23583
23584 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23585
23586 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
23587 in the dump file.
23588
23589 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23590
23591 * doc/options.texi (Negative): Explicitly mention that the
23592 Negative chain must be circular.
23593
23594 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
23595
23596 * function.h (block_chainon): Declare.
23597 * function.c (block_chainon): Define.
23598
23599 2011-04-14 Anatoly Sokolov <aesok@post.ru>
23600 Eric Weddington <eric.weddington@atmel.com>
23601 Georg-Johann Lay <avr@gjlay.de>
23602
23603 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
23604 New Includes
23605 (avr_init_builtins, avr_expand_builtin,
23606 avr_expand_delay_cycles, avr_expand_unop_builtin,
23607 avr_expand_binop_builtin ): New functions.
23608 (avr_builtin_id): New enum
23609 (struct avr_builtin_description): New struct
23610 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
23611 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
23612
23613 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
23614 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
23615 UNSPECV_DELAY_CYCLES): new enumeration values
23616 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
23617 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
23618 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
23619 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
23620 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
23621 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
23622 "fmulsu"): New insns
23623
23624 * config/avr/avr-c.c: fix line endings
23625 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
23626 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
23627 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
23628 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
23629 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
23630
23631 * doc/extend.texi (AVR Built-in Functions): New node
23632 (Target Builtins): Add documentation of AVR
23633 built-in functions.
23634
23635 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
23636
23637 PR target/44643
23638 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
23639 alone. Error if non-const data has attribute progmem.
23640
23641 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23642
23643 * tree.h (struct tree_constructor): Include tree_typed instead of
23644 tree_common.
23645 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
23646 TS_TYPED instead of TS_COMMON.
23647
23648 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
23649
23650 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
23651 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
23652 (sse2_psadbw): Merge with *avx_psadbw.
23653 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
23654 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
23655 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
23656 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
23657 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
23658 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
23659 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
23660 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
23661 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
23662 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
23663 (ssse3_palignrti): Merge with *avx_palignrti.
23664
23665 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23666
23667 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
23668 * tree-ssanames.c (fini_ssanames): VEC_free it.
23669 (make_ssa_name_fn): Update for VECness of free_ssanames.
23670 (release_ssa_name, release_dead_ssa_names): Likewise.
23671 * tree.h (struct tree_ssa_name): Include tree_typed instead of
23672 tree_common.
23673 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
23674 TS_TYPED instead of TS_COMMON.
23675
23676 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23677
23678 * postreload-gcse.c (gcse_after_reload_main): Add calls to
23679 statistics_counter_event.
23680 * tree-ssa-copyrename.c (stats): Define.
23681 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
23682 statistics_counter_event.
23683 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
23684 (bswap_stats, widen_mul_stats): Define.
23685 (insert_reciprocals): Increment rdivs_inserted.
23686 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
23687 rfuncs_inserted. Add calls to statistics_counter_event.
23688 (execute_cse_sincos_1): Increment inserted.
23689 (execute_cse_sincos): Zeroize sincos_stats. Add call to
23690 statistics_counter_event.
23691 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
23692 of bswap_stats. Add calls to statistics_counter_event.
23693 (convert_mult_to_widen): Increment widen_mults_inserted.
23694 (convert_plusminus_to_widen): Increment maccs_inserted.
23695 (convert_mult_to_fma): Increment fmas_inserted.
23696 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
23697 calls to statistics_counter_event.
23698
23699 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
23700
23701 PR rtl-optimization/48455
23702 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
23703 `temp_costs->mem_cost'.
23704
23705 2011-04-13 Jan Hubicka <jh@suse.cz>
23706
23707 * ipa-inline.h: New file.
23708 * ipa-inline-analysis.c: New file. Broken out of ...
23709 * ipa-inline.c: ... this file; update toplevel comment;
23710 include ipa-inline.h
23711 (inline_summary): Move to ipa-inline.h
23712 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
23713 ipa-inline-analysis.c.
23714 (cgraph_estimate_time_after_inlining): Rename to
23715 estiamte_time_after_inlining; move to ipa-inline-analysis.c
23716 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
23717 to estimate_edge_growth.
23718 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
23719 rename to estimate_size_after_inlining.
23720 (cgraph_mark_inline_edge): Update for new naming convention.
23721 (cgraph_check_inline_limits): Likewise.
23722 (cgraph_edge_badness): Likewise.
23723 (cgraph_decide_recursive_inlining): Likewise.
23724 (cgraph_decide_inlining_of_small_functions): Likewise.
23725 (cgraph_decide_inlining_incrementally): Likewise.
23726 (cgraph_estimate_growth): Rename to estimate_growth; move to
23727 ipa-inline-analysis.c.
23728 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
23729 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
23730 (compute_inline_parameters): Likewise.
23731 (compute_inline_parameters_for_current): Likewise.
23732 (pass_inline_parameters): Likewise.
23733 (inline_indirect_intraprocedural_analysis): Likewise.
23734 (analyze_function): Rename to inline_analyze_function; likewise.
23735 (add_new_function): Move to ipa-inline-analysis.c.
23736 (inline_generate_summary): Likewise.
23737 (inline_read_summary): Likewise.
23738 (inline_write_summary): Likewise.
23739 * Makefile.in (ipa-inline-analysis.c): New file.
23740
23741 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23742
23743 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
23744 * configure: Regenerate.
23745
23746 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23747
23748 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
23749 instead of tree_common.
23750 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
23751 Likewise.
23752 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
23753 TS_TYPED rather than TS_COMMON.
23754 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
23755
23756 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
23757
23758 PR target/45263
23759 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
23760 r20 around calls of __tablejump_elpm__
23761
23762 2011-04-13 Jakub Jelinek <jakub@redhat.com>
23763
23764 PR middle-end/48591
23765 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
23766 NULL.
23767 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
23768
23769 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
23770
23771 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
23772 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
23773 (cfi_vec): New typedef.
23774 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
23775 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
23776 (cie_cfi_vec): New static variable.
23777 (cie_cfi_head): Delete.
23778 (add_cfi): Accept a cfi_vec * as first argument. All callers and
23779 declaration changed. Use vector rather than list operations.
23780 (new_cfi): Don't initialize the dw_cfi_next field.
23781 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
23782 rather than list operations.
23783 (lookup_cfa): Use vector rather than list operations.
23784 (output_cfis): New argument upto. Accept a cfi_vec rather than
23785 a dw_cfi_ref list head as argument. All callers changed.
23786 Iterate over the vector using upto as a maximum index.
23787 (output_all_cfis): New static function.
23788 (output_fde): Use vector rather than list operations. Use the
23789 new upto argument for output_cfis rather than manipulating a
23790 list.
23791 (dwarf2out_begin_prologue): Change initializations to match
23792 new struct members.
23793 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
23794 from the vector length rather than searching for the end of a list.
23795 Use output_all_cfis.
23796 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
23797
23798 2011-04-13 Nick Clifton <nickc@redhat.com>
23799
23800 * config/rx/rx.md (movmemsi): Do not use this pattern when
23801 volatile pointers are involved.
23802
23803 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
23804
23805 * config/i386/sse.md (pinsrbits): Remove.
23806 (sse2_packsswb): Merge with *avx_packsswb.
23807 (sse2_packssdw): Merge with *avx_packssdw.
23808 (sse2_packuswb): Merge with *avx_packuswb.
23809 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
23810 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
23811 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
23812 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
23813 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
23814 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
23815 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
23816 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
23817 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
23818 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
23819 (sse2_loadld): Merge with *avx_loadld.
23820 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
23821 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
23822 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
23823 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
23824 (vec_concatv2di): Merge with *vec_concatv2di_avx.
23825
23826 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
23827
23828 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
23829 calling TREE_CHAIN.
23830 * print-tree.c (print_node): Likewise.
23831 * tree-inline.c (copy_tree_r): Likewise.
23832 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
23833 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
23834 instead of TS_COMMON.
23835 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
23836 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
23837 (copy_node_stat): Zero TREE_CHAIN only if necessary.
23838 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
23839 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
23840 ...and these...
23841 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
23842 * tree.h: ...here.
23843 (TREE_CHAIN): Check for a TS_COMMON structure.
23844 (TREE_TYPE): Check for a TS_TYPED structure.
23845
23846 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
23847
23848 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
23849 cgraph_get_create_node instead of cgraph_node.
23850
23851 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23852
23853 * c-parser.c (c_parser_initelt): Updated call to
23854 objc_build_message_expr.
23855 (c_parser_postfix_expression): Likewise.
23856
23857 2011-04-12 Kai Tietz <ktietz@redhat.com>
23858
23859 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
23860 MASK_MS_BITFIELD_LAYOUT bit.
23861
23862 2011-04-12 Jakub Jelinek <jakub@redhat.com>
23863
23864 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
23865 assert it is always true.
23866 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
23867 moves.
23868
23869 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23870
23871 * c-parser.c (c_lex_one_token): Rewritten conditional used when
23872 compiling Objective-C to be more efficient.
23873
23874 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
23875
23876 * opts-common.c (decode_cmdline_options_to_array): Remove variable
23877 argv_copied.
23878
23879 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23880
23881 * recog.h, genoutput.c, optabs.c: Revert last patch.
23882
23883 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23884
23885 PR target/48090
23886 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
23887
23888 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23889
23890 * recog.h (insn_operand_data): Add an "allows_mem" field.
23891 * genoutput.c (output_operand_data): Initialize it.
23892 * optabs.c (maybe_legitimize_operand_same_code): New function.
23893 (maybe_legitimize_operand): Use it when matching the original
23894 op->value.
23895
23896 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23897
23898 * genpreds.c (process_define_predicate): Move most processing
23899 to gensupport.c. Continue to validate the expression.
23900 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
23901 (process_define_predicate): Move processing to gensupport.c.
23902 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
23903 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
23904 (compute_predicate_codes): Moved from genrecog.c. Add lineno
23905 argument.
23906 (valid_predicate_name_p): New function, split out from old
23907 genpreds.c:process_define_predicate.
23908 (process_define_predicate): New function, combining code from
23909 old genpreds.c and genrecog.c functions.
23910 (process_rtx): Call it for DEFINE_PREDICATE and
23911 DEFINE_SPECIAL_PREDICATE.
23912
23913 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23914
23915 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
23916 size of a '%A' memory reference.
23917 (T_DREG, T_QREG): New neon_builtin_type_bits.
23918 (arm_init_neon_builtins): Assert that the load and store operands
23919 are neon_struct_operands.
23920 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
23921 (NEON_ARG_MEMORY): New builtin_arg.
23922 (neon_dereference_pointer): New function.
23923 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
23924 Handle NEON_ARG_MEMORY.
23925 (arm_expand_neon_builtin): Update after above interface changes.
23926 Use NEON_ARG_MEMORY for loads and stores.
23927 * config/arm/predicates.md (neon_struct_operand): New predicate.
23928 * config/arm/iterators.md (V_two_elem): Tweak formatting.
23929 (V_three_elem): Use BLKmode for accesses that have no associated mode.
23930 (V_four_elem): Tweak formatting.
23931 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
23932 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
23933 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
23934 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
23935 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
23936 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
23937 (neon_vst4<mode>): Replace pointer operand with a memory operand.
23938 Use %A in the output template.
23939 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
23940 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
23941 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
23942 the width of the memory access. Remove post-increment.
23943 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
23944
23945 2011-04-12 Nick Clifton <nickc@redhat.com>
23946
23947 * config/v850/v850.c (expand_prologue): Do not use the CALLT
23948 instruction for interrupt handlers if the target is the basic V850
23949 architecture.
23950 (expand_epilogue): Likewise.
23951
23952 2011-04-12 Jakub Jelinek <jakub@redhat.com>
23953
23954 PR rtl-optimization/48549
23955 * combine.c (propagate_for_debug): Also stop after BB_END of
23956 this_basic_block. Process LAST and just stop processing after it.
23957 (combine_instructions): If last_combined_insn has been deleted,
23958 set last_combined_insn to its PREV_INSN.
23959
23960 2011-04-12 Richard Guenther <rguenther@suse.de>
23961
23962 PR tree-optimization/46076
23963 * gimple.h (struct gimple_statement_call): Add fntype field.
23964 (gimple_call_fntype): Adjust.
23965 (gimple_call_set_fntype): New function.
23966 * gimple.c (gimple_build_call_1): Set the call function type.
23967 * gimplify.c (gimplify_call_expr): Preserve the function
23968 type the frontend used for the call.
23969 (gimplify_modify_expr): Likewise.
23970 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
23971 function type.
23972 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
23973 function type.
23974 * tree-ssa.c (useless_type_conversion_p): Function pointer
23975 conversions are useless.
23976
23977 2011-04-12 Martin Jambor <mjambor@suse.cz>
23978
23979 * cgraph.h (cgraph_node): Remove function declaration.
23980 (cgraph_create_node): Declare.
23981 (cgraph_get_create_node): Likewise.
23982 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
23983 Updated all callers.
23984 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
23985 the decl does not already exist. Call cgraph_get_create_node instead
23986 of cgraph_node.
23987 (cgraph_get_create_node): New function.
23988 (cgraph_same_body_alias): Update comment.
23989 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
23990 assert it does not return NULL.
23991 (cgraph_update_edges_for_call_stmt): Likewise.
23992 (cgraph_clone_edge): Likewise.
23993 (cgraph_create_virtual_clone): Likewise.
23994 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
23995 instead of cgraph_node.
23996 (cgraph_add_new_function): Call cgraph_create_node or
23997 cgraph_get_create_node instead of cgraph_node.
23998 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
23999 instead of cgraph_node.
24000 (record_eh_tables): Likewise.
24001 (mark_address): Likewise.
24002 (mark_load): Likewise.
24003 (build_cgraph_edges): Call cgraph_get_create_node instead
24004 of cgraph_node.
24005 (rebuild_cgraph_edges): Likewise.
24006 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
24007 instead of cgraph_node.
24008 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
24009 cgraph_node.
24010 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
24011 cgraph_create_node instead of cgraph_node.
24012 * c-decl.c (finish_function): Call cgraph_get_create_node instead
24013 of cgraph_node.
24014 * lto-cgraph.c (input_node): Likewise.
24015 * lto-streamer-in.c (input_function): Likewise.
24016 * varasm.c (mark_decl_referenced): Likewise.
24017 (assemble_alias): Likewise.
24018
24019 2011-04-12 Martin Jambor <mjambor@suse.cz>
24020
24021 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
24022 instead of cgraph_node and assert it does not return NULL.
24023 * lto-streamer-in.c (lto_read_body): Likewise.
24024 * omp-low.c (new_omp_context): Likewise.
24025 (create_task_copyfn): Likewise.
24026 * tree-emutls.c (lower_emutls_function_body): Likewise.
24027 * matrix-reorg.c (transform_allocation_sites): Likewise.
24028
24029 2011-04-12 Jakub Jelinek <jakub@redhat.com>
24030
24031 PR c/48552
24032 * c-typeck.c (build_asm_expr): Error out on attempts to use
24033 void type outputs or inputs for constraints that allow reg or
24034 don't allow memory.
24035
24036 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
24037 Richard Earnshaw <rearnsha@arm.com>
24038
24039 PR target/48250
24040 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
24041 to use sign-magnitude offsets. Reject unsupported unaligned
24042 cases. Add detailed description in comments.
24043 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
24044 condition from TARGET_32BIT to TARGET_ARM.
24045
24046 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
24047
24048 * tree.h (struct typed_tree): New.
24049 (struct tree_common): Include it instead of tree_base.
24050 (TREE_TYPE): Update for new location of type field.
24051 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
24052 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
24053 (union tree_node): Add typed field.
24054 * treestruct.def (TS_TYPED): New.
24055 * lto-streamer.c (check_handled_ts_structures): Handle it.
24056 * tree.c (MARK_TS_TYPED): New macro.
24057 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
24058
24059 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
24060
24061 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
24062 (force_nonfallthru): Do not alter the loop nest if no basic block
24063 was created.
24064
24065 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
24066
24067 * config/i386/sse.md (VI): New mode iterator.
24068 (SSEMODEI): Remove.
24069 (AVX256MODEI): Ditto.
24070 (AVXMODEF4P): Ditto.
24071 (avxvecpsmode): Ditto.
24072 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
24073 (sse2_andnot<mode>3): New expander.
24074 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
24075 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
24076 (<any_logic:code><mode>3): Use VI mode iterator.
24077 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
24078 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
24079 (*andnottf3): Handle AVX three-operand constraints.
24080 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
24081
24082 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24083 Robert Millan <rmh@gnu.org>
24084
24085 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
24086 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
24087 GNU_USER_DYNAMIC_LINKER64): Define.
24088 (REG_NAME): Don't undefine.
24089 (MD_UNWIND_SUPPORT): Undefine.
24090 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
24091 (REG_NAME): Don't undefine.
24092 (MD_UNWIND_SUPPORT): Undefine.
24093 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
24094
24095 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24096
24097 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
24098 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
24099
24100 2011-04-11 Xinliang David Li <davidxl@google.com>
24101
24102 * value-profile.c (check_ic_target): New function.
24103 (gimple_ic_transform): Sanity check indirect call target.
24104 * gimple-low.c (gimple_check_call_args): Interface change.
24105 (gimple_check_call_matching_types): New function.
24106 * tree-inline.c (tree_can_inline_p): Call new function.
24107
24108 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
24109
24110 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
24111 tree-pretty-print.h & realmpfr.h.
24112
24113 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
24114
24115 PR middle-end/48464
24116 * ira.c (setup_pressure_classes): Fix typo in loop condition.
24117 (setup_allocno_and_important_classes): Ditto.
24118
24119 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24120
24121 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
24122 GNU_USER_DYNAMIC_LINKER.
24123 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
24124 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24125 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
24126 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24127 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24128 GNU_USER_TARGET_OS_CPP_BUILTINS.
24129 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
24130 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24131 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24132 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24133 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
24134 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24135 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24136 GNU_USER_TARGET_OS_CPP_BUILTINS.
24137 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24138 GNU_USER_DYNAMIC_LINKER.
24139 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24140 GNU_USER_TARGET_OS_CPP_BUILTINS.
24141 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
24142 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24143 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
24144 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24145 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
24146 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
24147 GNU_USER_DYNAMIC_LINKER64): Remove.
24148 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
24149 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24150 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24151 GNU_USER_DYNAMIC_LINKER.
24152 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24153 GNU_USER_TARGET_OS_CPP_BUILTINS.
24154 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24155 GNU_USER_TARGET_OS_CPP_BUILTINS.
24156 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
24157 to GNU_USER_TARGET_OS_CPP_BUILTINS.
24158 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24159 GNU_USER_TARGET_OS_CPP_BUILTINS.
24160 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
24161 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
24162 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
24163 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
24164 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24165 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24166 GNU_USER_DYNAMIC_LINKER.
24167 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24168 GNU_USER_TARGET_OS_CPP_BUILTINS.
24169 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
24170 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24171 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24172 GNU_USER_DYNAMIC_LINKER.
24173 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24174 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24175 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
24176 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24177 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24178 GNU_USER_DYNAMIC_LINKER.
24179 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
24180 GNU_USER_DYNAMIC_LINKERN32.
24181 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
24182 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
24183 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
24184 GNU_USER_DYNAMIC_LINKER32.
24185 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
24186 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24187 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24188 GNU_USER_DYNAMIC_LINKER.
24189 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24190 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24191 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
24192 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24193 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24194 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
24195 GNU_USER_DYNAMIC_LINKER32.
24196 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
24197 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
24198 GNU_USER_DYNAMIC_LINKER.
24199 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
24200 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24201 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
24202 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
24203 GNU_USER_DYNAMIC_LINKER64.
24204 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
24205 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24206 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24207 GNU_USER_DYNAMIC_LINKER.
24208 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
24209 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24210 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24211 GNU_USER_DYNAMIC_LINKER.
24212 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
24213 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24214 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
24215 GNU_USER_DYNAMIC_LINKER32.
24216 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
24217 GNU_USER_DYNAMIC_LINKER64.
24218 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
24219 GNU_USER_DYNAMIC_LINKER64.
24220 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
24221 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24222 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
24223 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24224 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24225
24226 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24227
24228 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
24229 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
24230 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
24231 GNU_USER_DYNAMIC_LINKER.
24232 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
24233 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
24234 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
24235 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
24236 GNU_USER_DYNAMIC_LINKER64.
24237 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
24238 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
24239 GNU_USER_LINK_EMULATION.
24240 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
24241 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
24242 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
24243 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
24244 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
24245 CPP_SPEC, CC1_SPEC): Remove.
24246 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
24247 (GNU_USER_DYNAMIC_LINKER): Define.
24248 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
24249 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
24250 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
24251 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
24252 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
24253 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
24254 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
24255 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
24256 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
24257 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
24258 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
24259 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
24260 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
24261 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
24262 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
24263 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
24264 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24265 GNU_USER_DYNAMIC_LINKER.
24266 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24267 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24268 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24269 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24270 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24271 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24272 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
24273 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
24274 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
24275 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
24276
24277 2011-04-11 Kai Tietz <ktietz@redhat.com>
24278
24279 PR target/9601
24280 PR target/11772
24281 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
24282 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
24283 comment.
24284 (ix86_is_msabi_thiscall): Removed.
24285 (ix86_is_type_thiscall): Likewise.
24286 (ix86_get_callcvt): New function.
24287 (ix86_comp_type_attributes): Simplify check.
24288 (ix86_function_regparm): Use ix86_get_callcvt for calling
24289 convention attribute checks.
24290 (ix86_return_pops_args): Likewise.
24291 (ix86_static_chain): Likewise.
24292 (x86_this_parameter): Likewise.
24293 (x86_output_mi_thunk): Likewise.
24294 (ix86_function_type_abi): Optimize check for types without attributes.
24295 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
24296 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
24297 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
24298 by flag-values.
24299 (IX86_BASE_CALLCVT): Helper macro.
24300 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
24301 Use ix86_get_callcvt for calling convention attribute checks and avoid
24302 symbol-decoration for stdcall in TARGET_RTD case.
24303 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
24304 Likewise.
24305 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
24306 for declaration.
24307
24308 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
24309
24310 * config/i386/sse.md (VI_128): New mode iterator.
24311 (VI12_128): Rename from SSEMODE12.
24312 (VI14_128): Rename from SSEMODE14.
24313 (VI124_128): New mode iterator.
24314 (VI24_128): Rename from SSEMODE248.
24315 (VI248_128): Rename from SSEMODE248.
24316 (SSEMODE124C8): Remove.
24317 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
24318 (*sse2_<plusminus_insn><mode>3): Merge with
24319 *avx_<plusminus_insn><mode>3.
24320 (*mulv8hi3): Merge with *avx_mulv8hi3.
24321 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
24322 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
24323 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
24324 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
24325 (ashr<mode>3): Merge with *avx_ashr<mode>3.
24326 (lshr<mode>3): Merge with *avx_lshr<mode>3.
24327 (ashl<mode>3): Merge with *avx_ashl<mode>3.
24328 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
24329 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
24330 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24331 (*<smaxmin:code>v8hi3): Ditto.
24332 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
24333 (*<smaxmin:code>v16qi3): Ditto.
24334 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
24335 (*sse2_eq<mode>3): Ditto.
24336 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
24337 (*sse2_gt<mode>3): Ditto.
24338 (vcondv2di): Split out of vcond<mode>.
24339 (vconduv2di): Split out of vcondu<mode>.
24340
24341 2011-04-11 Richard Guenther <rguenther@suse.de>
24342
24343 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
24344 before calling tree_low_cst.
24345
24346 2011-04-11 Richard Guenther <rguenther@suse.de>
24347
24348 * stor-layout.c (layout_type): Compute all array index size operations
24349 in the original type.
24350 (initialize_sizetypes): Add comment.
24351 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
24352
24353 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24354
24355 * common.opt (Tbss=, Tdata=, Ttext=): New options.
24356
24357 2011-04-11 Martin Jambor <mjambor@suse.cz>
24358
24359 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
24360 of cgraph_node, handle NULL return value.
24361 (cgraph_global_info): Likewise.
24362 (cgraph_rtl_info): Likewise.
24363 * tree-inline.c (estimate_num_insns): Likewise.
24364 * gimplify.c (unshare_body): Likewise.
24365 (unvisit_body): Likewise.
24366 (gimplify_body): Likewise.
24367 * predict.c (optimize_function_for_size_p): Likewise.
24368 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24369 (call_may_clobber_ref_p_1): Likewise.
24370 * varasm.c (function_section_1): Likewise.
24371 (assemble_start_function): Likewise.
24372
24373 2011-04-11 Martin Jambor <mjambor@suse.cz>
24374
24375 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
24376 of cgraph_node.
24377 * final.c (rest_of_clean_state): Likewise.
24378 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
24379 * passes.c (pass_init_dump_file): Likewise.
24380 (execute_all_ipa_transforms): Likewise.
24381 (function_called_by_processed_nodes_p): Likewise.
24382 * predict.c (maybe_hot_frequency_p): Likewise.
24383 (probably_never_executed_bb_p): Likewise.
24384 (compute_function_frequency): Likewise.
24385 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
24386 (unnest_nesting_tree_1): Likewise.
24387 (lower_nested_functions): Likewise.
24388 * tree-optimize.c (execute_fixup_cfg): Likewise.
24389 (tree_rest_of_compilation): Likewise.
24390 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
24391 * tree-sra.c (ipa_early_sra): Likewise.
24392 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
24393 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
24394 * ipa.c (record_cdtor_fn): Likewise.
24395 * ipa-inline.c (cgraph_early_inlining): Likewise.
24396 (compute_inline_parameters_for_current): Likewise.
24397 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
24398 * ipa-pure-const.c (local_pure_const): Likewise.
24399 * ipa-split.c (split_function): Likewise.
24400 (execute_split_functions): Likewise.
24401 * cgraphbuild.c (build_cgraph_edges): Likewise.
24402 (rebuild_cgraph_edges): Likewise.
24403 (cgraph_rebuild_references): Likewise.
24404 (remove_cgraph_callee_edges): Likewise.
24405 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
24406 (verify_cgraph_node): Likewise.
24407 (cgraph_analyze_functions): Likewise.
24408 (cgraph_preserve_function_body_p): Likewise.
24409 (save_inline_function_body): Likewise.
24410 (save_inline_function_body): Likewise.
24411 * tree-inline.c (copy_bb): Likewise.
24412 (optimize_inline_calls): Likewise.
24413
24414 2011-04-11 Martin Jambor <mjambor@suse.cz>
24415
24416 PR tree-optimization/48195
24417 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
24418 ipa_check_create_edge_args.
24419 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
24420 ipa_check_create_edge_args.
24421 * ipa-inline.c (inline_generate_summary): Do not call
24422 ipa_check_create_node_params and ipa_check_create_edge_args.
24423 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
24424 ipa_check_create_edge_args.
24425
24426 2011-04-09 Anatoly Sokolov <aesok@post.ru>
24427
24428 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
24429 instead of loop.
24430 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
24431 * function.c (record_hard_reg_sets): Likewise.
24432 * ira.c (compute_regs_asm_clobbered): Likewise.
24433 * sched-deps.c (sched_analyze_1): Likewise.
24434 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
24435
24436 2011-04-09 Xinliang David Li <davidxl@google.com>
24437
24438 PR tree-optimization/PR48484
24439 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
24440 has_valid_pred lazily
24441
24442 2011-04-09 Duncan Sands <baldrick@free.fr>
24443
24444 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
24445
24446 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
24447
24448 * combine.c (combine_validate_cost): Adjust comments. Set registered
24449 cost of I0 to zero at the end, if any.
24450
24451 2011-04-08 Xinliang David Li <davidxl@google.com>
24452
24453 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
24454 to insane profile data.
24455
24456 2011-04-08 Xinliang David Li <davidxl@google.com>
24457
24458 * ipa-cp.c (ipcp_update_profiling): Correct
24459 negative scale factor due to insane profile data.
24460
24461 2011-04-08 Xinliang David Li <davidxl@google.com>
24462
24463 * final.c (dump_basic_block_info): New function.
24464 (final): Dump basic block.
24465 (final_scan_insn): Remove old dump.
24466
24467 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
24468
24469 PR target/47829
24470 * config.gcc (i386-*-freebsd): Disable unwind table generation for
24471 crtbegin/crtend.
24472
24473 2011-04-08 Michael Matz <matz@suse.de>
24474
24475 PR middle-end/48389
24476 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
24477 functions.
24478 (rebuild_jump_labels): Call rebuild_jump_labels_1.
24479 * rtl.h (rebuild_jump_labels_chain): Declare.
24480 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
24481 insns inserted on edges.
24482
24483 2011-04-08 Joseph Myers <joseph@codesourcery.com>
24484
24485 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
24486 * config/arm/arm-arches.def: New.
24487 * config/arm/arm-opts.h: New.
24488 * config/arm/genopt.sh: New.
24489 * config/arm/arm-tables.opt: New (generated).
24490 * config/arm/arm.c (arm_handle_option, arm_target_help,
24491 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
24492 (all_architectures): Get most table contents from arm-arches.def.
24493 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
24494 arm_selected_tune here.
24495 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
24496 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
24497 (march=, mcpu=, mtune=): Use Enum and Var.
24498 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
24499 (arm.o): Update dependencies.
24500
24501 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
24502
24503 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
24504 of header_file.
24505 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
24506 (write_typed_alloc_defns): Likewise.
24507 (main): Calls write_typed_alloc_defns with output_header.
24508
24509 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
24510
24511 PR inline-asm/48435
24512 * ira-color.c (setup_profitable_hard_regs): Add comments.
24513 Don't take prohibited hard regs into account.
24514 (setup_conflict_profitable_regs): Rename to
24515 get_conflict_profitable_regs.
24516 (check_hard_reg_p): Check prohibited hard regs.
24517
24518 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
24519
24520 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
24521 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
24522 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
24523
24524 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24525
24526 PR target/48366
24527 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
24528 move from floating point to shift amount register.
24529 (emit_move_sequence): Remove secondary reload support for floating
24530 point to shift amount amount register copies.
24531 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
24532 amount register copies.
24533 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
24534 register, return false if mode isn't a scalar integer mode.
24535 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
24536
24537 2011-04-08 Richard Guenther <rguenther@suse.de>
24538
24539 * gimple.c (gimple_call_flags): Remove kludge.
24540
24541 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24542
24543 * sel-sched.c (sel_region_init): Move call to
24544 sel_setup_region_sched_flags after setup_current_loop_nest.
24545
24546 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
24547
24548 PR rtl-optimization/48272
24549 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
24550 init_insn_reg_pressure_info. Adjust a caller.
24551 * sched-int.h (init_insn_reg_pressure_info): Declare.
24552 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
24553 when sched-pressure is enabled.
24554
24555 2011-04-08 Richard Guenther <rguenther@suse.de>
24556
24557 * gimple.c (gimple_set_modified): Do not queue calls to
24558 MODIFIED_NORETURN_CALLS here ...
24559 * tree-ssa-operands.c (update_stmt_operands): ... but here.
24560
24561 2011-04-08 Richard Guenther <rguenther@suse.de>
24562
24563 PR lto/48467
24564 * toplev.c (lang_dependent_init): Do not open asm_out_file
24565 in WPA mode, nor perform debug machinery initialization.
24566 (finalize): Do not unlink asm_out_file in WPA mode.
24567
24568 2011-04-08 Richard Guenther <rguenther@suse.de>
24569
24570 * gimple.h (gimple_call_fntype): New function.
24571 (gimple_call_return_type): Use it.
24572 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
24573 * gimple-low.c (gimple_check_call_args): Likewise.
24574 * gimple.c (gimple_call_flags): Likewise.
24575 (gimple_call_arg_flags): Likewise.
24576 (gimple_call_return_flags): Likewise.
24577 * tree-cfg.c (verify_gimple_call): Likewise.
24578 (do_warn_unused_result): Likewise.
24579 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
24580 * value-prof.c (gimple_ic_transform): Fix fndecl check.
24581
24582 2011-04-08 Dmitry Melnik <dm@ispras.ru>
24583
24584 PR rtl-optimization/48235
24585 * sel-sched.c (code_motion_process_successors): Recompute the last
24586 insn in basic block if control flow changed.
24587 (code_motion_path_driver): Ditto. Recompute the first insn as well.
24588 Update condition for ilist_remove.
24589
24590 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24591
24592 PR rtl-optimization/48302
24593 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
24594 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
24595 it to record added preheader blocks.
24596 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
24597 on to sel_add_loop_preheaders.
24598 (sel_region_init): Move call to setup_current_loop_nest after
24599 sel_init_bbs.
24600
24601 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24602
24603 PR target/48273
24604 * cfgloop.h (loop_has_exit_edges): New helper.
24605 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
24606 non-clonable.
24607 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
24608 that have no exit edges.
24609
24610 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24611
24612 PR rtl-optimization/48442
24613 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
24614 all callers. Adjust assert.
24615
24616 2011-04-08 Jakub Jelinek <jakub@redhat.com>
24617
24618 PR tree-optimization/48377
24619 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
24620 is_packed to true even for types with smaller TYPE_ALIGN than
24621 TYPE_SIZE.
24622
24623 2011-04-08 Richard Guenther <rguenther@suse.de>
24624
24625 PR bootstrap/48513
24626 * doc/tm.texi: Re-generate.
24627
24628 2011-04-08 Wei Guozhi <carrot@google.com>
24629
24630 PR target/47855
24631 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
24632 * config/arm/arm.c (arm_attr_length_push_multi): New function.
24633 * config/arm/arm.md (*push_multi): Change the length computation to
24634 call a C function.
24635
24636 2011-04-08 Anatoly Sokolov <aesok@post.ru>
24637
24638 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
24639 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
24640 * doc/tm.texi: Regenerate.
24641 * system.h (ASM_OUTPUT_BSS): Poison.
24642 * varasm.c (asm_output_bss): Remove function.
24643 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
24644
24645 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
24646 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
24647 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
24648 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24649 Likewise.
24650 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24651 Likewise.
24652 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24653 Likewise.
24654 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
24655
24656 2011-04-07 Joseph Myers <joseph@codesourcery.com>
24657
24658 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
24659 EnumValue lines.
24660
24661 2011-04-07 Joseph Myers <joseph@codesourcery.com>
24662
24663 * config/m68k/m68k.c (m68k_handle_option): Don't handle
24664 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
24665 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
24666 OPT_mcpu32.
24667 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
24668 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
24669 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
24670 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
24671 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
24672 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
24673 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
24674 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
24675 options. Don't map other m68k options manually. Don't handle
24676 old-style options as canonical.
24677 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
24678 * doc/install.texi (m68k-*-*): Document binutils version requirement.
24679
24680 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
24681
24682 * basic-block.h (force_nonfallthru): Move to...
24683 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
24684 (force_nonfallthru): ...here.
24685 * cfghooks.c (force_nonfallthru): New function.
24686 * cfgrtl.c (force_nonfallthru): Rename into...
24687 (rtl_force_nonfallthru): ...this.
24688 (commit_one_edge_insertion): Do not set AUX field.
24689 (commit_edge_insertions): Do not discover new basic blocks.
24690 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
24691 (cfg_layout_rtl_cfg_hooks): Likewise.
24692 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
24693 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
24694 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
24695
24696 2011-04-07 Anatoly Sokolov <aesok@post.ru>
24697
24698 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24699 Remove macros.
24700
24701 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
24702
24703 * config/i386/sse.md: Update copyright year.
24704 (avxcvtvecmode): Remove.
24705 (sse_movhlps): Merge with *avx_movhlps.
24706 (sse_movlhps): Merge with *avx_movlhps.
24707 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
24708 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
24709 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
24710 (sse_loadhps): Merge with *avx_loadhps.
24711 (sse_storelps): Merge with *avx_storelps.
24712 (sse_loadlps): Merge with *avx_loadlps.
24713 (sse_movss): Merge with *avx_movss.
24714 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
24715 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
24716 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
24717 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
24718 (vec_set<mode>_0): Ditto.
24719 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
24720 (sse4_1_insertps): Merge with *avx_insertps.
24721 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
24722 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
24723 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
24724 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
24725 (sse2_storehpd): Merge with *avx_storehpd.
24726 (sse2_loadhpd): Merge with *avx_loadhpd.
24727 (sse2_loadlpd): Merge with *avx_loadlpd.
24728 (sse2_movsd): Merge with *avx_movsd.
24729 (*vec_concatv2df): Merge with *vec_concatv2df.
24730
24731 2011-04-07 Jakub Jelinek <jakub@redhat.com>
24732
24733 PR debug/48343
24734 * combine.c (combine_instructions): Add last_combined_insn,
24735 update it if insn is after it, pass it to all try_combine calls.
24736 (try_combine): Add last_combined_insn parameter, pass it instead of
24737 i3 to propagate_for_debug.
24738
24739 2011-04-07 Nick Clifton <nickc@redhat.com>
24740
24741 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
24742 to handle MDR <-> data register transfers.
24743 (movhi_internal): Likewise.
24744
24745 2011-04-07 Alan Modra <amodra@gmail.com>
24746
24747 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
24748 previous stack info.
24749
24750 2011-04-07 Tom de Vries <tom@codesourcery.com>
24751
24752 PR target/43920
24753 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
24754 flow_find_cross_jump. Swap variables to implement backward replacement.
24755 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
24756
24757 2011-04-07 Tom de Vries <tom@codesourcery.com>
24758
24759 PR target/43920
24760 * cfgcleanup.c (walk_to_nondebug_insn): New function.
24761 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
24762 and bb2.
24763 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
24764 src1 or src2. Redirect edges to the last basic block. Update
24765 frequency and count on multiple basic blocks in case of fallthru.
24766
24767 2011-04-07 Tom de Vries <tom@codesourcery.com>
24768
24769 PR target/43920
24770 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
24771 function.
24772 (old_insns_match_p): Change return type. Replace return false/true
24773 with return dir_none/dir_both. Use can_replace_by.
24774 (flow_find_cross_jump): Add dir_p parameter. Init replacement
24775 direction from dir_p. Register replacement direction in dir, last_dir
24776 and afterlast_dir. Handle new return type of old_insns_match_p using
24777 merge_dir. Return replacement direction in dir_p.
24778 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
24779 return type of old_insns_match_p.
24780 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
24781 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
24782 flow_find_cross_jump.
24783 * basic-block.h (enum replace_direction): New type.
24784 (flow_find_cross_jump): Add parameter to declaration.
24785
24786 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
24787
24788 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
24789 (AVXMODEDCVTPS2DQ): Ditto.
24790 (VEC_FLOAT_MODE): Ditto.
24791 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
24792 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
24793 (<any_logic:code><mode>3): Use VF mode iterator.
24794 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
24795 Use VF mode iterator.
24796 (copysign<mode>3): Use VF mode iterator.
24797 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
24798 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
24799 (*<any_logic:code><MODEF:mode>3): Merge with
24800 *avx_<any_logic:code><MODEF:mode>3.
24801 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
24802 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
24803 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
24804 (avx_cvtdq2ps<avxmodesuffix>): Remove.
24805 (sse2_cvtdq2ps): Use %v modifier.
24806 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
24807 (avx_cvtps2dq<avxmodesuffix>): Remove.
24808 (sse2_cvtps2dq): Use %v modifier.
24809 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
24810 (avx_cvttps2dq<avxmodesuffix>): Remove.
24811 (sse2_cvttps2dq): Use %v modifier.
24812 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
24813 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
24814 (sse2_cvtsd2siq): Fix insn template.
24815 (sse2_cvtsd2siq_2): Ditto.
24816 (sse2_cvttsd2siq): Ditto.
24817 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
24818 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
24819
24820 2011-04-06 Joseph Myers <joseph@codesourcery.com>
24821
24822 * gcov-io.c: Use GCC Runtime Library Exception.
24823
24824 2011-04-06 Jakub Jelinek <jakub@redhat.com>
24825
24826 PR debug/48466
24827 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
24828 as base_reg whatever register reg has been eliminated to, instead
24829 of hardcoding STACK_POINTER_REGNUM.
24830
24831 2011-04-06 Joseph Myers <joseph@codesourcery.com>
24832
24833 * doc/tm.texi.in: Document C target hooks as separate from general
24834 target hooks.
24835 * doc/tm.texi: Regenerate.
24836 * genhooks.c (struct hook_desc): Add docname field.
24837 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
24838 docname field.
24839 (hook_array): Include c-target.def.
24840 (emit_documentation): Use docname field in output.
24841 (emit_init_macros): Take docname argument. Only emit definitions
24842 for hooks matching docname.
24843 (main): Expect additional arguments in all cases. Pass argument
24844 to emit_init_macros.
24845 * target.def: Move initial macro definitions and comments to
24846 target-hooks-macros.h.
24847 (gcc_targetcm): Move to c-family/c-target.def.
24848 * target.h (targetcm): Move declaration to c-family/c-target.h.
24849 * targhooks.c (default_handle_c_option): Move to
24850 c-family/c-opts.c.
24851 * targhooks.h (default_handle_c_option): Move declaration to
24852 c-family/c-common.h.
24853 * target-hooks-macros.h: New file.
24854 * config.gcc (target_has_targetcm): Define and use to add to
24855 c_target_objs and cxx_target_objs.
24856 * config/default-c.c: New file.
24857 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
24858 of target.h and target-def.h.
24859 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
24860 (darwin_objc_construct_string, darwin_cfstring_ref_p,
24861 darwin_check_cfstring_format_arg): Make static.
24862 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24863 TARGET_STRING_OBJECT_REF_TYPE_P,
24864 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
24865 * config/darwin-protos.h (darwin_objc_construct_string,
24866 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
24867 declare.
24868 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24869 TARGET_STRING_OBJECT_REF_TYPE_P,
24870 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
24871 * config/t-darwin (darwin-c.o): Update dependencies.
24872 * system.h (TARGET_HAS_TARGETCM): Poison.
24873 * Makefile.in (TARGET_H): Update.
24874 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
24875 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
24876 (default-c.o): New target.
24877 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
24878 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
24879 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
24880 c-target.def.
24881 (build/genhooks.o): Update dependencies.
24882
24883 2011-04-06 Richard Guenther <rguenther@suse.de>
24884
24885 * ipa-inline.c (enum inlining_mode): Remove.
24886 (cgraph_flatten): Use some other token.
24887 (cgraph_edge_early_inlinable_p): New function, split out from ...
24888 (cgraph_perform_always_inlining): New function, split out from ...
24889 (cgraph_decide_inlining_incrementally): ... here.
24890 (cgraph_mark_inline_edge): Adjust.
24891 (cgraph_early_inlining): Re-structure.
24892 (pass_early_inline): Require SSA form.
24893
24894 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
24895 Julian Brown <julian@codesourcery.com>
24896 Mark Shinwell <shinwell@codesourcery.com>
24897
24898 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
24899 LO_REGS only for Thumb-1.
24900 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
24901 be used in short instructions when optimising for size on Thumb-2.
24902
24903 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
24904
24905 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
24906 associated with user returns to be preserved.
24907
24908 2011-04-06 Tristan Gingold <gingold@adacore.com>
24909
24910 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
24911 symbol_queue_size, DBXOUT_DECR_NESTING,
24912 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
24913 if XCOFF_DEBUGGING_INFO.
24914
24915 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
24916
24917 * config/i386/i386.md (attribute isa): New.
24918 (attribute enabled): New.
24919 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
24920 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
24921 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
24922 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
24923 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
24924 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24925 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
24926 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
24927
24928 * config/i386/sse.md (VF): New mode iterator.
24929 (VF1): Ditto.
24930 (VF2): Ditto.
24931 (VF_128): Ditto.
24932 (SSEMODEF4): Remove.
24933 (attribute sse): Handle V8SF and V4DF modes.
24934 (<absneg:code><mode>2): Use VF mode iterator.
24935 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
24936 mode iterator.
24937 (<plusminus_insn><mode>3): Use VF mode iterator.
24938 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
24939 Use VF mode iterator.
24940 (<sse>_vm<plusminus_insn><mode>3): Merge with
24941 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
24942 (mul<mode>3): Use VF mode iterator.
24943 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
24944 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
24945 mode iterator.
24946 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
24947 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
24948 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
24949 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
24950 mode iterator.
24951 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
24952 Use VF1 mode iterator.
24953 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
24954 (sqrt<VF2:mode>2): New expander.
24955 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
24956 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
24957 and sqrtv2df2. Use VF mode iterator.
24958 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
24959 mode iterator.
24960 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
24961 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
24962 Use VF1 mode iterator.
24963 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
24964 (<smaxmin:code><mode>3): Use VF mode iterator.
24965 (*<smaxmin:code><mode>3_finite): Merge with
24966 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
24967 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24968 (<sse>_vm<smaxmin:code><mode>2): Merge with
24969 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
24970 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
24971 mode iterator.
24972 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
24973 mode iterator.
24974 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
24975 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
24976 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
24977 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
24978 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
24979 VF mode iterator.
24980 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
24981 Use VF_128 mode iterator.
24982 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
24983 mode iterator.
24984 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
24985 VF_128 mode iterator.
24986 (vcond<mode>): Use VF mode iterator.
24987 * config/i386/predicates.md (sse_comparison_operator): Merge with
24988 avx_comparison_float_operator. Do not declare as special_predicate.
24989 * config/i386/i386.c (struct builtin_description): Update for renamed
24990 compare patterns.
24991 (ix86_expand_args_builtin): Ditto.
24992 (ix86_expand_sse_compare_mask): Ditto.
24993
24994 2011-04-06 Richard Guenther <rguenther@suse.de>
24995
24996 * tree-inline.c (estimate_num_insns): For calls simply account
24997 for all passed arguments and a used return value.
24998
24999 2011-04-06 Richard Guenther <rguenther@suse.de>
25000
25001 PR tree-optimization/47663
25002 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
25003 call_stmt_time fields.
25004 (cgraph_edge_inlinable_p): Declare.
25005 (cgraph_edge_recursive_p): New inline function.
25006 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
25007 (cgraph_clone_edge): Copy it.
25008 * ipa-inline.c (cgraph_estimate_edge_time): New function.
25009 Account for call stmt time.
25010 (cgraph_estimate_time_after_inlining): Take edge argument.
25011 (cgraph_estimate_edge_growth): Account call stmt size.
25012 (cgraph_estimate_size_after_inlining): Take edge argument.
25013 (cgraph_mark_inline_edge): Adjust.
25014 (cgraph_check_inline_limits): Likewise.
25015 (cgraph_recursive_inlining_p): Remove.
25016 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
25017 (cgraph_decide_recursive_inlining): Take edge argument and
25018 adjust.
25019 (cgraph_decide_inlining_of_small_functions): Do not avoid
25020 diags for recursive inlining here.
25021 (cgraph_flatten): Adjust.
25022 (cgraph_decide_inlining_incrementally): Likewise.
25023 (estimate_function_body_sizes): Remove call cost handling.
25024 (compute_inline_parameters): Initialize caller edge call costs.
25025 (cgraph_estimate_edge_growth): New function.
25026 (cgraph_estimate_growth): Use it.
25027 (cgraph_edge_badness): Likewise.
25028 (cgraph_check_inline_limits): Take an edge argument.
25029 (cgraph_decide_inlining_of_small_functions): Adjust.
25030 (cgraph_decide_inlining): Likewise.
25031 * tree-inline.c (estimate_num_insns): Only account for call
25032 return value if it is used.
25033 (expand_call_inline): Avoid diagnostics on recursive inline
25034 functions here.
25035 * lto-cgraph.c (lto_output_edge): Output edge call costs.
25036 (input_edge): Input edge call costs.
25037
25038 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25039
25040 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
25041
25042 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
25043
25044 * doc/invoke.texi (Spec Files): Fix typo.
25045
25046 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
25047
25048 * profile.c (branch_prob): Move declaration of local variable. Remove
25049 obsolete ??? comment. Expand the location explicitly instead of using
25050 the LOCATION_FILE and LOCATION_LINE macros.
25051
25052 2011-04-06 Wei Guozhi <carrot@google.com>
25053
25054 PR target/47855
25055 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
25056 (arm_cond_branch): Likewise.
25057 (arm_cond_branch_reversed): Likewise.
25058 (arm_jump): Likewise.
25059 (push_multi): Likewise.
25060 * config/arm/constraints.md (Py): New constraint.
25061
25062 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25063
25064 PR bootstrap/48471
25065 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
25066 Move these...
25067 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
25068 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
25069 #ifdef DBX_DEBUGGING_INFO.
25070
25071 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
25072
25073 PR bootstrap/48403
25074 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
25075 if old and new states differ.
25076
25077 2011-04-05 Joseph Myers <joseph@codesourcery.com>
25078
25079 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
25080 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
25081 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
25082 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
25083 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
25084 mcfv4e): Use Alias.
25085 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
25086 ColdFire options to -mcpu= options.
25087
25088 2011-04-05 Jeff Law <law@redhat.com>
25089
25090 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
25091 check if BB is a successor of LOOP->header and return
25092 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
25093
25094 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
25095
25096 * cprop.c (struct reg_use): Remove.
25097 (reg_use_table): Make an array of RTX.
25098 (find_used_regs, constprop_register, local_cprop_pass,
25099 bypass_block): Simplify users of reg_use_table.
25100 (cprop_insn): Likewise. Iterate if copy propagation succeeded
25101 on one of the uses found by find_used_regs.
25102
25103 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25104
25105 PR bootstrap/48469
25106 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
25107 declaration.
25108
25109 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25110
25111 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
25112 as an rtx.
25113 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
25114
25115 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
25116
25117 PR middle-end/48441
25118 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
25119
25120 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25121
25122 * combine.c: Include obstack.h.
25123 (struct insn_link): Define.
25124 (uid_log_links): Adjust type.
25125 (FOR_EACH_LOG_LINK): New macro.
25126 (insn_link_obstack): Declare.
25127 (alloc_insn_link): Define.
25128 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
25129 type of link variables.
25130 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
25131 (try_combine, record_promoted_values, distribute_notes): Likewise.
25132 (distribute_links): Likewise. Tweak prototype.
25133 (clear_log_links): Delete.
25134 (adjust_for_new_dest): Call alloc_insn_link.
25135 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
25136
25137 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25138
25139 * gcse.c (modify_mem_list): Convert to an array of VECs.
25140 (canon_modify_mem_list, compute_transp): Tweak formatting.
25141 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
25142 (load_killed_in_block_p): Likewise.
25143 (record_last_mem_set_info): Likewise.
25144 (clear_modify_mem_tables): Likewise.
25145
25146 2011-04-05 Tom de Vries <tom@codesourcery.com>
25147
25148 PR middle-end/48461
25149 * function.c (emit_use_return_register_into_block): Only define if
25150 HAVE_return.
25151
25152 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
25153
25154 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
25155
25156 2011-04-05 Joseph Myers <joseph@codesourcery.com>
25157
25158 * config/rx/rx-opts.h: New.
25159 * config/rx/rx.c (rx_cpu_type): Remove.
25160 (rx_handle_option): Don't assert that global structures are in
25161 use. Access variables via opts pointer. Defer most handling of
25162 OPT_mint_register_. Use error_at.
25163 (rx_option_override): Handle deferred OPT_mint_register_ here.
25164 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
25165 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
25166 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
25167 (rx_cpu_types): New Enum and EnumValue entries.
25168 (mint-register=): Use Defer and use Var accordingly.
25169
25170 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25171
25172 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
25173 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
25174 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
25175 Move these...
25176 (debug_free_queue, debug_nesting, symbol_queue_index):
25177 ...and these...
25178 * dbxout.c: ...to here. Make static.
25179
25180 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25181
25182 * gcse.c (modify_pair): Define. Define a VEC of it.
25183 (canon_modify_mem_list): Convert to an array of VECs.
25184 (free_insn_expr_list_list): Delete.
25185 (clear_modify_mem_tables): Call VEC_free instead.
25186 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
25187 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
25188 (canon_list_insert, compute_transp): Likewise.
25189
25190 2011-04-05 Tom de Vries <tom@codesourcery.com>
25191
25192 PR target/43920
25193 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
25194 for size.
25195
25196 2011-04-05 Tom de Vries <tom@codesourcery.com>
25197
25198 PR target/43920
25199 * function.c (emit_use_return_register_into_block): New function.
25200 (thread_prologue_and_epilogue_insns): Use
25201 emit_use_return_register_into_block.
25202
25203 2011-04-05 Tom de Vries <tom@codesourcery.com>
25204
25205 PR target/43920
25206 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
25207 insn.
25208
25209 2011-04-05 Tom de Vries <tom@codesourcery.com>
25210
25211 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
25212
25213 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
25214
25215 * config/arm/arm.md (define_constants for unspec): Replace with
25216 define_c_enum.
25217 (define_constants for unspecv): Replace with define_c_enum.
25218 * config/arm/neon.md (define_constants for unspec): Replace with
25219 define_c_enum.
25220
25221 2011-04-04 Richard Henderson <rth@redhat.com>
25222
25223 PR bootstrap/48400
25224 * dwarf2out.c (output_line_info): Always emit line info from
25225 at least one section.
25226 (dwarf2out_init): Create text_section_line_info here ...
25227 (set_cur_line_info_table): ... not here.
25228
25229 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
25230
25231 PR target/48380
25232 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
25233 not called.
25234
25235 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
25236
25237 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
25238
25239 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
25240 (expr_equiv_p): Remove.
25241 (insert_set_in_table): Look at <dest, src> pair instead of expr.
25242 (hash_scan_set): Update call to insert_set_in_table.
25243 (dump_hash_table): Dump <dest, src> pair.
25244 (lookup_set): Simplify. Lookup <dest, src> pair.
25245 (compute_transp): Remove, fold heavily simplified code into...
25246 (compute_local_properties): ...here. Expect COMP and TRANSP
25247 unconditionally.
25248 (find_avail_set): Take set directly from struct expr.
25249 (find_bypass-set): Likewise.
25250 (bypass_block): Likewise.
25251 (cprop_insn): Likewise. Remove redundant INSN_P test.
25252
25253 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
25254 checks on form of COND from find_implicit_sets to here.
25255 (find_implicit_sets): Cleanup control flow. Split critical edges
25256 if it exposes implicit sets. Allocate/resize implicit_sets as
25257 necessary.
25258 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
25259 changed something. Run df_analyze after find_implicit_sets if any
25260 edges were split. Do not allocate implicit_sets here.
25261
25262 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
25263 (gcse_obstack): Renamed to cprop_obstack.
25264 (GNEW, GNEWVEC, GNEWVAR): Remove.
25265 (gmalloc): Remove.
25266 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
25267 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
25268 (gcse_alloc): Likewise, and rename to cprop_alloc.
25269 (alloc_gcse_men, free_gcse_mem): Remove.
25270 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
25271 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
25272 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
25273
25274 * cprop.c (oprs_not_set_p): Remove.
25275 (mark_set, mark_clobber): Remove.
25276 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
25277 (reg_not_set_p): New function.
25278 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
25279 (cprop_insn): Likewise.
25280 (cprop_jump): Use FOR_EACH_EDGE.
25281
25282 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
25283
25284 PR bootstrap/48403
25285 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
25286 (rank_for_schedule): Use scheduled_insns vector instead of
25287 last_scheduled_insn.
25288 (ok_for_early_queue_removal): Likewise.
25289 (queue_to_ready): Search forward in nonscheduled_insns_begin if
25290 we have a dbg_cnt.
25291 (choose_ready): Likewise.
25292 (commit_schedule): Use VEC_iterate.
25293 (schedule_block): Initialize nonscheduled_insns_begin. If we have
25294 a dbg_cnt, use it and ensure the first insn is in the ready list.
25295 (haifa_sched_init): Allocate scheduled_insns.
25296 (sched_extend_ready_list): Don't allocate it; reserve space.
25297 (haifa_sched_finish): Free it.
25298
25299 2011-04-04 Joseph Myers <joseph@codesourcery.com>
25300
25301 * optc-gen.awk: Always remove type from Variable entry before
25302 recording in var_seen.
25303
25304 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
25305
25306 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
25307 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
25308 call to tidy_fallthru_edges.
25309
25310 2011-04-04 Joseph Myers <joseph@codesourcery.com>
25311
25312 * doc/options.texi (ToLower): Document.
25313 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
25314 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
25315 * opts.h (cl_option): Add cl_tolower field.
25316 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
25317 arguments with lowercase strings.
25318 * config/rx/rx.opt (mcpu=): Add ToLower.
25319 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
25320 argument.
25321
25322 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
25323
25324 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
25325
25326 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
25327
25328 * config/vax/vax.c: Include reload.h.
25329
25330 2011-04-04 Anatoly Sokolov <aesok@post.ru>
25331
25332 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
25333 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25334 (sparc_preferred_reload_class): New function.
25335
25336 2011-04-04 Jakub Jelinek <jakub@redhat.com>
25337
25338 PR debug/48401
25339 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
25340 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
25341
25342 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
25343
25344 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
25345 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
25346
25347 2011-04-03 Anatoly Sokolov <aesok@post.ru>
25348
25349 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
25350 (ASM_OUTPUT_ALIGNED_BSS): Define.
25351
25352 2011-04-03 Michael Matz <matz@suse.de>
25353
25354 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
25355 and next_slot members.
25356 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
25357 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
25358 (lto_streamer_cache_append): Declare.
25359 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
25360 unsigned index, remove offset parameter, ensure that we append
25361 or update existing entries.
25362 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
25363 parameter, update next_slot for append.
25364 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
25365 parameter.
25366 (lto_streamer_cache_insert_at): Likewise.
25367 (lto_streamer_cache_append): New function.
25368 (lto_streamer_cache_lookup): Use unsigned index.
25369 (lto_streamer_cache_get): Likewise.
25370 (lto_record_common_node): Don't test tree_node_can_be_shared.
25371 (preload_common_node): Adjust call to lto_streamer_cache_insert.
25372 (lto_streamer_cache_delete): Don't free offsets member.
25373 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
25374 (lto_output_string_with_length): Use lto_output_data_stream.
25375 (lto_output_tree_header): Remove ix parameter, don't write it.
25376 (lto_output_builtin_tree): Likewise.
25377 (lto_write_tree): Adjust callers to above, don't track and write
25378 offset, write unsigned index.
25379 (output_unreferenced_globals): Don't emit all global vars.
25380 (write_global_references): Use unsigned indices.
25381 (lto_output_decl_state_refs): Likewise.
25382 (write_symbol): Likewise.
25383 * lto-streamer-in.c (lto_input_chain): Move earlier.
25384 (input_function): Use unsigned index.
25385 (input_alias_pairs): Don't read and then ignore all global vars.
25386 (lto_materialize_tree): Remove ix_p parameter, don't read index,
25387 don't pass it back, use lto_streamer_cache_append.
25388 (lto_register_var_decl_in_symtab): Use unsigned index.
25389 (lto_register_function_decl_in_symtab): Likewise.
25390 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
25391 index.
25392 (lto_get_builtin_tree): Don't read index, use
25393 lto_streamer_cache_append.
25394 (lto_read_tree): Adjust call to lto_materialize_tree.
25395
25396 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
25397 don't use function calls in arguments to MIN.
25398
25399 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
25400 twice.
25401
25402 * gimple.c (gimple_type_leader_entry): Mark deletable.
25403
25404 2011-04-03 Alan Modra <amodra@gmail.com>
25405
25406 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
25407
25408 2011-04-03 Michael Matz <matz@suse.de>
25409
25410 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
25411 an integer.
25412 * tree.h (tree_decl_non_common.vindex): Adjust comment.
25413
25414 2011-04-03 Michael Matz <matz@suse.de>
25415
25416 * cgraphbuild.c (record_reference): Canonicalize constructor values.
25417 * gimple-fold.c (canonicalize_constructor_val): Accept being called
25418 without function context.
25419 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
25420 current_function_decl and cfun.
25421
25422 2011-04-03 Michael Matz <matz@suse.de>
25423
25424 * tree.c (decl_init_priority_insert): Don't create entry for
25425 default priority.
25426 (decl_fini_priority_insert): Ditto.
25427 (fields_compatible_p, find_compatible_field): Remove.
25428 * tree.h (fields_compatible_p, find_compatible_field): Remove.
25429 * gimple.c (gimple_compare_field_offset): Adjust block comment.
25430
25431 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
25432
25433 * combine.c (try_combine): Remove useless local variable.
25434
25435 2011-04-03 Richard Guenther <rguenther@suse.de>
25436 Ira Rosen <ira.rosen@linaro.org>
25437
25438 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
25439 non-variable offsets and compare the remaining bases of the two
25440 accesses instead of looking for exact same data-ref.
25441
25442 2011-04-02 Kai Tietz <ktietz@redhat.com>
25443
25444 PR target/48416
25445 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
25446
25447 * i386.c (ix86_is_msabi_thiscall): New helper function.
25448 (ix86_is_type_thiscall): New helper function.
25449 (ix86_comp_type_attributes): Handle thiscall for method-functions
25450 special.
25451 (init_cumulative_args): Likewise.
25452 (find_drap_reg): Likewise.
25453 (ix86_static_chain): Likewise.
25454 (x86_this_parameter): Likewise.
25455 (x86_output_mi_thunk): Likewise.
25456
25457 2011-04-01 Olivier Hainque <hainque@adacore.com>
25458 Nicolas Setton <setton@adacore.com>
25459 Eric Botcazou <ebotcazou@adacore.com>
25460
25461 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
25462 (add_gnat_descriptive_type_attribute): New function.
25463 (gen_array_type_die): Call it.
25464 (gen_enumeration_type_die): Likewise.
25465 (gen_struct_or_union_type_die): Likewise.
25466 (modified_type_die): Likewise.
25467 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
25468 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
25469 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
25470
25471 2011-04-01 Jakub Jelinek <jakub@redhat.com>
25472
25473 PR bootstrap/48148
25474 * dwarf2out.c (resolve_addr): Don't call force_decl_die
25475 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
25476
25477 Revert:
25478 2011-03-17 Richard Guenther <rguenther@suse.de>
25479
25480 PR bootstrap/48148
25481 * lto-cgraph.c (input_overwrite_node): Clear the abstract
25482 origin for decls in other ltrans units.
25483 (input_varpool_node): Likewise.
25484
25485 2011-04-01 Jakub Jelinek <jakub@redhat.com>
25486
25487 PR middle-end/48335
25488 * expr.c (expand_assignment): Handle all possibilities
25489 if TO_RTX is CONCAT.
25490 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
25491 (store_split_bit_field): If SUBREG_REG (op0) or
25492 op0 itself has smaller mode than word, return it
25493 for offset 0 and const0_rtx for out-of-bounds stores.
25494 If word is const0_rtx, skip it.
25495
25496 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
25497
25498 * config/h8300/h8300.c (print_operand_address): Rename to...
25499 (h8300_print_operand_address): ...this. Make static. Adjust comments.
25500 Call h8300_print_operand and h8300_print_operand_address instead of
25501 print_operand and print_operand_address. Declare.
25502 (print_operand): Renake to...
25503 (h8300_print_operand): ...this. Make static. Adjust comments.
25504 Call h8300_print_operand instead of print_operand. Declare.
25505 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
25506 (h8300_register_move_cost): Likewise.
25507 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
25508 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
25509 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
25510 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
25511 * config/h8300/h8300-protos.h (print_operand): Delete.
25512 (print_operand_address): Delete.
25513
25514 2011-04-01 Richard Henderson <rth@redhat.com>
25515
25516 PR 48400
25517 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
25518 in strict mode before dwarf4. Re-order tests to early out
25519 before switching sections.
25520
25521 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
25522
25523 * config/h8300/constraints.md: New file.
25524 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
25525 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
25526 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
25527 * config/h8300/predicates.md (bit_operand): Likewise.
25528 (incdec_operand): Use satisfies_constraint_M and
25529 satisfies_constraint_O. Don't use C code block.
25530 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
25531 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
25532 (compute_mov_length): Use satisfies_constraint_G.
25533 (fix_bit_operand): Use satisfies_constraint_U.
25534 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
25535 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
25536 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
25537 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
25538 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
25539 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
25540 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25541 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
25542 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
25543 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
25544 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
25545 (EXTRA_MEMORY_CONSTRAINT): Delete.
25546
25547 2011-04-01 Andrew Pinski <pinskia@gmail.com>
25548 Michael Meissner <meissner@linux.vnet.ibm.com>
25549
25550 PR target/48262
25551 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
25552 operands, as per the specifications.
25553
25554 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
25555 (vec_extract_evenv4sf): Ditto.
25556 (vec_extract_evenv8hi): Ditto.
25557 (vec_extract_evenv16qi): Ditto.
25558 (vec_extract_oddv4si): Ditto.
25559
25560 2011-03-31 Mark Wielaard <mjw@redhat.com>
25561
25562 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
25563 high_pc attribute if the CU has no associated code. Only output
25564 DW_AT_entry_pc for CU if not generating strict dwarf and
25565 dwarf_version < 4.
25566
25567 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
25568
25569 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
25570 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
25571 out of ...
25572 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
25573 * final.c (final_start_function): Call the new function rather
25574 than using a NULL argument for dwarf2out_frame_debug.
25575
25576 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
25577 that contains the prologue.
25578
25579 * haifa-sched.c (queue_insn): New arg REASON. All callers
25580 changed. Print it in debugging output.
25581
25582 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
25583
25584 * sched-ebb.c (begin_schedule_ready): Remove second argument.
25585 Split most of the code into...
25586 (begin_move_insn): ... here. New function.
25587 (ebb_sched_info): Add a pointer to it.
25588 * haifa-sched.c (scheduled_insns): New static variable.
25589 (sched_extend_ready_list): Allocate it.
25590 (schedule_block): Use it to record the order of scheduled insns.
25591 Perform RTL changes to move insns only after all scheduling
25592 decisions have been made.
25593 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
25594 begin_move_insn field.
25595 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
25596 * sched-int.h (struct haifa_sched_info): Remove second argument
25597 from begin_schedule_ready hook. Add new member begin_move_insn.
25598 * sched-rgn.c (begin_schedule_ready): Remove second argument.
25599 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
25600
25601 * haifa-sched.c (prune_ready_list): New function, broken out of
25602 schedule_block.
25603 (schedule_block): Use it.
25604
25605 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25606
25607 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
25608
25609 2011-04-01 Kai Tietz <ktietz@redhat.com>
25610
25611 * config.gcc (*-*-mingw*): Allow as option the
25612 posix threading model.
25613 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
25614 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
25615 definition.
25616 (CPP_SPEC): Add pthread/no-pthread handling.
25617 (LIB_SPEC): Likewise.
25618 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
25619 (LIB_SPEC): Likewise.
25620 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
25621 flag to pass -pthread option for shared libgcc build.
25622 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
25623 for shared libgcc build.
25624 * config/i386/t-mingw-pthread: New file.
25625 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
25626 New define to enable use of library pthread by default.
25627 * config/i386/mingw.opt (pthread): New driver option.
25628 (no-pthread): New driver option.
25629 * config/i386/cygming.opt: Make sure trailing empty line is retained.
25630 * config/i386/mingw-w64.opt: Likewise.
25631
25632 2011-04-01 Gary Funck <gary@intrepid.com>
25633
25634 * c-decl.c (grokdeclarator): Fix formatting.
25635
25636 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25637
25638 * expr.c (emit_block_move_via_movmem): Use n_generator_args
25639 instead of n_operands.
25640 (set_storage_via_setmem): Likewise.
25641 * optabs.c (maybe_gen_insn): Likewise.
25642 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
25643 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
25644 (mips_expand_builtin_direct): Likewise.
25645 * config/spu/spu.c (expand_builtin_args): Likewise.
25646
25647 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25648
25649 * recog.h (insn_data_d): Add n_generator_args.
25650 * genoutput.c (data): Likewise.
25651 (output_insn_data): Print it.
25652 (max_opno, num_dups): Delete.
25653 (scan_operands): Just fill in "d->operand[...]".
25654 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
25655
25656 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25657
25658 * gensupport.h (pattern_stats): New structure.
25659 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
25660 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
25661 (max_operand_1, max_operand_vec): Delete.
25662 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
25663
25664 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
25665
25666 * emit-rtl.c (emit_pattern_after_setloc): New function.
25667 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
25668 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
25669 (emit_pattern_after): New function.
25670 (emit_insn_after, emit_jump_insn_after): Call it.
25671 (emit_call_insn_after, emit_debug_insn_after): Likewise.
25672 (emit_pattern_before_setloc): New function.
25673 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
25674 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
25675 Likewise.
25676 (emit_pattern_before): New function.
25677 (emit_insn_before, emit_jump_insn_before): Call it.
25678 (emit_call_insn_before, emit_debug_insn_before): Likewise.
25679
25680 2011-03-31 Richard Henderson <rth@redhat.com>
25681
25682 * dwarf2out.c (dw_separate_line_info_ref): Remove.
25683 (dw_separate_line_info_entry): Remove.
25684 (enum dw_line_info_opcode): New.
25685 (dw_line_info_entry): Use it.
25686 (dw_line_info_table, dw_line_info_table_p): New.
25687 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
25688 (line_info_table, line_info_label_num): Remove.
25689 (line_info_table_in_use): Remove.
25690 (separate_line_info_table): Remove.
25691 (separate_line_info_table_allocated): Remove.
25692 (separate_line_info_table_in_use): Remove.
25693 (LINE_INFO_TABLE_INCREMENT): Remove.
25694 (line_info_label_num): New.
25695 (cur_line_info_table): New.
25696 (text_section_line_info, cold_text_section_line_info): New.
25697 (separate_line_info): New.
25698 (SEPARATE_LINE_CODE_LABEL): Remove.
25699 (print_dwarf_line_table): Remove.
25700 (debug_dwarf): Don't dump it.
25701 (output_one_line_info_table): New.
25702 (output_line_info): Use it.
25703 (new_line_info_table): New.
25704 (set_cur_line_info_table): New.
25705 (dwarf2out_switch_text_section): Use it.
25706 (dwarf2out_begin_function): Likewise.
25707 (push_dw_line_info_entry): New.
25708 (dwarf2out_source_line): Rewrite for new line info tables.
25709 (dwarf2out_init): Remove dead initailizations.
25710
25711 2011-03-31 Joseph Myers <joseph@codesourcery.com>
25712
25713 * opts.h (cl_option): Add comments to fields. Add bit-fields for
25714 various flags.
25715 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
25716 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
25717 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
25718 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
25719 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
25720 * opt-functions.awk (flag_init, switch_bit_fields): New.
25721 (switch_flags): Don't handle flags moved to bit-fields. Don't
25722 generate CL_MISSING_OK or CL_SAVE.
25723 * optc-gen.awk: Update to generate bit-field output as well as
25724 flags field.
25725 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
25726 bit-field instead of CL_REJECT_DRIVER flag.
25727 * opts-common.c (generate_canonical_option,
25728 decode_cmdline_option): Use bit-fields instead of CL_* flags.
25729 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
25730 instead of CL_REJECT_NEGATIVE flag.
25731 * toplev.c (print_switch_values): Use cl_report bit-field instead
25732 of CL_REPORT flag.
25733
25734 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
25735
25736 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
25737 a zero minimum index only if it is redundant.
25738
25739 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
25740
25741 PR rtl-optimization/48381
25742 * ira-color.c (assign_hard_reg): Use hard reg set intersection
25743 instead of ira_class_hard_reg_index for calculating conflicting
25744 hard registers.
25745
25746 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
25747
25748 * cprop.c: Clean up hash table building.
25749 (reg_avail_info): Remove.
25750 (oprs_available_p): Remove.
25751 (record_last_reg_set_info): Remove.
25752 (record_last_set_info): Remove.
25753 (reg_available_p): New function.
25754 (gcse_constant_p): Do not treat unfolded conditions as constants.
25755 (make_set_regs_unavailable): New function.
25756 (hash_scan_set): Simplify with new reg_available_p.
25757 (compute_hash_table_work): Traverse insns stream only once.
25758 Do not compute reg_avail_info. Traverse insns in reverse order.
25759 Record implicit sets after recording explicit sets from the block.
25760
25761 2011-03-31 Michael Matz <matz@suse.de>
25762
25763 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
25764
25765 2011-03-31 Anatoly Sokolov <aesok@post.ru>
25766
25767 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
25768 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
25769 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25770 (h8300_mode_dependent_address_p): New function.
25771 (h8300_get_index): Make static.
25772
25773 2011-03-31 Jeff Law <law@redhat.com>
25774
25775 * reload1.c (elimination_effects): Fix typo in recent change.
25776
25777 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
25778 typo potentially leading to null pointer dereference.
25779
25780 * caller-save.c (new_saved_hard_reg): Eliminate return value.
25781 (setup_save_areas): Corresponding changes to avoid useless
25782 assignments.
25783
25784 * jump.c (reversed_comparison_code_parts): Avoid successive return
25785 statements when REVERSE_CONDITION is defined.
25786
25787 * expr.c (expand_assignment): Avoid useless assignments.
25788 (expand_expr_real_1): Likewise.
25789 (expand_expr_real_2): Avoid useless statements.
25790
25791 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
25792
25793 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
25794
25795 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
25796 statements.
25797
25798 * stmt.c (expand_expr_stmt): Avoid useless assignment.
25799
25800 2011-03-31 Joseph Myers <joseph@codesourcery.com>
25801
25802 PR target/47109
25803 * doc/tm.texi.in (TARGET_VERSION): Remove.
25804 * doc/tm.texi: Regenerate.
25805 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
25806 * collect2.c (main): Don't use TARGET_VERSION.
25807 * mips-tdump.c (main): Don't use TARGET_VERSION.
25808 * mips-tfile.c (main): Don't use TARGET_VERSION.
25809 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
25810 * config/rs6000/vxworksae.h: Remove.
25811 * config/alpha/alpha.h (TARGET_VERSION): Remove.
25812 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
25813 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
25814 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
25815 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
25816 * config/arm/arm.h (TARGET_VERSION): Remove.
25817 * config/arm/coff.h (TARGET_VERSION): Remove.
25818 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
25819 * config/arm/elf.h (TARGET_VERSION): Remove.
25820 * config/arm/freebsd.h (TARGET_VERSION): Remove.
25821 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
25822 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
25823 * config/arm/pe.h (TARGET_VERSION): Remove.
25824 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
25825 * config/arm/semi.h (TARGET_VERSION): Remove.
25826 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
25827 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
25828 * config/arm/vxworks.h (TARGET_VERSION): Remove.
25829 * config/avr/avr.h (TARGET_VERSION): Remove.
25830 * config/bfin/bfin.h (TARGET_VERSION): Remove.
25831 * config/fr30/fr30.h (TARGET_VERSION): Remove.
25832 * config/frv/frv.h (TARGET_VERSION): Remove.
25833 * config/h8300/h8300.h (TARGET_VERSION): Remove.
25834 * config/i386/cygwin.h (TARGET_VERSION): Remove.
25835 * config/i386/darwin.h (TARGET_VERSION): Remove.
25836 * config/i386/darwin64.h (TARGET_VERSION): Remove.
25837 * config/i386/djgpp.h (TARGET_VERSION): Remove.
25838 * config/i386/freebsd.h (TARGET_VERSION): Remove.
25839 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
25840 * config/i386/gnu.h (TARGET_VERSION): Remove.
25841 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
25842 * config/i386/i386elf.h (TARGET_VERSION): Remove.
25843 * config/i386/linux.h (TARGET_VERSION): Remove.
25844 * config/i386/linux64.h (TARGET_VERSION): Remove.
25845 * config/i386/lynx.h (TARGET_VERSION): Remove.
25846 * config/i386/mingw32.h (TARGET_VERSION): Remove.
25847 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
25848 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
25849 * config/i386/netware.h (TARGET_VERSION): Remove.
25850 * config/i386/nto.h (TARGET_VERSION): Remove.
25851 * config/i386/openbsd.h (TARGET_VERSION): Remove.
25852 * config/i386/vxworks.h (TARGET_VERSION): Remove.
25853 * config/ia64/elf.h (TARGET_VERSION): Remove.
25854 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
25855 * config/ia64/hpux.h (TARGET_VERSION): Remove.
25856 * config/ia64/linux.h (TARGET_VERSION): Remove.
25857 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
25858 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
25859 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25860 * config/lm32/lm32.h (TARGET_VERSION): Remove.
25861 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
25862 * config/m32c/m32c.h (TARGET_VERSION): Remove.
25863 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
25864 * config/m32r/m32r.h (TARGET_VERSION): Remove.
25865 * config/m68k/linux.h (TARGET_VERSION): Remove.
25866 * config/m68k/m68k.h (TARGET_VERSION): Remove.
25867 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
25868 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
25869 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
25870 * config/mep/mep.h (TARGET_VERSION): Remove.
25871 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
25872 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25873 * config/mips/iris6.h (MACHINE_TYPE): Remove.
25874 * config/mips/linux.h (TARGET_VERSION): Remove.
25875 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
25876 * config/mips/vxworks.h (TARGET_VERSION): Remove.
25877 * config/mmix/mmix.h (TARGET_VERSION): Remove.
25878 * config/mn10300/linux.h (TARGET_VERSION): Remove.
25879 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
25880 * config/pa/pa.h (TARGET_VERSION): Remove.
25881 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
25882 * config/picochip/picochip.h (TARGET_VERSION): Remove.
25883 * config/rs6000/aix.h (TARGET_VERSION): Remove.
25884 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
25885 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
25886 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
25887 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
25888 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
25889 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
25890 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
25891 * config/rs6000/linux.h (TARGET_VERSION): Remove.
25892 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
25893 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
25894 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
25895 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
25896 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
25897 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
25898 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
25899 * config/s390/linux.h (TARGET_VERSION): Remove.
25900 * config/s390/s390.h (TARGET_VERSION): Remove.
25901 * config/s390/tpf.h (TARGET_VERSION): Remove.
25902 * config/score/score.h (TARGET_VERSION): Remove.
25903 * config/sh/linux.h (TARGET_VERSION): Remove.
25904 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
25905 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
25906 * config/sh/sh.h (TARGET_VERSION): Remove.
25907 * config/sh/sh64.h (TARGET_VERSION): Remove.
25908 * config/sh/superh.h (TARGET_VERSION): Remove.
25909 * config/sh/vxworks.h (TARGET_VERSION): Remove.
25910 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
25911 * config/sparc/linux.h (TARGET_VERSION): Remove.
25912 * config/sparc/linux64.h (TARGET_VERSION): Remove.
25913 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
25914 TARGET_NAME32, TARGET_NAME): Remove.
25915 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
25916 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
25917 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
25918 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
25919 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
25920 * config/spu/spu.h (TARGET_VERSION): Remove.
25921 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
25922 * config/v850/v850.h (TARGET_VERSION): Remove.
25923 * config/vax/linux.h (TARGET_VERSION): Remove.
25924 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
25925 * config/xtensa/elf.h (TARGET_VERSION): Remove.
25926 * config/xtensa/linux.h (TARGET_VERSION): Remove.
25927
25928 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
25929
25930 PR target/48142
25931 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
25932 frame-related from frame-unrelated adjustments to the stack pointer.
25933
25934 2011-03-31 Jakub Jelinek <jakub@redhat.com>
25935
25936 * common.opt (fdebug-types-section): Move earlier.
25937 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
25938
25939 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
25940
25941 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
25942 var.
25943
25944 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
25945
25946 * tree.h (CASE_CHAIN): Define.
25947 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
25948 (gimple_redirect_edge_and_branch): Likewise.
25949
25950 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
25951
25952 PR middle-end/48367
25953 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
25954 calculation.
25955
25956 2011-03-30 Jeff Law <law@redhat.com>
25957
25958 * PR bootstrap/48371
25959 * reload1.c (reload): Fix botch in last change.
25960
25961 * reload.h (struct reload): Fix typo introduced in last change.
25962
25963 2011-03-30 Joseph Myers <joseph@codesourcery.com>
25964
25965 * config/arm/arm.opt (mhard-float, msoft-float): Mark
25966 Undocumented. Remove help text.
25967 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
25968 -mhard-float.
25969
25970 2011-03-30 Joseph Myers <joseph@codesourcery.com>
25971
25972 * doc/options.texi (NegativeAlias): Document.
25973 (Alias): Mention NegativeAlias.
25974 * opt-functions.awk: Handle NegativeAlias.
25975 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
25976 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
25977 * opts.h (CL_NEGATIVE_ALIAS): Define.
25978 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
25979 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
25980 OPT_mspe_.
25981 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
25982 Alias entries.
25983 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
25984 mno-spe and mno-isel instead of mspe=no and -misel=no.
25985
25986 2011-03-29 Mark Wielaard <mjw@redhat.com>
25987
25988 * common.opt (fdebug-types-section): New flag.
25989 * doc/invoke.texi: Document new -fno-debug-types-section flag.
25990 * dwarf2out.c (use_debug_types): New define.
25991 (struct die_struct): Mark die_id with GTY desc use_debug_types.
25992 (print_die): Guard output of type unit signatures using
25993 use_debug_types.
25994 (build_abbrev_table): Replace assert of dwarf_version >= 4
25995 with assert on use_debug_types.
25996 (size_of_die): Likewise.
25997 (unmark_dies): Likewise.
25998 (value_format): Decide AT_ref_external form on use_debug_types.
25999 (output_die): Replace dwarf_version version check guard with
26000 use_debug_types where appropriate.
26001 (modified_type_die): Likewise.
26002 (gen_reference_type_die): Likewise.
26003 (dwarf2out_start_source_file): Likewise.
26004 (dwarf2out_end_source_file): Likewise.
26005 (prune_unused_types_walk_attribs): Likewise.
26006 (dwarf2out_finish): Likewise.
26007
26008 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
26009
26010 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
26011
26012 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26013
26014 PR rtl-optimization/48332
26015 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
26016 mode of input operand N and modeN to its actual mode.
26017
26018 2011-03-30 Jeff Law <law@redhat.com>
26019
26020 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
26021 define accessor macro.
26022 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
26023 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
26024 (reg_equiv_init): Likewise.
26025 (reg_equivs_size): New variable.
26026 (reg_equiv_init_size): Remove.
26027 (allocate_initial_values): Move prototype to here from....
26028 * integrate.h (allocate_initial_values): Remove prototype.
26029 * integrate.c: Include reload.h.
26030 (allocate_initial_values): Corresponding changes.
26031 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
26032 (fix_reg_equiv_init, no_equiv): Corresponding changes.
26033 (update_equiv_regs): Corresponding changes.
26034 (ira): Corresponding changes.
26035 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
26036 (push_secondary_reload): Corresponding changes.
26037 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
26038 (make_memloc, find_reloads_address): Corresponding changes.
26039 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
26040 (find_reloads_address_1): Corresponding changes.
26041 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
26042 (refers_to_regno_for_reload_p): Corresponding changes.
26043 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
26044 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
26045 * reload1.c: Include ggc.h.
26046 (grow_reg_equivs): New function.
26047 (replace_pseudos_in, reload): Corresponding changes.
26048 (calculate_needs_all_insns, alter_regs): Corresponding changes.
26049 (eliminate_regs_1, elimination_effects): Corresponding changes.
26050 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
26051 (delete_output_reload): Likewise.
26052 * caller-save.c (mark_referenced_regs): Corresponding changes.
26053 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
26054 * frv/predicates.md (frv_load_operand): Corresponding changes.
26055 * microblaze/microblaze.c (double_memory_operand): Corresponding
26056 changes.
26057 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
26058 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
26059 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
26060 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
26061 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
26062 changes.
26063 * pa/pa.c (emit_move_sequence): Corresponding changes.
26064 * vax/vax.c (nonindexed_address_p): Corresponding changes.
26065
26066 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26067
26068 PR target/47551
26069 * config/arm/arm.c (coproc_secondary_reload_class): Handle
26070 structure modes. Don't check neon_vector_mem_operand for
26071 vector or structure modes.
26072
26073 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26074 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26075
26076 PR target/43590
26077 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
26078 operand 1 and reshuffle the operands to match.
26079 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
26080
26081 2011-03-30 Christian Schüler <cschueler@gmx.de>
26082
26083 PR driver/48208
26084 * config/c.opt (F): Added 'Driver' to -F option.
26085
26086 PR driver/48260
26087 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
26088 handler function.
26089 * config/darwin.opt: Added '-arch' option.
26090
26091 2011-03-30 Nick Clifton <nickc@redhat.com>
26092
26093 * config/rx/rx.md: Add peepholes and patterns to combine
26094 extending loads and simple arithmetic instructions.
26095 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
26096 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
26097 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
26098 modes to use pre-decrement and post-increment addressing.
26099 (rx_is_restricted_memory_address): Add range checking of REG+INT
26100 addresses.
26101 (rx_print_operand): Add support for %Q. Fix handling of %Q.
26102 (rx_memory_move_cost): Adjust cost of stores.
26103 (rx_adjust_insn_length): New function.
26104
26105 2011-03-30 Jakub Jelinek <jakub@redhat.com>
26106
26107 PR c/48305
26108 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26109 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
26110 matching arg00/arg01 types.
26111
26112 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
26113
26114 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
26115 last_location to UNKNOWN_LOCATION.
26116
26117 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
26118
26119 PR target/48349
26120 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
26121 FLOAT_SSE_REGS.
26122
26123 2011-03-30 Joseph Myers <joseph@codesourcery.com>
26124 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26125
26126 PR bootstrap/48337
26127 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
26128 Init(PROCESSOR_V7).
26129 (sparc_cpu): Likewise.
26130 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
26131 PROCESSOR_V7.
26132
26133 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26134
26135 PR target/48336
26136 PR middle-end/48342
26137 PR rtl-optimization/48345
26138 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
26139 hard regs for given mode from profitable regs when doing secondary
26140 allocation.
26141
26142 2011-03-29 Jeff Law <law@redhat.com>
26143
26144 PR bootstrap/48327
26145 * tree-ssa-threadupdate.c (struct redirection_data): Remove
26146 do_not_duplicate field.
26147 (lookup_redirection_data): Corresponding changes.
26148 (create_duplicates): Always create a template block.
26149 (redirect_edges): Remove code which reused the original block
26150 when it was going to become unreachable code.
26151 (thread_block): Don't set do_not_duplicate field.
26152
26153 2011-03-29 Joseph Myers <joseph@codesourcery.com>
26154
26155 * lto-opts.c (register_user_option_p, lto_register_user_option):
26156 Make type argument unsigned.
26157 * lto-streamer.h (lto_register_user_option): Make type argument
26158 unsigned.
26159 * opth-gen.awk: Make CL_* macros unsigned.
26160 * opts-common.c (find_opt): Make lang_mask argument unsigned.
26161 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
26162 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
26163 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
26164 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
26165 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
26166 (find_opt): Make lang_mask argument unsigned.
26167
26168 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26169
26170 PR rtl-optimization/48331
26171 PR rtl-optimization/48334
26172 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
26173 for any used algorithm.
26174
26175 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26176
26177 * ira-conflicts.c (build_object_conflicts): Add unused attribute
26178 to parent_max.
26179
26180 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
26181
26182 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
26183 (alpha_option_override): Don't set alpha_sr_alias_set.
26184 (emit_frame_store_1): Use gen_frame_mem rather than calling
26185 set_mem_alias_set.
26186 (alpha_expand_epilogue): Ditto.
26187
26188 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
26189
26190 PR tree-optimization/48290
26191 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
26192 vectorization, check that relevant phis in the basic block after
26193 the inner loop are really inner loop's exit phis.
26194
26195 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
26196
26197 PR debug/48190
26198 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
26199 (cached_dw_loc_list_def): New structure.
26200 (cached_dw_loc_list): New typedef.
26201 (cached_dw_loc_list_table): New variable.
26202 (cached_dw_loc_list_table_hash): New function.
26203 (cached_dw_loc_list_table_eq): Likewise.
26204 (add_location_or_const_value_attribute): Take a bool cache_p.
26205 Cache the list when the parameter is true.
26206 (gen_formal_parameter_die): Update caller.
26207 (gen_variable_die): Likewise.
26208 (dwarf2out_finish): Likewise.
26209 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
26210 while generating debug info for the decl.
26211 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
26212 (dwarf2out_init): Initialize cached_dw_loc_list_table.
26213 (resolve_addr): Cache the result of resolving a chain of
26214 location lists.
26215
26216 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
26217
26218 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
26219 conflict object hard regset nodes have intersecting hard reg sets.
26220
26221 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
26222 after regstat_init_n_sets_and_refs.
26223
26224 * ira.c: Add more comments at the top.
26225 (setup_stack_reg_pressure_class, setup_pressure_classes):
26226 Add comments how we compute the register pressure classes.
26227 (setup_allocno_and_important_classes): Add more comments.
26228 (setup_class_translate_array, reorder_important_classes)
26229 (setup_reg_class_relations): Add comments.
26230
26231 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
26232 start of the file.
26233
26234 * ira-color.c: Add 2011 to the Copyright line.
26235 (assign_hard_reg): Add more comments.
26236 (improve_allocation): Ditto.
26237
26238 * ira-costs.c: Add 2011 to the Copyright line.
26239 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
26240 comments.
26241 (setup_regno_cost_classes_by_mode): Ditto.
26242
26243 Initial patches from ira-improv branch:
26244
26245 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
26246
26247 * ira-build.c (ira_create_object): Remove initialization of
26248 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
26249 (ira_create_allocno): Remove initialization of
26250 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
26251 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
26252 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
26253 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
26254 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
26255 Initialize ALLOCNO_ADD_DATA.
26256 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
26257 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
26258 ALLOCNO_REG.
26259 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
26260 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
26261
26262 * ira.c (ira_reallocate): Remove.
26263 (setup_pressure_classes): Call
26264 ira_init_register_move_cost_if_necessary. Use
26265 ira_register_move_cost instead of ira_get_register_move_cost.
26266 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
26267 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
26268
26269 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
26270 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
26271 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
26272 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
26273 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
26274 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
26275 Fix formatting.
26276 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
26277 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
26278 (struct allocno_color_data): New.
26279 (allocno_color_data_t): New typedef.
26280 (allocno_color_data): New definition.
26281 (ALLOCNO_COLOR_DATA): New macro.
26282 (struct object_color_data): New.
26283 (object_color_data_t): New typedef.
26284 (object_color_data): New definition.
26285 (OBJECT_COLOR_DATA): New macro.
26286 (update_copy_costs, calculate_allocno_spill_cost): Call
26287 ira_init_register_move_cost_if_necessary. Use
26288 ira_register_move_cost instead of ira_get_register_move_cost.
26289 (move_spill_restore, update_curr_costs): Ditto.
26290 (allocno_spill_priority): Make it inline.
26291 (color_pass): Allocate and free allocno_color_dat and object_color_data.
26292 (struct coalesce_data, coalesce_data_t): New.
26293 (allocno_coalesce_data): New definition.
26294 (ALLOCNO_COALESCE_DATA): New macro.
26295 (merge_allocnos, coalesced_allocno_conflict_p): Use
26296 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
26297 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
26298 (coalesce_allocnos): Ditto.
26299 (setup_coalesced_allocno_costs_and_nums): Ditto.
26300 (collect_spilled_coalesced_allocnos): Ditto.
26301 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
26302 (setup_slot_coalesced_allocno_live_ranges): Ditto.
26303 (coalesce_spill_slots): Ditto.
26304 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
26305 free allocno_coalesce_data.
26306
26307 * ira-conflicts.c: Fix formatting.
26308 (process_regs_for_copy): Call
26309 ira_init_register_move_cost_if_necessary. Use
26310 ira_register_move_cost instead of ira_get_register_move_cost.
26311 (build_object_conflicts): Optimize.
26312
26313 * ira-costs.c (record_reg_classes): Optimize. Call
26314 ira_init_register_move_cost_if_necessary. Use
26315 ira_register_move_cost, ira_may_move_in_cost, and
26316 ira_may_move_out_cost instead of ira_get_register_move_cost and
26317 ira_get_may_move_cost.
26318 (record_address_regs): Ditto.
26319 (scan_one_insn): Optimize.
26320 (find_costs_and_classes): Optimize.
26321 (process_bb_node_for_hard_reg_moves): Call
26322 ira_init_register_move_cost_if_necessary. Use
26323 ira_register_move_cost instead of ira_get_register_move_cost.
26324
26325 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
26326 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
26327 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
26328 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
26329 definitions.
26330 (ira_initiate_emit_data, ira_finish_emit_data)
26331 (create_new_allocno): New functions.
26332 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
26333 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
26334 Use ira_register_move_cost instead of ira_get_register_move_cost.
26335
26336 * ira-int.h: Fix some comments.
26337 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
26338 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
26339 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
26340 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
26341 add_data.
26342 (struct ira_allocno): Make mode and aclass a bitfield. Move other
26343 bitfield after mode. Make hard_regno a short int. Make
26344 hard_regno short. Remove first_coalesced_allocno and
26345 next_coalesced_allocno. Move mem_optimized_dest_p,
26346 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
26347 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
26348 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
26349 temp, colorable_p. Add new member add_data.
26350 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
26351 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
26352 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
26353 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
26354 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
26355 (ALLOCNO_ADD_DATA): New macro.
26356 (ira_emit_data_t): New typedef.
26357 (struct ira_emit_data): New. Move mem_optimized_dest_p,
26358 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
26359 from struct ira_allocno.
26360 (ALLOCNO_EMIT_DATA): New macro.
26361 (ira_allocno_emit_data, allocno_emit_reg): New.
26362 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
26363 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
26364 (OBJECT_ADD_DATA): New macro.
26365 (ira_reallocate): Remove.
26366 (ira_initiate_emit_data, ira_finish_emit_data): New.
26367 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
26368 (ira_init_register_move_cost_if_necessary): New.
26369 (ira_object_conflict_iter_next): Merge into
26370 ira_object_conflict_iter_cond.
26371 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
26372
26373 * ira-live.c (process_single_reg_class_operands): Call
26374 ira_init_register_move_cost_if_necessary. Use
26375 ira_register_move_cost instead of ira_get_register_move_cost.
26376
26377 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
26378
26379 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
26380
26381 * ira-costs.c: Fix formatting.
26382 (cost_classes, cost_classes_num): Remove.
26383 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
26384 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
26385 (cost_classes_del, cost_classes_htab): New.
26386 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
26387 (initiate_regno_cost_classes, setup_cost_classes): New.
26388 (setup_regno_cost_classes_by_aclass): New.
26389 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
26390 (record_reg_classes): Use regno_cost_classes instead of
26391 cost_classes. Move checking opposite operand up.
26392 (record_address_regs): Use regno_cost_classes
26393 instead of cost_classes.
26394 (scan_one_insn): Ditto. Use always general register.
26395 (print_allocno_costs): Use regno_cost_classes instead of
26396 cost_classes.
26397 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
26398 (find_costs_and_classes): Set up cost classes for each registers.
26399 Use also their mode for this. Use regno_cost_classes instead of
26400 cost_classes.
26401 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
26402 cost_classes.
26403 (free_ira_costs, ira_init_costs): Don't use cost_classes.
26404 (ira_costs, ira_set_pseudo_classes): Call
26405 initiate_regno_cost_classes and finish_regno_cost_classes.
26406
26407 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
26408
26409 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
26410
26411 * target.def (ira_cover_classes): Remove.
26412
26413 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
26414
26415 * doc/tm.texi.in: Ditto.
26416
26417 * ira-conflicts.c: Remove mentioning cover classes from the file.
26418 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
26419 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
26420
26421 * targhooks.c (default_ira_cover_classes): Remove.
26422
26423 * targhooks.h (default_ira_cover_classes): Ditto.
26424
26425 * haifa-sched.c: Remove mentioning cover classes from the file.
26426 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
26427 ira_pressure_classes and ira_pressure_classes_num instead of
26428 ira_reg_class_cover_size and ira_reg_class_cover. Use
26429 sched_regno_pressure_class instead of sched_regno_cover_class.
26430 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
26431 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26432
26433 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
26434 classes from the file.
26435 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
26436 (struct object_hard_regs, struct object_hard_regs_node): New.
26437 (struct ira_object): New members profitable_hard_regs,
26438 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
26439 (struct ira_allocno): Rename cover_class to aclass. Rename
26440 cover_class_cost and updated_cover_class_cost to class_cost and
26441 updated_class_cost. Remove splay_removed_p and
26442 left_conflict_size. Add new members colorable_p.
26443 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
26444 (ALLOCNO_COLORABLE_P): New macro.
26445 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
26446 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
26447 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
26448 (OBJECT_...): Rename parameter C to O.
26449 (OBJECT_PROFITABLE_HARD_REGS): New macro.
26450 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
26451 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
26452 (struct target_ira_int): New members x_ira_max_memory_move_cost,
26453 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
26454 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
26455 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
26456 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
26457 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
26458 x_ira_reg_class_subunion.
26459 (ira_max_memory_move_cost, ira_max_register_move_cost)
26460 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
26461 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
26462 (ira_important_class_nums, ira_reg_class_superunion): New macros.
26463 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
26464 (ira_reg_class_union): Rename to ira_reg_class_subunion.
26465 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
26466 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
26467 (ira_tune_allocno_costs_and_cover_classes): Rename to
26468 ira_tune_allocno_costs.
26469 (ira_debug_hard_regs_forest): New.
26470 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
26471 (ira_object_conflict_iter_next): Fix comments.
26472 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
26473 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
26474 cover_class to aclass.
26475 (ira_allocate_and_accumulate_costs): Ditto.
26476 (ira_allocate_and_set_or_copy_costs): Ditto.
26477
26478 * opts.c (decode_options): Remove ira_cover_class check.
26479
26480 * ira-color.c: Remove mentioning cover classes from the file. Use
26481 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
26482 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
26483 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
26484 (splay-tree.h): Remove include.
26485 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
26486 before copy_freq_compare_func.
26487 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
26488 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
26489 New definitions.
26490 (hard_regs_roots, hard_regs_node_vec): Ditto.
26491 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
26492 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
26493 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
26494 (create_new_object_hard_regs_node): Ditto.
26495 (add_new_object_hard_regs_node_to_forest): Ditto.
26496 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
26497 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
26498 Ditto.
26499 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
26500 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
26501 (remove_unused_object_hard_regs_nodes): Ditto.
26502 (enumerate_object_hard_regs_nodes): Ditto.
26503 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
26504 (object_hard_regs_subnode_t): Ditto.
26505 (struct object_hard_regs_subnode): Ditto.
26506 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
26507 (setup_object_hard_regs_subnode_index): Ditto.
26508 (get_object_hard_regs_subnodes_num): Ditto.
26509 (form_object_hard_regs_nodes_forest): Ditto.
26510 (finish_object_hard_regs_nodes_tree): Ditto.
26511 (finish_object_hard_regs_nodes_forest): Ditto.
26512 (allocnos_have_intersected_live_ranges_p): Rename to
26513 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
26514 (pseudos_have_intersected_live_ranges_p): Rename to
26515 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
26516 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
26517 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
26518 (update_copy_costs): Remove assert. Skip cost update if the hard
26519 reg does not belong the class.
26520 (assign_hard_reg): Process only profitable hard regs.
26521 (uncolorable_allocnos_num): Make it scalar.
26522 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
26523 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
26524 and ira_reg_class_max_nregs.
26525 (bucket_allocno_compare_func): Check frequency first.
26526 (sort_bucket): Add compare function as a parameter.
26527 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
26528 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
26529 (push_allocno_to_stack): Rewrite for checking new allocno
26530 colorability.
26531 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
26532 (push_only_colorable): Pass new parameter to sort_bucket.
26533 (push_allocno_to_spill): Remove.
26534 (allocno_spill_priority_compare): Make it inline and rewrite.
26535 (splay_tree_allocate, splay_tree_free): Remove.
26536 (allocno_spill_sort_compare): New function.
26537 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
26538 build and use splay tree. Choose first allocno in uncolorable
26539 allocno bucket to spill. Remove setting spill cost.
26540 (all_conflicting_hard_regs): Remove.
26541 (setup_allocno_available_regs_num): Check only profitable hard
26542 regs. Print info about hard regs nodes.
26543 (setup_allocno_left_conflicts_size): Remove.
26544 (put_allocno_into_bucket): Don't call
26545 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
26546 (improve_allocation): New.
26547 (color_allocnos): Call setup_profitable_hard_regs,
26548 form_object_hard_regs_nodes_forest, improve_allocation,
26549 finish_object_hard_regs_nodes_forest. Setup spill cost.
26550 (print_loop_title): Use pressure classes.
26551 (color_allocnso): Ditto.
26552 (do_coloring): Remove allocation and freeing splay_tree_node_pool
26553 and allocnos_for_spilling.
26554 (ira_sort_regnos_for_alter_reg): Don't setup members
26555 {first,next}_coalesced_allocno.
26556 (color): Remove allocating and freeing removed_splay_allocno_vec.
26557 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
26558 prohibited_class_mode_regs.
26559
26560 * ira-lives.c: Remove mentioning cover classes from the file. Fix
26561 formatting.
26562 (update_allocno_pressure_excess_length): Use pressure classes.
26563 (inc_register_pressure, dec_register_pressure): Check for pressure
26564 class.
26565 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
26566 pressure class. Use ira_reg_class_nregs instead of
26567 ira_reg_class_max_nregs.
26568 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
26569 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
26570 (single_reg_class): Use ira_reg_class_nregs instead of
26571 ira_reg_class_max_nregs.
26572 (process_bb_node_lives): Use pressure classes.
26573
26574 * ira-emit.c: Remove mentioning cover classes from the file. Use
26575 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
26576 (change_loop): Use pressure classes.
26577 (modify_move_list): Call ira_set_allocno_class instead of
26578 ira_set_allocno_cover_class.
26579
26580 * ira-build.c: Remove mentioning cover classes from the file. Use
26581 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
26582 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
26583 ALLOCNO_UPDATED_CLASS_COST instead of
26584 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
26585 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
26586 (ira_create_allocno): Remove initialization of
26587 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
26588 ALLOCNO_COLORABLE_P.
26589 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
26590 Update conflict regs for the objects.
26591 (create_cap_allocno): Remove assert. Don't propagate
26592 ALLOCNO_AVAILABLE_REGS_NUM.
26593 (ira_free_allocno_costs): New function.
26594 (finish_allocno): Change a part of code into call of
26595 ira_free_allocno_costs.
26596 (low_pressure_loop_node_p): Use pressure classes.
26597 (object_range_compare_func): Don't compare classes.
26598 (setup_min_max_conflict_allocno_ids): Ditto.
26599
26600 * loop-invariant.c: Remove mentioning cover classes from the file.
26601 Use ira_pressure_classes and ira_pressure_classes_num instead of
26602 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
26603 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
26604 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26605 Use reg_allocno_class instead of reg_cover_class.
26606 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
26607 STACK_REG_COVER_CLASS.
26608 (get_regno_cover_class): Rename to get_regno_pressure_class.
26609 (move_loop_invariants): Initialize and finalize regstat.
26610
26611 * ira.c: Remove mentioning cover classes from the file. Add
26612 comments about coloring without cover classes. Use ALLOCNO_CLASS
26613 instead of ALLOCNO_COVER_CLASS. Fix formatting.
26614 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
26615 setup_class_subset_and_memory_move_costs.
26616 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
26617 (setup_cover_and_important_classes): Rename to
26618 setup_allocno_and_important_classes.
26619 (setup_class_translate_array): New.
26620 (setup_class_translate): Call it for allocno and pressure classes.
26621 (cover_class_order): Rename to allocno_class_order.
26622 (comp_reg_classes_func): Use ira_allocno_class_translate instead
26623 of ira_class_translate.
26624 (reorder_important_classes): Set up ira_important_class_nums.
26625 (setup_reg_class_relations): Set up ira_reg_class_superunion.
26626 (print_class_cover): Rename to print_classes. Add parameter.
26627 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
26628 Print pressure classes too.
26629 (find_reg_class_closure): Rename to find_reg_classes. Don't call
26630 setup_reg_subclasses.
26631 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
26632 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
26633 (setup_prohibited_class_mode_regs): Use
26634 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
26635 (clarify_prohibited_class_mode_regs): New function.
26636 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
26637 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
26638 (ira_init_once): Initialize them.
26639 (free_register_move_costs): Process them.
26640 (ira_init): Move calls of find_reg_classes and
26641 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
26642 Call clarify_prohibited_class_mode_regs.
26643 (ira_no_alloc_reg): Remove.
26644 (too_high_register_pressure_p): Use pressure classes.
26645
26646 * sched-deps.c: Remove mentioning cover classes from the file.
26647 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
26648 ira_pressure_classes and ira_pressure_classes_num instead of
26649 ira_reg_class_cover_size and ira_reg_class_cover.
26650 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
26651 sched_regno_pressure_class instead of sched_regno_cover_class.
26652 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
26653 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26654
26655 * ira.h: Add 2010 to Copyright.
26656 (ira_no_alloc_reg): Remove external.
26657 (struct target_ira): Rename x_ira_hard_regno_cover_class,
26658 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
26659 x_ira_class_translate to x_ira_hard_regno_allocno_class,
26660 x_ira_allocno_classes_num, x_ira_allocno_classes, and
26661 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
26662 x_ira_pressure_classes, x_ira_pressure_class_translate, and
26663 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
26664 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
26665 x_ira_no_alloc_regs.
26666 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
26667 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
26668 ira_allocno_classes_num and ira_allocno_classes.
26669 (ira_class_translate): Rename to ira_allocno_class_translate.
26670 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
26671 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
26672 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
26673 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
26674 (ira_no_alloc_regs): New.
26675
26676 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
26677 classes from the file. Use ALLOCNO_CLASS instead of
26678 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
26679 ALLOCNO_COVER_CLASS_COST.
26680 (regno_cover_class): Rename to regno_aclass.
26681 (record_reg_classes): Use ira_reg_class_subunion instead of
26682 ira_reg_class_union.
26683 (record_address_regs): Check overflow.
26684 (scan_one_insn): Ditto.
26685 (print_allocno_costs): Print total mem cost fore regional allocation.
26686 (print_pseudo_costs): Use REG_N_REFS.
26687 (find_costs_and_classes): Use classes intersected with them on the
26688 1st pass. Check overflow. Use ira_reg_class_subunion instead of
26689 ira_reg_class_union. Use ira_allocno_class_translate and
26690 regno_aclass instead of ira_class_translate and regno_cover_class.
26691 Modify code for finding regno_aclass. Setup preferred classes for
26692 the next pass.
26693 (setup_allocno_cover_class_and_costs): Rename to
26694 setup_allocno_class_and_costs. Use regno_aclass instead of
26695 regno_cover_class. Use ira_set_allocno_class instead of
26696 ira_set_allocno_cover_class.
26697 (init_costs, finish_costs): Use regno_aclass instead of
26698 regno_cover_class.
26699 (ira_costs): Use setup_allocno_class_and_costs instead of
26700 setup_allocno_cover_class_and_costs.
26701 (ira_tune_allocno_costs_and_cover_classes): Rename to
26702 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
26703 by processing objects. Use ira_reg_class_max_nregs instead of
26704 ira_reg_class_nregs.
26705
26706 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
26707
26708 * sched-int.h: Remove mentioning cover classes from the file.
26709 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
26710
26711 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
26712 classes from the file.
26713 (struct reg_pref): Rename coverclass into allocnoclass.
26714 (reg_cover_class): Rename to reg_allocno_class.
26715
26716 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
26717
26718 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
26719
26720 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
26721
26722 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
26723
26724 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
26725
26726 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
26727
26728 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
26729
26730 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
26731
26732 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
26733
26734 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
26735
26736 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
26737 (i386_ira_cover_classes): Ditto.
26738
26739 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
26740
26741 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
26742
26743 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
26744
26745 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
26746
26747 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
26748
26749 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
26750
26751 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
26752 (mips_ira_cover_classes): Ditto.
26753
26754 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
26755
26756 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
26757
26758 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
26759
26760 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
26761
26762 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
26763
26764 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
26765 (IRA_COVER_CLASSES_VSX): Ditto.
26766
26767 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
26768 (rs6000_ira_cover_classes): Ditto.
26769
26770 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
26771
26772 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
26773
26774 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
26775
26776 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
26777
26778 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
26779
26780 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
26781
26782 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
26783
26784 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
26785
26786 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
26787
26788 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
26789
26790 2011-03-29 Jakub Jelinek <jakub@redhat.com>
26791
26792 PR debug/48253
26793 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
26794 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
26795 dw_fde_unlikely_section_end_label, cold_in_std_section,
26796 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
26797 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
26798 fields.
26799 (output_fde): Use dw_fde_second_{begin,end} if second is
26800 true, otherwise dw_fde_{begin,end}.
26801 (output_call_frame_info): Test dw_fde_second_begin != NULL
26802 instead of dw_fde_switched_sections.
26803 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
26804 fields, initialize new fields. Initialize in_std_section
26805 unconditionally from the first partition.
26806 (dwarf2out_end_epilogue): Don't override dw_fde_end when
26807 dw_fde_second_begin is non-NULL.
26808 (dwarf2out_switch_text_section): Stop initializing removed
26809 dw_fde_struct fields, initialize new fields, initialize
26810 also dw_fde_end here. Set dw_fde_switch_cfi even when
26811 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
26812 (struct var_loc_list_def): Add last_before_switch field.
26813 (arange_table, arange_table_allocated, arange_table_in_use,
26814 ARANGE_TABLE_INCREMENT, add_arange): Removed.
26815 (size_of_aranges): Count !in_std_section and !second_in_std_section
26816 hunks in fdes, instead of looking at arange_table_in_use.
26817 (output_aranges): Add aranges_length argument, don't call
26818 size_of_aranges here. Instead of using aranges_table*
26819 emit ranges for fdes when !in_std_section resp.
26820 !second_in_std_section.
26821 (dw_loc_list): Break ranges crossing section switch.
26822 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
26823 use dw_fde_second_end instead of dw_fde_end as end of last range.
26824 (gen_subprogram_die): Don't call add_arange. Use
26825 dw_fde_{begin,end} for first partition and if switched
26826 section dw_fde_second_{begin,end} for the second.
26827 (var_location_switch_text_section_1,
26828 var_location_switch_text_section): New functions.
26829 (dwarf2out_begin_function): Initialize cold_text_section even
26830 when function_section () isn't text_section.
26831 (prune_unused_types): Don't walk arange_table.
26832 (dwarf2out_finish): Don't needlessly test
26833 flag_reorder_blocks_and_partition when testing cold_text_section_used.
26834 If info_section_emitted, call size_of_aranges and if it indicates
26835 non-empty .debug_aranges, call output_aranges with the computed
26836 size. Stop using removed dw_fde_struct fields, use
26837 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
26838 for second.
26839
26840 PR debug/48203
26841 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
26842 create ENTRY_VALUE if incoming or address of incoming's MEM
26843 is a hard REG.
26844 * dwarf2out.c (mem_loc_descriptor): Don't emit
26845 DW_OP_GNU_entry_value of DW_OP_fbreg.
26846 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
26847 on ENTRY_VALUE is able to find the canonical parameter VALUE.
26848 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
26849 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
26850 ENTRY_VALUE_EXPs.
26851 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
26852 is a REG_P or MEM_P with REG_P address, compute hash directly
26853 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
26854 (preserve_only_constants): Don't clear VALUES forwaring
26855 ENTRY_VALUE to some other VALUE.
26856
26857 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
26858
26859 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
26860 instead of GEN_INT.
26861
26862 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
26863
26864 * cfgexpand.c (expand_gimple_cond): Always set the source location and
26865 block before expanding the statement.
26866 (expand_gimple_stmt_1): Likewise. Set them here...
26867 (expand_gimple_stmt): ...and not here. Tidy.
26868 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
26869 unknown.
26870
26871 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
26872
26873 * Makefile.in: New rule for cprop.o.
26874 * gcse.c: Move constant/copy propagation to cprop.c.
26875 (compute_local_properties): Only handle expression tables.
26876 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
26877 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
26878 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
26879 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
26880 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
26881 compute_cprop_data, find_used_regs, try_replace_reg,
26882 find_avail_set, cprop_jump, constprop_register, cprop_insn,
26883 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
26884 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
26885 find_bypass_set, reg_killed_on_edge, bypass_block,
26886 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
26887 execute_rtl_cprop, pass_rtl_cprop): Move to...
26888 * cprop.c: ...here. New file, constant/copy propagation for RTL
26889 moved from gcse.c to here with minor cleanups in duplicated code.
26890
26891 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
26892
26893 * config/i386/i386.c (flag_opts): Fix a typo in
26894 -mavx256-split-unaligned-store.
26895
26896 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26897
26898 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
26899 LIBCALL_VALUE): Remove macros.
26900 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26901 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26902 (h8300_function_value, h8300_libcall_value,
26903 h8300_function_value_regno_p): New functions.
26904
26905 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26906
26907 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
26908
26909 2011-03-28 Jeff Law <law@redhat.com>
26910
26911 * tree-ssa-threadupdate.c (redirect_edges): Call
26912 create_edge_and_update_destination_phis as needed.
26913 (create_edge_and_update_destination_phis): Accept new BB argument.
26914 All callers updated.
26915 (thread_block): Do not update the profile when threading around
26916 intermediate blocks.
26917 (thread_single_edge): Likewise.
26918 (determine_bb_domination_status): If BB is not a successor of the
26919 loop header, return NONDOMINATING.
26920 (register_jump_thread): Note when we register a jump thread around
26921 an intermediate block.
26922 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
26923 (thread_across_edge): Use it.
26924
26925 2011-03-28 Tristan Gingold <gingold@adacore.com>
26926
26927 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
26928 when for_return is 2.
26929
26930 2011-03-28 Jeff Law <law@redhat.com>
26931
26932 * var-tracking.c (canonicalize_values_mark): Delete unused
26933 lhs assignment.
26934 (canonicalize_values_star, set_variable_part): Likewise.
26935 (clobber_variable_part, delete_variable_part): Likewise.
26936
26937 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
26938
26939 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
26940
26941 2011-03-28 Martin Jambor <mjambor@suse.cz>
26942
26943 * tree-inline.c (expand_call_inline): Do not check that destination
26944 node is analyzed.
26945 (optimize_inline_calls): Assert that destination node is analyzed.
26946 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
26947 not call tree_lowering_passes.
26948 * cgraph.h (cgraph_analyze_function): Declare.
26949 * cgraphunit.c (cgraph_analyze_function): Make public.
26950
26951 2011-03-28 Joseph Myers <joseph@codesourcery.com>
26952
26953 * config/sparc/sparc-opts.h: New.
26954 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
26955 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
26956 (sparc_option_override): Store processor_type enumeration rather
26957 than string in cpu_default. Remove name and enumeration from
26958 cpu_table. Directly default -mcpu then default -mtune from -mcpu
26959 without using sparc_select. Use target_flags_explicit instead of
26960 fpu_option_set.
26961 * config/sparc/sparc.h (enum processor_type): Move to
26962 sparc-opts.h.
26963 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
26964 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
26965 HeaderInclude entry.
26966 (mcpu=, mtune=): Use Var and Enum.
26967 (sparc_processor_type): New Enum and EnumValue entries.
26968
26969 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26970 Iain Sandoe <iains@gcc.gnu.org>
26971
26972 PR target/48245
26973 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
26974
26975 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
26976
26977 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
26978 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
26979 Insert new statements at it in lieu of STMT.
26980 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
26981 * tree-vect-stmts.c (vectorizable_store): Likewise.
26982 (vectorizable_load): Likewise.
26983
26984 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
26985
26986 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
26987 (divtf3): Ditto.
26988 (multf3): Ditto.
26989 (subtf3): Ditto.
26990
26991 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
26992
26993 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
26994 unaligned 256bit load/store.
26995 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
26996 (*avx_movdqu<avxmodesuffix>): Likewise.
26997
26998 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26999
27000 PR target/48288
27001 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
27002 * config/pa/pa.md (iordi3): Use new predicate in expander.
27003 (iorsi3): Likewise.
27004
27005 2011-03-27 Anatoly Sokolov <aesok@post.ru>
27006
27007 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
27008 FUNCTION_VALUE_REGNO_P): Remove macros.
27009 * config/mips/mips-protos.h (mips_function_value): Remove.
27010 * config/mips/mips.c (mips_function_value): Rename to...
27011 (mips_function_value_1): ... this. Make static. Handle receiving
27012 the function type in 'fn_decl_or_type' argument.
27013 (mips_function_value, mips_libcall_value,
27014 mips_function_value_regno_p): New function.
27015 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27016 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27017
27018 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
27019
27020 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
27021 and -mavx256-split-unaligned-store.
27022 (ix86_option_override_internal): Split 32-byte AVX unaligned
27023 load/store by default.
27024 (ix86_avx256_split_vector_move_misalign): New.
27025 (ix86_expand_vector_move_misalign): Use it.
27026
27027 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
27028 -mavx256-split-unaligned-store.
27029
27030 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
27031 256bit load/store. Generate unaligned store on misaligned memory
27032 operand.
27033 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
27034 256bit load/store.
27035 (*avx_movdqu<avxmodesuffix>): Likewise.
27036
27037 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
27038 -mavx256-split-unaligned-store.
27039
27040 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
27041
27042 PR target/38598
27043 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
27044 Update commentary.
27045
27046 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
27047
27048 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
27049 opno arguments with an expand_operand. Use create_input_operand.
27050 (mips_prepare_builtin_target): Delete.
27051 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
27052 functions.
27053 (mips_expand_builtin_direct): Use create_output_operand and
27054 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
27055 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
27056 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
27057
27058 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
27059
27060 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
27061 function.
27062 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
27063
27064 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
27065
27066 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
27067 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
27068 basic blocks and call commit_edge_insertions directly.
27069 (fixup_abnormal_edges): Move from here to...
27070 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
27071 on the edges and return whether some have actually been inserted.
27072 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
27073 compensation code.
27074
27075 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
27076
27077 PR rtl-optimization/48144
27078 * sel-sched-ir.c (merge_history_vect): Factor out from ...
27079 (merge_expr_data): ... here.
27080 (av_set_intersect): Rename to av_set_code_motion_filter.
27081 Update all callers. Call merge_history_vect when an expression
27082 is found in both sets.
27083 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
27084
27085 2011-03-26 Alan Modra <amodra@gmail.com>
27086
27087 * config/rs6000/predicates.md (word_offset_memref_op): Handle
27088 cmodel medium addresses.
27089 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
27090 64-bit gpr loads and stores.
27091 (rs6000_secondary_reload_ppc64): New function.
27092 * config/rs6000/rs6000-protos.h: Declare it.
27093 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
27094
27095 2011-03-26 Alan Modra <amodra@gmail.com>
27096
27097 PR target/47487
27098 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
27099 GNU Go in traceback table.
27100
27101 2011-03-25 Richard Henderson <rth@redhat.com>
27102
27103 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
27104 if there are exactly 6 operands.
27105 (set_storage_via_setmem): Similarly.
27106
27107 2011-03-25 Kai Tietz <ktietz@redhat.com>
27108
27109 * collect2.c (write_c_file_stat): Handle backslash
27110 as right-hand directory separator.
27111 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
27112 checking just for slash.
27113 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
27114 instead of checking for trailing slash.
27115 * gcc.c (record_temp_file): Use filename_cmp instead
27116 of strcmp.
27117 (do_spec_1): Likewise.
27118 (replace_outfile_spec_function): Likewise.
27119 (is_directory): Use filename_ncmp instead of strncmp.
27120 (print_multilib_info): Likewise.
27121 * gcov.c (find_source): Use filename_cmp instead
27122 instead of strcmp.
27123 (make_gcov_file_name): Fix order of slash/backslash
27124 checks.
27125 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
27126 (add_standard_paths): Likewise.
27127 * mips-tfile.c (saber_stop): Handle backslash.
27128 * prefix.c (update_path): Use filename_ncmp instead of
27129 strncmp.
27130 * profile.c (output_location): Use filename_cmp instead
27131 of strcmp.
27132 * read-md.c (handle_toplevel_file): Handle backslash.
27133 * tlink.c (frob_extension): Likewise.
27134 * tree-cfg.c (same_line_p): Use filename_cmp instead of
27135 strcmp.
27136 * tree-dump.c (dequeue_and_dump): Handle backslash.
27137 * tree.c (get_file_function_name): Likewise.
27138 * gengtype.c (read_input_list): Likewise.
27139 (get_file_realbasename): Likewise.
27140 (get_output_file_with_visibility): Use filename_cmp
27141 instead of strcmp.
27142
27143 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
27144
27145 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
27146 case to VFPv1.
27147
27148 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
27149
27150 * fold-const.c (expr_location_or): New function.
27151 (fold_truth_not_expr): Call it.
27152
27153 2011-03-25 Jeff Law <law@redhat.com>
27154
27155 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
27156 va_end.
27157 * c-family/c-common.c (def_fn_type): Likewise.
27158 * emit-rtl.c (gen_rtvec): Likewise.
27159 * lto/lto-lang.c (def_fn_type): Likewise.
27160
27161 2011-03-25 Richard Guenther <rguenther@suse.de>
27162
27163 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
27164 also generate copies.
27165 (fini_copy_prop): Handle constant values properly.
27166
27167 2011-03-25 Jakub Jelinek <jakub@redhat.com>
27168
27169 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
27170 mode size instead of bitsize with DWARF2_ADDR_SIZE.
27171 (hash_loc_operands, compare_loc_operands): Handle
27172 DW_OP_GNU_entry_value.
27173
27174 2011-03-25 Kai Tietz <ktietz@redhat.com>
27175
27176 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
27177 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
27178 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
27179 comment and use macro TARGET_64BIT_MS_ABI instead.
27180 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
27181 and change default behavior for 32-bit MS_ABI.
27182 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
27183 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
27184 32-bit, too.
27185 (ix86_cfun_abi): Likewise.
27186 (ix86_maybe_switch_abi): Adjust comment.
27187 (init_cumulative_args): Check for bit-ness in MS_ABI case.
27188 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
27189 instead of checking for SYSV_ABI.
27190 (ix86_nsaved_sseregs): Likewise.
27191 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
27192 to 16 bytes.
27193 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
27194 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
27195 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
27196 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
27197 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
27198
27199 2011-03-25 Richard Guenther <rguenther@suse.de>
27200
27201 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
27202 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
27203 (verify_gimple): Remove.
27204 * tree-cfg.c (verify_gimple_call): Merge verification
27205 from verify_stmts.
27206 (verify_gimple_phi): Merge verification from verify_stmts.
27207 (verify_gimple_label): New function.
27208 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
27209 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
27210 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
27211 (verify_stmts): Rename to verify_gimple_in_cfg.
27212 (verify_gimple_in_cfg): New function.
27213 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
27214 * tree-ssa.c (verify_ssa): Likewise.
27215 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
27216
27217 2011-03-25 Richard Guenther <rguenther@suse.de>
27218
27219 * passes.c (init_optimization_passes): Add FRE pass after
27220 early SRA.
27221
27222 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
27223 Andrew Stubbs <ams@codesourcery.com>
27224
27225 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
27226 for Cortex-A8.
27227 (arm_movdi_vfp_cortexa8): New pattern.
27228 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
27229 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
27230 instructions when tuning for Cortex-A8. Set attribute "arch".
27231 * config/arm/arm.md: Move include arm-tune.md up a bit.
27232 (define_attr "arch"): Add "onlya8" and "nota8" values.
27233 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
27234
27235 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
27236
27237 PR bootstrap/48282
27238 Revert:
27239 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27240
27241 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
27242 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
27243 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
27244 * passes.c (init_optimization_passes): Move
27245 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
27246
27247 2011-03-25 Kai Tietz <ktietz@redhat.com>
27248
27249 * c-typeck.c (comptypes_internal): Replace target
27250 hook call of comp_type_attributes by version in tree.c file.
27251 * gimple.c (gimple_types_compatible_p_1): Likewise.
27252 * tree-ssa.c (useless_type_conversion_p): Likewise.
27253 * tree.c (build_type_attribute_qual_variant): Likewise.
27254 (attribute_value_equal): New static helper function.
27255 (comp_type_attributes): New function.
27256 (merge_attributes): Use attribute_value_equal for comparison.
27257 (attribute_list_contained): Likewise.
27258 * tree.h (comp_type_attributes): New prototype.
27259
27260 2011-03-25 Richard Guenther <rguenther@suse.de>
27261
27262 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
27263 of complex types at -O0.
27264 (verify_gimple_assign_binary): Likewise.
27265 (verify_gimple_assign_ternary): Likewise.
27266
27267 2011-03-24 Mark Wielaard <mjw@redhat.com>
27268
27269 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
27270 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
27271
27272 2011-03-24 Mark Wielaard <mjw@redhat.com>
27273
27274 PR debug/48041
27275 * dwarf2out.c (output_abbrev_section): Only write table when
27276 abbrev_die_table_in_use > 1.
27277
27278 2011-02-24 Richard Henderson <rth@redhat.com>
27279
27280 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
27281 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
27282 (alpha_expand_unaligned_load_words): Use extql.
27283 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
27284 (emit_insxl): Handle all modes for consistency.
27285
27286 2011-02-24 Richard Henderson <rth@redhat.com>
27287
27288 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
27289 (alpha_expand_unaligned_load): Likewise.
27290 (alpha_expand_unaligned_store): Likewise.
27291 (alpha_expand_unaligned_load_words): Likewise.
27292 (alpha_expand_unaligned_store_words): Likewise.
27293 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
27294 (alpha_split_lock_test_and_set_12): Likewise.
27295 (print_operand, alpha_fold_builtin_extxx): Likewise.
27296 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
27297 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
27298 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
27299 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
27300 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
27301 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
27302 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
27303 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
27304 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
27305 (extwl, extll, extql): Similarly.
27306 (inswh, inslh, insqh): Similarly.
27307 (mskbl, mskwl, mskll, mskql): Similarly.
27308 (mskwh, msklh, mskqh): Similarly.
27309
27310 2011-02-24 Richard Henderson <rth@redhat.com>
27311
27312 * config/alpha/alpha.md (attribute isa): Add er, ner.
27313 (attribute enabled): Handle them.
27314 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
27315
27316 2011-02-24 Richard Henderson <rth@redhat.com>
27317
27318 * config/alpha/alpha.md (attribute isa): Add vms.
27319 (attribute enabled): Handle it.
27320 (*movsf): Merge *movsf_{nofix,fix,nofp}.
27321 (*movdf): Merge *movdf_{nofix,fix,nofp}.
27322 (*movtf): Rename from *movtf_internal for consistency.
27323 (*movsi): Merge with *movsi_nt_vms.
27324 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
27325 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
27326 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
27327 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
27328
27329 2011-02-24 Richard Henderson <rth@redhat.com>
27330
27331 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
27332 (extendqisi2, extendhisi2): Likewise.
27333 (extendqidi2): Simplify BWX/non-BWX expansions.
27334 (extendhidi2): Similarly.
27335
27336 2011-02-24 Richard Henderson <rth@redhat.com>
27337
27338 * config/alpha/alpha.md (attribute isa): New.
27339 (attribute enabled): New.
27340 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
27341 (zero_extendqisi2, zero_extendqidi2): Similarly.
27342 (zero_extendhisi2, zero_extendhidi2): Similarly.
27343 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
27344
27345 2011-02-24 Richard Henderson <rth@redhat.com>
27346
27347 * config/alpha/predicates.md (input_operand): Revert last change;
27348 update comment to mention 32-bit VMS rather than Windows.
27349
27350 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27351
27352 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
27353 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
27354 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
27355 * passes.c (init_optimization_passes): Move
27356 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
27357
27358 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27359
27360 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
27361
27362 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
27363
27364 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
27365 correctly.
27366
27367 2011-03-24 Jakub Jelinek <jakub@redhat.com>
27368
27369 PR debug/48204
27370 * simplify-rtx.c (simplify_const_unary_operation): Call
27371 real_convert when changing mode class with FLOAT_EXTEND.
27372
27373 2011-03-24 Nick Clifton <nickc@redhat.com>
27374
27375 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
27376 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
27377 * config/rx/rx.c (rx_option_override): Set align_jumps,
27378 align_loops and align_labels if not set by the user.
27379 (rx_align_for_label): New function.
27380 (rx_max_skip_for_label): New function.
27381 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
27382 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
27383 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
27384 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
27385 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
27386
27387 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27388
27389 PR rtl-optimization/48263
27390 * optabs.c (expand_binop_directly): Reinstate convert_modes code
27391 and original commutative_p handling. Use maybe_gen_insn.
27392
27393 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27394
27395 * reload.c (find_reloads_subreg_address): Add address_reloaded
27396 parameter and return true there if the full address has been
27397 reloaded.
27398 (find_reloads_toplev): Pass address_reloaded flag.
27399 (find_reloads_address_1): Don't use address_reloaded parameter.
27400
27401 2011-03-24 Jeff Law <law@redhat.com>
27402
27403 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
27404 unused variable "ann".
27405 (remove_unused_locals): Likewise.
27406
27407 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
27408 statement.
27409
27410 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
27411 after it is freed.
27412
27413 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27414
27415 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
27416 for invalid symbolic addresses.
27417 (s390_secondary_reload): Don't use s390_check_symref_alignment for
27418 larl operands.
27419
27420 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27421
27422 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
27423 the argument in calls to fold_truth_not_expr.
27424
27425 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27426
27427 * tree.c (record_node_allocation_statistics): New function.
27428 (make_node_stat, copy_node_stat, build_string): Call it.
27429 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
27430 (build1_stat, build_omp_clause): Likewise.
27431
27432 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27433
27434 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
27435 last commit.
27436
27437 2011-03-24 Richard Guenther <rguenther@suse.de>
27438
27439 PR tree-optimization/48271
27440 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
27441 blocks that still exist.
27442
27443 2011-03-24 Richard Guenther <rguenther@suse.de>
27444
27445 PR tree-optimization/48270
27446 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
27447 not free datarefs before ddrs.
27448
27449 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27450
27451 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
27452 from the address built for a reference with variable offset.
27453
27454 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
27455
27456 PR target/48237
27457 * config/i386/i386.md (*movdf_internal_rex64): Do not split
27458 alternatives that can be handled with movq or movabsq insn.
27459 (*movdf_internal): Disable for !TARGET_64BIT.
27460 (*movdf_internal_nointeger): Ditto.
27461 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
27462
27463 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27464
27465 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
27466 (FUNCTION_ARG_ADVANCE): Likewise.
27467 * tm.texi.in: Change references to them to hook references.
27468 * tm.texi: Regenerate.
27469 * targhooks.c (default_function_arg): Eliminate check for target macro.
27470 (default_function_incoming_arg): Likewise.
27471 (default_function_arg_advance): Likewise.
27472 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
27473 (function_arg_advance): Likewise.
27474 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
27475
27476 2011-03-24 Richard Guenther <rguenther@suse.de>
27477
27478 PR middle-end/48269
27479 * tree-object-size.c (addr_object_size): Do not double-account
27480 for MEM_REF offsets.
27481
27482 2011-03-24 Diego Novillo <dnovillo@google.com>
27483
27484 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
27485 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
27486 (lto_input_data_block): Move from lto-opts.c. Make extern.
27487 Update all users.
27488 (lto_input_string): Rename from input_string. Make extern.
27489 Update all users.
27490 * lto-streamer-out.c (lto_output_string_with_length): Rename from
27491 output_string_with_length.
27492 Output 0 to indicate a non-NULL string. Update all callers to
27493 not emit 0.
27494 (lto_output_string): Rename from output_string. Make extern.
27495 Update all users.
27496 (lto_output_decl_state_streams): Make extern.
27497 (lto_output_decl_state_refs): Make extern.
27498 * lto-streamer.h (lto_input_string): Declare.
27499 (lto_input_data_block): Declare.
27500 (lto_output_string): Declare.
27501 (lto_output_string_with_length): Declare.
27502 (lto_output_decl_state_streams): Declare.
27503 (lto_output_decl_state_refs): Declare.
27504
27505 2011-03-24 Richard Guenther <rguenther@suse.de>
27506
27507 PR tree-optimization/46562
27508 * tree.c (build_invariant_address): New function.
27509 * tree.h (build_invariant_address): Declare.
27510 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
27511 a renamed function moved ...
27512 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
27513 Take valueization callback parameter.
27514 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
27515 * gimple-fold.h: New file.
27516 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
27517 (ccp_fold, fold_const_aggregate_ref,
27518 fold_ctor_reference, fold_nonarray_ctor_reference,
27519 fold_array_ctor_reference, fold_string_cst_ctor_reference,
27520 get_base_constructor): Move ...
27521 * gimple-fold.c: ... here.
27522 (gimple_fold_stmt_to_constant_1): New function
27523 split out from ccp_fold. Take a valueization callback parameter.
27524 Valueize all operands.
27525 (gimple_fold_stmt_to_constant): New wrapper function.
27526 (fold_const_aggregate_ref_1): New function split out from
27527 fold_const_aggregate_ref. Take a valueization callback parameter.
27528 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
27529 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
27530 invariant POINTER_PLUS_EXPRs to invariant form.
27531 (vn_valueize): New function.
27532 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
27533 * tree-vrp.c (vrp_valueize): New function.
27534 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
27535 to fold statements to constants.
27536 * tree-ssa-pre.c (eliminate): Properly guard propagation of
27537 function declarations.
27538 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
27539 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
27540
27541 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27542
27543 * config/h8300/predicates.md (jump_address_operand): Fix register
27544 mode check.
27545
27546 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
27547
27548 * doc/invoke.texi (max-stores-to-sink): Document.
27549 * params.h (MAX_STORES_TO_SINK): Define.
27550 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
27551 if either vectorization or if-conversion is disabled.
27552 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
27553 tree-vect-data-refs.c vect_equal_offsets.
27554 (dr_equal_offsets_p): New function.
27555 (find_data_references_in_bb): Remove static.
27556 * tree-data-ref.h (find_data_references_in_bb): Declare.
27557 (dr_equal_offsets_p): Likewise.
27558 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
27559 (vect_drs_dependent_in_basic_block): Update calls to
27560 vect_equal_offsets.
27561 (vect_check_interleaving): Likewise.
27562 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
27563 (cond_if_else_store_replacement): Rename to...
27564 (cond_if_else_store_replacement_1): ... this. Change arguments and
27565 documentation.
27566 (cond_if_else_store_replacement): New function.
27567 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
27568 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
27569
27570 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
27571
27572 PR target/46934
27573 * config/arm/arm.md (casesi): Use the gen_int_mode() function
27574 to subtract lower bound instead of GEN_INT().
27575
27576 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
27577
27578 PR other/48179
27579 PR other/48221
27580 PR other/48234
27581 * doc/extend.texi (Alignment): Move section to match order in TOC.
27582 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
27583 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
27584
27585 2011-03-23 Jeff Law <law@redhat.com>
27586
27587 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
27588 before removing the edge.
27589
27590 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
27591 it may have been freed by redirect_branch_edge or
27592 redirect_edge_succ_nodup.
27593
27594 2011-03-23 Richard Guenther <rguenther@suse.de>
27595
27596 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
27597 (check_va_list_escapes): Likewise.
27598 (check_all_va_list_escapes): Likewise.
27599
27600 2011-03-23 Richard Guenther <rguenther@suse.de>
27601
27602 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
27603 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
27604 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
27605 (alias.o): Likewise.
27606 (ipa-type-escape.o): Remove.
27607 (ipa-struct-reorg.o): Likewise.
27608 (GTFILES): Remove ipa-struct-reorg.c.
27609 * alias.c: Do not include ipa-type-escape.h.
27610 * tree-ssa-alias.c: Likewise.
27611 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
27612 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
27613 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
27614 and ipa-type-escape passes.
27615 * tree-pass.h (pass_ipa_type_escape): Remove.
27616 (pass_ipa_struct_reorg): Likewise.
27617 * ipa-struct-reorg.h: Remove.
27618 * ipa-struct-reorg.c: Likewise.
27619 * ipa-type-escape.h: Likewise.
27620 * ipa-type-escape.c: Likewise.
27621 * doc/invoke.texi (-fipa-struct-reorg): Remove.
27622 (--param struct-reorg-cold-struct-ratio): Likewise.
27623 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
27624 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
27625 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
27626
27627 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27628
27629 * config/s390/2084.md: Enable all insn reservations also for z9_ec
27630 cpu attribute value.
27631 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
27632 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
27633 * config/s390/s390.c (processor_flags_table): New constant array.
27634 (s390_handle_arch_option): Remove.
27635 (s390_handle_option): Remove s390_handle_arch_option invocations
27636 and OPT_mwarn_framesize_ handling.
27637 (s390_option_override): Remove s390_handle_arch_option invocation.
27638 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
27639 warnings.
27640 * config/s390/s390.md (cpu attribute): Add z9_ec value.
27641 * config/s390/s390.opt (s390_tune, s390_arch)
27642 (march=): Replace s390_arch_option enum and values with
27643 processor_type. Set variable name to s390_arch. Set
27644 initialization value.
27645 (mtune=): Replace s390_arch_option with processor_type. Set
27646 variable name to s390_tune. Set initialization value.
27647
27648 2011-03-23 Julian Brown <julian@codesourcery.com>
27649
27650 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
27651 accesses which are not naturally aligned.
27652
27653 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
27654
27655 PR target/47553
27656 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
27657
27658 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
27659
27660 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
27661 parameter from "int" to "enum insn_code".
27662 (expand_operand_type): New enum.
27663 (expand_operand): New structure.
27664 (create_expand_operand): New function.
27665 (create_fixed_operand, create_output_operand): Likewise
27666 (create_input_operand, create_convert_operand_to): Likewise.
27667 (create_convert_operand_from, create_address_operand): Likewise.
27668 (create_integer_operand): Likewise.
27669 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
27670 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
27671 (expand_insn, expand_jump_insn): Likewise.
27672 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
27673 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
27674 (expand_movstr, expand_builtin___clear_cache): Likewise.
27675 (expand_builtin_lock_release): Likewise.
27676 * explow.c (allocate_dynamic_stack_space): Likewise.
27677 (probe_stack_range): Likewise. Allow check_stack to FAIL,
27678 and use the default handling in that case.
27679 * expmed.c (check_predicate_volatile_ok): Delete.
27680 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
27681 (emit_cstore): Likewise.
27682 * expr.c (emit_block_move_via_movmem): Likewise.
27683 (set_storage_via_setmem, expand_assignment): Likewise.
27684 (emit_storent_insn, try_casesi): Likewise.
27685 (emit_single_push_insn): Likewise. Allow the expansion to fail.
27686 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
27687 (expand_vec_shift_expr, expand_binop_directly): Likewise.
27688 (expand_twoval_unop, expand_twoval_binop): Likewise.
27689 (expand_unop_direct, emit_indirect_jump): Likewise.
27690 (emit_conditional_move, vector_compare_rtx): Likewise.
27691 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
27692 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
27693 (expand_sync_lock_test_and_set): Likewise.
27694 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
27695 (emit_unop_insn): Likewise.
27696 (expand_copysign_absneg): Change icode to an insn_code.
27697 (create_convert_operand_from_type): New function.
27698 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
27699 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
27700 (expand_insn, expand_jump_insn): Likewise.
27701 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
27702 than const_int_operand for operand 2.
27703
27704 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27705
27706 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
27707 if possible.
27708
27709 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27710
27711 * emit-rtl.c (emit_pattern_before_noloc): New function.
27712 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
27713 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
27714 (emit_pattern_after_noloc): New function.
27715 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
27716 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
27717
27718 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27719
27720 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
27721 (__ffsDI2): Likewise.
27722
27723 2011-03-22 Richard Henderson <rth@redhat.com>
27724
27725 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
27726 of !TARGET_ABI_OPEN_VMS.
27727 (alpha_trampoline_init, alpha_start_function): Likewise.
27728 (alpha_expand_epilogue, alpha_file_start): Likewise.
27729 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
27730 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
27731 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
27732 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
27733 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
27734
27735 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27736
27737 * config/s390/s390-opts.h: New.
27738 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
27739 s390_arch_flags, s390_warn_framesize, s390_stack_size,
27740 s390_stack_guard): Remove.
27741 (s390_handle_arch_option): Return void. Take enum
27742 s390_arch_option value instead of string and searching array.
27743 (s390_handle_option): Don't assert that global structures are in
27744 use. Access variables via opts pointer. Use error_at. Don't use
27745 sscanf for -mstack-guard= or -mstack-size=. Update call to
27746 s390_handle_arch_option.
27747 (s390_option_override): Update call to s390_handle_arch_option.
27748 (s390_emit_prologue): Use %d format for s390_stack_size in
27749 diagnostic. Use %wd for HOST_WIDE_INT.
27750 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
27751 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
27752 * config/s390/s390.opt (config/s390/s390-opts.h): New
27753 HeaderInclude entry.
27754 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
27755 s390_arch_flags, s390_warn_framesize): New Variable entries.
27756 (s390_arch_option): New Enum and EnumValue entries.
27757 (march=): Use Enum instead of Var.
27758 (mstack-guard=, mstack-size=): Use UInteger and Var.
27759 (mtune=): Use Enum.
27760
27761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27762
27763 * config/score/score.c (score_handle_option): Don't assert that
27764 global structures are in use. Access target_flags via opts
27765 pointer. Use value of -march= option to determine target_flags
27766 settings.
27767 * config/score/score.opt (march=): Use Enum.
27768 (score_arch): New Enum and EnumValue entries.
27769
27770 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27771
27772 * config/mep/mep.c (option_mtiny_specified): Remove.
27773 (mep_option_override): Move register handling for -mivc2 from
27774 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
27775 instead of option_mtiny_specified.
27776 (mep_handle_option): Access target_flags via opts pointer. Don't
27777 assert that global structures are in use. Defer part of -mivc2
27778 handling and move it to mep_option_override.
27779 * config/mep/mep.opt (IVC2): New Mask entry.
27780 (mivc2): Use Var and Defer instead of Mask.
27781
27782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27783
27784 * config/v850/v850-opts.h: New.
27785 * config/v850/v850.c (small_memory): Replace with
27786 small_memory_physical_max array. Make that array static const.
27787 (v850_handle_memory_option): Take integer value of argument. Take
27788 gcc_options pointer, option text and location. Return void.
27789 Update for changes to small memory structures.
27790 (v850_handle_option): Access target_flags via opts pointer. Don't
27791 assert that global structures are in use. Update calls to
27792 v850_handle_memory_option.
27793 (v850_encode_data_area): Update references to small memory settings.
27794 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
27795 (enum small_memory_type): Move to v850-opts.h.
27796 * config/v850/v850.opt (config/v850/v850-opts.h): New
27797 HeaderInclude entry.
27798 (small_memory_max): New Variable entry.
27799 (msda): Replace by pair of options msda= and msda-. Use UInteger.
27800 (mtda, mzda): Likewise.
27801
27802 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27803
27804 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
27805 pointer. Don't assert that global structures are in use.
27806
27807 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27808
27809 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
27810 via opts pointer. Don't assert that global structures are in use.
27811
27812 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27813
27814 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
27815 (munix=93): Use Var.
27816 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
27817 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
27818 * config/pa/pa-opts.h: New.
27819 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
27820 (pa_handle_option): Don't assert that global structures are in
27821 use. Access target_flags via opts pointer. Don't handle
27822 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
27823 OPT_munix_98 here.
27824 (pa_option_override): Handle deferred OPT_mfixed_range_.
27825
27826 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27827
27828 * config/mn10300/mn10300-opts.h: New.
27829 * config/mn10300/mn10300.c (mn10300_processor,
27830 mn10300_tune_string): Remove.
27831 (mn10300_handle_option): Don't assert that global structures are
27832 in use. Access mn10300_processor via opts pointer. Don't handle
27833 OPT_mtune_ here.
27834 * config/mn10300/mn10300.h (enum processor_type): Move to
27835 mn10300-opts.h.
27836 (mn10300_processor): Remove.
27837 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
27838 HeaderInclude entry.
27839 (mn10300_processor): New Variable entry.
27840 (mtune=): Use Var.
27841
27842 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27843
27844 * config/microblaze/microblaze.c: Don't include opts.h.
27845 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
27846 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
27847 (mno-clearbss): Use Var and Warn.
27848
27849 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27850
27851 * config/m32r/m32r-opts.h: New.
27852 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
27853 (m32r_handle_option): Don't assert that global structures are in
27854 use. Access target_flags and m32r_cache_flush_func via opts
27855 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
27856 OPT_mno_flush_trap here.
27857 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
27858 include of m32r-opts.h.
27859 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
27860 HeaderInclude entry.
27861 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
27862 (mmodel=): Use Enum and Var.
27863 (m32r_model): New Enum and EnumValue entries.
27864 (mno-flush-trap): Use Var.
27865 (msdata=): Use Enum and Var.
27866 (m32r_sdata): New Enum and EnumValue entries.
27867
27868 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27869
27870 * config/m32c/m32c.c: Don't include opts.h.
27871 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
27872 m32c_handle_option): Remove.
27873 (m32c_option_override): Check global_options_set.x_target_memregs
27874 instead of target_memregs_set.
27875 * config/m32c/m32c.h (target_memregs): Remove.
27876 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
27877 variable.
27878
27879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27880
27881 * config/iq2000/iq2000-opts.h: New.
27882 * config/iq2000/iq2000.c: Don't include opts.h.
27883 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
27884 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
27885 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
27886 HeaderInclude entry.
27887 (iq2000_tune): New Variable entry.
27888 (march=): Add comment. Use Enum.
27889 (iq2000_arch): New Enum and EnumValue entries.
27890 (mcpu=): Use Enum and Var.
27891 (iq2000_tune): New Enum and EnumValue entries.
27892
27893 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27894
27895 * config/ia64/ia64-opts.h: New.
27896 * config/ia64/ia64.c (ia64_tune): Remove.
27897 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
27898 here. Use error_at.
27899 (ia64_option_override): Handle deferred OPT_mfixed_range_.
27900 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
27901 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
27902 HeaderInclude entry.
27903 (ia64_tune): New Variable entry.
27904 (mfixed-range=): Use Defer and Var.
27905 (mtune=): Use Enum and Var.
27906 (ia64_tune): New Enum and EnumValue entries.
27907
27908 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27909
27910 * config/frv/frv-opts.h: New.
27911 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
27912 frv-opts.h.
27913 (frv_cpu_type): Remove.
27914 * config/frv/frv.c: Don't include opts.h.
27915 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
27916 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
27917 (frv_cpu_type): New Variable entry.
27918 (frv_cpu): New Enum and EnumValue entries.
27919
27920 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27921
27922 * config/cris/cris.c (cris_handle_option): Access target_flags via
27923 opts pointer. Don't assert that global structures are in use.
27924 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
27925 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
27926
27927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27928
27929 * config/bfin/bfin-opts.h: New.
27930 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
27931 bfin_si_revision, bfin_workarounds): Remove.
27932 (bfin_cpus): Make static const.
27933 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
27934 not bfin_lib_id_given.
27935 (bfin_handle_option): Don't set bfin_lib_id_given. Access
27936 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
27937 pointer. Use error_at. Don't assert that global structures are in use.
27938 * config/bfin/bfin.h: Include bfin-opts.h.
27939 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
27940 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
27941 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
27942 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
27943 entries.
27944
27945 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27946
27947 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
27948 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
27949 or -msoft-float here.
27950 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
27951 -msoft-float and -mhard-float.
27952 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
27953 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
27954 msoft-float.
27955 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
27956 -msoft-float.
27957 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
27958 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
27959 not mhard-float.
27960 (LIBGCC_SPEC): Don't handle -msoft-float.
27961 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
27962 -mhard-float.
27963 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
27964 msoft-float.
27965 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
27966 -mfloat-abi=*, not -msoft-float and -mhard-float.
27967 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
27968 -msoft-float.
27969 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
27970 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
27971 mhard-float and msoft-float.
27972 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
27973 mfloat-abi=soft in comments, not mhard-float and msoft-float.
27974 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
27975 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
27976 mhard-float.
27977 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
27978 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
27979 msoft-float.
27980 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
27981 not mhard-float.
27982 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
27983 not msoft-float.
27984
27985 2011-03-22 Richard Henderson <rth@redhat.com>
27986
27987 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
27988 TARGET_ABI_WINDOWS_NT.
27989 (alpha_output_function_end_prologue): Likewise.
27990 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
27991 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
27992 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
27993 (trap, *movsi_nt_vms): Likewise.
27994 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
27995 (*tablejump_osf_nt_internal): Remove.
27996 * config/alpha/predicates.md (input_operand): Only test Pmode.
27997
27998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27999
28000 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
28001 via opts pointer. Use error_at. Don't assert that global
28002 structures are in use.
28003
28004 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28005
28006 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
28007 (ix86_handle_option): Access ix86_isa_flags and
28008 ix86_isa_flags_explicit via opts pointer. Don't assert that
28009 global structures are in use.
28010 (ix86_function_specific_save, ix86_function_specific_restore):
28011 Update ix86_isa_flags_explicit field name.
28012 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
28013 (ix86_isa_flags_explicit): Rename TargetSave entry to
28014 x_ix86_isa_flags_explicit.
28015
28016 2011-03-22 Richard Henderson <rth@redhat.com>
28017
28018 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
28019 (alpha_option_override, direct_return): Likewise.
28020 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
28021 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
28022 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
28023 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
28024 (alpha_expand_epilogue, alpha_end_function): Likewise.
28025 (alpha_init_libfuncs): Likewise.
28026 (struct machine_function): Remove unicosmk members.
28027 (print_operand) ['t']: Remove.
28028 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
28029 unicosmk_output_module_name, unicosmk_output_common,
28030 current_section_align, unicosmk_output_text_section_asm_op,
28031 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
28032 unicosmk_section_type_flags, unicosmk_unique_section,
28033 unicosmk_asm_named_section, unicosmk_insert_attributes,
28034 unicosmk_output_align, unicosmk_defer_case_vector,
28035 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
28036 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
28037 unicosmk_output_ssib, unicosmk_add_call_info_word,
28038 unicosmk_extern_head, unicosmk_output_default_externs,
28039 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
28040 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
28041 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
28042 * config/alpha/alpha-protos.h: Update.
28043 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
28044 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
28045 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
28046 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
28047 (*mulsi_se, mulvsi3): Likewise.
28048 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
28049 (*divmodsi_internal, call, call_value, realign): Likewise.
28050 (moddi3, umoddi3): Likewise; remove duplicate expander.
28051 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
28052 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
28053 (*movdi_nofix): Remove r/U alternative.
28054 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
28055 * config/alpha/constraints.md ("U"): Remove.
28056 * config/alpha/predicates.md (call_operand"): Don't test
28057 TARGET_ABI_UNICOSMK.
28058
28059 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28060
28061 * target.def (handle_option): Take gcc_options and
28062 cl_decoded_option pointers and location_t.
28063 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
28064 * doc/tm.texi: Regenerate.
28065 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
28066 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
28067 * lto-opts.c (lto_reissue_options): Generate option structure for
28068 targetm.handle_option call.
28069 * opts.c (target_handle_option): Update call to
28070 targetm.handle_option. Remove assertions about values now passed
28071 down to hook.
28072 * targhooks.c (default_target_handle_option): New.
28073 * targhooks.h (default_target_handle_option): Declare.
28074 * config/alpha/alpha.c: Include opts.h.
28075 (alpha_handle_option): Update to new hook interface.
28076 * config/arm/arm.c: Include opts.h.
28077 (arm_handle_option): Update to new hook interface.
28078 * config/arm/t-arm (arm.o): Update dependencies.
28079 * config/bfin/bfin.c: Include opts.h.
28080 (bfin_handle_option): Update to new hook interface.
28081 * config/cris/cris.c: Include opts.h.
28082 (cris_handle_option): Update to new hook interface.
28083 * config/frv/frv.c: Include opts.h.
28084 (frv_handle_option): Update to new hook interface.
28085 * config/i386/i386.c: Include opts.h.
28086 (ix86_handle_option): Update to new hook interface.
28087 (ix86_valid_target_attribute_inner_p): Generate option structure
28088 for call to ix86_handle_option.
28089 * config/i386/t-i386 (i386.o): Update dependencies.
28090 * config/ia64/ia64.c: Include opts.h.
28091 (ia64_handle_option): Update to new hook interface.
28092 * config/ia64/t-ia64 (ia64.o): Update dependencies.
28093 * config/iq2000/iq2000.c: Include opts.h.
28094 (iq2000_handle_option): Update to new hook interface.
28095 * config/m32c/m32c.c: Include opts.h.
28096 (m32c_handle_option): Update to new hook interface.
28097 * config/m32r/m32r.c: Include opts.h.
28098 (m32r_handle_option): Update to new hook interface.
28099 * config/m68k/m68k.c: Include opts.h.
28100 (m68k_handle_option): Update to new hook interface.
28101 * config/mep/mep.c: Include opts.h.
28102 (mep_handle_option): Update to new hook interface.
28103 * config/microblaze/microblaze.c: Include opts.h.
28104 (microblaze_handle_option): Update to new hook interface.
28105 * config/mips/mips.c: Include opts.h.
28106 (mips_handle_option): Update to new hook interface.
28107 * config/mn10300/mn10300.c: Include opts.h.
28108 (mn10300_handle_option): Update to new hook interface.
28109 * config/pa/pa.c: Include opts.h.
28110 (pa_handle_option): Update to new hook interface.
28111 * config/pdp11/pdp11.c: Include opts.h.
28112 (pdp11_handle_option): Update to new hook interface.
28113 * config/rs6000/rs6000.c: Include opts.h.
28114 (rs6000_handle_option): Update to new hook interface.
28115 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
28116 * config/rx/rx.c: Include opts.h.
28117 (rx_handle_option): Update to new hook interface.
28118 * config/s390/s390.c: Include opts.h.
28119 (s390_handle_option): Update to new hook interface.
28120 * config/score/score.c: Include opts.h.
28121 (score_handle_option): Update to new hook interface.
28122 * config/sh/sh.c: Include opts.h.
28123 (sh_handle_option): Update to new hook interface.
28124 * config/sparc/sparc.c: Include opts.h.
28125 (sparc_handle_option): Update to new hook interface.
28126 * config/v850/v850.c: Include opts.h.
28127 (v850_handle_option): Update to new hook interface.
28128
28129 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28130
28131 * gcc.c (driver_unknown_option_callback): Only permit and save
28132 unknown -Wno- options.
28133 (driver_wrong_lang_callback): Save options directly instead of via
28134 driver_unknown_option_callback.
28135
28136 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
28137
28138 * combine.c (simplify_set): Try harder to find the best CC mode when
28139 simplifying a nested COMPARE on the RHS.
28140
28141 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28142
28143 * config/alpha/gnu.h: Remove.
28144 * config/arc: Remove directory.
28145 * config/arm/netbsd.h: Remove.
28146 * config/arm/t-pe: Remove.
28147 * config/crx: Remove directory.
28148 * config/i386/netbsd.h: Remove.
28149 * config/m68hc11: Remove directory.
28150 * config/m68k/uclinux-oldabi.h: Remove.
28151 * config/mcore/mcore-pe.h: Remove.
28152 * config/mcore/t-mcore-pe: Remove.
28153 * config/netbsd-aout.h: Remove.
28154 * config/rs6000/gnu.h: Remove.
28155 * config/sh/sh-symbian.h: Remove.
28156 * config/sh/symbian-base.c: Remove.
28157 * config/sh/symbian-c.c: Remove.
28158 * config/sh/symbian-cxx.c: Remove.
28159 * config/sh/symbian-post.h: Remove.
28160 * config/sh/symbian-pre.h: Remove.
28161 * config/sh/t-symbian: Remove.
28162 * config/svr3.h: Remove.
28163 * config/vax/netbsd.h: Remove.
28164 * config.build: Don't handle i[34567]86-*-pe.
28165 * config.gcc: Remove handling of deprecations for most deprecated
28166 targets.
28167 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
28168 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
28169 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
28170 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
28171 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
28172 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
28173 Remove cases.
28174 * config.host: Don't handle i[34567]86-*-pe.
28175 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
28176 (ASM_SPEC32): Don't handle -mcall-gnu.
28177 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
28178 -mcall-gnu.
28179 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
28180 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
28181 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
28182 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
28183 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
28184 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
28185 conditional on SYMBIAN.
28186 * configure.ac: Don't handle powerpc*-*-gnu*.
28187 * configure: Regenerate.
28188 * doc/extend.texi (interrupt attribute): Don't mention CRX.
28189 * doc/install-old.texi (m6811, m6812): Don't mention.
28190 * doc/install.texi (arc-*-elf*): Don't document multilib option.
28191 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
28192 (m68k-uclinuxoldabi): Don't mention.
28193 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
28194 Remove.
28195 (-mcall-gnu): Remove.
28196 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
28197 families): Remove constraint documentation.
28198
28199 2011-03-22 Marius Strobl <marius@FreeBSD.org>
28200
28201 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
28202 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
28203 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
28204
28205 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28206
28207 PR target/48226
28208 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
28209 vector when peeking at the next token for vector, don't expand the
28210 keywords.
28211
28212 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
28213
28214 * config/avr/avr-protos.h (expand_epilogue): Change prototype
28215 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
28216 * config/avr/avr.c (init_cumulative_args)
28217 (avr_function_arg_advance): Use it.
28218 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
28219 sibcall epilogues.
28220 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
28221 (avr_function_ok_for_sibcall): ...this new function.
28222 (avr_lookup_function_attribute1): New static Function.
28223 (avr_naked_function_p, interrupt_function_p)
28224 (signal_function_p, avr_OS_task_function_p)
28225 (avr_OS_main_function_p): Use it.
28226 * config/avr/avr.md ("sibcall", "sibcall_value")
28227 ("sibcall_epilogue"): New expander.
28228 ("*call_insn", "*call_value_insn"): New insn.
28229 ("call_insn", "call_value_insn"): Remove
28230 ("call", "call_value", "epilogue"): Change expander to handle
28231 sibling calls.
28232
28233 2011-03-21 Nick Clifton <nickc@redhat.com>
28234
28235 * doc/invoke.texi (Overall Options): Move closing brace to end of
28236 options list.
28237 (Optimization Options): Add missing @gol.
28238 (Directory Options): Likewise.
28239 (i386 and x86-64 Options): Likewise.
28240 (RS6000 and PowerPC Options): Likewise.
28241 (i386 and x86-64 Windows Options): Likewise.
28242 (V850 Options): Add text missing from descriptions.
28243
28244 2011-03-22 Richard Henderson <rth@redhat.com>
28245
28246 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
28247 (avr_incoming_return_addr_rtx): New.
28248 (emit_push_byte): New.
28249 (expand_prologue): Use it. Remove incorrect dwarf annotation for
28250 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
28251 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
28252 (emit_pop_byte): New.
28253 (expand_epilogue): Use it. Pop frame pointer by bytes.
28254 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
28255 (INCOMING_RETURN_ADDR_RTX): New.
28256 (INCOMING_FRAME_SP_OFFSET): New.
28257 (ARG_POINTER_CFA_OFFSET): New.
28258 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
28259 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
28260 (pophi): Remove.
28261
28262 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
28263
28264 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
28265
28266 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
28267 (FUNCTION_ARG_ADVANCE): Likewise.
28268 * tm.texi.in: Change references to them to hook references.
28269 * tm.texi: Regenerate.
28270 * targhooks.c (default_function_arg): Eliminate check for target
28271 macro.
28272 (default_function_incoming_arg): Likewise.
28273 (default_function_arg_advance): Likewise.
28274 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
28275 (function_arg_advance): Likewise.
28276 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
28277
28278 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
28279
28280 * tree.c (build_call_1): New function.
28281 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
28282
28283 2011-03-22 Richard Guenther <rguenther@suse.de>
28284
28285 PR tree-optimization/48228
28286 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
28287 for single-arg PHIs.
28288
28289 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
28290
28291 PR rtl-optimization/48143
28292 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
28293 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
28294 sse2_cvtps2pd): Likewise.
28295
28296 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28297
28298 * recog.c (canonicalize_change_group): Use validate_unshare_change.
28299
28300 2011-03-22 Richard Guenther <rguenther@suse.de>
28301
28302 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
28303 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
28304 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
28305 and REALIGN_LOAD_EXPR.
28306 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
28307 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
28308 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
28309 DOT_PROD_EXPR case ...
28310 (expand_expr_real_2): ... here.
28311 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
28312 and REALIGN_LOAD_EXPR.
28313 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
28314 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
28315 (vect_create_epilog_for_reduction): Likewise.
28316 (vectorizable_reduction): Likewise.
28317 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
28318 * tree-vect-stmts.c (vectorizable_load): Likewise.
28319
28320 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
28321
28322 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
28323
28324 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28325
28326 * config/s390/s390.c (s390_delegitimize_address): Fix offset
28327 handling for PLTOFF/GOTOFF.
28328
28329 2011-03-22 Nick Clifton <nickc@redhat.com>
28330
28331 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
28332 trailing backslash from the end of the macro definition.
28333
28334 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28335
28336 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
28337 and PLT unspecs.
28338
28339 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
28340
28341 * expr.h (prepare_operand): Move to...
28342 * optabs.h (prepare_operand): ...here and change the insn code
28343 parameter from "int" to "enum insn_code".
28344 (insn_operand_matches): Declare.
28345 * expr.c (init_expr_target): Use insn_operand_matches.
28346 (compress_float_constant): Likewise.
28347 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
28348 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
28349 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
28350 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
28351 Likewise.
28352 (gen_cond_trap): Likewise.
28353 (prepare_operand): Likewise. Change icode to an insn_code.
28354 (insn_operand_matches): New function.
28355 * reload.c (find_reloads_address_1): Use insn_operand_matches.
28356 * reload1.c (gen_reload): Likewise.
28357 * targhooks.c (default_secondary_reload): Likewise.
28358
28359 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
28360
28361 * config/alpha/alpha.md (unspec): New define_c_enum.
28362 (unspecv): Ditto.
28363
28364 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
28365
28366 PR debug/48214
28367 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
28368 between a call and its CALL_ARG_LOCATION note.
28369
28370 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
28371
28372 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
28373
28374 2011-03-21 Jakub Jelinek <jakub@redhat.com>
28375
28376 PR c/42544
28377 PR c/48197
28378 * c-common.c (shorten_compare): If primopN is first sign-extended
28379 to opN and then zero-extended to result type, set primopN to opN.
28380
28381 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
28382
28383 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
28384 for barrier handlers.
28385
28386 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28387
28388 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
28389 UNSPEC constants to be in the unspec enumeration, and redefine
28390 all UNSPECV constants to be in the unspecv enumeration, so that
28391 dumps print which unspec/unspec_volatile this is.
28392 * config/rs6000/vector.md (UNSPEC_*): Ditto.
28393 * config/rs6000/paired.md (UNSPEC_*): Ditto.
28394 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
28395 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
28396 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
28397
28398 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
28399 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
28400 UNSPECV_LWSYNC, since these are used as unspec_volatile.
28401 * config/rs6000/sync.md (isync, lwsync): Ditto.
28402
28403 2011-03-21 Richard Guenther <rguenther@suse.de>
28404
28405 * params.def (lto-min-partition): Fix typo.
28406
28407 2011-03-21 Richard Guenther <rguenther@suse.de>
28408
28409 PR c/47939
28410 * c-decl.c (grokdeclarator): Drop to the main variant only
28411 for array types. Drop flag_gen_aux_info check.
28412
28413 2011-03-21 Richard Guenther <rguenther@suse.de>
28414
28415 PR translation/47911
28416 * params.def (lto-partitions): Fix typo.
28417 (lto-min-partition): Fix wording.
28418
28419 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
28420
28421 * config/rs6000/t-freebsd: Remove duplication from file.
28422
28423 2011-03-21 Richard Guenther <rguenther@suse.de>
28424
28425 PR middle-end/47661
28426 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
28427
28428 2011-03-21 Richard Guenther <rguenther@suse.de>
28429
28430 PR lto/48210
28431 * params.def (lto-partitions): Require at least 1 partition.
28432
28433 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28434
28435 * gthr-solaris.h: Remove.
28436 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
28437 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
28438 (LIB_SPEC): Likewise.
28439 * config/sol2.opt (threads): Remove.
28440 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
28441 (sparc*-*-solaris2*): Likewise.
28442 * configure.ac (enable_threads): Enable solaris support.
28443 * configure: Regenerate.
28444 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
28445 * doc/install.texi (Configuration, --enable-threads=lib): Remove
28446 solaris.
28447
28448 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28449
28450 * config.gcc: Obsolete *-*-solaris2.8*.
28451 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28452
28453 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28454
28455 PR bootstrap/48135
28456 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
28457 reference. Solaris 8 perl works.
28458
28459 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28460
28461 PR bootstrap/48135
28462 * doc/install.texi (Prerequisites): Move jar etc. up.
28463 Explain support library version requirements.
28464
28465 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28466
28467 PR bootstrap/48135
28468 * doc/install.texi (Prerequisites): Move Perl to build
28469 requirements. Always necessary on Solaris 2 with Sun ld.
28470
28471 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28472
28473 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
28474 binutils 2.21.
28475 (Specific, i?86-*-solaris2.[89]): Likewise.
28476 (Specific, i?86-*-solaris2.10): Likewise.
28477 (Specific, mips-sgi-irix6): Likewise.
28478 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
28479 Update for binutils 2.21.
28480
28481 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28482
28483 * configure.ac (gcc_cv_lto_plugin): Fix typo.
28484 Allow -fuse-linker-plugin for non-default plugin linker.
28485 * configure: Regenerate.
28486
28487 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
28488
28489 PR bootstrap/48167
28490 * gengtype.c (files_rules): Added rule for cp/parser.h.
28491
28492 2011-03-21 Jakub Jelinek <jakub@redhat.com>
28493
28494 PR target/48213
28495 * config/s390/s390.c (s390_delegitimize_address): Don't call
28496 lowpart_subreg if orig_x has BLKmode.
28497
28498 2011-03-21 Kai Tietz <ktietz@redhat.com>
28499
28500 PR target/12171
28501 * doc/plugins.texi: Adjust documentation for plugin register_callback.
28502 * tree.h (attribute_spec): Add new member affects_type_identity.
28503 * attribs.c (empty_attribute_table): Adjust attribute_spec
28504 initializers.
28505 * config/alpha/alpha.c: Likewise.
28506 * config/arc/arc.c: Likewise.
28507 * config/arm/arm.c: Likewise.
28508 * config/avr/avr.c: Likewise.
28509 * config/bfin/bfin.c: Likewise.
28510 * config/crx/crx.c: Likewise.
28511 * config/darwin.h: Likewise.
28512 * config/h8300/h8300.c: Likewise.
28513 * config/i386/cygming.h: Likewise.
28514 * config/i386/i386.c: Likewise.
28515 * config/ia64/ia64.c: Likewise.
28516 * config/m32c/m32c.c: Likewise.
28517 * config/m32r/m32r.c: Likewise.
28518 * config/m68hc11/m68hc11.c: Likewise.
28519 * config/m68k/m68k.c: Likewise.
28520 * config/mcore/mcore.c: Likewise.
28521 * config/mep/mep.c: Likewise.
28522 * config/microblaze/microblaze.c: Likewise.
28523 * config/mips/mips.c: Likewise.
28524 * config/rs6000/rs6000.c: Likewise.
28525 * config/rx/rx.c: Likewise.
28526 * config/sh/sh.c: Likewise.
28527 * config/sol2.h: Likewise.
28528 * config/sparc/sparc.c: Likewise.
28529 * config/spu/spu.c: Likewise.
28530 * config/stormy16/stormy16.c: Likewise.
28531 * config/v850/v850.c: Likewise.
28532
28533 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28534
28535 * simplify-rtx.c (simplify_binary_operation_1): Handle
28536 (xor (and A B) C) case when B and C are both constants.
28537
28538 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
28539
28540 * tree-dfa.c (add_referenced_var): Fix typo in comment.
28541
28542 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
28543
28544 PR bootstrap/48168
28545 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
28546
28547 2011-03-20 Jakub Jelinek <jakub@redhat.com>
28548
28549 PR rtl-optimization/48156
28550 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
28551 assume df and df_lr are not NULL.
28552
28553 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
28554
28555 PR debug/48023
28556 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
28557 between a call and its CALL_ARG_LOCATION note.
28558
28559 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
28560
28561 PR debug/48178
28562 * config/sh/sh.c (find_barrier): Don't emit a constant pool
28563 between a call and its corresponding CALL_ARG_LOCATION note.
28564
28565 2011-03-19 Anatoly Sokolov <aesok@post.ru>
28566
28567 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
28568 instead of loop. Use HARD_REGISTER_NUM_P predicate.
28569 * haifa-sched.c (setup_ref_regs): Ditto.
28570 * caller-save.c (add_used_regs_1): Ditto.
28571 * dse.c (look_for_hardregs): Ditto.
28572 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
28573 * sched-rgn.c (check_live_1): Ditto.
28574
28575 2011-03-18 Joseph Myers <joseph@codesourcery.com>
28576
28577 * c-decl.c (diagnose_mismatched_decls): Give an error for
28578 redefining a typedef with variably modified type.
28579
28580 2011-03-18 Joseph Myers <joseph@codesourcery.com>
28581
28582 * c-decl.c (grokfield): Don't allow typedefs for structures or
28583 unions with no tag by default.
28584 * doc/extend.texi (Unnamed Fields): Update.
28585
28586 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
28587
28588 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
28589 Rewrite using indirect functions.
28590 (lwp_slwpcb): Ditto.
28591 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
28592 (avx_vinsertf128<mode>): Ditto.
28593
28594 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28595
28596 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
28597 unspecs.
28598
28599 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28600
28601 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
28602 splitting between a call and its corresponding CALL_ARG_LOCATION note.
28603
28604 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
28605
28606 PR rtl-optimization/48170
28607 * gcse.c (hoist_code): Remove bogus asserts.
28608
28609 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
28610
28611 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
28612 computation for prologue/epilogue.
28613
28614 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28615
28616 * Makefile.in (check-consistency): Remove.
28617
28618 2011-03-18 Jakub Jelinek <jakub@redhat.com>
28619
28620 PR debug/48176
28621 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
28622 arange_table_in_use is 0, but either text_section_used or
28623 cold_text_section_used is true. Don't call it if
28624 !info_section_emitted.
28625
28626 2011-03-18 Anatoly Sokolov <aesok@post.ru>
28627
28628 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
28629 FUNCTION_VALUE_REGNO_P): Remove.
28630 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
28631 Remove.
28632 * config/avr/avr.c (avr_ret_register): Make static inline.
28633 (avr_function_value_regno_p): New function.
28634 (avr_libcall_value): Make static. Add 'func' argument.
28635 (avr_function_value): Make static. Rename 'func' argument to
28636 'fn_decl_or_type', forward it to avr_libcall_value. Call
28637 avr_ret_register function instead of RET_REGISTER macro.
28638 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
28639
28640 2011-03-18 Jason Merrill <jason@redhat.com>
28641
28642 PR c++/23372
28643 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
28644
28645 2011-03-18 Richard Guenther <rguenther@suse.de>
28646
28647 * doc/install.texi (--enable-gold): Remove.
28648 (--with-plugin-ld): Document.
28649 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
28650
28651 2011-03-18 Andrew Pinski <pinskia@gmail.com>
28652
28653 PR middle-end/47790
28654 * expr.c (optimize_bitfield_assignment_op): Revamp to work
28655 again after expansion changes.
28656
28657 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
28658
28659 * combine.c (try_combine): Do simplification only call of
28660 subst() on i2 even when i1 is present. Update comments.
28661
28662 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
28663
28664 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
28665 and UNSPEC_PCREL_SYMOFF.
28666
28667 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28668
28669 * config/s390/s390.md: Use define_c_enum for the unspec constant
28670 definitions.
28671
28672 2011-03-18 Richard Henderson <rth@redhat.com>
28673 Jakub Jelinek <jakub@redhat.com>
28674
28675 PR bootstrap/48161
28676 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
28677 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
28678
28679 2011-03-17 Anatoly Sokolov <aesok@post.ru>
28680
28681 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28682 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
28683 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
28684 Change return type to bool.
28685 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28686
28687 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28688
28689 PR debug/48163
28690 * var-tracking.c (prepare_call_arguments): If CALL target
28691 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
28692 pc instead of looking it up using cselib_lookup and use
28693 Pmode for it if x has VOIDmode.
28694 * dwarf2out.c (gen_subprogram_die): If also both first and
28695 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
28696
28697 PR debug/48163
28698 * function.c (assign_parms): For data.passed_pointer parms
28699 use MEM of data.entry_parm instead of data.entry_parm itself
28700 as DECL_INCOMING_RTL.
28701 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
28702 also when passed and declared mode is the same, DECL_RTL
28703 is a MEM with pseudo as address and DECL_INCOMING_RTL is
28704 a MEM too.
28705
28706 2011-03-16 Jeff Law <law@redhat.com>
28707
28708 PR rtl-optimization/37273
28709 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28710 handle them like argument loads from stack slots. Do not double
28711 count memory for memory constants and argument loads from stack slots.
28712
28713 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
28714
28715 PR debug/48160
28716 * var-tracking.c (prepare_call_arguments): Check SUBREG.
28717
28718 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
28719
28720 PR target/48171
28721 * config/i386/i386.opt: Add Save to -mavx and -mfma.
28722
28723 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28724
28725 PR bootstrap/48153
28726 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
28727 if dwarf_strict.
28728 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
28729 Clear call_arg_locations and call_arg_loc_last always.
28730
28731 PR middle-end/48152
28732 * var-tracking.c (prepare_call_arguments): If argument needs to be
28733 passed by reference, adjust argtype and mode.
28734
28735 2011-03-17 Richard Guenther <rguenther@suse.de>
28736
28737 PR middle-end/48134
28738 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
28739 a value make sure to fold the statement.
28740
28741 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
28742
28743 PR target/43872
28744 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
28745 return condition with !cfun->calls_alloca.
28746
28747 2011-03-17 Richard Guenther <rguenther@suse.de>
28748
28749 PR bootstrap/48148
28750 * lto-cgraph.c (input_overwrite_node): Clear the abstract
28751 origin for decls in other ltrans units.
28752 (input_varpool_node): Likewise.
28753
28754 2011-03-17 Richard Guenther <rguenther@suse.de>
28755
28756 PR middle-end/48165
28757 * tree-object-size.c (compute_object_offset): Properly return
28758 the offset operand of MEM_REFs as sizetype.
28759
28760 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28761
28762 PR rtl-optimization/48141
28763 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
28764 * dse.c: Include params.h.
28765 (active_local_stores_len): New variable.
28766 (add_wild_read, dse_step1): Clear it when setting active_local_stores
28767 to NULL.
28768 (record_store, check_mem_read_rtx): Decrease it when removing
28769 from the chain.
28770 (scan_insn): Likewise. Increase it when adding to chain, if it
28771 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
28772 set active_local_stores to NULL before the addition.
28773 * Makefile.in (dse.o): Depend on $(PARAMS_H).
28774
28775 PR rtl-optimization/48141
28776 * dse.c (record_store): If no positions are needed in an insn
28777 that cannot be deleted, at least unchain it from active_local_stores.
28778
28779 2011-03-16 Dodji Seketeli <dodji@redhat.com>
28780
28781 PR debug/47510
28782 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
28783 (lookup_type_die_strip_naming_typedef): ... here.
28784 (get_context_die): Use it.
28785 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
28786 the anonymous struct named by the naming typedef.
28787
28788 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
28789
28790 PR target/48154
28791 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
28792 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
28793
28794 2011-03-16 Jeff Law <law@redhat.com>
28795
28796 * tree-vrp.c (identify_jump_threads): Slightly simplify type
28797 check for operands of conditional. Allow type to be a pointer.
28798
28799 2011-03-16 Richard Guenther <rguenther@suse.de>
28800
28801 PR tree-optimization/48149
28802 * fold-const.c (fold_binary_loc): Fold
28803 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
28804
28805 2011-03-16 Richard Guenther <rguenther@suse.de>
28806
28807 PR tree-optimization/26134
28808 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
28809 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
28810 (non_rewritable_mem_ref_base): Handle complex type component
28811 accesses, constrain offsets for vector and complex extracts
28812 more properly.
28813
28814 2011-03-16 Richard Guenther <rguenther@suse.de>
28815
28816 PR tree-optimization/48146
28817 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
28818 operands avoiding the need for renaming.
28819
28820 2011-03-16 Richard Guenther <rguenther@suse.de>
28821
28822 * gimple-fold.c (maybe_fold_reference): Open-code relevant
28823 constant folding. Move MEM_REF canonicalization first.
28824 Rely on fold_const_aggregate_ref for initializer folding.
28825 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
28826
28827 2011-03-16 Jakub Jelinek <jakub@redhat.com>
28828
28829 PR middle-end/48136
28830 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
28831 arg0/arg1 or their arguments are always fold converted to matching
28832 types.
28833
28834 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
28835 to nargs.
28836
28837 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28838
28839 PR lto/46944
28840 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
28841 Handle in-tree gold.
28842 (ld_vers): Extract binutils version for gold.
28843 (gcc_cv_ld_hidden): Handle gold here.
28844 (gcc_cv_lto_plugin): Determine level of linker plugin support.
28845 * configure: Regenerate.
28846 * config.in: Regenerate.
28847 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
28848 -fuse-linker-plugin otherwise.
28849 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
28850 (LINK_COMMAND_SPEC): Use it.
28851 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
28852
28853 2011-03-16 Jakub Jelinek <jakub@redhat.com>
28854
28855 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
28856 * calls.c: Remove debug.h include.
28857 (emit_call_1): Don't call virtual_call_token debug hook.
28858 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
28859 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
28860 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
28861 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
28862 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
28863 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
28864 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
28865 dwarf2out_virtual_call): Remove.
28866 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
28867 copy_call_info and virtual_call hooks.
28868 (dwarf2out_init): Don't initialize vcall_insn_table,
28869 debug_dcall_section and debug_vcall_section.
28870 (prune_unused_types): Don't mark nodes from dcall_table.
28871 (dwarf2out_finish): Don't output dcall or vcall tables.
28872 * final.c (final_scan_insn): Don't call direct_call or
28873 virtual_call debug hooks.
28874 * debug.h (struct gcc_debug_hooks): Remove direct_call,
28875 virtual_call_token, copy_call_info and virtual_call hooks.
28876 (debug_nothing_uid): Remove prototype.
28877 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
28878 copy_call_info and virtual_call hooks.
28879 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
28880 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
28881 * debug.c (do_nothing_debug_hooks): Likewise.
28882 (debug_nothing_uid): Remove.
28883 * doc/invoke.texi (-fenable-icf-debug): Remove.
28884 * common.opt (-fenable-icf-debug): Likewise.
28885
28886 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
28887 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
28888 call's MEM. Handle functions returning aggregate through a hidden
28889 first pointer. For virtual calls add clobbered pc to call arguments
28890 chain.
28891 * dwarf2out.c (gen_subprogram_die): Emit
28892 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
28893 can't be emitted.
28894
28895 PR debug/45882
28896 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
28897 * rtl.h (ENTRY_VALUE_EXP): Define.
28898 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
28899 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
28900 * print-rtl.c (print_rtx): Likewise.
28901 * gengtype.c (adjust_field_rtx_def): Likewise.
28902 * var-tracking.c (vt_add_function_parameter): Adjust
28903 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
28904 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
28905 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
28906 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
28907 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
28908
28909 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
28910 Call var_location debug hook even on CALL_INSNs.
28911 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
28912 * rtl.def (ENTRY_VALUE): New.
28913 * dwarf2out.c: Include cfglayout.h.
28914 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
28915 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
28916 (struct call_arg_loc_node): New type.
28917 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
28918 tail_call_site_count): New variables.
28919 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
28920 DW_TAG_GNU_call_site_parameter.
28921 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
28922 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
28923 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
28924 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
28925 and DW_AT_GNU_all_source_call_sites.
28926 (mem_loc_descriptor): Handle ENTRY_VALUE.
28927 (add_src_coords_attributes): Don't add enything if
28928 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
28929 (dwarf2out_abstract_function): Save and clear call_arg_location,
28930 call_site_count and tail_call_site_count around dwarf2out_decl call.
28931 (gen_call_site_die): New function.
28932 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
28933 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
28934 (dwarf2out_function_decl): Clear call_arg_locations,
28935 call_arg_loc_last, set call_site_count and tail_call_site_count
28936 to -1 and free block_map.
28937 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
28938 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
28939 followed by any real instructions.
28940 (dwarf2out_begin_function): Set call_site_count and
28941 tail_call_site_count to 0.
28942 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
28943 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
28944 attempt to force a DIE for it and worst case remove the attribute.
28945 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
28946 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
28947 the decl itself.
28948 * var-tracking.c: Include tm_p.h.
28949 (vt_stack_adjustments): For calls call note_register_arguments.
28950 (argument_reg_set): New variable.
28951 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
28952 ensure the VALUE is resolved.
28953 (call_arguments): New variable.
28954 (prepare_call_arguments): New function.
28955 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
28956 (struct expand_loc_callback_data): Add ignore_cur_loc field.
28957 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
28958 always use the best expression.
28959 (vt_expand_loc): Add ignore_cur_loc argument.
28960 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
28961 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
28962 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
28963 note for all calls.
28964 (vt_add_function_parameter): Use cselib_lookup_from_insn.
28965 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
28966 argument. Don't call cselib_preserve_only_values and
28967 cselib_reset_table.
28968 (note_register_arguments): New function.
28969 (vt_initialize): Compute argument_reg_set. Call
28970 vt_add_function_parameters before processing basic blocks instead of
28971 afterwards. For calls call prepare_call_arguments before calling
28972 cselib_process_insn.
28973 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
28974 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
28975 (var-tracking.o): Depend on $(TM_P_H).
28976 * cfglayout.h (insn_scope): New prototype.
28977 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
28978 * cfglayout.c (insn_scope): No longer static.
28979 * insn-notes.def (CALL_ARG_LOCATION): New.
28980 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
28981 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
28982 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
28983 nothing for DECL_EXTERNAL BLOCK_VARS.
28984
28985 2011-03-16 Alan Modra <amodra@gmail.com>
28986
28987 PR target/45844
28988 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
28989 create invalid offset address for vsx splat insn.
28990 * config/rs6000/predicates.md (splat_input_operand): New.
28991 * config/rs6000/vsx.md (vsx_splat_*): Use it.
28992
28993 2011-03-15 Xinliang David Li <davidxl@google.com>
28994
28995 PR c/47837
28996 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
28997 (normalize_preds): New function.
28998 (is_use_properly_guarded): Normalize def predicates.
28999
29000 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29001
29002 PR target/46788
29003 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
29004 in the output template.
29005
29006 2011-03-15 Richard Guenther <rguenther@suse.de>
29007
29008 PR middle-end/47650
29009 * tree-pretty-print.c (dump_function_declaration): Properly
29010 dump unprototyped and varargs function types.
29011
29012 2011-03-15 Richard Guenther <rguenther@suse.de>
29013
29014 PR tree-optimization/13954
29015 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
29016 and friends.
29017
29018 2011-03-15 Richard Guenther <rguenther@suse.de>
29019
29020 PR tree-optimization/48037
29021 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
29022 selects into BIT_FIELD_REFs.
29023 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
29024 vector select.
29025
29026 2011-03-15 Jakub Jelinek <jakub@redhat.com>
29027
29028 PR tree-optimization/48129
29029 * builtins.c (fold_builtin_snprintf): Convert to type of
29030 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
29031 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
29032
29033 2011-03-15 Richard Guenther <rguenther@suse.de>
29034
29035 PR tree-optimization/41490
29036 * tree-ssa-dce.c (propagate_necessity): Handle returns without
29037 value but with VUSE.
29038 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
29039 return statements.
29040 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
29041 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
29042 * tree-tailcall.c (find_tail_calls): Ignore returns.
29043
29044 2011-03-15 Richard Guenther <rguenther@suse.de>
29045
29046 PR middle-end/48031
29047 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
29048 or variable-indexed array accesses when in gimple form.
29049
29050 2011-03-15 Richard Guenther <rguenther@suse.de>
29051
29052 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
29053
29054 2011-03-15 Alan Modra <amodra@gmail.com>
29055
29056 PR target/48032
29057 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
29058 presume symbol_refs without a symbol_ref_decl are suitably
29059 aligned, nor other trees we may see here. Handle anchor symbols.
29060 (legitimate_constant_pool_address_p): Comment. Add mode param.
29061 Check cmodel=medium addresses. Adjust all calls.
29062 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
29063 creating cmodel=medium optimized access to locals.
29064 * config/rs6000/constraints.md (R): Pass QImode to
29065 legitimate_constant_pool_address_p.
29066 * config/rs6000/predicates.md (input_operand): Pass mode to
29067 legitimate_constant_pool_address_p.
29068 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
29069 Update prototype.
29070
29071 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
29072
29073 PR target/48053
29074 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
29075 64-bit constants being loaded into registers other than GPRs such
29076 as loading 0 into a VSX register.
29077
29078 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29079
29080 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
29081
29082 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29083
29084 PR middle-end/47917
29085 * builtins.c (fold_builtin_snprintf): New function.
29086 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
29087 (fold_builtin_4): Likewise.
29088
29089 PR middle-end/38878
29090 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
29091 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
29092 and C - X == X also strip nops from +/-/p+ operand.
29093 When optimizing -X == C, fold C to arg0's type.
29094
29095 PR debug/47946
29096 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
29097 emit it as add_AT_int instead of add_AT_unsigned.
29098
29099 2011-03-14 Tom Tromey <tromey@redhat.com>
29100
29101 * unwind-dw2.c: Include sys/sdt.h if it exists.
29102 (_Unwind_DebugHook): Use STAP_PROBE2.
29103 * config.in, configure: Rebuild.
29104 * configure.ac: Check for sys/sdt.h.
29105
29106 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
29107
29108 * config/i386/i386.md (ROUND_FLOOR): New constant.
29109 (ROUND_CEIL): Ditto.
29110 (ROUND_TRUNC): Ditto.
29111 (ROUND_MXCSR): Ditto.
29112 (ROUND_NO_EXC): Ditto.
29113 (rint<mode>2): Use new defines instead of numerical constants.
29114 (floor<mode>2): Ditto.
29115 (ceil<mode>2): Ditto.
29116 (btrunc<mode>2): Ditto.
29117 * config/i386/i386-builtin-types.def: Define ROUND function type
29118 aliases.
29119 * config/i386/i386.c (enum ix86_builtins): Add
29120 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
29121 (struct builtin_description): Add
29122 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
29123 (ix86_expand_sse_round): New static function.
29124 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
29125 function types.
29126 (ix86_builtin_vectorized_function): Handle
29127 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
29128
29129 2011-03-14 Tom Tromey <tromey@redhat.com>
29130
29131 * c-parser.c (c_parser_asm_string_literal): Clear
29132 warn_overlength_strings.
29133
29134 2011-03-14 Tom Tromey <tromey@redhat.com>
29135
29136 * c-parser.c (disable_extension_diagnostics): Save
29137 warn_overlength_strings.
29138 (restore_extension_diagnostics): Restore warn_overlength_strings.
29139
29140 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29141
29142 * BASE-VER: Change to 4.7.0.
29143
29144 2011-03-14 Richard Guenther <rguenther@suse.de>
29145
29146 PR middle-end/48098
29147 * tree.c (build_vector_from_val): Adjust assert to requirements
29148 and reality.
29149
29150 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29151
29152 PR bootstrap/48102
29153 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
29154
29155 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
29156
29157 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
29158 terms of target_flags_explicit. Adjust copyright year.
29159
29160 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
29161 * config/rs6000/t-freebsd: New file. Add override for
29162 LIB2FUNCS_EXTRA.
29163
29164 2011-03-13 Chris Demetriou <cgd@google.com>
29165
29166 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
29167 (-fno-diagnostics-show-option): this, to reflect current default.
29168 (-Werror=): Update text about -fno-diagnostics-show-option.
29169
29170 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
29171
29172 PR target/48053
29173 * config/rs6000/predicates.md (easy_vector_constant_add_self,
29174 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
29175 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
29176 mode is not V2DImode or V2DFmode.
29177 (vspltis_constant): Do not handle V2DImode and V2DFmode.
29178 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
29179 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
29180 registers to 0.
29181 (movdi_internal64): Likewise.
29182
29183 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
29184
29185 PR tree-optimization/47127
29186 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
29187 parameter.
29188 (set_cloog_options): Same.
29189 (scop_to_clast): Same.
29190 (print_clast_stmt): Do not call cloog_state_malloc and
29191 cloog_state_free.
29192 (print_generated_program): Same.
29193 (gloog): Same.
29194 * graphite-clast-to-gimple.h (cloog_state): Declared.
29195 (scop_to_clast): Adjust declaration.
29196 * graphite.c (cloog_state): Defined here.
29197 (graphite_initialize): Call cloog_state_malloc.
29198 (graphite_finalize): Call cloog_state_free.
29199
29200 2011-03-11 Jason Merrill <jason@redhat.com>
29201
29202 * attribs.c (lookup_attribute_spec): Take const_tree.
29203 * tree.h: Adjust.
29204
29205 2011-03-11 Joseph Myers <joseph@codesourcery.com>
29206
29207 * config/sparc/sparc.c (sparc_option_override): Use
29208 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
29209
29210 2011-03-11 Richard Guenther <rguenther@suse.de>
29211
29212 PR tree-optimization/48067
29213 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
29214 multiplication result will be only used once on the target
29215 stmt.
29216
29217 2011-03-11 Richard Guenther <rguenther@suse.de>
29218
29219 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
29220
29221 2011-03-11 Richard Guenther <rguenther@suse.de>
29222
29223 PR lto/48073
29224 * tree.c (find_decls_types_r): Do not walk types only reachable
29225 from IDENTIFIER_NODEs.
29226
29227 2011-03-11 Jakub Jelinek <jakub@redhat.com>
29228
29229 PR middle-end/48044
29230 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
29231 all vnode->force_output nodes as needed.
29232
29233 2011-03-11 Jason Merrill <jason@redhat.com>
29234
29235 PR c++/48069
29236 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
29237 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
29238
29239 2011-03-11 Martin Jambor <mjambor@suse.cz>
29240
29241 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
29242 cgraph_node.
29243
29244 2011-03-11 Jakub Jelinek <jakub@redhat.com>
29245
29246 PR tree-optimization/48063
29247 * ipa-inline.c (cgraph_decide_inlining): Don't try to
29248 inline functions called once if !tree_can_inline_p (node->callers).
29249
29250 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
29251
29252 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
29253 extra_objs.
29254 * config/score/score3.c: Delete.
29255 * config/score/score3.h: Delete.
29256 * config/score/mul-div.S: Delete.
29257 * config/score/sfp-machine.h: Add new file.
29258 * config/score/constraints.md: Add new file.
29259 * config/score/t-score-softfp: Add new file.
29260 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
29261 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
29262 (score7_extra_constraint): Delete.
29263 (score7_option_override): Remove unused code.
29264 * config/score/score.c: Remove score3 and score5 define and code.
29265 * config/score/score.h: Remove score3 and score5 define and code.
29266 * config/score/score.md: Remove score3 template and unusual insn.
29267 * config/score/score.opt: Remove score3 and score5 options.
29268
29269 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29270
29271 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
29272 when _HPUX_SOURCE is defined.
29273 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
29274
29275 2011-03-10 Jason Merrill <jason@redhat.com>
29276
29277 PR c++/48029
29278 * stor-layout.c (layout_type): Don't set structural equality
29279 on arrays of incomplete type.
29280 * tree.c (type_hash_eq): Handle comparing them properly.
29281
29282 2011-03-10 Jakub Jelinek <jakub@redhat.com>
29283
29284 PR debug/48043
29285 * config/s390/s390.c (s390_delegitimize_address): Make sure the
29286 result mode matches original rtl mode.
29287
29288 2011-03-10 Nick Clifton <nickc@redhat.com>
29289
29290 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
29291 (andsi3, andsi3_flags): Fix timings for three operand alternative.
29292
29293 2011-03-09 Jakub Jelinek <jakub@redhat.com>
29294
29295 PR rtl-optimization/47866
29296 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
29297 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
29298 if target wasn't scalar.
29299 * function.c (assign_stack_temp_for_type): Assert that neither
29300 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
29301 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
29302 macro.
29303 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
29304
29305 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29306
29307 * config/s390/s390-protos.h (s390_label_align): New prototype.
29308 * config/s390/s390.c (s390_label_align): New function.
29309 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
29310
29311 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
29312
29313 PR target/47755
29314 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
29315 V2DI/V2DF constants. Only all 0's or all 1's are easy.
29316 (output_vec_const_move): Ditto.
29317
29318 2011-03-08 Anatoly Sokolov <aesok@post.ru>
29319
29320 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
29321 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
29322 * config/mips/mips.c (mips_preferred_reload_class): Make static.
29323 Change 'rclass' argument and result type to reg_class_t.
29324 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29325
29326 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
29327
29328 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
29329 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
29330 (TARGET_MEMORY_MOVE_COST): Define.
29331 (avr_register_move_cost, avr_memory_move_cost): New Functions.
29332
29333 2011-03-08 Jakub Jelinek <jakub@redhat.com>
29334
29335 PR debug/47881
29336 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
29337 removed anything.
29338
29339 PR tree-optimization/48022
29340 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
29341 for EQ/NE_EXPR.
29342
29343 2011-03-07 Jakub Jelinek <jakub@redhat.com>
29344
29345 PR debug/47991
29346 * var-tracking.c (find_use_val): Return NULL for
29347 cui->sets && cui->store_p BLKmode MEMs.
29348
29349 2011-03-07 Anatoly Sokolov <aesok@post.ru>
29350
29351 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
29352 Remove.
29353 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
29354 xstormy16_print_operand_address): Remove.
29355 * config/stormy16/stormy16.c (xstormy16_print_operand,
29356 xstormy16_print_operand_address): Make static.
29357 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
29358
29359 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
29360
29361 PR target/47862
29362 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
29363 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
29364 before definition.
29365
29366 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
29367
29368 PR bootstrap/48000
29369 * cfgloopmanip.c (fix_bb_placements): Return immediately
29370 if FROM is BASE_LOOP's header.
29371
29372 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
29373
29374 * gimplify.c (gimplify_function_tree): Fix building calls
29375 to __builtin_return_address.
29376
29377 2011-03-07 Alan Modra <amodra@gmail.com>
29378
29379 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
29380 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
29381 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
29382 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
29383 return_mode args.
29384 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
29385 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
29386 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
29387 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
29388 * config/rs6000/rs6000.c
29389 (rs6000_elf_end_indicate_exec_stack): Rename to..
29390 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
29391 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
29392 (rs6000_file_start): ..here.
29393 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
29394 file scope variables.
29395 (call_ABI_of_interest): New function.
29396 (init_cumulative_args): Set above vars when function return value
29397 is a float, vector, or small struct.
29398 (rs6000_function_arg_advance_1): Likewise for function args.
29399 (rs6000_va_start): Set rs6000_passes_float if variable arg function
29400 references float args.
29401
29402 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
29403
29404 * doc/cfg.texi: Remove "See" before @ref.
29405 * doc/invoke.texi: Likewise.
29406
29407 2011-03-05 Jason Merrill <jason@redhat.com>
29408
29409 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
29410
29411 2011-03-05 Anthony Green <green@moxielogic.com>
29412
29413 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
29414
29415 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
29416
29417 PR rtl-optimization/47899
29418 * cfgloopmanip.c (fix_bb_placements): Fix first argument
29419 to flow_loop_nested_p when moving the loop upward.
29420
29421 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
29422
29423 PR target/47719
29424 * arm.md (movhi_insn_arch4): Accept any immediate constant.
29425
29426 2011-03-05 Jakub Jelinek <jakub@redhat.com>
29427
29428 PR tree-optimization/47967
29429 * ipa-cp.c (build_const_val): Return NULL instead of creating
29430 VIEW_CONVERT_EXPR for mismatching sizes.
29431 (ipcp_create_replace_map): Return NULL if build_const_val failed.
29432 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
29433 give up on versioning.
29434
29435 2011-03-05 Alan Modra <amodra@gmail.com>
29436
29437 PR target/47986
29438 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
29439 full cmodel medium/large lo_sum + high addresses.
29440
29441 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29442
29443 * config/s390/s390.c (s390_decompose_address): Reject non-literal
29444 pool references in UNSPEC_LTREL_OFFSET.
29445
29446 2011-03-04 Jan Hubicka <jh@suse.cz>
29447
29448 PR lto/47497
29449 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
29450 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
29451 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
29452 Add node pointers.
29453 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
29454 cgraph_add_thunk): Add node pointers.
29455 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
29456 associated to right node.
29457 (input_node): Update use of cgraph_same_body_alias
29458 and cgraph_add_thunk.
29459
29460 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
29461
29462 * config/i386/i386.opt (mprefer-avx128): New flag.
29463 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
29464 modes when the flag -mprefer-avx128 is on.
29465
29466 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
29467
29468 * dwarf2out.c (compare_loc_operands): Fix address handling.
29469
29470 2011-03-04 Alan Modra <amodra@gmail.com>
29471
29472 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
29473
29474 2011-03-04 Richard Guenther <rguenther@suse.de>
29475
29476 PR middle-end/47968
29477 * expmed.c (extract_bit_field_1): Prefer vector modes that
29478 vec_extract patterns can handle.
29479
29480 2011-03-04 Richard Guenther <rguenther@suse.de>
29481
29482 PR middle-end/47975
29483 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
29484
29485 2011-03-04 Richard Henderson <rth@redhat.com>
29486
29487 * explow.c (emit_stack_save): Remove 'after' parameter.
29488 (emit_stack_restore): Likewise.
29489 * expr.h: Update to match.
29490 * builtins.c, calls.c, stmt.c: Likewise.
29491 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
29492 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
29493 * function.c (expand_function_end): Insert the emit_stack_save
29494 sequence before parm_birth_insn instead of after.
29495
29496 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
29497
29498 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
29499 (ssse3_pmaddubsw128): Ditto.
29500 (ssse3_pmaddubsw): Ditto.
29501
29502 2011-03-03 Steve Ellcey <sje@cup.hp.com>
29503
29504 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
29505
29506 2011-03-03 Jakub Jelinek <jakub@redhat.com>
29507
29508 PR c/47963
29509 * gimplify.c (omp_add_variable): Only call omp_notice_variable
29510 on TYPE_SIZE_UNIT if it is a DECL.
29511
29512 PR debug/47283
29513 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
29514 first operand is not is_gimple_mem_ref_addr, try to fold it.
29515 If the operand still isn't is_gimple_mem_ref_addr, clear
29516 MEM_EXPR on op0.
29517
29518 2011-03-03 Richard Guenther <rguenther@suse.de>
29519
29520 PR middle-end/47283
29521 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
29522 match comment.
29523 (refs_may_alias_p_1): For release branches return true if
29524 we are confused by our input.
29525
29526 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29527
29528 * config/s390/s390.c (s390_function_value): Rename to ...
29529 (s390_function_and_libcall_value): ... this.
29530 (s390_function_value): New function.
29531 (s390_libcall_value): New function.
29532 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
29533 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
29534 target macro definitions.
29535 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
29536
29537 2011-03-02 Joseph Myers <joseph@codesourcery.com>
29538
29539 * config/i386/freebsd64.h (CC1_SPEC): Define.
29540 * config/i386/linux64.h (CC1_SPEC): Define.
29541 * config/i386/x86-64.h (CC1_SPEC): Don't define.
29542
29543 2011-03-02 Anatoly Sokolov <aesok@post.ru>
29544
29545 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
29546 Remove.
29547 * config/stormy16/stormy16.c: Include reload.h.
29548 (xstormy16_memory_move_cost): New function.
29549 (TARGET_MEMORY_MOVE_COST): Define.
29550
29551 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
29552
29553 PR rtl-optimization/47925
29554 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
29555 with side effects. Remove the more-specific check for volatile asms.
29556
29557 2011-03-02 Alan Modra <amodra@gmail.com>
29558
29559 PR target/47935
29560 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
29561 toc relative addresses for valid offsets.
29562
29563 2011-03-01 Richard Guenther <rguenther@suse.de>
29564
29565 PR tree-optimization/47890
29566 * tree-vect-loop.c (get_initial_def_for_induction): Set
29567 related stmt properly.
29568
29569 2011-03-01 Richard Guenther <rguenther@suse.de>
29570
29571 PR lto/47924
29572 * lto-streamer.c (lto_record_common_node): Also register
29573 the canonical type.
29574
29575 2011-03-01 Richard Guenther <rguenther@suse.de>
29576
29577 PR lto/46911
29578 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
29579 Do not stream DECL_ABSTRACT_ORIGIN.
29580 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
29581 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
29582 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29583 Do not stream DECL_ABSTRACT_ORIGIN.
29584 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
29585 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
29586
29587 2011-02-28 Anatoly Sokolov <aesok@post.ru>
29588
29589 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
29590 FUNCTION_VALUE_REGNO_P): Remove.
29591 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
29592 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
29593 Add 'outgoing' argument.
29594 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
29595 function.
29596 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29597 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29598
29599 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
29600
29601 PR debug/28047
29602 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
29603 (lookup_filename): Likewise.
29604 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
29605
29606 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
29607 Jakub Jelinek <jakub@redhat.com>
29608
29609 PR middle-end/47893
29610 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
29611 (assign_stack_local_1): Change last argument type to int.
29612 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
29613 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
29614 don't record padding space into frame_space_list nor use those areas.
29615 (assign_stack_local): Adjust caller.
29616 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
29617 of assign_stack_local, pass 0 as last argument.
29618 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
29619 callers.
29620
29621 2011-02-28 Jakub Jelinek <jakub@redhat.com>
29622
29623 PR debug/47283
29624 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
29625 Use target address_mode and pointer_mode hooks instead of hardcoded
29626 Pmode and ptr_mode. Handle some simple cases of extending if
29627 POINTERS_EXTEND_UNSIGNED < 0.
29628 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
29629 Call convert_debug_memory_address.
29630 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
29631 convert_debug_memory_address.
29632
29633 PR middle-end/46790
29634 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
29635 * configure: Regenerated.
29636 * config.in: Regenerated.
29637 * varasm.c (default_function_section): Return NULL
29638 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
29639
29640 2011-02-28 Martin Jambor <mjambor@suse.cz>
29641
29642 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
29643 the description to match the printed values.
29644
29645 2011-02-28 Richard Guenther <rguenther@suse.de>
29646
29647 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
29648 of the copied scope tree.
29649
29650 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29651
29652 * doc/extend.texi (Function Attributes): Avoid deeply (and
29653 wrongly) nested tables.
29654
29655 2011-02-27 Jakub Jelinek <jakub@redhat.com>
29656
29657 PR middle-end/47903
29658 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
29659 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
29660 r isn't op0 nor op1.
29661
29662 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
29663
29664 * config/avr/avr.md: Remove magic comment for emacs.
29665
29666 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
29667
29668 PR target/45261
29669 * config/avr/avr.c (avr_option_override): Use error on bad options.
29670 (avr_help): New function.
29671 (TARGET_HELP): Define.
29672
29673 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
29674
29675 PR target/42240
29676 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
29677 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
29678
29679 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
29680
29681 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
29682 (ARM Options): Ditto.
29683 (i386 and x86-64 Options): Ditto.
29684 (RX Options): Ditto.
29685 (SPARC Options): Ditto.
29686
29687 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
29688
29689 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
29690 FreeBSD 6 and later. Generally use cpu generic.
29691
29692 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
29693
29694 * doc/cpp.texi: Update copyright years.
29695
29696 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
29697
29698 PR target/46898
29699 * config/lm32/lm32.md (ashrsi3): Added needed variable.
29700
29701 2011-02-25 Jon Beniston <jon@beniston.com>
29702
29703 PR target/46898
29704 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
29705 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
29706 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
29707 (lm32_block_move_inline): Add type cast to remove warning.
29708 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
29709 (gen_int_relational): Move declarations to start of function.
29710
29711 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
29712
29713 PR tree-optimization/45470
29714 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
29715 can throw internally only.
29716 * tree-vect-stmts.c (vectorizable_call): Likewise.
29717
29718 2011-02-24 Anatoly Sokolov <aesok@post.ru>
29719
29720 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
29721 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29722 * config/stormy16/stormy16-protos.h
29723 (xstormy16_preferred_reload_class): Remove.
29724 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
29725 static. Change 'rclass' argument and return type to reg_class_t.
29726 (TARGET_PREFERRED_RELOAD_CLASS,
29727 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29728
29729 2011-02-24 Richard Guenther <rguenther@suse.de>
29730
29731 * lto-streamer-in.c (input_bb): Do not find referenced vars
29732 in debug statements.
29733
29734 2011-02-23 Jason Merrill <jason@redhat.com>
29735
29736 * common.opt (fabi-version): Document v5 and v6.
29737
29738 2011-02-23 Richard Guenther <rguenther@suse.de>
29739
29740 PR tree-optimization/47849
29741 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
29742
29743 2011-02-23 Jie Zhang <jie@codesourcery.com>
29744
29745 * opts-common.c (decode_cmdline_option): Print empty string
29746 argument as "" in decoded->orig_option_with_args_text.
29747 * gcc.c (execute): Print empty string argument as ""
29748 in the verbose output.
29749 (do_spec_1): Keep empty string argument.
29750
29751 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
29752
29753 * config.gcc: Declare score-* and crx-* obsolete.
29754
29755 2011-02-23 Jie Zhang <jie@codesourcery.com>
29756
29757 PR rtl-optimization/47763
29758 * web.c (web_main): Ignore naked clobber when replacing register.
29759
29760 2011-02-22 Anatoly Sokolov <aesok@post.ru>
29761
29762 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
29763 Remove.
29764
29765 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
29766
29767 PR doc/47848
29768 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
29769
29770 2011-02-22 Mike Stump <mikestump@comcast.net>
29771
29772 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
29773 assembler.
29774 * configure: Regenerate.
29775
29776 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
29777
29778 PR rtl-optimization/46002
29779 * ira-color.c (update_copy_costs): Change class intersection
29780 test to reg_class_contents[] test of 'hard_regno'.
29781
29782 2011-02-21 Joseph Myers <joseph@codesourcery.com>
29783
29784 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
29785 than Driver option.
29786 * config/hpux11.opt (mt): Likewise.
29787 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
29788 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
29789 * config/vax/elf.opt (mno-asm-pic): Likewise.
29790 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
29791
29792 2011-02-21 Mike Stump <mikestump@comcast.net>
29793
29794 PR target/47822
29795 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
29796 tree so we can get save the type.
29797 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
29798 for CFString instead of trying to use past the end of the builtins.
29799 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
29800 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
29801 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
29802 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
29803 Rename to darwin_builtin_cfstring.
29804 (darwin_init_cfstring_builtins): Return the built type.
29805
29806 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
29807
29808 PR target/47840
29809 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
29810 (_mm256_insert_epi64): Use _mm_insert_epi64.
29811
29812 2011-02-21 Anatoly Sokolov <aesok@post.ru>
29813
29814 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29815 * config/stormy16/stormy16-protos.h
29816 (xstormy16_mode_dependent_address_p): Remove.
29817 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
29818 Make static. Change return type to bool. Change argument type to
29819 const_rtx. Remove dead code.
29820 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29821
29822 2011-02-21 Richard Guenther <rguenther@suse.de>
29823
29824 PR lto/47820
29825 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
29826 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
29827 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
29828 TUs context.
29829 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29830 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
29831
29832 2011-02-20 Richard Guenther <rguenther@suse.de>
29833
29834 PR lto/47822
29835 * tree.c (free_lang_data_in_decl): Clean builtins from
29836 the TU decl BLOCK_VARS.
29837
29838 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
29839
29840 PR debug/47620
29841 PR debug/47630
29842 * haifa-sched.c (fix_tick_ready): Skip tick computation
29843 for debug insns.
29844
29845 2011-02-19 Richard Guenther <rguenther@suse.de>
29846
29847 PR lto/47647
29848 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
29849 Remove lazy BLOCK_VARS streaming.
29850 (lto_input_ts_block_tree_pointers): Likewise.
29851 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
29852
29853 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29854
29855 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
29856
29857 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29858
29859 * config/i386/biarch32.h, config/i386/mach.h,
29860 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
29861
29862 2011-02-19 Jakub Jelinek <jakub@redhat.com>
29863
29864 PR target/47800
29865 * config/i386/i386.md (peephole2 for shift and plus): Use
29866 operands[1] original mode in the first insn.
29867
29868 2011-02-18 Mike Stump <mikestump@comcast.net>
29869
29870 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
29871
29872 2011-02-18 Jan Hubicka <jh@suse.cz>
29873
29874 PR middle-end/47788
29875 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
29876 to zero when the function is not inlinable at all.
29877
29878 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29879
29880 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
29881 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29882 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
29883 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
29884 * config/pa/t-pa64: Likewise.
29885 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
29886
29887 2011-02-18 Jakub Jelinek <jakub@redhat.com>
29888
29889 PR driver/47787
29890 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
29891
29892 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29893
29894 PR target/47792
29895 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
29896
29897 2011-02-18 Anatoly Sokolov <aesok@post.ru>
29898
29899 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
29900 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
29901 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
29902 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
29903 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
29904 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
29905 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
29906 m32r_load_postinc_p, m32r_store_preinc_predec_p,
29907 m32r_legitimate_address_p): New functions.
29908 * config/m32r/constraints.md (constraint "S"): Don't use
29909 STORE_PREINC_PREDEC_P.
29910 (constraint "U"): Don't use LOAD_POSTINC_P.
29911
29912 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
29913
29914 PR rtl-optimization/46178
29915 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
29916 compute ira_hard_regno_cover_class[].
29917
29918 2011-02-18 Richard Guenther <rguenther@suse.de>
29919
29920 PR lto/47798
29921 * lto-streamer.h (lto_global_var_decls): Declare.
29922 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
29923 statics for global var processing.
29924
29925 2011-02-18 Richard Guenther <rguenther@suse.de>
29926
29927 PR tree-optimization/47737
29928 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
29929 edge dominance check.
29930
29931 2011-02-18 Jakub Jelinek <jakub@redhat.com>
29932
29933 PR debug/47780
29934 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
29935 avoid invalid rtx sharing.
29936
29937 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
29938
29939 * doc/cpp.texi (Obsolete Features): Add background on the
29940 origin of assertions.
29941
29942 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
29943
29944 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
29945 objc_abi == 2.
29946 * config/darwin.c (output_objc_section_asm_op): Added support for
29947 ABI v1 and v2.
29948 (is_objc_metadata): New.
29949 (darwin_objc2_section): New.
29950 (darwin_objc1_section): New.
29951 (machopic_select_section): Added support for ABI v1 and v2.
29952 (darwin_emit_objc_zeroed): New.
29953 (darwin_output_aligned_bss): Detect objc metadata and treat it
29954 appropriately.
29955 (darwin_asm_output_aligned_decl_common): Same.
29956 (darwin_asm_output_aligned_decl_local): Same.
29957 * config/darwin-sections.def: Updated for ABI v1 and v2.
29958 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
29959 compiling Objective-C code for the NeXT runtime, default to using
29960 ABI version 0 for 32-bit, and version 2 for 64-bit.
29961
29962 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29963
29964 * common.opt (optimize_fast): New Variable.
29965 * opts.c (default_options_optimization): Use opts->x_optimize_fast
29966 instead of local variable ofast.
29967
29968 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
29969
29970 * doc/invoke.texi (fobjc-abi-version): Documented.
29971 (fobjc-nilcheck): Documented.
29972 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
29973 version.
29974
29975 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29976
29977 PR driver/47390
29978 * common.opt (export-dynamic): New Driver option.
29979 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
29980
29981 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29982
29983 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
29984
29985 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
29986 Jan Hubicka <jh@suse.cz>
29987
29988 PR debug/47106
29989 PR debug/47402
29990 * cfgexpand.c (account_used_vars_for_block): Remove.
29991 (estimated_stack_frame_size): Use referenced vars.
29992 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
29993 that were referenced in the original function. Test src_fn
29994 rather than cfun. Drop redundant get_var_ann.
29995 (setup_one_parameter): Drop redundant get_var_ann.
29996 (declare_return_variable): Likewise.
29997 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
29998 (copy_arguments_for_versioning): Drop redundant get_var_ann.
29999 * ipa-inline.c (compute_inline_parameters): Do not compute
30000 disregard_inline_limits here.
30001 (compute_inlinable_for_current, pass_inlinable): New.
30002 (pass_inline_parameters): Require PROP_referenced_vars.
30003 * cgraphunit.c (cgraph_process_new_functions): Don't run
30004 compute_inline_parameters explicitly unless function is in SSA form.
30005 (cgraph_analyze_function): Set .disregard_inline_limits.
30006 * tree-sra.c (convert_callers): Compute inliner parameters
30007 only for functions already in SSA form.
30008
30009 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30010
30011 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
30012 -mlittle-endian-data.
30013
30014 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30015
30016 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
30017 -mno-fpu, not -fpu and -no-fpu.
30018 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
30019 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
30020
30021 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
30022
30023 PR target/43653
30024 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
30025 input reload with PLUS RTX.
30026
30027 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30028
30029 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
30030 of InverseVar(MDMX).
30031
30032 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30033
30034 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
30035 --m4-340.
30036
30037 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30038
30039 * config/mn10300/mn10300.opt (mno-crt0): New.
30040
30041 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30042
30043 * config/m68k/uclinux.opt (static-libc): New Driver option.
30044
30045 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30046
30047 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
30048
30049 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30050
30051 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
30052 %{muser-extend-enabled}.
30053
30054 2011-02-16 Richard Guenther <rguenther@suse.de>
30055
30056 PR tree-optimization/47738
30057 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
30058 the TODO from tree_predictive_commoning.
30059
30060 2011-02-15 Jeff Law <law@redhat.com>
30061
30062 Revert
30063 2011-01-25 Jeff Law <law@redhat.com>
30064
30065 PR rtl-optimization/37273
30066 * ira-costs.c (scan_one_insn): Detect constants living in memory and
30067 handle them like argument loads from stack slots. Do not double
30068 count memory for memory constants and argument loads from stack slots.
30069
30070 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
30071
30072 PR target/47755
30073 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
30074 mode for vector constants. Remove code that checks for TImode.
30075
30076 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30077
30078 PR debug/47106
30079 PR debug/47402
30080 * cgraph.h (compute_inline_parameters): Return void.
30081 * ipa-inline.c (compute_inline_parameters): Adjust.
30082
30083 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30084
30085 PR debug/47106
30086 PR debug/47402
30087 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
30088 rather than decl.
30089 * cfgexpand.c (estimated_stack_frame_size): Likewise.
30090 * ipa-inline.c (compute_inline_parameters): Adjust.
30091
30092 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30093
30094 PR debug/47106
30095 PR debug/47402
30096 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
30097 Adjust all users. Pass FN to...
30098 * tree-flow-inline.h (first_referenced_var): ... this. Add
30099 fn argument.
30100 * ipa-struct-reorg.c: Adjust.
30101 * tree-dfa.c: Adjust.
30102 * tree-into-ssa.c: Adjust.
30103 * tree-sra.c: Adjust.
30104 * tree-ssa-alias.c: Adjust.
30105 * tree-ssa-live.c: Adjust.
30106 * tree-ssa.c: Adjust.
30107 * tree-ssanames.c: Adjust.
30108 * tree-tailcall.c: Adjust.
30109
30110 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30111
30112 PR debug/47106
30113 PR debug/47402
30114 * tree-flow.h (referenced_var_lookup): Add fn parameter.
30115 Adjust all callers.
30116 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
30117 * tree-flow-inline.h: Adjust.
30118 * gimple-pretty-print.c: Adjust.
30119 * tree-into-ssa.c: Adjust.
30120 * tree-ssa.c: Adjust.
30121 * cfgexpand.c: Adjust.
30122
30123 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30124
30125 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
30126 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30127 (EXTRA_CONSTRAINT): Delete.
30128 * config/iq2000/constraints.md: New file.
30129 * config/iq2000/iq2000.md: Include it.
30130 (define_insn ""): Delete.
30131 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
30132 unsupported constraint letters from patterns.
30133 (call_value, call_value_internal1): Likewise.
30134 (call_value_multiple_internal1): Likewise.
30135
30136 2011-02-15 Nick Clifton <nickc@redhat.com>
30137
30138 * config/mn10300/mn10300.c: Include tm-constrs.h.
30139 (struct liw_data): New data structure describing an LIW candidate
30140 instruction.
30141 (extract_bundle): Use struct liw_data. Allow small integer
30142 operands for some instructions.
30143 (check_liw_constraints): Use struct liw_data. Remove swapped
30144 parameter. Add comments describing the checks. Fix bug when
30145 assigning the source of liw1 to the source of liw2.
30146 (liw_candidate): Delete. Code moved into extract_bundle.
30147 (mn10300_bundle_liw): Use struct liw_data. Check constraints
30148 before swapping.
30149 * config/mn10300/predicates.md (liw_operand): New predicate.
30150 Allows registers and small integer constants.
30151 * config/mn10300/constraints.md (O): New constraint. Accetps
30152 integers in the range -8 to +7 inclusive.
30153 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
30154 for moving a small integer into a register. Give this alternative
30155 LIW attributes.
30156 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
30157 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
30158 using the J,K,L and M constraints,
30159 (liw): Remove SI mode on second operands to allow for HI and QI
30160 mode values.
30161 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
30162 instruction.
30163
30164 2011-02-15 Richard Guenther <rguenther@suse.de>
30165
30166 PR tree-optimization/47743
30167 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
30168 for a non-type-compatible VN lookup bail out.
30169
30170 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30171
30172 * config/fr30/constraints.md: New file.
30173 * config/fr30/fr30.md: Include it.
30174 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
30175 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30176 (EXTRA_CONSTRAINT): Delete.
30177
30178 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30179
30180 * config/frv/constraints.md: New file.
30181 * config/frv/predicates.md: Include it.
30182 * config/frv/frv.c (reg_class_from_letter): Delete.
30183 (frv_option_override): Don't initialize it.
30184 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
30185 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
30186 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
30187 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
30188 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
30189 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30190 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
30191 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
30192 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
30193 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
30194 (REG_CLASS_FROM_CONSTRAINT): Delete.
30195
30196 2011-02-15 Jakub Jelinek <jakub@redhat.com>
30197
30198 PR middle-end/47581
30199 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
30200 if frame size is 0 in a leaf function.
30201
30202 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30203
30204 PR pch/14940
30205 * config/alpha/host-osf.c: New file.
30206 * config/alpha/x-osf: New file.
30207 * config.host (alpha*-dec-osf*): Use it.
30208
30209 2011-02-14 Anatoly Sokolov <aesok@post.ru>
30210
30211 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30212 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
30213 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
30214 (rx_mode_dependent_address_p): ...this. Make static. Change argument
30215 type to const_rtx.
30216 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30217
30218 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30219
30220 * config/stormy16/constraints.md: New file.
30221 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
30222 Use satisfies_constraint_Q and satisfies_constraint_R.
30223 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
30224 Delete.
30225 (xstormy16_legitiamte_address_p): Declare.
30226 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
30227 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30228 (EXTRA_CONSTRAINT): Delete.
30229 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
30230 Un-staticize.
30231 (xstormy16_extra_constraint_p): Delete.
30232
30233 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
30234
30235 PR tree-optimization/46494
30236 * loop-unroll.c (split_edge_and_insert): Adjust comment.
30237 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
30238 (pass_rtl_loop_done): Add TODO_verify_flow.
30239 * fwprop.c (pass_rtl_fwprop): Likewise.
30240 * modulo-sched.c (pass_sms): Likewise.
30241 * tree-ssa-dom.c (pass_dominator): Likewise.
30242 * tree-ssa-loop-ch.c (pass_ch): Likewise.
30243 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
30244 (pass_tree_loop_done): Likewise.
30245 * tree-ssa-pre.c (execute_pre): Likewise.
30246 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
30247 * tree-ssa-sink.c (pass_sink_code): Likewise.
30248 * tree-vrp.c (pass_vrp): Likewise.
30249
30250 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30251
30252 * config/v850/constraints.md: New file.
30253 * config/v850/v850.md: Include it.
30254 * config/v850/predicates.md (reg_or_0_operand): Use
30255 satisfies_constraint_G.
30256 (special_symbolref_operand): Use satisfies_constraint_K.
30257 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
30258 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
30259 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
30260 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
30261 (EXTRA_CONSTRAINT): Delete.
30262 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
30263 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
30264 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
30265
30266 2011-02-14 Anatoly Sokolov <aesok@post.ru>
30267
30268 PR target/47696
30269 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
30270 description.
30271
30272 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30273
30274 * config/mcore/constraints.md: New file.
30275 * config/mcore/mcore.md: Include it.
30276 * config/mcore/mcore.c (reg_class_from_letter): Delete.
30277 * config/mcore/mcore.h (reg_class_from_letter): Delete.
30278 (REG_CLASS_FROM_LETTER): Delete.
30279 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
30280 insn_const_int_ok_for_constraint.
30281 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
30282 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
30283 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30284 (EXTRA_CONSTRAINT): Delete.
30285
30286 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30287
30288 PR ada/41929
30289 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
30290 (IS_SIGHANDLER): Define.
30291 (sparc64_is_sighandler): New function, split off from
30292 sparc64_fallback_frame_state.
30293 (sparc_is_sighandler): New function, split off from
30294 sparc_fallback_frame_state.
30295 (sparc64_fallback_frame_state): Merge with ...
30296 (sparc_fallback_frame_state): ... this into ...
30297 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
30298 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
30299 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
30300 stack instead of hardcoded offsets.
30301
30302 2011-02-14 Andriy Gapon <avg@freebsd.org>
30303
30304 PR target/45808
30305 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
30306
30307 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30308
30309 * configure: Regenerate.
30310
30311 2011-02-12 Joseph Myers <joseph@codesourcery.com>
30312
30313 PR driver/45731
30314 * gcc.c (asm_options): Correct spec matching --target-help.
30315
30316 2011-02-12 Martin Jambor <mjambor@suse.cz>
30317
30318 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
30319 to gimple call error.
30320
30321 2011-02-12 Mike Stump <mikestump@comcast.net>
30322
30323 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
30324 comments in backslash regions.
30325
30326 2011-02-12 Mike Stump <mikestump@comcast.net>
30327 Jakub Jelinek <jakub@redhat.com>
30328 Iain Sandoe <iains@gcc.gnu.org>
30329
30330 PR target/47324
30331 * dwarf2out.c (output_cfa_loc): When required, apply the
30332 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
30333 (output_loc_sequence): Likewise.
30334 (output_loc_operands_raw): Likewise.
30335 (output_loc_sequence_raw): Likewise.
30336 (output_cfa_loc): Likewise.
30337 (output_loc_list): Suppress register number adjustment when
30338 calling output_loc_sequence()
30339 (output_die): Likewise.
30340
30341 2011-02-12 Anatoly Sokolov <aesok@post.ru>
30342
30343 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
30344 Remove macros.
30345 * config/xtensa/xtensa.c (xtensa_register_move_cost,
30346 xtensa_memory_move_cost): New functions.
30347 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
30348
30349 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
30350
30351 PR lto/47225
30352 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
30353 in the current directory.
30354 * configure: Rebuilt.
30355
30356 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
30357
30358 * config/darwin.c (darwin_override_options): Add a hunk missed
30359 from the commit of r168571. Trim comment line lengths and
30360 correct indents of the preceding block.
30361
30362 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
30363
30364 * gcc.c (driver_handle_option): Concatenate the argument to -F with
30365 the switch.
30366
30367 2011-02-11 Joseph Myers <joseph@codesourcery.com>
30368
30369 * common.opt (nostartfiles): New Driver option.
30370
30371 2011-02-11 Xinliang David Li <davidxl@google.com>
30372
30373 PR tree-optimization/47707
30374 * tree-chrec.c (convert_affine_scev): Keep type precision.
30375
30376 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
30377
30378 PR tree-optimization/47420
30379 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
30380
30381 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
30382
30383 PR rtl-optimization/47614
30384 * rtl.h (check_for_inc_dec): Declare.
30385 * dse.c (check_for_inc_dec): Externalize...
30386 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
30387 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
30388
30389 2011-02-11 Joseph Myers <joseph@codesourcery.com>
30390
30391 PR driver/47678
30392 * gcc.c (main): Do not compile inputs if there were errors in
30393 option handling.
30394 * opts-common.c (read_cmdline_option): Check for wrong language
30395 after other error checks.
30396
30397 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
30398
30399 * cgraph.c: Fix comment typos.
30400 * cgraph.h: Likewise.
30401 * cgraphunit.c: Likewise.
30402 * ipa-cp.c: Likewise.
30403 * ipa-inline.c: Likewise.
30404 * ipa-prop.c: Likewise.
30405 * ipa-pure-const.c: Likewise.
30406 * ipa-ref.c: Likewise.
30407 * ipa-reference.c: Likewise.
30408
30409 2011-02-11 Jakub Jelinek <jakub@redhat.com>
30410
30411 PR debug/47684
30412 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
30413
30414 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30415
30416 PR testsuite/47400
30417 * doc/sourcebuild.texi (Require Support): Document
30418 dg-require-ascii-locale.
30419
30420 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
30421
30422 * doc/lto.texi (Write summary): Fix missing parentheses.
30423
30424 2011-02-10 DJ Delorie <dj@redhat.com>
30425
30426 * config/m32c/m32c.c (m32c_option_override): Disable
30427 -fcombine-stack-adjustments until flag value tracking and compare
30428 optimization can be rewritten.
30429
30430 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
30431
30432 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
30433 PROCESSOR_POWER7.
30434 (PROCESSOR_DEFAULT64): Likewise.
30435
30436 2011-02-10 Richard Henderson <rth@redhat.com>
30437
30438 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
30439 change from 2011-02-03.
30440 * config/rx/rx.c (flags_from_code): Likewise.
30441 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
30442 is valid, n/pz otherwise.
30443 (rx_select_cc_mode): Return CCmode if Y is not zero.
30444
30445 2011-02-10 Richard Guenther <rguenther@suse.de>
30446
30447 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
30448
30449 2011-02-10 Richard Guenther <rguenther@suse.de>
30450
30451 PR tree-optimization/47677
30452 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
30453
30454 2011-02-10 Jakub Jelinek <jakub@redhat.com>
30455
30456 PR target/47665
30457 * combine.c (make_compound_operation): Only change shifts into
30458 multiplication for SCALAR_INT_MODE_P.
30459
30460 2011-02-10 Jie Zhang <jie@codesourcery.com>
30461
30462 PR testsuite/47622
30463 Revert
30464 2011-02-05 Jie Zhang <jie@codesourcery.com>
30465 PR debug/42631
30466 * web.c (entry_register): Don't clobber the number of the
30467 first uninitialized reference in used[].
30468
30469 2011-02-09 Richard Guenther <rguenther@suse.de>
30470
30471 PR tree-optimization/47664
30472 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
30473 all edges again.
30474
30475 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
30476
30477 PR target/46481
30478 PR target/47032
30479 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
30480 PROCESSOR_POWER7.
30481 (PROCESSOR_DEFAULT64): Same.
30482 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
30483
30484 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30485
30486 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
30487
30488 2011-02-09 Martin Jambor <mjambor@suse.cz>
30489
30490 PR middle-end/45505
30491 * tree-sra.c (struct access): New flags grp_scalar_read and
30492 grp_scalar_write. Changed description of assignment read and write
30493 flags.
30494 (dump_access): Dump new flags, reorder all of them.
30495 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
30496 to detect multiple scalar reads.
30497 (analyze_access_subtree): Use the new scalar read write flags instead
30498 of the old flags. Adjusted comments.
30499
30500 2011-02-08 DJ Delorie <dj@redhat.com>
30501
30502 PR target/47548
30503 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
30504 patterns.
30505
30506 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30507
30508 * config/m68k/uclinux.opt: New.
30509 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
30510
30511 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30512
30513 * config/cris/elf.opt (sim): New Driver option.
30514
30515 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30516
30517 * config/xtensa/elf.opt: New.
30518 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
30519
30520 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30521
30522 * config/vax/elf.opt: New.
30523 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
30524
30525 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30526
30527 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
30528
30529 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30530
30531 * config/gnu-user.opt: New.
30532 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
30533 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
30534 *-*-uclinux*): Use gnu-user.opt.
30535
30536 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
30537
30538 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
30539 * config/i386/gnu.h (CPP_SPEC): Likewise.
30540
30541 2011-02-08 Ian Lance Taylor <iant@google.com>
30542
30543 * common.opt (fcx-limited-range): Add SetByCombined flag.
30544 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
30545 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
30546 (fassociative-math, freciprocal-math): Likewise.
30547 (funsafe-math-optimizations): Likewise.
30548 * opth-gen.awk: Handle SetByCombined.
30549 * optc-gen.awk: Likewise.
30550 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
30551 (set_unsafe_math_optimizations_flags): Likewise.
30552 * doc/options.texi (Option properties): Document SetByCombined.
30553
30554 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30555
30556 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
30557 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
30558 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
30559 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
30560 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
30561
30562 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
30563
30564 PR tree-optimization/46834
30565 PR tree-optimization/46994
30566 PR tree-optimization/46995
30567 * graphite-sese-to-poly.c (used_outside_reduction): New.
30568 (detect_commutative_reduction): Call used_outside_reduction.
30569 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
30570 translate_scalar_reduction_to_array only when at least one
30571 loop-phi/close-phi tuple has been detected.
30572
30573 2011-02-08 Richard Guenther <rguenther@suse.de>
30574
30575 PR middle-end/47639
30576 * tree-vect-generic.c (expand_vector_operations_1): Update
30577 stmts here ...
30578 (expand_vector_operations): ... not here. Cleanup EH info
30579 and the CFG if required.
30580
30581 2011-02-08 Richard Guenther <rguenther@suse.de>
30582
30583 PR tree-optimization/47641
30584 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
30585 require type compatibility.
30586
30587 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30588
30589 * gimple-low.c (lower_function_body): Don't remove the location of
30590 the return statement here.
30591 (lower_gimple_return): Do it here instead but only if the return
30592 statement is actually used twice.
30593
30594 2011-02-08 Richard Guenther <rguenther@suse.de>
30595
30596 PR tree-optimization/47632
30597 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
30598 unused up_to_stmt parameter, return whether cfg-cleanup is
30599 necessary, remove EH info properly.
30600 (forward_propagate_into_gimple_cond): Adjust caller.
30601 (forward_propagate_into_cond): Likewise.
30602 (forward_propagate_comparison): Likewise.
30603 (tree_ssa_forward_propagate_single_use_vars): Make
30604 forward_propagate_comparison case similar to the two others.
30605
30606 2011-02-08 Nick Clifton <nickc@redhat.com>
30607
30608 * config/mn10300/mn10300.opt (mliw): New command line option.
30609 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
30610 (liw_bundling): New automaton.
30611 (liw): New attribute.
30612 (liw_op): New attribute.
30613 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
30614 (movsi_internal): Add LIW attributes.
30615 (andsi3): Likewise.
30616 (iorsi3): Likewise.
30617 (xorsi3): Likewise.
30618 (addsi3): Separate register and immediate alternatives.
30619 Add LIW attributes.
30620 (subsi3): Likewise.
30621 (cmpsi): Likewise.
30622 (aslsi3): Likewise.
30623 (lshrsi3): Likewise.
30624 (ashrsi3): Likewise.
30625 (liw): New pattern.
30626 * config/mn10300/mn10300.c (liw_op_names): New
30627 (mn10300_print_operand): Handle 'W' operand descriptor.
30628 (extract_bundle): New function.
30629 (check_liw_constraints): New function.
30630 (liw_candidate): New function.
30631 (mn10300_bundle_liw): New function.
30632 (mn10300_reorg): New function.
30633 (TARGET_MACHINE_DEPENDENT_REORG): Define.
30634 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
30635 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
30636 __LIW__ or __NO_LIW__.
30637 * doc/invoke.texi: Describe the -mliw command line option.
30638
30639 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30640
30641 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
30642 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
30643 pthread_mutex_unlock): Remove.
30644 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
30645 * config/pa/t-pa64: Likewise.
30646 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
30647 shared libc if not linking against libpthread.
30648 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30649
30650 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
30651
30652 PR target/47558
30653 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
30654 on 10.6 and later to ensure that we always use the unwinder from
30655 the system. Only add -no_compact_unwind when tarteting darwin
30656 10.6 or later.
30657
30658 2011-02-07 Steve Ellcey <sje@cup.hp.com>
30659
30660 PR target/46997
30661 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
30662 (vec_interleave_lowv2sf): Ditto.
30663 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
30664 (vec_extract_oddv2sf): Ditto.
30665
30666 2011-02-07 Mike Stump <mikestump@comcast.net>
30667
30668 PR target/42333
30669 Add __ieee_divdc3 entry point.
30670 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
30671 entry point.
30672 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
30673 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
30674 * config/darwin.c (darwin_rename_builtins): Add.
30675 * config/darwin-protos.h (darwin_rename_builtins): Add.
30676
30677 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
30678
30679 PR target/47636
30680 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
30681 for the condition.
30682
30683 2011-02-07 Mike Stump <mikestump@comcast.net>
30684
30685 * config/darwin.opt (mmacosx-version-min): Update default OS version.
30686
30687 2011-02-07 Denis Chertykov <chertykov@gmail.com>
30688
30689 PR target/47534
30690 * config/avr/libgcc.S (exit): Move .endfunc
30691
30692 2011-02-07 Richard Guenther <rguenther@suse.de>
30693
30694 PR tree-optimization/47615
30695 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
30696 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
30697 (run_scc_vn): Initialize it.
30698 (visit_reference_op_load): Use it.
30699 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
30700
30701 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30702
30703 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
30704 DImode trapping arithmetic libfuncs.
30705
30706 2011-02-07 Richard Guenther <rguenther@suse.de>
30707
30708 PR tree-optimization/47621
30709 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
30710 two duplicates ...
30711 (execute_update_addresses_taken): ... here. Make it more
30712 conservative in what we accept.
30713
30714 2011-02-06 Joseph Myers <joseph@codesourcery.com>
30715
30716 * config/sparc/freebsd.h (ASM_SPEC): Define.
30717 * config/sparc/vxworks.h (ASM_SPEC): Define.
30718
30719 2011-02-06 Joseph Myers <joseph@codesourcery.com>
30720
30721 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30722
30723 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
30724
30725 * doc/invoke.texi: Remove reference to compiler internals from
30726 user documentation.
30727
30728 * reg-notes.def: Remove REG_VALUE_PROFILE.
30729 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
30730
30731 2011-02-05 Jakub Jelinek <jakub@redhat.com>
30732
30733 PR middle-end/47610
30734 * varasm.c (default_section_type_flags): If decl is NULL,
30735 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
30736
30737 2011-02-05 Jie Zhang <jie@codesourcery.com>
30738
30739 PR debug/42631
30740 * web.c (entry_register): Don't clobber the number of the
30741 first uninitialized reference in used[].
30742
30743 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
30744
30745 PR tree-optimization/46194
30746 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
30747 (build_classic_dist_vector_1): Do not represent classic distance
30748 vectors when the access functions are variating in different loops.
30749
30750 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30751
30752 * config/mips/iris6.opt: New.
30753 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
30754
30755 2011-02-04 Richard Henderson <rth@redhat.com>
30756 Steve Ellcey <sje@cup.hp.com>
30757
30758 PR target/46997
30759 * config/ia64/predicates.md (mux1_brcst_element): New.
30760 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
30761 * config/ia64/ia64.c (ia64_unpack_assemble): New.
30762 (ia64_unpack_sign): New.
30763 (ia64_expand_unpack): Rewrite using new routines.
30764 (ia64_expand_widen_sum): Ditto.
30765 (ia64_expand_dot_prod_v8qi): Ditto.
30766 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
30767 routines, add endian check.
30768 (pmpy2_even): Rename from pmpy2_r, add endian check.
30769 (pmpy2_odd): Rename from pmpy2_l, add endian check.
30770 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
30771 (vec_widen_smult_hi_v4hi): Ditto.
30772 (vec_widen_umult_lo_v4hi): Ditto.
30773 (vec_widen_umult_hi_v4hi): Ditto.
30774 (mulv2si3): Change endian checks.
30775 (sdot_prodv4hi): Rewrite with new calls.
30776 (udot_prodv4hi): New.
30777 (vec_pack_ssat_v4hi): Add endian check.
30778 (vec_pack_usat_v4hi): Ditto.
30779 (vec_pack_ssat_v2si): Ditto.
30780 (max1_even): Rename from max1_r, add endian check.
30781 (max1_odd): Rename from max1_l, add endian check.
30782 (*mux1_rev): Format change.
30783 (*mux1_mix): Ditto.
30784 (*mux1_shuf): Ditto.
30785 (*mux1_alt): Ditto.
30786 (*mux1_brcst_v8qi): Use new predicate.
30787 (vec_extract_evenv8qi): Remove endian check.
30788 (vec_extract_oddv8qi): Ditto.
30789 (vec_interleave_lowv4hi): Format change.
30790 (vec_interleave_highv4hi): Ditto.
30791 (mix2_even): Rename from mix2_r, add endian check.
30792 (mix2_odd): Rename from mux2_l, add endian check.
30793 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
30794 (vec_extract_evenodd_helper): Format change.
30795 (vec_extract_evenv4hi): Remove endian check.
30796 (vec_extract_oddv4hi): Remove endian check.
30797 (vec_interleave_lowv2si): Format change.
30798 (vec_interleave_highv2si): Format change.
30799 (vec_initv2si): Remove endian check.
30800 (vecinit_v2si): Add endian check.
30801 (reduc_splus_v2sf): Add endian check.
30802 (reduc_smax_v2sf): Ditto.
30803 (reduc_smin_v2sf): Ditto.
30804 (vec_initv2sf): Remove endian check.
30805 (fpack): Add endian check.
30806 (fswap): Add endian check.
30807 (vec_interleave_highv2sf): Add endian check.
30808 (vec_interleave_lowv2sf): Add endian check.
30809 (fmix_lr): Add endian check.
30810 (vec_setv2sf): Format change.
30811 (*vec_extractv2sf_0_be): Use shift to extract operand.
30812 (*vec_extractv2sf_1_be): New.
30813 (vec_pack_trunc_v4hi): Add endian check.
30814 (vec_pack_trunc_v2si): Format change.
30815
30816 2011-02-04 Jakub Jelinek <jakub@redhat.com>
30817
30818 PR inline-asm/23200
30819 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
30820 do bb, locus and block comparison and disallow loads if it is not set.
30821 (stmt_is_replaceable_p): New function.
30822 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
30823 callers.
30824 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
30825 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
30826 SSA_NAME_DEF_STMT.
30827 * tree-flow.h (stmt_is_replaceable_p): New prototype.
30828
30829 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30830
30831 * config/rs6000/xilinx.opt: New.
30832 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
30833
30834 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30835
30836 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
30837
30838 2011-02-03 Anatoly Sokolov <aesok@post.ru>
30839
30840 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
30841 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
30842 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
30843 secondary_reload_info, xtensa_secondary_reload): Remove.
30844 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
30845 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
30846 (xtensa_preferred_reload_class): Make static. Change return and
30847 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
30848 Use CONST_DOUBLE_P predicate.
30849 (xtensa_preferred_output_reload_class): New function.
30850 (xtensa_secondary_reload): Make static.
30851
30852 2011-02-03 Joseph Myers <joseph@codesourcery.com>
30853
30854 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
30855 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
30856 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
30857
30858 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30859
30860 PR middle-end/31490
30861 * output.h (SECTION_RELRO): Define.
30862 (SECTION_MACH_DEP): Adjust.
30863 (get_variable_section): New prototype.
30864 * varpool.c (varpool_finalize_named_section_flags): New function.
30865 (varpool_assemble_pending_decls): Call it.
30866 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
30867 * cgraphunit.c (cgraph_output_in_order): Call
30868 varpool_finalize_named_section_flags.
30869 * varasm.c (get_section): Allow section flags conflicts between
30870 relro and read-only sections if the section hasn't been declared yet.
30871 Set SECTION_OVERRIDE after diagnosing section type conflict.
30872 (get_variable_section): No longer static.
30873 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
30874 readonly sections that need relocations.
30875 (decl_readonly_section_1): New function.
30876 (decl_readonly_section): Use it.
30877
30878 Revert:
30879 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
30880 Steve Ellcey <sje@cup.hp.com>
30881
30882 PR middle-end/31490
30883 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
30884 if section attribute used.
30885
30886 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30887
30888 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
30889 * config/darwin.c (SECTION_NO_ANCHOR): Define.
30890 (darwin_init_sections): Remove assertion.
30891
30892 2011-02-03 Nick Clifton <nickc@redhat.com>
30893
30894 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
30895 lt and ge.
30896 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
30897 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
30898 instead of "n" and "pz".
30899 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
30900 CC_FLAG_S.
30901
30902 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30903
30904 PR target/47312
30905 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
30906 fma, expand FMA_EXPR as fma{,f,l} call.
30907
30908 PR lto/47274
30909 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
30910 copy them into a unsigned char variable and pass address of it to
30911 lto_output_data_stream.
30912
30913 PR target/47564
30914 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
30915 around backend_init_target and lang_dependent_init_target calls.
30916 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
30917 (verify_cgraph_node): Don't call set_cfun here. Use
30918 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
30919 Set error_found for incorrectly represented calls to thunks.
30920
30921 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
30922
30923 PR debug/43092
30924 PR rtl-optimization/43494
30925 * rtl.h (for_each_inc_dec_fn): New type.
30926 (for_each_inc_dec): Declare.
30927 * rtlanal.c (struct for_each_inc_dec_ops): New type.
30928 (for_each_inc_dec_find_inc_dec): New fn.
30929 (for_each_inc_dec_find_mem): New fn.
30930 (for_each_inc_dec): New fn.
30931 * dse.c (struct insn_size): Remove.
30932 (replace_inc_dec, replace_inc_dec_mem): Remove.
30933 (emit_inc_dec_insn_before): New fn.
30934 (check_for_inc_dec): Use it, along with for_each_inc_dec.
30935 (canon_address): Pass mem modes to cselib_lookup.
30936 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
30937 (cselib_lookup_from_insn): Likewise.
30938 (cselib_subst_to_values): Likewise.
30939 * cselib.c (find_slot_memmode): New var.
30940 (cselib_find_slot): New fn. Use it instead of
30941 htab_find_slot_with_hash everywhere.
30942 (entry_and_rtx_equal_p): Use find_slot_memmode.
30943 (autoinc_split): New fn.
30944 (rtx_equal_for_cselib_p): Rename and implement in terms of...
30945 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
30946 Deal with autoinc. Special-case recursion into MEMs.
30947 (cselib_hash_rtx): Likewise.
30948 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
30949 address and MEM modes.
30950 (cselib_subst_to_values): Add memmode, pass it on.
30951 Deal with autoinc.
30952 (cselib_lookup): Add memmode argument, pass it on.
30953 (cselib_lookup_from_insn): Add memmode.
30954 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
30955 (struct cselib_record_autoinc_data): New.
30956 (cselib_record_autoinc_cb): New fn.
30957 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
30958 mode to cselib_lookup. Reset autoinced REGs here instead of...
30959 (cselib_process_insn): ... here.
30960 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
30961 to cselib_lookup.
30962 (add_uses): Likewise, also to cselib_subst_to_values.
30963 (add_stores): Likewise.
30964 * sched-deps.c (add_insn_mem_dependence): Pass mode to
30965 cselib_subst_to_values.
30966 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
30967 * gcse.c (do_local_cprop): Adjusted.
30968 * postreload.c (reload_cse_simplify_set): Adjusted.
30969 (reload_cse_simplify_operands): Adjusted.
30970 * sel-sched-dump (debug_mem_addr_value): Pass mode.
30971
30972 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
30973
30974 PR tree-optimization/45122
30975 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
30976 unsafe assumptions when there's more than one loop exit.
30977
30978 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30979
30980 PR target/47272
30981 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30982 Document using vector double with the load/store builtins, and
30983 that the load/store builtins always use Altivec instructions.
30984
30985 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
30986 to use altivec memory instructions, even on VSX.
30987 (vector_altivec_store_<mode>): Ditto.
30988
30989 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
30990 function.
30991
30992 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30993 V2DF, V2DI support to load/store overloaded builtins.
30994
30995 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
30996 altivec load/store builtins for V2DF/V2DI types.
30997
30998 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30999 set avoid indexed addresses on power6 if -maltivec.
31000 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
31001 vector_altivec_load/vector_altivec_store builtins.
31002 (altivec_expand_st_builtin): Ditto.
31003 (altivec_expand_builtin): Add VSX memory builtins.
31004 (rs6000_init_builtins): Add V2DI types to internal types.
31005 (altivec_init_builtins): Add support for V2DF/V2DI altivec
31006 load/store builtins.
31007 (rs6000_address_for_altivec): Insure memory address is appropriate
31008 for Altivec.
31009
31010 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
31011 vec_vsx_ld and vec_vsx_st.
31012 (vsx_store_<mode>): Ditto.
31013
31014 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
31015 variables to hold long long types for VSX vector memory builtins.
31016 (RS6000_BTI_unsigned_long_long): Ditto.
31017 (long_long_integer_type_internal_node): Ditti.
31018 (long_long_unsigned_type_internal_node): Ditti.
31019
31020 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
31021 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
31022 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
31023
31024 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
31025 short cuts.
31026 (vec_vsx_st): Ditto.
31027
31028 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31029
31030 * config/pa/pa-hpux10.opt: New.
31031 * config/hpux11.opt (pthread): New Driver option.
31032 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
31033 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
31034
31035 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31036
31037 * config/ia64/vms.opt: New.
31038 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
31039
31040 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
31041
31042 PR target/47580
31043 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
31044 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
31045 generator functions.
31046 (vsx_floatuns<VSi><mode>2): Ditto.
31047 (vsx_fix_trunc<mode><VSi>2): Ditto.
31048 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
31049
31050 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31051
31052 * config/i386/djgpp.opt (posix): New Driver option.
31053
31054 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
31055
31056 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
31057 Move to the unsupported targets list.
31058
31059 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
31060
31061 PR rtl-optimization/47525
31062 * df-scan.c: Update copyright years.
31063 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
31064 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
31065
31066 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31067
31068 * config/i386/sysv4.h (TARGET_VERSION): Remove.
31069 (SUBTARGET_RETURN_IN_MEMORY): Remove.
31070 (ASM_OUTPUT_ASCII): Remove.
31071 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
31072
31073 2011-02-02 Jeff Law <law@redhat.com>
31074
31075 PR middle-end/47543
31076 * reload.c (find_reloads_address): Handle reg+d address where both
31077 components are invalid by reloading the entire address.
31078
31079 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
31080 Richard Guenther <rguenther@suse.de>
31081
31082 PR tree-optimization/40979
31083 PR bootstrap/47044
31084 * passes.c (init_optimization_passes): After LIM call copy_prop
31085 and DCE to clean up.
31086 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
31087
31088 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
31089
31090 PR tree-optimization/47576
31091 PR tree-optimization/47555
31092 * doc/invoke.texi (scev-max-expr-complexity): Documented.
31093 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
31094 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
31095 * tree-scalar-evolution.c (follow_ssa_edge): Use
31096 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
31097
31098 2011-02-02 Richard Guenther <rguenther@suse.de>
31099
31100 PR tree-optimization/47566
31101 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
31102
31103 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
31104
31105 PR debug/47106
31106 PR debug/47402
31107 * tree-inline.c (declare_return_variable): Remove unused caller
31108 variable.
31109
31110 PR debug/47106
31111 PR debug/47402
31112 * tree-flow-inline.h (clear_is_used, is_used_p): New.
31113 * cfgexpand.c (account_used_vars_for_block): Use them.
31114 * tree-nrv.c (tree_nrv): Likewise.
31115 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
31116 (dump_scope_block): Likewise.
31117 (remove_unused_locals): Likewise.
31118
31119 PR debug/47106
31120 PR debug/47402
31121 * tree-inline.c (declare_return_variable): Add result decl to
31122 local decls only once.
31123 * gimple-low.c (record_vars_into): Mark newly-created variables
31124 as referenced.
31125
31126 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
31127
31128 PR debug/47498
31129 PR debug/47501
31130 PR debug/45136
31131 PR debug/45130
31132 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31133 debug insns.
31134 (no_real_insns_p, schedule_block, set_priorities): Drop special
31135 treatment of boundary debug insns.
31136 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31137 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
31138 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31139 (BOUNDARY_DEBUG_INSN_P): Likewise.
31140 (SCHEDULE_DEBUG_INSN_P): Likewise.
31141 * sched-rgn.c (init_ready_list): Drop special treatment of
31142 boundary debug insns.
31143 * final.c (rest_of_clean_state): Clear notes' BB.
31144
31145 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31146
31147 * config/openbsd.opt (assert=): New Driver option.
31148
31149 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31150
31151 * config/i386/nto.opt: New.
31152 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
31153
31154 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31155
31156 * config/i386/netware.opt: New.
31157 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
31158
31159 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31160
31161 * config/interix.opt (posix): New Driver option.
31162
31163 2011-02-01 DJ Delorie <dj@redhat.com>
31164
31165 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
31166
31167 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
31168 class for A0/A1.
31169
31170 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
31171
31172 PR tree-optimization/47561
31173 * toplev.c (process_options): Print the Graphite flags. Add
31174 flag_loop_flatten to the list of options requiring Graphite.
31175
31176 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31177
31178 * config/i386/cygming.opt (posix): New Driver option.
31179
31180 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31181
31182 * config/arm/vxworks.opt: New.
31183 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
31184
31185 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31186
31187 * config/alpha/elf.opt: New.
31188 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
31189 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
31190
31191 2011-02-01 Richard Guenther <rguenther@suse.de>
31192
31193 PR tree-optimization/47559
31194 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
31195 store-motion on references that can throw.
31196
31197 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
31198
31199 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
31200 * tree-pass.h (TDF_CSELIB): New macro.
31201 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
31202 cselib_lookup): Check for it rather than for TDF_DETAILS.
31203
31204 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
31205
31206 PR driver/47547
31207 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
31208 is HOST_BIT_BUCKET.
31209
31210 * opts.c (finish_options): Don't add x_aux_base_name if it is
31211 HOST_BIT_BUCKET.
31212
31213 2011-02-01 Richard Guenther <rguenther@suse.de>
31214
31215 PR tree-optimization/47555
31216 Revert
31217 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
31218
31219 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
31220
31221 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
31222
31223 PR gcc/46692
31224 * config/lm32/t-lm32: Add multilib for all CPU options.
31225
31226 2011-02-01 Richard Guenther <rguenther@suse.de>
31227
31228 PR tree-optimization/47541
31229 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
31230 sure to have a field at offset zero.
31231
31232 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31233
31234 * config/arc/arc.opt (EB, EL): New Driver options.
31235
31236 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31237
31238 * config/alpha/osf5.opt: New.
31239 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
31240
31241 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31242
31243 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
31244
31245 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
31246
31247 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
31248 -floop-interchange.
31249 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
31250 is an alias of -floop-interchange and that it requires the
31251 Graphite infrastructure.
31252 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
31253 flag_loop_interchange based on the value of flag_tree_loop_linear.
31254
31255 2011-01-31 Jakub Jelinek <jakub@redhat.com>
31256 Richard Guenther <rguenther@suse.de>
31257
31258 PR tree-optimization/47538
31259 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
31260 type instead of r1type, except for comparisons. For right
31261 shifts and comparisons punt if there are mismatches in
31262 sizetype vs. non-sizetype types.
31263
31264 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31265
31266 * doc/sourcebuild.texi (Effective-Target Keywords): Document
31267 avx_runtime.
31268
31269 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31270
31271 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
31272 version number.
31273 * configure: Regenerate.
31274
31275 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31276
31277 * configure.ac (gcc_cv_ld_static_option): Define.
31278 (gcc_cv_ld_dynamic_option): Define.
31279 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
31280 instead.
31281 (HAVE_LD_STATIC_DYNAMIC): Update message.
31282 (LD_STATIC_OPTION): Define.
31283 (LD_DYNAMIC_OPTION): Define.
31284 * configure: Regenerate.
31285 * config.in: Regenerate.
31286 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
31287 HAVE_LD_STATIC_DYNAMIC]: Use them.
31288
31289 2011-01-31 Nick Clifton <nickc@redhat.com>
31290
31291 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
31292 registers inside interrupt handlers if the handler is not a leaf
31293 function.
31294
31295 2011-01-31 Nick Clifton <nickc@redhat.com>
31296
31297 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
31298 reg_renumber returning an INVALID_REGNUM.
31299
31300 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
31301
31302 PR libgcj/44341
31303 * doc/install.texi: Document host options discarded when cross
31304 configuring target libraries.
31305
31306 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
31307
31308 Reverted:
31309 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
31310 PR debug/45136
31311 PR debug/45130
31312 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31313 debug insns.
31314 (no_real_insns_p, schedule_block, set_priorities): Drop special
31315 treatment of boundary debug insns.
31316 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31317 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
31318 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31319 (BOUNDARY_DEBUG_INSN_P): Likewise.
31320 (SCHEDULE_DEBUG_INSN_P): Likewise.
31321 * sched-rgn.c (init_ready_list): Drop special treatment of
31322 boundary debug insns.
31323 * final.c (rest_of_clean-state): Clear notes' BB.
31324
31325 2011-01-31 Alan Modra <amodra@gmail.com>
31326
31327 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
31328 toc relative expressions as we do in print_operand_address.
31329
31330 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
31331
31332 * doc/extend.texi: Follow spelling conventions.
31333 * doc/invoke.texi: Fix a typo.
31334
31335 2011-01-30 Joseph Myers <joseph@codesourcery.com>
31336
31337 * config/hpux11.opt: New.
31338 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
31339 ia64*-*-hpux*): Use hpux11.opt.
31340
31341 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
31342
31343 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
31344 to tmake_file.
31345
31346 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31347
31348 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
31349 support sites.
31350
31351 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31352
31353 * doc/install.texi (Binaries): Remove outdated reference for
31354 Motorola 68HC11/68HC12 downloads.
31355
31356 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31357
31358 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
31359 Drepper's paper.
31360
31361 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
31362
31363 PR bootstrap/47147
31364 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
31365 used by NetBSD.
31366
31367 2011-01-28 Ahmad Sharif <asharif@google.com>
31368
31369 * value-prof.c (check_counter): Corrected error message.
31370
31371 2011-01-29 Jie Zhang <jie@codesourcery.com>
31372
31373 * config/arm/arm.c (arm_legitimize_reload_address): New.
31374 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
31375 arm_legitimize_reload_address.
31376 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
31377
31378 2011-01-28 Ian Lance Taylor <iant@google.com>
31379
31380 * godump.c (go_define): Ignore macros whose definitions include
31381 two adjacent operands.
31382
31383 2011-01-28 Jakub Jelinek <jakub@redhat.com>
31384
31385 PR target/42894
31386 * varasm.c (force_const_mem): Store copy of x in desc->constant
31387 instead of x itself.
31388 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
31389 itself into REG_EQUAL note.
31390
31391 2011-01-28 Joseph Myers <joseph@codesourcery.com>
31392
31393 * config/freebsd.opt (posix, rdynamic): New Driver options.
31394
31395 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31396
31397 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
31398 -Bstatic/-Bdynamic.
31399 * configure: Regenerate.
31400
31401 2011-01-27 Joseph Myers <joseph@codesourcery.com>
31402
31403 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
31404 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
31405
31406 2011-01-27 Anatoly Sokolov <aesok@post.ru>
31407
31408 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
31409 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
31410 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
31411 (s390_preferred_reload_class): Make static. Change return and
31412 'rclass' argument type to reg_class_t.
31413
31414 2011-01-27 Jan Hubicka <jh@suse.cz>
31415
31416 PR middle-end/46949
31417 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
31418 (process_function_and_variable_attributes): Check defined weakrefs.
31419
31420 2011-01-27 Martin Jambor <mjambor@suse.cz>
31421
31422 PR tree-optimization/47228
31423 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
31424 build_ref_for_offset.
31425
31426 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31427
31428 * config/spu/spu-elf.h (ASM_SPEC): Remove.
31429
31430 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
31431
31432 PR rtl-optimization/46856
31433 * postreload.c (reload_combine_recognize_const_pattern): Do not
31434 separate cc0 setter and user on cc0 targets.
31435
31436 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
31437
31438 PR c/43082
31439 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
31440 passed a VOID_TYPE expression, immediately emit an error and
31441 return error_mark_node.
31442
31443 2011-01-26 Jeff Law <law@redhat.com>
31444
31445 PR rtl-optimization/47464
31446 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
31447 rather than may_trap_p as needed.
31448
31449 2011-01-26 DJ Delorie <dj@redhat.com>
31450
31451 PR rtl-optimization/46878
31452 * combine.c (insn_a_feeds_b): Check for the implicit cc0
31453 setter/user dependency as well.
31454
31455 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
31456
31457 PR rtl-optimization/44469
31458 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
31459 after removing trivially dead basic blocks.
31460
31461 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31462
31463 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
31464 * config/frv/frv.h (LINK_SPEC): Likewise.
31465 * config/i386/netware.h (LINK_SPEC): Likewise.
31466 * config/m68k/linux.h (ASM_SPEC): Likewise.
31467 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
31468 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
31469 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31470 * config/sparc/linux.h (ASM_SPEC): Likewise.
31471 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31472 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31473
31474 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31475
31476 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
31477 * config/frv/frv.h (ASM_SPEC): Likewise.
31478 * config/m68k/linux.h (ASM_SPEC): Likewise.
31479 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
31480 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
31481 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31482 * config/sparc/linux.h (ASM_SPEC): Likewise.
31483 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31484 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31485
31486 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31487
31488 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
31489 * config/frv/frv.h (LINK_SPEC): Likewise.
31490 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
31491
31492 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31493
31494 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
31495 * config/frv/frv.h (ASM_SPEC): Likewise.
31496 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
31497 * config/m68k/linux.h (ASM_SPEC): Likewise.
31498 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
31499 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
31500 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31501 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
31502 * config/sparc/linux.h (ASM_SPEC): Likewise.
31503 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31504 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31505 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
31506
31507 2011-01-26 Steve Ellcey <sje@cup.hp.com>
31508
31509 PR target/46997
31510 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
31511 (*mux2): Ditto.
31512 (vec_extract_evenodd_help): Ditto.
31513 (vec_extract_evenv4hi): Ditto.
31514 (vec_extract_oddv4hi): Ditto.
31515 (vec_interleave_lowv2si): Ditto.
31516 (vec_interleave_highv2si): Ditto.
31517 (vec_extract_evenv2si): Ditto.
31518 (vec_extract_oddv2si: Ditto.
31519 (vec_pack_trunc_v2si): Ditto.
31520
31521 2011-01-22 Jan Hubicka <jh@suse.cz>
31522
31523 PR target/47237
31524 * cgraph.h (cgraph_local_info): New field can_change_signature.
31525 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
31526 signature can change.
31527 (ipcp_estimate_growth): Call sequence simplify only if calle signature
31528 can change.
31529 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
31530 (cgraph_function_versioning): We can not change signature of functions
31531 that don't allow that.
31532 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
31533 (lto_input_node): Likewise.
31534 * ipa-inline.c (compute_inline_parameters): Compute
31535 local.can_change_signature.
31536 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
31537 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
31538 functions that can not change signature.
31539 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
31540 init_cumulative_args): Do not use local calling conventions
31541 for functions that can not change signature.
31542
31543 2011-01-22 Jan Hubicka <jh@suse.cz>
31544
31545 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
31546
31547 2011-01-26 Richard Guenther <rguenther@suse.de>
31548
31549 PR tree-optimization/47190
31550 * cgraphunit.c (process_common_attributes): New function.
31551 (process_function_and_variable_attributes): Use it.
31552
31553 2011-01-26 Richard Guenther <rguenther@suse.de>
31554
31555 PR lto/47423
31556 * cgraphbuild.c (record_eh_tables): Record reference to personality
31557 function.
31558
31559 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
31560
31561 PR debug/45454
31562 * sel-sched.c (moveup_expr): Don't let debug insns prevent
31563 non-debug insns from moving up.
31564
31565 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
31566
31567 PR target/40125
31568 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
31569 t-dlldir{,-x} fragment for build and add it to tmake_file.
31570 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
31571 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
31572 * config/i386/t-dlldir: New file.
31573 (SHLIB_DLLDIR): Define.
31574 * config/i386/t-dlldir-x: New file.
31575 (SHLIB_DLLDIR): Define.
31576 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
31577 (SHLIB_INSTALL): Use it.
31578
31579 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
31580
31581 PR target/47246
31582 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
31583 lower bound of the allowed Thumb-2 coprocessor load/store
31584 index range to -256. Add explaining comment.
31585
31586 2011-01-25 Ian Lance Taylor <iant@google.com>
31587
31588 * godump.c (go_define): Improve lexing of macro expansion to only
31589 accept expressions which match Go spec.
31590
31591 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
31592
31593 PR c++/43601
31594 * tree.c (handle_dll_attribute): Handle it.
31595 * doc/extend.texi (@item dllexport): Mention it.
31596 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
31597
31598 2011-01-25 Ian Lance Taylor <iant@google.com>
31599
31600 PR tree-optimization/26854
31601 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
31602 (decl_jump_unsafe): Move higher in file, with no other change.
31603 (bind): Set has_jump_unsafe_decl if appropriate.
31604 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
31605 (check_earlier_gotos): Likewise.
31606 (c_check_switch_jump_warnings): Likewise.
31607
31608 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
31609
31610 * doc/invoke.texi (Warning Options): Add missing hyphen.
31611 (-fprofile-dir): Minor grammatical fixes.
31612 (-fbranch-probabilities): Likewise.
31613
31614 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
31615
31616 PR debug/45136
31617 PR debug/45130
31618 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31619 debug insns.
31620 (no_real_insns_p, schedule_block, set_priorities): Drop special
31621 treatment of boundary debug insns.
31622 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31623 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
31624 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31625 (BOUNDARY_DEBUG_INSN_P): Likewise.
31626 (SCHEDULE_DEBUG_INSN_P): Likewise.
31627 * sched-rgn.c (init_ready_list): Drop special treatment of
31628 boundary debug insns.
31629 * final.c (rest_of_clean-state): Clear notes' BB.
31630
31631 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31632
31633 * Makefile.in (LAMBDA_H): Removed.
31634 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
31635 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
31636 lambda-trans.o, and tree-loop-linear.o.
31637 (lto-symtab.o): Remove dependence on LAMBDA_H.
31638 (tree-loop-linear.o): Remove rule.
31639 (lambda-mat.o): Same.
31640 (lambda-trans.o): Same.
31641 (lambda-code.o): Same.
31642 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
31643 (tree-vect-slp.o): Same.
31644 * hwint.h (gcd): Moved here.
31645 (least_common_multiple): Same.
31646 * lambda-code.c: Removed.
31647 * lambda-mat.c: Removed.
31648 * lambda-trans.c: Removed.
31649 * lambda.h: Removed.
31650 * tree-loop-linear.c: Removed.
31651 * lto-symtab.c: Do not include lambda.h.
31652 * omega.c (gcd): Removed.
31653 * passes.c (init_optimization_passes): Remove pass_linear_transform.
31654 * tree-data-ref.c (print_lambda_vector): Moved here.
31655 (lambda_vector_copy): Same.
31656 (lambda_matrix_copy): Same.
31657 (lambda_matrix_id): Same.
31658 (lambda_vector_first_nz): Same.
31659 (lambda_matrix_row_add): Same.
31660 (lambda_matrix_row_exchange): Same.
31661 (lambda_vector_mult_const): Same.
31662 (lambda_vector_negate): Same.
31663 (lambda_matrix_row_negate): Same.
31664 (lambda_vector_equal): Same.
31665 (lambda_matrix_right_hermite): Same.
31666 * tree-data-ref.h: Do not include lambda.h.
31667 (lambda_vector): Moved here.
31668 (lambda_matrix): Same.
31669 (dependence_level): Same.
31670 (lambda_transform_legal_p): Removed declaration.
31671 (lambda_collect_parameters): Same.
31672 (lambda_compute_access_matrices): Same.
31673 (lambda_vector_gcd): Same.
31674 (lambda_vector_new): Same.
31675 (lambda_vector_clear): Same.
31676 (lambda_vector_lexico_pos): Same.
31677 (lambda_vector_zerop): Same.
31678 (lambda_matrix_new): Same.
31679 * tree-flow.h (least_common_multiple): Removed declaration.
31680 * tree-parloops.c (lambda_trans_matrix): Moved here.
31681 (LTM_MATRIX): Same.
31682 (LTM_ROWSIZE): Same.
31683 (LTM_COLSIZE): Same.
31684 (LTM_DENOMINATOR): Same.
31685 (lambda_trans_matrix_new): Same.
31686 (lambda_matrix_vector_mult): Same.
31687 (lambda_transform_legal_p): Same.
31688 * tree-pass.h (pass_linear_transform): Removed declaration.
31689 * tree-ssa-loop.c (tree_linear_transform): Removed.
31690 (gate_tree_linear_transform): Removed.
31691 (pass_linear_transform): Removed.
31692 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
31693 flag_loop_interchange.
31694
31695 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31696
31697 PR tree-optimization/47265
31698 PR tree-optimization/47443
31699 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
31700 if name still has some uses.
31701
31702 2011-01-25 Martin Jambor <mjambor@suse.cz>
31703
31704 PR tree-optimization/47382
31705 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
31706 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
31707
31708 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
31709
31710 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
31711 sjlj_except_unwind_info.
31712
31713 2011-01-25 Richard Guenther <rguenther@suse.de>
31714
31715 PR tree-optimization/47426
31716 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
31717 visible functions results escape.
31718
31719 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31720
31721 PR target/45701
31722 * config/arm/arm.c (any_sibcall_uses_r3): New function.
31723 (arm_get_frame_offsets): Use it.
31724
31725 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31726 Jakub Jelinek <jakub@redhat.com>
31727
31728 PR tree-optimization/47271
31729 * tree-if-conv.c (bb_postdominates_preds): New.
31730 (if_convertible_bb_p): Call bb_postdominates_preds.
31731 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
31732 (predicate_scalar_phi): Call bb_postdominates_preds.
31733
31734 2011-01-25 Nick Clifton <nickc@redhat.com>
31735
31736 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
31737 * config/rx/rx.c (rx_function_value): Likewise.
31738 (rx_promote_function_mode): Likewise.
31739 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
31740 in order to make it legitimate.
31741 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
31742 make sure that the first operand is the same as the result register.
31743 (addsi3_unspec): Delete.
31744 (subdi3): Do not accept immediate operands.
31745 (subdi3_internal): Likewise.
31746
31747 2011-01-25 Jeff Law <law@redhat.com>
31748
31749 PR rtl-optimization/37273
31750 * ira-costs.c (scan_one_insn): Detect constants living in memory and
31751 handle them like argument loads from stack slots. Do not double
31752 count memory for memory constants and argument loads from stack slots.
31753
31754 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31755
31756 PR tree-optimization/47427
31757 PR tree-optimization/47428
31758 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
31759 coalesce if the new root var would be TREE_READONLY.
31760
31761 2011-01-25 Richard Guenther <rguenther@suse.de>
31762
31763 PR middle-end/47414
31764 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
31765 correct type for TBAA.
31766
31767 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31768
31769 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
31770 (close_phi_written_to_memory): Call for_each_index with
31771 dr_indices_valid_in_loop.
31772
31773 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31774
31775 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
31776 when it is initialized.
31777
31778 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31779
31780 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
31781 call to graphite_find_data_references_in_stmt.
31782 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
31783 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
31784 call to graphite_find_data_references_in_stmt.
31785 (analyze_drs_in_stmts): Same.
31786 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
31787 in which the scalar analysis of indices is performed.
31788 (create_data_ref): Same. Update call to dr_analyze_indices.
31789 (find_data_references_in_stmt): Update call to create_data_ref.
31790 (graphite_find_data_references_in_stmt): Same.
31791 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
31792 declaration.
31793 (create_data_ref): Same.
31794 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
31795 call to create_data_ref.
31796
31797 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31798
31799 * graphite-sese-to-poly.c (build_poly_scop): Move
31800 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
31801
31802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31803
31804 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
31805 VAR_DECL, PARM_DECL, and RESULT_DECL.
31806
31807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31808
31809 * graphite-dependences.c (reduction_dr_1): Allow several reductions
31810 in a reduction PBB.
31811 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
31812 that have already been marked as PBB_IS_REDUCTION.
31813
31814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31815
31816 * graphite-scop-detection.c (same_close_phi_node): New.
31817 (remove_duplicate_close_phi): New.
31818 (make_close_phi_nodes_unique): New.
31819 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
31820
31821 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31822
31823 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
31824 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
31825 of both data references to be the same.
31826
31827 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31828
31829 * graphite-dependences.c (build_lexicographical_constraint): Remove
31830 the gdim parameter.
31831 (build_lexicographical_constraint): Adjust call to
31832 ppl_powerset_is_empty.
31833 (dependence_polyhedron): Same.
31834 (graphite_legal_transform_dr): Same.
31835 (graphite_carried_dependence_level_k): Same.
31836 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
31837 parameter.
31838 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
31839
31840 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31841
31842 * graphite-sese-to-poly.c
31843 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
31844 (close_phi_written_to_memory): New.
31845 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
31846 and unshare_expr.
31847
31848 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31849
31850 * doc/install.texi: Update the expected version number of PPL to 0.11.
31851 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
31852 #if PPL_VERSION_MINOR < 11.
31853
31854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31855
31856 * graphite-dependences.c: Include graphite-cloog-util.h.
31857 (new_poly_ddr): Inlined into dependence_polyhedron.
31858 (free_poly_ddr): Moved close by new_poly_ddr.
31859 (dependence_polyhedron_1): Renamed dependence_polyhedron.
31860 Early return NULL when ppl_powerset_is_empty returns true.
31861 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
31862 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
31863 (graphite_legal_transform_dr): Call new_poly_ddr.
31864 (graphite_carried_dependence_level_k): Same.
31865 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
31866 (dot_transformed_deps_stmt_1): Removed.
31867 (dot_deps_stmt_1): Call dot_deps_stmt_2.
31868 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
31869 (dot_deps_1): Call dot_deps_2.
31870 * Makefile.in (graphite-dependences.o): Add missing dependence on
31871 graphite-cloog-util.h.
31872
31873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31874
31875 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
31876 (build_lexicographical_constraint): Same.
31877 (dependence_polyhedron_1): Same.
31878 (graphite_legal_transform_dr): Same.
31879 (graphite_carried_dependence_level_k): Same.
31880 * graphite-ppl.c (ppl_powerset_is_empty): New.
31881 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
31882 * tree-data-ref.c (dump_data_reference): Print the basic block index.
31883
31884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31885
31886 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
31887 the "a followed by b" relation and document it.
31888
31889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31890
31891 * graphite-dependences.c (build_lexicographical_constraint): Stop the
31892 iteration when the bag of constraints is empty.
31893
31894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31895
31896 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
31897
31898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31899
31900 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
31901 nest and two loop depths as parameters.
31902 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
31903 lst_perfect_nestify.
31904
31905 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31906
31907 * graphite-dependences.c (print_pddr): Call
31908 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
31909
31910 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31911
31912 * graphite-ppl.c (debug_gmp_value): New.
31913 * graphite-ppl.h (debug_gmp_value): Declared.
31914
31915 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
31916
31917 * doc/install.texi: Document availability of cloog-0.16.
31918
31919 2011-01-25 Vladimir Kargov <kargov@gmail.com>
31920
31921 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
31922 invalid postdominance info.
31923
31924 2011-01-24 Jan Hubicka <jh@suse.cz>
31925
31926 PR c/21659
31927 * doc/extend.texi (weak pragma): Drop claim that it must
31928 appear before definition.
31929 * varasm.c (merge_weak, declare_weak): Only sanity check
31930 that DECL is not output at a time it is declared weak.
31931
31932 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
31933
31934 * machmode.def: Fixed comments.
31935
31936 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
31937
31938 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
31939
31940 2011-01-24 Paul Koning <ni1d@arrl.net>
31941
31942 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
31943 WORDS_BIG_ENDIAN.
31944
31945 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
31946
31947 PR target/46519
31948 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
31949 (block_info): Add scanned and prev.
31950 (move_or_delete_vzeroupper_2): Return if the basic block
31951 has been scanned and the upper 128bit state is unchanged
31952 from the last scan.
31953 (move_or_delete_vzeroupper_1): Return true if the exit
31954 state is changed.
31955 (move_or_delete_vzeroupper): Visit basic blocks using the
31956 work-list based algorithm based on vt_find_locations in
31957 var-tracking.c.
31958
31959 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
31960
31961 2011-01-24 Nick Clifton <nickc@redhat.com>
31962
31963 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
31964 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
31965 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
31966 then define __v850e1__.
31967 * doc/invoke.texi: Document -mv850es.
31968
31969 2011-01-24 Richard Henderson <rth@redhat.com>
31970
31971 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
31972 compound unordered comparisons.
31973 * config/rx/rx.c (rx_split_fp_compare): Remove.
31974 * config/rx/rx-protos.h: Update.
31975 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
31976 (cbranchsf4): Don't call rx_split_fp_compare.
31977 (*cbranchsf4): Use rx_split_cbranch.
31978 (*cmpsf): Don't accept "i" constraint.
31979 (*conditional_branch): Only valid after reload.
31980 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
31981
31982 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31983
31984 PR target/47385
31985 * config/rs6000/altivec.md (vector constant splitters): Add
31986 support for creating vector single precision constants if -mvsx is
31987 used and we would create the constant using Altivec primitives.
31988
31989 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
31990 Richard Sandiford <rdsandiford@googlemail.com>
31991
31992 PR rtl-optimization/47166
31993 * reload1.c (emit_reload_insns): Disable the spill_reg_store
31994 mechanism for PRE_MODIFY and POST_MODIFY.
31995 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
31996 reloadreg.
31997
31998 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
31999
32000 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
32001
32002 2011-01-22 Jan Hubicka <jh@suse.cz>
32003
32004 PR lto/47333
32005 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
32006
32007 2011-01-22 Jan Hubicka <jh@suse.cz>
32008
32009 PR tree-optimization/43884
32010 PR lto/44334
32011 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
32012 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
32013
32014 2011-01-22 Anatoly Sokolov <aesok@post.ru>
32015
32016 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
32017 * config/s390/s390.c (s390_register_move_cost,
32018 s390_memory_move_cost): New.
32019 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
32020
32021 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32022
32023 PR middle-end/47401
32024 * except.c (sjlj_assign_call_site_values): Move setting the
32025 crtl->uses_eh_lsda flag to ...
32026 (sjlj_mark_call_sites): ... here.
32027 (sjlj_emit_function_enter): Support NULL dispatch label.
32028 (sjlj_build_landing_pads): In a function with no landing pads
32029 that still has must-not-throw regions, generate code to register
32030 a personality function with empty LSDA.
32031
32032 2011-01-21 Richard Henderson <rth@redhat.com>
32033
32034 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
32035
32036 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
32037
32038 * compare-elim.c: New file.
32039 * Makefile.in (OBJS-common): Add it.
32040 (compare-elim.o): New.
32041 * common.opt (fcompare-elim): New.
32042 * opts.c (default_options_table): Add OPT_fcompare_elim.
32043 * tree-pass.h (pass_compare_elim_after_reload): New.
32044 * passes.c (init_optimization_passes): Add it.
32045 * recog.h: Protect against re-inclusion.
32046 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
32047 * doc/invoke.texi (-fcompare-elim): Document it.
32048 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
32049 * doc/tm.texi: Rebuild.
32050
32051 2011-01-22 Nick Clifton <nickc@redhat.com>
32052
32053 * config/rx/rx.md (cstoresf4): Pass comparison operator to
32054 rx_split_fp_compare.
32055
32056 2011-01-22 Nick Clifton <nickc@redhat.com>
32057
32058 * config/rx/rx.md (UNSPEC_CONST): New.
32059 (deallocate_and_return): Wrap the amount popped off the stack in
32060 an UNSPEC_CONST in order to stop it being rejected by
32061 -mmax-constant-size.
32062 (pop_and_return): Add a "(return)" rtx.
32063 (call): Drop the immediate operand.
32064 (call_internal): Likewise.
32065 (call_value): Likewise.
32066 (call_value_internal): Likewise.
32067 (sibcall_internal): Likewise.
32068 (sibcall_value_internal): Likewise.
32069 (sibcall): Likewise. Generate an explicit call using
32070 sibcall_internal.
32071 (sibcall_value): Likewise.
32072 (mov<>): FAIL if a constant operand is not legitimate.
32073 (addsi3_unpsec): New pattern.
32074
32075 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
32076 (ok_for_max_constant): New function.
32077 (gen_safe_add): New function.
32078 (rx_expand_prologue): Use gen_safe_add.
32079 (rx_expand_epilogue): Likewise.
32080 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
32081 UNSPEC CONSTs.
32082
32083 2011-01-21 Jeff Law <law@redhat.com>
32084
32085 PR tree-optimization/47053
32086 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
32087 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
32088 statements are deleted.
32089 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
32090 is nonempty, then purge dead edges and cleanup the CFG.
32091
32092 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32093
32094 PR debug/47402
32095 Temporarily revert:
32096 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32097 PR debug/47106
32098 * tree-dfa.c (create_var_ann): Mark variable as used.
32099
32100 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32101
32102 PR middle-end/45566
32103 * except.c (convert_to_eh_region_ranges): Emit queued no-region
32104 notes from other section in hot/cold partitioning even if
32105 last_action is -3. Increment call_site_base.
32106
32107 PR rtl-optimization/47366
32108 * fwprop.c (forward_propagate_into): Return bool. If
32109 any changes are made, -fnon-call-exceptions is used and
32110 REG_EH_REGION note is present, call purge_dead_edges
32111 and return true if it purged anything.
32112 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
32113 any EH edges were purged.
32114
32115 2011-01-21 Jeff Law <law@redhat.com>
32116
32117 PR rtl-optimization/41619
32118 * caller-save.c (setup_save_areas): Break out code to determine
32119 which hard regs are live across calls by examining the reload chains
32120 so that it is always used.
32121 Eliminate code which checked REG_N_CALLS_CROSSED.
32122
32123 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32124
32125 PR tree-optimization/47355
32126 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
32127 NOP has non-debug uses beyond PHIs in new_bb.
32128
32129 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32130
32131 PR debug/47106
32132 * cfgexpand.c (account_used_vars_for_block): Only account vars
32133 that are annotated as used.
32134 (estimated_stack_frame_size): Don't set TREE_USED.
32135 * tree-dfa.c (create_var_ann): Mark variable as used.
32136
32137 2011-01-21 Richard Guenther <rguenther@suse.de>
32138
32139 PR middle-end/47395
32140 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
32141
32142 2011-01-21 Richard Guenther <rguenther@suse.de>
32143
32144 PR tree-optimization/47365
32145 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
32146 (vn_reference_lookup_pieces): Adjust.
32147 (vn_reference_lookup): Likewise.
32148 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
32149 (vn_reference_lookup_3): Only look through kills if in
32150 VN_WALKREWRITE mode.
32151 (vn_reference_lookup_pieces): Adjust.
32152 (vn_reference_lookup): Likewise.
32153 (visit_reference_op_load): Likewise.
32154 (visit_reference_op_store): Likewise.
32155 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
32156 (compute_avail): Likewise.
32157 (eliminate): Likewise.
32158
32159 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32160
32161 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
32162 DECL_IGNORED_P non-reg vars if they are used.
32163
32164 PR tree-optimization/47391
32165 * varpool.c (const_value_known_p): Return false if
32166 decl is volatile.
32167
32168 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
32169
32170 PR bootstrap/47215
32171 * config/i386/i386.c (ix86_local_alignment): Handle
32172 case for va_list_type_node is nil.
32173 (ix86_canonical_va_list_type): Likewise.
32174
32175 2011-01-21 Alan Modra <amodra@gmail.com>
32176
32177 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
32178 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
32179
32180 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32181
32182 * config/arm/arm.md (define_attr type): Rename f_load
32183 and f_store to f_fpa_load and f_fpa_store. Update.
32184 (write_conflict): Deal with rename fallout.
32185 (*push_fp_multi): Likewise.
32186 * config/arm/fpa.md (f_load): Use f_fpa_load.
32187 (f_store): Use f_fpa_store.
32188 (*movsf_fpa): Likewise.
32189 (*movdf_fpa): Likewise.
32190 (*movxf_fpa): Likewise.
32191 (*thumb2_movsf_fpa): Likewise.
32192 (*thumb2_movdf_fpa): Likewise.
32193 (*thumb2_movxf_fpa): Likewise.
32194 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
32195 f_loadd and f_stored.
32196 (*thumb2_movdi_vfp): Likewise.
32197 (*thumb2_movsf_vfp): Fix attribute to f_loads.
32198 (*thumb2_movsi_vfp): Likewise.
32199 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
32200 Use f_loads instead of f_load.
32201 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
32202
32203 2011-01-20 Anatoly Sokolov <aesok@post.ru>
32204
32205 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32206 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
32207 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32208 (xtensa_mode_dependent_address_p): New function.
32209 (constantpool_address_p): Make static. Change return type to bool.
32210 Change argument type to const_rtx. Use CONST_INT_P predicate.
32211
32212 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
32213
32214 PR debug/46583
32215 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
32216
32217 2011-01-20 Jakub Jelinek <jakub@redhat.com>
32218
32219 PR debug/47283
32220 * cfgexpand.c (expand_debug_expr): Instead of generating
32221 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
32222 etc. handling.
32223
32224 2011-01-20 Richard Guenther <rguenther@suse.de>
32225
32226 PR middle-end/47370
32227 * tree-inline.c (remap_gimple_op_r): Recurse manually for
32228 the pointer operand of MEM_REFs.
32229
32230 2011-01-20 Jakub Jelinek <jakub@redhat.com>
32231
32232 PR tree-optimization/46130
32233 * ipa-split.c (consider_split): If return_bb contains non-virtual
32234 PHIs other than for retval or if split_function would not adjust it,
32235 refuse to split.
32236
32237 2011-01-20 Richard Guenther <rguenther@suse.de>
32238
32239 PR tree-optimization/47167
32240 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
32241 Revert previous change, only avoid enumeral type changes.
32242
32243 2011-01-19 Mike Stump <mikestump@comcast.net>
32244
32245 * doc/tm.texi.in (BRANCH_COST): Englishify.
32246 * doc/tm.texi (BRANCH_COST): Likewise.
32247
32248 2011-01-19 Dodji Seketeli <dodji@redhat.com>
32249
32250 PR c++/47291
32251 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
32252 (gen_scheduled_generic_parms_dies): New functions.
32253 (gen_struct_or_union_type_die): Schedule template parameters DIEs
32254 generation for the end of CU compilation.
32255 (dwarf2out_finish): Generate template parameters DIEs here.
32256
32257 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32258
32259 PR debug/46240
32260 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
32261 debug bind stmt on merge edges.
32262
32263 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32264
32265 PR debug/47079
32266 PR debug/46724
32267 * function.c (instantiate_expr): Instantiate incoming rtl of
32268 implicit arguments, and recurse on VALUE_EXPRs.
32269 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
32270 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
32271
32272 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32273
32274 * c-parser.c (c_parser_for_statement): Initialize
32275 collection_expression.
32276
32277 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32278
32279 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
32280
32281 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32282
32283 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
32284 (LINK_SHLIB_SPEC): Don't use %(link_path).
32285 (SUBTARGET_EXTRA_SPECS): Remove link_path.
32286
32287 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32288
32289 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
32290 (NO_SHARED_LIB_SUPPORT): Remove.
32291 (LINK_SHLIB_SPEC): Remove one conditional definition.
32292
32293 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32294
32295 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
32296 %{call_shared}.
32297 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
32298 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
32299 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
32300 %{call_shared} and conditionals on these options not being passed.
32301 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
32302 %{call_shared}.
32303
32304 2011-01-19 Jakub Jelinek <jakub@redhat.com>
32305
32306 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
32307 simplify.
32308
32309 * ipa-split.c: Spelling fixes.
32310
32311 2011-01-19 Richard Henderson <rth@redhat.com>
32312
32313 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
32314 (*mulsi3): Likewise.
32315
32316 * longlong.h [__mn10300__] (count_leading_zeros): New.
32317 [__mn10300__] (umul_ppmm, smul_ppmm): New.
32318 [__mn10300__] (add_ssaaaa, subddmmss): New.
32319 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
32320 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
32321
32322 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32323
32324 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
32325
32326 2011-01-19 Richard Henderson <rth@redhat.com>
32327
32328 * config/mn10300/mn10300.md (addsi3_flags): New.
32329 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
32330 (subsi3_flags, subc_internal, subdi3): New.
32331 (subdi3_internal, *subdi3_degenerate): New.
32332 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
32333
32334 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
32335 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
32336 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
32337 * config/mn10300/mn10300-protos.h: Update.
32338 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
32339 (return_ret): Likewise. Rename from return_internal_regs.
32340 (return_internal): Remove.
32341
32342 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
32343 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
32344 (mn10300_legitimate_constant_p): Likewise.
32345 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
32346 (mn10300_frame_size): New.
32347 (mn10300_expand_prologue): Use it.
32348 (mn10300_expand_epilogue): Likewise.
32349 (mn10300_initial_offset): Likewise.
32350 * config/mn10300/mn10300-protos.h: Update.
32351 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
32352 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
32353 (prologue, epilogue, return_internal): Tidy output code.
32354 (mn10300_store_multiple_operation, return): Likewise.
32355 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
32356 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
32357 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
32358 (load_pic, am33_load_pic): New.
32359 (mn10300_load_pic0, mn10300_load_pic1): New.
32360
32361 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
32362 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
32363 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
32364 (cc_flags_for_mode, cc_flags_for_code): New.
32365 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
32366 overflow flag is not valid. Validate that the flags we need
32367 for the comparison are valid.
32368 (mn10300_output_cmp): Remove.
32369 (mn10300_output_add): New.
32370 (mn10300_select_cc_mode): Use cc_flags_for_code.
32371 (mn10300_split_cbranch): New.
32372 (mn10300_match_ccmode): New.
32373 (mn10300_split_and_operand_count): New.
32374 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
32375 to the function.
32376 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
32377 (addsi3): ... here. Use mn10300_output_add.
32378 (*addsi3_flags): New.
32379 (*am33_subsi3, *mn10300_subsi3): Merge...
32380 (subsi3): ... here. Use attribute isa.
32381 (*subsi3_flags): New.
32382 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
32383 when possible.
32384 (*am33_andsi3, *mn10300_andsi3): Merge...
32385 (andsi3): ... here.
32386 (*andsi3_flags): New.
32387 (andsi3 splitters): New.
32388 (*am33_iorsi3, *mn10300_iorsi3): Merge...
32389 (iorsi3): ... here.
32390 (*iorsi3_flags): New.
32391 (*am33_xorsi3, *mn10300_xorsi3): Merge...
32392 (xorsi3): ... here.
32393 (*xorsi3_flags): New.
32394 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
32395 (one_cmplsi2): ... here.
32396 (*one_cmplsi2_flags): New.
32397 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
32398 instead of "dax" in constraints. Use mn10300_split_cbranch.
32399 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
32400 use matching constraints to eliminate a self-comparison.
32401 (*integer_conditional_branch): Rename from integer_conditional_branch.
32402 Use int_mode_flags to match CC_REG.
32403 (*cbranchsi4_btst, *btstsi): New.
32404 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
32405 mn10300_split_cbranch.
32406 (*am33_cmpsf): Rename from am33_cmpsf.
32407 (*float_conditional_branch): Rename from float_conditional_branch.
32408 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
32409 (zero_extendqisi2): ... here.
32410 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
32411 (zero_extendhisi2): ... here.
32412 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
32413 (extendqisi2): ... here.
32414 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
32415 (extendhisi2): ... here.
32416 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
32417 (ashlsi3): ... here.
32418 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
32419 (lshrsi3): ... here.
32420 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
32421 (ashrsi3): ... here.
32422 (consecutive add peephole): Remove.
32423 * config/mn10300/predicates.md (label_ref_operand): New.
32424 (int_mode_flags): New.
32425 (CCZN_comparison_operator): New.
32426
32427 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
32428 (throughput_42_latency_43): New reservation.
32429 (mulsidi3, umulsidi3): New expanders.
32430 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
32431 the MDR register to allocation; separately allocate the low and
32432 high parts of the DImode result.
32433 (umulsidi3_internal): Similarly.
32434 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
32435 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
32436 (udivsi3, umodsi3): Remove.
32437 (udivmodsi4, divmodsi4): New expanders.
32438 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
32439 (*divmodsi4): Simiarly.
32440 (ext_internal): New.
32441
32442 * config/mn10300/constraints.md ("z"): New constraint.
32443 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
32444 (FIXED_REGISTERS): Don't fix MDR.
32445 (CALL_USED_REGSITERS): Reformat nicely.
32446 (REG_ALLOC_ORDER): Add MDR.
32447 (enum regclass): Add MDR_REGS.
32448 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
32449 (IRA_COVER_CLASSES): Add MDR_REGS.
32450 (REGNO_REG_CLASS): Handle MDR_REG.
32451 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
32452 (mn10300_register_move_cost): Likewise.
32453 * config/mn10300/mn10300.md (MDR_REG): New.
32454 (*movsi_internal): Handle moves to/from MDR_REGS.
32455
32456 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
32457 POST_MODIFY.
32458 (mn10300_secondary_reload): Tidy combination reload classes.
32459 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
32460 addresses for AM33. Allow symbolic offsets for reg+imm.
32461 (mn10300_regno_in_class_p): New.
32462 (mn10300_legitimize_reload_address): New.
32463 * config/mn10300/mn10300.h (enum reg_class): Remove
32464 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
32465 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
32466 SP_OR_GENERAL_REGS.
32467 (REG_CLASS_NAMES): Update to match.
32468 (REG_CLASS_CONTENTS): Likewise.
32469 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
32470 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
32471 (REGNO_IN_RANGE_P): Remove.
32472 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
32473 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
32474 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
32475 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
32476 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
32477 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
32478 (REGNO_GENERAL_P): New.
32479 (HAVE_POST_MODIFY_DISP): New.
32480 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
32481 (LEGITIMIZE_RELOAD_ADDRESS): New.
32482 * config/mn10300/mn10300-protos.h: Update.
32483
32484 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
32485 DATA_REGS for AM33 stack-pointer destination.
32486 (mn10300_preferred_output_reload_class): Likewise.
32487 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
32488 into a form appropriate for ...
32489 (TARGET_SECONDARY_RELOAD): New.
32490 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
32491 * config/mn10300/mn10300-protos.h: Update.
32492 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
32493 reload_insi; use the "A" constraint for the scratch; handle AM33
32494 moves of sp to non-address registers.
32495
32496 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
32497 (*movqi_internal): ... here.
32498 (*am33_movhi, *mn10300_movhi): Merge into...
32499 (*movhi_internal): ... here.
32500 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
32501 as the source/destination of moves from/to SP.
32502 (movsf): Only allow for AM33-2.
32503 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
32504 any integer constant constraint. Only allow for AM33-2. Tidy
32505 all of the alternative outputs.
32506 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
32507 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
32508 for MN103.
32509 (udivsi3, umodsi3): New patterns for MN103 only.
32510
32511 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
32512
32513 * doc/tm.texi.in: Spell out that a lack of register class unions
32514 can lead to ICEs.
32515 * doc/tm.texi: Regenerate.
32516
32517 2011-01-19 Jakub Jelinek <jakub@redhat.com>
32518
32519 PR rtl-optimization/47337
32520 * dce.c (check_argument_store): New function.
32521 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
32522
32523 PR tree-optimization/47290
32524 * tree-eh.c (infinite_empty_loop_p): New function.
32525 (cleanup_empty_eh): Use it.
32526
32527 2011-01-18 Steve Ellcey <sje@cup.hp.com>
32528
32529 PR target/46997
32530 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
32531 (a64_expand_widen_sum): Ditto.
32532 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
32533 (vec_extract_evenodd_help): Ditto.
32534 (vec_extract_evenv4hi): Ditto.
32535 (vec_extract_oddv4hi): Ditto.
32536 (vec_extract_evenv2si): Ditto.
32537 (vec_extract_oddv2si): Ditto.
32538 (vec_extract_evenv2sf): Ditto.
32539 (vec_extract_oddv2sf): Ditto.
32540 (vec_pack_trunc_v4hi: Ditto.
32541 (vec_pack_trunc_v2si): Ditto.
32542 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
32543 (vec_interleave_highv8qi): Ditto.
32544 (mix1_r): Ditto.
32545 (vec_extract_oddv8qi): Ditto.
32546 (vec_interleave_lowv4hi): Ditto.
32547 (vec_interleave_highv4hi): Ditto.
32548 (vec_interleave_lowv2si): Ditto.
32549 (vec_interleave_highv2si): Ditto.
32550
32551 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32552
32553 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
32554 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
32555 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
32556 (pa_c_mode_for_suffix): New.
32557 (TARGET_EXPAND_BUILTIN): Define.
32558 (TARGET_C_MODE_FOR_SUFFIX): Define.
32559 (pa_builtins): Define.
32560 (pa_init_builtins): Register __float128 type and init new support
32561 builtins.
32562 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
32563 * config/pa/quadlib.c (_U_Qfcopysign): New.
32564
32565 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
32566
32567 PR middle-end/46894
32568 * explow.c (allocate_dynamic_stack_space): Do not assume more than
32569 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
32570 are defined.
32571
32572 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32573
32574 PR tree-optimization/47179
32575 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
32576 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
32577
32578 2011-01-18 Richard Guenther <rguenther@suse.de>
32579
32580 PR rtl-optimization/47216
32581 * emit-rtl.c: Include tree-flow.h.
32582 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
32583 of replicating it with different semantics.
32584 * Makefile.in (emit-rtl.o): Adjust.
32585
32586 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32587
32588 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
32589 (cortex_a9_dp): Handle neon types correctly.
32590
32591 2011-01-18 Jakub Jelinek <jakub@redhat.com>
32592
32593 PR rtl-optimization/47299
32594 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
32595 subtarget. Use normal multiplication if both operands are constants.
32596 * expmed.c (expand_widening_mult): Don't try to optimize constant
32597 multiplication if op0 has VOIDmode. Convert op1 constant to mode
32598 before using it.
32599
32600 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32601
32602 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
32603 spacing after 'e.g.', typos, comma, hyphenation.
32604
32605 2011-01-17 Richard Henderson <rth@redhat.com>
32606
32607 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
32608 (rx_restricted_mem_operand): New.
32609 (rx_shift_operand): Use register_operand.
32610 (rx_source_operand, rx_compare_operand): Likewise.
32611 * config/rx/rx.md (addsi3_flags): New expander.
32612 (adddi3): Rewrite as expander.
32613 (adc_internal, *adc_flags, adddi3_internal): New patterns.
32614 (subsi3_flags): New expander.
32615 (subdi3): Rewrite as expander.
32616 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
32617
32618 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
32619 (rx_init_builtins): Remove sat builtin.
32620 (rx_expand_builtin): Likewise.
32621 * config/rx/rx.md (ssaddsi3): New.
32622 (*sat): Rename from sat. Represent the CC_REG input.
32623
32624 * config/rx/predicates.md (rshift_operator): New.
32625 * config/rx/rx.c (rx_expand_insv): Remove.
32626 * config/rx/rx-protos.h: Update.
32627 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
32628 operand to the canonical position.
32629 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
32630 (*bitclr, *bitclr_in_memory): Similarly.
32631 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
32632 (insv): Retain the zero_extract in the expansion.
32633
32634 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
32635 (bswaphi2, bitinvert, revw): Likewise.
32636
32637 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
32638 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
32639 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
32640 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
32641 (bitset, bitset_in_memory): Likewise.
32642 (bitinvert, bitinvert_in_memory): Likewise.
32643 (bitclr, bitclr_in_memory): Likewise.
32644 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
32645 (rx_strend, rx_cmpstrn): Likewise.
32646 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
32647 (bitop peep2 patterns): Remove.
32648
32649 * config/rx/rx.c (rx_match_ccmode): New.
32650 * config/rx/rx-protos.h: Update.
32651 * config/rx/rx.md (abssi2): Clobber, don't set flags.
32652 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
32653 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
32654 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
32655 (fix_truncsfsi2, floatsisf2): Likewise.
32656 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
32657 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
32658 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
32659 (*subsi3_flags, *xorsi3_flags): New.
32660
32661 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
32662
32663 * config/rx/rx.c (rx_print_operand): Remove workaround for
32664 unsplit comparison operations.
32665
32666 * config/rx/rx.md (movsicc): Split after reload.
32667 (*movsicc): Merge *movsieq and *movsine via match_operator.
32668 (*stcc): New pattern.
32669
32670 * config/rx/rx.c (rx_float_compare_mode): Remove.
32671 * config/rx/rx.h (rx_float_compare_mode): Remove.
32672 * config/rx/rx.md (cstoresi4): Split after reload.
32673 (*sccc): New pattern.
32674
32675 * config/rx/predicates.md (label_ref_operand): New.
32676 (rx_z_comparison_operator): New.
32677 (rx_zs_comparison_operator): New.
32678 (rx_fp_comparison_operator): New.
32679 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
32680 Validate that the flags are set properly for the comparison.
32681 (rx_gen_cond_branch_template): Remove.
32682 (rx_cc_modes_compatible): Remove.
32683 (mode_from_flags): New.
32684 (flags_from_code): Rename from flags_needed_for_conditional.
32685 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
32686 (rx_select_cc_mode): Likewise.
32687 (rx_split_fp_compare): New.
32688 (rx_split_cbranch): New.
32689 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
32690 (*cbranchsi4): Use match_operator and rx_split_cbranch.
32691 (*cbranchsf4): Similarly.
32692 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
32693 match_operator and rx_split_cbranch.
32694 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
32695 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
32696 (*cmpsi): Rename from cmpsi.
32697 (*tstsi): Rename from tstsi.
32698 (*cmpsf): Rename from cmpsf; use CC_Fmode.
32699 (*conditional_branch): Rename from conditional_branch.
32700 (*reveresed_conditional_branch): Remove.
32701 (b<code>): Remove expander.
32702 * config/rx/rx-protos.h: Update.
32703
32704 * config/rx/rx.c (rx_compare_redundant): Remove.
32705 * config/rx/rx.md (cmpsi): Don't use it.
32706 * config/rx/rx-protos.h: Update.
32707
32708 * config/rx/rx-modes.def (CC_F): New mode.
32709 * config/rx/rx.c (rx_select_cc_mode): New.
32710 * config/rx/rx.h (SELECT_CC_MODE): Use it.
32711 * config/rx/rx-protos.h: Update.
32712
32713 2011-01-17 Richard Henderson <rth@redhat.com>
32714
32715 * except.c (dump_eh_tree): Fix stray ; after for statement.
32716
32717 2011-01-17 Richard Guenther <rguenther@suse.de>
32718
32719 PR tree-optimization/47313
32720 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
32721 handling before copying the body. Properly deal with
32722 by-reference result in SSA form.
32723
32724 2011-01-17 Ian Lance Taylor <iant@google.com>
32725
32726 PR target/47219
32727 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
32728 (struct_value_alias_set): Don't define.
32729 (sparc_option_override): Don't set sparc_sr_alias_set and
32730 struct_value_alias_set.
32731 (save_or_restore_regs): Use gen_frame_mem rather than calling
32732 set_mem_alias_set.
32733 (sparc_struct_value_rtx): Likewise.
32734
32735 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
32736
32737 PR target/47318
32738 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
32739 (_mm_maskstore_pd): Likewise.
32740 (_mm_maskload_ps): Likewise.
32741 (_mm_maskstore_ps): Likewise.
32742 (_mm256_maskload_pd): Change mask to __m256i.
32743 (_mm256_maskstore_pd): Likewise.
32744 (_mm256_maskload_ps): Likewise.
32745 (_mm256_maskstore_ps): Likewise.
32746
32747 * config/i386/i386-builtin-types.def: Updated.
32748 (ix86_expand_special_args_builtin): Likewise.
32749
32750 * config/i386/i386.c (bdesc_special_args): Update
32751 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
32752 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
32753 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
32754 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
32755
32756 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
32757 Use <avxpermvecmode> on mask register.
32758 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
32759
32760 2011-01-17 Olivier Hainque <hainque@adacore.com>
32761 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32762 Eric Botcazou <ebotcazou@adacore.com>
32763
32764 PR target/46655
32765 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
32766 if <= USHRT_MAX in 32-bit mode.
32767
32768 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32769
32770 * doc/install.texi (Configuration, Specific): Wrap long
32771 lines in examples. Allow line wrapping in long options
32772 and URLs where beneficial for PDF output.
32773
32774 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
32775
32776 * config/mips/mips.c (mips_classify_symbol): Don't return
32777 SYMBOL_PC_RELATIVE for nonlocal labels.
32778
32779 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
32780
32781 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
32782
32783 2011-01-15 Jan Hubicka <jh@suse.cz>
32784
32785 PR tree-optimization/47276
32786 * ipa.c (function_and_variable_visibility): Do not try to mark alias
32787 declarations as needed.
32788
32789 2011-01-15 Martin Jambor <mjambor@suse.cz>
32790
32791 * common.opt (fdevirtualize): New flag.
32792 * doc/invoke.texi (Option Summary): Document it.
32793 * opts.c (default_options_table): Add devirtualize flag.
32794 * ipa-prop.c (detect_type_change): Return immediately if
32795 devirtualize flag is not set.
32796 (detect_type_change_ssa): Likewise.
32797 (compute_known_type_jump_func): Likewise.
32798 (ipa_analyze_virtual_call_uses): Likewise.
32799
32800 2011-01-14 Martin Jambor <mjambor@suse.cz>
32801
32802 PR tree-optimization/45934
32803 PR tree-optimization/46302
32804 * ipa-prop.c (type_change_info): New type.
32805 (stmt_may_be_vtbl_ptr_store): New function.
32806 (check_stmt_for_type_change): Likewise.
32807 (detect_type_change): Likewise.
32808 (detect_type_change_ssa): Likewise.
32809 (compute_complex_assign_jump_func): Check for dynamic type change.
32810 (compute_complex_ancestor_jump_func): Likewise.
32811 (compute_known_type_jump_func): Likewise.
32812 (compute_scalar_jump_functions): Likewise.
32813 (ipa_analyze_virtual_call_uses): Likewise.
32814 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
32815
32816 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32817
32818 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
32819 * config/i386/i386.opt (msse5): New Alias.
32820
32821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32822
32823 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
32824 * config/sparc/linux64.h (CC1_SPEC): Likewise.
32825 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
32826 * config/sparc/sparc.h (CC1_SPEC): Likewise.
32827
32828 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32829
32830 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
32831 -mcpu options.
32832 * config/sparc/linux64.h (CC1_SPEC): Likewise.
32833 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
32834 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
32835 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
32836 Likewise.
32837 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
32838
32839 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32840
32841 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
32842
32843 2011-01-14 Mike Stump <mikestump@comcast.net>
32844
32845 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
32846 * config/fr30/fr30.md: Likweise
32847 (movsi_push): Likewise.
32848 (movsi_pop): Likewise.
32849 (enter_func): Likewise.
32850 * config/moxie/moxie.md (movsi_push): Likewise.
32851 (movsi_pop): Likewise.
32852
32853 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32854
32855 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
32856 %{no_archive} %{exact_version}.
32857 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
32858 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
32859 %{no_archive} %{exact_version}.
32860 * config/mips/openbsd.h (LINK_SPEC): Likewise.
32861 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
32862 * config/mips/vxworks.h: Likewise.
32863
32864 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32865
32866 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
32867
32868 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32869
32870 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
32871 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
32872
32873 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32874
32875 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
32876 -nodefaultlib.
32877
32878 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32879
32880 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
32881 for mcpu not cpu.
32882 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
32883 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
32884 not cpu.
32885 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
32886 Don't handle -shlib.
32887
32888 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32889
32890 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
32891 (CC1_SPEC): Don't handle -profile.
32892
32893 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32894
32895 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
32896 * config/mips/mips.h (CC1_SPEC): Likewise.
32897
32898 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32899
32900 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
32901 * config/mips/mips.h (CC1_SPEC): Likewise.
32902
32903 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32904
32905 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
32906 * config/m32r/linux.h (LINK_SPEC): Likewise.
32907 * config/mips/linux.h (LINK_SPEC): Likewise.
32908 * config/mips/linux64.h (LINK_SPEC): Likewise.
32909 * config/sparc/linux.h (LINK_SPEC): Likewise.
32910 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
32911 LINK_SPEC): Likewise.
32912 * config/xtensa/linux.h (LINK_SPEC): Likewise.
32913
32914 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32915
32916 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
32917 %{version:-v}.
32918 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
32919
32920 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32921
32922 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
32923 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
32924
32925 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32926
32927 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
32928
32929 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32930
32931 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
32932 supports -Bstatic/-Bdynamic.
32933 * configure: Regenerate.
32934
32935 2011-01-14 Jan Hubicka <jh@suse.cz>
32936 Jack Howarth <howarth@bromo.med.uc.edu>
32937
32938 PR target/46037
32939 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
32940 when checking debug_info_level. Test write_symbols instead of
32941 debug_hooks->var_location when setting flag_var_tracking_uninit.
32942
32943 2011-01-14 Richard Guenther <rguenther@suse.de>
32944
32945 PR tree-optimization/47179
32946 * target.def (ref_may_alias_errno): New target hook.
32947 * targhooks.h (default_ref_may_alias_errno): Declare.
32948 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
32949 (default_ref_may_alias_errno): New function.
32950 * target.h (struct ao_ref_s): Declare.
32951 * tree-ssa-alias.c: Include target.h.
32952 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
32953 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
32954 (targhooks.o): Likewise.
32955 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
32956 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
32957
32958 2011-01-14 Richard Guenther <rguenther@suse.de>
32959
32960 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
32961
32962 2011-01-14 Richard Guenther <rguenther@suse.de>
32963
32964 PR tree-optimization/47280
32965 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
32966 return CFG changes.
32967 (tree_ssa_forward_propagate_single_use_vars): Deal with
32968 CFG changes from associate_plusminus.
32969
32970 2011-01-14 Richard Guenther <rguenther@suse.de>
32971
32972 PR middle-end/47281
32973 Revert
32974 2011-01-11 Richard Guenther <rguenther@suse.de>
32975
32976 PR tree-optimization/46076
32977 * tree-ssa.c (useless_type_conversion_p): Conversions from
32978 unprototyped to empty argument list function types are useless.
32979
32980 2011-01-14 Richard Guenther <rguenther@suse.de>
32981
32982 PR tree-optimization/47286
32983 * tree-ssa-structalias.c (new_var_info): Register variables are global.
32984
32985 2011-01-14 Martin Jambor <mjambor@suse.cz>
32986
32987 PR middle-end/46823
32988 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
32989
32990 2011-01-13 Anatoly Sokolov <aesok@post.ru>
32991
32992 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
32993 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
32994 * config/xtensa/xtensa.c (xtensa_libcall_value,
32995 xtensa_function_value_regno_p): New functions.
32996 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
32997
32998 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
32999
33000 PR c++/47213
33001 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
33002 PE specific hook.
33003 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
33004 New function prototype.
33005 * config/i386/winnt.c (i386_pe_assemble_visibility):
33006 Warn only if attribute was specified by user.
33007
33008 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33009
33010 PR target/47251
33011 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
33012 floating point.
33013 (floatunsdidf2_fcfidu): Ditto.
33014
33015 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33016
33017 * config/s390/s390.c (print_operand_address): Replace 'error' with
33018 'output_operand_lossage'.
33019 (print_operand): Likewise.
33020
33021 2011-01-13 Jeff Law <law@redhat.com>
33022
33023 PR rtl-optimization/39077
33024 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
33025 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
33026 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
33027 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
33028 * gcse.c (prune_insertions_deletions): New function.
33029 (compute_pre_data): Use it.
33030
33031 2011-01-13 Dodji Seketeli <dodji@redhat.com>
33032
33033 PR debug/PR46973
33034 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
33035 static function.
33036 (prune_unused_types_mark): Use it.
33037
33038 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
33039
33040 PR rtl-optimization/45352
33041 * sel-sched.c: Update copyright years.
33042 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
33043 in the advancing loop when we have issued issue_rate insns.
33044
33045 2011-01-12 Richard Henderson <rth@redhat.com>
33046
33047 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
33048 (TARGET_MD_ASM_CLOBBERS): New.
33049
33050 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
33051 (TARGET_DELEGITIMIZE_ADDRESS): New.
33052
33053 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
33054 (clzsi2, *bsch): New patterns.
33055
33056 * config/mn10300/mn10300.md (INT): New mode iterator.
33057 (*mov<INT>_clr): New pattern, and peep2 to generate it.
33058
33059 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
33060 flag_split_wide_types.
33061
33062 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
33063 (mn10300_trampoline_init): Rewrite without a template, an immediate
33064 load and a direct branch.
33065 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
33066
33067 2011-01-12 Anatoly Sokolov <aesok@post.ru>
33068
33069 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
33070 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
33071 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
33072 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
33073
33074 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
33075
33076 PR debug/47209
33077 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
33078 of type.
33079
33080 2011-01-12 Jan Hubicka <jh@suse.cz>
33081
33082 PR driver/47244
33083 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
33084 (PLUGIN_COND_CLOSE): New macro.
33085 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
33086
33087 2011-01-12 Richard Guenther <rguenther@suse.de>
33088
33089 PR lto/47259
33090 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
33091 register variables in a MEM_REF.
33092
33093 2011-01-12 Joseph Myers <joseph@codesourcery.com>
33094
33095 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
33096 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
33097 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
33098 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
33099 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
33100 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
33101 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
33102 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
33103 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
33104 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
33105 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
33106 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
33107 * config/gnu-user.h: New. Copied from linux.h.
33108 (LINUX_TARGET_STARTFILE_SPEC): Rename to
33109 GNU_USER_TARGET_STARTFILE_SPEC.
33110 (LINUX_TARGET_ENDFILE_SPEC): Rename to
33111 GNU_USER_TARGET_ENDFILE_SPEC.
33112 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
33113 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
33114 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
33115 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
33116 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
33117 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
33118 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
33119 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
33120 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
33121 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
33122 * config/arm/linux-eabi.h (CC1_SPEC): Use
33123 GNU_USER_TARGET_CC1_SPEC.
33124 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
33125 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
33126 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
33127 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
33128 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
33129 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
33130 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
33131 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
33132
33133 2011-01-12 Richard Guenther <rguenther@suse.de>
33134
33135 PR other/46946
33136 * doc/invoke.texi (ffast-math): Document it is turned on
33137 with -Ofast.
33138
33139 2011-01-12 Jan Hubicka <jh@suse.cz>
33140
33141 PR tree-optimization/47233
33142 * opts.c (common_handle_option): Disable ipa-reference with profile
33143 feedback.
33144
33145 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
33146
33147 * c-parser.c (c_parser_objc_at_property_declaration): Improved
33148 error message.
33149
33150 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
33151
33152 * c-parser.c (c_lex_one_token): Updated and reindented some
33153 comments. No changes in code.
33154
33155 2011-01-11 Ian Lance Taylor <iant@google.com>
33156
33157 * godump.c (go_output_var): Don't output the variable if there is
33158 already a type with the same name.
33159
33160 2011-01-11 Ian Lance Taylor <iant@google.com>
33161
33162 * godump.c (go_format_type): Don't generate float80.
33163
33164 2011-01-11 Richard Henderson <rth@redhat.com>
33165
33166 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
33167 declaration. Rewrite for both speed and size.
33168 (mn10300_address_cost_1): Remove.
33169 (mn10300_register_move_cost): New.
33170 (mn10300_memory_move_cost): New.
33171 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
33172 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
33173 extensions, shifts, BSWAP, CLZ.
33174 (mn10300_wide_const_load_uses_clr): Remove.
33175 (TARGET_REGISTER_MOVE_COST): New.
33176 (TARGET_MEMORY_MOVE_COST): New.
33177 * config/mn10300/mn10300-protos.h: Update.
33178 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
33179
33180 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
33181 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
33182 * config/mn10300/mn10300-protos.h: Update.
33183 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
33184 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
33185 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
33186 (*test_int_bitfield, *test_byte_bitfield): Remove.
33187 (*bit_test, *subreg_bit_test): Remove.
33188 * config/mn10300/predicates.md (const_8bit_operand): Remove.
33189
33190 * config/mn10300/constraints.md ("c"): Rename from "A".
33191 ("A", "D"): New constraint letters.
33192 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
33193 (fmssf4, fnmasf4, fnmssf4): Likewise.
33194
33195 * config/mn10300/mn10300.md (isa): New attribute.
33196 (enabled): New attribute.
33197
33198 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
33199 (abssf2, negsf2): Define only for hardware fp.
33200 (sqrtsf2): Reformat.
33201 (addsf3, subsf3, mulsf3): Merge expander and insn.
33202
33203 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
33204 (DEBUGGER_AUTO_OFFSET): Remove.
33205 (DEBUGGER_ARG_OFFSET): Remove.
33206
33207 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
33208 Emit register stores with the same offsets as the hardware.
33209 (mn10300_store_multiple_operation): Don't check that the register
33210 save offsets are monotonic.
33211 * config/mn10300/mn10300-protos.h: Update.
33212
33213 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
33214
33215 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
33216 in terms of the value on the stack, not the MDR register.
33217
33218 2011-01-11 Jan Hubicka <jh@suse.cz>
33219
33220 PR lto/45721
33221 PR lto/45375
33222 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
33223 (symbol_alias_set_destroy, symbol_alias_set_contains,
33224 propagate_aliases_backward): Declare.
33225 * lto-streamer-out.c (struct sets): New sturcture.
33226 (trivally_defined_alias): New function.
33227 (output_alias_pair_p): Rewrite.
33228 (output_unreferenced_globals): Fix output of alias pairs.
33229 (produce_symtab): Likewise.
33230 * ipa.c (function_and_variable_visibility): Set weak alias destination
33231 as needed in lto.
33232 * varasm.c (symbol_alias_set_t): Remove.
33233 (symbol_alias_set_destroy): Export.
33234 (propagate_aliases_forward, propagate_aliases_backward): New functions
33235 based on ...
33236 (compute_visible_aliases): ... this one; remove.
33237 (trivially_visible_alias): New
33238 (trivially_defined_alias): New.
33239 (remove_unreachable_alias_pairs): Rewrite.
33240 (finish_aliases_1): Reorganize code checking if alias is defined.
33241 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
33242 in LTO mode.
33243
33244 2011-01-11 Richard Guenther <rguenther@suse.de>
33245
33246 PR tree-optimization/46076
33247 * tree-ssa.c (useless_type_conversion_p): Conversions from
33248 unprototyped to empty argument list function types are useless.
33249
33250 2011-01-11 Richard Guenther <rguenther@suse.de>
33251
33252 PR middle-end/45235
33253 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
33254 volatile MEMs as MEM_READONLY_P.
33255
33256 2011-01-11 Richard Guenther <rguenther@suse.de>
33257
33258 PR tree-optimization/47239
33259 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
33260
33261 2011-01-11 Jeff Law <law@redhat.com>
33262
33263 PR tree-optimization/47086
33264 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
33265 IVs from statements that might throw.
33266
33267 2011-01-10 Jan Hubicka <jh@suse.cz>
33268
33269 PR lto/45375
33270 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
33271
33272 2011-01-10 Jan Hubicka <jh@suse.cz>
33273
33274 PR lto/45375
33275 * profile.c (read_profile_edge_counts): Ignore profile inconistency
33276 when correcting profile.
33277
33278 2011-01-10 Jan Hubicka <jh@suse.cz>
33279
33280 PR lto/46083
33281 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
33282 DECL_FINI_PRIORITY.
33283 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
33284 Restore DECL_FINI_PRIORITY.
33285
33286 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33287
33288 * doc/gimple.texi: Fix quoting of multi-word return values in
33289 @deftypefn statements. Ensure presence of return value. Wrap
33290 overlong @deftypefn lines.
33291 (is_gimple_operand, is_gimple_min_invariant_address): Remove
33292 descriptions of removed functions.
33293 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
33294 of multi-word return value in @deftypefn statement.
33295
33296 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33297
33298 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
33299 (Conditional Expressions, Logical Operators)
33300 (Statement and operand traversals): Do not indent smallexample
33301 code. Fix duplicate function argument in example.
33302
33303 2011-01-10 Jeff Law <law@redhat.com>
33304
33305 PR tree-optimization/47141
33306 * ipa-split.c (split_function): Handle case where we are
33307 returning a value and the return block has a virtual operand phi.
33308
33309 2011-01-10 Jan Hubicka <jh@suse.cz>
33310
33311 PR tree-optimization/47234
33312 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
33313 (pass_feedback_split_functions): Declare.
33314 * passes.c (init_optimization_passes): Add ipa-split as subpass of
33315 tree-profile.
33316 * ipa-split.c (gate_split_functions): Update comments; disable
33317 split-functions for profile_arc_flag and branch_probabilities.
33318 (gate_feedback_split_functions): New function.
33319 (execute_feedback_split_functions): New function.
33320 (pass_feedback_split_functions): New global var.
33321
33322 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
33323
33324 PR lto/46760
33325 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
33326 calling gimple_call_set_cannot_inline.
33327
33328 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
33329
33330 * config/darwin-sections.def: Remove unused section.
33331
33332 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
33333
33334 PR c++/47218
33335 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
33336
33337 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
33338
33339 PR objc/47232
33340 * c-parser.c (c_parser_declaration_or_fndef): Improved
33341 error message.
33342
33343 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
33344
33345 * config/i386/winnt.c (i386_pe_start_function): Make sure
33346 to switch back to function's section.
33347
33348 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
33349
33350 PR gcc/46902
33351 PR testsuite/46912
33352 * plugin.c: Move include of dlfcn.h from here...
33353 * system.h: ... to here.
33354
33355 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33356
33357 * doc/cpp.texi (C++ Named Operators): Fix markup for header
33358 file name.
33359 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
33360 two extra empty pages in PDF output.
33361
33362 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
33363
33364 PR objc/47078
33365 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
33366 for error recovery purposes behave as if it was not specified so
33367 that the default type is usd.
33368
33369 2011-01-07 Jan Hubicka <jh@suse.cz>
33370
33371 PR tree-optmization/46469
33372 * ipa.c (function_and_variable_visibility): Clear needed flags on
33373 nodes with external decls; handle weakrefs merging correctly.
33374
33375 2011-01-07 Joseph Myers <joseph@codesourcery.com>
33376
33377 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
33378 not false.
33379
33380 2011-01-07 Jan Hubicka <jh@suse.cz>
33381
33382 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
33383 and no longer claim that gold is required for linker plugin.
33384 * configure: Regenerate.
33385 * gcc.c (PLUGIN_COND): New macro.
33386 (LINK_COMMAND_SPEC): Use it.
33387 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
33388 * config.in (HAVE_LTO_PLUGIN): New.
33389 * configure.ac (--with-lto-plugin): New parameter; autodetect
33390 HAVE_LTO_PLUGIN.
33391
33392 2011-01-07 Jan Hubicka <jh@suse.cz>
33393
33394 PR tree-optimization/46367
33395 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
33396 when we can update original.
33397 (cgraph_mark_inline_edge): Sanity check.
33398 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
33399
33400 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33401
33402 * config/spu/spu.h (ASM_COMMENT_START): Define.
33403
33404 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
33405
33406 PR driver/42445
33407 * gcc.c (%>S): New.
33408 (SWITCH_KEEP_FOR_GCC): Likewise.
33409 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
33410 (do_spec_1): Handle "%>".
33411
33412 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
33413
33414 2011-01-07 Jakub Jelinek <jakub@redhat.com>
33415
33416 PR target/47201
33417 * config/i386/i386.c (ix86_delegitimize_address): If
33418 simplify_gen_subreg fails, return orig_x.
33419
33420 PR bootstrap/47187
33421 * value-prof.c (gimple_stringop_fixed_value): Handle
33422 lhs of the call properly.
33423
33424 2011-01-07 Jan Hubicka <jh@suse.cz>
33425
33426 PR lto/45375
33427 * lto-opt.c (lto_reissue_options): Set flag_shlib.
33428
33429 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
33430
33431 * target.def (function_switched_text_sections): New hook.
33432 * doc/tm.texi: Regenerated.
33433 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
33434 * final.c (default_function_switched_text_sections): New.
33435 (final_scan_insn): Call function_switched_text_sections when a
33436 mid-function section change occurs.
33437 * output.h (default_function_switched_text_sections): Declare.
33438 * config/darwin-protos.h (darwin_function_switched_text_sections):
33439 Likewise.
33440 * config/darwin.c (darwin_function_switched_text_sections): New.
33441 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
33442
33443 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
33444
33445 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
33446 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
33447 the secondary code fragment when outputting for DWARF == 2.
33448
33449 2011-01-07 Anatoly Sokolov <aesok@post.ru>
33450
33451 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
33452 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
33453 Remove.
33454 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
33455 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
33456
33457 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
33458
33459 PR debug/46704
33460 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
33461 when it is not empty.
33462
33463 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
33464
33465 Bobcat Enablement
33466 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
33467 (case ${target}): Add btver1.
33468 * config/i386/driver-i386.c (host_detect_local_cpu): Let
33469 -march=native recognize btver1 processors.
33470 * config/i386/i386-c.c (ix86_target_macros_internal): Add
33471 btver1 def_and_undef
33472 * config/i386/i386.c (struct processor_costs btver1_cost): New
33473 btver1 cost table.
33474 (m_BTVER1): New definition.
33475 (m_AMD_MULTIPLE): Includes m_BTVER1.
33476 (initial_ix86_tune_features): Add btver1 tune.
33477 (processor_target_table): Add btver1 entry.
33478 (static const char *const cpu_names): Add btver1 entry.
33479 (software_prefetching_beneficial_p): Add btver1.
33480 (ix86_option_override_internal): Add btver1 instruction sets.
33481 (ix86_issue_rate): Add btver1.
33482 (ix86_adjust_cost): Add btver1.
33483 * config/i386/i386.h (TARGET_BTVER1): New definition.
33484 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
33485 (enum processor_type): Add PROCESSOR_BTVER1.
33486 * config/i386/i386.md (define_attr "cpu"): Add btver1.
33487
33488 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33489
33490 PR target/43309
33491 * config/i386/i386.c (legitimize_tls_address)
33492 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
33493 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
33494 (tls_initial_exec_64_sun): New pattern.
33495
33496 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
33497
33498 * doc/invoke.texi (Overall Options): Improve wording and markup
33499 of the description of -wrapper.
33500
33501 2011-01-06 Joseph Myers <joseph@codesourcery.com>
33502
33503 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
33504 rdynamic, threads): New Driver options.
33505
33506 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33507
33508 PR target/38118
33509 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
33510 if coming from .tdata.
33511 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
33512
33513 2011-01-06 Jan Hubicka <jh@suse.cz>
33514
33515 PR lto/47188
33516 * collect2.c (main): Do not enable LTOmode when plugin is active.
33517
33518 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33519
33520 PR other/45915
33521 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
33522 --version output if supported.
33523 * configure: Regenerate.
33524
33525 2011-01-06 Joseph Myers <joseph@codesourcery.com>
33526
33527 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
33528 Driver options.
33529
33530 2011-01-06 Jakub Jelinek <jakub@redhat.com>
33531
33532 PR c/47150
33533 * c-convert.c (convert): When converting a complex expression
33534 other than COMPLEX_EXPR to a different complex type, ensure
33535 c_save_expr is called instead of save_expr, unless in_late_binary_op.
33536 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
33537 when converting COMPLEX_TYPE.
33538
33539 2011-01-06 Ira Rosen <irar@il.ibm.com>
33540
33541 PR tree-optimization/47139
33542 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
33543 only the last reduction value is used outside the loop. Update
33544 documentation.
33545
33546 2011-01-05 Joseph Myers <joseph@codesourcery.com>
33547
33548 * config/rtems.opt: New.
33549 * config.gcc (*-*-rtems*): Use rtems.opt.
33550
33551 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
33552
33553 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
33554 processors do not support 3DNow instructions.
33555
33556 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33557
33558 * config/spu/spu.c (spu_option_override): Set parameter
33559 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
33560
33561 2011-01-05 Jan Hubicka <jh@suse.cz>
33562
33563 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
33564 at the command line.
33565
33566 2011-01-05 Martin Jambor <mjambor@suse.cz>
33567
33568 PR lto/47162
33569 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
33570 deltas on streamed outgoing edges.
33571 (output_node_opt_summary): Output info for outgoing edges only when
33572 the node is in new parameter set.
33573 (output_cgraph_opt_summary): New parameter set, passed to the two
33574 aforementioned functions. Update its forward declaration and its
33575 callee too.
33576
33577 2011-01-05 Tom Tromey <tromey@redhat.com>
33578
33579 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
33580 operator to c_finish_omp_atomic.
33581 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
33582 (build_unary_op): Update.
33583 (build_modify_expr): Update.
33584 (build_asm_expr): Update.
33585
33586 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33587
33588 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
33589 newly inserted insns.
33590 (pad_bb): Likewise.
33591 (spu_emit_branch_hint): Likewise.
33592 (insert_hbrp_for_ilb_runout): Likewise.
33593 (spu_machine_dependent_reorg): Call df_finish_pass after
33594 schedule_insns returns.
33595
33596 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33597
33598 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
33599
33600 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
33601
33602 PR tree-optimization/47005
33603 * tree-sra.c (struct access): Add 'non_addressable' bit.
33604 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
33605 (decide_one_param_reduction): Return 0 if the parameter is passed by
33606 reference and one of the accesses in the group is non_addressable.
33607
33608 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
33609
33610 PR tree-optimization/47056
33611 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
33612 (mark_load): Likewise. Handle FUNCTION_DECL specially.
33613 (mark_store): Likewise. Pass STMT to ipa_record_reference.
33614
33615 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
33616
33617 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
33618 initializer. Skip view conversions from aggregate types.
33619
33620 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
33621
33622 PR bootstrap/47055
33623 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
33624
33625 2011-01-04 Philipp Thomas <pth@suse.de>
33626
33627 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
33628 obvious typo.
33629
33630 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33631
33632 * function.c (thread_prologue_and_epilogue_insns): Do not crash
33633 on empty epilogue sequences.
33634
33635 2011-01-04 Joseph Myers <joseph@codesourcery.com>
33636
33637 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
33638 non-static): New Driver options.
33639
33640 2011-01-04 Jie Zhang <jie@codesourcery.com>
33641
33642 PR driver/47137
33643 * gcc.c (default_compilers[]): Set combinable field to 0
33644 for all assembly languages.
33645
33646 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
33647
33648 * config/mips/loongson3a.md: New file.
33649 * config/mips/mips.md: Include loongson3a.md.
33650 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
33651 TUNE_LOONGSON_3A.
33652
33653 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
33654
33655 PR middle-end/47017
33656 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
33657 instead of convert_memory_address_addr_space on the base expression.
33658
33659 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33660
33661 * config/spu/spu.c (spu_option_override): Update error text
33662 for bad -march= / -mtune= values.
33663
33664 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33665
33666 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
33667 if branch-hint optimization will be performed.
33668
33669 2011-01-03 Jakub Jelinek <jakub@redhat.com>
33670
33671 PR tree-optimization/47148
33672 * ipa-split.c (split_function): Convert arguments to
33673 DECL_ARG_TYPE if possible.
33674
33675 PR tree-optimization/47155
33676 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
33677 when computing uns.
33678
33679 PR rtl-optimization/47157
33680 * combine.c (try_combine): If undobuf.other_insn becomes
33681 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
33682 and set *new_direct_jump_p too.
33683
33684 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
33685
33686 PR tree-optimization/47021
33687 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
33688
33689 2011-01-03 Jakub Jelinek <jakub@redhat.com>
33690
33691 * gcc.c (process_command): Update copyright notice dates.
33692 * gcov.c (print_version): Likewise.
33693 * gcov-dump.c (print_version): Likewise.
33694 * mips-tfile.c (main): Likewise.
33695 * mips-tdump.c (main): Likewise.
33696
33697 2011-01-03 Martin Jambor <mjambor@suse.cz>
33698
33699 PR tree-optimization/46801
33700 * tree-sra.c (type_internals_preclude_sra_p): Check whether
33701 aggregate fields start at byte boundary instead of the bit-field flag.
33702
33703 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
33704
33705 PR driver/47137
33706 * gcc.c (main): Revert revision 168407.
33707
33708 2011-01-03 Martin Jambor <mjambor@suse.cz>
33709
33710 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
33711
33712 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33713
33714 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
33715 vector optab to expand vector/scalar shift, update gimple to vector.
33716
33717 2011-01-03 Martin Jambor <mjambor@suse.cz>
33718
33719 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
33720 a thunk.
33721
33722 2011-01-03 Martin Jambor <mjambor@suse.cz>
33723
33724 PR tree-optimization/46984
33725 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
33726 HOST_WIDE_INT.
33727 (cgraph_create_indirect_edge): Fixed line length.
33728 (cgraph_indirect_call_info): Declare.
33729 (cgraph_make_edge_direct) Update declaration.
33730 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
33731 (cgraph_create_indirect_edge): Use it.
33732 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
33733 callees.
33734 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
33735 the new thunk_delta representation.
33736 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
33737 HOST_WIDE_INT.
33738 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
33739 (ipa_read_indirect_edge_info): Likewise.
33740 * lto-cgraph.c (output_edge_opt_summary): New function.
33741 (output_node_opt_summary): Call it on all outgoing edges.
33742 (input_edge_opt_summary): New function.
33743 (input_node_opt_summary): Call it on all outgoing edges.
33744
33745 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
33746
33747 PR driver/47137
33748 * gcc.c (main): Don't check have_o when settting combine_inputs.
33749
33750 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
33751
33752 * regrename.c: Add general comment describing the pass.
33753 (struct du_head): Remove 'length' field.
33754 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
33755 (regrename_optimize): Do not sort chains. Rework comments, add others.
33756 Force renaming to the preferred class (if any) in the first pass and do
33757 not consider registers that belong to it in the second pass.
33758 (create_new_chain): Do not set 'length' field.
33759 (scan_rtx_reg): Likewise.
33760
33761 2011-01-02 Jakub Jelinek <jakub@redhat.com>
33762
33763 PR tree-optimization/47140
33764 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
33765 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
33766 to bit_value_binop.
33767
33768 PR rtl-optimization/47028
33769 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
33770 parm_birth_insn instead of at the beginning of first bb.
33771
33772 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
33773
33774 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
33775 Remove the word "see" before "@pxref".
33776 * doc/rtl.texi: Remove the word "see" before "@pxref".
33777
33778 2011-01-01 Jan Hubicka <jh@suse.cz>
33779
33780 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
33781 memory.
33782
33783 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
33784
33785 PR target/38662
33786 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
33787
33788 \f
33789 Copyright (C) 2011 Free Software Foundation, Inc.
33790
33791 Copying and distribution of this file, with or without modification,
33792 are permitted in any medium without royalty provided the copyright
33793 notice and this notice are preserved.