Emit macro expansion related diagnostics
[gcc.git] / gcc / ChangeLog
1 2011-10-15 Tom Tromey <tromey@redhat.com>
2 Dodji Seketeli <dodji@redhat.com>
3
4 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
5 location parameter.
6 * diagnostic.c (diagnostic_report_current_module): Add a location
7 parameter to the function definition. Use it instead of
8 input_location. Resolve the virtual location rather than just
9 looking up its map and risking to touch a resulting macro map.
10 (default_diagnostic_starter): Pass the relevant diagnostic
11 location to diagnostic_report_current_module.
12 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
13 (virt_loc_aware_diagnostic_finalizer): Likewise.
14 (diagnostic_report_current_function): Pass the
15 relevant location to diagnostic_report_current_module.
16 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
17 new function.
18 * toplev.c (general_init): By default, use the new
19 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
20 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
21
22 2011-10-15 Tom Tromey <tromey@redhat.com>
23 Dodji Seketeli <dodji@redhat.com>
24
25 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
26 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
27 preprocessor related options.
28
29 2011-10-15 Tom Tromey <tromey@redhat>
30 Dodji Seketeli <dodji@redhat.com>
31
32 * input.h (struct expanded_location): Move to libcpp/line-map.h.
33 (LOCATION_COLUMN): New accessor
34 (in_system_header_at): Use linemap_location_in_system_header_p.
35 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
36 touching the internals of struct line_map. Use the public API.
37 instead.
38 (diagnostic_report_diagnostic): Don't use relational operator '<'
39 on virtual locations. Use linemap_location_before_p instead.
40 * input.c (expand_location): Adjust to expand to the tokens'
41 spelling location when macro location tracking is on.
42
43
44 2011-10-08 Andi Kleen <ak@linux.intel.com>
45
46 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
47
48 2011-10-13 Andi Kleen <ak@linux.intel.com>
49
50 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
51
52 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
53
54 PR tree-optimization/50727
55 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
56 DEF_STMT to the list of statements to be replaced by the
57 pattern statements.
58
59 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
60
61 PR rtl-optimization/50615
62 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
63
64 2011-10-16 Jakub Jelinek <jakub@redhat.com>
65
66 PR tree-optimization/50596
67 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
68 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
69 vect_recog_bool_pattern.
70 (check_bool_pattern, adjust_bool_pattern_cast,
71 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
72
73 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
74
75 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
76 treat the first load of the node as the first element in its
77 interleaving chain.
78 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
79 necessary and possible.
80 (vect_build_slp_tree): Add new argument. Allow load groups of any size
81 in basic blocks. Keep all the loads for further permutation check.
82 Use the new argument to determine if there is a permutation. Update
83 the recursive calls.
84 (vect_supported_load_permutation_p): Allow subchains of interleaving
85 chains in basic block vectorization.
86 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
87 Check load permutation based on the new parameter.
88 (vect_schedule_slp_instance): Don't start from the first element in
89 interleaving chain unless the loads are permuted.
90
91 2011-10-15 Jan Hubicka <jh@suse.cz>
92
93 PR target/48668
94 PR target/50689
95 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
96 after function body.
97
98 2011-10-15 Richard Henderson <rth@redhat.com>
99
100 * tree-vect-slp.c: Include langhooks.h.
101 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
102 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
103 mask creation for VEC_PERM_EXPR.
104 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
105 not the builtin.
106 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
107 * Makefile.in (tree-vect-slp.o): Update dependency.
108 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
109
110 2011-10-15 Alan Modra <amodra@gmail.com>
111
112 PR bootstrap/50738
113 * ifcvt.c (dead_or_predicable): Revert accidental commit with
114 HAVE_simple_return test.
115
116 2011-10-15 Alan Modra <amodra@gmail.com>
117
118 * ifcvt.c (dead_or_predicable): Disable if-conversion when
119 doing so is likely to kill a shrink-wrapping opportunity.
120
121 PR rtl-optimization/49941
122 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
123
124 * rtl.h (set_return_jump_label): Declare.
125 * function.c (set_return_jump_label): New function, extracted..
126 (thread_prologue_and_epilogue_insns): ..from here. Use it in
127 another instance to set return jump_label.
128 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
129 * reorg.c (find_end_label): Likewise.
130
131 2011-10-14 David S. Miller <davem@davemloft.net>
132
133 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
134 with a more complete cpp test.
135 * config/sparc/linux64.h: Likewise.
136 * config/sparc/linux.h: Likewise.
137 * config/sparc/sparc.opt (sparc_debug): New target variable.
138 (mdebug): New target option.
139 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
140 TARGET_DEBUG_OPTIONS): New defines.
141 * config/sparc/sparc.c (debug_target_flag_bits,
142 debug_target_flags): New functions.
143 (sparc_option_override): Add name strings back to cpu_table[].
144 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
145 out the target flags before and after override processing as well
146 as the selected cpu. If MASK_V8PLUS, make sure that the selected
147 cpu is at least v9.
148
149 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
150
151 PR target/49263
152 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
153 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
154 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
155 and instruction commutative.
156 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
157 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
158 tstsi_t_zero_extract_subreg_xor_little,
159 tstsi_t_zero_extract_subreg_xor_big): New insns.
160 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
161 asm output.
162 (*andsi_compact): Reorder alternatives so that K08 is considered first.
163
164 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
165
166 PR target/50354
167 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
168 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
169
170 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
171
172 * invoke.texi (AVR Options): Avoid \leq{}.
173
174 2011-10-14 Kai Tietz <ktietz@redhat.com>
175
176 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
177 transformation the operands have compatible types.
178
179 2011-10-14 Jakub Jelinek <jakub@redhat.com>
180
181 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
182 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
183 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
184 mode iterator and any_extend code iterator.
185 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
186 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
187 also for TARGET_SSE4_1 using pmuldq insn.
188 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
189 (sse2_sse4_1): New code attr.
190 (udot_prodv4si): Macroize using any_extend code iterator.
191 (<s>dot_prodv8si): New expander.
192
193 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
194
195 * config/i386/i386.c (atom_cost): Changed cost for loading
196 QImode using movzbl.
197
198 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
199
200 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
201 change on October 11th, 2011.
202
203 2011-10-14 Jakub Jelinek <jakub@redhat.com>
204
205 * config/i386/sse.md (vec_interleave_high<mode>,
206 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
207 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
208 (ix86_expand_vec_perm_builtin_1): Call it.
209
210 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
211
212 Fix thinko from r179765
213 * config/avr/avr.c (avr_option_override): Don't override
214 flag_omit_frame_pointer if not actually needed.
215
216 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
217
218 PR target/46278
219 * doc/invoke.texi (AVR Options): Document -mstrict-X.
220
221 * config/avr/avr.opt (-mstrict-X): New option.
222 (avr_strict_X): New variable reflecting -mstrict-X.
223 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
224 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
225 (avr_legitimate_address_p): Pass outer_code to
226 avr_reg_ok_for_addr_p and use that function in case PLUS.
227 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
228 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
229 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
230
231 2011-10-14 Jakub Jelinek <jakub@redhat.com>
232
233 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
234 of VI_128.
235
236 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
237 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
238 Use <sseinsnmode> instead of TI in mode attr.
239
240 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
241
242 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
243 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
244 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
245 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
246
247 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
248
249 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
250 (arm_output_strex): Support strexd.
251 (arm_output_it): New helper to output it in Thumb2 mode only.
252 (arm_output_sync_loop): Support DI mode. Change comment to
253 not support const_int.
254 (arm_expand_sync): Support DI mode.
255 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
256 and LDREXD.
257 * config/arm/iterators.md (NARROW): move from sync.md.
258 (QHSD): New iterator for all current ARM integer modes.
259 (SIDI): New iterator for SI and DI modes only.
260 * config/arm/sync.md (sync_predtab): New mode_attr.
261 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
262 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
263 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
264 (sync_nandsi): Fold into sync_nand<mode>.
265 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
266 (sync_new_nandsi): Fold into sync_new_nand<mode>.
267 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
268 (sync_old_nandsi): Fold into sync_old_nand<mode>.
269 (sync_compare_and_swap<mode>): Support SI & DI.
270 (sync_lock_test_and_set<mode>): Likewise.
271 (sync_<sync_optab><mode>): Likewise.
272 (sync_nand<mode>): Likewise.
273 (sync_new_<sync_optab><mode>): Likewise.
274 (sync_new_nand<mode>): Likewise.
275 (sync_old_<sync_optab><mode>): Likewise.
276 (sync_old_nand<mode>): Likewise.
277 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
278 (arm_sync_lock_test_and_setsi): Likewise.
279 (arm_sync_new_<sync_optab>si): Likewise.
280 (arm_sync_new_nandsi): Likewise.
281 (arm_sync_old_<sync_optab>si): Likewise.
282 (arm_sync_old_nandsi): Likewise.
283 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
284 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
285 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
286 (arm_sync_new_nand<mode> NARROW): Likewise.
287 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
288 (arm_sync_old_nand<mode> NARROW): Likewise.
289
290 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
291
292 PR target/48126
293 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
294
295 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
296
297 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
298
299 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
300
301 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
302
303 2011-10-14 Jakub Jelinek <jakub@redhat.com>
304
305 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
306 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
307
308 2011-10-14 Richard Guenther <rguenther@suse.de>
309
310 PR tree-optimization/50723
311 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
312
313 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
314
315 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
316 objc/objc-map.c.
317
318 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
319
320 PR c++/17212
321 * c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
322 * doc/invoke.texi: Update.
323
324 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
325
326 PR bootstrap/50699
327 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
328 build for powerpc targets. (darwin_patch_builtins): Only build for
329 powerpc targets.
330
331 2011-10-14 Jakub Jelinek <jakub@redhat.com>
332
333 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
334 (avx_cvtdq2pd256_2): ... this.
335 (sseunpackfltmode): New mode attr.
336 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
337 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
338 using VI2_AVX2 iterator.
339 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
340
341 2011-10-13 David S. Miller <davem@davemloft.net>
342
343 * config/sparc/sparc.md (plusminus): New code iterator.
344 (plusminus_insn): New code attr.
345 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
346 using plusminus and plusminus_insn.
347 (fpadd64_vis, fpsub64_vis): Likewise.
348
349 2011-10-13 Richard Henderson <rth@redhat.com>
350
351 * doc/md.texi (vec_perm): Document fallback to byte permutation.
352 * genopinit.c (optabs): Add vec_perm_const.
353 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
354 Reject non-vector modes. Allow fallback to byte permutation.
355 (expand_vec_perm_expr_1): Split out from ...
356 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
357 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
358 * tree-vect-generic.c (lower_vec_perm): Update for name change.
359
360 2011-10-13 Richard Henderson <rth@redhat.com>
361
362 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
363
364 * config/rs6000/spu.md (vec_permv16qi): New pattern.
365
366 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
367 * config/i386/i386-protos.h: Update.
368 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
369 (vec_perm_const<VEC_PERM_CONST>): New expander.
370
371 * optabs.c (expand_vector_broadcast): New.
372 (expand_binop): Expand scalar shifts of vectors to vector shifts
373 of vectors, if the former isn't supported.
374 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
375 here; always simplify to scalar shift of vector if possible.
376
377 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
378 test for vector splat.
379
380 2011-10-13 Jakub Jelinek <jakub@redhat.com>
381
382 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
383
384 2011-10-13 Jakub Jelinek <jakub@redhat.com>
385 Richard Guenther <rguenther@suse.de>
386
387 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
388 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
389
390 2011-10-13 Jakub Jelinek <jakub@redhat.com>
391
392 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
393 * config/i386/i386.c (ix86_build_const_vector): Handle
394 also V32QI, V16QI, V16HI and V8HI modes.
395 (emit_reduc_half): New function.
396 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
397 Use emit_reduc_half helper function.
398
399 2011-10-13 Lawrence Crowl <crowl@google.com>
400 Diego Novillo <dnovillo@google.com>
401
402 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
403 (input_function): ... here.
404 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
405 (output_function): ... here.
406
407 2011-10-13 Gabriel Charette <gchare@google.com>
408 Diego Novillo <dnovillo@google.com>
409
410 * streamer-hooks.h (struct streamer_hooks): Add hooks
411 input_location and output_location.
412 * lto-streamer-in.c (lto_input_location): Use
413 streamer_hooks.input_location, if set.
414 * lto-streamer-out.c (lto_output_location): Use
415 streamer_hooks.output_location, if set.
416
417 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
418
419 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
420 * config/sparc/sparc.opt (mfix-at697f): New option.
421 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
422 (sparc_reorg): New function.
423
424 2011-10-13 Richard Guenther <rguenther@suse.de>
425
426 PR tree-optimization/50712
427 * ipa-split.c (split_function): Always re-gimplify parameters
428 when they are not gimple vals before passing them. Properly
429 check for type compatibility.
430
431 2011-10-13 Tom de Vries <tom@codesourcery.com>
432
433 * function.c (gimplify_parameters): Set number of arguments of call to
434 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
435
436 2011-10-13 Tom de Vries <tom@codesourcery.com>
437
438 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
439 for static const strings.
440 * varasm.c (build_constant_desc): Generate the memory location of the
441 constant using gen_const_mem.
442
443 2011-10-13 Richard Guenther <rguenther@suse.de>
444
445 PR tree-optimization/50698
446 * tree-data-ref.c (split_constant_offset_1): Also process
447 offsets of &MEM.
448
449 2011-10-12 David S. Miller <davem@davemloft.net>
450
451 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
452 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
453 unspecs.
454 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
455 of a vec_concat.
456 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
457 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
458 Reimplement as unspecs and remove inaccurate comments.
459 (vis3_shift_patname): New code attr.
460 (<vis3_shift_insn><vbits>_vis): Rename to
461 "v<vis3_shift_patname><mode>3".
462 (vis3_addsub_ss_patname): New code attr.
463 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
464 "<vis3_addsub_ss_patname><mode>3".
465 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
466 accommodate pattern name changes.
467
468 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
469 to zero when assembler lacks support for such instructions.
470 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
471 and MASK_FMAF in defaults when assembler lacks necessary support.
472
473 2011-10-12 Jakub Jelinek <jakub@redhat.com>
474
475 * config/i386/sse.md (vec_unpacks_lo_<mode>,
476 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
477 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
478 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
479 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
480
481 * config/i386/sse.md (vec_avx2): New mode_attr.
482 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
483 (mul<mode>3): ... this.
484
485 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
486 * config/i386/i386.c (ix86_expand_vec_perm): Handle
487 V16QImode and V32QImode for TARGET_AVX2.
488 (MAX_VECT_LEN): Increase to 32.
489 (expand_vec_perm_blend): Add support for 32-byte integer
490 vectors with TARGET_AVX2.
491 (valid_perm_using_mode_p): New function.
492 (expand_vec_perm_pshufb): Add support for 32-byte integer
493 vectors with TARGET_AVX2.
494 (expand_vec_perm_vpshufb2_vpermq): New function.
495 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
496 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
497 with TARGET_AVX2.
498 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
499 and expand_vec_perm_vpshufb2_vpermq_even_odd.
500 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
501 32-byte integer vector modes.
502 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
503 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
504 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
505 4 new operands.
506 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
507 match_dup, instead add 4 new operands and require they have
508 right cross-lane values.
509 (avx2_permv4di): Change into define_expand.
510 (avx2_permv4di_1): New instruction.
511 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
512 for "xm" constrained operand.
513 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
514
515 * config/i386/sse.md (avx2_gathersi<mode>,
516 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
517 match_scratch, change memory_operand to register_operand,
518 add (mem:BLK (scratch)) use.
519 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
520 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
521 add earlyclobber to the output operand and match_scratch,
522 add (mem:BLK (scratch)) use, change the other mem to match_operand.
523 Use %p6 instead of %c6 in the pattern.
524 * config/i386/i386.c (ix86_expand_builtin): Adjust for
525 operand 2 being a Pmode register_operand instead of memory_operand.
526
527 2011-10-12 Kai Tietz <ktietz@redhat.com>
528
529 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
530
531 2011-10-12 Steve Ellcey <sje@cup.hp.com>
532
533 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
534
535 2011-10-12 Richard Guenther <rguenther@suse.de>
536
537 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
538 of the first store we visit in a basic-block.
539 (get_continuation_for_phi): Search for a candidate VUSE that
540 might dominates all others. Do pairwise disambiguation against
541 that candidate.
542
543 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
544
545 PR tree-optimization/50189
546 * tree-vrp.c (extract_range_from_assert): Use the type of
547 the variable, not the limit.
548
549 2011-10-12 Richard Guenther <rguenther@suse.de>
550
551 PR tree-optimization/50700
552 * tree-object-size.c (addr_object_size): Simplify and treat
553 MEM_REF bases consistently.
554
555 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
556
557 * function.c (prepare_shrink_wrap, bb_active_p): New function.
558 (thread_prologue_and_epilogue_insns): Use bb_active_p.
559 Call prepare_shrink_wrap, then recompute bb_active_p for the
560 last block.
561
562 2011-10-12 Joseph Myers <joseph@codesourcery.com>
563
564 PR c/50565
565 * convert.c (convert_to_integer): Do not narrow operands of
566 pointer subtraction.
567
568 2011-10-12 Nick Clifton <nickc@redhat.com>
569
570 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
571 emit a .eabi_attribute assembler directive, possibly with a
572 comment attached.
573 * config/arm/arm.c (arm_file_start): Use the new macro.
574 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
575
576 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
577
578 PR target/49939
579 * config/avr/avr.md (*movqi): Rename to movqi_insn.
580 (*call_insn): Rename to call_insn.
581 (*call_value_insn): Rename to call_value_insn.
582 * config/avr/avr.c (avr_2word_insn_p): New static function.
583 (jump_over_one_insn_p): Use it.
584
585 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
586
587 * expr.h (copy_blkmode_to_reg): Declare.
588 * expr.c (copy_blkmode_to_reg): New function.
589 (expand_assignment): Don't expand register RESULT_DECLs before
590 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
591 RESULT_DECL register.
592 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
593 * stmt.c (expand_return): Move BLKmode-to-register code into
594 copy_blkmode_to_reg.
595
596 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
597
598 PR target/49965
599 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
600 (mov<F:mode>cc): Likewise.
601
602 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
603
604 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
605
606 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
607
608 * tree.h (built_in_decls): Delete old interface with two parallel
609 arrays to hold standard builtin declarations, and replace it with
610 a function based interface that can support creating builtins on
611 the fly in the future. Change all uses, and poison the old
612 names. Make sure 0 is not a legitimate builtin index.
613 (implicit_built_in_decls): Ditto.
614 (built_in_info): Ditto.
615 (BUILTIN_VALID_P): Ditto.
616 (builtin_decl_explicit): Ditto.
617 (builtin_decl_implicit): Ditto.
618 (set_builtin_decl): Ditto.
619 (set_builtin_decl_implicit_p): Ditto.
620 (builtin_decl_explicit_p): Ditto.
621 (builtin_decl_implicit_p): Ditto.
622 * tree-complex.c (expand_complex_libcall): Ditto.
623 * tree-loop-distribution.c (generate_memset_zero): Ditto.
624 * tree-ssa-strlen.c (get_string_length): Ditto.
625 (handle_builtin_strcpy): Ditto.
626 (handle_builtin_strcat): Ditto.
627 * tree.c (iterative_hash_expr): Ditto.
628 (local_define_builtin): Ditto.
629 (build_common_builtin_nodes): Ditto.
630 * builtins.c (built_in_decls): Ditto.
631 (implicit_built_in_decls): Ditto.
632 (built_in_info): Ditto
633 (expand_builtin_classify_type): Ditto.
634 (mathfn_built_in_1): Ditto.
635 (expand_builtin_cexpi): Ditto.
636 (expand_builtin_mempcpy_args): Ditto.
637 (expand_builtin_stpcpy): Ditto.
638 (gimplify_va_arg_expr): Ditto.
639 (expand_builtin_sync_operation): Ditto.
640 (build_builtin_expect_predicate): Ditto.
641 (fold_builtin_memory_op): Ditto.
642 (fold_builtin_strcpy): Ditto.
643 (fold_builtin_stpcpy): Ditto.
644 (fold_builtin_strncpy): Ditto.
645 (fold_builtin_interclass_mathfn): Ditto.
646 (fold_builtin_classify): Ditto.
647 (fold_builtin_2): Ditto.
648 (fold_builtin_strstr): Ditto.
649 (fold_builtin_strrchr): Ditto.
650 (fold_builtin_strpbrk): Ditto.
651 (fold_builtin_strcat): Ditto.
652 (fold_builtin_strncat): Ditto.
653 (fold_builtin_strcspn): Ditto.
654 (fold_builtin_fputs): Ditto.
655 (fold_builtin_sprintf): Ditto.
656 (fold_builtin_snprintf): Ditto.
657 (expand_builtin_memory_chk): Ditto.
658 (fold_builtin_memory_chk): Ditto.
659 (fold_builtin_stxcpy_chk): Ditto.
660 (fold_builtin_strncpy_chk): Ditto.
661 (fold_builtin_strcat_chk): Ditto.
662 (fold_builtin_strncat_chk): Ditto.
663 (fold_builtin_sprintf_chk_1): Ditto.
664 (fold_builtin_snprintf_chk_1): Ditto.
665 (fold_builtin_printf): Ditto.
666 (fold_builtin_fprintf): Ditto.
667 (fold_call_stmt): Ditto.
668 (set_builtin_user_assembler_name): Ditto.
669 * tree-emutls.c (emutls_common_1): Ditto.
670 * omp-low.c (scan_omp): Ditto.
671 (lower_rec_input_clauses): Ditto.
672 (lower_reduction_clauses): Ditto.
673 (expand_parallel_call): Ditto.
674 (expand_task_call): Ditto.
675 (maybe_catch_exception): Ditto.
676 (optimize_omp_library_calls): Ditto.
677 (expand_omp_for_generic): Ditto.
678 (expand_omp_for_static_nochunk): Ditto.
679 (expand_omp_for_static_chunk): Ditto.
680 (expand_omp_sections): Ditto.
681 (expand_omp_atomic_fetch_op): Ditto.
682 (expand_omp_atomic_pipeline): Ditto.
683 (expand_omp_atomic_mutex): Ditto.
684 (lower_omp_single_simple): Ditto.
685 (lower_omp_single_copy): Ditto.
686 (lower_omp_master): Ditto.
687 (lower_omp_ordered): Ditto.
688 (lower_omp_critical): Ditto.
689 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
690 * builtins.c (DEF_BUILTIN_STUB): Ditto.
691 (BUILT_IN_NONE): Ditto.
692 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
693 * gimple-low.c (lower_function_body): Ditto.
694 (lower_builtin_setjmp): Ditto.
695 * c-decl.c (merge_decls): Ditto.
696 * tree-eh.c (lower_resx): Ditto.
697 (lower_resx): Ditto.
698 (lower_eh_dispatch): Ditto.
699 * function (gimplify_parameters): Ditto.
700 * c-typeck.c (build_function_call_vec): Ditto.
701 * gimplify.c (build_stack_save_restore): Ditto.
702 (gimplify_vla_decl): Ditto.
703 (gimplify_modify_expr_to_memcpy): Ditto.
704 (gimplify_modify_expr_to_memset): Ditto.
705 (gimplify_variable_sized_compare): Ditto.
706 (gimplify_function_tree): Ditto.
707 * calls.c (emit_call_1): Ditto.
708 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
709 * tree-nested.c (convert_nl_goto_reference): Ditto.
710 (convert_tramp_reference_op): Ditto.
711 (finalize_nesting_tree_1): Ditto.
712 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
713 (tree_ssa_prefetch_arrays): Ditto.
714 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
715 * system.h (built_in_decls): Ditto.
716 (implicit_built_in_decls): Ditto.
717 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
718 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
719 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
720 (ix86_veclibabi_svml): Ditto.
721 (ix86_veclibabi_acml): Ditto.
722 * config/vms/vms.c (vms_patch_builtins): Ditto.
723 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
724 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
725 (rs6000_builtin_vectorized_libmass): Ditto.
726 (rs6000_init_builtins): Ditto.
727 * config/darwin.c (darwin_override_options): Ditto.
728 (darwin_patch_builtin): Ditto.
729 (darwin_rename_builtins): Ditto.
730 * config/pa/pa.c (pa_init_builtins): Ditto.
731
732 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
733
734 * tree.h (copy_ref_info): Expose existing function.
735 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
736 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
737
738 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
739
740 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
741 prototype.
742 (avr_regno_mode_code_ok_for_base_p): New prototype.
743 * config/avr/avr.h (BASE_REG_CLASS): Remove.
744 (REGNO_OK_FOR_BASE_P): Remove.
745 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
746 (REG_OK_FOR_BASE_STRICT_P): Remove.
747 (MODE_CODE_BASE_REG_CLASS): New define.
748 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
749 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
750 (avr_regno_mode_code_ok_for_base_p): New function.
751 (avr_reg_ok_for_addr_p): New static function.
752 (avr_legitimate_address_p): Use it. Beautify.
753
754 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
755
756 PR target/50447
757 * config/avr/avr.md (cc): Add out_plus attribute alternative.
758 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
759 avr_out_plus for all CONST_INT addends.
760 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
761 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
762 CC_OUT_PLUS.
763 (avr_out_plus_1): Change prototype and report effect on cc0.
764 (avr_out_plus): Ditto.
765 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
766
767 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
768
769 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
770 the extra break.
771
772 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
773
774 * doc/invoke.texi: Document new warning.
775 * common.opt (Wvector-operation-performance): Define new warning.
776 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
777 vector operation.
778 (exapnd_vector_parallel): Warn about expanded vector operation.
779 (lower_vec_shuffle): Warn about expanded vector operation.
780 * c-typeck.c (c_build_vec_perm_expr): Store correct location
781 when creating VEC_PERM_EXPR.
782
783 2011-10-11 Richard Guenther <rguenther@suse.de>
784
785 PR tree-optimization/50204
786 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
787 two argument handling from ...
788 (get_continuation_for_phi): ... here. Handle arbitrary number
789 of PHI args.
790
791 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
792
793 PR c++/33067
794 * c-family/c-pretty-print.c (pp_c_floating_constant): Output
795 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
796
797 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
798
799 * modulo-sched.c: Fix comment typo. Mention the possibility
800 of using scheduling windows of II+1 cycles.
801
802 2011-10-11 Tristan Gingold <gingold@adacore.com>
803
804 * doc/invoke.texi (C Dialect Options): Document
805 -fallow-parameterless-variadic-functions.
806 * c-parser.c (c_parser_parms_list_declarator): Handle it.
807
808 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
809
810 * config/avr/avr.c (avr_option_override): Set
811 flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
812
813 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
814
815 PR bootstrap/50665
816 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
817 optab_index to enum direct_optab_index.
818 (vec_perm_optab): Update.
819
820 2011-10-10 Anatoly Sokolov <aesok@post.ru>
821
822 * config/cris/cris.c (cris_preferred_reload_class): New function.
823 (TARGET_PREFERRED_RELOAD_CLASS): Define.
824 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
825
826 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
827
828 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
829 !AVR_HAVE_JMP_CALL.
830 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
831 (*tablejump_enh, *tablejump): Remove insns.
832 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
833 EIJMP for indirect jump. Use LPM Z+ where available.
834
835 2011-10-10 Richard Henderson <rth@redhat.com>
836
837 * doc/md.texi (vec_perm_const): Fix typo in cindex.
838
839 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
840 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
841
842 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
843
844 2011-10-10 Richard Guenther <rguenther@suse.de>
845
846 PR middle-end/50389
847 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
848 mark symbols for renaming. Append the VUSE to all statements
849 that possibly can have one.
850
851 2011-10-10 Richard Guenther <rguenther@suse.de>
852
853 * ipa-split.c (pass_split_functions): Add verification TODOs.
854 (pass_feedback_split_functions): Likewise.
855
856 2011-10-10 Richard Guenther <rguenther@suse.de>
857
858 PR middle-end/50195
859 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
860 only when optimizing.
861
862 2011-10-10 Nick Clifton <nickc@redhat.com>
863
864 PR middle-end/49801
865 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
866 df_get_live_out instead of accessing the bitmaps directly.
867 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
868 df_live_add_problem and df_analyze.
869
870 2011-10-10 Michael Matz <matz@suse.de>
871
872 PR middle-end/50638
873 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
874
875 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
876
877 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
878 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
879 (node_sched_params): Remove first_reg_move and nreg_moves.
880 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
881 (update_node_sched_params): Move up file.
882 (print_node_sched_params): Print the stage. Don't dump info related
883 to first_reg_move and nreg_moves.
884 (set_columns_for_row): New function.
885 (set_columns_for_ps): Move up file and use set_columns_for_row.
886 (schedule_reg_move): New function.
887 (schedule_reg_moves): Call extend_node_sched_params and
888 schedule_reg_move. Extend size of uses bitmap. Initialize
889 num_consecutive_stages. Return false if a move could not be
890 scheduled.
891 (apply_reg_moves): Don't emit moves here.
892 (permute_partial_schedule): Handle register moves.
893 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
894 to the same stage-count test as ddg nodes.
895 (generate_prolog_epilog): Update calls accordingly.
896 (sms_schedule): Allow move-scheduling to add a new first stage.
897
898 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
899
900 * modulo-sched.c (ps_insn): Adjust comment.
901 (ps_reg_move_info): New structure.
902 (partial_schedule): Add reg_moves field.
903 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
904 (node_sched_params): Turn first_reg_move into an identifier.
905 (ps_reg_move): New function.
906 (ps_rtl_insn): Cope with register moves.
907 (ps_first_note): Adjust comment and assert that the instruction
908 isn't a register move.
909 (node_sched_params): Replace with...
910 (node_sched_param_vec): ...this vector.
911 (set_node_sched_params): Adjust accordingly.
912 (print_node_sched_params): Take a partial schedule instead of a ddg.
913 Use ps_rtl_insn and ps_reg_move.
914 (generate_reg_moves): Rename to...
915 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
916 move in the partial schedule, but don't emit it here. Don't perform
917 register substitutions here either.
918 (apply_reg_moves): New function.
919 (duplicate_insns_of_cycles): Use register indices directly,
920 rather than finding instructions using PREV_INSN. Use ps_reg_move.
921 (sms_schedule): Call schedule_reg_moves before committing to
922 a partial schedule. Try the next ii if the schedule fails.
923 Use apply_reg_moves instead of generate_reg_moves. Adjust
924 call to print_node_sched_params. Free node_sched_param_vec
925 instead of node_sched_params.
926 (create_partial_schedule): Initialize reg_moves.
927 (free_partial_schedule): Free reg_moves.
928
929 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
930
931 * modulo-sched.c (ps_insn): Replace node field with an identifier.
932 (SCHED_ASAP): Replace with..
933 (NODE_ASAP): ...this macro.
934 (SCHED_PARAMS): New macro.
935 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
936 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
937 (node_sched_params): Remove asap.
938 (ps_rtl_insn, ps_first_note): New functions.
939 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
940 asap values.
941 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
942 (generate_reg_moves): Pass ids to the SCHED_* macros.
943 (update_node_sched_params): Take a ps insn identifier rather than
944 a node as parameter. Use ps_rtl_insn.
945 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
946 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
947 (optimize_sc): Update for above field and SCHED_* macro changes.
948 Update calls to try_scheduling_node_in_cycle and
949 update_node_sched_params.
950 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
951 macro changes. Use ps_rtl_insn and ps_first_note.
952 (sms_schedule): Pass ids to the SCHED_* macros.
953 (get_sched_window): Adjust for above field and SCHED_* macro changes.
954 Use NODE_ASAP instead of SCHED_ASAP.
955 (try_scheduling_node_in_cycle): Remove node parameter. Update
956 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
957 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
958 (ps_insert_empty_row): Adjust for above field changes.
959 (compute_split_row): Use ids rather than nodes.
960 (verify_partial_schedule): Adjust for above field changes.
961 (print_partial_schedule): Use ps_rtl_insn.
962 (create_ps_insn): Take an id rather than a node.
963 (ps_insn_find_column): Adjust for above field changes.
964 Use ps_rtl_insn.
965 (ps_insn_advance_column): Adjust for above field changes.
966 (add_node_to_ps): Remove node parameter. Update call to
967 create_ps_insn.
968 (ps_has_conflicts): Use ps_rtl_insn.
969 (ps_add_node_check_conflicts): Replace node parameter than an id.
970
971 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
972
973 * modulo-sched.c (undo_replace_buff_elem): Delete.
974 (generate_reg_moves): Don't build and return an undo list.
975 (free_undo_replace_buff): Delete.
976 (sms_schedule): Adjust call to generate_reg_moves.
977 Don't call free_undo_replace_buff.
978
979 2011-10-10 Matthias Klose <doko@ubuntu.com>
980
981 * common/config/m32c: Remove empty directory.
982
983 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
984
985 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
986
987 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
988
989 PR target/50652
990 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
991 atmega164a to 0x100.
992
993 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
994
995 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
996 the replacement if the conversion to the LHS type is not useless.
997
998 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
999
1000 PR tree-optimization/50635
1001 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1002 DEF_STMT to the list of statements to be replaced by the
1003 pattern statements.
1004 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1005
1006 2011-10-09 Anatoly Sokolov <aesok@post.ru>
1007
1008 * system.h: Commit forgotten hunk in previous patch.
1009 (OUTPUT_ADDR_CONST_EXTRA): Poison.
1010
1011 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
1012
1013 PR libobjc/50428
1014 * doc/objc.texi (Garbage Collection): Updated example to protect
1015 +initialize against execution in subclasses.
1016
1017 2011-10-07 Richard Henderson <rth@redhat.com>
1018
1019 * doc/extend.texi (__builtin_shuffle): Improve the description to
1020 include the modulus of the selector. Mention OpenCL.
1021 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1022
1023 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1024 * genopinit.c (optabs): Rename vshuffle to vec_perm.
1025 * c-typeck.c (c_build_vec_perm_expr): Rename from
1026 c_build_vec_shuffle_expr. Update for name changes.
1027 * optabs.c (expand_vec_perm_expr_p): Rename from
1028 expand_vec_shuffle_expr_p.
1029 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1030 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1031 (vec_perm_optab): Rename from vshuffle_optab.
1032 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1033 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1034 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1035
1036 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1037 ix86_expand_vshuffle.
1038 * config/i386/i386-protos.h: Update.
1039 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1040 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1041
1042 2011-10-07 Richard Henderson <rth@redhat.com>
1043
1044 * config/i386/predicates.md (avx2_pblendw_operand): New.
1045 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1046 (avx2_pblendw, *avx2_pblendw): New expander and insn.
1047
1048 2011-10-07 Richard Henderson <rth@redhat.com>
1049
1050 * config/i386/i386.c (bdesc_args): Update code for
1051 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
1052 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1053 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1054 * config/i386/sse.md (mode iterator V16): Add V2TI.
1055 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1056 (mode attr ssse3_avx2): Add V2TI.
1057 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1058
1059 2011-10-07 David S. Miller <davem@davemloft.net>
1060
1061 PR 50655
1062 * configure.ac: Add .register directives to VIS3 test.
1063 * configure: Regenerate.
1064
1065 2011-10-07 Richard Henderson <rth@redhat.com>
1066
1067 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1068
1069 2011-10-07 Richard Henderson <rth@redhat.com>
1070
1071 PR 49752
1072 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1073
1074 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
1075
1076 * config/arm/predicates.md (shift_amount_operand): Remove constant
1077 range check.
1078 (shift_operator): Check range of constants for all shift operators.
1079
1080 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1081
1082 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1083 Load GOT pointer for non-pic builds.
1084 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1085 (s390_emit_call): Likewise.
1086
1087 2011-10-07 Tom de Vries <tom@codesourcery.com>
1088
1089 PR middle-end/50527
1090 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1091 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1092 throw.
1093 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1094 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1095 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1096 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1097 * tree-ssa-ccp.c (evaluate_stmt): Set align for
1098 BUILT_IN_ALLOCA_WITH_ALIGN.
1099 (fold_builtin_alloca_for_var): Rename to ...
1100 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1101 BUILT_IN_ALLOCA_WITH_ALIGN argument.
1102 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1103 fold_builtin_alloca_with_align.
1104 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1105 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1106 DEF_BUILTIN_STUB.
1107 * ipa-pure-const.c (special_builtin_state): Handle
1108 BUILT_IN_ALLOCA_WITH_ALIGN.
1109 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1110 (call_may_clobber_ref_p_1): Same.
1111 * function.c (gimplify_parameters): Lower vla to
1112 BUILT_IN_ALLOCA_WITH_ALIGN.
1113 * gimplify.c (gimplify_vla_decl): Same.
1114 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1115 * tree-mudflap.c (mf_xform_statements): Same.
1116 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1117 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1118 * varasm.c (incorporeal_function_p): Same.
1119 * tree-object-size.c (alloc_object_size): Same.
1120 * gimple.c (gimple_build_call_from_tree): Same.
1121
1122 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
1123
1124 * function.c (frame_required_for_rtx): Remove function.
1125 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
1126 changed. Compute a set of mentioned registers and compare against
1127 the new arg rather than calling frame_required_for_rtx.
1128 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1129 reg set. Convert the unconverted_simple_returns mechanism to store
1130 jump insns rather than their basic blocks. Also check the
1131 orig_entry_edge destination for new blocks.
1132
1133 2011-10-07 Jakub Jelinek <jakub@redhat.com>
1134
1135 PR tree-optimization/50650
1136 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1137 call vect_is_simple_cond here, instead fail if cond_expr isn't
1138 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1139 for cond_expr's first operand.
1140 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1141 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1142
1143 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1144
1145 * config/s390/s390.md (DWH, dwh): New mode macros.
1146 ("umulsidi3"): Extend to support "umulditi3" as well.
1147
1148 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
1149 H.J. Lu <hongjiu.lu@intel.com>
1150
1151 PR target/50603
1152 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1153 integer PLUS RTX to a register to improve address combine.
1154
1155 2011-10-06 Richard Henderson <rth@redhat.com>
1156
1157 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1158 parameter; use it to decide whether to merge two notes.
1159 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1160 for the deallocation case as well.
1161
1162 2011-10-06 Anatoly Sokolov <aesok@post.ru>
1163
1164 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1165 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1166 * doc/tm.texi: Regenerate.
1167 * target.def (output_addr_const_extra): Use
1168 hook_bool_FILEptr_rtx_false.
1169 * targhooks.c (default_asm_output_addr_const_extra): Remove.
1170 * targhooks.h (default_asm_output_addr_const_extra): Remove.
1171 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1172 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1173
1174 2011-10-06 David S. Miller <davem@davemloft.net>
1175
1176 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1177 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1178 SI mode 64-bit code gen case explicitly zero-extend and truncate.
1179 (*popcount<mode>_sp64): Split up into...
1180 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1181 SImode case use truncate.
1182 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1183 subtract so the compiler can optimize it.
1184 (SIDI): Remove unused mode iterator.
1185
1186 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1187
1188 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1189 on the orig_entry_edge. Don't account for it in prologue_clobbered.
1190
1191 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1192
1193 PR tree-optimization/50596
1194 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1195 (NUM_PATTERNS): Change to 6.
1196 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1197 function.
1198 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1199 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1200 if it already has one, and don't set STMT_VINFO_VECTYPE in it
1201 if it is already set.
1202 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1203 COND_EXPR in pattern stmts.
1204 (vect_is_simple_cond): No longer static.
1205
1206 2001-10-06 Richard Henderson <rth@redhat.com>
1207
1208 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1209 * config/i386/sse.md (sseshuffint): Remove.
1210 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1211 (VSHUFFLE_AVX2): New mode iterator.
1212 (vshuffle<mode>): Use it.
1213 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1214
1215 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1216 for vector_all_ones_operand.
1217 (ix86_expand_int_vcond): Distinguish between comparison mode
1218 and data mode. Allow them to differ.
1219 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1220
1221 2001-10-06 Richard Henderson <rth@redhat.com>
1222
1223 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1224 mask operand. Tidy the code.
1225
1226 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1227
1228 * tree-vect-patterns.c (vect_pattern_recog_1): Use
1229 vect_recog_func_ptr typedef for the first argument.
1230 (vect_pattern_recog): Rename vect_recog_func_ptr variable
1231 to vect_recog_func, use vect_recog_func_ptr typedef for it.
1232
1233 PR tree-optimization/49279
1234 * tree-ssa-structalias.c (find_func_aliases): Don't handle
1235 CAST_RESTRICT.
1236 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1237 restrict propagation.
1238 * tree-ssa.c (useless_type_conversion_p): Don't return false
1239 if TYPE_RESTRICT differs.
1240
1241 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1242
1243 * function.c (thread_prologue_and_epilogue_insns): Build a vector
1244 of unconverted simple return blocks rather than trying to
1245 recompute them later based on bb_flags bitmap tests.
1246
1247 2011-10-06 Michael Matz <matz@suse.de>
1248
1249 * tree-flow.h (get_var_ann): Don't declare.
1250 * tree-flow-inline.h (get_var_ann): Remove.
1251 (set_is_used): Use var_ann, not get_var_ann.
1252 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1253 * tree-profile.c (gimple_gen_edge_profiler): Call
1254 find_referenced_var_in.
1255 (gimple_gen_interval_profiler): Ditto.
1256 (gimple_gen_pow2_profiler): Ditto.
1257 (gimple_gen_one_value_profiler): Ditto.
1258 (gimple_gen_average_profiler): Ditto.
1259 (gimple_gen_ior_profiler): Ditto.
1260 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1261 (gimple_gen_ic_func_profiler): Call add_referenced_var.
1262 * tree-mudflap.c (execute_mudflap_function_ops): Call
1263 add_referenced_var.
1264
1265 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1266
1267 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1268 don't set SSA_NAME_DEF_STMT that has been already set by
1269 gimple_build_assign_with_ops.
1270 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1271 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1272 Likewise.
1273
1274 * tree.h (avoid_folding_inline_builtin): New prototype.
1275 * builtins.c (avoid_folding_inline_builtin): No longer static.
1276 * gimple-fold.c (gimple_fold_builtin): Give up if
1277 avoid_folding_inline_builtin returns true.
1278
1279 2011-10-06 Richard Guenther <rguenther@suse.de>
1280
1281 * tree-vect-generic.c (vector_element): Look at previous
1282 generated results.
1283
1284 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
1285
1286 PR target/39950
1287 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1288 __powerpc__, __PPC__, __unix__.
1289
1290 2011-10-06 Michael Matz <matz@suse.de>
1291
1292 * i386/i386.opt (recip_mask, recip_mask_explicit,
1293 x_recip_mask_explicit): New variables and cl_target member.
1294 (mrecip=): New option.
1295 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1296 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1297 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1298 TARGET_RECIP_VEC_SQRT): New tests.
1299 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1300 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1301 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1302 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1303 * i386/i386.c (ix86_option_override_internal): Set recip_mask
1304 for -mrecip and -mrecip=options.
1305 (ix86_function_specific_save): Save recip_mask_explicit.
1306 (ix86_function_specific_restore): Restore recip_mask_explicit.
1307
1308 * doc/invoke.texi (ix86 Options): Document the new option.
1309
1310 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1311
1312 PR target/49049
1313 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1314
1315 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
1316
1317 PR target/50305
1318 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1319 output of a previous pass through legitimize_reload_address.
1320 Do not attempt to optimize addresses if the base register is
1321 equivalent to a constant.
1322
1323 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1324
1325 * function.c (thread_prologue_and_epilogue_insns): Mark
1326 last_bb_active as possibly unused. It is unused for targets which
1327 do neither have "return" nor "simple_return" expanders.
1328
1329 2011-10-06 Richard Guenther <rguenther@suse.de>
1330
1331 * fold-const.c (fold_ternary_loc): Also fold non-constant
1332 vector CONSTRUCTORs. Make more efficient.
1333 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1334 (cprop_into_stmt): Don't propagate into virtual operands.
1335 (optimize_stmt): Really dump original statement.
1336
1337 2011-10-06 Nick Clifton <nickc@redhat.com>
1338
1339 * config/rx/rx.md (smin3): Revert previous delta.
1340
1341 2011-10-06 Richard Guenther <rguenther@suse.de>
1342
1343 PR tree-optimization/38884
1344 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1345 reads from aggregate SSA names.
1346
1347 2011-10-05 Jakub Jelinek <jakub@redhat.com>
1348
1349 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1350 argument, truncate it at the beginning instead of allocating there
1351 and freeing at the end.
1352 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1353 pass its address to vect_pattern_recog_1.
1354
1355 2011-10-05 David S. Miller <davem@davemloft.net>
1356
1357 * config/sparc/sparc.opt (POPC): New option.
1358 * doc/invoke.texi: Document it.
1359 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1360 default on Niagara-2 and later.
1361 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1362 * config/sparc/sparc.md (SIDI): New mode iterator.
1363 (ffsdi2): Delete commented out pattern and comments.
1364 (popcount<mode>2, clz<mode>2): New expanders.
1365 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1366 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1367
1368 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1369
1370 PR middle-end/50607
1371 * c-tree.h (c_expr_t): New typedef for struct c_expr.
1372 (C_EXPR_APPEND): New macro.
1373 * c-parser.c (c_parser_get_builtin_args): Preserve
1374 original_tree_code of c_expr structure.
1375 (c_parser_postfix_expression): Adjust to the new function.
1376
1377 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
1378
1379 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
1380 if profiling after the prologue.
1381
1382 2011-10-05 Jakub Jelinek <jakub@redhat.com>
1383
1384 PR tree-optimization/50613
1385 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1386 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1387 and if it is neither that not SSA_NAME, give up.
1388
1389 2011-10-05 Richard Henderson <rth@redhat.com>
1390
1391 * tree-vect-generic.c (vector_element): Never fail. Use
1392 build_zero_cst. Tidy up type references.
1393 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
1394 code duplication. Do update_stmt here ...
1395 (expand_vector_operations_1): ... not here.
1396
1397 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
1398 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
1399 duplication. Handle V2DI without SSE4.1.
1400 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1401 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1402
1403 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
1404
1405 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1406 of "found". Simplify return value calculation.
1407 (distance_agu_use): Ditto.
1408
1409 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
1410
1411 PR bootstrap/50621
1412 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1413 if the function was not shrink-wrapped.
1414 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1415 to an insn.
1416 * function.c (thread_prologue_and_epilogue_insns): Make sure the
1417 shrink_wrapped flag is set even if there is no dump file.
1418
1419 2011-10-05 DJ Delorie <dj@redhat.com>
1420 Nick Clifton <nickc@redhat.com>
1421
1422 * config/rx/rx.opt (mpid): Define.
1423 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1424 (MULTILIB_DIRNAMES): Add pid.
1425 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1426 (rx_num_interrupt_regs): New variable.
1427 (rx_gp_base_regnum): New function. Returns the number of the
1428 small data area register.
1429 (rx_pid_base_regnum): New function. Returns the number of the pid
1430 base register.
1431 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
1432 (rx_pid_data_operand): New function. Returns whether an object is
1433 in the position independent data area.
1434 (rx_legitimize_address): New function. Puts undecided PID
1435 objects in the PID data area.
1436 (rx_is_legitimate_address): Add support for PID operands.
1437 (rx_print_operand_address): Likewise.
1438 (rx_print_operand): Likewise.
1439 (rx_maybe_pidify_operand): New function. Determine if an operand
1440 is suitable for PID addressing.
1441 (rx_gen_move_template): Add PID support.
1442 (rx_conditional_register_usage): Likewise.
1443 (rx_option_override): Initialise rx_num_interrupt_regs.
1444 (rx_is_legitimate_constant): Add support for PID constants.
1445 (TARGET_LEGITIMIZE_ADDRESS): Define.
1446 * config/rx/constraints.md (Rpid): Define.
1447 (Rpda): Define.
1448 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1449 (tablejump): Add PID support.
1450 (mov<>): Likewise.
1451 (mov<>_internal): Likewise.
1452 (addsi3): Convert to an expander. Add PID support.
1453 (pid_addr): New pattern.
1454 * config/rx/rx.h (CPP_SPEC): Define.
1455 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1456 (CASE_VECTOR_PC_RELATIVE): Define.
1457 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1458 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1459 * doc/invoke.texi (RX Options): Document -mpid command line option.
1460
1461 2011-10-05 Richard Guenther <rguenther@suse.de>
1462
1463 PR tree-optimization/38885
1464 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1465 from constants.
1466
1467 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
1468
1469 * doc/invoke.texi (-fshrink-wrap): Document.
1470 * opts.c (default_options_table): Add it.
1471 * common.opt (fshrink-wrap): Add.
1472 * function.c (emit_return_into_block): Remove useless declaration.
1473 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1474 requires_stack_frame_p, gen_return_pattern): New static functions.
1475 (emit_return_into_block): New arg simple_p. All callers changed.
1476 Use gen_return_pattern.
1477 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1478 * config/i386/i386.md (return): Expand into a simple_return.
1479 (simple_return): New expander):
1480 (simple_return_internal, simple_return_internal_long,
1481 simple_return_pop_internal_long, simple_return_indirect_internal):
1482 Renamed from return_internal, return_internal_long,
1483 return_pop_internal_long and return_indirect_internal; changed to use
1484 simple_return.
1485 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1486 simple returns.
1487 (ix86_pad_returns): Likewise.
1488 * function.h (struct rtl_data): Add member shrink_wrapped.
1489 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1490 are not jumps or sibcalls can't be compared.
1491
1492 2011-10-05 Richard Guenther <rguenther@suse.de>
1493
1494 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1495 vector type.
1496 (simplify_unary_expression): Handle BIT_FIELD_REFs.
1497 (try_to_simplify): Handle BIT_FIELD_REFs.
1498
1499 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
1500
1501 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1502 * config/avr/avr.c (avr_out_addto_sp): New function.
1503 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1504 * config/avr/avr.md (adjust_len): Add "addto_sp".
1505 (*movhi_sp): Remove insn.
1506 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1507
1508 2011-10-05 Richard Guenther <rguenther@suse.de>
1509
1510 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1511 with an embedded expression valueize and fold that as well.
1512 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1513 results from gimple_fold_stmt_to_constant_1.
1514
1515 2011-10-05 Nick Clifton <nickc@redhat.com>
1516
1517 * config/rx/rx.md (tablejump): Add missing label.
1518 (adddi3_internal): Mark operand 0 as early-clobbered.
1519 (smaxsi3): Revert previous delta.
1520 (adc_internal): Fix whitespace in generated asm.
1521 (adc_flags): Likewise.
1522
1523 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1524
1525 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1526 with the new widening_optab_handler.
1527
1528 2011-10-05 Richard Guenther <rguenther@suse.de>
1529
1530 PR tree-optimization/50609
1531 * gimple-fold.c (fold_array_ctor_reference): Also handle
1532 vector typed constructors.
1533 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1534 for vector typed constructors.
1535
1536 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
1537
1538 * config/i386/i386.c (ix86_emit_binop): New static function.
1539 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1540 instructions.
1541 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1542
1543 2011-10-04 David S. Miller <davem@davemloft.net>
1544
1545 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1546 UNSPEC_XMUL): New unspecs.
1547 (muldi3_v8plus): Use output_v8plus_mult.
1548 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1549 New VIS 3.0 combiner patterns.
1550 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1551 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1552 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1553 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1554 builtins patterns.
1555 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1556 (output_v8plus_mult): New function.
1557 * config/sparc/sparc-protos.h: Declare it.
1558 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1559 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
1560 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
1561 * doc/extend.texi: Document new builtins.
1562
1563 2011-10-04 Richard Henderson <rth@redhat.com>
1564
1565 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
1566 Avoid save_expr unless two_arguments.
1567
1568 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
1569
1570 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
1571 * config/i386/mingw32.h (CPP_SPEC): Likewise.
1572
1573 2011-10-04 David S. Miller <davem@davemloft.net>
1574
1575 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
1576 under Linux.
1577
1578 2011-10-04 Jakub Jelinek <jakub@redhat.com>
1579
1580 PR tree-optimization/50604
1581 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
1582 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
1583 last argument to memcpy has size_type_node type instead of ssizetype.
1584 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
1585 instead of TREE_TYPE (len) as type for newlen.
1586
1587 PR tree-optimization/50522
1588 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
1589 TYPE_RESTRICT.
1590 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
1591 unconditionally.
1592
1593 * fold-const.c (fold_unary_loc): Don't optimize
1594 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
1595 casting the inner pointer if it isn't TYPE_RESTRICT.
1596 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
1597 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
1598
1599 2011-10-04 Joseph Myers <joseph@codesourcery.com>
1600
1601 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
1602
1603 2011-10-04 Jan Hubicka <jh@suse.cz>
1604
1605 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
1606 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
1607 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
1608 * lto-cgraph.c (order_base): New static var.
1609 (lto_output_node): Stream in order.
1610 (lto_output_varpool_node): Stream out order.
1611 (input_node): Stream in order.
1612 (input_varpool_node): Stream out order.
1613 (input_cgraph_1): Initialize order base; update call of
1614 lto_input_toplevel_asms.
1615
1616 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
1617
1618 PR target/50566
1619 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
1620 prototype.
1621 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
1622 from here...
1623 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
1624 function. Log if avr_log.legitimize_reload_address.
1625
1626 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
1627
1628 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
1629
1630 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1631
1632 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
1633 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
1634
1635 2011-10-03 David S. Miller <davem@davemloft.net>
1636
1637 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
1638 GSR_REG an input operand to UNSPEC instead of a parallel USE.
1639 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
1640 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
1641 Reference GSR_REG in DI mode, simplify convoluted expressions by using
1642 zero_extract.
1643 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
1644
1645 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
1646
1647 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
1648
1649 2011-10-03 Jakub Jelinek <jakub@redhat.com>
1650 Ian Lance Taylor <iant@google.com>
1651
1652 * godump.c (go_output_typedef): Support printing enum values that
1653 don't fit in a signed HOST_WIDE_INT.
1654
1655 2011-10-03 Anatoly Sokolov <aesok@post.ru>
1656
1657 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
1658 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1659 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1660 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
1661
1662 2011-10-03 Anatoly Sokolov <aesok@post.ru>
1663
1664 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
1665 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1666 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1667 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
1668
1669 2011-10-03 Steve Ellcey <sje@cup.hp.com>
1670
1671 PR target/49967
1672 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
1673 (gcc_cv_ld_static_option): Ditto.
1674 (gcc_cv_ld_dynamic_option): Ditto.
1675 * configure: Regenerate.
1676
1677 2011-10-03 David S. Miller <davem@davemloft.net>
1678
1679 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
1680 and 'si' patterns which describe the GSR changes explicitly in the
1681 RTL using zero_extract.
1682 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
1683
1684 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
1685 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
1686
1687 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1688
1689 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
1690 if given expression can be expanded by the target.
1691 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
1692 using target vector instructions.
1693 * optabs.h: New optab vshuffle.
1694 (expand_vec_shuffle_expr_p): New prototype.
1695 (expand_vec_shuffle_expr): New prototype.
1696 (vshuffle_optab): New optab.
1697 * genopinit.c: Adjust to support vecshuffle.
1698 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
1699 * expr.c (expand_expr_real_2): Adjust.
1700 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
1701 recognizing the cases of two and three arguments.
1702 (convert_arguments) (build_binary_op)
1703 (scalar_to_vector) (build_array_ref): Spurious whitespace.
1704 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
1705 * tree.def: New tree code VEC_SHUFFLE_EXPR.
1706 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
1707 * tree-vect-generic.c (vector_element): New function. Returns an
1708 element of the vector at the given position.
1709 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
1710 by the backend or expand an expression piecewise.
1711 (expand_vector_operations_1): Adjusted.
1712 (gate_expand_vector_operations_noop): New gate function.
1713 * Makefile.in (tree-vect-generic.o): New include.
1714 * gimple.c (get_gimple_rhs_num_ops): Adjust.
1715 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
1716 * passes.c: Move veclower down.
1717 * tree-pretty-print.c (dump_generic_node): Recognize
1718 VEC_SHUFFLE_EXPR as valid expression.
1719 * c-parser.c (c_parser_get_builtin_args): Helper function for the
1720 builtins with variable number of arguments.
1721 (c_parser_postfix_expression): Use a new helper function for
1722 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
1723 * tree-ssa-operands: Adjust.
1724 * c-family/c-common.c: New __builtin_shuffle keyword.
1725 * c-family/c-common.h: New __builtin_shuffle keyword.
1726 * gcc/doc/extend.texi: Adjust.
1727
1728 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
1729 between the vector and the type of the mask when shuffling.
1730 (vecshuffle<mode>): New expansion.
1731 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
1732 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
1733 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
1734
1735 2011-10-03 Jakub Jelinek <jakub@redhat.com>
1736
1737 PR tree-optimization/50587
1738 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
1739 arg0 is not a SSA_NAME.
1740
1741 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
1742
1743 * ipa-inline-analysis.c (MAX_TIME): Update comment.
1744
1745 2011-10-02 Richard Henderson <rth@redhat.com>
1746 David S. Miller <davem@davemloft.net>
1747
1748 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
1749 conditional insn type setting, we always emit a shift.
1750 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
1751 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
1752 * config/sparc/predicates.md (const_one_operand): Delete.
1753
1754 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
1755
1756 * invoke.texi (SPARC Options): Refer to GNU/Linux.
1757
1758 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
1759
1760 * config/mips/mips.c (mips_frame_barrier): New function.
1761 (mips_expand_prologue): Call it after allocating stack space.
1762 (mips_deallocate_stack): New function.
1763 (mips_expand_epilogue): Call mips_frame_barrier and
1764 mips_deallocate_stack.
1765
1766 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
1767
1768 PR target/49696
1769 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
1770 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1771 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
1772
1773 2011-10-02 Jan Hubicka <jh@suse.cz>
1774
1775 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
1776
1777 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
1778 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
1779 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
1780 functions are reachable when address is taken.
1781 * tree-sra.c (modify_function): Free dominance info.
1782
1783 2011-10-02 Jan Hubicka <jh@suse.cz>
1784
1785 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
1786
1787 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
1788 (reset_inline_summary): New function.
1789 (compute_inline_parameters, inline_node_removal_hook,
1790 inline_edge_removal_hook): Use it.
1791 (inline_free_summary): Reset holders correctly.
1792 (inline_generate_summary): Free summary before computing it.
1793
1794 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
1795
1796 PR preprocessor/36819
1797 * incpath.c (merge_include_chains): Call free_path on
1798 heads[QUOTE] and tails[QUOTE].
1799
1800 2011-10-02 Jan Hubicka <jh@suse.cz>
1801
1802 PR lto/47247
1803 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
1804 when resolution is already availbale from plugin.
1805 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
1806 * cgraph.c (ld_plugin_symbol_resolution): Add
1807 prevailing_def_ironly_exp.
1808 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
1809 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
1810 externally visible.
1811 * varasm.c (resolution_to_local_definition_p): Add
1812 LDPR_PREVAILING_DEF_IRONLY_EXP.
1813 (resolution_local_p): Likewise.
1814
1815 2011-10-01 David S. Miller <davem@davemloft.net>
1816
1817 * config/sparc/sparc.opt (VIS3): New option.
1818 * doc/invoke.texi: Document it.
1819 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
1820 not capable of such instructions.
1821 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1822 to 0x300 when TARGET_VIS3.
1823 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
1824 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
1825 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
1826 (V64N8, VASS): New mode iterators.
1827 (vis3_shift, vis3_addsub_ss): New code iterators.
1828 (vbits, vconstr): New mode attributes.
1829 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
1830 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
1831 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
1832 fmean16_vis, fpadd64_vis, fpsub64_vis,
1833 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
1834 VIS 3.0 instruction patterns.
1835 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
1836 default when targetting capable cpus. TARGET_VIS3 implies
1837 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
1838 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
1839 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
1840 is ignored.
1841 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
1842 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
1843 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
1844 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
1845 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
1846 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
1847 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
1848 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
1849 * doc/extend.texi: Document new VIS 3.0 builtins.
1850
1851 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
1852
1853 * ira-color.c (assign_hard_reg): Fix typo.
1854
1855 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
1856
1857 * doc/extend.texi: Add missing ','.
1858
1859 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
1860
1861 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
1862 Enable -fmodulo-sched at -O2 and above.
1863 * config/c6x/c6x.md (doloop_end): New expander.
1864 (mvilc, sploop, spkernel, loop_end): New patterns.
1865 (loop_end with memory destination splitter): New.
1866 * config/c6x/c6x.c: Include "hw-doloop.h".
1867 (enum unitreqs): New.
1868 (unit_req_table): New typedef.
1869 (unit_reqs): New static variable.
1870 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
1871 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
1872 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
1873 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
1874 (struct c6x_sched_context): New member last_scheduled_iter0.
1875 (init_sched_state): Initialize it.
1876 (c6x_variable_issue): Update it.
1877 (sploop_max_uid_iter0): New static variable.
1878 (c6x_sched_reorder_1): Be careful about issuing sploop.
1879 (c6x_reorg): Call c6x_hwlooops before the final schedule.
1880
1881 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
1882
1883 PR target/50566
1884 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
1885 * config/avr/avr.c (avr_address_cost): Use it.
1886 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1887 (avr_log_vadump): Unknown %-codes finish printing.
1888
1889 2011-09-30 Jakub Jelinek <jakub@redhat.com>
1890
1891 PR inline-asm/50571
1892 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
1893 input constraints allow mem and not reg, pass true instead of
1894 false as second argument to maybe_fold_reference.
1895
1896 PR tree-optimization/46309
1897 * fold-const.c (make_range, merge_ranges): Remove prototypes.
1898 (make_range_step): New function.
1899 (make_range): Use it.
1900 * tree.h (make_range_step): New prototypes.
1901 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
1902 * tree-ssa-reassoc.c: Include diagnostic-core.h.
1903 (struct range_entry): New type.
1904 (init_range_entry, range_entry_cmp, update_range_test,
1905 optimize_range_tests): New functions.
1906 (reassociate_bb): Call optimize_range_tests.
1907
1908 2011-09-30 Jakub Jelinek <jakub@redhat.com>
1909 Richard Guenther <rguenther@suse.de>
1910
1911 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
1912 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
1913 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
1914 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
1915 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
1916 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
1917
1918 2011-09-30 Jan Beulich <jbeulich@suse.com>
1919
1920 * lto-cgraph.c (output_cgraph): Remove processing of
1921 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
1922 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
1923 lto_input_toplevel_asms() instead.
1924 * lto-section-in.c (lto_section_name): Add "asm" entry.
1925 * lto-streamer-in.c (lto_input_toplevel_asms): New.
1926 * lto-streamer-out.c (lto_output_toplevel_asms): New.
1927 * lto-streamer.h (LTO_minor_version): Bump.
1928 (enum lto_section_type): Add LTO_section_asm.
1929 (struct lto_asm_header): New.
1930 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
1931 * tree-streamer.h (streamer_write_string_cst): Declare.
1932 * tree-streamer-out.c (write_string_cst): Rename to
1933 streamer_write_string_cst and make global. Handle incoming string
1934 being NULL.
1935 (streamer_write_tree_header): Adjust call to renamed function.
1936
1937 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
1938
1939 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
1940 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
1941 modulo_last_stage): New static variables.
1942 (set_modulo_params, discard_delay_pairs_above): New functions.
1943 (struct delay_pair): New member stages.
1944 (htab_i2_traverse, htab_i1_traverse): New static functions.
1945 (record_delay_slot_pair): New arg stages. All callers changed.
1946 Record it.
1947 (pair_delay): Take stages into account.
1948 (add_delay_dependencies): Don't do so for stage pairs.
1949 (struct sched_block_state): New member modulo_epilogue.
1950 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
1951 (unschedule_insns_until): Decrease modulo_insns_scheduled.
1952 Set HARD_DEP without using or.
1953 (resolve_dependencies): New static function.
1954 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
1955 If it is true, allow only insns with INSN_EXACT_TICK set.
1956 (schedule_block): Return bool, always true for normal scheduling,
1957 true or false depending on modulo scheduling success otherwise.
1958 Add bookkeeping for modulo scheduling, and call resolve_dependencies
1959 on everything left over after a modulo schedule.
1960 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
1961 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
1962 declarations.
1963 (set_modulo_params, discard_delay_pairs_above): Declare.
1964 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
1965 * doc/invoke.texi (--param): Document it.
1966
1967 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
1968 New arg modulo_scheduling. All callers changed. Move note handling
1969 code here from schedule_ebbs.
1970 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
1971 out of schedule_ebbs.
1972 (schedule_ebbs): Call them. Remove note handling code moved to
1973 schedule_ebb.
1974 * sched-int.h (schedule_ebb, schedule_ebbs_init,
1975 schedule_ebbs_finish): Declare.
1976
1977 2011-09-30 Richard Guenther <rguenther@suse.de>
1978
1979 PR middle-end/50574
1980 * tree-cfg.c (verify_gimple_comparison): Compare component
1981 mode sizes for vector comparisons.
1982
1983 2011-09-30 Revital Eres <revital.eres@linaro.org>
1984
1985 * ddg.c (autoinc_var_is_used_p): New function.
1986 (create_ddg_dep_from_intra_loop_link,
1987 add_cross_iteration_register_deps): Call it.
1988 * ddg.h (autoinc_var_is_used_p): Declare.
1989 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
1990 (sms_schedule): Handle instructions with REG_INC.
1991
1992 2011-09-30 Revital Eres <revital.eres@linaro.org>
1993
1994 * modulo-sched.c (generate_reg_moves): Skip instructions that
1995 do not set a register and verify no regmoves are created for
1996 !single_set instructions.
1997
1998 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
1999
2000 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2001 insns.
2002
2003 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2004
2005 PR target/50099
2006 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2007 (qhs_zextenddi_op): New.
2008 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2009 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2010 Distinguish between ARM and Thumb2 states.
2011
2012 2011-09-30 David S. Miller <davem@davemloft.net>
2013
2014 * config/sparc/sparc.opt (VIS2): New option.
2015 * doc/invoke.texi: Document it.
2016 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2017 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2018 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2019 (define_attr type): New insn type 'edgen'.
2020 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2021 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2022 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2023 patterns.
2024 * niagara.md: Handle edgen.
2025 * niagara2.md: Likewise.
2026 * ultra1_2.md: Likewise.
2027 * ultra3.md: Likewise.
2028 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2029 to 0x200 when TARGET_VIS2.
2030 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2031 default when targetting capable cpus. TARGET_VIS2 implies
2032 TARGET_VIS, clear and it when TARGET_FPU is disabled.
2033 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2034 (sparc_expand_builtin): Fix predicate indexing when builtin returns
2035 void.
2036 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2037 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2038 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2039 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2040 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2041 * doc/extend.texi: Document new VIS 2.0 builtins.
2042
2043 2011-09-29 Nick Clifton <nickc@redhat.com>
2044 Bernd Schmidt <bernds@codesourcery.com>
2045
2046 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2047 * config/frv/frvend.c: Likewise.
2048 * config/frv/frv.c (frv_function_prologue): Move misplaced
2049 CALL_ARG_LOCATION notes back to their proper locations.
2050
2051 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2052
2053 PR target/50566
2054 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2055 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2056 from avr_rtx_costs.
2057 (avr_legitimate_address_p): Use avr_edump to print log information
2058 filtered by avr_log.
2059 (extra_constraint_Q): Ditto.
2060 (avr_legitimize_address): Ditto.
2061 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
2062 (final_prescan_insn): Use avr_log.rtx_costs as filter.
2063
2064 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
2065
2066 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2067 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2068 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
2069 NEON vector and structure modes to be tied.
2070
2071 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2072
2073 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
2074 forward declaration.
2075 (remove_duplicate_close_phi): Detect and repair creation of
2076 duplicate close-phis for a containing loop.
2077
2078 2011-09-27 Andi Kleen <ak@linux.intel.com>
2079
2080 * gcc.c (get_local_tick). Rename to get_random_number. Read from
2081 /dev/urandom. Add getpid call.
2082 (compare_debug_dump_opt_spec_function): Drop getpid call.
2083
2084 2011-09-26 Andi Kleen <ak@linux.intel.com>
2085
2086 * toplev.c (init_local_tick): Try reading random seed
2087 from /dev/urandom.
2088
2089 2011-09-26 Andi Kleen <ak@linux.intel.com>
2090
2091 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2092 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2093 Handle numerical random seed.
2094 * lto-streamer.h (lto_file_decl_data): Change id to
2095 unsigned HOST_WIDE_INT.
2096 * toplev.c (random_seed): Add.
2097 (init_random_seed): Change for numerical random seed.
2098 (get_random_seed): Return as HOST_WIDE_INT.
2099 (set_random_seed): Crc32 existing string.
2100 * toplev.h (get_random_seed): Change to numercal return.
2101 * tree.c (get_file_function_name): Remove CRC. Handle
2102 numerical random seed.
2103
2104 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2105
2106 PR target/50566
2107 * config.gcc (extra_objs): Add avr-log.o for $target in:
2108 avr-*-rtems*, avr-*-*.
2109 * config/avr/t-avr (avr-log.o): New rule to compile...
2110 * config/avr/avr-log.c: ...this new file.
2111 * config/avr/avr.opt (mlog=): New option.
2112 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2113 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2114 (avr_log_set_avr_log): New prototype.
2115 (avr_log_t): New typedef.
2116 (avr_log): New declaration.
2117 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2118
2119 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2120
2121 * expr.c (do_store_flag): Expand vector comparison by
2122 building an appropriate VEC_COND_EXPR.
2123 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2124 (c_objc_common_truthvalue_conversion): Adjust.
2125 * tree-vect-generic.c (do_compare): Helper function.
2126 (expand_vector_comparison): Check if hardware supports
2127 vector comparison of the given type or expand vector piecewise.
2128 (expand_vector_operation): Treat comparison as binary
2129 operation of vector type.
2130 (expand_vector_operations_1): Adjust.
2131
2132 2011-09-29 Richard Guenther <rguenther@suse.de>
2133
2134 * tree.c (build_opaque_vector_type): Make opaque vectors
2135 variant types of the corresponding non-opaque type. Make
2136 sure to share opaque vector types properly.
2137
2138 2011-09-29 David S. Miller <davem@davemloft.net>
2139
2140 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2141 UNSPEC_ARRAY32): New unspec.
2142 (define_attr type): New type 'array'.
2143 (array{8,16,32}<P:mode>_vis): New patterns.
2144 * config/sparc/ultra1_2.md: Add reservations for 'array'.
2145 * config/sparc/ultra3.md: Likewise.
2146 * config/sparc/niagara.md: Likewise.
2147 * config/sparc/niagara2.md: Likewise.
2148 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2149 array builtins.
2150 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2151 __vis_array32): New.
2152 * doc/extend.texi: Document new VIS builtins.
2153
2154 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2155 (VIS pixel-compare insn): Just use <gcond:name>.
2156
2157 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2158 code iterator used, so just use <code>. There are two mode iterators
2159 so explicitly use <GCM:gcm_name>.
2160
2161 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
2162
2163 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2164 Darwin >= 9.
2165
2166 2011-09-28 David S. Miller <davem@davemloft.net>
2167
2168 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2169 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2170 (UNSPEC_FCMP): New unspec.
2171 (gcond): New code iterator.
2172 (gcond_name): New code attr.
2173 (GCM): New mode iterator.
2174 (gcm_name): New mode attr.
2175 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2176
2177 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
2178
2179 PR target/49486
2180 * config/sh/sh.md (negdi2): Move expansion into split to
2181 allow more combination options. Add T_REG clobber.
2182 (abssi2): New expander.
2183 (*negdi2, *abssi2, *negabssi2): New insns.
2184 (cneg): Change from insn to insn_and_split. Rename to
2185 negsi_cond. Add alternative for non-SH4.
2186
2187 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
2188
2189 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2190 (neon_move_hi_quad_<mode>): Likewise.
2191 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2192
2193 2011-09-28 Nick Clifton <nickc@redhat.com>
2194
2195 * config/rx/predicates.md (rx_minmax_operand): New predicate.
2196 Accepts immediates and a restricted subset of MEMs.
2197 * config/rx/rx.md (int_modes): New iterator.
2198 (smaxsi3, sminsi3): Delete and replace with...
2199 (smax<int_mode>3, smin<int_mode>3): New patterns.
2200 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2201
2202 2011-09-28 Richard Guenther <rguenther@suse.de>
2203
2204 PR middle-end/50460
2205 * fold-const.c (try_move_mult_to_index): Handle &a.array the
2206 same as &a.array[0].
2207
2208 2011-09-28 Kai Tietz <ktietz@redhat.com>
2209
2210 * configure.ac: Add test for new section attribute
2211 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2212 * config.in: Regenerated.
2213 * configure: Regenerated.
2214 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2215 new section flag "e" for excluded sections, if supported.
2216 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2217
2218 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2219
2220 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2221 throughout file.
2222
2223 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2224
2225 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2226 throughout file.
2227
2228 2011-09-27 Sriraman Tallam <tmsriram@google.com>
2229
2230 * output.h (SECTION_EXCLUDE): New macro.
2231 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2232
2233 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2234
2235 * fwprop.c (forward_propagate_and_simplify): After checking
2236 reg/subreg combinations, check whether the modes are the same.
2237
2238 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
2239 Richard Sandiford <rdsandiford@googlemail.com>
2240
2241 * config/mips/mips.c (mips_add_cfa_restore): New function.
2242 (mips16e_save_restore_reg): Use it.
2243 (mips_restore_reg): Likewise. Split double FPRs for
2244 REG_CFA_RESTORE notes.
2245
2246 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2247
2248 PR middle-end/50386
2249 PR middle-end/50326
2250 * tree-sra.c (build_ref_for_model): Use the type of the field as
2251 the type of the COMPONENT_REF.
2252
2253 2011-09-27 Jeff Law <law@redhat.com>
2254
2255 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
2256 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2257 (find_if_case_1): Use the probability of the THEN clause when
2258 determining if speculation is profitable.
2259 (find_if_case_2): Similarly for the ELSE clause.
2260
2261 2011-09-27 Jakub Jelinek <jakub@redhat.com>
2262
2263 * common.opt: Add -foptimize-strlen option.
2264 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2265 (tree-sssa-strlen.o): Add dependencies.
2266 * opts.c (default_options_table): Enable -foptimize-strlen
2267 by default at -O2 if not -Os.
2268 * passes.c (init_optimization_passes): Add pass_strlen
2269 after pass_object_sizes.
2270 * timevar.def (TV_TREE_STRLEN): New timevar.
2271 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2272 * tree-pass.h (pass_strlen): Declare.
2273 * tree-ssa-strlen.c: New file.
2274 * c-decl.c (merge_decls): If compatible stpcpy prototype
2275 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2276
2277 2011-09-27 Tom de Vries <tom@codesourcery.com>
2278
2279 PR middle-end/43864
2280 * tree-ssa-tail-merge.c: New file.
2281 (struct same_succ_def): Define.
2282 (same_succ, const_same_succ): New typedef.
2283 (struct bb_cluster_def): Define.
2284 (bb_cluster, const_bb_cluster): New typedef.
2285 (struct aux_bb_info): Define.
2286 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2287 (gvn_uses_equal): New function.
2288 (same_succ_print, same_succ_print_traverse, update_dep_bb)
2289 (stmt_update_dep_bb, local_def, same_succ_hash)
2290 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2291 (same_succ_reset): New function.
2292 (same_succ_htab, same_succ_edge_flags)
2293 (deleted_bbs, deleted_bb_preds): New var.
2294 (debug_same_succ): New function.
2295 (worklist): New var.
2296 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2297 (init_worklist, delete_worklist, delete_basic_block_same_succ)
2298 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2299 (print_cluster, debug_cluster, update_rep_bb)
2300 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2301 (all_clusters): New var.
2302 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2303 (merge_clusters, set_cluster): New function.
2304 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2305 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2306 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2307 (find_clusters_1, find_clusters): New function.
2308 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2309 (update_bbs): New var.
2310 (apply_clusters): New function.
2311 (update_debug_stmt, update_debug_stmts): New function.
2312 (tail_merge_optimize): New function.
2313 tree-pass.h (tail_merge_optimize): Declare.
2314 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2315 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2316 (tree-ssa-tail-merge.o): New rule.
2317 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2318 default at OPT_LEVELS_2_PLUS.
2319 * tree-ssa-sccvn.c (vn_valueize): Move to ...
2320 * tree-ssa-sccvn.h (vn_valueize): Here.
2321 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2322 * common.opt (ftree-tail-merge): New switch.
2323 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2324 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2325 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2326 (-ftree-tail-merge, max-tail-merge-comparisons)
2327 (max-tail-merge-iterations): New item.
2328
2329 2011-09-27 Jan Hubicka <jh@suse.cz>
2330
2331 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2332
2333 2011-09-27 Jan Hubicka <jh@suse.cz>
2334
2335 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2336 parameters passed by reference; handle loads from non-SSA scalars
2337 and update comments.
2338
2339 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
2340
2341 PR rtl-optimization/50249
2342 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2343 instead of opnum and type. All callers changed. Remove useless
2344 declaration.
2345 Search forward for other reloads of the same type for the same operand
2346 using the same register; if any are found, return false.
2347 (reload_regs_reach_end_p): Same argument changes; all callers changed.
2348
2349 2011-09-27 Andi Kleen <ak@linux.intel.com>
2350 Jan Hubicka <jh@suse.cz>
2351
2352 * doc/invoke.texi (ffat-lto-objects): Document.
2353 * toplev.c (compile_file): Do not output assembly when doing slim lto;
2354 Output __gnu_slim_lto when doing slim lto.
2355 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2356 (cgraph_optimize): Return early when doing slim lto.
2357 * opts.c (finish_options): Complain about lack of linker plugin
2358 when doing slim lto.
2359 * common.opt (ffat-lto-objects): New.
2360
2361 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
2362
2363 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2364 between signed and unsigned.
2365
2366 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
2367
2368 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2369 vectorization.
2370 (vectorizable_type_promotion): Likewise.
2371 (vect_analyze_stmt): Call vectorizable_type_demotion and
2372 vectorizable_type_promotion for basic blocks.
2373 (supportable_widening_operation): Don't assume loop vectorization.
2374 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
2375 basic blocks. Update vectorization factor for basic block
2376 vectorization.
2377 (vect_analyze_slp_instance): Allow multiple types for basic block
2378 vectorization. Recheck unrolling factor after construction of SLP
2379 instance.
2380
2381 2011-09-27 Richard Guenther <rguenther@suse.de>
2382
2383 * tree-object-size.c (compute_object_sizes): Fix dumping of
2384 folded statement.
2385
2386 2011-09-27 Richard Guenther <rguenther@suse.de>
2387
2388 PR tree-optimization/50363
2389 * tree-ssa-pre.c (create_expression_by_pieces): Handle
2390 pointer conversions in POINTER_PLUS_EXPRs properly.
2391
2392 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
2393
2394 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2395 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2396 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2397 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2398 that produce subreg moves. Define using VQX iterators.
2399
2400 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
2401
2402 * config/avr/avr.md (ashrqi3): Split alternative "n"
2403 into its remaining parts C03, C04, C05, C06, C07 and describe
2404 impact in CC by attribute "cc" appropriately.
2405 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2406 by digging RTX.
2407
2408 2011-09-27 Jakub Jelinek <jakub@redhat.com>
2409
2410 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2411 from 3 x MAX_MACHINE_MODE.
2412 (CONSTM1_RTX): Define.
2413 * emit-rtl.c (const_tiny_rtx): Change into array of
2414 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2415 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2416 CONSTM1_RTX.
2417 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2418 MODE_VECTOR_INT modes.
2419 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2420 Optimize if one operand is CONSTM1_RTX.
2421 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2422 into mask | x.
2423
2424 2011-09-26 David S. Miller <davem@davemloft.net>
2425
2426 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2427 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2428 * config/sparc/visintrin.h: Update edge and pixel-compare
2429 intrinsics to return 'long' instead of 'int'.
2430 * doc/extend.texi: Update documentation to match.
2431 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2432 flat, allow any instruction. Otherwise, when V9 allow parallels
2433 which consist only of sets to registers outside of %o0 to %o5.
2434 (sparc_vis_init_builtins): Update VIS builtin types for edge
2435 and pixel-compare.
2436
2437 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2438 is enabled, mark %gsr as global.
2439 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2440 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2441
2442 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2443 which will now define __VIS and __VIS__ when -mvis is enabled.
2444 * config/sparc/t-sparc: Likewise.
2445 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2446 and add t-sparc to tmake_file for all sparc targets.
2447 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2448 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2449
2450 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2451 builtins for VIS vector addition and subtraction.
2452 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2453 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2454 __vis_fpsub32, __vis_fpsub32s): New.
2455 * doc/extend.texi: Document new VIS intrinsics.
2456
2457 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
2458
2459 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2460 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2461 EQ/NE comparisons against +/-1 in the case of unused-after,
2462 non-ld-regs target.
2463
2464 2011-09-26 Jakub Jelinek <jakub@redhat.com>
2465
2466 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2467 gctx.into_ssa after push_gimplify_context.
2468
2469 * gimple.c (gimple_build_call_valist): New function.
2470 * gimple.h (gimple_build_call_valist): New prototype.
2471 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2472 (update_gimple_call): Likewise.
2473 (update_call_from_tree): Use finish_update_gimple_call.
2474 * tree-ssa-propagate.h (update_gimple_call): New prototype.
2475
2476 2011-09-26 Richard Guenther <rguenther@suse.de>
2477
2478 PR tree-optimization/50472
2479 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2480 volatile references.
2481
2482 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
2483
2484 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2485 * target.def: (addr_space_subset_p): Likewise.
2486
2487 2011-09-26 Tom de Vries <tom@codesourcery.com>
2488
2489 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2490 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2491 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2492 of new var.
2493
2494 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
2495
2496 PR target/50465
2497 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2498 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2499 output_reload_insisf.
2500 (adjust_len): Set default to "no".
2501 Remove alternative "yes". Add alternatives: "mov8", "mov16",
2502 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2503 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2504 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2505 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2506 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2507 *lshrsi3_const): Set attribute "adjust_len".
2508 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2509 (output_movsisf): Don't pass insn to output_reload_insisf.
2510 (adjust_insn_length): Handle new alternatives to adjust_len.
2511 Remove handling of ADJUST_LEN_YES. Clean-up code.
2512
2513 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2514
2515 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2516 may_trap_p to detect loads that may trap of fault.
2517
2518 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
2519
2520 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2521 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2522 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
2523 prototype.
2524 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2525 * config/avr/avr.c: Rename output_reload_insisf_1 to
2526 output_reload_in_const.
2527 (avr_popcount_each_byte): Handle SFmode, too.
2528 (output_reload_in_const): Change so it can handle HI loads, too.
2529 Use avr_popcount_each_byte to work out if scratch register must be
2530 created on the fly.
2531 (output_reload_inhi): Rewrite using output_reload_in_const and...
2532 (output_movhi): ...use it to print constants' loads.
2533 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2534
2535 2011-09-25 David S. Miller <davem@davemloft.net>
2536
2537 * config/sparc/constraints.md (C, P, Z): New constraints for
2538 const_doube, const_int, and const_vector "all ones" values.
2539 Make unused constraint letters comment match reality.
2540 * config/sparc/predicates.md (const_all_ones_operand,
2541 register_or_zero_or_all_ones_operand): New predicates.
2542 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2543 as well as zero constants when VIS.
2544 (sparc_legitimate_constant_p): Likewise.
2545 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2546 (movsf_insn): Likewise
2547 (movdi_insn_sp64): Add fone alternative.
2548 (movdf_insn_sp32_v9): Likewise.
2549 (movdf_insn_sp64): Likewise.
2550
2551 * configure.ac: Add feature check to make sure the assembler
2552 supports the FMAF, HPC, and VIS 3.0 instructions found on
2553 Niagara-3 and later cpus.
2554 * configure: Rebuild.
2555 * config.in: Likewise.
2556 * config/sparc/sparc.opt: New option '-mfmaf'.
2557 * config/sparc/sparc.md: Add float fused multiply-add patterns.
2558 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2559 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
2560 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
2561 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
2562 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
2563 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
2564 disabled.
2565 (sparc_rtx_costs): Handle 'FMA'.
2566 * doc/invoke.texi: Document -mfmaf.
2567
2568 2011-09-25 Jakub Jelinek <jakub@redhat.com>
2569
2570 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
2571 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
2572 DECL_BY_REFERENCE parameters.
2573
2574 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2575
2576 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
2577 if there is no outgoing edge.
2578
2579 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
2580 integral types.
2581
2582 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
2583
2584 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
2585 of vect_analyze_bb here.
2586 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
2587
2588 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
2589
2590 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
2591 Allow not simple iv if analyzing basic block.
2592 (create_data_ref): Update call to dr_analyze_innermost.
2593 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
2594 * tree-loop-distribution.c (generate_memset_zero): Likewise.
2595 * tree-predcom.c (find_looparound_phi): Likewise.
2596 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
2597
2598 2011-09-24 David S. Miller <davem@davemloft.net>
2599
2600 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
2601 (SPARC_GSR_REG): Define.
2602 (FIXED_REGISTERS): Mark GSR as fixed.
2603 (CALL_USED_REGISTERS): Mark GSR as call used.
2604 (HARD_REGNO_NREGS): GSR is always 1 register.
2605 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
2606 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
2607 (REGISTER_NAMES): Add "%gsr".
2608 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
2609 (UNSPEC_WRGSR): New unspec.
2610 (GSR_REG): New constant.
2611 (type): Add new insn type 'gsr'.
2612 (fpack16_vis, fpackfix_vis, fpack32_vis,
2613 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
2614 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
2615 rdgsr_v8plus): New expanders and insns.
2616 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
2617 using patterns which show that this is a plus in addition to a
2618 modification of GSR_REG, instead of an unspec.
2619 * config/sparc/ultra1_2.md: Handle 'gsr'.
2620 * config/sparc/ultra3.md: Likewise.
2621 * config/sparc/niagara.md: Likewise.
2622 * config/sparc/niagara2.md: Likewise.
2623 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
2624 end of table.
2625 (sparc_option_override): Make -mvis imply -mv8plus.
2626 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
2627 for %gsr.
2628 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
2629 __builtin_vis_read_gsr.
2630 (sparc_expand_buildin): Handle builtins that take one argument and
2631 return void.
2632 (sparc_fold_builtin): Never fold writes to %gsr.
2633 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
2634 * doc/extend.texi: Document new VIS intrinsics.
2635
2636 2011-09-23 Jan Hubicka <jh@suse.cz>
2637
2638 * ipa-inline-transform.c (inline_call): Add comment.
2639 * ipa-inline.h (inline_param_summary): New structure and vector.
2640 (struct inline_edge_summary): Add param field.
2641 * ipa-inline-analysis.c (CHANGED): New constant.
2642 (add_clause): Handle CHANGED and NOT_CONSTANT.
2643 (predicate_probability): New function.
2644 (dump_condition): Dump CHANGED predicate.
2645 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
2646 of unknown function wide invariant.
2647 (evaluate_conditions_for_edge): Handle change probabilities.
2648 (inline_edge_duplication_hook): Copy param summaries.
2649 (inline_edge_removal_hook): Free param summaries.
2650 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
2651 sizes; dump param summaries.
2652 (will_be_nonconstant_predicate): Use CHANGED predicate.
2653 (record_modified_bb_info): New structure.
2654 (record_modified): New function.
2655 (param_change_prob): New function.
2656 (estimate_function_body_sizes): Compute param summaries.
2657 (estimate_edge_size_and_time): Add probability argument.
2658 (estimate_node_size_and_time): Add inline_param_summary argument;
2659 handle predicate probabilities.
2660 (remap_predicate): Fix formating.
2661 (remap_edge_change_prob): New function.
2662 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
2663 (remap_edge_predicates): ... this one.
2664 (inline_merge_summary): Remap edge summaries; handle predicate
2665 probabilities; remove param summaries after we are done.
2666 (do_estimate_edge_time): Update.
2667 (do_estimate_edge_growth): Update.
2668 (read_inline_edge_summary): Read param info.
2669 (inline_read_summary): Fix formating.
2670 (write_inline_edge_summary): Write param summaries.
2671
2672 2011-09-23 Jakub Jelinek <jakub@redhat.com>
2673
2674 * config/i386/i386.c (ix86_print_operand): Handle %~.
2675 (ix86_print_operand_punct_valid_p): Return true also for '~'.
2676 * config/i386/sse.md (i128): New mode_attr.
2677 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
2678 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
2679 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
2680 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
2681 patterns, use "<sseinsnmode>" for "mode" attribute.
2682 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
2683 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
2684 %~128 in the patterns, use "OI" for "mode" attribute.
2685
2686 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
2687
2688 PR target/50447
2689 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
2690 "tstsi", "compare".
2691 (*cmpqi_sign_extend): Use s8_operand.
2692 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
2693 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
2694 prototypes.
2695 (out_tsthi, out_tstsi): Remove prototypes.
2696 (avr_out_tsthi, avr_out_tstsi): New prototypes.
2697 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
2698 (avr_asm_len): Negative length now sets *plen to -length.
2699 (compare_sign_p): Return bool instead of int.
2700 (compare_diff_p, compare_eq_p): Ditto and make static.
2701 (avr_out_tsthi): New function.
2702 (avr_out_tstsi): New function.
2703 (avr_out_compare): New function.
2704 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
2705 ADJUST_LEN_COMPARE.
2706
2707 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
2708
2709 PR target/50447
2710 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
2711 (addsi3): Rewrite using QI scratch register. Adjust text
2712 peepholes using plus:SI.
2713 (*addsi3_zero_extend.hi): New insn.
2714 (*subsi3_zero_extend.hi): New insn.
2715 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
2716 (*subsi3_zero_extend): Ditto.
2717 (subsi3): Change predicate #2 to register_operand.
2718 * config/avr/avr-protos.h (avr_out_plus): New prototype.
2719 (avr_out_plus_1): New static function.
2720 (avr_out_plus): New function.
2721 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
2722
2723 2011-09-23 Jakub Jelinek <jakub@redhat.com>
2724
2725 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
2726 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
2727
2728 2011-09-23 Ian Lance Taylor <iant@google.com>
2729
2730 * godump.c (go_define): Treat a single character in single quotes,
2731 or a string, as an operand.
2732
2733 2011-09-23 Martin Jambor <mjambor@suse.cz>
2734
2735 * ipa-prop.h (jump_func_type): Updated comments.
2736 (ipa_known_type_data): New type.
2737 (ipa_jump_func): Use it to describe known type jump functions.
2738 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
2739 reflect the new known type jump function contents.
2740 (compute_known_type_jump_func): Likewise.
2741 (combine_known_type_and_ancestor_jfs): Likewise.
2742 (try_make_edge_direct_virtual_call): Likewise.
2743 (ipa_write_jump_function): Likewise.
2744 (ipa_read_jump_function): Likewise.
2745 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
2746 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
2747 (propagate_accross_jump_function): Likewise.
2748
2749 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
2750
2751 PR target/50446
2752 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
2753 (rotlqi3_4): Turn insn into expander.
2754 (*rotlqi3): New insn.
2755 (rotlhi3, rotlsi3): Support rotate left/right by 1.
2756 (*rotlhi2.1, *rotlhi2.15): New insns.
2757 (*rotlsi2.1, *rotlsi2.31): New insns.
2758 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
2759
2760 2011-09-23 Bin Cheng <bin.cheng@arm.com>
2761
2762 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
2763
2764 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2765
2766 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
2767
2768 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2769
2770 * reload.c (find_reloads): Set operand_mode to Pmode for address
2771 operands consisting of just a CONST_INT.
2772
2773 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
2774
2775 PR target/50482
2776 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2777 blendv, force op_true to register if it doesn't satisfy
2778 nonimmediate_operand predicate.
2779
2780 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
2781
2782 PR middle-end/50113
2783 PR middle-end/50061
2784 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
2785 get the locate.where_pad value for register-only arguments.
2786 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
2787 (arm_pad_reg_upward): Handle null types.
2788
2789 2011-09-22 Jan Hubicka <jh@suse.cz>
2790
2791 * ipa-inline-analysis.c: Fix overly long lines.
2792
2793 2011-09-22 Jan Hubicka <jh@suse.cz>
2794
2795 * ipa-inline-transform.c (inline_call): Always update jump functions
2796 after inlining.
2797 * ipa-inline.c (ipa_inline): Likewise; do not call
2798 ipa_create_all_structures_for_iinln.
2799 (ipa_inline): Always free jump functions.
2800 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
2801 (remap_edge_predicates): Fix pasto.
2802 (inline_merge_summary): Remove nlined edge predicate; remove hack.
2803 (inline_analyze_function): Always initialize jump functions.
2804 (inline_generate_summary): Likewise.
2805 (inline_write_summary): Always write jump functions when ipa-cp
2806 is not doing that.
2807 (inline_read_summary): Always read jump functions when ipa-cp
2808 is not doing that.
2809 * ipa-prop.c (iinlining_processed_edges): Remove.
2810 (update_indirect_edges_after_inlining): Do not use
2811 iinlining_processed_edges; instead set param_index to -1.
2812 (propagate_info_to_inlined_callees): Only try to indirect inlining
2813 when asked to do so; update jump functions of indirect calls, too;
2814 remove jump functions of the inlined edge.
2815 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
2816 (ipa_create_all_structures_for_iinln): Remove.
2817 (ipa_free_all_structures_after_iinln): Do not free
2818 iinlining_processed_edges.
2819 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
2820
2821 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
2822
2823 * config/arm/predicates.md (expandable_comparison_operator): New
2824 predicate, extracted from...
2825 (arm_comparison_operator): ...here.
2826 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
2827 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
2828 (movdfcc): Use expandable_comparison_operator.
2829
2830 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
2831
2832 PR target/50447
2833 PR target/50465
2834 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
2835 (avr_popcount_each_byte): New prototype.
2836 * config/avr/avr.c (avr_popcount): New static function.
2837 (avr_popcount_each_byte): New function.
2838 (avr_out_bitop): New function.
2839 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
2840 avr_out_bitop. Cleanup code.
2841 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
2842 (Ca4, Co4, Cx4): New constraints.
2843 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
2844 alternative.
2845 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
2846 (andsi3, iorsi3, xorsi3): Ditto.
2847 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
2848
2849 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
2850
2851 PR tree-optimization/50451
2852 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
2853 constant operands in reduction.
2854 (vect_get_slp_defs): Don't create vector operand for NULL scalar
2855 operand.
2856
2857 2011-09-22 David S. Miller <davem@davemloft.net>
2858
2859 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
2860 fpack16, fpack32, fpackfix as const.
2861
2862 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
2863 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
2864 constants. Use them everywhere.
2865
2866 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
2867
2868 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
2869 Added AND special case. Adapted comments.
2870 (sh_rtx_costs): Added XOR and IOR case.
2871
2872 2011-09-21 Jan Hubicka <jh@suse.cz>
2873
2874 * ipa-inline-analsis.c (compute_inline_parameters): Set
2875 cfun and current_function_decl.
2876
2877 2011-09-21 Jan Hubicka <jh@suse.cz>
2878
2879 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
2880 handled components in parameter of builtin_constant_p.
2881 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
2882
2883 2011-09-21 Jan Hubicka <jh@suse.cz>
2884
2885 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
2886 * ipa-inline.h (estimate_edge_time): Fix pasto.
2887 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
2888
2889 2011-09-21 Jakub Jelinek <jakub@redhat.com>
2890
2891 * config/i386/i386.c (ix86_expand_sse_movcc): Use
2892 blendvps, blendvpd and pblendvb if possible.
2893
2894 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
2895
2896 PR target/50464
2897 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
2898 operand 1 predicate to register_operand and operand 2 predicate
2899 to nonimmediate_operand.
2900 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2901 xop_pcmov, force op_true to register. Also, force op_false to
2902 register if it doesn't satisfy nonimmediate_operand predicate.
2903
2904 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
2905
2906 * config/i386/bmi2intrin.h (_mulx_u64): New.
2907 (_mulx_u32): Ditto.
2908
2909 2011-09-21 Jan Hubicka <jh@suse.cz>
2910
2911 PR tree-optimization/50433
2912 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
2913 Use get_base_address.
2914
2915 2011-09-21 Jakub Jelinek <jakub@redhat.com>
2916
2917 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
2918 nonimmediate_operand instead of register_operand predicate for operands
2919 1 and 2, force them into registers if expanding them as comparison.
2920 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
2921 V8HImode force into register just operand 1.
2922
2923 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
2924
2925 PR target/45099
2926 * config/avr/avr.c (avr_function_arg_advance): Change error to
2927 warning if a fixed register is needed as function argument.
2928
2929 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
2930
2931 PR target/50449
2932 PR target/50465
2933 * config/avr/avr.md (adjust_len): New insn attribute.
2934 (*reload_insi, *reload_insf): Use it.
2935 (*movsi, *movsf): Use new interface of output_movsisf.
2936 * config/avr/avr-protos.h (output_movsisf): Change prototype.
2937 * config/avr/avr.c (output_movsisf): Ditto.
2938 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
2939 lengths of insns *reload_insi, *reload_insf.
2940 (output_reload_insisf_1): New static function.
2941 (output_reload_insisf): Use it.
2942
2943 2011-09-21 David S. Miller <davem@davemloft.net>
2944
2945 * config/sparc/sparc.c (def_builtin): Change from macro into function.
2946 (def_builtin_const): New.
2947 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
2948 other than alignaddr and falignaddr.
2949
2950 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
2951 UNSPEC_FCMPEQ): New unspec codes.
2952 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
2953 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
2954 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
2955 new pixel compare VIS patterns.
2956 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
2957 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
2958 __vis_fcmpeq16, __vis_fcmpeq32): New.
2959 * doc/extend.texi: Document new pixel compare VIS intrinsics.
2960
2961 2011-09-21 Tom de Vries <tom@codesourcery.com>
2962
2963 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
2964
2965 2011-09-20 David S. Miller <davem@davemloft.net>
2966
2967 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
2968 (aligneddrl<P:mode>_vis): New pattern.
2969 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
2970 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
2971 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
2972 alignaddrl insn, and adjust edge operations for updated types.
2973 * config/sparc/visintrin.h: Likewise.
2974 * doc/extend.texi: Make typing in VIS documentation match reality.
2975
2976 2011-09-20 Terry Guo <terry.guo@arm.com>
2977
2978 * config/arm/arm-arches.def: Add armv6s-m.
2979 * config/arm/arm-tables.opt: Regenerate.
2980
2981 2011-09-20 Wei Guozhi <carrot@google.com>
2982
2983 PR rtl-optimization/49452
2984 * postreload.c (reload_combine): Invalidate use information when across
2985 volatile insn.
2986
2987 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
2988
2989 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
2990 Remove maintenance overhead.
2991 (haifa_sched_init, sched_finish): Update.
2992
2993 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
2994
2995 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
2996 to calculate unit, prefix_rep and prefix_data16 attributes.
2997 (*mov<mode>_internal): Ditto for unit attribute.
2998 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
2999 (*movv2sf_internal): Ditto.
3000 * config/i386/sse.md (VI1248_256): Remove mode iterator.
3001 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3002 (*avx2_eq<mode>3): Ditto.
3003 (avx2_gt<mode>3): Ditto.
3004
3005 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
3006
3007 * config/i386/i386.md (maxmin): New code iterator.
3008 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3009 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3010 code iterator.
3011 (*avx2_<maxmin:code><mode>3): Macroize isn from
3012 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3013 maxmin code iterator.
3014 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3015 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3016 <umaxmin:code>v16qi3.
3017
3018 2011-09-19 Alan Modra <amodra@gmail.com>
3019 Michael Meissner <meissner@linux.vnet.ibm.com>
3020
3021 PR target/50341
3022 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3023 split the load of the indirect function's TOC from the call to
3024 prevent the compiler from moving the load of the new TOC above
3025 code that references the current function's TOC.
3026 (call_indirect_aix<ptrsize>_internal): Ditto.
3027 (call_indirect_aix<ptrsize>_nor11): Ditto.
3028 (call_indirect_aix<ptrsize>_internal2): Ditto.
3029 (call_value_indirect_aix<ptrsize>): Ditto.
3030 (call_value_indirect_aix<ptrsize>_internal): Ditto.
3031 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3032 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3033
3034 2011-09-19 Jakub Jelinek <jakub@redhat.com>
3035
3036 * config/i386/sse.md (*sse4_1_extractps): Change into
3037 define_insn_and_split, add =x 0 n and =x x n alternatives
3038 and split them after reload.
3039
3040 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3041
3042 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3043
3044 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3045
3046 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3047
3048 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
3049
3050 PR tree-optimization/50413
3051 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3052 a basic block if one of its data-refs can't be analyzed.
3053
3054 2011-09-19 Paul Brook <paul@codesourcery.com>
3055
3056 * config/arm/predicates.md (shift_amount_operand): Check constant
3057 shift count is in range.
3058 (const_shift_operand): Remove.
3059
3060 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
3061 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3062
3063 PR target/50091
3064 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3065 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3066
3067 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
3068
3069 * config/i386/bmiintrin.h: Remove tmp.
3070 * config/i386/tbmintrin.h: Likewise.
3071
3072 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3073
3074 PR tree-optimization/50414
3075 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3076 MIN_EXPR.
3077
3078 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3079
3080 PR tree-optimization/50412
3081 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3082 acceses that require epilogue loop if vectorizing outer loop.
3083
3084 2011-09-17 David S. Miller <davem@davemloft.net>
3085
3086 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3087 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3088 New unspecs.
3089 (define_attr type): New type 'edge'.
3090 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3091 edge32l_vis): New patterns.
3092 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3093 * config/sparc/ultra3.md: Likewise.
3094 * config/sparc/niagara.md: Likewise.
3095 * config/sparc/niagara2.md: Likewise.
3096 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3097 builtins for VIS edge instructions.
3098 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3099 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3100 intrinsics.
3101 (__v8qi, __v4qi): Make unsigned.
3102 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3103 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3104 __vis_fpack32): Fix types.
3105 * doc/extend.texi: Document new 'edge' VIS intrinsics.
3106
3107 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3108 divide costs.
3109 (niagara3_costs): New.
3110 (sparc_option_override): Use it.
3111 * gcc/config/sparc/niagara2.md: Adjust with more accurate
3112 Niagara-3 reservations.
3113
3114 2011-09-17 Jakub Jelinek <jakub@redhat.com>
3115
3116 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3117 (sse2_avx, sseinsnmode): Add V2TI.
3118 (REDUC_SMINMAX_MODE): New mode iterator.
3119 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3120 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3121 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3122 (sse2_lshrv1ti3): Rename to...
3123 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
3124 iterator. Move before umaxmin expanders.
3125 * config/i386/i386.h (VALID_AVX256_REG_MODE,
3126 SSE_REG_MODE_P): Accept V2TImode.
3127 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3128 V16HImode, V8SImode and V4DImode.
3129
3130 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3131 and V4DImode.
3132 (ix86_build_signbit_mask): Likewise.
3133 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
3134 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3135 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3136 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3137 (<code><mode>3) ... this.
3138 (avx2_<code><mode>3 smaxmin expand): Rename to...
3139 (<code><mode>3) ... this.
3140 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3141 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3142 VI8_AVX2 mode iterator.
3143 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3144 VI8_AVX2 mode iterator.
3145 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3146 New expanders.
3147
3148 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
3149
3150 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3151 throughout file.
3152
3153 2011-09-16 David S. Miller <davem@davemloft.net>
3154
3155 * config/sparc/visintrin.h: New file.
3156 * config.gcc: Add it to extra_headers on sparc.
3157
3158 2011-09-16 Jakub Jelinek <jakub@redhat.com>
3159
3160 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3161 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
3162 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3163 reduc_smin_v4sf): Adjust callers.
3164 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3165 New expanders.
3166
3167 * config/i386/sse.md (vec_extract_hi_<mode>,
3168 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3169 vextracti128 instead of vextractf128 for -mavx2 and
3170 integer vectors. For V4DFmode fix up mode attribute.
3171 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3172 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3173 instead of V8SF mode attribute.
3174 (avx2_extracti128): Change into define_expand.
3175 * config/i386/i386.c (ix86_expand_vector_extract): Handle
3176 32-byte vector modes if TARGET_AVX.
3177
3178 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3179
3180 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3181 (umulqi3_highpart, smulqi3_highpart): Ditto.
3182 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3183 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3184 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3185
3186 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3187
3188 PR target/50358
3189 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3190 (*maddqi4, *maddqi4.const): New insns.
3191 (*msubqi4, *msubqi4.const): New insns.
3192 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3193 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
3194 HImode by 1 in the case of multiplying with a CONST_INT.
3195 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3196
3197 2011-09-15 Jan Hubicka <jh@suse.cz>
3198
3199 PR lto/50430
3200 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3201 error_mark_node in the DECL_INITIAL of vtable.
3202
3203 2011-09-15 Diego Novillo <dnovillo@google.com>
3204
3205 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3206 @SYSROOT_CFLAGS_FOR_TARGET@.
3207 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3208 * configure: Regenerate.
3209 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3210 Remove setting of GCC_UNDER_TEST.
3211
3212 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
3213
3214 * config/i386/i386.c (output_fp_compare): Return %v prefixed
3215 instruction mnemonics for TARGET_AVX.
3216
3217 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3218 "type" attribute calculation.
3219 (*movdf_internal): Ditto.
3220 (*movsf_internal): Ditto.
3221
3222 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
3223
3224 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3225
3226 2011-09-15 Jason Merrill <jason@redhat.com>
3227
3228 PR c++/50361
3229 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3230
3231 2011-09-15 Jan Hubicka <jh@suse.cz>
3232
3233 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3234 simplify obviously true clauses.
3235 (and_predicates, or_predicates): Add conditions parameter.
3236 (inline_duplication_hoook): Update.
3237 (mark_modified): New function.
3238 (unmodified_parm): New function.
3239 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3240 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3241 Use unmodified_parm.
3242 (estimate_function_body_sizes): Update.
3243 (remap_predicate): Update.
3244
3245 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
3246
3247 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3248 read-after-read dependencies in basic block SLP.
3249
3250 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3251
3252 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3253 throughout file.
3254
3255 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3256
3257 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3258 throughout file.
3259
3260 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3261
3262 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3263 throughout file.
3264
3265 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3266
3267 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3268 throughout file.
3269 * config/rs6000/constraints.md: Likewise.
3270
3271 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3272
3273 * config/microblaze/microblaze.md: Use match_test rather than
3274 eq/ne symbol_ref throughout file.
3275
3276 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3277
3278 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3279 throughout file.
3280
3281 2011-09-14 Tom de Vries <tom@codesourcery.com>
3282
3283 PR middle-end/50251
3284 * explow.c (emit_stack_restore): Set crtl->need_drap if
3285 stack_restore is emitted.
3286
3287 2011-09-14 Julian Brown <julian@codesourcery.com>
3288
3289 * config/arm/arm.c (arm_override_options): Add unaligned_access
3290 support.
3291 (arm_file_start): Emit attribute for unaligned access as appropriate.
3292 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3293 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3294 (insv, extzv): Add unaligned-access support.
3295 (extv): Change to expander. Likewise.
3296 (extzv_t1, extv_regsi): Add helpers.
3297 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3298 (unaligned_storesi, unaligned_storehi): New.
3299 (*extv_reg): New (previous extv implementation).
3300 * config/arm/arm.opt (munaligned_access): Add option.
3301 * config/arm/constraints.md (Uw): New constraint.
3302 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3303 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3304 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3305 volatile accesses when -fstrict-volatile-bitfields is in effect.
3306 (extract_bit_field_1): Likewise.
3307
3308 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
3309
3310 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3311 a scalar integer before applying integer-only optimisations to
3312 inner arithmetic.
3313
3314 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
3315
3316 * config/mips/mips.c (mips_expand_epilogue): Generate a
3317 simple_return only if the return address is in r31.
3318
3319 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
3320
3321 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3322 NULL for a jump that is a cc0 insn, pick the previous insn for
3323 move_before.
3324
3325 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3326
3327 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3328 throughout file.
3329
3330 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3331
3332 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3333 throughout file.
3334
3335 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3336
3337 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3338 symbol_ref throughout file.
3339
3340 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3341
3342 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3343 throughout file.
3344
3345 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3346
3347 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3348 throughout file.
3349
3350 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3351
3352 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3353 throughout file.
3354 * config/arm/neon.md: Likewise.
3355 * config/arm/vfp.md: Likewise.
3356 * config/arm/thumb2.md: Likewise.
3357 * config/arm/cortex-m4.md: Likewise.
3358
3359 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3360
3361 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3362 define_insn patterns for combine.
3363
3364 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
3365
3366 * reorg.c: Always define make_return_insns.
3367
3368 2011-09-13 Jan Hubicka <jh@suse.cz>
3369
3370 PR other/49533
3371 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3372
3373 2011-09-13 Jan Hubicka <jh@suse.cz>
3374
3375 PR other/49533
3376 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
3377
3378 2011-09-13 Paul Brook <paul@codesourcery.com>
3379
3380 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3381 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3382 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3383 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3384 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3385 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3386 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3387 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3388 enabling unwind tables.
3389 (c6x_debug_unwind_info): New function.
3390 (TARGET_ARM_EABI_UNWINDER): Define.
3391 (TARGET_DEBUG_UNWIND_INFO): Define.
3392 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3393 (TARGET_EXTRA_CFI_SECTION): Remove.
3394 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3395 * ginclude/unwind-arm-common.h: New file.
3396
3397 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
3398
3399 PR target/50358
3400 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3401 * config/avr/avr.md: (extend_s): New code attribute.
3402 (mul_r_d): New code attribute.
3403 (*maddqihi4, *umaddqihi4): New insns.
3404 (*msubqihi4, *umsubqihi4): New insns.
3405 (*usmaddqihi4, *sumaddqihi4): New insns.
3406 (*usmsubqihi4, *susubdqihi4): New insns.
3407 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3408 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3409 (*umsubqihi4.uconst.ashift): New insn-and-split.
3410 (*msubqihi4.sconst.ashift): New insn-and-split.
3411 (*sumaddqihi4.uconst): New insn-and-split.
3412 (*sumsubqihi4.uconst): New insn-and-split.
3413 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3414 PLUS:HI and MINUS:HI.
3415
3416 2011-09-13 Revital Eres <revital.eres@linaro.org>
3417
3418 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3419 (optimize_sc): Adjust call to remove_node_from_ps.
3420 (sms_schedule): Add print info.
3421
3422 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
3423
3424 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3425 flags specially.
3426
3427 2011-09-12 Jakub Jelinek <jakub@redhat.com>
3428
3429 PR bootstrap/50010
3430 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3431 NOTE_INSN_CFI notes, with the exception of
3432 NOTE_INSN_SWITCH_TEXT_SECTIONS.
3433
3434 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
3435 Richard Sandiford <rdsandiford@googlemail.com>
3436
3437 * config/mips/mips.c (mips_epilogue): New structure.
3438 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3439 restoring registers.
3440 (mips_epilogue_emit_cfa_restores): New function.
3441 (mips_epilogue_set_cfa): Likewise.
3442 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
3443 the current CFA register from the stack, redefine the CFA in terms
3444 of the stack pointer.
3445 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
3446 to the epilogue instructions.
3447
3448 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
3449
3450 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3451 argument.
3452 (mips16e_build_save_restore): Update accordingly.
3453
3454 2011-09-12 Jakub Jelinek <jakub@redhat.com>
3455
3456 PR rtl-optimization/50212
3457 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3458 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3459
3460 PR debug/50299
3461 * calls.c (load_register_parameters): Use use_reg_mode instead
3462 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3463 entry.
3464 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3465 for stack CALL_INSN_FUNCTION_USAGE uses.
3466 * expr.h (use_reg_mode): New prototype.
3467 (use_reg): Changed into inline around use_reg_mode.
3468 * expr.c (use_reg): Renamed to...
3469 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
3470 mode to that mode instead of VOIDmode.
3471 * var-tracking.c (prepare_call_arguments): Don't track parameters
3472 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3473 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
3474 EXPR_LIST mode.
3475
3476 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
3477
3478 PR target/43746
3479 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3480 (progmem_section): New Variable.
3481 (avr_asm_init_sections): Initialize it.
3482 (TARGET_ASM_SELECT_SECTION): Define to...
3483 (avr_asm_select_section): ... this new Function.
3484 (avr_replace_prefix): New Function.
3485 (avr_asm_function_rodata_section): Use it.
3486 (avr_insert_attributes): Don't add section attribute for PROGMEM.
3487 (avr_section_type_flags): Use avr_progmem_p instead of section
3488 name to detect if object is in PROGMEM.
3489 (avr_asm_named_section): Set section name prefix for objects in
3490 PROGMEM.
3491
3492 2011-09-12 Jakub Jelinek <jakub@redhat.com>
3493
3494 PR bootstrap/50352
3495 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3496 sprintf format string.
3497
3498 2011-09-12 Richard Guenther <rguenther@suse.de>
3499
3500 PR tree-optimization/50343
3501 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3502 that the reduction is over an SSA name before checking its definition.
3503
3504 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
3505
3506 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3507 throughout file.
3508
3509 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
3510
3511 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3512 throughout file.
3513 * config/mips/sb1.md: Likewise.
3514 * config/mips/predicates.md: Replace (match_test "!...")
3515 with (not (match_test "..."))
3516 * config/mips/constraints.md: Likewise.
3517
3518 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
3519
3520 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3521 * config/arm/arm-tables.opt: Regenerate.
3522 * config/arm/arm-tune.md: Regenerate.
3523 * config/arm/arm.c (arm_file_start): Output .arch directive when
3524 user passes -mcpu=generic-*.
3525 (arm_issue_rate): Add genericv7a support.
3526 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3527 (ASM_CPU_SPEC): New define.
3528 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3529 * config/arm/semi.h (ASM_SPEC): Likewise.
3530 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3531 and -mtune=generic-*.
3532
3533 2011-09-09 Richard Guenther <rguenther@suse.de>
3534
3535 PR tree-optimization/50328
3536 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3537 constant or default-def operand.
3538
3539 2011-09-09 Richard Guenther <rguenther@suse.de>
3540
3541 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3542 last statement.
3543
3544 2011-09-09 Richard Guenther <rguenther@suse.de>
3545
3546 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3547 instead of a statement.
3548 * gimple-fold.c (fold_stmt_inplace): Likewise.
3549 * sese.c (graphite_copy_stmts_from_block): Adjust.
3550 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3551 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3552 fold_stmt.
3553 (forward_propagate_addr_into_variable_array_index): Likewise.
3554 (forward_propagate_addr_expr_1): adjust.
3555 (associate_plusminus): Likewise.
3556 (ssa_forward_propagate_and_combine): Likewise.
3557 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3558 (execute_cse_reciprocals): Likewise.
3559 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
3560
3561 2011-09-09 Nick Clifton <nickc@redhat.com>
3562
3563 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
3564 Return a positive value to indicate that the bits at the
3565 bottom of the register should be cleared.
3566
3567 2011-09-09 Richard Guenther <rguenther@suse.de>
3568
3569 * tree-ssa-operands.c (swap_tree_operands): Always adjust
3570 existing operand positions.
3571
3572 2011-09-09 Richard Guenther <rguenther@suse.de>
3573
3574 PR middle-end/50333
3575 * tree-data-ref.c (split_constant_offset): Do not try to handle
3576 ternary ops.
3577
3578 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
3579
3580 PR tree-optimization/50318
3581 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
3582 typo in use of mult_rhs1 and mult_rhs2.
3583
3584 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
3585
3586 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
3587 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
3588
3589 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
3590
3591 * config/arm/arm.md (push_multi): Emit predicates.
3592 (push_fp_multi): Likewise.
3593 * config/arm/arm.c (vfp_output_fstmd): Likewise.
3594
3595 2011-09-08 Dodji Seketeli <dodji@redhat.com>
3596
3597 PR c++/33255 - Support -Wunused-local-typedefs warning
3598 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
3599 (pushdecl): Use the new record_locally_defined_typedef.
3600 (store_parm_decls): Allocate cfun->language.
3601 (finish_function): Use the new maybe_warn_unused_local_typedefs,
3602 and free cfun->language.
3603 (c_push_function_context): Allocate cfun->language here only if needed.
3604 (c_pop_function_context): Likewise, mark cfun->language
3605 for collection only when it should be done.
3606 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
3607 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
3608 maybe_record_local_typedef_use.
3609 * doc/invoke.texi: Update documentation for
3610 -Wunused-local-typedefs.
3611
3612 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
3613
3614 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
3615 (ix86_avoid_lea_for_add): Likewise.
3616 (ix86_avoid_lea_for_addr): Likewise.
3617 (ix86_split_lea_for_addr): Likewise.
3618
3619 * config/i386/i386.c (LEA_MAX_STALL): New.
3620 (increase_distance): Likewise.
3621 (insn_defines_reg): Likewise.
3622 (insn_uses_reg_mem): Likewise.
3623 (distance_non_agu_define_in_bb): Likewise.
3624 (distance_agu_use_in_bb): Likewise.
3625 (ix86_lea_outperforms): Likewise.
3626 (ix86_ok_to_clobber_flags): Likewise.
3627 (ix86_avoid_lea_for_add): Likewise.
3628 (ix86_avoid_lea_for_addr): Likewise.
3629 (ix86_split_lea_for_addr): Likewise.
3630 (distance_non_agu_define): Search in pred BBs added.
3631 (distance_agu_use): Search in succ BBs added.
3632 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
3633 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
3634 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
3635
3636 * config/i386/i386.md: Split added to transform non destructive
3637 add into move and add.
3638 (lea_1): transformed into insn_and_split to avoid AGU stalls.
3639 (lea<mode>_2): Likewise.
3640
3641 2011-09-08 Martin Jambor <mjambor@suse.cz>
3642
3643 PR tree-optimization/50287
3644 * ipa-split.c (split_function): Do not create SSA names for
3645 non-gimple-registers.
3646
3647 2011-09-08 Richard Guenther <rguenther@suse.de>
3648
3649 PR tree-optimization/19831
3650 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
3651 skip builtins with vdefs that do not really store something.
3652 (propagate_necessity): For calls to free that we can associate
3653 with an allocation function do not mark the freed pointer
3654 definition necessary.
3655 (eliminate_unnecessary_stmts): Remove a call to free if
3656 the associated call to an allocation function is not necessary.
3657
3658 2011-09-08 Richard Guenther <rguenther@suse.de>
3659
3660 PR tree-optimization/19831
3661 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
3662 allocation functions as necessary.
3663
3664 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
3665
3666 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
3667 cut from ...
3668 (darwin_default_min_version): Amended to provide defaults
3669 for the cross directory case.
3670 (darwin_driver_init): call darwin_default_min_version unconditionally.
3671 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
3672 * config/darwin9.h: Likewise.
3673 * config/darwin10.h: Likewise.
3674 * config/rs6000/darwin7.h: Likewise.
3675
3676 2011-09-08 Jakub Jelinek <jakub@redhat.com>
3677
3678 PR target/50310
3679 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
3680 code early if TARGET_AVX.
3681 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
3682
3683 2011-09-07 Jakub Jelinek <jakub@redhat.com>
3684
3685 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
3686 duplicates.
3687
3688 PR target/50310
3689 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
3690 "mode" attribute computation.
3691
3692 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
3693
3694 * regrename.c (struct du_head): Make nregs signed.
3695 (closed_chains): Remove.
3696 (create_new_chain): Return the new chain.
3697 (chain_from_id): New static function.
3698 (dump_def_use_chain): Change argument to be an int, indicating
3699 the first ID to print. All callers changed.
3700 (merge_overlapping_regs): Use chain_from_id. Assert that
3701 chains don't conflict with themselves.
3702 (rename_chains): Take no argument. Iterate over id_to_chain
3703 rather to find chains to rename. Clear tick before the main loop.
3704 (struct incoming_reg_info): New struct.
3705 (struct bb_rename_info): New struct.
3706 (init_rename_info, set_incoming_from_chain, merge_chains): New
3707 static functions.
3708 (regrename_analyze): New static function, broken out of
3709 regrename_optimize. Record and make use of open chain information
3710 at basic block boundaries, and merge chains where possible.
3711 (scan_rtx_reg): Make this_nregs signed. Don't update
3712 closed_chains.
3713 (build_def_use): Return a bool to indicate success. All callers
3714 changed. Don't initialize global data here.
3715 (regrename_optimize): Move most code out of here into
3716 regrename_analyze.
3717 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
3718 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
3719 static inline functions.
3720 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
3721
3722 * bb-reorder.c (insert_section_boundary_note): Don't check
3723 optimize_function_for_speed_p.
3724 (gate_handle_partition_blocks): Do it here instead.
3725 (gate_handle_reorder_blocks): Move preliminary checks here ...
3726 (rest_of_handle_reorder_blocks): ... from here.
3727
3728 2011-09-07 Martin Jambor <mjambor@suse.cz>
3729
3730 PR middle-end/50301
3731 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
3732 function index bounds.
3733 (perhaps_add_new_callers): Likewise.
3734
3735 2011-09-07 Martin Jambor <mjambor@suse.cz>
3736
3737 PR tree-optimization/49911
3738 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
3739 enumerations to the corresponding plain integer type.
3740
3741 2011-09-07 Richard Guenther <rguenther@suse.de>
3742
3743 PR tree-optimization/50319
3744 * tree-if-conv.c (set_bb_predicate): Assert we only set
3745 canonical predicates.
3746 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
3747 around canonical predicates.
3748 (predicate_bbs): Do not re-gimplify already canonical
3749 predicates. Properly unshare them though.
3750 (find_phi_replacement_condition): Simplify.
3751
3752 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
3753
3754 PR target/49030
3755 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
3756 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
3757 reusing the old code from get_arm_condition_code. Return ARM_NV
3758 for invalid comparison codes.
3759 (get_arm_condition_code): Redefine in terms of
3760 maybe_get_arm_condition_code.
3761 * config/arm/predicates.md (arm_comparison_operator): Use
3762 maybe_get_arm_condition_code.
3763
3764 2011-09-07 Richard Guenther <rguenther@suse.de>
3765
3766 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
3767 Canonicalize negated predicates by swapping edges.
3768 (forward_propagate_into_cond): Likewise.
3769
3770 2011-09-07 Richard Guenther <rguenther@suse.de>
3771
3772 PR tree-optimization/50213
3773 * tree-flow.h (simple_iv_increment_p): Declare.
3774 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
3775 POINTER_PLUS_EXPR.
3776 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
3777 not propagate simple IV counter increments.
3778
3779 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
3780 Iain Sandoe <iains@gcc.gnu.org>
3781
3782 * config/rs6000/rs6000.c (compute_save_world_info): Test
3783 cfun->has_nonlocal_label to determine if the out-of-line save
3784 world call may be used.
3785
3786 2011-09-07 Nick Clifton <nickc@redhat.com>
3787
3788 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
3789 label on the parallel part of the insn.
3790
3791 2011-09-07 Jakub Jelinek <jakub@redhat.com>
3792
3793 PR debug/50191
3794 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
3795 avoid_constant_pool_reference first instead of last.
3796
3797 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3798
3799 * doc/configfiles.texi (Configuration Files): Update documentation
3800 about tm_p.h and remove FIXME comment.
3801
3802 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
3803
3804 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
3805 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
3806
3807 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
3808
3809 * config/darwin10.h Remove duplicate LIB_SPEC.
3810
3811 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
3812
3813 PR middle-end/44382
3814 * target.def (reassociation_width): New hook.
3815
3816 * doc/tm.texi.in (reassociation_width): Likewise.
3817
3818 * doc/tm.texi (reassociation_width): Likewise.
3819
3820 * doc/invoke.texi (tree-reassoc-width): New param documented.
3821
3822 * hooks.h (hook_int_uint_mode_1): New default hook.
3823
3824 * hooks.c (hook_int_uint_mode_1): Likewise.
3825
3826 * config/i386/i386.h (ix86_tune_indices): Add
3827 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3828
3829 (TARGET_REASSOC_INT_TO_PARALLEL): New.
3830 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
3831
3832 * config/i386/i386.c (initial_ix86_tune_features): Add
3833 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3834
3835 (ix86_reassociation_width): New function.
3836
3837 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
3838
3839 * tree-ssa-reassoc.c (get_required_cycles): New function.
3840 (get_reassociation_width): Likewise.
3841 (swap_ops_for_binary_stmt): Likewise.
3842 (rewrite_expr_tree_parallel): Likewise.
3843
3844 (rewrite_expr_tree): Refactored. Part of code moved into
3845 swap_ops_for_binary_stmt.
3846
3847 (reassociate_bb): Now checks reassociation width to be used and
3848 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
3849
3850 2011-09-06 Richard Guenther <rguenther@suse.de>
3851
3852 PR tree-optimization/47025
3853 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
3854 uses nothing.
3855 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
3856 BUILT_IN_FREE.
3857 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
3858 definitely points to.
3859 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3860 BUILT_IN_VA_START doesn't let its va_list argument escape.
3861 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
3862 not make any previous stores necessary.
3863
3864 2011-09-06 Martin Jambor <mjambor@suse.cz>
3865
3866 * ipa-inline.h (struct inline_summary): Move versionable flag...
3867 * cgraph.h (struct cgraph_local_info): ...here
3868 * ipa-cp.c (determine_versionability): Use the new versionable flag.
3869 (determine_versionability): Likewise.
3870 (ipcp_versionable_function_p): Likewise.
3871 (ipcp_generate_summary): Likewise.
3872 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
3873 versionable flag.
3874 (compute_inline_parameters): Do not clear the versionable flag.
3875 (inline_read_section): Do not stream the versionable flag.
3876 (inline_write_summary): Likewise.
3877 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
3878 (input_overwrite_node): Likewise.
3879
3880 2011-09-06 Richard Guenther <rguenther@suse.de>
3881
3882 PR tree-optimization/48149
3883 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
3884 (vn_valueize): Move earlier.
3885 (valueize_expr): Use vn_valueize.
3886 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
3887 operands.
3888 (simplify_unary_expression): Simplify.
3889
3890 2011-09-06 Richard Guenther <rguenther@suse.de>
3891
3892 PR tree-optimization/48317
3893 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
3894 trailing array.
3895 (sizeof_vn_nary_op): New inline function.
3896 (vn_nary_op_lookup_pieces): Adjust.
3897 (vn_nary_op_insert_pieces): Likewise.
3898 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
3899 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
3900 any number of operands.
3901 (vn_nary_length_from_stmt): New function.
3902 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
3903 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
3904 sized temporary.
3905 (vn_nary_op_lookup): Likewise.
3906 (vn_nary_op_lookup_stmt): Likewise.
3907 (vn_nary_op_insert_into): Likewise.
3908 (vn_nary_op_insert_stmt): Likewise.
3909 (visit_use): Handle CONSTRUCTOR as nary.
3910 * tree-ssa-pre.c (phi_translate_1): Adjust.
3911 (create_expression_by_pieces): Likewise.
3912 (compute_avail): Likewise.
3913
3914 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
3915
3916 * config/arm/arm.c (arm_preferred_simd_mode): Check
3917 TARGET_NEON_VECTORIZE_DOUBLE instead of
3918 TARGET_NEON_VECTORIZE_QUAD.
3919 (arm_autovectorize_vector_sizes): Likewise.
3920 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
3921 mask of mvectorize-with-neon-double. Add RejectNegative.
3922 (mvectorize-with-neon-double): New.
3923
3924 2011-09-06 Richard Guenther <rguenther@suse.de>
3925
3926 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
3927
3928 2011-09-06 Tom de Vries <tom@codesourcery.com>
3929
3930 * recog.c (asm_labels_ok): New function.
3931 (check_asm_operands): Use asm_labels_ok.
3932
3933 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
3934
3935 PR target/49606
3936 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
3937 (PMODE_INSN): New macro.
3938 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
3939 (mips_got_load, mips_expand_synci_loop): Likewise.
3940 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
3941 cprestore patterns.
3942 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
3943 copygp_mips16 patterns.
3944 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
3945 and use_cprestore patterns.
3946 (mips_override_options): Check for incompatible -mabi and -mlong
3947 combinations.
3948 * config/mips/mips.md (unspec_got<mode>): Rename to...
3949 (unspec_got_<mode>): ...this.
3950 (copygp_mips16): Use the Pmode iterator.
3951 (potential_cprestore, cprestore, use_cprestore): Likewise.
3952 (clear_cache, indirect_jump): Use PMODE_INSN.
3953 (indirect_jump<mode>): Rename to...
3954 (indirect_jump_<mode>): ...this.
3955 (tablejump): Use PMODE_INSN.
3956 (tablejump<mode>): Rename to...
3957 (tablejump_<mode>): ...this.
3958 (exception_receiver): Handle restore_gp_si and restore_gp_di.
3959 (restore_gp): Use the Pmode iterator.
3960 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
3961 PMODE_INSN.
3962
3963 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
3964
3965 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
3966 Fix the type of the BIT_AND_EXPR.
3967
3968 2011-09-05 David S. Miller <davem@davemloft.net>
3969
3970 * config.host: Add driver-sparc.o and sparc/x-sparc on
3971 native sparc*-*-linux* builds.
3972 * config/sparc/driver-sparc.c: Correct Linux strings.
3973 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
3974 * config/sparc/linux64.h: Likewise.
3975 * doc/invoke.texi: Document that Linux also supports
3976 -mcpu=native and -mtune=native on sparc.
3977
3978 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
3979 PROCESSOR_NIAGARA4): New.
3980 * config/sparc/sparc.opt: Handle new processor types.
3981 * config/sparc/sparc.md: Add to "cpu" attribute.
3982 * config/sparc/sparc.h (TARGET_CPU_niagara3,
3983 TARGET_CPU_niagara4): New, treat as niagara2.
3984 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
3985 * config/sparc/sol2.h: Likewise.
3986 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
3987 * config/sparc/sparc.c (sparc_option_override): Add
3988 niagara3 and niagara4 handling.
3989 (sparc32_initialize_trampoline): Likewise.
3990 (sparc64_initialize_trampoline): Likewise.
3991 (sparc_use_sched_lookahead): Likewise.
3992 (sparc_issue_rate): Likewise.
3993 (sparc_register_move_cost): Likewise.
3994 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
3995 and niagara4 as appropriate.
3996 * doc/invoke.texi: Document new processor types.
3997 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
3998 and --with-tune options.
3999
4000 * config/sparc/sol2-64.h: Move ...
4001 * config/sparc/default-64.h: ... to here. Update comment.
4002 * config.gcc: Update Solaris sparc to use default-64.h, also
4003 prefix this header into the list on sparc64-*-linux.
4004 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4005 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
4006 to MASK_HARD_QUAD.
4007
4008 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4009
4010 PR target/50289
4011 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4012 that contain global register variable.
4013
4014 2011-09-05 Richard Guenther <rguenther@suse.de>
4015
4016 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4017
4018 2011-09-05 Richard Guenther <rguenther@suse.de>
4019
4020 * stor-layout.c (layout_type): Use size_binop for array size
4021 calculations.
4022
4023 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4024
4025 * config/avr/avr.h (progmem_section): Remove Declaration.
4026 * config/avr/avr.c (progmem_section): Make static and rename to
4027 progmem_swtable_section.
4028 (avr_output_addr_vec_elt): No need to switch sections.
4029 (avr_asm_init_sections): Use output_section_asm_op as section
4030 callback for progmem_swtable_section.
4031 (avr_output_progmem_section_asm_op): Remove Function.
4032 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4033 (avr_asm_function_rodata_section): New static Function.
4034 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4035 alignment 2**1 for jump tables.
4036
4037 2011-09-04 Jan Hubicka <jh@suse.cz>
4038
4039 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4040 parameter is SSA name.
4041
4042 2011-09-04 Richard Guenther <rguenther@suse.de>
4043
4044 Revert
4045 2011-08-31 Richard Guenther <rguenther@suse.de>
4046
4047 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4048 special-casing.
4049
4050 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
4051
4052 PR debug/49901
4053 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4054
4055 2011-09-04 Jakub Jelinek <jakub@redhat.com>
4056 Ira Rosen <ira.rosen@linaro.org>
4057
4058 PR tree-optimization/50208
4059 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4060 argument. Check that def_stmt is inside the loop.
4061 (vect_recog_widen_mult_pattern): Update calls to
4062 vect_handle_widen_mult_by_cons.
4063 (vect_operation_fits_smaller_type): Check that def_stmt is
4064 inside the loop.
4065
4066 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
4067
4068 * tree-vectorizer.c (vect_print_dump_info): Print line
4069 number when dumping to a file.
4070 (vectorize_loops): Add new messages to dump file.
4071
4072 2011-09-03 Martin Jambor <mjambor@suse.cz>
4073
4074 * ipa-prop.h (ipa_jump_func_t): New typedef.
4075 (struct ipa_edge_args): Removed field argument_count, field
4076 jump_functions turned into a vector.
4077 (ipa_set_cs_argument_count): Removed.
4078 (ipa_get_cs_argument_count): Updated to work on vectors.
4079 (ipa_get_ith_jump_func): Likewise.
4080 * ipa-prop.c (ipa_count_arguments): Removed.
4081 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4082 jump functions. Update caller.
4083 (compute_pass_through_member_ptrs): Likewise.
4084 (compute_cst_member_ptr_arguments): Likewise.
4085 (ipa_compute_jump_functions_for_edge): Get number of arguments from
4086 the statement, allocate vector.
4087 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4088 (duplicate_ipa_jump_func_array): Removed.
4089 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4090 (ipa_read_node_info): Allocate vector.
4091
4092 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4093
4094 PR middle-end/50232
4095 * config/pa/pa.md (return): Define "return" insn pattern.
4096 (epilogue): Use it when no epilogue is needed.
4097 * config/pa/pa.c (pa_can_use_return_insn): New function.
4098 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4099
4100 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
4101
4102 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4103 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4104 Force at least BITS_PER_UNIT alignment on the new variable.
4105
4106 2011-09-02 Gary Funck <gary@intrepid.com>
4107
4108 * opts.c (print_specific_help): Fix off-by-one compare in
4109 assertion check.
4110 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4111 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4112 Increase by +5 to allow for more languages.
4113 * optc-gen.awk: Generate #if that ensures that the number of
4114 languages is within the implementation-defined limit.
4115
4116 2011-09-02 Michael Matz <matz@suse.de>
4117
4118 PR middle-end/50260
4119 * ipa-split.c (split_function): Call add_referenced_var.
4120
4121 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4122 (cond_if_else_store_replacement_1): Ditto.
4123 * tree-ssa-pre.c (get_representative_for): Ditto.
4124 (create_expression_by_pieces): Ditto.
4125 (insert_into_preds_of_block): Ditto.
4126 * tree-sra.c (create_access_replacement): Ditto.
4127 (get_replaced_param_substitute): Ditto.
4128
4129 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
4130
4131 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4132 automata_options.
4133 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4134 (l1w, s1w, l2w, s2w): Define in the main automaton.
4135 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4136 units.
4137 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4138 (c6x_unit_names): Add the new units.
4139 (c6x_unit_codes): New static array.
4140 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4141 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4142 UNIT_QID_SIDE_OFFSET): New macros.
4143 (RESERVATION_S2): Adjust value.
4144 (c6x_option_override): Compute c6x_unit_codes.
4145 (assign_reservations): Take the unit_mask of the last instruction
4146 into account. Detect floating point reservations by looking for
4147 the new units. Don't assign reservations if the field is already
4148 nonzero.
4149 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4150 (init_sched_state): Initialize it.
4151 (c6x_clear_sched_context): Free it.
4152 (insn_set_clock): Clear reservation.
4153 (prev_cycle_state): New static variable.
4154 (c6x_init_sched_context): Save it.
4155 (c6x_sched_init): Allocate space for it and clear it.
4156 (c6x_sched_dfa_pre_cycle_insn): New static function.
4157 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4158 (c6x_variable_issue): Only record units in the unit_mask that
4159 were not set at the start of the cycle.
4160 (c6x_variable_issue): Compute and store the unit_mask from the
4161 current state.
4162 (reorg_split_calls): Ensure the new information remains correct.
4163 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4164 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4165 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4166 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4167 Add special reservations.
4168 * config/c6x/c6x-sched.md: Regenerate.
4169
4170 2011-09-02 Martin Jambor <mjambor@suse.cz>
4171
4172 * ipa-prop.h (ipa_node_params): Removed fields
4173 called_with_var_arguments and node_versionable.
4174 (ipa_set_called_with_variable_arg): Removed.
4175 (ipa_is_called_with_var_arguments): Likewise.
4176 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4177 (determine_versionability): Do not check for type attributes and va
4178 builtins. Record versionability into inline summary.
4179 (initialize_node_lattices): Do not check
4180 ipa_is_called_with_var_arguments.
4181 (propagate_constants_accross_call): Likewise, ignore arguments we do
4182 not have PARM_DECLs for, set variable flag for parameters that were
4183 not passed a value.
4184 (create_specialized_node): Dump info that we cannot change signature.
4185 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4186 number of arguments.
4187 (ipa_make_edge_direct_to_target): Likewise.
4188 (ipa_update_after_lto_read): Likewise.
4189 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4190 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4191 they were remapped.
4192
4193 2011-09-02 Richard Guenther <rguenther@suse.de>
4194
4195 PR tree-optimization/27460
4196 PR middle-end/29269
4197 * doc/md.texi (vcond): Document.
4198 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4199 optab with two modes.
4200 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4201 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4202 (vcond_optab): Adjust.
4203 (vcondu_optab): Likewise.
4204 (expand_vec_cond_expr_p): Adjust prototype.
4205 * optabs.c (get_vcond_icode): Adjust.
4206 (expand_vec_cond_expr_p): Likewise.
4207 (expand_vec_cond_expr): Likewise.
4208 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4209 vector type.
4210 (vectorizable_condition): Allow differing types for comparison
4211 and result.
4212 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4213 for the comparison.
4214 * config/i386/sse.md (vcond<mode>): Split to
4215 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4216 vcond<V_128:mode><VI124_128:mode> and
4217 vcondu<V_128:mode><VI124_128:mode>.
4218 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4219 (vconduv2di): Likewise.
4220 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4221 (vcondu<mode>): Likewise.
4222 * config/ia64/vect.md (vcond<mode>): Likewise.
4223 (vcondu<mode>): Likewise.
4224 (vcondv2sf): Likewise.
4225 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4226 * config/rs6000/paired.md (vcondv2sf): Likewise.
4227 * config/rs6000/vector.md (vcond<mode>): Likewise.
4228 (vcondu<mode>): Likewise.
4229 * config/spu/spu.md (vcond<mode>): Likewise.
4230 (vcondu<mode>): Likewise.
4231
4232 2011-09-02 Richard Guenther <rguenther@suse.de>
4233
4234 * pretty-print.h (pp_unsigned_wide_integer): New.
4235 * tree-pretty-print.c (dump_generic_node): Print unsigned
4236 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4237
4238 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
4239
4240 PR target/49987
4241 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4242 valid CONST_VECTOR operands.
4243 (rs6000_expand_vector_init): Likewise.
4244
4245 2011-09-02 Martin Jambor <mjambor@suse.cz>
4246
4247 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4248 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4249 BINFO_VTABLE. Parameter delta removed, all callers updated.
4250 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4251 BINFO_VTABLE.
4252 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4253 all calls.
4254 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4255 handling of thunk_delta.
4256 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4257 (devirtualization_time_bonus): Do not handle thunk deltas.
4258 (ipcp_discover_new_direct_edges): Likewise.
4259 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4260 (try_make_edge_direct_simple_call): Likewise.
4261 (try_make_edge_direct_virtual_call): Likewise.
4262 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4263 parameter set as unused.
4264 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4265 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4266 parameter set as unused.
4267 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4268 (input_edge_opt_summary): Likewise.
4269 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4270 BINFO_VIRTUALS at all.
4271 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4272
4273 2011-09-02 Richard Guenther <rguenther@suse.de>
4274
4275 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4276 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4277
4278 2011-08-31 Richard Guenther <rguenther@suse.de>
4279
4280 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4281 handling here, from ...
4282 (expand_expr_real_1): ... here.
4283 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4284 and VEC_COND_EXPR.
4285 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4286 a GIMPLE_TERNARY_RHS.
4287 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4288 and VEC_COND_EXPR here ...
4289 (verify_gimple_assign_single): ... not here.
4290 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4291 * tree-object-size.c (cond_expr_object_size): Adjust.
4292 (collect_object_sizes_for): Likewise.
4293 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4294 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4295 (ssa_forward_propagate_and_combine): Adjust.
4296 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4297 as ternary.
4298 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4299 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4300 * tree-vect-stmt.c (vectorizable_condition): Likewise.
4301 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4302 (extract_range_from_assignment): Likewise.
4303
4304 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4305
4306 * config/i386/i386.md: Use (match_test ...) for attribute tests.
4307 * config/i386/mmx.md: Likewise.
4308 * config/i386/sse.md: Likewise.
4309 * config/i386/predicates.md (call_insn_operand): Use
4310 (not (match_test "...")) instead of (match_test "!...")
4311 * config/i386/constraints.md (w): Likewise.
4312
4313 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4314
4315 * doc/md.texi: Describe the use of match_tests in attribute tests.
4316 * rtl.def (MATCH_TEST): Update commentary.
4317 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4318 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4319
4320 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4321
4322 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4323 (attr_string): Use copy_md_ptr_loc.
4324
4325 2011-08-31 Martin Jambor <mjambor@suse.cz>
4326
4327 PR middle-end/49886
4328 * ipa-inline-analysis.c (compute_inline_parameters): Set
4329 can_change_signature of noes with typde attributes.
4330 * ipa-split.c (split_function): Do not skip any arguments if
4331 can_change_signature is set.
4332
4333 2011-08-31 Martin Jambor <mjambor@suse.cz>
4334
4335 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4336 check removed.
4337
4338 2011-08-31 Richard Guenther <rguenther@suse.de>
4339
4340 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4341 special-casing.
4342
4343 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
4344
4345 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4346
4347 2011-08-31 Tom de Vries <tom@codesourcery.com>
4348
4349 PR middle-end/43513
4350 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4351 * tree-ssa-ccp.c (params.h): Include.
4352 (fold_builtin_alloca_for_var): New function.
4353 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4354
4355 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
4356
4357 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4358 Handle FMA option.
4359
4360 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
4361
4362 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4363 b3 and b4 unsigned.
4364
4365 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
4366
4367 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4368 when code is SET.
4369
4370 2011-08-30 Richard Guenther <rguenther@suse.de>
4371
4372 PR middle-end/48571
4373 * gimple.h (maybe_fold_offset_to_address): Remove.
4374 (maybe_fold_offset_to_reference): Likewise.
4375 (maybe_fold_stmt_addition): Likewise.
4376 (may_propagate_address_into_dereference): Likewise.
4377 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
4378 array references.
4379 * gimple-fold.c (canonicalize_constructor_val): Likewise.
4380 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4381 addresses instead.
4382 (may_propagate_address_into_dereference): Remove.
4383 (maybe_fold_offset_to_array_ref): Likewise.
4384 (maybe_fold_offset_to_reference): Likewise.
4385 (maybe_fold_offset_to_address): Likewise.
4386 (maybe_fold_stmt_addition): Likewise.
4387 (fold_gimple_assign): Do not reconstruct array references but
4388 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4389 MEM_REF addresses.
4390 (gimple_fold_stmt_to_constant_1): Likewise.
4391 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4392 * gimplify.c (gimplify_conversion): Likewise.
4393 (gimplify_expr): Likewise.
4394
4395 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
4396
4397 * config/i386/fmaintrin.h: New.
4398 * config.gcc: Add fmaintrin.h.
4399 * config/i386/i386.c
4400 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4401 <IX86_BUILTIN_VFMADDSD3>: Likewise.
4402 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4403 (*fmai_fmadd_<mode>): Likewise.
4404 (*fmai_fmsub_<mode>): Likewise.
4405 (*fmai_fnmadd_<mode>): Likewise.
4406 (*fmai_fnmsub_<mode>): Likewise.
4407 * config/i386/immintrin.h: Add fmaintrin.h.
4408
4409 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
4410
4411 * genautomata.c (NO_COMB_OPTION): New macro.
4412 (no_comb_flag): New static variable.
4413 (gen_automata_option): Handle NO_COMB_OPTION.
4414 (comb_vect_p): False if no_comb_flag.
4415 (add_vect): Move computation of min/max values. Return early if
4416 no_comb_flag.
4417 * doc/md.texi (automata_option): Document no-comb-vect.
4418
4419 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4420 "__x86.get_pc_thunk".
4421
4422 * bb-reorder.c (insert_section_boundary_note): Only do it if
4423 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4424
4425 2011-08-30 Christian Bruel <christian.bruel@st.com>
4426
4427 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4428 flag_profile_use.
4429
4430 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4431
4432 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4433 to off. Document switch.
4434 * doc/invoke.texi (-msave-toc-indirect): Ditto.
4435
4436 2011-08-29 Jakub Jelinek <jakub@redhat.com>
4437
4438 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4439 conditionals and comments inside macro arguments.
4440
4441 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
4442 Richard Guenther <rguenther@suse.de>
4443
4444 * tree.h (constant_boolean_node): Adjust prototype.
4445 * fold-const.c (fold_convert_loc): Move aggregate conversion
4446 leeway down.
4447 (constant_boolean_node): Make value parameter boolean, add
4448 vector type handling.
4449 (fold_unary_loc): Use constant_boolean_node.
4450 (fold_binary_loc): Preserve types properly when folding
4451 COMPLEX_EXPR <__real x, __imag x>.
4452 * gimplify.c (gimplify_expr): Handle vector comparison.
4453 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4454 comparison.
4455 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4456 comparisons.
4457
4458 2011-08-29 Jakub Jelinek <jakub@redhat.com>
4459
4460 PR middle-end/48722
4461 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4462 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4463 (verify_rtl_sharing): Likewise and verify_rtx_sharing
4464 in there too.
4465 (unshare_all_rtl_in_chain): For CALL_INSNs
4466 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4467
4468 2011-08-29 Richard Guenther <rguenther@suse.de>
4469
4470 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4471 on the built ADDR_EXPR.
4472
4473 2011-08-29 Jakub Jelinek <jakub@redhat.com>
4474
4475 PR debug/50215
4476 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4477 before adding ENTRY_VALUE to val->locs.
4478
4479 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
4480
4481 PR bootstrap/50218
4482 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4483 comp.
4484
4485 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
4486
4487 * doc/rtl.texi (simple_return): Document.
4488 (parallel, PATTERN): Here too.
4489 * doc/md.texi (return): Mention it's allowed to expand to simple_return
4490 in some cases.
4491 (simple_return): Document standard pattern.
4492 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4493 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4494 * reorg.c (function_return_label, function_simple_return_label):
4495 New static variables, replacing...
4496 (end_of_function_label): ... this.
4497 (simplejump_or_return_p): New static function.
4498 (optimize_skip, steal_delay_list_from_fallthrough,
4499 fill_slots_from_thread): Use it.
4500 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
4501 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4502 (find_end_label): Take a new arg which is one of the two return
4503 rtxs. Depending on which, set either function_return_label or
4504 function_simple_return_label. All callers changed.
4505 (make_return_insns): Make both kinds.
4506 (dbr_schedule): Adjust for two kinds of end labels.
4507 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4508 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4509 (gen_expand, gen_split): Use ANY_RETURN_P.
4510 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4511 * rtl.def (SIMPLE_RETURN): New code.
4512 * ifcvt.c (find_if_case_1): Be more careful about
4513 redirecting jumps to the EXIT_BLOCK.
4514 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4515 returnjump_p_1): Handle SIMPLE_RETURNs.
4516 * print-rtl.c (print_rtx): Likewise.
4517 * rtl.c (copy_rtx): Likewise.
4518 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4519 * combine.c (simplify_set): Likewise.
4520 * resource.c (find_dead_or_set_registers, mark_set_resources):
4521 Likewise.
4522 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4523 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4524 (init_emit_regs): Initialize simple_return_rtx.
4525 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4526 force_nonfallthru_and_redirect.
4527 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4528 (GR_SIMPLE_RETURN): New enum value.
4529 (simple_return_rtx): New macro.
4530 * basic-block.h (force_nonfallthru_and_redirect): Adjust
4531 declaration.
4532 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4533 argument. All callers changed. Be careful about what kinds of
4534 returnjumps to generate.
4535 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4536 ix86_pad_short_function): Likewise.
4537 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4538 of return.
4539 * config/mips/mips.md (any_return): New code_iterator.
4540 (optab): Add cases for return and simple_return.
4541 (return): Expand to a simple_return.
4542 (simple_return): New pattern.
4543 (*<optab>, *<optab>_internal for any_return): New patterns.
4544 (return_internal): Remove.
4545 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4546 a simple_return_internal.
4547
4548 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
4549
4550 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4551 (vec_extract_lo_<mode>): Prevent both operands in memory.
4552 (vec_extract_lo_v16hi): Ditto.
4553 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4554
4555 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
4556
4557 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4558 (*sse2_mulv4si3): Ditto.
4559 (mulv2di3): Ditto.
4560 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
4561 notes to REG_EQUAL.
4562
4563 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
4564
4565 PR target/50202
4566 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
4567 when all outputs are unused.
4568 (sse4_2_pcmpistr): Ditto.
4569
4570 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
4571
4572 * config/i386/i386.md (round<mode>2): New expander.
4573 * config/i386/i386.c (enum ix86_builtins): Add
4574 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
4575 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
4576 descriptions.
4577 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
4578 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
4579
4580 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
4581
4582 PR middle-end/50083
4583 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
4584 only when TARGET_C99_FUNCTIONS.
4585 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
4586 <BUILT_IN_RINT{,F,L}>: Ditto.
4587
4588 2011-08-26 Michael Matz <matz@suse.de>
4589 Jakub Jelinek <jakub@redhat.com>
4590
4591 PR lto/50165
4592 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
4593 don't call strlen twice, use memcpy.
4594
4595 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
4596
4597 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
4598 * config/i386/bmiintrin.h: Likewise.
4599 * config/i386/lzcntintrin.h: Likewise.
4600
4601 * config/i386/immintrin.h: Include <lzcntintrin.h>,
4602 <bmiintrin.h> and <bmi2intrin.h>.
4603
4604 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4605
4606 PR target/50166
4607 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
4608 * configure: Regenerate.
4609
4610 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4611
4612 PR c/50179
4613 * c-typeck.c (c_process_expr_stmt): Skip over nops and
4614 call mark_exp_read even if exprv is ADDR_EXPR.
4615
4616 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
4617
4618 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
4619 to df_set_dead_notes_for_mw.
4620
4621 2011-08-26 Richard Guenther <rguenther@suse.de>
4622
4623 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
4624
4625 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
4626 Tom de Vries <tom@codesourcery.com>
4627
4628 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
4629 (struct ivopts_data): Add loop_single_exit_p field.
4630 (niter_for_exit): Change parameter desc_p into return value. Return
4631 desc if desc->may_be_zero. Free desc if unused.
4632 (niter_for_single_dom_exit): Change return type.
4633 (find_induction_variables): Handle changed return type of
4634 niter_for_single_dom_exit. Dump may_be_zero.
4635 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
4636 (set_use_iv_cost): Add and handle comp parameter.
4637 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
4638 comp argument to set_use_iv_cost.
4639 (strip_wrap_conserving_type_conversions, expr_equal_p)
4640 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
4641 (may_eliminate_iv): Add comp parameter. Handle new return type of
4642 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
4643 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
4644 and may_eliminate_iv.
4645 (rewrite_use_compare): Move call to iv_elimination_compare to ...
4646 (may_eliminate_iv): Here.
4647 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
4648
4649 2011-08-26 Tom de Vries <tom@codesourcery.com>
4650
4651 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
4652 accessing TREE_TYPE.
4653
4654 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
4655
4656 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
4657 (*ior_scc_scc_cmp): Likewise
4658 (*and_scc_scc): Likewise.
4659 (*and_scc_scc_cmp): Likewise.
4660 (*and_scc_scc_nodom): Likewise.
4661 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
4662
4663 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4664
4665 * rtlanal.c (nonzero_bits1): Handle CLRSB.
4666
4667 2011-08-26 Richard Guenther <rguenther@suse.de>
4668
4669 * expr.c (string_constant): Handle &MEM_REF.
4670
4671 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
4672
4673 * config/arm/arm.c (struct four_ints): New type.
4674 (count_insns_for_constant): Delete function.
4675 (find_best_start): Delete function.
4676 (optimal_immediate_sequence): New function.
4677 (optimal_immediate_sequence_1): New function.
4678 (arm_gen_constant): Move constant splitting code to
4679 optimal_immediate_sequence.
4680 Rewrite constant negation/invertion code.
4681
4682 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
4683
4684 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
4685 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
4686 Remove prototype. Remove static function type.
4687 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
4688 Add arch attribute.
4689 * config/arm/constraints.md (Pj, PJ): New constraints.
4690
4691 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4692
4693 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
4694 ("cortex_a9_multiply_long"): New and use above. Handle all
4695 long multiply cases.
4696 ("cortex_a9_multiply"): Handle smmul and smmulr.
4697 ("cortex_a9_mac"): Handle smmla.
4698
4699 2011-08-25 Richard Henderson <rth@redhat.com>
4700
4701 PR 50132
4702 PR 49864
4703 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
4704 non-constant stack adjutment.
4705 * expr.c (find_args_size_adjust): Break out from ...
4706 (fixup_args_size_notes): ... here.
4707 * rtl.h (find_args_size_adjust): Declare.
4708
4709 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
4710
4711 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
4712 sse4 and sse4_noavx.
4713 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
4714 (*pushdf_rex64): Change Y2 register constraint to x.
4715 (*movdf_internal_rex64): Ditto.
4716 (*zero_extendsidi2_rex64): Ditto.
4717 (*movdi_internal): Change Y2 register constraint to x
4718 and update "isa" attribute.
4719 (*pushdf): Ditto.
4720 (*movdf internal): Ditto.
4721 (zero_extendsidi2_1): Ditto.
4722 (*truncdfdf_mixed): Ditto.
4723 (*truncxfdf2_mixed): Ditto.
4724 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
4725 register constraint to x.
4726 (*movv2sf_internal_rex64): Ditto.
4727 (*mov<mode>_internal): Change Y2 register constraint to x
4728 and add "isa" attribute.
4729 (*movv2sf_internal): Ditto.
4730 (*vec_extractv2si_1): Ditto.
4731 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
4732 constraints to x and update "isa" attribute.
4733 (*vec_interleave_highv2df): Change Y3 registerconstraint
4734 to x and update "isa" attribute.
4735 (*vec_interleave_lowv2df): Ditto.
4736 (*vec_concatv2df): Change Y2 register constraint to x and
4737 update "isa" attribute.
4738 (sse2_loadld): Ditto.
4739 (*vec_extractv2di_1): Ditto.
4740 (*vec_dupv4si): Ditto.
4741 (*vec_dupv2di): Ditto.
4742 (*vec_concatv4si): Ditto.
4743 (vec_concatv2di): Ditto.
4744 * config/i386/constraints.md (Y2): Remove.
4745 (Y3): Ditto.
4746 (Y4): Ditto.
4747
4748 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
4749
4750 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
4751 dump_def_use_chain): Don't declare.
4752 (mark_conflict, create_new_chain): Move before users.
4753 (regrename_optimize): Move to near end of file.
4754
4755 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4756
4757 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
4758 (secondary_input_reload_class): Remove Prototype.
4759 * config/avr/avr.c (byte_immediate_operand): Remove Function.
4760 * config/avr/avr.md (setmemhi): Use u8_operand.
4761 (strlenhi): Use const0_rtx for comparison.
4762 * config/avr/avr.h (avr_reg_order): Remove Declaration.
4763
4764 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4765
4766 * config/avr/avr.c (reg_class_tab): Make local to
4767 avr_regno_reg_class. Return smallest register class available.
4768
4769 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4770
4771 * config/avr/avr.c (STR_PREFIX_P): New Define.
4772 (avr_asm_declare_function_name): Use it.
4773 (avr_asm_named_section): Use it.
4774 (avr_section_type_flags): Use it.
4775
4776 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
4777
4778 * doc/md.texi (automata_option): Document collapse-ndfa.
4779 * genautomata.c (COLLAPSE_OPTION): New macro.
4780 (collapse_flag): New static variable.
4781 (struct description): New member normal_decls_num.
4782 (struct automaton): New members advance_ainsn and collapse_ainsn.
4783 (gen_automata_option): Check for COLLAPSE_OPTION.
4784 (collapse_ndfa_insn_decl): New static variable.
4785 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
4786 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
4787 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
4788 necessary. Use normal_decls_num rather than decls_num, remove
4789 test for special decls.
4790 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
4791 (make_automaton); Likewise. Use the new advance_cycle_insn member
4792 of struct automaton.
4793 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
4794 is set.
4795 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
4796 transition. Create the necessary transitions for it.
4797 (create_ainsns): Return void. Take an automaton_t argument, and
4798 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
4799 callers changed.
4800 (COLLAPSE_NDFA_VALUE_NAME): New macro.
4801 (output_tables): Output code to define it.
4802 (output_internal_insn_code_evaluation): Output code to accept
4803 const0_rtx as collapse-ndfa transition.
4804 (output_default_latencies, output_print_reservation_func,
4805 output_print_description): Reorganize loops to use normal_decls_num
4806 as loop bound; remove special case for advance_cycle_insn_decl.
4807 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
4808 (check_automata_insn_issues): Check for collapse_ainsn.
4809 (expand_automate): Allocate sufficient space. Initialize
4810 normal_decls_num.
4811
4812 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4813
4814 * config/avr/avr.md: Fix indentation from r177991.
4815
4816 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
4817
4818 * regrename.c (struct du_head): Remove member terminated.
4819 (create_new_chain): Don't initialize it.
4820 (scan_rtx_reg): Don't set or test it, test the open_chains_set
4821 bitmap instead.
4822 (tick, this_tick): New global variables, moved out of
4823 regrename_optimize.
4824 (current_id, open_chains, closed_chains, open_chains_set,
4825 live_in_chains, live_hard_regs): Reorder declarations.
4826 (dump_def_use_chain): Move function earlier in the file.
4827 (rename_chains): New static function, broken out of
4828 regrename_optimize.
4829 (regrename_optimize): Use it. Remove #if 0'ed code.
4830
4831 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4832
4833 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
4834
4835 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
4836
4837 PR target/50172
4838 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
4839
4840 2011-08-24 Richard Guenther <rguenther@suse.de>
4841
4842 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
4843 ref in the basic-block case. Move stripping array-refs
4844 to the place we create an access-function for it. Remove
4845 bogus stripping down a MEM_REF to its base.
4846
4847 2011-08-24 Richard Guenther <rguenther@suse.de>
4848
4849 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
4850 with -fno-strict-overflow.
4851
4852 2011-08-24 Richard Guenther <rguenther@suse.de>
4853
4854 * tree-vectorizer.c (vect_print_dump_info): Avoid the
4855 file and location clutter when dumping to dump files.
4856
4857 2011-08-24 Simon Baldwin <simonb@google.com>
4858
4859 * gengtype-state.c (write_state): Remove timestamped header line.
4860
4861 2011-08-24 Joseph Myers <joseph@codesourcery.com>
4862
4863 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
4864 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
4865 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
4866 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
4867 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
4868 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
4869 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
4870 rules.
4871 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
4872
4873 2011-08-24 Joseph Myers <joseph@codesourcery.com>
4874
4875 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
4876
4877 2011-08-24 Richard Guenther <rguenther@suse.de>
4878
4879 PR tree-optimization/50067
4880 * tree-data-ref.c (dr_analyze_indices): Do not add an access
4881 function for a MEM_REF base that has no evolution in the loop
4882 nest or that is not analyzable.
4883
4884 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
4885
4886 * ira.c (ira_init_register_move_cost): Check small subclasses
4887 through ira_reg_class_max_nregs and ira_available_class_regs.
4888
4889 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
4890
4891 * config/i386/constraints.md (Yp): New register constraint.
4892 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
4893 Yp register constraint.
4894 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
4895 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
4896 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
4897
4898 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
4899
4900 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
4901
4902 2011-08-23 Mark Heffernan <meheff@google.com>
4903
4904 PR middle-end/38509
4905 * common.opt (Wfree-nonheap-object): New option.
4906 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
4907 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
4908 to warning.
4909 (expand_builtin): Make warning conditional.
4910
4911 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
4912
4913 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
4914 (length_immediate): Handle imulx, ishiftx and rotatex.
4915 (imm_disp): Ditto.
4916 (isa): Add bmi2.
4917 (enabled): Handle bmi2.
4918 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
4919 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
4920 (*bmi2_umulditi3_1): New insn pattern.
4921 (*bmi2_umulsidi3_1): Ditto.
4922 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
4923 (*bmi2_ashl<mode>3_1): New insn pattern.
4924 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
4925 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
4926 (*bmi2_ashlsi3_1_zext): New insn pattern.
4927 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
4928 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
4929 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
4930 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
4931 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
4932 flags dependency.
4933 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
4934 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
4935 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
4936 flags dependency.
4937 (*bmi2_rorx<mode>3_1): New insn pattern.
4938 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
4939 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
4940 (*rotatert<mode>3_1 splitter): Ditto.
4941 (*bmi2_rorxsi3_1_zext): New insn pattern.
4942 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
4943 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
4944 (*rotatertsi3_1_zext splitter): Ditto.
4945
4946 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
4947
4948 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
4949 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
4950 (ix86_handle_option): Handle OPT_mbmi2 case.
4951 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
4952 (x86_64-*-*): Likewise.
4953 * config/i386/bmi2intrin.h: New file.
4954 * config/i386/cpuid.h (bit_BMI2): New.
4955 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4956 BMI2 feature.
4957 * config/i386/i386-c.c (ix86_target_macros_internal):
4958 Conditionally define __BMI2__.
4959 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
4960 Handle BMI2 option.
4961 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
4962 (print_reg): New code.
4963 (ix86_print_operand): Likewise.
4964 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4965 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4966 IX86_BUILTIN_PEXT64.
4967 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
4968 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
4969 IX86_BUILTIN_PEXT64.
4970 * config/i386/i386.h (TARGET_BMI2): New.
4971 * config/i386/i386.md (UNSPEC_PDEP): New.
4972 (UNSPEC_PEXT): Likewise.
4973 (*bmi2_bzhi_<mode>3): Likewise.
4974 (*bmi2_pdep_<mode>3): Likewise.
4975 (*bmi2_pext_<mode>3): Likewise.
4976 * config/i386/i386.opt (mbmi2): New.
4977 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
4978 is defined.
4979 * doc/extend.texi: Document BMI2 built-in functions.
4980 * doc/invoke.texi: Document -mbmi2.
4981
4982 2011-08-23 Jakub Jelinek <jakub@redhat.com>
4983
4984 PR middle-end/50161
4985 * simplify-rtx.c (simplify_const_unary_operation): If
4986 op is CONST_INT, don't look at op_mode, but use instead mode.
4987 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
4988 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
4989 operation and TRUNCATE/ZERO_EXTEND if needed.
4990 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
4991 Document that operand mode must be same as operation mode,
4992 or VOIDmode.
4993 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
4994 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
4995 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
4996 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
4997 use the mode of operand for the operation and add truncate
4998 or zero_extend around if needed.
4999 * config/c6x/c6x.md (ctzdi2): Likewise.
5000 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5001
5002 2011-08-12 Michael Matz <matz@suse.de>
5003
5004 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5005 (gimple_expand_cfg): Merge alignment info for coalesced pointer
5006 SSA names.
5007
5008 2011-08-23 Richard Guenther <rguenther@suse.de>
5009
5010 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5011 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5012 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5013 from ...
5014 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5015 (mem_refs_may_alias_p): Adjust.
5016 * tree-data-ref.h (dr_may_alias_p): Adjust.
5017 * tree-data-ref.c: Include tree-affine.h.
5018 (dr_analyze_indices): Do nothing for the non-loop case.
5019 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
5020 more cases in the non-loop case.
5021 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5022 calls to dr_may_alias_p.
5023 (write_alias_graph_to_ascii_ecc): Likewise.
5024 (write_alias_graph_to_ascii_dot): Likewise.
5025 (build_alias_set_optimal_p): Likewise.
5026
5027 2011-08-23 Richard Guenther <rguenther@suse.de>
5028
5029 PR tree-optimization/50162
5030 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5031
5032 2011-08-23 Richard Guenther <rguenther@suse.de>
5033
5034 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5035 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5036 (create_data_ref): Also dump access functions for the created data-ref.
5037
5038 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
5039 Kirill Yukhin <kirill.yukhin@intel.com>
5040
5041 PR target/50155
5042 * config/i386/sse.md (VI_AVX2): New.
5043 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5044 (*<plusminus_insn><mode>3): Ditto.
5045 (<sse2_avx2>_andnot<mode>3): Ditto.
5046 (*andnot<mode>3): Fix order of cond operands.
5047 Add asserts for correct TARGET_xxx.
5048 (*<any_logic:code><mode>3): Ditto.
5049
5050 2011-08-22 Anatoly Sokolov <aesok@post.ru>
5051
5052 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5053 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5054 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5055 regclass argument type to reg_class_t. Change 'max' and 'v' vars
5056 and return types to unsigned char. Use reg_class_contents instead
5057 of class_contents.
5058 (TARGET_CLASS_MAX_NREGS): Define.
5059
5060 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
5061
5062 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5063 to make computed_jump_p return true.
5064
5065 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5066
5067 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5068 (PICFLAG_FOR_TARGET): Substitute.
5069 * aclocal.m4: Regenerate.
5070 * configure: Regenerate.
5071
5072 2011-08-22 Dodji Seketeli <dodji@redhat.com>
5073
5074 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5075 after reading in the pch.
5076
5077 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
5078
5079 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5080 * configure: Regenerated.
5081
5082 2011-08-22 Jakub Jelinek <jakub@redhat.com>
5083
5084 PR tree-optimization/50133
5085 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5086 from stmt instead of some statement around gsi.
5087
5088 PR middle-end/50141
5089 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5090 innerdecl is a VAR_DECL.
5091
5092 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
5093
5094 * config/i386/avx2intrin.h: New file.
5095 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5096 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5097 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5098 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5099 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5100 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5101 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5102 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5103 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5104 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5105 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5106 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5107 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5108 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5109 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5110 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5111 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5112 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5113 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5114 VOID_FTYPE_PV8SI_V8SI_V8SI,
5115 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5116 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5117 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5118 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5119 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5120 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5121 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5122 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5123 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5124 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5125 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5126 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5127 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5128 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5129 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5130 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5131 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5132 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5133 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5134 V4DI_FTYPE_V4DI_INT_CONVERT,
5135 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5136 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5137 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5138 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5139 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5140 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5141 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5142 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5143 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5144 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5145 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5146 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5147 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5148 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5149 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5150 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5151 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5152 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5153 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5154 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5155 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5156 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5157 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5158 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5159 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5160 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5161 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5162 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5163 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5164 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5165 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5166 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5167 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5168 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5169 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5170 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5171 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5172 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5173 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5174 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5175 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5176 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5177 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5178 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5179 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5180 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5181 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5182 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5183 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5184 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5185 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5186 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5187 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5188 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5189 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5190 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5191 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5192 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5193 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5194 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5195 IX86_BUILTIN_VBROADCASTSS_PS256,
5196 IX86_BUILTIN_VBROADCASTSD_PD256,
5197 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5198 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5199 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5200 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5201 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5202 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5203 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5204 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5205 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5206 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5207 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5208 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5209 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5210 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5211 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5212 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5213 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5214 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5215 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5216 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5217 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5218 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5219 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5220 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5221 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5222 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5223 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5224 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5225 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5226 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5227 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5228 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
5229 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5230 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5231 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5232 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5233 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5234 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5235 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5236 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5237 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5238 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5239 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5240 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5241 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5242 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5243 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5244 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5245 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5246 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5247 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5248 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5249 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5250 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5251 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5252 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5253 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5254 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5255 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5256 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5257 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5258 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5259 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5260 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5261 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5262 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5263 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5264 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5265 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5266 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5267 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5268 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5269 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5270 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5271 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5272 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5273 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5274 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5275 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5276 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5277 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5278 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5279 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5280 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5281 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5282 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5283 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5284 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5285 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5286 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5287 IX86_BUILTIN_VBROADCASTSD_PD256,
5288 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5289 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5290 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5291 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5292 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5293 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5294 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5295 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5296 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5297 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5298 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5299 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5300 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5301 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5302 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5303 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5304 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5305 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5306 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5307 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5308 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5309 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5310 IX86_BUILTIN_GATHERDIV8SI.
5311 (ix86_preferred_simd_mode): Support AVX2 modes.
5312 (ix86_expand_args_builtin): Support AVX2 builtins.
5313 (ix86_expand_special_args_builtin): Likewise.
5314 (ix86_expand_builtin): Likewise.
5315 * config/i386/i386.md (UNSPEC_VPERMSI): New.
5316 (UNSPEC_VPERMDF): Likewise.
5317 (UNSPEC_VPERMSF): Likewise.
5318 (UNSPEC_VPERMDI): Likewise.
5319 (UNSPEC_VPERMTI): Likewise.
5320 (UNSPEC_GATHER): Likewise.
5321 (ssemodesuffix): Extend.
5322 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5323 is defined.
5324 * config/i386/predicates.md (const1248_operand): New.
5325 * config/i386/sse.md (VI1_AVX2): New mode iterator.
5326 (VI2_AVX2): Likewise.
5327 (VI4_AVX2): Likewise.
5328 (VI8_AVX2): Likewise.
5329 (VIMAX_AVX2): Likewise.
5330 (SSESCALARMODE): Likewise.
5331 (VI12_AVX2): Likewise.
5332 (VI24_AVX2): Likewise.
5333 (VI124_AVX2): Likewise.
5334 (VI248_AVX2): Likewise.
5335 (VI48_AVX2): Likewise.
5336 (VI4SD_AVX2): Likewise.
5337 (V48_AVX2): Likewise.
5338 (AVX256MODE2P): Likewise.
5339 (AVXMODE48P_DI): Likewise.
5340 (sse2_avx2): New mode attribute.
5341 (ssse3_avx2): Likewise.
5342 (sse4_1_avx2): Likewise.
5343 (avx_avx2): Likewise.
5344 (ssebytemode): Likewise.
5345 (AVXTOSSEMODE): Likewise.
5346 (AVXMODE48P_DI): Likewise.
5347 (gthrfirstp): Likewise.
5348 (gthrlastp): Likewise.
5349 (lshift): New code_iterator
5350 (lshift): New code attribute.
5351 (lshift): Likewise.
5352 (ssescalarmodesuffix): Update.
5353 (sseunpackmode): Likewise.
5354 (ssepackmode): Likewise.
5355 (avx2_vec_dupv4sf): New insn pattern.
5356 (avx2_vec_dupv8sf): Likewise.
5357 (avx2_interleave_highv4di): Likewise.
5358 (avx2_interleave_lowv4di): Likewise.
5359 (avx2_umulv4siv4di3): Likewise
5360 (*avx2_umulv4siv4di3): Likewise
5361 (avx2_pmaddwd): Likewise.
5362 (*avx2_pmaddwd): Likewise.
5363 (avx2_lshrqv4di3): Likewise.
5364 (avx2_lshlqv4di3): Likewise.
5365 (avx2_lshl<mode>3): Likewise.
5366 (avx2_<umaxmin:code><mode>3): Likewise.
5367 (*avx2_<umaxmin:code><mode>3): Likewise.
5368 (avx2_<smaxmin:code><mode>3): Likewise.
5369 (*avx2_<smaxmin:code><mode>3): Likewise.
5370 (avx2_eq<mode>3): Likewise.
5371 (*avx2_eq<mode>3): Likewise.
5372 (avx2_gt<mode>3): Likewise.
5373 (avx2_interleave_highv32qi): New.
5374 (avx2_interleave_lowv32qi): Likewise.
5375 (avx2_interleave_highv16hi): Likewise.
5376 (avx2_interleave_lowv16hi): Likewise.
5377 (avx2_interleave_highv8si): Likewise.
5378 (avx2_interleave_lowv8si): Likewise.
5379 (avx2_pshufd): Likewise.
5380 (avx2_pshufd_1): Likewise.
5381 (avx2_pshuflwv3): Likewise.
5382 (avx2_pshuflw_1): Likewise.
5383 (avx2_pshufhwv3): Likewise.
5384 (avx2_pshufhw_1): Likewise.
5385 (avx2_uavgv32qi3): Likewise.
5386 (*avx2_uavgv32qi3): Likewise.
5387 (avx2_uavgv16hi3): Likewise.
5388 (*avx2_uavgv16hi3): Likewise.
5389 (avx2_pmovmskb): Likewise.
5390 (avx2_phaddwv16hi3): Likewise.
5391 (avx2_phadddv8si3): Likewise.
5392 (avx2_phaddswv16hi3): Likewise.
5393 (avx2_phsubwv16hi3): Likewise.
5394 (avx2_phsubdv8si3): Likewise.
5395 (avx2_phsubswv16hi3): Likewise.
5396 (avx2_pmaddubsw256): Likewise.
5397 (avx2_umulhrswv16hi3): Likewise.
5398 (*avx2_umulhrswv16hi3): Likewise.
5399 (avx2_packusdw): Likewise.
5400 (avx2_pblendd<mode>): Likewise.
5401 (avx2_<code>v16qiv16hi2): Likewise.
5402 (avx2_<code>v8qiv8si2): Likewise.
5403 (avx2_<code>v8hiv8si2): Likewise.
5404 (avx2_<code>v4qiv4di2): Likewise.
5405 (avx2_<code>v4hiv4di2): Likewise.
5406 (avx2_<code>v4siv4di2): Likewise.
5407 (avx2_pbroadcast<mode>): Likewise.
5408 (avx2_permvarv8si): Likewise.
5409 (avx2_permv4df): Likewise.
5410 (avx2_permvarv8sf): Likewise.
5411 (avx2_permv4di): Likewise.
5412 (avx2_permv2ti): Likewise.
5413 (avx2_vec_dupv4df): Likewise.
5414 (avx2_vbroadcasti128_<mode>): Likewise.
5415 (avx2_vec_set_lo_v4di): Likewise.
5416 (avx2_vec_set_hi_v4di): Likewise.
5417 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5418 (avx2_extracti128): Likewise.
5419 (avx2_inserti128): Likewise.
5420 (avx2_ashrvv8si): Likewise.
5421 (avx2_ashrvv4si): Likewise.
5422 (avx2_<lshift>vv8si): Likewise.
5423 (avx2_<lshift>v<mode>): Likewise.
5424 (avx2_<lshift>vv2di): Likewise.
5425 (avx2_gathersi<mode>): Likewise.
5426 (*avx2_gathersi<mode>): Likewise.
5427 (avx2_gatherdi<mode>): Likewise.
5428 (*avx2_gatherdi<mode>): Likewise.
5429 (avx2_gatherdi<mode>256): Likewise.
5430 (*avx2_gatherdi<mode>256): Likewise.
5431 (<plusminus_insn><mode>3): Use VI mode iterator.
5432 (*<plusminus_insn><mode>3): Use VI mode iterator.
5433 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5434 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
5435 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5436 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
5437 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
5438 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
5439 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5440 Use VI2_AVX2 mode iterator.
5441 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5442 Use VI2_AVX2 mode iterator.
5443 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
5444 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
5445 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5446 Use VI4_AVX2 mode iterator.
5447 (ashr<mode>3): Use VI24_AVX2 mode iterator.
5448 (lshr<mode>3): Use VI248_AVX2 mode iterator.
5449 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5450 Use VIMAX_AVX2 mode iterator.
5451 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5452 Use VI mode iterator.
5453 (*andnot<mode>3): Update for AVX2.
5454 (*<any_logic:code><mode>3): Likewise.
5455 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5456 Use VI1_AVX mode iterator.
5457 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
5458 Use VI2_AVX mode iterator.
5459 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5460 Use VI1_AVX mode iterator.
5461 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5462 Use VI8_AVX2 mode iterator.
5463 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5464 Use VI1_AVX2 mode iterator.
5465 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5466 Use VI124_AVX2 mode iterator.
5467 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5468 Use SSESCALARMODE mode iterator.
5469 (abs<mode>2): Use VI124_AVX2 mode iterator.
5470 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5471 Use VI8_AVX2 mode iterator.
5472 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5473 Use VI1_AVX2 mode iterator.
5474 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5475 Use VI1_AVX2 mode iterator.
5476 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5477 Use VI2_AVX2 mode iterator.
5478 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5479 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5480 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5481 avx_maskstore<ssemodesuffix><avxsizesuffix>.
5482 Use V48_AVX2 mode iterator.
5483 * doc/extend.texi: Document AVX2 built-in functions.
5484 * doc/invoke.texi: Document -mavx2.
5485
5486 2011-08-22 Matthias Klose <doko@debian.org>
5487
5488 Revert:
5489 2011-07-11 Arthur Loiret <aloiret@debian.org>
5490 Matthias Klose <doko@debian.org>
5491 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5492 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5493 convention.
5494 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5495
5496 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
5497
5498 PR bootstrap/50146
5499 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5500 to #ifndef HONOR_REG_ALLOC_ORDER block.
5501
5502 2011-08-21 Richard Henderson <rth@redhat.com>
5503
5504 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5505 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5506 * resource.c (next_insn_no_annul): Likewise.
5507 (mark_set_resources): Likewise.
5508 * reorg.c (delete_from_delay_slot): Likewise.
5509 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5510 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5511
5512 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
5513
5514 * config/i386/i386.md (any_div): Remove.
5515 (sgnprefix): Update for removal.
5516 (u): Ditto.
5517
5518 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
5519
5520 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5521 for ira_reg_class_max_nregs. Increase pressure by 1.
5522 (mark_pseudo_regno_subword_dead): Use allocno class
5523 for ira_reg_class_max_nregs.
5524
5525 2011-08-20 Richard Henderson <rth@redhat.com>
5526
5527 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5528 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5529 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5530 config/c6x/ltf.c: Adjust include path for soft-fp.
5531
5532 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
5533
5534 PR other/46770
5535 * config.gcc (tm_file): Add initfini-array.h if
5536 .init_arrary/.fini_array are supported.
5537
5538 * crtstuff.c: Don't generate .ctors nor .dtors sections if
5539 USE_INITFINI_ARRAY is defined.
5540
5541 * output.h (default_elf_init_array_asm_out_constructor): New.
5542 (default_elf_fini_array_asm_out_destructor): Likewise.
5543 * varasm.c (elf_init_array_section): Likewise.
5544 (elf_fini_array_section): Likewise.
5545 (get_elf_initfini_array_priority_section): Likewise.
5546 (default_elf_init_array_asm_out_constructor): Likewise.
5547 (default_elf_fini_array_asm_out_destructor): Likewise.
5548
5549 * config/initfini-array.h: New.
5550
5551 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
5552
5553 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5554 OK for ST_REGS and FP_REGS before taking those classes into account.
5555
5556 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
5557
5558 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5559 before checking for annulled branches.
5560
5561 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
5562
5563 * config/i386/i386.c (ix86_binary_operator_ok): Use
5564 satisfies_constraint_L.
5565
5566 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
5567 Michael Matz <matz@suse.de>
5568
5569 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
5570 trunc (a + copysign (nextafter (0.5, 0.0), a)).
5571
5572 2011-08-20 Anatoly Sokolov <aesok@post.ru>
5573
5574 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5575 * doc/tm.texi: Regenerate.
5576 * targhooks.c (default_preferred_output_reload_class): Don't use
5577 PREFERRED_OUTPUT_RELOAD_CLASS macro.
5578 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
5579
5580 2011-08-20 Jakub Jelinek <jakub@redhat.com>
5581
5582 PR tree-optimization/48739
5583 * tree-ssa.c: Include cfgloop.h.
5584 (execute_update_addresses_taken): When updating ssa, if in loop closed
5585 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
5586 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
5587
5588 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
5589
5590 PR rtl-optimization/49936
5591 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5592 for calculation of max register move costs.
5593
5594 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5595
5596 * c-parser.c (c_parser_postfix_expression): Convert operands of
5597 __builtin_complex to their semantic types.
5598
5599 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
5600
5601 PR middle-end/49721
5602 * explow.c (convert_memory_address_addr_space): Also permute the
5603 conversion and addition of constant for zero-extend.
5604
5605 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5606
5607 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
5608 * doc/extend.texi (__builtin_complex): Document.
5609
5610 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5611
5612 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
5613 beyond conversions.
5614 (convert_mult_to_widen): Convert constant inputs to the right type.
5615 (convert_plusminus_to_widen): Don't automatically reject inputs that
5616 are not an SSA_NAME.
5617 Convert constant inputs to the right type.
5618
5619 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5620
5621 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
5622 to the correct type.
5623
5624 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5625
5626 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
5627 unsigned inputs of different modes.
5628 (convert_plusminus_to_widen): Likewise.
5629
5630 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5631
5632 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
5633 'type'.
5634 Use 'type' from caller, not inferred from 'rhs'.
5635 Don't reject non-conversion statements. Do return lhs in this case.
5636 (is_widening_mult_p): Add new argument 'type'.
5637 Use 'type' from caller, not inferred from 'stmt'.
5638 Pass type to is_widening_mult_rhs_p.
5639 (convert_mult_to_widen): Pass type to is_widening_mult_p.
5640 (convert_plusminus_to_widen): Likewise.
5641
5642 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5643
5644 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
5645 Ensure the the larger type is the first operand.
5646
5647 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5648
5649 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
5650 unsupported unsigned multiplies to signed.
5651 (convert_plusminus_to_widen): Likewise.
5652
5653 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5654
5655 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
5656 conversion statement separating multiply-and-accumulate.
5657
5658 2011-08-19 Richard Guenther <rguenther@suse.de>
5659
5660 PR tree-optimization/50067
5661 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
5662 offset only if we accounted for it.
5663
5664 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5665
5666 * config/arm/arm.md (maddhidi4): Remove '*' from name.
5667 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
5668 * optabs.c (find_widening_optab_handler_and_mode): New function.
5669 (expand_widen_pattern_expr): Use find_widening_optab_handler.
5670 (expand_binop_directly): Likewise.
5671 (expand_binop): Likewise.
5672 * optabs.h (find_widening_optab_handler): New macro define.
5673 (find_widening_optab_handler_and_mode): New prototype.
5674 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
5675 type precision rules.
5676 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
5677 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
5678 (is_widening_mult_rhs_p): Allow widening by more than one mode.
5679 Explicitly disallow mis-matched input types.
5680 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
5681 input types to fit the new handler.
5682 (convert_plusminus_to_widen): Likewise.
5683
5684 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5685
5686 * expr.c (expand_expr_real_2): Use widening_optab_handler.
5687 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
5688 (gen_insn): $N now means $a must be wider than $b, not consecutive.
5689 * optabs.c (widened_mode): New function.
5690 (expand_widen_pattern_expr): Use widening_optab_handler.
5691 (expand_binop_directly): Likewise.
5692 (expand_binop): Likewise.
5693 * optabs.h (widening_optab_handlers): New struct.
5694 (optab_d): New member, 'widening'.
5695 (widening_optab_handler): New function.
5696 (set_widening_optab_handler): New function.
5697 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
5698 widening_optab_handler.
5699 (convert_plusminus_to_widen): Likewise.
5700
5701 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5702
5703 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
5704 pedantic.
5705 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
5706 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
5707
5708 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5709
5710 * opth-gen.awk: Do not declare target save/restore structures and
5711 functions if IN_RTS defined.
5712
5713 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5714
5715 PR target/49437
5716 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
5717 when stack was realigned in interrupt handler prologue.
5718
5719 2011-08-18 Joseph Myers <joseph@codesourcery.com>
5720
5721 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
5722 (quals_from_declspecs): Assert _Noreturn not present.
5723 (grokdeclarator): Handle _Noreturn.
5724 (build_null_declspecs): Initialize noreturn_p.
5725 (declspecs_add_scspec): Handle RID_NORETURN.
5726 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
5727 (c_parser_attributes): Handle RID_NORETURN.
5728 * c-tree.h (struct c_declspecs): Add noreturn_p.
5729 * ginclude/stdnoreturn.h: New.
5730 * Makefile.in (USER_H): Add stdnoreturn.h.
5731
5732 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
5733
5734 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
5735 (OPTION_MASK_ISA_AVX_UNSET): Update.
5736 (OPTION_MASK_ISA_AVX2_UNSET): New.
5737 (ix86_handle_option): Handle OPT_mavx2 case.
5738 * config/i386/cpuid.h (bit_AVX2): New.
5739 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5740 AVX2 feature.
5741 * config/i386/i386-c.c (ix86_target_macros_internal):
5742 Conditionally define __AVX2__.
5743 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
5744 Define "core-avx2" processor alias. Handle avx2 option.
5745 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
5746 * config/i386/i386.h (TARGET_AVX2): New.
5747 * config/i386/i386.opt (mavx2): New.
5748 * doc/invoke.texi: Document -mavx2.
5749
5750 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
5751
5752 PR rtl-optimization/49890
5753 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
5754 subclasses of class which is superset of a pressure class.
5755
5756 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
5757 Igor Zamyatin <igor.zamyatin@intel.com>
5758
5759 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
5760 with HOST_WIDE_INT for isa_flag.
5761 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
5762 isa variables.
5763
5764 * config/i386/i386.c (ix86_target_string): Replace int with
5765 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
5766 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
5767 (pta_flags): Removed.
5768 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
5769 (pta): Use HOST_WIDE_INT on flags.
5770 (builtin_isa): Use HOST_WIDE_INT on isa.
5771 (ix86_add_new_builtins): Likewise.
5772 (def_builtin): Use HOST_WIDE_INT on mask.
5773 (def_builtin_const): Likewise.
5774 (builtin_description): Likewise.
5775
5776 * config/i386/i386.opt (ix86_isa_flags): Replace int with
5777 HOST_WIDE_INT.
5778 (ix86_isa_flags_explicit): Likewise.
5779 (x_ix86_isa_flags_explicit): Likewise.
5780
5781 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
5782
5783 PR rtl-optimization/50107
5784 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
5785 (ira_hard_reg_in_set_p): New.
5786
5787 * ira-color.c (calculate_saved_nregs): New.
5788 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
5789 hard regs.
5790 (allocno_reload_assign, fast_allocation): Use
5791 ira_hard_reg_set_intersection_p instead of
5792 ira_hard_reg_not_in_set_p.
5793
5794 * ira.c (setup_reg_renumber): Use
5795 ira_hard_reg_set_intersection_p instead of
5796 ira_hard_reg_not_in_set_p.
5797 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
5798 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
5799
5800 * ira-costs.c (ira_tune_allocno_costs): Use
5801 ira_hard_reg_set_intersection_p instead of
5802 ira_hard_reg_not_in_set_p.
5803
5804 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
5805 Igor Zamyatin <igor.zamyatin@intel.com>
5806
5807 * hwint.h (HOST_WIDE_INT_1): New.
5808
5809 * opt-functions.awk (switch_bit_fields): Initialize the
5810 host_wide_int field.
5811 (host_wide_int_var_name): New.
5812 (var_type_struct): Check and return HOST_WIDE_INT.
5813
5814 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
5815
5816 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
5817
5818 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
5819 check masks for HOST_WIDE_INT.
5820
5821 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
5822 (option_enabled): Likewise.
5823 (get_option_state): Likewise.
5824
5825 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
5826 to HOST_WIDE_INT.
5827
5828 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5829 Marc Glisse <marc.glisse@normalesup.org>
5830
5831 PR libstdc++-v3/1773
5832 * target.def (decl_mangling_context): New C++ hook.
5833 * doc/tm.texi: Regenerate.
5834 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
5835 * config/sol2-protos.h: Group by source file.
5836 (solaris_cxx_decl_mangling_context): Declare.
5837 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
5838 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
5839 Use $<.
5840 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
5841 Add sol2-stubs.o to extra_objs.
5842
5843 2011-08-18 Jakub Jelinek <jakub@redhat.com>
5844
5845 PR target/50009
5846 * stor-layout.c (update_alignment_for_field): Don't ICE on
5847 packed flexible array members if ms_bitfield_layout_p.
5848
5849 PR target/50092
5850 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
5851 on the result before returning it.
5852
5853 PR debug/50017
5854 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
5855 is a debug stmt, use location of the first non-debug stmt after it.
5856
5857 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
5858
5859 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
5860 (arm_size_rtx_costs): Likewise.
5861
5862 2011-08-18 Richard Guenther <rguenther@suse.de>
5863
5864 * tree.h (tree_int_cst_msb): Remove.
5865 * tree.c (tree_int_cst_msb): Likewise.
5866 (tree_int_cst_sign_bit): Move from ...
5867 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
5868
5869 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
5870
5871 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
5872 * doc/tm.texi: Regenerate.
5873 * target.def (rtx_costs): Add an opno parameter.
5874 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5875 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5876 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5877 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5878 * cse.c (COST_IN): Add an opno parameter.
5879 (notreg_cost): Likewise. Update call to rtx_cost.
5880 (COST, fold_rtx): Update accordingly.
5881 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
5882 * expmed.c (emit_store_flag): Likewise.
5883 * optabs.c (avoid_expensive_constant): Add an opno parameter.
5884 Update call to rtx_cost.
5885 (expand_binop_directly, expand_binop): Likewise.
5886 (expand_twoval_binop, prepare_cmp_insn): Likewise.
5887 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
5888 (set_src_cost, get_full_set_src_cost): Update accordingly.
5889 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
5890 to target hook.
5891 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
5892 (default_adress_cost): Update calls to rtx_cost.
5893
5894 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
5895 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
5896 (arm_rtx_costs): Add an opno parameter.
5897 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
5898 adjust any recursive rtx-cost calls.
5899 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
5900 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5901 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5902 * config/cris/cris.c (cris_rtx_costs): Likewise.
5903 * config/frv/frv.c (frv_rtx_costs): Likewise.
5904 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5905 * config/i386/i386.c (ix86_rtx_costs): Likewise.
5906 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5907 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5908 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5909 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5910 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5911 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5912 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5913 * config/mep/mep.c (mep_rtx_cost): Likewise.
5914 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5915 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
5916 (mips_zero_extend_cost): Add an opno parameter.
5917 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5918 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
5919 to rtx_cost.
5920 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
5921 rtx-cost calls.
5922 * config/pa/pa.c (hppa_rtx_costs): Likewise.
5923 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5924 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
5925 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5926 (rs6000_debug_rtx_costs): Likewise.
5927 * config/s390/s390.c (s390_rtx_costs): Likewise.
5928 * config/score/score-protos.h (score_rtx_costs): Likewise.
5929 * config/score/score.c (score_rtx_costs): Likewise.
5930 * config/sh/sh.c (andcosts): Update call to rtx_cost.
5931 (sh_rtx_costs): Add an opno parameter.
5932 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5933 * config/spu/spu.c (spu_rtx_costs): Likewise.
5934 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5935 * config/v850/v850.c (v850_rtx_costs): Likewise.
5936 * config/vax/vax.c (vax_rtx_costs): Likewise.
5937 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5938
5939 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
5940
5941 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
5942 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
5943 rtx_cost.
5944 * calls.c (precompute_register_parameters): Likewise.
5945 * combine.c (expand_compound_operation, make_extraction): Likewise.
5946 (force_to_mode, distribute_and_simplify_rtx): Likewise.
5947 * dse.c (find_shift_sequence): Likewise.
5948 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
5949 * expr.c (compress_float_constant): Likewise.
5950 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5951 * gcse.c (want_to_gcse_p): Likewise.
5952 * ifcvt.c (noce_try_sign_mask): Likewise.
5953 * loop-doloop.c (doloop_optimize): Likewise.
5954 * loop-invariant.c (create_new_invariant): Likewise.
5955 * optabs.c (avoid_expensive_constant): Likewise.
5956 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
5957 (try_replace_in_use, reload_cse_move2add): Likewise.
5958 * reload1.c (calculate_elim_costs_all_insns): Likewise.
5959 (note_reg_elim_costly): Likewise.
5960 * rtlanal.c (insn_rtx_cost): Likewise.
5961 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5962 * stmt.c (lshift_cheap_p): Likewise.
5963 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
5964 * config/avr/avr.c (final_prescan_insn): Likewise.
5965 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5966 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
5967
5968 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
5969
5970 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
5971 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
5972 * cfgloopanal.c (seq_cost): Likewise.
5973 * loop-invariant.c (create_new_invariant): Likewise.
5974 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
5975 (reload_cse_move2add): Use get_full_set_rtx_cost.
5976
5977 2011-08-18 Richard Guenther <rguenther@suse.de>
5978
5979 * expr.c (get_inner_reference): Fix typo in last change.
5980
5981 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
5982 Joseph Myers <joseph@codesourcery.com>
5983
5984 PR tree-optimization/49963
5985 * hwint.c (absu_hwi): Define.
5986 * hwint.h (absu_hwi): Declare.
5987 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
5988 of abs_hwi.
5989 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5990 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5991
5992 2011-08-18 Richard Guenther <rguenther@suse.de>
5993
5994 * expr.c (get_inner_reference): Sign-extend the constant
5995 twos-complement offset before doing arbitrary precision
5996 arithmetic on it.
5997 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
5998 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
5999 to get_constraint_for_ptr_offset.
6000
6001 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
6002
6003 PR target/50068
6004 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6005
6006 2011-08-17 Richard Guenther <rguenther@suse.de>
6007
6008 * tree.h (convert_to_ptrofftype_loc): New function.
6009 (convert_to_ptrofftype): Define.
6010 * builtins.c (expand_builtin_bzero): Use size_type_node.
6011 (fold_builtin_bzero): Likewise.
6012 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6013 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6014 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6015 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6016 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6017 * fold-const.c (build_range_check): Negate using the original type.
6018 (fold_unary_loc): Use fold_build_pointer_plus_loc.
6019 * gimple-fold.c (gimple_adjust_this_by_delta): Use
6020 convert_to_ptrofftype.
6021 * gimplify.c (gimplify_self_mod_expr): Likewise.
6022 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6023 (graphite_create_new_loop_guard): Likewise.
6024 * graphite-sese-to-poly.c (my_long_long): Remove.
6025 (scop_ivs_can_be_represented): Adjust.
6026 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6027 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6028 * tree-loop-distribution.c (build_size_arg_loc): Use
6029 size_type_node.
6030 (generate_memset_zero): Simplify.
6031 * tree-mudflap.c: Use fold_convert, not convert.
6032 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6033 its own type.
6034 (determine_offset): Likewise for DR_STEP.
6035 (valid_initializer_p): Likewise.
6036 * tree-profile.c (prepare_instrumented_value): Convert the pointer
6037 to an integer type of same size.
6038 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6039 to sizetype without need.
6040 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6041 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6042 * tree-ssa-loop-manip.c (create_iv): Likewise.
6043 (determine_exit_conditions): Adjust comment.
6044 * tree-ssa-pre.c (create_expression_by_pieces): Use
6045 convert_to_ptrofftype.
6046 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6047 * varasm.c (array_size_for_constructor): Compute using double_ints.
6048
6049 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6050
6051 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6052 when generating an integer result where possible. Short-cut
6053 comparison against 0 also for QImode.
6054
6055 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6056
6057 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6058 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6059 prototype.
6060 * config/spu/spu.c (spu_legitimize_reload_address): New function.
6061 (spu_legitimate_address_p): Do not check displacement if the base
6062 is an eliminable stack register.
6063
6064 2011-08-16 Anatoly Sokolov <aesok@post.ru>
6065
6066 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6067 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6068 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6069 m32c_preferred_output_reload_class): Remove.
6070 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6071 Change rclass argument and return types to reg_class_t. Use
6072 reg_class_subset_p instead of class_sizes.
6073 (m32c_preferred_output_reload_class): Make static. Change rclass
6074 argument and return types to reg_class_t.
6075 (TARGET_PREFERRED_RELOAD_CLASS,
6076 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6077
6078 2011-08-16 Kai Tietz <ktietz@redhat.com>
6079
6080 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6081
6082 2011-08-16 Richard GUenther <rguenther@suse.de>
6083
6084 PR tree-optimization/50082
6085 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6086 warnings here, instead of ...
6087 (ssa_forward_propagate_and_combine): ... here.
6088 (forward_propagate_into_comparison_1): Adjust.
6089 (forward_propagate_into_comparison): Likewise.
6090 (forward_propagate_into_gimple_cond): Likewise.
6091 (forward_propagate_into_cond): Likewise.
6092
6093 2011-08-16 Andreas Schwab <schwab@redhat.com>
6094
6095 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6096 instead of ggc_alloc_zone_vec_rtvec_def.
6097
6098 2011-08-16 Richard Guenther <rguenther@suse.de>
6099
6100 * tree.h (ptrofftype_p): New helper function.
6101 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6102 offset verification.
6103 (verify_gimple_assign_binary): Likewise.
6104 * tree.c (build2_stat): Likewise.
6105 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6106 (reset_evolution_in_loop): Likewise.
6107 * tree-chrec.h (build_polynomial_chrec): Likewise.
6108
6109 2011-08-16 Liang Wang <lwang1@marvell.com>
6110
6111 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6112 ggc_alloc_zone_vec_rtvec_def.
6113
6114 2011-08-16 Richard Guenther <rguenther@suse.de>
6115
6116 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6117 helper factored out from ...
6118 (extract_range_from_binary_expr_1): ... here. Re-structure
6119 to not glob handling too different tree codes.
6120
6121 2011-08-15 Richard Henderson <rth@redhat.com>
6122
6123 PR middle-end/50006
6124 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6125 setting out to include allocate_stack named pattern as well.
6126 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6127 * stmt.c (expand_stack_restore): Likewise.
6128
6129 2011-08-15 Richard Guenther <rguenther@suse.de>
6130
6131 PR middle-end/50082
6132 * fold-const.c (maybe_canonicalize_comparison_1): Properly
6133 convert the modified operand to the other operand type.
6134 (fold_comparison): Call maybe_canonicalize_comparison_1 with
6135 useless conversions stripped from comparison operands.
6136
6137 2011-08-15 Richard Guenther <rguenther@suse.de>
6138
6139 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6140 (extract_range_from_unary_expr_1): Restructure.
6141
6142 2011-08-15 Richard Guenther <rguenther@suse.de>
6143
6144 PR tree-optimization/50058
6145 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6146 copy matching.
6147
6148 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6149
6150 PR target/50022
6151 * config/arm/arm.c (output_move_double): Add 2 parameters
6152 to count the number of insns emitted and whether to emit or not.
6153 Use the flag to decide when to emit and count number of instructions
6154 that will be emitted.
6155 Handle case where output_move_double might be called for calculating
6156 lengths with an invalid constant.
6157 (arm_count_output_move_double_insns): Define.
6158 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6159 (output_move_double): Adjust prototype.
6160 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6161 output_move_double.
6162 ("*movdi_vfp_cortexa8"): Likewise and add attribute
6163 for ce_count.
6164 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6165 ("*movdf_soft_insn"): Likewise.
6166 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6167 ("*cirrus_thumb2_movdi"): Likewise.
6168 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6169 ("*cirrus_movdf_hard_insn"): Likewise.
6170 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6171 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6172 ("mov<mode>_internal VMMX"): Likewise.
6173 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6174
6175 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
6176
6177 * config/i386/i386.c (ix86_expand_round_sse4): New function.
6178 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6179 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6180 for TARGET_ROUND.
6181
6182 (rint<mode>2): Simplify TARGET_ROUND check.
6183 (floor<mode>2): Ditto.
6184 (ceil<mode>2): Ditto.
6185 (btrunc<mode>2): Ditto.
6186
6187 2011-08-14 Anatoly Sokolov <aesok@post.ru>
6188
6189 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6190 as mmix_preferred_output_reload_class.
6191
6192 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
6193
6194 * PR target/49903
6195 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6196 (branch_unspec): New insn.
6197 (branch): Beauty farm.
6198 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
6199 to be IF_THEN_ELSE.
6200 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6201 New static functions.
6202 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
6203 Use CONST_INT_P. Beauty.
6204
6205 2011-08-12 Richard Henderson <rth@redhat.com>
6206
6207 PR rtl-opt/49994
6208 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6209 * sched-deps.c (init_deps): Clear it.
6210 (deps_analyze_insn): Consume it.
6211 (sched_analyze_insn): Fill it.
6212
6213 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6214
6215 PR target/48328
6216 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6217 for tbh instructions.
6218
6219 2011-08-12 Diego Novillo <dnovillo@google.com>
6220
6221 * data-streamer.h (streamer_write_zero): Rename from output_zero.
6222 (streamer_write_uhwi): Rename from lto_output_uleb128.
6223 (streamer_write_hwi): Rename from output_sleb128.
6224 (streamer_write_string): Rename from lto_output_string.
6225 (streamer_string_index): Rename from lto_string_index.
6226 (streamer_write_string_with_length): Rename from
6227 lto_output_string_with_length.
6228 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6229 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6230 (streamer_read_string): Rename from lto_input_string.
6231 (streamer_read_indexed_string): Rename from input_string_internal.
6232 (streamer_read_uhwi): Rename from lto_input_uleb128.
6233 (streamer_read_hwi): Rename from lto_input_sleb128.
6234 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6235 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6236 (streamer_write_enum): Rename from lto_output_enum.
6237 (streamer_read_enum): Rename from lto_input_enum.
6238 (streamer_write_record_start): Rename from output_record_start.
6239 (streamer_read_record_start): Rename from input_record_start.
6240 (streamer_write_bitpack): Rename from lto_output_bitpack.
6241 (streamer_read_bitpack): Rename from lto_input_bitpack.
6242 (streamer_write_char_stream): Rename from lto_output_1_stream.
6243 (streamer_read_uchar): Rename from lto_input_1_unsigned.
6244 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6245 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6246 (streamer_read_string_cst): Rename from input_string_cst.
6247 (streamer_read_chain): Rename from lto_input_chain.
6248 (streamer_alloc_tree): Rename from lto_materialize_tree.
6249 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6250 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6251 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6252 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6253 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6254 (streamer_write_chain): Rename from lto_output_chain.
6255 (streamer_write_tree_header): Rename from lto_output_tree_header.
6256 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6257 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6258 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6259 (streamer_write_builtin): Rename from lto_output_builtin_tree.
6260 (streamer_check_handled_ts_structures): Rename from
6261 check_handled_ts_structures.
6262 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6263 (streamer_tree_cache_insert_at): Rename from
6264 lto_streamer_cache_insert_at.
6265 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6266 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6267 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6268 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6269 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6270 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6271 (write_identifier): Rename from output_identifier.
6272 (write_ts_common_tree_pointers): Rename from
6273 lto_output_ts_common_tree_pointers.
6274 (write_ts_vector_tree_pointers): Rename from
6275 lto_output_ts_vector_tree_pointers.
6276 (write_ts_complex_tree_pointers): Rename from
6277 lto_output_ts_complex_tree_pointers.
6278 (write_ts_decl_minimal_tree_pointers): Rename from
6279 lto_output_ts_decl_minimal_tree_pointers.
6280 (write_ts_decl_common_tree_pointers): Rename from
6281 lto_output_ts_decl_common_tree_pointers.
6282 (write_ts_decl_non_common_tree_pointers): Rename from
6283 lto_output_ts_decl_non_common_tree_pointers.
6284 (write_ts_decl_with_vis_tree_pointers): Rename from
6285 lto_output_ts_decl_with_vis_tree_pointers.
6286 (write_ts_field_decl_tree_pointers): Rename from
6287 lto_output_ts_field_decl_tree_pointers.
6288 (write_ts_function_decl_tree_pointers): Rename from
6289 lto_output_ts_function_decl_tree_pointers.
6290 (write_ts_type_common_tree_pointers): Rename from
6291 lto_output_ts_type_common_tree_pointers.
6292 (write_ts_type_non_common_tree_pointers): Rename from
6293 lto_output_ts_type_non_common_tree_pointers.
6294 (write_ts_list_tree_pointers): Rename from
6295 lto_output_ts_list_tree_pointers.
6296 (write_ts_vec_tree_pointers): Rename from
6297 lto_output_ts_vec_tree_pointers.
6298 (write_ts_exp_tree_pointers): Rename from
6299 lto_output_ts_exp_tree_pointers.
6300 (write_ts_block_tree_pointers): Rename from
6301 lto_output_ts_block_tree_pointers.
6302 (write_ts_binfo_tree_pointers): Rename from
6303 lto_output_ts_binfo_tree_pointers.
6304 (write_ts_constructor_tree_pointers): Rename from
6305 lto_output_ts_constructor_tree_pointers.
6306 (write_ts_target_option): Rename from lto_output_ts_target_option.
6307 (write_ts_translation_unit_decl_tree_pointers): Rename from
6308 lto_output_ts_translation_unit_decl_tree_pointers.
6309 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6310 Rename from lto_streamer_cache_add_to_node_array.
6311 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6312 (record_common_node): Rename from lto_record_common_node.
6313
6314 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6315 declarations.
6316 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6317 function.
6318 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6319 unused function.
6320 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6321 (ipa-reference.o): Likewise.
6322 * lto-section-out.c: Include data-streamer.h.
6323 * ipa-reference.c: Include data-streamer.h.
6324
6325 2011-08-12 Nick Clifton <nickc@redhat.com>
6326
6327 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6328 * doc/md.texi (cmpstrn): Note that the comparison stops if both
6329 fetched bytes are zero.
6330 (cmpstr): Likewise.
6331 (cmpmem): Note that the comparison does not stop if both of the
6332 fetched bytes are zero.
6333
6334 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
6335
6336 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6337 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6338 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6339 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6340 to integer_type_node.
6341 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6342 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6343 * builtins.c (expand_builtin_in): Ditto.
6344 (mathfn_built_in_1): Ditto.
6345 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6346 BUILT_IN_IFLOOR.
6347 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6348 BUILT_IN_IROUND.
6349 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6350 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6351 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6352
6353 2011-08-12 Richard Guenther <rguenther@suse.de>
6354
6355 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6356
6357 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
6358
6359 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6360
6361 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
6362
6363 * config/arm/arm.c (get_label_padding): New function.
6364 (create_fix_barrier, arm_reorg): Use it.
6365
6366 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
6367
6368 PR target/49781
6369 * config/i386/i386.md (*lea_5_zext): New.
6370 (*lea_6_zext): Ditto.
6371 * config/i386/predicates.md (const_32bit_mask): New predicate.
6372 (lea_address_operand): Reject AND.
6373 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6374 const_32bit_mask immediate.
6375 (ix86_print_operand_address): Handle AND.
6376 (memory_address_length): Ditto.
6377
6378 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
6379 Brian Hackett <bhackett1024@gmail.com>
6380
6381 * plugin.def: Add event for finish_decl.
6382 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6383 * c-decl.c (finish_decl): Invoke callbacks on above event.
6384 * doc/plugins.texi: Document above event.
6385
6386 2011-08-11 Richard Guenther <rguenther@suse.de>
6387
6388 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6389 lookups, make looking through aggregate copies stronger.
6390
6391 2011-08-11 Richard Henderson <rth@redhat.com>
6392
6393 PR bootstrap/50018
6394 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6395
6396 2011-08-11 Richard Guenther <rguenther@suse.de>
6397
6398 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6399 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6400 (vrp_visit_stmt): Likewise.
6401
6402 2011-08-11 Richard Guenther <rguenther@suse.de>
6403
6404 PR middle-end/50040
6405 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6406 load of the other piece with TREE_NO_WARNING.
6407 * tree-flow.h (warn_uninit): Adjust prototype.
6408 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6409 the base variable and the expression that is used separately.
6410 Properly query all TREE_NO_WARNING flags.
6411 (struct walk_data): Remove.
6412 (warn_uninitialized_var): Likewise.
6413 (warn_uninitialized_vars): Do not walk gimple pieces but simply
6414 look at all SSA uses of the statement. Handle unused memory
6415 separately.
6416 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6417
6418 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
6419
6420 * config/rx/rx.md (movsicc): Allow register to register transfers.
6421 (*movsicc): Likewise.
6422 (*stcc): Restrict this pattern to EQ and NE compares.
6423 (*stcc_reg): New pattern. Works for any comparison but only for
6424 register transfers.
6425
6426 2011-08-11 Diego Novillo <dnovillo@google.com>
6427
6428 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6429 Call stream_write_tree instead of output_record_start.
6430 (lto_output_ts_binfo_tree_pointers): Likewise.
6431
6432 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6433 Convert it to a macro.
6434 (stream_read_tree): Likewise.
6435
6436 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6437 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6438
6439 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6440 and tree_read_bitfields.
6441 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6442 (lto_write_tree): Call it.
6443 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6444 * streamer-hooks.h (struct streamer_hooks): Remove fields
6445 name, is_streamable and alloc_tree. Update all users.
6446 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6447 (lto_materialize_tree): ... here.
6448 Handle CALL_EXPR codes.
6449 Remove call to lto_streamer_cache_append.
6450 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6451 * tree-streamer.h (tree_read_bitfields): Declare.
6452
6453 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6454 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6455 * tree-streamer.h (stream_read_tree): New. Replace all calls
6456 to lto_input_tree with it.
6457 (stream_write_tree): New. Replace all calls to lto_output_tree,
6458 lto_output_tree_ref and lto_output_tree_or_ref with it.
6459 * lto-streamer-in.c (lto_read_tree): Inline code from
6460 lto_streamer_read_tree.
6461 (lto_input_tree): Move from tree-streamer-in.c.
6462 * lto-streamer-out.c (lto_output_tree_ref): Make static.
6463 Remove handling of NULL values for EXPR.
6464 Do not handle EXPRs that are not indexable.
6465 (lto_write_tree): Move from tree-streamer-out.c.
6466 Inline lto_streamer_write_tree.
6467 (lto_output_tree): Move from tree-streamer-out.c.
6468 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6469 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6470 (lto_preload_common_nodes): Likewise.
6471 Remove assertions and adjustments for nodes
6472 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6473 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6474 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6475 * lto-streamer.h (lto_input_tree): Declare.
6476 (lto_output_tree_ref): Remove.
6477 * streamer-hooks.h (struct streamer_hooks): Remove fields
6478 preload_common_nodes, indexable_with_decls_p,
6479 pack_value_fields, unpack_value_fields and output_tree_header.
6480 Update all users.
6481 * tree-streamer-in.c (lto_materialize_tree): Make extern.
6482 (lto_input_tree_pointers): Likewise.
6483 (lto_read_tree): Move to lto-streamer-in.c.
6484 (lto_input_integer_cst): Make extern.
6485 (lto_get_pickled_tree): Likewise.
6486 (lto_get_builtin_tree): Likewise.
6487 (lto_input_tree): Move to lto-streamer-in.c.
6488 * tree-streamer-out.c (pack_value_fields): Make extern.
6489 (lto_output_tree_or_ref): Remove. Replace all callers with
6490 calls to stream_write_tree.
6491 (lto_output_builtin_tree): Make extern.
6492 (lto_streamer_write_tree): Inline into lto_write_tree.
6493 (lto_output_tree_pointers): Make extern.
6494 (lto_output_tree_header): Likewise.
6495 (lto_output_integer_cst): Likewise.
6496 (lto_write_tree): Move to lto-streamer-out.c.
6497 (lto_output_tree): Likewise.
6498 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6499 (preload_common_nodes): Likewise.
6500 (lto_streamer_cache_create): Call it.
6501 * tree-streamer.h: Include streamer-hooks.h.
6502 (stream_write_tree): New.
6503 (stream_read_tree): New.
6504 (lto_input_tree): Remove.
6505 (lto_materialize_tree): Declare.
6506 (lto_input_tree_pointers): Declare.
6507 (lto_get_pickled_tree): Declare.
6508 (lto_get_builtin_tree): Declare.
6509 (lto_input_integer_cst): Declare.
6510 (lto_output_tree_header): Declare.
6511 (pack_value_fields): Declare.
6512 (lto_output_tree_pointers): Declare.
6513 (lto_output_integer_cst): Declare.
6514 (lto_output_builtin_tree): Declare.
6515
6516 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6517
6518 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6519 only if producer writes to the register given by regno.
6520
6521 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6522 Alexander Monakov <amonakov@ispras.ru>
6523
6524 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6525 (sched_get_condition_with_rev_uncached): ... this. Factor out
6526 condition caching logic into ...
6527 (sched_get_condition_with_rev): ... this. Reimplement. Do not
6528 attempt to use cache for instructions with zero luid.
6529 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6530 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6531
6532 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6533
6534 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6535 get_seqno_for_a_jump. Update the caller.
6536 (get_seqno_by_succs): New. Use it ...
6537 (get_seqno_for_a_jump): ... here to find a seqno if looking at
6538 predecessors was not sufficient.
6539 (get_seqno_by_preds): Include head in iteration range, exclude insn.
6540
6541 2011-08-11 Dmitry Melnik <dm@ispras.ru>
6542
6543 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6544
6545 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6546
6547 * sel-sched-ir.h (register_unavailable_p): Declare.
6548 * sel-sched-ir.c (register_unavailable_p): New. Use it...
6549 (set_unavailable_target_for_expr): ... here to properly test
6550 availability of a register.
6551 (speculate_expr): Ditto.
6552 * sel-sched.c (substitute_reg_in_expr): Ditto.
6553 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6554
6555 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6556
6557 * sel-sched.c (verify_target_availability): Fix usage of
6558 hard_regno_nregs.
6559
6560 2011-08-11 Dmitry Melnik <dm@ispras.ru>
6561
6562 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
6563 recognized by cannot_copy_insn_p hook and volatile instructions.
6564
6565 2011-08-11 Dmitry Melnik <dm@ispras.ru>
6566
6567 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
6568
6569 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
6570
6571 * doc/md.texi (define_bypass): Say that the instruction names can
6572 be filename-style globs.
6573 * Makefile.in (FNMATCH_H): Define.
6574 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
6575 * genattrtab.c: Include fnmatch.h.
6576 (bypass_list): Change field name from "insn" to "pattern".
6577 (gen_bypass_1): Update accordingly.
6578 (process_bypasses): Use fnmatch to check for matches between
6579 insn reservations and define_bypasses.
6580 * genautomata.c: Include fnmatch.h.
6581 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
6582 and out_pattern respectively.
6583 (gen_bypass, insert_bypass): Update accordingly.
6584 (for_each_matching_insn, process_bypass_2, process_bypass_1)
6585 (process_bypass): New functions.
6586 (process_decls): Use process_bypass. Update after field name changes.
6587
6588 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
6589
6590 PR target/49687
6591 * config/avr/avr.md (smulqi3_highpart): New insn.
6592 (umulqi3_highpart): New insn.
6593 (*subqi3.ashiftrt7): New insn.
6594 (smulhi3_highpart): New expander.
6595 (umulhi3_highpart): Nex expander.
6596 (*smulhi3_highpart_call): New insn.
6597 (*umulhi3_highpart_call): New insn.
6598 (extend_u): New code attribute.
6599 (extend_prefix): Rename code attribute to extend_su.
6600 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
6601 widening QI/HI multiply.
6602
6603 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
6604
6605 PR tree-optimization/50039
6606 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
6607 that DEF_STMT has a stmt_vec_info.
6608
6609 2011-08-10 Richard Guenther <rguenther@suse.de>
6610
6611 * tree.h (can_trust_pointer_alignment): Remove.
6612 * builtins.c (can_trust_pointer_alignment): Remove.
6613
6614 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6615
6616 * c-typeck.c (scalar_to_vector): New function. Try scalar to
6617 vector conversion.
6618 (stv_conv): New enum for scalar_to_vector return type.
6619 (build_binary_op): Adjust.
6620 * doc/extend.texi: Description of scalar to vector expansion.
6621
6622 2011-08-10 Richard Guenther <rguenther@suse.de>
6623
6624 * tree.h (get_pointer_alignment): Remove max-align argument.
6625 (get_object_alignment): Likewise.
6626 * builtins.c (get_object_alignment_1): Adjust.
6627 (get_object_alignment): Remove max-align argument.
6628 (get_pointer_alignment): Likewise.
6629 (expand_builtin_strlen): Adjust.
6630 (expand_builtin_memcpy): Likewise.
6631 (expand_builtin_mempcpy_args): Likewise.
6632 (expand_builtin_strncpy): Likewise.
6633 (expand_builtin_memset_args): Likewise.
6634 (expand_builtin_memcmp): Likewise.
6635 (expand_builtin_strcmp): Likewise.
6636 (expand_builtin_strncmp): Likewise.
6637 (get_builtin_sync_mem): Likewise.
6638 (fold_builtin_memset): Likewise.
6639 (fold_builtin_memory_op): Likewise.
6640 (expand_builtin_memory_chk): Likewise.
6641 * emit-rtl.c (get_mem_align_offset): Likewise.
6642 (set_mem_attributes_minus_bitpos): Likewise.
6643 * expr.c (expand_assignment): Likewise.
6644 (expand_expr_real_1): Likewise.
6645 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
6646 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6647 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
6648 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6649 * value-prof.c (gimple_stringops_transform): Likewise.
6650
6651 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
6652
6653 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
6654 * doc/tm.texi: Regenerate.
6655
6656 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
6657
6658 PR target/29560
6659 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
6660 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
6661 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
6662 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
6663 shift target is unused.
6664
6665 2011-08-10 Richard Guenther <rguenther@suse.de>
6666
6667 PR tree-optimization/49937
6668 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
6669 using get_object_alignment_1.
6670
6671 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
6672
6673 * config/i386/i386.c (ix86_emit_i387_round): New function.
6674 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
6675 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
6676 Use ix86_emit_i387_round to expand round function for i387 math.
6677 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
6678 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
6679
6680 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6681
6682 * config/sync.c: Move to ../libgcc.
6683 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
6684 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
6685 Remove.
6686
6687 2011-08-09 Anatoly Sokolov <aesok@post.ru>
6688
6689 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
6690 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
6691 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
6692 Change 'from' and 'to' arguments type to reg_class_t.
6693 (TARGET_REGISTER_MOVE_COST): Define.
6694
6695 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
6696
6697 PR target/50026
6698 Revert:
6699 PR rtl-optimization/49990
6700 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6701 ignore classes which can not change mode.
6702 (find_costs_and_classes): Ditto.
6703
6704 2011-08-09 Richard Guenther <rguenther@suse.de>
6705
6706 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
6707 information for ranges with only negative values.
6708 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
6709 BIT_AND_EXPR handling to handle ranges with negative values.
6710
6711 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
6712
6713 * config/i386/i386.c: Remove traling spaces.
6714 * config/i386/sse.md: Likewise.
6715 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
6716 (*fma_fmsub_<mode>): Likewise.
6717 (*fma_fnmadd_<mode>): Likewise.
6718 (*fma_fnmsub_<mode>): Likewise.
6719
6720 2011-08-09 Nick Clifton <nickc@redhat.com>
6721
6722 * config/rx/rx.md: Disable extender peepholes at -O3.
6723
6724 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
6725
6726 PR target/49781
6727 * config/i386/i386.md (reload_noff_load): New.
6728 (reload_noff_store): Ditto.
6729 * config/i386/i386.c (ix86_secondary_reload): Use
6730 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
6731 double-word moves from/to non-offsetable addresses instead of
6732 generating XMM temporary.
6733
6734 2011-08-09 Anatoly Sokolov <aesok@post.ru>
6735
6736 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6737
6738 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
6739
6740 PR tree-optimization/50014
6741 * tree-vect-loop.c (vectorizable_reduction): Get def type before
6742 calling vect_get_vec_def_for_stmt_copy ().
6743
6744 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
6745
6746 PR rtl-optimization/49990
6747 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6748 ignore classes which can not change mode.
6749 (find_costs_and_classes): Ditto.
6750
6751 2011-08-08 Richard Henderson <rth@redhat.com>
6752
6753 PR middle-end/49990
6754 * config/i386/i386.c (ix86_expand_prologue): Call
6755 for SEH target gen_prologue_use instead of gen_blockage
6756 at prologue's end.
6757
6758 2011-08-08 Martin Jambor <mjambor@suse.cz>
6759
6760 PR middle-end/49923
6761 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
6762 memory alignment.
6763
6764 2011-08-08 Diego Novillo <dnovillo@google.com>
6765
6766 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
6767 (DATA_STREAMER_H): New.
6768 (GIMPLE_STREAMER_H): New.
6769 (TREE_STREAMER_H): New.
6770 (STREAMER_HOOKS_H): New.
6771 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
6772 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
6773 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
6774 (data-streamer.o): New.
6775 (data-streamer-in.o): New.
6776 (data-streamer-out.o): New.
6777 (gimple-streamer-in.o): New.
6778 (gimple-streamer-out.o): New.
6779 (streamer-hooks.o): New.
6780 (tree-streamer.o): New.
6781 (tree-streamer-in.o): New.
6782 (tree-streamer-out.o): New.
6783 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6784 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
6785 GIMPLE_STREAMER_H and TREE_STREAMER_H.
6786 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
6787 GIMPLE_STREAMER_H and TREE_STREAMER_H.
6788 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
6789 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6790 (ipa-inline-analysis.o): Likewise.
6791 (ipa-pure-const.o): Likewise.
6792 * data-streamer-in.c: New.
6793 * data-streamer-out.c: New.
6794 * data-streamer.c: New.
6795 * data-streamer.h: New.
6796 * gimple-streamer-in.c: New.
6797 * gimple-streamer-out.c: New.
6798 * gimple-streamer.h: New.
6799 * ipa-inline-analysis.c: Include data-streamer.h.
6800 * ipa-prop.c: Include data-streamer.h.
6801 * ipa-pure-const.c: Include data-streamer.h.
6802 * lto-cgraph.c: Include data-streamer.h.
6803 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
6804 (lto_input_widest_uint_uleb128): Likewise.
6805 (lto_input_sleb128): Likewise.
6806 (bp_unpack_var_len_unsigned): Likewise.
6807 (bp_unpack_var_len_int): Likewise.
6808 * lto-section-out.c (lto_output_uleb128_stream): Move to
6809 data-streamer-out.c.
6810 (lto_output_widest_uint_uleb128_stream): Likewise.
6811 (lto_output_sleb128_stream): Likewise.
6812 (bp_pack_var_len_unsigned): Likewise.
6813 (bp_pack_var_len_int): Likewise.
6814 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
6815 (struct string_slot): Remove. Update all users.
6816 (lto_tag_check_set): Make extern.
6817 (lto_tag_check_range): Move to lto-streamer.h.
6818 (lto_tag_check): Likewise.
6819 (hash_string_slot_node): Remove. Update all users.
6820 (eq_string_slot_node): Remove. Update all users.
6821 (string_for_index): Move to data-streamer-in.c
6822 (input_string_internal): Likewise.
6823 (input_string_cst): Move to tree-streamer-in.c.
6824 (input_identifier): Likewise.
6825 (lto_input_string): Move to data-streamer-in.c
6826 (input_record_start): Move to data-streamer.h
6827 (canon_file_name): Use new definition of struct string_slot
6828 from data-streamer.h. Set S_SLOT.LEN.
6829 (lto_input_location): Make extern.
6830 (lto_input_chain): Move to tree-streamer-in.c.
6831 (lto_init_eh): Make extern.
6832 (input_phi): Move to gimple-streamer-in.c.
6833 (input_gimple_stmt): Likewise.
6834 (input_bb): Likewise.
6835 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
6836 (unpack_ts_real_cst_value_fields): Likewise.
6837 (unpack_ts_fixed_cst_value_fields): Likewise.
6838 (unpack_ts_decl_common_value_fields): Likewise.
6839 (unpack_ts_decl_wrtl_value_fields): Likewise.
6840 (unpack_ts_decl_with_vis_value_fields): Likewise.
6841 (unpack_ts_function_decl_value_fields): Likewise.
6842 (unpack_ts_type_common_value_fields): Likewise.
6843 (unpack_ts_block_value_fields): Likewise.
6844 (unpack_ts_translation_unit_decl_value_fields): Likewise.
6845 (unpack_value_fields): Likewise.
6846 (lto_materialize_tree): Likewise.
6847 (lto_input_ts_common_tree_pointers): Likewise.
6848 (lto_input_ts_vector_tree_pointers): Likewise.
6849 (lto_input_ts_complex_tree_pointers): Likewise.
6850 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
6851 (lto_input_ts_decl_common_tree_pointers): Likewise.
6852 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
6853 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
6854 (lto_input_ts_field_decl_tree_pointers): Likewise.
6855 (lto_input_ts_function_decl_tree_pointers): Likewise.
6856 (lto_input_ts_type_common_tree_pointers): Likewise.
6857 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6858 (lto_input_ts_list_tree_pointers): Likewise.
6859 (lto_input_ts_vec_tree_pointers): Likewise.
6860 (lto_input_ts_exp_tree_pointers): Likewise.
6861 (lto_input_ts_block_tree_pointers): Likewise.
6862 (lto_input_ts_binfo_tree_pointers): Likewise.
6863 (lto_input_ts_constructor_tree_pointers): Likewise.
6864 (lto_input_ts_target_option): Likewise.
6865 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
6866 (lto_input_tree_pointers): Likewise.
6867 (lto_get_pickled_tree): Likewise.
6868 (lto_get_builtin_tree): Likewise.
6869 (lto_read_tree): Likewise.
6870 (lto_input_integer_cst): Likewise.
6871 (lto_input_tree): Likewise.
6872 * lto-streamer-out.c: Include data-streamer.h,
6873 gimple-streamer.h and streamer-hooks.h.
6874 (struct string_slot): Move to data-streamer.h.
6875 (hash_string_slot_node): Likewise.
6876 (eq_string_slot_node): Likewise.
6877 (lto_string_index): Move to data-streamer-out.c.
6878 (lto_output_string_with_length): Likewise.
6879 (lto_output_string): Likewise.
6880 (output_string_cst): Move to tree-streamer-out.c.
6881 (output_identifier): Likewise.
6882 (output_zero): Move to data-streamer-out.c
6883 (output_uleb128): Likewise.
6884 (output_sleb128): Likewise.
6885 (output_record_start): Move to data-streamer.h
6886 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
6887 (pack_ts_real_cst_value_fields): Likewise.
6888 (pack_ts_fixed_cst_value_fields): Likewise.
6889 (pack_ts_decl_common_value_fields): Likewise.
6890 (pack_ts_decl_wrtl_value_fields): Likewise.
6891 (pack_ts_decl_with_vis_value_fields): Likewise.
6892 (pack_ts_function_decl_value_fields): Likewise.
6893 (pack_ts_type_common_value_fields): Likewise.
6894 (pack_ts_block_value_fields): Likewise.
6895 (pack_ts_translation_unit_decl_value_fields): Likewise.
6896 (pack_value_fields): Likewise.
6897 (lto_output_chain): Likewise.
6898 (lto_output_ts_common_tree_pointers): Likewise.
6899 (lto_output_ts_vector_tree_pointers): Likewise.
6900 (lto_output_ts_complex_tree_pointers): Likewise.
6901 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
6902 (lto_output_ts_decl_common_tree_pointers): Likewise.
6903 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
6904 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
6905 (lto_output_ts_field_decl_tree_pointers): Likewise.
6906 (lto_output_ts_function_decl_tree_pointers): Likewise.
6907 (lto_output_ts_type_common_tree_pointers): Likewise.
6908 (lto_output_ts_type_non_common_tree_pointers): Likewise.
6909 (lto_output_ts_list_tree_pointers): Likewise.
6910 (lto_output_ts_vec_tree_pointers): Likewise.
6911 (lto_output_ts_exp_tree_pointers): Likewise.
6912 (lto_output_ts_block_tree_pointers): Likewise.
6913 (lto_output_ts_binfo_tree_pointers): Likewise.
6914 (lto_output_ts_constructor_tree_pointers): Likewise.
6915 (lto_output_ts_target_option): Likewise.
6916 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
6917 (lto_output_tree_pointers): Likewise.
6918 (lto_output_tree_header): Likewise.
6919 (lto_output_builtin_tree): Likewise.
6920 (lto_write_tree): Likewise.
6921 (lto_output_integer_cst): Likewise.
6922 (lto_output_tree): Likewise.
6923 (output_phi): Move to gimple-streamer-out.c.
6924 (output_gimple_stmt): Likewise.
6925 (output_bb): Likewise.
6926 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
6927 (streamer_hooks): Move to streamer-hooks.c.
6928 (check_handled_ts_structures): Move to tree-streamer.c
6929 (lto_streamer_cache_add_to_node_array): Likewise.
6930 (lto_streamer_cache_insert_1): Likewise.
6931 (lto_streamer_cache_insert): Likewise.
6932 (lto_streamer_cache_insert_at): Likewise.
6933 (lto_streamer_cache_append): Likewise.
6934 (lto_streamer_cache_lookup): Likewise.
6935 (lto_streamer_cache_get): Likewise.
6936 (lto_record_common_node): Likewise.
6937 (lto_preload_common_nodes): Likewise.
6938 (lto_streamer_cache_create): Likewise.
6939 (lto_streamer_cache_delete): Likewise.
6940 (streamer_hooks_init): Move to streamer-hooks.c.
6941 * lto-streamer.h: Include diagnostic.h
6942 (struct output_block, struct lto_input_block,
6943 struct data_in, struct bitpack_d): Remove forward declarations.
6944 (struct bitpack_d): Move to data-streamer.h.
6945 (struct lto_streamer_cache_d): Move to tree-streamer.h.
6946 (struct streamer_hooks): Move to streamer-hooks.h.
6947 (bp_pack_var_len_unsigned): Move to data-streamer.h.
6948 (bp_pack_var_len_int): Likewise.
6949 (bp_unpack_var_len_unsigned): Likewise.
6950 (bp_unpack_var_len_int): Likewise.
6951 (lto_input_location): Declare.
6952 (lto_tag_check_set): Declare.
6953 (lto_init_eh): Declare.
6954 (lto_output_tree_ref): Declare.
6955 (lto_output_location): Declare.
6956 (bitpack_create): Move to data-streamer.h.
6957 (bp_pack_value): Likewise.
6958 (lto_output_bitpack): Likewise.
6959 (lto_input_bitpack): Likewise.
6960 (bp_unpack_value): Likewise.
6961 (lto_output_1_stream): Likewise.
6962 (lto_input_1_unsigned): Likewise.
6963 (lto_output_int_in_range): Likewise.
6964 (lto_input_int_in_range): Likewise.
6965 (bp_pack_int_in_range): Likewise.
6966 (bp_unpack_int_in_range): Likewise.
6967 (lto_output_enum): Likewise.
6968 (lto_input_enum): Likewise.
6969 (bp_pack_enum): Likewise.
6970 (bp_unpack_enum): Likewise.
6971 * streamer-hooks.c: New.
6972 * streamer-hooks.h: New.
6973 * tree-streamer-in.c: New.
6974 * tree-streamer-out.c: New.
6975 * tree-streamer.c: New.
6976 * tree-streamer.h: New.
6977
6978 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6979
6980 * gthr-posix95.h: Remove.
6981 * gthr.h [_PTHREADS95]: Remove.
6982 * configure.ac (enable_threads): Remove posix95.
6983 * configure: Regenerate.
6984 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
6985
6986 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
6987
6988 PR target/49781
6989 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
6990 SImode addresses.
6991 (ix86_print_operand_address): Handle zero-extended addresses.
6992 (memory_address_length): Add length of addr32 prefix for
6993 zero-extended addresses.
6994 (ix86_secondary_reload): Handle moves to/from double-word general
6995 registers from/to zero-extended addresses.
6996 * config/i386/predicates.md (lea_address_operand): Reject
6997 zero-extended operands.
6998
6999 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
7000
7001 PR other/48007
7002 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7003
7004 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7005 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7006
7007 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7008 (_Unwind_Context_Reg_Val): Likewise.
7009 (_Unwind_Get_Unwind_Word): Likewise.
7010 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7011 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7012 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7013 for EXTENDED_CONTEXT_BIT.
7014 (__frame_state_for): Likewise.
7015 (uw_init_context_1): Likewise.
7016 (_Unwind_GetGR): Updated.
7017 (_Unwind_SetGR): Likewise.
7018 (_Unwind_GetGRPtr): Likewise.
7019 (_Unwind_SetGRPtr): Likewise.
7020 (_Unwind_SetGRValue): Likewise.
7021 (_Unwind_GRByValue): Likewise.
7022 (uw_install_context_1): Likewise.
7023
7024 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7025 ASSUME_EXTENDED_UNWIND_CONTEXT.
7026 * doc/tm.texi: Regenerated.
7027
7028 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7029
7030 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7031
7032 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7033
7034 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7035 Linux/GNU-specific.
7036 (DEC Alpha Options, -mtune): Likewise.
7037 (MIPS Options, -march): native is supported on IRIX.
7038
7039 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7040
7041 * config/sparc/driver-sparc.c: New file.
7042 * config/sparc/x-sparc: New file.
7043 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7044 * config/sparc/sparc.opt (native): New value for enum processor_type.
7045 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7046 * config/sparc/sparc.c (sparc_option_override): Abort if
7047 PROCESSOR_NATIVE gets here.
7048 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7049 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7050 DRIVER_SELF_SPECS): Define.
7051 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7052 (SPARC Options, -mtune): Likewise.
7053 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7054 Substitute result.
7055 * configure: Regenerate.
7056 * Makefile.in (EXTRA_GCC_LIBS): Set.
7057 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7058 (cpp$(exeext)): Likewise.
7059
7060 2011-08-08 Richard Guenther <rguenther@suse.de>
7061
7062 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7063 split out from ...
7064 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
7065 by composition.
7066
7067 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
7068
7069 PR tree-optimization/50005
7070 * ipa-inline-analysis (remap_predicate): Add cast to
7071 silence signed/unsigned comparison warning.
7072
7073 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7074
7075 * modulo-sched.c (get_sched_window): Use a table for the debug output.
7076 Print the current ii.
7077 (sms_schedule_by_order): Reduce whitespace in dump line.
7078
7079 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7080
7081 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7082 and one loop for successors. Fix upper bound of memory range.
7083
7084 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7085
7086 PR target/50001
7087 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7088 (TARGET_INSTANTIATE_DECLS): New define.
7089
7090 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
7091 Mikael Morin <mikael.morin@sfr.fr>
7092
7093 * Makefile.in (INCLUDES_FOR_TARGET): New.
7094 (LIBGCC2_CFLAGS): Use it.
7095 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7096
7097 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7098
7099 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7100 frame->save_regs_using_mov calculation.
7101
7102 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7103
7104 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7105 * config/i386/sse.md (castmode): New mode attribute.
7106 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7107 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7108
7109 2011-08-05 Jan Hubicka <jh@suse.cz>
7110
7111 PR middle-end/49494
7112 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7113
7114 2011-08-05 Jan Hubicka <jh@suse.cz>
7115
7116 PR middle-end/49500
7117 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7118 handle aliases.
7119 (create_emultls_var):New function.
7120 (ipa_lower_emutls): Handle aliases correctly.
7121
7122 2011-08-05 Jan Hubicka <jh@suse.cz>
7123
7124 PR middle-end/49735
7125 * ipa-inline.c (recursive_inlining): Look through aliases.
7126
7127 2011-08-05 Jason Merrill <jason@redhat.com>
7128
7129 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7130 declarations to beginning of function.
7131
7132 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
7133
7134 PR rtl-optimization/49900
7135 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7136 ensure basic blocks stay in the same order.
7137
7138 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
7139
7140 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7141 store_bit_field.
7142 (s390_expand_atomic): Same.
7143
7144 2011-08-05 Richard Henderson <rth@redhat.com>
7145
7146 PR rtl-opt/49977
7147 * dwarf2cfi.c (scan_insn_after): Split out of ...
7148 (scan_trace): ... here. Correctly place notes wrt sequences.
7149
7150 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
7151 Richard Henderson <rth@redhat.com>
7152
7153 PR rtl-opt/49982
7154 * expr.c (fixup_args_size_notes): Look through no-op moves.
7155
7156 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7157
7158 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7159 of "m" for operand 0. Add type and mode attribute.
7160 (*pushxf_nointeger"): Use "<" constraint for operand 0.
7161 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
7162 constraint instead of "o" for opreand 1.
7163 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
7164 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7165 operand 0, alternative 4.
7166 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7167
7168 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7169
7170 * config/i386/predicates.md (lea_address_operand): Rename from
7171 no_seg_address_operand.
7172 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7173 (*lea_1_zext): Ditto.
7174 (*lea_2): Ditto.
7175 (*lea_2_zext): Ditto.
7176
7177 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7178
7179 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7180 parts.base and parts.index.
7181 * config/i386/predicates.md (aligned_operand): Ditto.
7182 (cmpxchg8b_pic_memory_operand): Ditto.
7183
7184 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7185
7186 * config/soft-fp: Move to ../libgcc.
7187 * Makefile.in (SFP_MACHINE): Remove.
7188 (libgcc-support): Remove $(SFP_MACHINE) dependency.
7189 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7190 * config/arm/t-arm-softfp: Move to
7191 ../libgcc/config/arm/t-softfp.
7192 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7193 * config/c6x/t-c6x-softfp: Remove.
7194 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7195 * config/i386/t-fprules-softfp: Move to
7196 ../libgcc/config/t-softfp-tf.
7197 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7198 * config/ia64/t-fprules-softfp: Remove.
7199 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7200 * config/lm32/t-fprules-softfp: Remove.
7201 * config/moxie/sfp-machine.h: Remove.
7202 * config/moxie/t-moxie-softfp: Remove.
7203 * config/rs6000/darwin-ldouble-format: Move to
7204 ../libgcc/config/rs6000/ibm-ldouble-format.
7205 * config/rs6000/darwin-ldouble.c: Move to
7206 ../libgcc/config/rs6000/ibm-ldouble.c
7207 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7208 * config/rs6000/libgcc-ppc64.ver: Likewise.
7209 * config/rs6000/sfp-machine.h: Likewise.
7210 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7211 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7212 (LIB2FUNCS_EXTRA): Remove.
7213 (TARGET_LIBGCC2_CFLAGS): Remove.
7214 * config/rs6000/t-aix52: Likewise
7215 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7216 $(srcdir)/config/rs6000/darwin-ldouble.c.
7217 (SHLIB_MAPFILES): Remove.
7218 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7219 $(srcdir)/config/rs6000/darwin-ldouble.c.
7220 * config/rs6000/t-fprules-softfp: Move to
7221 ../libgcc/config/t-softfp-sfdf.
7222 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7223 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7224 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7225 $(srcdir)/config/rs6000/darwin-ldouble.c.
7226 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7227 * config/score/t-score-softfp: Remove.
7228 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7229 soft-fp/t-softfp from tmake_file.
7230 (arm*-*-uclinux*): Likewise.
7231 (arm*-*-ecos-elf): Likewise.
7232 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7233 (arm*-*-rtems*): Likewise.
7234 (arm*-*-elf): Likewise.
7235 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7236 tmake_file.
7237 (moxie-*-uclinux*): Likewise.
7238 (moxie-*-rtems*): Likewise.
7239 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7240 tmake_file.
7241 (lm32-*-rtems*): Likewise.
7242 (lm32-*-uclinux*): Likewise.
7243 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7244 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7245 (powerpc-*-linux*, powerpc64-*-linux*): Remove
7246 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7247 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7248 tmake_file.
7249 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7250 tmake_file.
7251 (tic6x-*-uclinux): Likewise.
7252 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7253 soft-fp/t-softfp from tmake_file.
7254 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7255 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7256 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7257 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7258 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7259
7260 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7261
7262 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7263 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7264 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7265 TPBIT, TPBIT_FUNCS.
7266 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7267 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7268 Remove.
7269 * config/arm/t-vxworks: Likewise.
7270 * config/arm/t-wince-pe: Likewise.
7271 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7272 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7273 * config/bfin/t-bfin-elf: Likewise.
7274 * config/bfin/t-bfin-linux: Likewise.
7275 * config/bfin/t-bfin-uclinux: Likewise.
7276 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7277 Remove.
7278 * config/fr30/t-fr30: Likewise.
7279 * config/frv/t-frv: Likewise.
7280 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7281 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7282 * config/m32c/t-m32c: Likewise.
7283 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7284 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7285 * config/mcore/t-mcore: Likewise.
7286 * config/mep/t-mep: Likewise.
7287 * config/microblaze/t-microblaze: Likewise.
7288 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7289 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7290 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7291 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7292 * config/mn10300/t-linux: Remove.
7293 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7294 * config/pdp11/t-pdp11: Likewise.
7295 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7296 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7297 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7298 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7299 * config/rs6000/t-aix52: Likewise.
7300 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7301 $(srcdir)/config/rs6000/ppc64-fp.c.
7302 * config/rs6000/t-fprules-fpbit: Remove.
7303 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7304 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7305 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7306 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7307 * config/sparc/t-elf: Likewise.
7308 * config/sparc/t-leon: Likewise.
7309 * config/sparc/t-leon3: Likewise.
7310 * config/spu/t-spu-elf: Likewise.
7311 (DPBIT_FUNCS): Remove.
7312 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7313 * config/v850/t-v850: Likewise.
7314 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7315 (avr-*-*): Likewise.
7316 (h8300-*-rtems*): Set libgcc_tm_file.
7317 (h8300-*-elf*): Likewise.
7318 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7319 tmake_file.
7320 (powerpc-*-eabisim*): Likewise.
7321 (powerpc-*-elf*): Likewise.
7322 (powerpc-*-eabialtivec*): Likewise.
7323 (powerpc-xilinx-eabi*): Likewise.
7324 (powerpc-*-eabi*): Likewise.
7325 (powerpc-*-rtems*): Likewise.
7326 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7327 (powerpcle-*-elf*): Likewise.
7328 (powerpcle-*-eabisim*): Likewise.
7329 (powerpcle-*-eabi*): Likewise.
7330 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7331 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7332 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7333 Remove.
7334
7335 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7336
7337 * Makefile.in (UNWIND_H): Remove.
7338 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7339 ../libgcc/Makefile.in.
7340 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7341 (LIBUNWINDDEP): Remove.
7342 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7343 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7344 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7345 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7346 Don't copy $(UNWIND_H).
7347 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7348 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7349 * aclocal.m4: Regenerate.
7350 * configure: Regenerate.
7351 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7352 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7353 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7354 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7355 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7356 * config/arm/libunwind.S, config/arm/pr-support.c,
7357 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7358 ../libgcc/config/arm.
7359 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7360 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7361 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7362 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7363 ($(T)frvend$(objext)): Likewise.
7364 * config/ia64/t-glibc (LIB2ADDEH): Remove.
7365 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7366 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7367 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7368 ../libgcc/config/ia64.
7369 * config/ia64/t-hpux (LIB2ADDEH): Remove.
7370 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7371 * config/ia64/t-vms (LIB2ADDEH): Remove.
7372 * config/ia64/vms.h (UNW_IVMS_MODE,
7373 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7374 * config/picochip/t-picochip (LIB2ADDEH): Remove.
7375 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
7376 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
7377 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
7378 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
7379 $(srcdir)/../libgcc to refer to unwinder sources.
7380 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7381 * config/t-darwin (LIB2ADDEH): Remove.
7382 * config/t-freebsd (LIB2ADDEH): Remove.
7383 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7384 * config/t-libunwind-elf: Move to ../libgcc/config.
7385 * config/t-linux (LIB2ADDEH): Remove.
7386 * config/t-sol2 (LIB2ADDEH): Remove.
7387 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7388 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7389
7390 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
7391
7392 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7393
7394 * doc/invoke.texi: Document core-avx-i.
7395
7396 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7397
7398 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7399
7400 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
7401
7402 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7403 result of multiple results reduction when extracting the final
7404 value using scalar code.
7405
7406 2011-08-05 Richard Guenther <rguenther@suse.de>
7407
7408 PR tree-optimization/49984
7409 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7410
7411 2011-08-05 Richard Guenther <rguenther@suse.de>
7412
7413 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7414 return true for constant integer ranges.
7415 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7416 BIT_IOR_EXPR handling.
7417
7418 2011-08-04 Kai Tietz <ktietz@redhat.com>
7419
7420 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7421 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7422
7423 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
7424
7425 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7426 pattern def statement, and its access macro.
7427 (NUM_PATTERNS): Set to 5.
7428 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7429 pattern def statement.
7430 (vect_transform_loop): Likewise.
7431 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7432 function vect_recog_over_widening_pattern ().
7433 (vect_operation_fits_smaller_type): New function.
7434 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7435 Likewise.
7436 (vect_pattern_recog_1): Move the code that marks pattern
7437 statements to vect_mark_pattern_stmts (), and call it. Update
7438 documentation.
7439 * tree-vect-stmts.c (vect_supportable_shift): New function.
7440 (vect_analyze_stmt): Handle pattern def statement.
7441 (new_stmt_vec_info): Initialize pattern def statement.
7442
7443 2011-08-04 Richard Henderson <rth@redhat.com>
7444
7445 PR target/49964
7446 * config/i386/i386.c (ix86_expand_call): Don't create nested
7447 PARALLELs for TARGET_VZEROUPPER.
7448 (ix86_split_call_vzeroupper): Fix extraction of the original call.
7449 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7450 recognize nested PARALLELs.
7451 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7452 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7453 *sibcall_value_pop_vzeroupper): Likewise.
7454
7455 2011-08-04 Richard Henderson <rth@redhat.com>
7456
7457 PR middle-end/49968
7458 * calls.c (expand_call): Use fixup_args_size_notes for
7459 emit_stack_restore.
7460 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7461 in non-standard modes.
7462
7463 2011-08-04 Jakub Jelinek <jakub@redhat.com>
7464
7465 * gcc.c (self_spec): New variable.
7466 (static_specs): Add self_spec.
7467 (main): Call do_self_spec on "self_spec" specs after reading
7468 user specs files. Move compare_debug handling right after that.
7469
7470 2011-08-04 Richard Guenther <rguenther@suse.de>
7471
7472 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7473 (value_range_nonnegative_p): New function.
7474 (ssa_name_nonnegative_p): Use it.
7475 (value_range_constant_singleton): New function.
7476 (op_with_constant_singleton_value_range): Use it.
7477 (extract_range_from_binary_expr_1): New function, split out from ...
7478 (extract_range_from_binary_expr): ... this. Remove fallback
7479 constant folding done here.
7480
7481 2011-08-04 Richard Guenther <rguenther@suse.de>
7482
7483 PR tree-optimization/49806
7484 * tree-vrp.c (op_with_boolean_value_range_p): New function.
7485 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
7486 a new statement for a final conversion to bool.
7487
7488 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
7489
7490 * gengtype-state.c: Include "bconfig.h" if
7491 GENERATOR_FILE is defined, "config.h" otherwise.
7492 * gengtype.c: Likewise.
7493 * gengtype-lex.l: Likewise.
7494 * gengtype-parse.c: Likewise.
7495 * Makefile.in (gengtype-lex.o-warn): New variable.
7496 (plugin_resourcesdir): Likewise.
7497 (plugin_bindir): Likewise.
7498 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7499 (MOSTLYCLEANFILES): Add gengtype$(exeext).
7500 (native): Depend on gengtype$(exeext) is $enable_plugin
7501 is set to "yes".
7502 (gtype.state): Depend on s-gtype. Use temporary file.
7503 (gengtype-lex.o): New rule.
7504 (gengtype-parse.o): Likewise.
7505 (gengtype-state.o): Likewise.
7506 (gengtype$(exeext)): Likewise.
7507 (install-gengtype): Likewise.
7508 (gengtype.o): Likewise.
7509 (build/gengtype.o): Depend on version.h.
7510 (build/gengtype-state): Depend on double-int.h, version.h,
7511 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7512 (install-plugin): Depend on install-gengtype.
7513
7514 2011-08-04 Jakub Jelinek <jakub@redhat.com>
7515
7516 PR middle-end/49905
7517 * tree.h (init_attributes): New prototype.
7518 * attribs.c (init_attributes): No longer static.
7519
7520 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7521
7522 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7523 maybe_suffix.
7524
7525 2011-08-03 David Li <davidxl@google.com>
7526
7527 * tree-optimize.c (execute_fixup_cfg): Fix up entry
7528 outgoing edge counts after inlining.
7529
7530 2011-08-03 David Li <davidxl@google.com>
7531
7532 * profile.c (compute_branch_probabilities): Compute
7533 function frequency after profile annotation.
7534
7535 2011-08-04 Alan Modra <amodra@gmail.com>
7536
7537 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7538 use_backchain_to_restore_sp initialisation.
7539 (rs6000_legitimate_offset_address_p): Simplify offset test.
7540
7541 2011-08-03 Richard Henderson <rth@redhat.com>
7542
7543 * config/spu/spu.md: Use define_c_enum instead of define_constants.
7544 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7545 (UNSPECV_NOP): New.
7546
7547 2011-08-03 Richard Henderson <rth@redhat.com>
7548
7549 PR target/34888
7550 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7551
7552 2011-08-03 Jakub Jelinek <jakub@redhat.com>
7553
7554 PR tree-optimization/49948
7555 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7556
7557 2011-08-03 Anatoly Sokolov <aesok@post.ru>
7558
7559 * config/m32c/m32c.c (class_sizes): Remove.
7560 (reduce_class): Change arguments and return type to reg_class_t.
7561 Change type cc var to HARD_REG_SET. Change type best var to
7562 reg_class_t. Change type best_size var to unsigned int. Remove
7563 initialization class_sizes var. Use reg_class_size array instead
7564 of class_sizes. Use reg_class_contents array instead
7565 of class_contents.
7566
7567 2011-08-03 Richard Guenther <rguenther@suse.de>
7568
7569 PR middle-end/49958
7570 * fold-const.c (fold_binary_loc): Only associate
7571 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
7572 overflow wraps.
7573
7574 2011-08-03 Alan Modra <amodra@gmail.com>
7575
7576 PR rtl-optimization/49941
7577 * jump.c (mark_jump_label): Comment.
7578 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
7579 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
7580 (mark_used_flags): Don't mark RETURN.
7581
7582 2011-08-03 Richard Guenther <rguenther@suse.de>
7583
7584 PR tree-optimization/49938
7585 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
7586 deal with a POLYNOMIAL_CHREC.
7587
7588 2011-08-03 Revital Eres <revital.eres@linaro.org>
7589
7590 * modulo-sched.c (calculate_stage_count,
7591 calculate_must_precede_follow, get_sched_window,
7592 try_scheduling_node_in_cycle, remove_node_from_ps): Add
7593 declaration.
7594 (update_node_sched_params, set_must_precede_follow, optimize_sc):
7595 New functions.
7596 (reset_sched_times): Call update_node_sched_params.
7597 (sms_schedule): Call optimize_sc.
7598 (get_sched_window): Change function arguments.
7599 (sms_schedule_by_order): Update call to get_sched_window.
7600 Call set_must_precede_follow.
7601 (calculate_stage_count): Add function argument.
7602
7603 2011-08-02 Richard Henderson <rth@redhat.com>
7604
7605 PR target/49864
7606 PR target/49879
7607 * reg-notes.def (REG_ARGS_SIZE): New.
7608 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
7609 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
7610 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
7611 different stack levels.
7612 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
7613 (maybe_move_args_size_note): New.
7614 (combine_stack_adjustments_for_block): Use it.
7615 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
7616 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
7617 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
7618 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
7619 (cur_cfa): New.
7620 (queued_args_size): Remove.
7621 (add_cfi_args_size): Assert size is non-negative.
7622 (stack_adjust_offset, dwarf2out_args_size): Remove.
7623 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
7624 (notice_args_size, notice_eh_throw): New.
7625 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
7626 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7627 (dwarf2out_frame_debug_cfa_offset): Likewise.
7628 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
7629 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
7630 (change_cfi_row): Don't emit args_size.
7631 (maybe_record_trace_start_abnormal): Split out from ...
7632 (maybe_record_trace_start): Here. Set args_size_undefined.
7633 (create_trace_edges): Update to match.
7634 (scan_trace): Handle REG_ARGS_SIZE.
7635 (connect_traces): Connect args_size between EH insns.
7636 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
7637 * explow.c (suppress_reg_args_size): New.
7638 (adjust_stack_1): Split out from ...
7639 (adjust_stack): ... here.
7640 (anti_adjust_stack): Use it.
7641 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
7642 * expr.c (mem_autoinc_base): New.
7643 (fixup_args_size_notes): New.
7644 (emit_single_push_insn_1): Rename from emit_single_push_insn.
7645 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
7646 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
7647 * reload1.c (reload_as_needed): Likewise.
7648 * rtl.h (fixup_args_size_notes): Declare.
7649
7650 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
7651
7652 PR bootstrap/49914
7653 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
7654 of abs.
7655 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
7656 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
7657
7658 2011-08-02 Richard Henderson <rth@redhat.com>
7659
7660 * config/h8300/h8300.c (push, pop): Return the insn.
7661 (h8300_swap_into_er6): Generate correct unwind info.
7662 (h8300_swap_out_of_er6): Likewise.
7663 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
7664 complex cfa expression.
7665 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
7666
7667 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
7668
7669 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7670
7671 2011-08-02 Richard Henderson <rth@redhat.com>
7672
7673 PR target/49878
7674 * config/h8300/h8300.c (h8300_move_ok): New.
7675 * config/h8300/h8300-protos.h: Declare it.
7676 * config/h8300/h8300.md (P): New mode iterator.
7677 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
7678 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
7679 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
7680 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
7681 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
7682 and pushqi1_h8300hs_normal; use PRE_MODIFY and
7683 register_no_sp_elim_operand.
7684 (*pushhi1_h8300hs_<P>): Similarly.
7685 (pushqi1, pushhi1, pushhi1_h8300): Remove.
7686 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
7687
7688 2011-08-02 Richard Henderson <rth@redhat.com>
7689
7690 PR target/49881
7691 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
7692
7693 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7694
7695 * c-parser.c (enum c_parser_prec): New enum, moved from within
7696 c_parser_binary_expression.
7697 (c_parser_binary_expression): Add PREC argument. Stop parsing
7698 if operator has lower or equal precedence than PREC.
7699 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
7700 callers.
7701 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
7702 Adjust c_finish_omp_atomic caller.
7703 (c_parser_omp_taskyield): New function.
7704 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
7705 (c_parser_omp_clause_name): Handle final and mergeable clauses.
7706 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
7707 functions.
7708 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
7709 and PRAGMA_OMP_CLAUSE_MERGEABLE.
7710 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
7711 (c_parser_omp_clause_reduction): Handle min and max.
7712 * c-typeck.c (c_finish_omp_clauses): Don't complain about
7713 const qualified predetermined vars in firstprivate clause.
7714 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7715 Handle MIN_EXPR and MAX_EXPR.
7716 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
7717 and OMP_CLAUSE_MERGEABLE.
7718 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
7719 and OMP_ATOMIC_CAPTURE_NEW.
7720 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
7721 OMP_CLAUSE_MERGEABLE.
7722 (omp_clause_code_name): Likewise.
7723 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7724 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
7725 and OMP_CLAUSE_MERGEABLE.
7726 (OMP_CLAUSE_FINAL_EXPR): Define.
7727 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
7728 OMP_CLAUSE_MERGEABLE.
7729 (expand_task_call): Likewise.
7730 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
7731 (expand_omp_atomic_fetch_op): Handle cases where old or new
7732 value is needed afterwards.
7733 (expand_omp_atomic): Call expand_omp_atomic_load resp.
7734 expand_omp_atomic_store.
7735 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
7736 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
7737 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
7738 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7739 * tree-nested.c (convert_nonlocal_omp_clauses,
7740 convert_local_omp_clauses): Likewise.
7741 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
7742 OMP_ATOMIC_CAPTURE_NEW): New.
7743 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
7744 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
7745 New inlines.
7746 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
7747 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
7748 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7749
7750 2011-08-02 Kai Tietz <ktietz@redhat.com>
7751
7752 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
7753 boolean-type.
7754 (ssa_forward_propagate_and_combine): Interprete result of
7755 forward_propagate_comparison.
7756 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
7757 boolean-typed operands for comparisons.
7758
7759 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
7760
7761 * config/avr/libgcc.S: Gather related function in the
7762 same input section.
7763 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7764 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
7765 references.
7766 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
7767 __udivmodsi4, __divmodsi4, __prologue_saves__,
7768 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
7769 __do_copy_data, __do_clear_bss, __do_global_ctors,
7770 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
7771
7772 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
7773
7774 PR target/47766
7775 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
7776 (stack_protect_test): The pattern compares ptr_mode value.
7777
7778 2011-08-02 Alan Modra <amodra@gmail.com>
7779
7780 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
7781 note for save_LR_around_toc_setup sequence.
7782
7783 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
7784
7785 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
7786
7787 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
7788 Joseph Myers <joseph@codesourcery.com>
7789
7790 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
7791 * hwint.c: Include diagnostic-core.h.
7792 (abs_hwi): New.
7793 (gcd): Moved here...
7794 (pos_mul_hwi): New.
7795 (mul_hwi): New.
7796 (least_common_multiple): Moved here...
7797 * hwint.h (gcd): ... from here.
7798 (least_common_multiple): ... from here.
7799 (HOST_WIDE_INT_MIN): New.
7800 (HOST_WIDE_INT_MAX): New.
7801 (abs_hwi): Declared.
7802 (gcd): Declared.
7803 (pos_mul_hwi): Declared.
7804 (mul_hwi): Declared.
7805 (least_common_multiple): Declared.
7806 * omega.c (check_pos_mul): Removed.
7807 (check_mul): Removed.
7808 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
7809 mul_hwi instead of check_mul.
7810
7811 2011-08-01 Richard Henderson <rth@redhat.com>
7812
7813 PR target/49881
7814 * config/avr/avr.h (PUSH_ROUNDING): New.
7815 * config/avr/avr.md (pushqi1): Rename from *pushqi.
7816 (*pushhi, *pushsi, *pushsf): Remove.
7817 (MPUSH): New mode iterator.
7818 (push<MPUSH>1): New expander.
7819
7820 2011-08-01 Anatoly Sokolov <aesok@post.ru>
7821
7822 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
7823 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
7824 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
7825 mmix_preferred_output_reload_class): Remove.
7826 * config/mmix/mmix.c (mmix_preferred_reload_class,
7827 mmix_preferred_output_reload_class): Make static. Change rclass
7828 argument and return type to reg_class_t.
7829 (TARGET_PREFERRED_RELOAD_CLASS,
7830 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7831
7832 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
7833
7834 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
7835 handling.
7836
7837 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
7838
7839 PR target/47766
7840 * config/i386/i386.md (PTR): New.
7841 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
7842 (stack_protect_test): Likewise.
7843 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
7844 (stack_tls_protect_set_<mode>): Likewise.
7845 (stack_tls_protect_test_<mode>): Likewise.
7846
7847 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
7848
7849 PR target/49927
7850 * config/i386/i386.c (ix86_address_subreg_operand): New.
7851 (ix86_decompose_address): Use ix86_address_subreg_operand.
7852 (ix86_legitimate_address_p): Do not assert that subregs satisfy
7853 register_no_elim_operand in DImode.
7854
7855 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
7856
7857 PR tree-optimization/49926
7858 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
7859 in a chain doesn't have uses both inside and outside the loop.
7860
7861 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
7862
7863 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
7864 * config/avr/avr-devices.c (avr_mcu_types): Use it.
7865 * config/avr/avr-mcus.def (AVR_MCU): Use it.
7866 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
7867 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
7868 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
7869 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
7870 to detect if XJMP must not be skipped.
7871
7872 2011-08-02 Alan Modra <amodra@gmail.com>
7873
7874 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
7875 Delete.
7876 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
7877 (rs6000_emit_prologue): Don't prematurely return when
7878 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
7879 save_toc_in_prologue case.
7880 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
7881 calls_alloca.
7882
7883 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
7884
7885 * config/avr/avr-devices.c: Delete SVN property svn:executable.
7886 * config/avr/predicates.md: Ditto.
7887 * config/avr/driver-avr.c: Ditto.
7888 * config/avr/genopt.sh: Set SVN property svn:executable to *.
7889
7890 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
7891
7892 * calls.c (emit_library_call_value_1): Declare size only if
7893 BLOCK_REG_PADDING is defined.
7894
7895 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
7896
7897 PR target/49547
7898 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
7899 (x86_64-*-*): Likewise.
7900 * config/i386/i386.opt (mlzcnt): New.
7901 * config/i386/abmintrin.h: File removed.
7902 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
7903 * config/i386/lzcntintrin.h: ... here. New file.
7904 (__lzcnt): Rename to ...
7905 (__lzcnt32): ... this.
7906 * config/i386/bmiintrin.h (head): Update copyright year.
7907 (__lzcnt_u16): Removed.
7908 (__lzcnt_u32): Likewise.
7909 (__lzcnt_u64): Likewise.
7910 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
7911 is defined, remove abmintrin.h.
7912 * config/i386/cpuid.h (bit_LZCNT): New.
7913 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7914 LZCNT feature.
7915 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7916 __LZCNT__ if needed.
7917 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
7918 (ix86_option_override_internal): Handle LZCNT option.
7919 (ix86_valid_target_attribute_inner_p): Likewise.
7920 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
7921 * config/i386/i386.h (TARGET_LZCNT): New.
7922 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
7923 * config/i386/i386.md (clz<mode>2): Update insn constraint.
7924 (clz<mode>2_lzcnt): Likewise.
7925 * doc/invoke.texi: Mention -mlzcnt option.
7926 * doc/extend.texi: Likewise.
7927
7928 2011-08-01 Julian Brown <julian@codesourcery.com>
7929
7930 * configure.ac (fixed-point): Add ARM support.
7931 * configure: Regenerate.
7932 * config/arm/arm.c (arm_fixed_mode_set): New struct.
7933 (arm_set_fixed_optab_libfunc): New.
7934 (arm_set_fixed_conv_libfunc): New.
7935 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
7936 ARM-specific names.
7937 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
7938 return values in SImode.
7939 (arm_return_in_msb): Return fixed-point types in the msb.
7940 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
7941 upwards.
7942 (arm_scalar_mode_supported_p): Support fixed-point modes.
7943 (arm_vector_mode_supported_p): Support vector fixed-point modes.
7944 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
7945 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
7946 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
7947 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
7948 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
7949 New mode iterators.
7950 (qaddsub_suf): New mode attribute.
7951 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
7952 vector modes.
7953 * config/arm/predicates.md (sat_shift_operator): New predicate.
7954 * config/arm/arm-fixed.md: New.
7955 * config/arm/arm.md: Include arm-fixed.md.
7956 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
7957
7958 2011-08-01 Julian Brown <julian@codesourcery.com>
7959
7960 * calls.c (emit_library_call_value_1): Support padding for libcall
7961 arguments and return values.
7962 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
7963 downwards in big-endian mode.
7964
7965 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7966
7967 PR debug/49887
7968 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
7969 * config/sol2-protos.h: Likewise.
7970 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
7971 solaris_code_end.
7972 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
7973 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
7974 solaris_file_end.
7975 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
7976
7977 2011-08-01 Julian Brown <julian@codesourcery.com>
7978
7979 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
7980
7981 2011-08-01 Julian Brown <julian@codesourcery.com>
7982
7983 * final.c (output_addr_const): Print fixed-point constants as
7984 decimal not hex.
7985
7986 2011-08-01 Richard Guenther <rguenther@suse.de>
7987
7988 * stor-layout.c (initialize_sizetypes): Properly sign-extend
7989 bitsiztype TYPE_MAX_VALUE.
7990
7991 2011-08-01 Julian Brown <julian@codesourcery.com>
7992
7993 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
7994 comparison helpers.
7995
7996 2011-07-31 Richard Henderson <rth@redhat.com>
7997
7998 * config/h8300/crti.asm: Add flags to .section directive.
7999 * config/h8300/crtn.asm: Likewise.
8000
8001 2011-07-31 Richard Henderson <rth@redhat.com>
8002
8003 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8004 * tree.c (build_common_tree_nodes): Likewise.
8005
8006 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8007
8008 PR target/49880
8009 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8010 (divsi3_i1): Likewise.
8011
8012 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8013
8014 PR tree-optimization/49749
8015 * tree-ssa-reassoc.c (get_rank): New forward declaration.
8016 (PHI_LOOP_BIAS): New macro.
8017 (phi_rank): New function.
8018 (loop_carried_phi): Likewise.
8019 (propagate_rank): Likewise.
8020 (get_rank): Add calls to phi_rank and propagate_rank.
8021
8022 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
8023
8024 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8025 of TARGET_64BIT.
8026 (PTRDIFF_TYPE): Likewise.
8027
8028 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
8029
8030 PR target/49920
8031 * config/i386/i386.md (strset): Do not expand strset_singleop
8032 when %eax or $edi are fixed.
8033 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8034 (*strsetsi_1): Ditto.
8035 (*strsethi_1): Ditto.
8036 (*strsetqi_1): Ditto.
8037 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8038 (*rep_stossi): Ditto.
8039 (*rep_stosqi): Ditto.
8040 (*strlenqi_1): Ditto.
8041 (cmpstrnsi): Also fail when %ecx is fixed.
8042 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8043 (*cmpstrnqi_1): Ditto.
8044 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8045 (*strmovsi_1): Ditto.
8046 (*strmovhi_1): Ditto.
8047 (*strmovqi_1): Ditto.
8048 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8049 (*rep_movsi): Ditto.
8050 (*rep_movqi): Ditto.
8051
8052 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
8053
8054 PR target/47908
8055 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8056 Disable instruction scheduling for non-ColdFire targets.
8057 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8058
8059 2011-07-31 Revital Eres <revital.eres@linaro.org>
8060
8061 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8062 of anti-dep edge from a branch.
8063 (add_cross_iteration_register_deps): Create anti-dep edge from
8064 a branch.
8065
8066 2011-07-31 Revital Eres <revital.eres@linaro.org>
8067
8068 * modulo-sched.c: Change comment.
8069 (reset_sched_times): Fix print message.
8070 (print_partial_schedule): Add print info.
8071
8072 2011-07-31 Tom de Vries <tom@codesourcery.com>
8073
8074 PR middle-end/43513
8075 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8076 get_object_alignment and TYPE_ALIGN.
8077
8078 2011-07-30 Tom de Vries <tom@codesourcery.com>
8079
8080 PR middle-end/43513
8081 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8082 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8083
8084 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8085
8086 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8087 <sys/sbd.h>.
8088 (cpu_types): New array.
8089 (cputype): New function.
8090 (host_detect_local_cpu): Only define buf, f if !__sgi__.
8091 Use scaninvent instead of /proc/cpuinfo if __sgi__.
8092 * config.host: Also use driver-native.o, mips/x-native on
8093 mips-sgi-irix*.
8094 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8095 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8096 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8097
8098 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8099
8100 PR middle-end/49897
8101 PR middle-end/49898
8102 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8103 in nested parallel and outer is a gimple_reg, mark it as addressable
8104 and set its bit in task_shared_vars bitmap too.
8105
8106 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8107
8108 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8109
8110 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8111
8112 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8113 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8114 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8115 AMASK_LOCKPFTCHOK): Define.
8116 (host_detect_local_cpu): Remove buf, f, cpu_names.
8117 Define cpu_types, implver, amask.
8118 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8119 native CPU.
8120 * config.host: Also use driver-alpha.o, alpha/x-alpha on
8121 alpha*-dec-osf*.
8122 * config/alpha/osf5.h [__alpha__ || __alpha]
8123 (host_detect_local_cpu): Declare.
8124 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8125 (DRIVER_SELF_SPECS): Define.
8126
8127 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8128
8129 PR target/47715
8130 * config/i386/i386.md (*load_tp_x32): New.
8131 (*load_tp_x32_zext): Ditto.
8132 (*add_tp_x32): Ditto.
8133 (*add_tp_x32_zext): Ditto.
8134 (*load_tp_<mode>): Disable for TARGET_X32 targets.
8135 (*add_tp_<mode>): Ditto.
8136 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8137 ptr_mode and convert to Pmode if needed.
8138
8139 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8140
8141 PR target/49687
8142 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8143 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8144 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8145 Add X to register footprint: Clobber r26/r27.
8146
8147 2011-07-29 Richard Guenther <rguenther@suse.de>
8148
8149 * builtins.c (fold_builtin_signbit): Build the comparison
8150 with a proper type.
8151
8152 2011-07-29 Richard Guenther <rguenther@suse.de>
8153
8154 PR tree-optimization/49893
8155 * tree-predcom.c (suitable_reference_p): Volatile references
8156 are not suitable.
8157
8158 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8159
8160 PR target/49313
8161 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8162 (__ctzsi2): Result for 0 may be undefined.
8163 (__ctzhi2): Result for 0 may be undefined.
8164 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8165 (__popcountsi2): Ditto. And don't clobber r26.
8166 (__popcountdi2): Ditto. And don't clobber r27.
8167 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8168 (parityhi2): New expand.
8169 (paritysi2): New expand.
8170 (popcounthi2): New expand.
8171 (popcountsi2): New expand.
8172 (clzhi2): New expand.
8173 (clzsi2): New expand.
8174 (ctzhi2): New expand.
8175 (ctzsi2): New expand.
8176 (ffshi2): New expand.
8177 (ffssi2): New expand.
8178 (copysignsf3): New insn.
8179 (bswapsi2): New expand.
8180 (*parityhi2.libgcc): New insn.
8181 (*parityqihi2.libgcc): New insn.
8182 (*paritysihi2.libgcc): New insn.
8183 (*popcounthi2.libgcc): New insn.
8184 (*popcountsi2.libgcc): New insn.
8185 (*popcountqi2.libgcc): New insn.
8186 (*popcountqihi2.libgcc): New insn-and-split.
8187 (*clzhi2.libgcc): New insn.
8188 (*clzsihi2.libgcc): New insn.
8189 (*ctzhi2.libgcc): New insn.
8190 (*ctzsihi2.libgcc): New insn.
8191 (*ffshi2.libgcc): New insn.
8192 (*ffssihi2.libgcc): New insn.
8193 (*bswapsi2.libgcc): New insn.
8194
8195 2011-07-29 Richard Guenther <rguenther@suse.de>
8196
8197 * tree-vrp.c (get_value_range): Only set parameter default
8198 definitions to varying, leave others at undefined.
8199 (extract_range_from_binary_expr): Fix undefined handling.
8200 (vrp_visit_phi_node): Handle merged undefined state.
8201
8202 2011-07-29 Wei Guozhi <carrot@google.com>
8203
8204 PR rtl-optimization/49799
8205 * combine.c (make_compound_operation): Check if the bit field is valid
8206 before change it to bit field extraction.
8207
8208 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
8209
8210 PR rtl-optimization/49891
8211 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8212 newly created returnjumps.
8213
8214 2011-07-28 DJ Delorie <dj@redhat.com>
8215
8216 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8217 local frame in a naked function, and produce a suitable error for
8218 that specific case.
8219
8220 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8221 registers to be reloaded in HI classes when the target is HI.
8222
8223 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8224
8225 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8226 bound_one, bound_two.
8227
8228 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8229
8230 PR middle-end/48648
8231 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8232 CLAST assignments.
8233 (translate_clast): Same.
8234 (translate_clast_assignment): New.
8235
8236 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8237
8238 PR tree-optimization/49876
8239 * sese.c (rename_uses): Do not return false on gloog_error: set
8240 the new_expr to integer_zero_node and continue code generation.
8241 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8242
8243 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8244
8245 PR debug/49846
8246 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8247 arguments also check if they aren't initialized with a MODE_INT
8248 mode of the same size.
8249
8250 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
8251
8252 * expr.c (get_bit_range): Handle *MEM_REF's.
8253
8254 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
8255
8256 * rtlanal.c (tablejump_p): False for returns.
8257 * reorg.c (first_active_target_insn): New static function.
8258 (find_end_label): Set JUMP_LABEL for a new returnjump.
8259 (optimize_skip, get_jump_flags, rare_destination,
8260 mostly_true_jump, get_branch_condition,
8261 steal_delay_list_from_target, own_thread_p,
8262 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8263 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8264 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8265 * jump.c (delete_related_insns): Likewise.
8266 (jump_to_label_p): New function.
8267 (redirect_target): New static function.
8268 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
8269 (redirect_jump_1): Assert that the new label is nonnull.
8270 (redirect_jump): Likewise.
8271 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8272 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8273 exit block.
8274 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
8275 changed. Ensure that the right label is passed to redirect_jump.
8276 * function.c (emit_return_into_block,
8277 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8278 ret_rtx in their JUMP_LABEL.
8279 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8280 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8281 pass ret_rtx as label.
8282 * cfglayout.c (fixup_reorder_chain): Use
8283 force_nonfallthru_and_redirect rather than force_nonfallthru.
8284 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8285 * rtl.h (ANY_RETURN_P): New macro.
8286 (jump_to_label_p): Declare.
8287 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8288 JUMP_LABELs.
8289 (mark_target_live_regs): Likewise.
8290 * basic-block.h (force_nonfallthru_and_redirect): Declare.
8291 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8292 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8293 alpha_tablejump_best_label): Remove functions.
8294 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8295 alpha_tablejump_best_label): Remove declarations.
8296 * config/sh/sh.c (barrier_align, split_branches): Adjust for
8297 ret_rtx in JUMP_LABELs.
8298 * config/arm/arm.c (is_jump_table): Likewise.
8299
8300 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8301
8302 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8303 special predicate. Remove explicit mode checks.
8304
8305 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8306
8307 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8308 DW_AT_data_member_location containing just DW_OP_plus_uconst.
8309
8310 PR debug/49871
8311 * dwarf2out.c (size_of_die, value_format, output_die): Use
8312 DW_FORM_udata instead of DW_FORM_data[48] for
8313 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8314
8315 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8316
8317 * config/i386/i386.md (*tls_global_dynamic_64): Update
8318 length attribute.
8319
8320 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8321
8322 PR target/47715
8323 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8324 tls_symbolic_operand check. Update code sequence for TARGET_X32.
8325 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8326 (tls_dynamic_gnu2_64): Ditto.
8327 (*tls_dynamic_gnu2_lea_64): Ditto.
8328 (*tls_dynamic_gnu2_call_64): Ditto.
8329 (*tls_dynamic_gnu2_combine_64): Ditto.
8330
8331 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8332
8333 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8334
8335 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8336
8337 PR target/47364
8338 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8339
8340 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8341
8342 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8343 before the core constraints. Adjust attributes.
8344 ("*thumb2_movdf_vfp"): Likewise.
8345
8346 2011-07-28 Kai Tietz <ktietz@redhat.com>
8347
8348 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8349 (simplify_truth_ops_using_ranges): Likewise.
8350 (build_assert_expr_for): Likewise.
8351 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8352 and handle BIT_NOT_EXPR for truth-operation.
8353
8354 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
8355
8356 PR target/49313
8357 Undo r176835 from trunk
8358 2011-07-27 Georg-Johann Lay
8359
8360 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
8361
8362 PR target/49687
8363 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8364 Add _muluhisi3, _mulshisi3, _usmulhisi3.
8365 * config/avr/libgcc.S (__mulsi3): Rewrite.
8366 (__mulhisi3): Rewrite.
8367 (__umulhisi3): Rewrite.
8368 (__usmulhisi3): New.
8369 (__muluhisi3): New.
8370 (__mulshisi3): New.
8371 (__mulohisi3): New.
8372 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8373 declare.
8374 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
8375 (pseudo_register_or_const_int_operand): New.
8376 (combine_pseudo_register_operand): New.
8377 (u16_operand): New.
8378 (s16_operand): New.
8379 (o16_operand): New.
8380 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8381 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8382 (any_extend, any_extend2): New code iterators.
8383 (extend_prefix): New code attribute.
8384 (mulsi3): Rewrite. Turn insn to expander.
8385 (mulhisi3): Ditto.
8386 (umulhisi3): Ditto.
8387 (usmulhisi3): New expander.
8388 (*mulsi3): New insn-and-split.
8389 (mulu<mode>si3): New insn-and-split.
8390 (muls<mode>si3): New insn-and-split.
8391 (mulohisi3): New insn-and-split.
8392 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8393 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8394 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8395 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8396 insn-and-split.
8397 (*mulsi3_call): Rewrite.
8398 (*mulhisi3_call): Rewrite.
8399 (*umulhisi3_call): Rewrite.
8400 (*usmulhisi3_call): New insn.
8401 (*muluhisi3_call): New insn.
8402 (*mulshisi3_call): New insn.
8403 (*mulohisi3_call): New insn.
8404 (extendqihi2): Use combine_pseudo_register_operand as predicate
8405 for operand 1.
8406 (extendqisi2): Ditto.
8407 (zero_extendqihi2): Ditto.
8408 (zero_extendqisi2): Ditto.
8409 (zero_extendhisi2): Ditto.
8410 (extendhisi2): Ditto. Don't early-clobber operand 0.
8411
8412 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8413
8414 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8415
8416 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
8417
8418 PR tree-optimization/49471
8419 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8420 iv only when the largest type is unsigned. Do not call
8421 lang_hooks.types.type_for_size.
8422
8423 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
8424
8425 PR middle-end/45450
8426 * graphite-poly.c (apply_poly_transforms): Disable legality check
8427 after an openscop read.
8428
8429 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
8430
8431 PR middle-end/47691
8432 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8433 copy_bb_and_scalar_dependences.
8434 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
8435 (graphite_copy_stmts_from_block): Update call to rename_uses.
8436 (copy_bb_and_scalar_dependences): Update call to
8437 graphite_copy_stmts_from_block.
8438 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8439
8440 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
8441
8442 PR target/49313
8443 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8444 (__ctzsi2): Result for 0 may be undefined.
8445 (__ctzhi2): Result for 0 may be undefined.
8446 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8447 (__popcountsi2): Ditto. And don't clobber r26.
8448 (__popcountdi2): Ditto. And don't clobber r27.
8449 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8450 (parityhi2): New expand.
8451 (paritysi2): New expand.
8452 (popcounthi2): New expand.
8453 (popcountsi2): New expand.
8454 (clzhi2): New expand.
8455 (clzsi2): New expand.
8456 (ctzhi2): New expand.
8457 (ctzsi2): New expand.
8458 (ffshi2): New expand.
8459 (ffssi2): New expand.
8460 (copysignsf3): New insn.
8461 (bswapsi2): New expand.
8462 (*parityhi2.libgcc): New insn.
8463 (*parityqihi2.libgcc): New insn.
8464 (*paritysihi2.libgcc): New insn.
8465 (*popcounthi2.libgcc): New insn.
8466 (*popcountsi2.libgcc): New insn.
8467 (*popcountqi2.libgcc): New insn.
8468 (*popcountqihi2.libgcc): New insn-and-split.
8469 (*clzhi2.libgcc): New insn.
8470 (*clzsihi2.libgcc): New insn.
8471 (*ctzhi2.libgcc): New insn.
8472 (*ctzsihi2.libgcc): New insn.
8473 (*ffshi2.libgcc): New insn.
8474 (*ffssihi2.libgcc): New insn.
8475 (*bswapsi2.libgcc): New insn.
8476
8477 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
8478
8479 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8480 the mode of symbolic_opreand RTXes.
8481
8482 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
8483
8484 * config/i386/predicates.md (x86_64_movabs_operand): Return false
8485 for pic_32bit_operand RTXes.
8486 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8487 in DImode.
8488
8489 2011-07-27 Kai Tietz <ktietz@redhat.com>
8490
8491 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8492 for 32-bit, too.
8493 (ix86_handle_abi_attribute): Allow function attributes
8494 ms_abi/sysv_abi in 32-bit mode, too.
8495 * doc/extend.texi: Adjust attribute documentation.
8496
8497 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8498 expression handling.
8499 (and_var_with_comparison_1): Likewise.
8500
8501 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
8502
8503 * params.h (ALLOW_STORE_DATA_RACES): New.
8504 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8505 * Makefile.in (expr.o): Depend on PARAMS_H.
8506 * machmode.h (get_best_mode): Add argument.
8507 * fold-const.c (optimize_bit_field_compare): Add argument to
8508 get_best_mode.
8509 (fold_truthop): Same.
8510 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8511 * expr.c (emit_group_store): Same.
8512 (copy_blkmode_from_reg): Same.
8513 (write_complex_part): Same.
8514 (optimize_bitfield_assignment_op): Add argument.
8515 Add argument to get_best_mode.
8516 (get_bit_range): New.
8517 (expand_assignment): Calculate maxbits and pass it down accordingly.
8518 (store_field): New argument.
8519 (expand_expr_real_2): New argument to store_field. Include params.h.
8520 * expr.h (store_bit_field): New argument.
8521 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8522 into account maxbits.
8523 * calls.c (store_unaligned_arguments_into_pseudos): New argument
8524 to store_bit_field.
8525 * expmed.c (store_bit_field_1): New argument. Use it.
8526 (store_bit_field): Same.
8527 (store_fixed_bit_field): Same.
8528 (store_split_bit_field): Same.
8529 (extract_bit_field_1): Pass new argument to get_best_mode.
8530 (extract_bit_field): Same.
8531 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8532 * doc/invoke.texi: Document parameter allow-store-data-races.
8533
8534 2011-07-27 Jakub Jelinek <jakub@redhat.com>
8535
8536 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8537
8538 2011-07-27 Kai Tietz <ktietz@redhat.com>
8539
8540 * tree-vrp.c (extract_range_from_binary_expr): Remove
8541 TRUTH-binary cases and add new bitwise-cases.
8542 (extract_range_from_assignment): Likewise.
8543 (register_edge_assert_for_1): Likeiwise.
8544 (register_edge_assert_for): Likewise.
8545 (simplify_truth_ops_using_ranges): Likewise.
8546 (simplify_stmt_using_ranges): Likewise.
8547
8548 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
8549
8550 PR target/47372
8551 * config/i386/i386.c (ix86_delegitimize_address): Call
8552 simplify_gen_subreg for PIC with mode of x only if modes of
8553 x and orig_x are different.
8554
8555 2011-07-26 Jakub Jelinek <jakub@redhat.com>
8556
8557 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8558 to GC allocated copy of the string.
8559 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
8560 before .debug_line, not after it.
8561
8562 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8563
8564 PR middle-end/47046
8565 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
8566 evolution_function_is_affine_p on CHREC_RIGHT.
8567
8568 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8569
8570 * tree-data-ref.c (max_stmt_executions_tree): Do not call
8571 lang_hooks.types.type_for_size.
8572
8573 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8574
8575 PR middle-end/47653
8576 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
8577 loops using wrapping semantics.
8578
8579 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8580
8581 PR middle-end/48805
8582 * tree-scalar-evolution.c (instantiate_scev_r): Return
8583 chrec_dont_know for ADDR_EXPR.
8584
8585 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
8586 H.J. Lu <hongjiu.lu@intel.com>
8587
8588 PR target/47369
8589 PR target/49853
8590 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
8591 if legitimize_tls_address returned operand in wrong mode. Allow
8592 SImode and DImode symbolic operand for PIC. Call convert_to_mode
8593 if legitimize_pic_address returned operand in wrong mode.
8594
8595 2011-07-26 Martin Jambor <mjambor@suse.cz>
8596
8597 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
8598 return false for invariants.
8599
8600 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
8601
8602 * config/i386/i386.md (add->lea splitter): Implement using SWI
8603 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
8604 (add->lea zext splitter): Change operand 2 predicate to
8605 x86_64_nonmemory_operand.
8606
8607 2011-07-26 Richard Guenther <rguenther@suse.de>
8608
8609 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
8610 frequency makes everything hot.
8611
8612 2011-07-26 Richard Guenther <rguenther@suse.de>
8613
8614 PR tree-optimization/49840
8615 * tree-vrp.c (range_fits_type_p): Properly handle full
8616 double-int precision.
8617
8618 2011-07-26 Martin Jambor <mjambor@suse.cz>
8619
8620 PR bootstrap/49786
8621 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
8622 counts.
8623 (update_specialized_profile): Likewise.
8624
8625 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
8626 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 PR target/47381
8629 PR target/49832
8630 PR target/49833
8631 * config/i386/i386.md (i): Change SImode attribute to "e".
8632 (g): Change SImode attribute to "rme".
8633 (di): Change SImode attribute to "nF".
8634 (general_operand): Change SImode attribute to x86_64_general_operand.
8635 (general_szext_operand): Change SImode attribute to
8636 x86_64_szext_general_operand.
8637 (immediate_operand): Change SImode attribute to
8638 x86_64_immediate_operand.
8639 (nonmemory_operand): Change SImode attribute to
8640 x86_64_nonmemory_operand.
8641 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
8642 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
8643 (*lea_1): Use SWI48 mode iterator.
8644 (*lea_1_zext): New insn pattern.
8645 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
8646 (*bt<mode>): Ditto.
8647 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
8648 Update operand constraints.
8649 (addsi_1_zext): Ditto.
8650 (*add<mode>2): Ditto.
8651 (*addsi_3_zext): Ditto.
8652 (*subsi_1_zext): Ditto.
8653 (*subsi_2_zext): Ditto.
8654 (*subsi_3_zext): Ditto.
8655 (*addsi3_carry_zext): Ditto.
8656 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
8657 (*mulsi3_1_zext): Ditto.
8658 (*andsi_1): Ditto.
8659 (*andsi_1_zext): Ditto.
8660 (*andsi_2_zext): Ditto.
8661 (*<any_or:code>si_1_zext): Ditto.
8662 (*<any_or:code>si_2_zext): Ditto.
8663 (*test<mode>_1): Use <general_operand> predicate for operand 1.
8664 (*and<mode>_2): Ditto.
8665 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
8666 (add->lea splitter): Check operand modes in insn constraint. Extend
8667 operands less than SImode wide to SImode.
8668 (add->lea zext splitter): Do not extend input operands to DImode.
8669 (*lea_general_1): Handle only QImode and HImode operands.
8670 (*lea_general_2): Ditto.
8671 (*lea_general_3): Ditto.
8672 (*lea_general_1_zext): Remove.
8673 (*lea_general_2_zext): Ditto.
8674 (*lea_general_3_zext): Ditto.
8675 (*lea_general_4): Check operand modes in insn constraint. Extend
8676 operands less than SImode wide to SImode.
8677 (ashift->lea splitter): Ditto.
8678 * config/i386/i386.c (ix86_print_operand_address): Print address
8679 registers with 'q' modifier on 64bit targets.
8680 * config/i386/predicates.md (pic_32bit_opreand): Define as special
8681 predicate. Reject non-SI and non-DI modes.
8682
8683 2011-07-25 Andrew Pinski <apinski@cavium.com>
8684
8685 PR tree-opt/49671
8686 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
8687 TREE_THIS_NOTRAP into the inner most MEM_REF.
8688 Always copy TREE_THIS_VOLATILE.
8689 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
8690 arguments are not volatile references.
8691
8692 2011-07-25 Richard Henderson <rth@redhat.com>
8693
8694 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
8695 * final.c (final_scan_insn): Don't test for it.
8696 (rest_of_clean_state): Likewise.
8697
8698 2011-07-25 Richard Henderson <rth@redhat.com>
8699
8700 PR debug/49841
8701 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
8702 (emit_frame_save): Likewise.
8703 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
8704 insn onto a dummy blockage insn after the join label.
8705
8706 2011-07-25 Richard Henderson <rth@redhat.com>
8707
8708 * dwarf2cfi.c (dw_trace_info): Add ID member.
8709 (get_trace_index): Remove. Change users to use ID member.
8710 (before_next_cfi_note): New.
8711 (connect_traces): Remove unreachable traces before the main loop.
8712 Look across one trace and generate remember/restore_state if needed.
8713
8714 2011-07-25 Richard Henderson <rth@redhat.com>
8715
8716 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
8717
8718 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
8719
8720 * genattr.c (write_upcase, gen_attr <enum definition writing>):
8721 Move to ...
8722 * genattr-common.c ... here.
8723 (main): Call gen_attr.
8724 * optc-gen.awk: Make generated program include insn-attr-common.h .
8725 * Makefile.in (oprions.o): Depend on insn-attr-common.h
8726
8727 2011-07-25 Anatoly Sokolov <aesok@post.ru>
8728
8729 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8730 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8731 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
8732 m32c_print_operand, m32c_print_operand_address): Remove.
8733 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
8734 Change return type to bool. Change argument type to bool.
8735 (m32c_print_operand, m32c_print_operand_address): Make static.
8736 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8737 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8738
8739 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8740
8741 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8742 attributes): Document mmap.
8743
8744 2011-07-25 Anatoly Sokolov <aesok@post.ru>
8745
8746 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8747 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8748 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
8749 mmix_print_operand, mmix_print_operand_address): Remove.
8750 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
8751 Change return type to bool. Change argument type to bool.
8752 (mmix_print_operand, mmix_print_operand_address): Make static.
8753 (mmix_intval, mmix_output_condition): Change 'x' argument type
8754 to const_rtx.
8755 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8756 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8757
8758 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
8759
8760 PR target/39386
8761 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
8762 shift counter for x << x and x >> x shifts.
8763
8764 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8765
8766 PR target/47124
8767 * config.gcc: Reject *-*-solaris2 configuration.
8768
8769 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
8770
8771 PR tree-optimization/49809
8772 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
8773 gimple_get_lhs instead of gimple_assign_lhs.
8774
8775 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8776
8777 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
8778
8779 2011-07-25 Richard Guenther <rguenther@suse.de>
8780
8781 PR tree-optimization/49822
8782 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8783 more. Make sure to preserve stmts with side-effects. Properly
8784 handle virtual defs, follow a longer def chain.
8785
8786 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
8787
8788 PR plugins/45348
8789 PR plugins/48425
8790 PR plugins/46577
8791 * Makefile.in: Do not flatten c-family directory when installing
8792 plugin headers.
8793
8794 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
8795
8796 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
8797 original nodes if we are dealing with virtual clones.
8798
8799 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
8800
8801 * common/config/c6x/c6x-common.c: New file.
8802
8803 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
8804
8805 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
8806
8807 2011-07-25 Richard Guenther <rguenther@suse.de>
8808
8809 PR tree-optimization/49715
8810 * tree-vrp.c: Include expr.h and optabs.h.
8811 (range_fits_type_): New function.
8812 (simplify_float_conversion_using_ranges): Likewise.
8813 (simplify_stmt_using_ranges): Call it.
8814 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
8815 * optabs.c (can_float_p): Export.
8816 * optabs.h (can_float_p): Declare.
8817
8818 2011-07-25 Richard Guenther <rguenther@suse.de>
8819
8820 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
8821 (get_value_range): For out-of-range SSA names or names created
8822 after propagation return a read-only varying range.
8823 (dump_all_value_ranges): Adjust.
8824 (vrp_initialize): Likewise.
8825 (vrp_finalize): Likewise.
8826
8827 2011-07-24 Richard Henderson <rth@redhat.com>
8828
8829 PR debug/49831
8830 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
8831 them entirely.
8832
8833 2011-07-24 Richard Henderson <rth@redhat.com>
8834
8835 PR debug/49825
8836 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
8837 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
8838
8839 2011-07-24 Richard Henderson <rth@redhat.com>
8840
8841 PR debug/49827
8842 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
8843
8844 2011-07-24 Richard Henderson <rth@redhat.com>
8845
8846 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
8847 Zero args_size for abnormal edges. Adjust all callers.
8848
8849 2011-07-24 Richard Henderson <rth@redhat.com>
8850
8851 PR debug/49825
8852 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
8853
8854 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
8855
8856 PR bootstrap/49835
8857 * collect2.c (demangle_flag): Removed.
8858
8859 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
8860
8861 * configure.ac (demangler_in_ld): Default to yes.
8862 * configure: Regenerated.
8863 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
8864 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
8865 --no-demangle options straight through to ld. When
8866 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
8867 way that has the intended effect on Windows.
8868
8869 2011-07-23 Richard Henderson <rth@redhat.com>
8870
8871 * dwarf2cfi.c: Include basic-block.h.
8872 (dw_label_info): Remove.
8873 (trace_work_list, trace_index): New.
8874 (remember_row, emit_cfa_remember): Remove.
8875 (dw_trace_info_hash, dw_trace_info_eq): New.
8876 (get_trace_index, get_trace_info): New.
8877 (save_point_p): New.
8878 (free_cfi_row): Remove.
8879 (add_cfi): Do not emit DW_CFA_remember_state.
8880 (cfa_row_equal_p): New.
8881 (barrier_args_size): Remove.
8882 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
8883 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
8884 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
8885 (dwarf2out_cfi_begin_epilogue): Remove.
8886 (dwarf2out_frame_debug_restore_state): Remove.
8887 (connect_traces, create_pseudo_cfg): New.
8888 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
8889 * Makefile.in (dwarf2cfi.o): Update.
8890
8891 2011-07-23 Richard Henderson <rth@redhat.com>
8892
8893 * dwarf2cfi.c (dw_trace_info): New.
8894 (dw_label_info): New.
8895 (cie_return_save): New.
8896 (cur_trace): New.
8897 (queued_args_size): Rename from args_size. Update all users.
8898 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
8899 (def_cfa_1): Use cur_trace instead of cfa_*.
8900 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
8901 (clobbers_queued_reg_save, reg_saved_in): Likewise.
8902 (dwarf2out_frame_debug_expr): Likewise.
8903 (create_cie_data): Split out from ...
8904 (execute_dwarf2_frame): ... here. Initialize cur_trace.
8905
8906 2011-07-23 Richard Henderson <rth@redhat.com>
8907
8908 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
8909 Update all users to match.
8910 (execute_dwarf2_frame): Free reg_saved_in_data.
8911
8912 2011-07-23 Richard Henderson <rth@redhat.com>
8913
8914 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
8915 (queued_reg_saves): Don't GTY. Change to a VEC.
8916 (queue_reg_save): Update to match.
8917 (dwarf2out_flush_queued_reg_saves): Likewise.
8918 (clobbers_queued_reg_save): Likewise.
8919 (reg_saved_in): Likewise.
8920 (execute_dwarf2_frame): Free queued_reg_saves.
8921
8922 2011-07-23 Richard Henderson <rth@redhat.com>
8923
8924 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
8925
8926 2011-07-23 Richard Henderson <rth@redhat.com>
8927
8928 * dwarf2cfi.c (add_cfi_args_size): Split out from...
8929 (dwarf2out_args_size): ... here.
8930 (add_cfi_restore): Split out from ...
8931 (dwarf2out_frame_debug_cfa_restore): ... here.
8932 (def_cfa_0): Split out from ...
8933 (def_cfa_1): ... here.
8934 (cfi_oprnd_equal_p, cfi_equal_p): New.
8935 (change_cfi_row): New.
8936 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
8937 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
8938 (output_cfis): Remove.
8939 * dwarf2out.c (output_fde): Simplify output_cfi loop.
8940 (dwarf2out_switch_text_section): Don't call output_cfis.
8941 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
8942 * dwarf2out.h: Update decls.
8943 (enum dw_val_class): Add dw_val_class_none.
8944
8945 2011-07-23 Richard Henderson <rth@redhat.com>
8946
8947 * dwarf2cfi.c (update_row_reg_save): New.
8948 (dwarf2out_frame_debug_cfa_expression): Use it.
8949 (dwarf2out_frame_debug_cfa_restore): Likewise.
8950 (reg_save): Likewise. Do not emit DW_CFA_same_value.
8951
8952 2011-07-23 Richard Henderson <rth@redhat.com>
8953
8954 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
8955
8956 2011-07-23 Richard Henderson <rth@redhat.com>
8957
8958 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
8959 (cie_cfi_row): New.
8960 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
8961 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
8962 (cur_row, remember_row): New.
8963 (def_cfa_1): Use cur_row instead of the old_* variables.
8964 (dwarf2out_frame_debug_restore_state): Similarly.
8965 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
8966 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
8967 (dwarf2out_frame_debug_adjust_cfa): Likewise.
8968 (dwarf2out_frame_debug_cfa_offset): Likewise.
8969 (dwarf2out_frame_debug_expr): Likewise.
8970 (execute_dwarf2_frame): Set up cur_row.
8971 * dwarf2out.h (struct cfa_loc): Mark for GTY.
8972
8973 2011-07-23 Richard Henderson <rth@redhat.com>
8974
8975 * basic-block.h (EDGE_PRESERVE): New.
8976 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
8977 * bb-reorder.c: Include except.h.
8978 (fix_up_crossing_landing_pad): New.
8979 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
8980 landing pads in the right partition. Duplicate as necessary.
8981 (partition_hot_cold_basic_blocks): Fix up DF info after
8982 duplicating landing pads.
8983 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
8984 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
8985 is set properly. Validate that EH edges are not CROSSING.
8986 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
8987 (dw2_build_landing_pads): ... here.
8988 (convert_to_eh_region_ranges): Remove code to fixup crossing
8989 landing pads.
8990 * except.h (expand_dw2_landing_pad_for_region): Declare.
8991 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
8992
8993 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
8994
8995 PR target/49816
8996 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
8997
8998 2011-07-22 Jason Merrill <jason@redhat.com>
8999
9000 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9001
9002 2011-07-22 Richard Henderson <rth@redhat.com>
9003
9004 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9005
9006 2011-07-22 Richard Henderson <rth@redhat.com>
9007
9008 * jump.c (maybe_propagate_label_ref): Split out of...
9009 (mark_all_labels): ... here. Do not attempt label_ref
9010 propagation while in cfglayout mode.
9011
9012 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9013
9014 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9015 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9016 (dwarf_attr_name): Handle DW_AT_GNU_macros.
9017 (dwarf2out_define): If the vector is empty and
9018 lineno is 0, emit a dummy entry first.
9019 (dwarf2out_undef): Likewise. Remove redundant semicolon.
9020 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9021 optimize_macinfo_range): New functions.
9022 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
9023 mergeable, optimize longer strings using
9024 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9025 optimize longer sequences of define/undef ops from headers
9026 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
9027 emit a section headers.
9028 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9029 and macinfo_section_label to DEBUG_MACRO_SECTION
9030 resp. DEBUG_MACRO_SECTION_LABEL.
9031 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9032 instead of DW_AT_macro_info.
9033
9034 PR other/32998
9035 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9036 options.
9037 * dwarf2out.c: Include opts.h.
9038 (dchar_p): New typedef. Define heap VEC for it.
9039 (producer_string): New variable.
9040 (gen_producer_string): New function.
9041 (gen_compile_unit_die): Use it.
9042 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9043 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9044 * doc/invoke.texi: Document -grecord-gcc-switches and
9045 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9046 to -frecord-gcc-switches description.
9047
9048 2011-07-22 Jason Merrill <jason@redhat.com>
9049
9050 PR c++/30112
9051 * c-decl.c (c_linkage_bindings): Define.
9052
9053 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
9054
9055 PR debug/49815
9056 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9057
9058 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
9059
9060 * config/i386/i386.c (ix86_option_override_internal): Disallow
9061 MS ABI in x32 mode.
9062 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9063 only for TARGET_LP64.
9064 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9065
9066 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9067
9068 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9069 avoid warnings when GCC is built with a C++ compiler.
9070
9071 2011-07-22 Martin Jambor <mjambor@suse.cz>
9072
9073 PR lto/49796
9074 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9075 if decl node is in another partition, call cgraph_get_node only once.
9076
9077 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
9078
9079 * config.gcc (x86_64-*-linux*): Set
9080 default_gnu_indirect_function to yes.
9081
9082 2011-07-22 Richard Guenther <rguenther@suse.de>
9083
9084 PR tree-optimization/45819
9085 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9086 preserve volatile and notrap flags.
9087
9088 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9089 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9090
9091 PR bootstrap/49794
9092 * configure.ac: Test AM_ICONV with CXX.
9093 * configure: Regenerate.
9094 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9095
9096 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9097
9098 PR bootstrap/49797
9099 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9100 (set_cloog_options): Use it.
9101
9102 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9103
9104 PR c++/49756
9105 * gcc.c (main): Call stack_limit_increase (64MB).
9106 * toplev.c (toplev_main): Likewise.
9107
9108 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9109
9110 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9111 instead of force_reg.
9112
9113 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9114
9115 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9116 needed and use force_reg after convert.
9117 (ix86_expand_call): Likewise.
9118 (ix86_expand_special_args_builtin): Likewise.
9119 (ix86_expand_builtin): Likewise.
9120
9121 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9122
9123 PR middle-end/47654
9124 PR middle-end/49649
9125 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9126 in parameter. Initialize v1 and v2 based on the values returned
9127 by clast_name_to_lb_ub.
9128 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9129 values.
9130 (type_for_clast_bin): Same.
9131 (type_for_clast_expr): Same.
9132 (type_for_clast_eq): Update calls to type_for_clast_expr.
9133 (type_for_clast_for): Same.
9134 (build_iv_mapping): Same.
9135 * graphite-ppl.h (value_min): New.
9136
9137 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9138
9139 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9140 types whenever possible.
9141
9142 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9143
9144 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9145 and ub fields.
9146 (new_clast_name_index): Add lb and ub parameters.
9147 (free_clast_name_index): New.
9148 (clast_name_to_lb_ub): New.
9149 (save_clast_name_index): Add lb and ub parameters.
9150 (compute_bounds_for_param): New.
9151 (type_for_level): Removed.
9152 (type_for_clast_for): Removed level parameter. Do not call
9153 type_for_level.
9154 (graphite_create_new_loop): Store the lb and ub for the clast_name
9155 of the iterator of the loop that has been generated.
9156 (graphite_create_new_loop_guard): Remove parameter level.
9157 (create_params_index): Store the lb and ub of each parameter.
9158 (gloog): Use free_clast_name_index. Pass to create_params_index
9159 the current scop.
9160
9161 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9162
9163 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9164 (max_precision_type): Inline max_signed_precision_type.
9165 (type_for_clast_red): Use max_precision_type.
9166 (type_for_clast_bin): Same.
9167 (type_for_clast_for): Same.
9168
9169 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9170
9171 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9172 type_for_interval.
9173 (gcc_type_for_value): Renamed type_for_value.
9174 (gcc_type_for_clast_term): Renamed type_for_clast_term.
9175 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9176 (gcc_type_for_clast_red): Renamed type_for_clast_red.
9177 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9178 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9179 (graphite_translate_clast_equation): Update calls.
9180 (compute_type_for_level): Renamed type_for_level.
9181 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9182 (build_iv_mapping): Update calls.
9183 (graphite_create_new_loop_guard): Same.
9184
9185 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9186
9187 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9188 comment.
9189
9190 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9191
9192 * graphite-clast-to-gimple.c (struct ivs_params): New.
9193 (clast_name_to_gcc): Use ivs_params to pass around parameters.
9194 (clast_to_gcc_expression): Same.
9195 (clast_to_gcc_expression_red): Same.
9196 (gcc_type_for_clast_term): Same.
9197 (gcc_type_for_clast_expr): Same.
9198 (gcc_type_for_clast_red): Same.
9199 (gcc_type_for_clast_bin): Same.
9200 (gcc_type_for_clast_eq): Same.
9201 (graphite_translate_clast_equation): Same.
9202 (graphite_create_guard_cond_expr): Same.
9203 (graphite_create_new_guard): Same.
9204 (graphite_create_new_loop): Same.
9205 (build_iv_mapping): Same.
9206 (translate_clast_user): Same.
9207 (graphite_create_new_loop_guard): Same.
9208 (translate_clast): Same.
9209 (translate_clast_for_loop): Same.
9210 (translate_clast_for): Same.
9211 (translate_clast_guard): Same.
9212 (initialize_cloog_names): Fix typo.
9213 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9214
9215 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9216
9217 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9218 (new_clast_name_index): Add level parameter.
9219 (clast_name_to_level): New.
9220 (save_clast_name_index): Add level parameter.
9221 (newivs_to_depth_to_newiv): Removed.
9222 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9223 (graphite_create_new_loop): Add level parameter. Pass level to
9224 save_clast_name_index.
9225 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9226 (create_params_index): Pass level to save_clast_name_index.
9227
9228 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9229
9230 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9231 recompute type, lb, and ub. Get them from...
9232 (graphite_create_new_loop_guard): ...here. Pass in parameter
9233 pointers to type, lb, and ub.
9234 (translate_clast_for_loop): Update function calls.
9235 (translate_clast_for): Same.
9236
9237 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9238
9239 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9240 psct_dynamic_dim.
9241 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9242 (gcc_type_for_iv_of_clast_loop): Update use of level.
9243 (gloog): Start counting nesting level from 0.
9244 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9245 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9246 psct_dynamic_dim on level.
9247
9248 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9249
9250 * config/i386/i386.c (ix86_legitimize_address): Convert to
9251 Pmode if needed.
9252
9253 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9254
9255 * config/i386/i386.c (function_value_64): Always return pointers
9256 in Pmode.
9257 (ix86_promote_function_mode): New.
9258 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9259
9260 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9261
9262 PR tree-optimization/49749
9263 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9264 remove no-longer-used maxrank variable.
9265
9266 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
9267
9268 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9269
9270 2011-07-21 Jason Merrill <jason@redhat.com>
9271
9272 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9273 * recog.h (struct insn_data_d): Check it instead of
9274 HAVE_DESIGNATED_INITIALIZERS.
9275 * genoutput.c (output_insn_data): Likewise.
9276
9277 2011-07-21 Richard Guenther <rguenther@suse.de>
9278
9279 PR tree-optimization/49770
9280 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9281 valueized any operand. Renamed from ...
9282 (valueize_refs): ... this. New wrapper around valueize_refs_1.
9283 (valueize_shared_reference_ops_from_ref): Return whether we
9284 valueized any operand.
9285 (vn_reference_lookup): Only when we valueized any operand
9286 use the valueized reference for alias analysis. Do not preserve
9287 the original reference tree in this case.
9288
9289 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
9290
9291 * config/i386/i386.c (ix86_decompose_address): Reject all but
9292 register operands and subregs of DImode hard registers in index.
9293
9294 2011-07-21 Kai Tietz <ktietz@redhat.com>
9295
9296 * fold-const.c (fold_unary_loc): Preserve indirect
9297 comparison cast to none-boolean type.
9298 * tree-ssa.c (useless_type_conversion_p): Preserve cast
9299 from/to boolean-type.
9300 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9301 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9302 * tree-cfg.c (verify_gimple_comparison): Check result
9303 type of comparison expression.
9304 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9305 of condition result and disallow type-cast sinking into comparison.
9306
9307 2011-07-21 Richard Guenther <rguenther@suse.de>
9308
9309 * tree-ssa-forwprop.c (combine_conversions): Return whether
9310 we have to run cfg-cleanup. Properly remove dead stmts.
9311 (ssa_forward_propagate_and_combine): Adjust.
9312
9313 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
9314
9315 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9316
9317 2011-07-21 Kai Tietz <ktietz@redhat.com>
9318
9319 * tree-ssa-propagate.c (substitute_and_fold): Use
9320 do_dce flag to deside, if BB's statements are scanned
9321 in last to first, or first to last order.
9322
9323 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
9324
9325 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9326
9327 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
9328 Uros Bizjak <ubizjak@gmail.com>
9329 Richard Henderson <rth@redhat.com>
9330
9331 * config/i386/constraints.md (w): New.
9332
9333 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9334 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9335
9336 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9337 instead of TARGET_64BIT.
9338
9339 * config/i386/i386.md (indirect_jump): Replace
9340 nonimmediate_operand with indirect_branch_operand.
9341 (*indirect_jump): Likewise. Replace constraint "m" with "w".
9342 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9343 Convert operand 0 to Pmode for x32 if not PIC.
9344 (*tablejump_1): Replace nonimmediate_operand with
9345 indirect_branch_operand. Replace constraint "m" with "w".
9346 (*call_vzeroupper): Replace constraint "m" with "w".
9347 (*call): Likewise.
9348 (*call_rex64_ms_sysv_vzeroupper): Likewise.
9349 (*call_rex64_ms_sysv): Likewise.
9350 (*call_value_vzeroupper): Likewise.
9351 (*call_value): Likewise.
9352 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9353 (*call_value_rex64_ms_sysv): Likewise.
9354 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9355
9356 * config/i386/predicates.md (indirect_branch_operand): New.
9357 (call_insn_operand): Support x32.
9358
9359 2011-07-20 Michael Eager <eager@eagercon.com>
9360
9361 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9362
9363 2011-07-20 Richard Henderson <rth@redhat.com>
9364
9365 * cfg.c (dump_bb_info): Dump basic_block->flags.
9366 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9367
9368 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
9369
9370 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9371 of DImode hard registers in index.
9372 (ix86_legitimate_address_p): Allow subregs of base and index to span
9373 more than a word. Assert that subregs of base and index satisfy
9374 register_no_elim_operand predicates. Reject addresses where
9375 base and index have different modes.
9376
9377 2011-07-20 Robert Millan <rmh@gnu.org>
9378
9379 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
9380
9381 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9382
9383 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9384 removing now-unnecessary assignment.
9385
9386 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9387
9388 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9389 memory address space to the type's address space.
9390
9391 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
9392
9393 PR target/36467
9394 PR target/49687
9395 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9396 and expand appropriately if there is a CONST_INT in operand2.
9397 (usmulqihi3): New insn.
9398 (*sumulqihi3): New insn.
9399 (*osmulqihi3): New insn.
9400 (*oumulqihi3): New insn.
9401 (*muluqihi3.uconst): New insn_and_split.
9402 (*muluqihi3.sconst): New insn_and_split.
9403 (*mulsqihi3.sconst): New insn_and_split.
9404 (*mulsqihi3.uconst): New insn_and_split.
9405 (*mulsqihi3.oconst): New insn_and_split.
9406 (*ashifthi3.signx.const): New insn_and_split.
9407 (*ashifthi3.signx.const7): New insn_and_split.
9408 (*ashifthi3.zerox.const): New insn_and_split.
9409 (mulsqihi3): New insn.
9410 (muluqihi3): New insn.
9411 (muloqihi3): New insn.
9412 * config/avr/predicates.md (const_2_to_7_operand): New.
9413 (const_2_to_6_operand): New.
9414 (u8_operand): New.
9415 (s8_operand): New.
9416 (o8_operand): New.
9417 (s9_operand): New.
9418 (register_or_s9_operand): New.
9419
9420 2011-07-20 Kai Tietz <ktietz@redhat.com>
9421
9422 * builtins.c (fold_builtin_expect): See through the cast
9423 from truthvalue_type_node to long.
9424
9425 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9426
9427 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9428 where we can use them from the standard and altivec instruction
9429 sets, instead of always using the 3 operand VSX forms that require
9430 the destination to overlap one of the inputs.
9431 (vsx_fms*): Ditto.
9432 (vsx_fnma*): Ditto.
9433 (vsx_fnms*): Ditto.
9434
9435 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9436 for DF types.
9437 (fmsdf4_fpr): Ditto.
9438 (nfmadf4_fpr): Ditto.
9439 (nfmsdf4_fpr): Ditto.
9440
9441 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
9442
9443 * genrecog.c (make_insn_sequence): Correct position numbering
9444 when filtering out match_scratch and match_dup.
9445
9446 2011-07-20 Richard Guenther <rguenther@suse.de>
9447
9448 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9449 against already removed statements.
9450 (forward_propagate_into_comparison): Remove dead defining stmts.
9451 (forward_propagate_into_gimple_cond): Likewise.
9452 (forward_propagate_into_cond): Simplify.
9453 (ssa_forward_propagate_and_combine): Handle changed cfg from
9454 forward_propagate_into_comparison.
9455 * tree-ssa-phiopt.c (conditional_replacement): Use proper
9456 locations for newly built statements.
9457
9458 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
9459
9460 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9461
9462 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9463
9464 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9465 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9466
9467 2011-07-20 Richard Guenther <rguenther@suse.de>
9468
9469 PR middle-end/18908
9470 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9471 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9472 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
9473
9474 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
9475
9476 * config/frv/frv.c (frv_register_move_cost): Define explicitly
9477 costs for subclasses of GR_REGS.
9478
9479 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
9480
9481 PR target/49780
9482 * config/i386/predicates.md (no_seg_addres_operand): No more special.
9483 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9484 of DImode hard registers in base.
9485 (ix86_legitimate_address_p): Allow SImode and DImode base and index
9486 registers.
9487
9488 2011-07-20 Richard Guenther <rguenther@suse.de>
9489
9490 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9491 (unify_nodes): Deal with that.
9492 (solve_graph): Likewise.
9493
9494 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
9495
9496 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9497 canonicalize left operand from ZERO_EXTEND to AND.
9498
9499 2011-07-20 Anatoly Sokolov <aesok@post.ru>
9500
9501 * target.def (class_max_nregs): New hook.
9502 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9503 * doc/tm.texi: Regenerate.
9504 * targhooks.c (default_class_max_nregs): New function.
9505 * targhooks.h (default_class_max_nregs): Declare.
9506 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9507 x_ira_reg_class_min_nregs arrays to unsigned char.
9508 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9509 hook instead of CLASS_MAX_NREGS macro.
9510 * reginfo.c (restore_register_info): Ditto.
9511 * ira-conflicts.c (process_regs_for_copy): Use
9512 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9513 Change type rclass and aclass vars to reg_class_t.
9514 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9515 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9516 reg_class_t.
9517 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9518 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9519
9520 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9521 * config/i386/i386.c (ix86_class_max_nregs): New function.
9522 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9523 instead of CLASS_MAX_NREGS macro.
9524 (TARGET_CLASS_MAX_NREGS): Define.
9525 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9526 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9527 * config/avr/avr.c (class_max_nregs): Remove function.
9528 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9529 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9530 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9531 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9532 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9533 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9534 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9535 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9536 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9537 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9538 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9539 * config/score/score.h (CLASS_MAX_NREGS): Remove.
9540 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9541 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9542 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9543
9544 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
9545
9546 * cif-code.def (OVERWRITABLE): Fix typo and move around.
9547 (TARGET_OPTIMIZATION_MISMATCH): Delete.
9548 (EH_PERSONALITY): Fix typo.
9549 (NON_CALL_EXCEPTIONS): Fix message.
9550 (OPTIMIZATION_MISMATCH): Adjust message.
9551 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9552
9553 2011-07-19 Ian Lance Taylor <iant@google.com>
9554
9555 * doc/install.texi (Configuration): Document
9556 --enable-build-poststage1-with-cxx.
9557
9558 2011-07-19 Robert Millan <rmh@gnu.org>
9559
9560 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
9561 (GLIBC_DYNAMIC_LINKER): Remove.
9562
9563 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
9564 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9565 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9566 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
9567 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
9568 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
9569
9570 * config/mips/linux.h: Remove everything except for ...
9571 (GLIBC_DYNAMIC_LINKER): ... this macro.
9572
9573 * config/mips/linux64.h: Remove everything except for ...
9574 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9575 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9576 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
9577 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
9578 (GNU_USER_LINK_EMULATIONN32): New macros.
9579
9580 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
9581 Use the new headers.
9582
9583 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9584
9585 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
9586 Add offset_known_p and size_known_p fields.
9587 (MEM_OFFSET_KNOWN_P): Update accordingly.
9588 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
9589 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
9590 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
9591 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
9592 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
9593 (init_emit_regs): Likewise.
9594
9595 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9596
9597 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
9598 (MEM_OFFSET): Change from returning an rtx to returning a
9599 HOST_WIDE_INT.
9600 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
9601 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
9602 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9603 (clear_mem_offset): Declare.
9604 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
9605 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
9606 MEM_OFFSET to get a HOST_WIDE_INT offset.
9607 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
9608 (adjust_offset_for_component_ref): Take a bool "known_p"
9609 parameter and a HOST_WIDE_INT "offset" parameter.
9610 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
9611 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
9612 than an rtx. Use clear_mem_offset to clear the offset.
9613 * cfgcleanup.c (merge_memattrs): Likewise.
9614 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
9615 * function.c (assign_parm_find_stack_rtl): Likewise.
9616 (assign_parm_setup_stack): Likewise.
9617 * print-rtl.c (print_rtx): Likewise.
9618 * reload.c (find_reloads_subreg_address): Likewise.
9619 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9620 * var-tracking.c (INT_MEM_OFFSET): Likewise.
9621 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9622 (get_mem_align_offset): Likewise.
9623 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9624 (clear_mem_offset): New function.
9625 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
9626 offset rather than an rtx. Assume both the expressio and offset
9627 are available.
9628 (r10k_needs_protection_p_1): Update accordingly, checking the
9629 expression and offset availability here instead.
9630
9631 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9632
9633 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
9634 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
9635 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
9636 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
9637 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9638 (clear_mem_size): Declare.
9639 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9640 (clear_mem_size): New function.
9641 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
9642 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
9643 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
9644 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
9645 to clear the size.
9646 (nonoverlapping_memrefs_p): Likewise.
9647 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
9648 (expand_builtin_init_trampoline): Likewise.
9649 * calls.c (compute_argument_addresses): Likewise.
9650 * cfgcleanup.c (merge_memattrs): Likewise.
9651 * dce.c (find_call_stack_args): Likewise.
9652 * dse.c (record_store, scan_insn): Likewise.
9653 * dwarf2out.c (dw_sra_loc_expr): Likewise.
9654 * expr.c (emit_block_move_hints): Likewise.
9655 * function.c (assign_parm_find_stack_rtl): Likewise.
9656 * print-rtl.c (print_rtx): Likewise.
9657 * reload.c (find_reloads_subreg_address): Likewise.
9658 * rtlanal.c (may_trap_p_1): Likewise.
9659 * var-tracking.c (track_expr_p): Likewise.
9660 * varasm.c (assemble_trampoline_template): Likewise.
9661 * config/arm/arm.c (arm_print_operand): Likewise.
9662 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
9663 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
9664 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
9665 (expand_constant_setmem_prologue): Likewise.
9666 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
9667 * config/rs6000/rs6000.c (expand_block_move): Likewise.
9668 (adjacent_mem_locations): Likewise.
9669 * config/s390/s390.c (s390_expand_setmem): Likewise.
9670 (s390_expand_insv): Likewise.
9671 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
9672 (*extendqi<mode>2_short_displ): Likewise.
9673 * config/sh/sh.c (expand_block_move): Likewise.
9674 * config/sh/sh.md (extv, extzv): Likewise.
9675
9676 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9677
9678 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
9679 (mem_attrs_htab_eq): ...here.
9680 (find_mem_attrs): Replace with...
9681 (set_mem_attrs): ...this function. Take a mem_attrs structure
9682 rather than individual fields.
9683 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9684 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9685 (set_mem_size, change_address, adjust_address_1, offset_address)
9686 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9687 Update accordingly.
9688
9689 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9690
9691 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
9692 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
9693 Provide a dummy definition of MEM_ADDR_SPACE for generators.
9694 (target_rtl): Add x_mode_mem_attrs.
9695 (mode_mem_attrs): New macro.
9696 (get_mem_attrs): New function.
9697 * emit-rtl.c (get_mem_attrs): Rename to...
9698 (find_mem_attrs): ...this.
9699 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9700 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9701 (set_mem_size, change_address, adjust_address_1, offset_address)
9702 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9703 Update accordingly.
9704 (init_emit_regs): Initialize mode_mem_attrs.
9705
9706 2011-07-19 Richard Guenther <rguenther@suse.de>
9707
9708 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
9709 TRUTH_*_EXPR handling.
9710 * tree-ssa-operands.c (get_expr_operands): Likewise.
9711 * tree-ssa-pre.c (fully_constant_expression): Likewise.
9712 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
9713 Likewise.
9714 (is_and_or_or): Likewise.
9715 (is_norm_cond_subset_of): Likewise.
9716
9717 2011-07-19 Richard Guenther <rguenther@suse.de>
9718
9719 * tree.h (fold_build_pointer_plus_loc): New helper function.
9720 (fold_build_pointer_plus_hwi_loc): Likewise.
9721 (fold_build_pointer_plus): Define.
9722 (fold_build_pointer_plus_hwi): Likewise.
9723 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
9724 (fold_builtin_memory_op): Likewise.
9725 (fold_builtin_stpcpy): Likewise.
9726 (fold_builtin_memchr): Likewise.
9727 (fold_builtin_strstr): Likewise.
9728 (fold_builtin_strchr): Likewise.
9729 (fold_builtin_strrchr): Likewise.
9730 (fold_builtin_strpbrk): Likewise.
9731 (fold_builtin_strcat): Likewise.
9732 (expand_builtin_memory_chk): Likewise.
9733 (fold_builtin_memory_chk): Likewise.
9734 * c-typeck.c (build_unary_op): Likewise.
9735 * cgraphunit.c (thunk_adjust): Likewise.
9736 * fold-const.c (build_range_check): Likewise.
9737 (fold_binary_loc): Likewise.
9738 * omp-low.c (extract_omp_for_data): Likewise.
9739 (expand_omp_for_generic): Likewise.
9740 (expand_omp_for_static_nochunk): Likewise.
9741 (expand_omp_for_static_chunk): Likewise.
9742 * tree-affine.c (add_elt_to_tree): Likewise.
9743 * tree-data-ref.c (split_constant_offset_1): Likewise.
9744 * tree-loop-distribution.c (generate_memset_zero): Likewise.
9745 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
9746 * tree-predcom.c (ref_at_iteration): Likewise.
9747 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9748 (add_to_parts): Likewise.
9749 (create_mem_ref): Likewise.
9750 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9751 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
9752 (number_of_iterations_le): Likewise.
9753 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
9754 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
9755 (vect_create_addr_base_for_vector_ref): Likewise.
9756 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
9757 (vect_create_cond_for_alias_checks): Likewise.
9758 * tree-vrp.c (extract_range_from_assert): Likewise.
9759 * config/alpha/alpha.c (alpha_va_start): Likewise.
9760 (alpha_gimplify_va_arg_1): Likewise.
9761 * config/i386/i386.c (ix86_va_start): Likewise.
9762 (ix86_gimplify_va_arg): Likewise.
9763 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
9764 * config/mep/mep.c (mep_expand_va_start): Likewise.
9765 (mep_gimplify_va_arg_expr): Likewise.
9766 * config/mips/mips.c (mips_va_start): Likewise.
9767 (mips_gimplify_va_arg_expr): Likewise.
9768 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9769 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
9770 (rs6000_gimplify_va_arg): Likewise.
9771 * config/s390/s390.c (s390_va_start): Likewise.
9772 (s390_gimplify_va_arg): Likewise.
9773 * config/sh/sh.c (sh_va_start): Likewise.
9774 (sh_gimplify_va_arg_expr): Likewise.
9775 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
9776 * config/spu/spu.c (spu_va_start): Likewise.
9777 (spu_gimplify_va_arg_expr): Likewise.
9778 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
9779 Likewise.
9780 (xstormy16_gimplify_va_arg_expr): Likewise.
9781 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
9782 (xtensa_gimplify_va_arg_expr): Likewise.
9783
9784 2011-07-19 Richard Guenther <rguenther@suse.de>
9785
9786 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
9787 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
9788 handling.
9789
9790 PR middle-end/18908
9791 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
9792 result of BIT_*_EXPR to bitfield precision.
9793
9794 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
9795
9796 PR tree-optimization/49742
9797 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
9798 as a potential write.
9799
9800 2011-07-19 Richard Guenther <rguenther@suse.de>
9801
9802 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
9803 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
9804 (forward_propagate_comparison): Simplify, remove obsolete code.
9805
9806 2011-07-19 Richard Guenther <rguenther@suse.de>
9807
9808 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
9809 BIT_XOR_EXPR, same as the RTL expander does.
9810 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
9811 (verify_gimple_assign_unary): Likewise.
9812 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
9813 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
9814 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
9815
9816 2011-07-19 Jakub Jelinek <jakub@redhat.com>
9817
9818 PR tree-optimization/49768
9819 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
9820 if offset is smaller than bitoffset, but offset+size is bigger
9821 than bitoffset.
9822
9823 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
9824
9825 PR tree-optimization/49771
9826 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
9827 zero step, set segment length to the size of the data-ref's type.
9828
9829 2011-07-18 Martin Jambor <mjambor@suse.cz>
9830
9831 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
9832 comments.
9833 (ipcp_values_pool): Declare.
9834 (ipcp_sources_pool): Likewise.
9835 (ipcp_lattice): Changed to forward declaration.
9836 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
9837 cannot_devirtualize.
9838 (ipa_node_params): New fields descriptors, lattices, known_vals,
9839 clone_for_all_contexts and node dead, removed fields params and
9840 count_scale.
9841 (ipa_set_param_count): Removed.
9842 (ipa_get_param_count): Made to work with descriptors vector.
9843 (ipa_get_param): Updated.
9844 (ipa_param_cannot_devirtualize_p): Removed.
9845 (ipa_param_types_vec_empty): Likewise.
9846 (ipa_set_param_used): New function.
9847 (ipa_get_param_used): Updated to use descriptors vector.
9848 (ipa_func_list): Removed.
9849 (ipa_init_func_list): Removed declaration.
9850 (ipa_push_func_to_list_1): Likewise.
9851 (ipa_pop_func_from_list): Likewise.
9852 (ipa_push_func_to_list): Removed.
9853 (ipa_lattice_from_jfunc): Remove declaration.
9854 (ipa_get_jf_pass_through_result): Declare.
9855 (ipa_get_jf_ancestor_result): Likewise.
9856 (ipa_value_from_jfunc): Likewise.
9857 (ipa_get_lattice): Update.
9858 (ipa_lat_is_single_const): New function.
9859 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
9860 (ipa_init_func_list): Likewise.
9861 (ipa_pop_func_from_list): Likewise.
9862 (ipa_get_param_decl_index): Fix coding style.
9863 (count_formal_params): Removed.
9864 (count_formal_params_1): Renamed to count_formal_params.
9865 (ipa_populate_param_decls): Update to use descriptors vector.
9866 (ipa_initialize_node_params): Likewise.
9867 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
9868 (ipa_analyze_params_uses): Likewise.
9869 (ipa_free_node_params_substructures): Likewise and free also lattices
9870 and known values.
9871 (duplicate_array): Removed.
9872 (ipa_edge_duplication_hook): Add the new edge to the list of edge
9873 clones.
9874 (ipa_node_duplication_hook): Update to use new lattices.
9875 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
9876 (ipa_free_all_structures_after_iinln): Likewise.
9877 (ipa_write_node_info): Update to use new lattices.
9878 (ipa_read_node_info): Likewise.
9879 (ipa_get_jf_pass_through_result): New function.
9880 (ipa_get_jf_ancestor_result): Likewise.
9881 (ipa_value_from_jfunc): Likewise.
9882 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
9883 * ipa-cp.c: Reimplemented.
9884 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
9885 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
9886 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
9887 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
9888 * doc/invoke.texi (devirt-type-list-size): Removed description.
9889 (ipa-cp-value-list-size): Added description.
9890
9891 2011-07-18 Richard Henderson <rth@redhat.com>
9892
9893 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
9894 before calling create_basic_block.
9895
9896 2011-07-18 Jakub Jelinek <jakub@redhat.com>
9897
9898 PR middle-end/49675
9899 * tree.c (build_common_builtin_nodes): Register
9900 __builtin_return_address, __cyg_profile_func_enter
9901 and __cyg_profile_func_exit.
9902
9903 2011-07-18 Richard Henderson <rth@redhat.com>
9904
9905 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
9906 (add_labels_and_missing_jumps): ... here.
9907 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
9908
9909 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
9910
9911 PR target/47744
9912 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9913 of DImode hard registers in PLUS address chains.
9914
9915 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9916
9917 PR bootstrap/49769
9918 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
9919 (alpha*-*-freebsd*): Likewise.
9920 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9921 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9922 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
9923 crtprec80.o, crtfastmath.o to extra_parts for all targets.
9924 (ia64*-*-elf*): Remove extra_parts.
9925 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
9926 (sparc64-*-linux*): Likewise.
9927 (sparc64-*-freebsd*): Likewise.
9928
9929 Revert:
9930 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
9931 (ia64*-*-linux*): Likewise.
9932 (mips64*-*-linux*): Likewise.
9933 (mips*-*-linux*): Likewise.
9934
9935 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
9936
9937 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
9938
9939 2011-07-18 Richard Guenther <rguenther@suse.de>
9940
9941 * gimplify.c (gimplify_expr): Use input_location, not saved_location
9942 when building new trees.
9943
9944 2011-07-18 Richard Guenther <rguenther@suse.de>
9945
9946 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
9947 expansion result to bitfield precision if required.
9948
9949 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9950
9951 * config.gcc (i[3456x]86-*-netware*): Remove.
9952
9953 * gthr-nks.h: Remove.
9954 * configure.ac (enable_threads): Remove nks.
9955 * configure: Regenerate.
9956
9957 * config/i386/i386.c (ix86_encode_section_info): Remove netware
9958 reference.
9959 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
9960 <netware.h> reference.
9961
9962 * config/i386/netware-libgcc.c,
9963 gcc/config/i386/netware-libgcc.def,
9964 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
9965 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
9966 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
9967 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
9968
9969 * doc/extend.texi (Function Attributes,
9970 callee_pop_aggregate_return): Remove i?86-netware reference.
9971 * doc/install.texi (Configuration, --enable-threads): Remove nks.
9972
9973 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9974
9975 PR target/49746
9976 Revert:
9977 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9978
9979 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
9980 patterns.
9981
9982 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
9983
9984 PR middle-end/49732
9985 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
9986
9987 2011-07-16 Matthias Klose <doko@ubuntu.com>
9988
9989 * doc/install.texi: Document --enable-static-libjava.
9990
9991 2011-07-15 Richard Henderson <rth@redhat.com>
9992
9993 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9994 Replace all three arguments by returning a VEC of edges.
9995 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
9996 pointers and counts.
9997 (fix_edges_for_rarely_executed_code): Merge ...
9998 (rest_of_handle_partition_blocks): ... into...
9999 (partition_hot_cold_basic_blocks): ... here. Return todo items if
10000 any work was performed.
10001 (pass_partition_blocks): Clear todo_flags_finish.
10002
10003 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
10004 Jakub Jelinek <jakub@redhat.com>
10005 Jonathan Wakely <jwakely.gcc@gmail.com>
10006
10007 PR libstdc++/49745
10008 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10009 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10010
10011 2011-07-15 Jason Merrill <jason@redhat.com>
10012
10013 PR testsuite/49741
10014 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10015 rather than --tool_opts.
10016
10017 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
10018
10019 * doc/plugins.texi (Building GCC plugins): gengtype needs its
10020 corresponding gtype.state.
10021
10022 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10023
10024 PR target/49723
10025 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10026
10027 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10028
10029 PR target/48220
10030 * doc/md.texi (Standard Names): Document window_save.
10031 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10032 expand_debug_expr and expand_debug_source_expr. If the target has
10033 a window_save instruction, adjust the ENTRY_VALUE_EXP.
10034 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10035 SSA_NAME_VAR is a parameter.
10036 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10037 * var-tracking.c (parm_reg_t): New type and associated vector type.
10038 (windowed_parm_regs): New variable.
10039 (adjust_insn): If the target has a window_save instruction and this
10040 is the instruction, make its effect on parameter registers explicit.
10041 (next_non_note_insn_var_location): New function.
10042 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10043 (vt_add_function_parameter): If the target has a window_save insn,
10044 adjust the incoming RTL and record that in windowed_parm_regs.
10045 (vt_finalize): Free windowed_parm_regs.
10046
10047 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
10048
10049 * doc/invoke.texi (C6X Options): New section.
10050 * doc/md.texi (TI C6X family): New section.
10051 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10052 tic6x-*-uclinux.
10053 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10054 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10055 Provide C6X definitions.
10056 * config/c6x/c6x.md: New file.
10057 * config/c6x/constraints.md: New file.
10058 * config/c6x/predicates.md: New file.
10059 * config/c6x/c6x-sched.md.in: New file.
10060 * config/c6x/c6x-sched.md: New file.
10061 * config/c6x/gensched.sh: New file.
10062 * config/c6x/c6x-mult.md.in: New file.
10063 * config/c6x/genmult.sh: New file.
10064 * config/c6x/c6x-mult.md: New file.
10065 * config/c6x/sync.md: New file.
10066 * config/c6x/c6x-protos.h: New file.
10067 * config/c6x/sfp-machine.h: New file.
10068 * config/c6x/c6x.c: New file.
10069 * config/c6x/c6x.h: New file.
10070 * config/c6x/crti.s: New file.
10071 * config/c6x/crtn.s: New file.
10072 * config/c6x/lib1funcs.asm: New file.
10073 * config/c6x/c6x-modes.def: New file.
10074 * config/c6x/genopt.sh: New file.
10075 * config/c6x/c6x.opt: New file.
10076 * config/c6x/c6x-tables.opt: New file.
10077 * config/c6x/c6x-opts.h: New file.
10078 * config/c6x/c6x-isas.def: New file.
10079 * config/c6x/elf.h: New file.
10080 * config/c6x/elf-common.h: New file.
10081 * config/c6x/uclinux-elf.h: New file.
10082 * config/c6x/t-c6x: New file.
10083 * config/c6x/t-c6x-elf: New file.
10084 * config/c6x/t-c6x-uclinux: New file.
10085 * config/c6x/t-c6x-softfp: New file.
10086 * config/c6x/gtd.c: New file.
10087 * config/c6x/gtf.c: New file.
10088 * config/c6x/ltd.c: New file.
10089 * config/c6x/ltf.c: New file.
10090 * config/c6x/ged.c: New file.
10091 * config/c6x/gef.c: New file.
10092 * config/c6x/led.c: New file.
10093 * config/c6x/lef.c: New file.
10094 * config/c6x/eqd.c: New file.
10095 * config/c6x/eqf.c: New file.
10096 * config/c6x/libgcc-c6xeabi.ver: New file.
10097
10098 Revert
10099 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
10100 PR rtl-optimization/11320
10101 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10102 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10103 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10104 current_sched_info->compute_jump_reg_dependencies. Record which
10105 registers are used and which registers are set by the jump.
10106 Clear deps->reg_conditional_sets after a barrier.
10107 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10108 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10109 (init_deps): Initialize reg_conditional_sets.
10110 (free_deps): Clear reg_conditional_sets.
10111 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10112 Mark registers live on entry of the fallthrough block and conditionally
10113 set as set by the jump. Mark registers live on entry of non-fallthrough
10114 blocks as used by the jump.
10115 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10116 Mark new parameters as unused.
10117
10118 2011-07-14 Andrew Pinski <pinskia@gmail.com>
10119
10120 PR tree-opt/49309
10121 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10122 Use fold_build2_loc instead of build2.
10123 Use the correct type for the new tree.
10124
10125 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10126
10127 PR rtl-optimization/11320
10128 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10129 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10130
10131 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10132
10133 PR target/49487
10134 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10135 of REG.
10136 (*rotw<mode>): Use const_int_operand for operand2.
10137 Use match_scatch for operand3.
10138 (*rotb<mode>): Ditto
10139 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10140
10141 2011-07-14 Richard Guenther <rguenther@suse.de>
10142
10143 PR tree-optimization/49651
10144 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10145 handle dereferences with subvariables.
10146
10147 2011-07-14 Richard Guenther <rguenther@suse.de>
10148
10149 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10150 (fold_stmt_1): Do it here directly on gimple and as a first thing.
10151
10152 2011-07-14 Richard Guenther <rguenther@suse.de>
10153
10154 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10155 not bool_var when folding bool_var != 1 or bool_var == 0.
10156
10157 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10158
10159 * haifa-sched.c (schedule_insns): Remove outdated comment.
10160 (schedule_block): When computing a known value for TODO_SPEC,
10161 just set it rather than using logical operations.
10162 (try_ready): Likewise. Use a local variable rather than a
10163 pointer to TODO_SPEC. Reorder an if statement to move the
10164 easy case to the then block.
10165 * sched-deps.c (dep_spec_p): New static function.
10166 (update_dep): Use it to decide whether to call
10167 change_spec_dep_to_hard.
10168 (get_back_and_forw_lists): Use it.
10169 (sd_resolve_dep): Likewise.
10170 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10171 (haifa_note_mem_dep): Likewise.
10172 (check_dep): Likewise.
10173 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10174 (sched_free_deps): Free in two passes.
10175
10176 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
10177
10178 PR middle-end/49736
10179 * expr.c (all_zeros_p): Undo bogus part of last change.
10180
10181 2011-07-14 Matthias Klose <doko@ubuntu.com>
10182
10183 * doc/extend.texi (optimize attribute): Fix typo.
10184
10185 2011-07-14 Richard Guenther <rguenther@suse.de>
10186
10187 * gimplify.c (gimplify_expr): Only do required conversions.
10188
10189 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10190
10191 PR target/43746
10192 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10193 i.e. use default_elf_select_section.
10194 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10195 (READONLY_DATA_SECTION_ASM_OP): Remove.
10196 (TARGET_ASM_NAMED_SECTION): Move from here...
10197 * config/avr/avr.c: ...to here.
10198 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10199 (avr_asm_named_section): Make static.
10200
10201 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10202
10203 PR bootstrap/49739
10204 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10205 and crtfastmath.o for Linux/x86.
10206
10207 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10208
10209 * haifa-sched.c: Include "hashtab.h"
10210 (sched_no_dce): New global variable.
10211 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10212 SHADOW_P): New macros.
10213 (last_clock_var, cycle_issued_insns): Move declarations.
10214 (must_backtrack): New static variable.
10215 (struct delay_pair): New structure.
10216 (delay_htab, delay_htab_i2): New static variables.
10217 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10218 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10219 functions.
10220 (dep_cost_1): If delay pairs exist, try to look up the insns and
10221 use the correct pair delay if we find them.
10222 (rank-for_schedule): Tweak priority for insns that must be scheduled
10223 soon to avoid backtracking.
10224 (queue_insn): Detect conditions which force backtracking.
10225 (ready_add): Likewise.
10226 (struct sched_block_state): Add member shadows_only_p.
10227 (struct haifa_save_data): New structure.
10228 (backtrack_queue): New static variable.
10229 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10230 unschedule_insns_until, restore_last_backtrack_point,
10231 free_topmost_backtrack_point, free_backtrack_queue,
10232 estimate_insn_tick, estimate_shadow_tick): New functions.
10233 (prune_ready_list): New arg shadows_only_p. All callers changed.
10234 If true, remove everything that isn't SHADOW_P. Look up delay
10235 pairs and estimate ticks to avoid scheduling the first insn too early.
10236 (verify_shadows): New function.
10237 (schedule_block): Add machinery to enable backtracking.
10238 (sched_init): Take sched_no_dce into account when setting
10239 DF_LR_RUN_DCE.
10240 (free_delay_pairs): New function.
10241 (init_h_i_d): Initialize INSN_EXACT_TICK.
10242 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10243 * sched-deps.c (sd_unresolve_dep): New function.
10244 * sched-int. (struct haifa_sched_info): New fields save_state
10245 and restore_state.
10246 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10247 feeds_backtrack_insn and shadow_p.
10248 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10249 (sched_no_dce): Declare variable.
10250 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10251 sd_unresolve_dep): Declare functions.
10252 * modulo-sched.c (sms_sched_info): Clear the two new fields.
10253 * sched-rgn.c (rgn_const_sched_info): Likewise.
10254 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10255 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10256 (ebb_sched_info): Add them for the two new fields.
10257 (add_deps_for_risky_insns): Call add_delay_dependencies.
10258
10259 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10260
10261 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10262 Rename -mr11.
10263 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10264 (rs6000_call_indirect_aix): Ditto.
10265 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10266 (call_indirect_aix<ptrsize>_internal): Ditto.
10267 (call_indirect_aix<ptrsize>_nor11): Ditto.
10268 (call_indirect_aix<ptrsize>_internal2): Ditto.
10269 (call_value_indirect_aix<ptrsize>): Ditto.
10270 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10271 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10272 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10273 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10274
10275 2011-07-13 Jason Merrill <jason@redhat.com>
10276
10277 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10278
10279 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10280
10281 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10282 * config/spu/spu.md ("clrsb<mode>2"): New expander.
10283
10284 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
10285
10286 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10287 * configure: Regenerate.
10288
10289 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10290
10291 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10292 (asm_file_start): Remove.
10293 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10294 free_bb_for_insn around code that modifies insns before
10295 restarting df analysis.
10296
10297 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10298
10299 PR target/49541
10300 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
10301 (LINK_SPEC): ... here.
10302
10303 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10304
10305 * haifa-sched.c (struct sched_block_state): New.
10306 (schedule_block): Move some local variables into such a structure.
10307
10308 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10309
10310 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10311 * config/i386/t-crtpc: Remove.
10312 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10313 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10314 tmake_file.
10315 (x86_64-*-darwin*): Likewise.
10316 (i[34567]86-*-linux*): Likewise.
10317 (x86_64-*-linux*): Likewise.
10318
10319 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10320 Handle -mpc32, -mpc64, -mpc80.
10321
10322 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10323
10324 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10325 * config/alpha/t-crtfm: Remove.
10326 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10327 * config/i386/t-crtfm: Remove.
10328 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10329 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10330 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10331 * config/sparc/t-crtfm: Remove.
10332
10333 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10334 (alpha*-*-freebsd*): Likewise.
10335 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10336 (x86_64-*-darwin*): Likewise.
10337 (i[34567]86-*-linux*): Likewise.
10338 (x86_64-*-linux*): Likewise.
10339 (x86_64-*-mingw*): Likewise.
10340 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10341 (ia64*-*-freebsd*): Likewise.
10342 (ia64*-*-linux*): Likewise.
10343 (mips64*-*-linux*): Likewise.
10344 (mips*-*-linux*): Likewise.
10345 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10346 (sparc64-*-linux*): Likewise.
10347 (sparc64-*-freebsd*): Likewise.
10348
10349 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10350
10351 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10352 * config/darwin-crt3.c: Move to ../libgcc/config.
10353 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10354 ($(T)crt3$(objext)): Remove.
10355 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10356 ($(T)crt2$(objext)): Remove.
10357 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10358 (powerpc64-*-darwin*): Likewise.
10359
10360 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
10361
10362 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10363
10364 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10365 (addsi_1_zext): This.
10366
10367 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10368
10369 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10370 * doc/tm.texi: Regenerate.
10371 * target.def (mergeable_rodata_prefix): New defhookpod.
10372 * varasm.c (mergeable_string_section, mergeable_constant_section):
10373 Use it. Allocate name with alloca.
10374
10375 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
10376
10377 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
10378
10379 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
10380
10381 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10382 overlap check.
10383
10384 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
10385
10386 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
10387 (count_type_elements): Delete.
10388 (complete_ctor_at_level_p): Declare.
10389 * expr.c (flexible_array_member_p): New function, split out from...
10390 (count_type_elements): ...here. Make static. Replace allow_flexarr
10391 parameter with for_ctor_p. When for_ctor_p is true, return the
10392 number of elements that should appear in the top-level constructor,
10393 otherwise return an estimate of the number of scalars.
10394 (categorize_ctor_elements): Replace p_must_clear with p_complete.
10395 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
10396 (complete_ctor_at_level_p): New function, borrowing union logic
10397 from old categorize_ctor_elements_1.
10398 (mostly_zeros_p): Return true if the constructor is not complete.
10399 (all_zeros_p): Update call to categorize_ctor_elements.
10400 * gimplify.c (gimplify_init_constructor): Update call to
10401 categorize_ctor_elements. Don't call count_type_elements.
10402 Unconditionally prevent clearing for variable-sized types,
10403 otherwise rely on categorize_ctor_elements to detect
10404 incomplete initializers.
10405
10406 2011-07-13 Richard Guenther <rguenther@suse.de>
10407
10408 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10409 the final type is integral.
10410
10411 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10412
10413 * sched-int.h (struct _dep): Add member cost.
10414 (DEP_COST, UNKNOWN_DEP_COST): New macros.
10415 * sched-deps.c (init_dep_1): Initialize DEP_COST.
10416 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10417 (sched_change_pattern): Reset it for dependent insns.
10418
10419 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10420
10421 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10422 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10423 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10424 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10425 (CRT0_S, MCRT0_S): Remove.
10426 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10427 Remove.
10428 (s-crt0): Remove.
10429 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10430
10431 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
10432
10433 * cse.c (insert_with_costs): Put semi-colon after empty loop body
10434 on the next line.
10435 * emit-rtl.c (push_to_sequence): Likewise.
10436 * haifa-sched.c (max_issue): Likewise.
10437 * matrix-reorg.c (add_allocation_site): Likewise.
10438 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10439 * reload.c (alternative_allows_const_pool_ref): Likewise.
10440 * sched-rgn.c (rgn_add_block): Likewise.
10441 (rgn_fix_recovery_cfg): Likewise.
10442 * tree.c (attribute_list_contained): Likewise.
10443
10444 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
10445
10446 * config/i386/i386.c: Tidy processor feature bitmasks.
10447 (m_P4_NOCONA): New.
10448
10449 2011-07-12 Andrew Pinski <pinskia@gmail.com>
10450
10451 PR rtl-opt/49474
10452 * cprop.c (find_implicit_sets): Correct the condition.
10453
10454 2011-07-12 Richard Henderson <rth@redhat.com>
10455
10456 PR target/49713
10457 * dwarf2out.h (dwarf_frame_regnum): Remove.
10458 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
10459 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
10460 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10461 (execute_dwarf2_frame): Initialize them.
10462 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10463 users of the macros with the variables.
10464 (expand_builtin_dwarf_sp_column): Revert last change.
10465 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
10466 result of DWARF_FRAME_REGNUM into a local variable.
10467
10468 2011-07-12 Richard Henderson <rth@redhat.com>
10469
10470 PR target/49714
10471 * config/i386/i386.c (x86_output_mi_thunk): Use
10472 machopic_indirect_call_target instead of machopic_indirection_name
10473 directly.
10474
10475 2011-07-12 Laurent GUERBY <laurent@guerby.net>
10476 Eric Botcazou <ebotcazou@adacore.com>
10477
10478 * prefix.h: Wrap up in extern "C" block.
10479
10480 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
10481
10482 AMD bdver2 Enablement
10483 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10484 (case ${target}): Add bdver2.
10485 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10486 -march=native recognize bdver2 processors.
10487 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10488 bdver2 def_and_undef
10489 * config/i386/i386.c (struct processor_costs bdver2_cost): New
10490 bdver2 cost table.
10491 (m_BDVER2): New definition.
10492 (m_AMD_MULTIPLE): Includes m_BDVER2.
10493 (initial_ix86_tune_features): Add bdver2 tuning.
10494 (processor_target_table): Add bdver2 entry.
10495 (static const char *const cpu_names): Add bdver2 entry.
10496 (ix86_option_override_internal): Add bdver2 instruction sets.
10497 (ix86_issue_rate): Add bdver2.
10498 (ix86_adjust_cost): Add bdver2.
10499 (has_dispatch): Add bdver2.
10500 * config/i386/i386.h (TARGET_BDVER2): New definition.
10501 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10502 (enum processor_type): Add PROCESSOR_BDVER2.
10503 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10504 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10505 description.
10506
10507 2011-07-12 Richard Henderson <rth@redhat.com>
10508
10509 PR target/49714
10510 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10511 destination address in memory on some paths.
10512
10513 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
10514
10515 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10516 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10517 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10518 * function.c (locate_and_pad_parm): Take it into account.
10519 * target.def (function_arg_round_boundary): New hook.
10520 * targhooks.c (default_function_arg_round_boundary): New function.
10521 * targhooks.h (default_function_arg_round_boundary): Declare.
10522 * doc/tm.texi: Regenerate.
10523
10524 2011-07-12 Richard Guenther <rguenther@suse.de>
10525
10526 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10527 Do not perform no-op changes.
10528
10529 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
10530
10531 * config/arm/predicates.md (neon_struct_operand): Make a normal
10532 predicate.
10533 (neon_struct_or_register_operand): New predicate.
10534 * config/arm/neon.md (movmisalign<mode>): Replace predicates
10535 with neon_struct_or_register_operand.
10536 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10537 neon_struct_operand instead of memory_operand.
10538
10539 2011-07-12 Martin Jambor <mjambor@suse.cz>
10540
10541 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10542 * cgraph.c (cgraph_get_node_or_alias): Removed.
10543 (change_decl_assembler_name): Changed all calls to
10544 cgraph_get_node_or_alias to a call to cgraph_get_node.
10545 (cgraph_make_decl_local): Likewise.
10546 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10547 * varasm.c (default_binds_local_p_1): Likewise.
10548 (decl_binds_to_current_def_p): Likewise.
10549
10550 2011-07-12 Jakub Jelinek <jakub@redhat.com>
10551
10552 PR tree-optimization/49712
10553 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10554
10555 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
10556
10557 * genautomata.c (add_arc): Return void. All callers changed.
10558 (make_automaton): Remove dead code.
10559
10560 2011-07-11 Richard Henderson <rth@redhat.com>
10561
10562 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
10563 (DW_FRAME_POINTER_REGNUM): New.
10564 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
10565 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
10566 (dwf_regno): New.
10567 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
10568 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
10569 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
10570 Use it.
10571 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
10572 * dwarf2out.h (dwarf_frame_regnum): New.
10573 (struct cfa_loc): Document the domain of the reg member.
10574
10575 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
10576
10577 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
10578 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
10579
10580 2011-07-11 Jakub Jelinek <jakub@redhat.com>
10581
10582 PR debug/49676
10583 * dwarf2out.c (int_shift_loc_descriptor): New function.
10584 (int_loc_descriptor): If shorter, emit i as
10585 (i >> shift), shift, DW_OP_shl for suitable shift value.
10586 Similarly, try to optimize large negative values using
10587 DW_OP_neg of a positive value if shorter.
10588 (size_of_int_shift_loc_descriptor): New function.
10589 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
10590 changes.
10591 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
10592 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
10593 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
10594 is shorter.
10595 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
10596 addend as added DW_OP_plus if it is shorter.
10597
10598 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10599
10600 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
10601 (DTORS_SECTION_ASM_OP): Define.
10602
10603 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10604
10605 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
10606 * config/t-dfprules: Move to ../libgcc/config.
10607 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10608 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10609 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
10610 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
10611 Likewise.
10612 (i[34567]86-*-cygwin*): Likewise.
10613 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
10614 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
10615 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
10616 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
10617 D64PBIT_FUNCS, D128PBIT_FUNCS.
10618
10619 2011-07-11 Richard Guenther <rguenther@suse.de>
10620
10621 * tree-vrp.c (simplify_conversion_using_ranges): Manually
10622 translate the source value-range through the conversion chain.
10623
10624 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
10625
10626 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
10627
10628 2011-07-11 Arthur Loiret <aloiret@debian.org>
10629
10630 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
10631 a bi-arch compiler defaulting to 31-bit. In this case:
10632 (tmake_file): Add s390/t-linux64.
10633 * doc/install.texi: Add s390-linux to the list of targets supporting
10634 --enable-targets=all.
10635
10636 2011-07-11 Arthur Loiret <aloiret@debian.org>
10637 Matthias Klose <doko@debian.org>
10638
10639 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
10640 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
10641 (tm_file): Add mips/linux64.h.
10642 (tmake_file): Add mips/t-linux64.
10643 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10644 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
10645 instead of hardcoded mabi=n32.
10646 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10647 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10648 convention.
10649
10650 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10651
10652 * passes.c (init_optimization_passes): Add invariant motion pass
10653 after induction variable optimization.
10654
10655 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
10656
10657 PR target/39633
10658 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
10659 offsets 1..5 set cc0 in a usable way.
10660
10661 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
10662
10663 * tree.h (call_expr_arg): Remove.
10664 (call_expr_argp): Likewise.
10665
10666 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
10667
10668 * config/sparc/sparc.md (save_register_window_1): Rename to...
10669 (window_save): ...this.
10670 * config/sparc/sparc.c (emit_save_register_window): Rename to...
10671 (emit_window_save): ...this.
10672 (sparc_expand_prologue): Adjust to above renaming.
10673
10674 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
10675
10676 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
10677 of movabs for x32.
10678
10679 2011-07-10 Richard Henderson <rth@redhat.com>
10680
10681 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
10682 run final, instead of emitting text directly.
10683
10684 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
10685
10686 * config/i386/i386.c (ix86_option_override_internal): Turn on
10687 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
10688 small PIC models for TARGET_X32.
10689
10690 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
10691
10692 PR target/49684
10693 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
10694 $(LIBGCC2_CFLAGS).
10695
10696 PR bootstrap/49680
10697 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
10698 stray notes and debug insns by using prev_nonnote_nondebug_insn
10699 instead of PREV_INSN.
10700
10701 2011-07-09 Richard Henderson <rth@redhat.com>
10702
10703 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
10704 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
10705 * dwarf2out.c: ... here.
10706 (output_all_cfis): Remove.
10707 (dwarf2out_switch_text_section): Use output_cfis directly.
10708 (size_of_locs): Export.
10709 (output_loc_sequence, output_loc_sequence_raw): Export.
10710 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
10711 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
10712 output_cfa_loc_raw): Move to ...
10713 * dwarfcfi.c: ... here.
10714 * dwarf2out.h: Update decls.
10715
10716 2011-07-09 Richard Henderson <rth@redhat.com>
10717
10718 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
10719 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
10720 * dwarf2cfi.c: ... here.
10721 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
10722 (DWARF_ROUND, DWARF_CIE_ID): Remove.
10723 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
10724 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
10725 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
10726
10727 2011-07-09 Richard Henderson <rth@redhat.com>
10728
10729 * dwarf2cfi.c (cie_return_save): New.
10730 (queue_reg_save): Use compare_reg_or_pc.
10731 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
10732 (dwarf2out_frame_debug_expr): Likewise.
10733 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
10734 (initial_return_save): Likewise.
10735 (execute_dwarf2_frame): Save and restore initial return save from
10736 the cie to the fde.
10737 * config/mips/mips.c (mips_frame_set): Remove special case for
10738 DWARF_FRAME_RETURN_COLUMN.
10739
10740 2011-07-09 Richard Henderson <rth@redhat.com>
10741
10742 * dwarf2cfi.c (lookup_cfa): Remove.
10743 (execute_dwarf2_frame): Assert queues are empty on entry.
10744 Setup initial cfa directly, not via lookup_cfa.
10745 Don't clear args_size state here.
10746
10747 2011-07-09 Richard Henderson <rth@redhat.com>
10748
10749 * dwarf2cfi.c (add_cfi_vec): New.
10750 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
10751 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
10752 (execute_dwarf2_frame): Set add_cfi_vec.
10753
10754 2011-07-09 Richard Henderson <rth@redhat.com>
10755
10756 * defaults.h (ASM_COMMENT_START): Move here...
10757 * dwarf2asm.c: ... from here.
10758 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
10759 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
10760 * varasm.c: Likewise.
10761
10762 2011-07-09 Richard Henderson <rth@redhat.com>
10763
10764 PR debug/49686
10765 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
10766 (create_cfi_notes): ... do it here instead.
10767
10768 2011-07-09 Jakub Jelinek <jakub@redhat.com>
10769
10770 PR debug/49676
10771 * dwarf2out.c (size_of_int_loc_descriptor): New function.
10772 (address_of_int_loc_descriptor): Use it.
10773 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
10774
10775 2011-07-09 Richard Henderson <rth@redhat.com>
10776
10777 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
10778 (prologue, epilogue): New.
10779 (return, *rts): New.
10780 (blockage, setd, seti): New.
10781 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10782 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
10783 (pdp11_saved_regno): New.
10784 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
10785 generate rtl instead of text.
10786 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
10787 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
10788 * config/pdp11/pdp11-protos.h: Update.
10789
10790 2011-07-09 Richard Henderson <rth@redhat.com>
10791
10792 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
10793 try to insert an rtl prologue here.
10794 (rs6000_output_function_epilogue): Similarly.
10795 * config/rs6000/rs6000.md (prologue): Emit a barrier to
10796 satisfy !TARGET_SCHED_PROLOG.
10797 (epilogue, sibcall_epilogue): Likewise.
10798
10799 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
10800
10801 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
10802 (FP_REG_P): Delete.
10803 (IN_OR_GLOBAL_P): Likewise.
10804
10805 2011-07-08 Jason Merrill <jason@redhat.com>
10806
10807 PR c++/45437
10808 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
10809 compound assignment.
10810
10811 * cgraph.c (cgraph_add_to_same_comdat_group): New.
10812 * cgraph.h: Declare it.
10813 * ipa.c (function_and_variable_visibility): Make sure thunks
10814 have the right visibility.
10815
10816 2011-07-08 Richard Henderson <rth@redhat.com>
10817
10818 PR bootstrap/49680
10819 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
10820 any tablejump vector.
10821
10822 PR bootstrap/49680
10823 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
10824 end of the prologue.
10825
10826 2011-07-08 Jakub Jelinek <jakub@redhat.com>
10827
10828 PR target/49621
10829 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
10830 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
10831 * config/rs6000/vector.md (vector_select_<mode>,
10832 vector_select_<mode>_uns): Change second operand of NE to
10833 CONST0_RTX (<MODE>mode) instead of const0_rtx.
10834 * config/rs6000/altivec.md (*altivec_vsel<mode>,
10835 *altivec_vsel<mode>_uns): Expect second operand of NE to be
10836 zero_constant of the corresponding vector mode.
10837 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
10838 Likewise.
10839
10840 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
10841
10842 * graphite-dependences.c (build_alias_set_powerset): Remove
10843 continue from loop, add one more assert.
10844
10845 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
10846
10847 PR target/46779
10848 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
10849 In particular, allow 8-bit values in r28 and r29.
10850 (avr_hard_regno_scratch_ok): Disallow any register that might be
10851 part of the frame pointer.
10852 (avr_hard_regno_rename_ok): Same.
10853 (avr_legitimate_address_p): Don't allow SUBREGs.
10854
10855 2011-07-08 Julian Brown <julian@codesourcery.com>
10856
10857 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
10858 big-endian mode.
10859 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
10860 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
10861 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
10862 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
10863 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
10864 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
10865 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
10866 registers in big-endian mode.
10867
10868 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
10869
10870 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
10871 in terms of another.
10872 (write_attr_value): Write a cast if necessary.
10873
10874 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
10875 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
10876 (REG_WORDS_BIG_ENDIAN): Document.
10877 * doc/tm.texi: Regenerate.
10878 * reload.c (operands_match_p): Take it into account.
10879 (reload_adjust_reg_for_mode): Likewise.
10880 * rtlanal.c (subreg_get_info): Likewise.
10881
10882 2011-07-08 Richard Guenther <rguenther@suse.de>
10883
10884 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
10885 folding.
10886
10887 2011-07-08 Kai Tietz <ktietz@redhat.com>
10888
10889 * fold-const.c (fold_truth_andor): Factored out truth_andor
10890 label from fold_binary as function.
10891 (fold_binary_loc): Replace truth_andor lable
10892 by function fold_truth_andor.
10893
10894 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
10895
10896 PR middle-end/49519
10897 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
10898 check if address is stored in register. If so - give up.
10899 (check_sibcall_argument_overlap_1): Do not perform check of
10900 overlapping when it is call to address.
10901
10902 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
10903
10904 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
10905 of magic '31'.
10906
10907 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
10908
10909 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
10910 GET_MODE_BITSIZE where appropriate.
10911 (widen_leading, expand_parity, expand_ctz, expand_ffs,
10912 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
10913 expand_float, expand_fix): Likewise.
10914 * expr.c (convert_move, convert_modes, expand_expr_real_2,
10915 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10916 * stor-layout.c (get_mode_bounds): Likewise.
10917 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
10918 Likewise.
10919 * convert.c (convert_to_integer): Likewise.
10920 * expmed.c (expand_shift_1): Likewise.
10921
10922 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
10923 a bitsize.
10924
10925 * optabs.c (expand_binop): Tighten conditions for doubleword
10926 expansions.
10927 (widen_bswap): Assert that mode bitsize and precision are the same.
10928 * stor-layout.c (get_best_mode): Skip modes that have lower
10929 precision than bitsize.
10930 * recog.c (simplify_while_replacing): Assert that bitsize and
10931 precision are the same.
10932
10933 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10934
10935 * Makefile.in (LIBGCOV): Remove.
10936 (libgcc.mvars): Remove LIBGCOV.
10937 * libgov.c: Move to ../libgcc.
10938
10939 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10940
10941 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
10942
10943 2011-07-08 Martin Jambor <mjambor@suse.cz>
10944
10945 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
10946 is too big for total scalarization.
10947
10948 2011-07-07 Richard Henderson <rth@redhat.com>
10949
10950 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
10951 (DBX_DEBUGGING_INFO): Undef.
10952
10953 2011-07-07 Richard Henderson <rth@redhat.com>
10954
10955 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
10956 Handle some opcodes specially for debugging.
10957 * print-rtl.c: Include dwarf2out.h
10958 (print_rtx): Handle NOTE_INSN_CFI.
10959 * Makefile.in (print-rtl.o): Update.
10960
10961 2011-07-07 Richard Henderson <rth@redhat.com>
10962
10963 * tree-pass.h (pass_dwarf2_frame): Declare.
10964 * passes.c (init_optimization_passes): Add it.
10965 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
10966 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
10967 make static, do not call add_cfis_to_fde.
10968 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
10969 dwarf2out_frame_init): Merge into...
10970 (execute_dwarf2_frame): ... here. New function.
10971 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
10972 saved_do_cfi_asm to a tri-state variable.
10973 (gate_dwarf2_frame, pass_dwarf2_frame): New.
10974 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
10975 if it has yet to be done. Don't call dwarf2cfi_function_init.
10976 * dwarf2out.h, debug.h: Update decls.
10977 * final.c (final_start_function): Don't call
10978 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
10979 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
10980 * toplev.c (lang_dependent_init): Likewise.
10981
10982 2011-07-07 Richard Henderson <rth@redhat.com>
10983
10984 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
10985 FDE_TABLE_INCREMENT): Replace with...
10986 (fde_vec): ... this, a new vector.
10987 (current_fde): Remove. Replace all users with cfun->fde.
10988 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
10989 (size_of_aranges, dwarf2out_finish): Likewise.
10990 (dwarf2out_alloc_current_fde): Break out from ...
10991 (dwarf2out_begin_prologue): ... here.
10992 (dwarf2out_frame_init): Remove.
10993 * dwarf2cfi.c: Update all users of current_fde.
10994 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
10995 * dwarf2out.h: Update decls.
10996 (dw_fde_node): Add fde_index member.
10997 * function.h (struct function): Add fde member.
10998
10999 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11000 Richard Henderson <rth@redhat.com>
11001
11002 * dwarf2cfi.c (add_cfi): Remove.
11003 (dwarf2out_cfi_label): Remove force argument. Only generate the
11004 label name.
11005 (add_fde_cfi): Simplify the different code paths.
11006 (add_cie_cfi): New.
11007 (old_cfa, old_cfa_remember): New.
11008 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11009 (last_reg_save_label): Remove.
11010 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11011 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11012 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11013 dwarf2out_frame_debug_cfa_expression,
11014 dwarf2out_frame_debug_cfa_restore,
11015 dwarf2out_frame_debug_cfa_window_save,
11016 dwarf2out_frame_debug_expr): Remove label parameter.
11017 (cfi_label_required_p, add_cfis_to_fde): New.
11018 (dwarf2out_frame_debug_after_prologue): New.
11019 (dwarf2cfi_frame_init): Initialize old_cfa.
11020 (dwarf2out_frame_debug_restore_state): Likewise.
11021 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11022 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11023 * final.c (final_start_function): Call
11024 dwarf2out_frame_debug_after_prologue.
11025
11026 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11027 Richard Henderson <rth@redhat.com>
11028
11029 * dwarf2cfi.c (cfi_insn): New.
11030 (dwarf2out_cfi_label): Don't emit cfi label here.
11031 (add_fde_cfi): Create a NOTE_INSN_CFI.
11032 (dwarf2out_frame_debug): Setup cfi_insn.
11033 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11034 (dwarf2out_cfi_begin_epilogue): Make static.
11035 (dwarf2out_frame_debug_restore_state): Make static.
11036 * dwarf2out.c (output_cfi_directive): Make static.
11037 (dwarf2out_emit_cfi): New.
11038 * dwarf2out.h: Update.
11039 * final.c (final): Remove CFI notes.
11040 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11041 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11042 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11043 * insn-notes.def (NOTE_INSN_CFI): New.
11044 (NOTE_INSN_CFI_LABEL): New.
11045 * rtl.h (union rtunion_def): Add rt_cfi member.
11046 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11047
11048 2011-07-07 Richard Henderson <rth@redhat.com>
11049
11050 * dwarf2cfi.c: New file.
11051 * Makefile.in (OBJS): Add it.
11052 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11053 * gengtype.c (open_base_files): Include dwarf2out.h.
11054 * coretypes.h (enum var_init_status): Move from ...
11055 * rtl.h: ... here.
11056 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11057 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11058 expand_builtin_dwarf_sp_column, init_return_column_size,
11059 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11060 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11061 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11062 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11063 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11064 compute_barrier_args_size, dwarf2out_args_size,
11065 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11066 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11067 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11068 queue_reg_save, dwarf2out_flush_queued_reg_saves,
11069 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11070 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11071 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11072 dwarf2out_frame_debug_cfa_expression,
11073 dwarf2out_frame_debug_cfa_restore,
11074 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11075 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11076 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11077 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11078 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11079 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11080 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11081 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11082 dw_loc_descr_node): Move to dwarf2out.h.
11083 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11084 mem_loc_descriptor): Export.
11085 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
11086 (dwarf2out_frame_init): Extract CIE generation code to
11087 dwarf2cfi_frame_init.
11088
11089 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
11090
11091 PR target/49660
11092 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11093 MASK_V8PLUS, remove commented out flag and reorder.
11094
11095 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11096
11097 PR c/49644
11098 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11099 one non-complex and one complex argument, call c_save_expr on both
11100 operands.
11101
11102 2011-07-07 Martin Jambor <mjambor@suse.cz>
11103
11104 PR middle-end/49495
11105 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11106 (verify_cgraph_node): Some functinality moved to
11107 verify_edge_corresponds_to_fndecl, call it.
11108
11109 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11110
11111 * config.gcc (*local*): Remove.
11112 * doc/install-old.texi: Don't mention local configurations.
11113
11114 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11115
11116 PR debug/49522
11117 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11118 referencing debug insns that have been reset.
11119 (dead_debug_insert_before): Don't assert reg is non-NULL,
11120 instead return immediately if it is NULL.
11121
11122 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11123
11124 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11125
11126 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11127
11128 * hw-doloop.c: New file.
11129 * hw-doloop.h: New file.
11130 * Makefile.in (OBJS): Add hw-doloop.o.
11131 (hw-doloop.o): New rule.
11132 ($(obj_out_file)): Add hw-doloop.h dependency.
11133 * config/bfin/bfin.c: Include "hw-doloop.h".
11134 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11135 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11136 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
11137 type changed to hwloop_info. Return bool, true if the loop was
11138 successfully optimized. Remove code that was moved to
11139 hw-doloop.c, and adjust other parts.
11140 (hwloop_fail): New static function, containing parts that used
11141 to be in bfin_optimize_loop.
11142 (bfin_discover_loop, bfin_discover_loops, free_loops,
11143 bfin_reorder_loops): Remove.
11144 (hwloop_pattern_reg): New static function.
11145 (bfin_doloop_hooks): New variable.
11146 (bfin_reorg_loops): Remove most code, call reorg_loops.
11147 * config/bfin/bfin.md (doloop_end splitter): Also enable if
11148 loop counter is a memory_operand.
11149
11150 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
11151
11152 * config.gcc: Support --with-multilib-list for x86 Linux targets.
11153
11154 * configure.ac: Mention x86-64 for --with-multilib-list.
11155 * configure: Regenerated.
11156
11157 * config/i386/gnu-user64.h (SPEC_64): Support x32.
11158 (SPEC_32): Likewise.
11159 (ASM_SPEC): Likewise.
11160 (LINK_SPEC): Likewise.
11161 (TARGET_THREAD_SSP_OFFSET): Likewise.
11162 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11163 (SPEC_X32): New.
11164
11165 * config/i386/i386.h (TARGET_X32): New.
11166 (TARGET_LP64): New.
11167 (LONG_TYPE_SIZE): Likewise.
11168 (POINTER_SIZE): Likewise.
11169 (POINTERS_EXTEND_UNSIGNED): Likewise.
11170 (OPT_ARCH64): Support x32.
11171 (OPT_ARCH32): Likewise.
11172
11173 * config/i386/i386.opt (mx32): New.
11174
11175 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11176 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11177 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11178 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11179
11180 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11181 (BIONIC_DYNAMIC_LINKERX32): Likewise.
11182 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11183
11184 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11185
11186 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11187
11188 * doc/invoke.texi: Document -mx32.
11189
11190 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11191
11192 * doc/invoke.texi (mwords-little-endian): Deprecate.
11193 * config/arm/arm.opt (mwords-little-endian): Likewise.
11194 * config/arm/arm.c (arm_option_override): Warn about the deprecation
11195 of -mwords-little-endian.
11196
11197 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11198
11199 * reload1.c (choose_reload_regs): Use mode sizes to check whether
11200 an old reload register completely defines the required value.
11201
11202 2011-07-07 Richard Guenther <rguenther@suse.de>
11203
11204 * fold-const.c (fold_unary_loc): Do not strip sign-changes
11205 for NEGATE_EXPR.
11206
11207 2011-07-07 Richard Guenther <rguenther@suse.de>
11208
11209 * tree-vrp.c (simplify_conversion_using_ranges): New function.
11210 (simplify_stmt_using_ranges): Call it.
11211
11212 2011-07-07 Kai Tietz <ktietz@redhat.com>
11213
11214 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11215 (lookup_logical_inverted_value): Likewise.
11216 (simplify_bitwise_binary_1): Likewise.
11217 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11218
11219 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11220
11221 * gcc.c (%[Spec]): Don't document.
11222 (struct spec_list): Update comment.
11223 (do_spec_1): Don't handle %[Spec].
11224 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11225
11226 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11227
11228 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11229 default based on TARGET_ASM_NAMED_SECTION.
11230 * common/common-target.def (have_named_sections): Default to true.
11231 * common/config/default-common.c: Don't include tm.h.
11232 * common/config/picochip/picochip-common.c
11233 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11234 * common/config/m32c/m32c-common.c: Remove.
11235 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11236 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11237 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11238 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11239 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11240 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11241 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11242
11243 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11244
11245 PR middle-end/49640
11246 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11247 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11248
11249 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11250
11251 PR libmudflap/49550
11252 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11253
11254 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11255
11256 PR target/39150
11257 * configure.ac (gcc_cv_as_hidden): Also accept
11258 x86_64-*-solaris2.1[0-9]*.
11259 (gcc_cv_as_cfi_directive): Likewise.
11260 (gcc_cv_as_comdat_group_group): Likewise.
11261 (set_have_as_tls): Likewise.
11262 * configure: Regenerate.
11263 * config.gcc (i[34567]86-*-solaris2*): Also handle
11264 x86_64-*-solaris2.1[0-9]*.
11265 * config.host (i[34567]86-*-solaris2*): Likewise.
11266 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11267 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11268 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11269 (TARGET_LD_EMULATION): Use it.
11270 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11271 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11272 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11273 (ASM_CPU64_DEFAULT_SPEC): Define.
11274 (ASM_CPU_SPEC): Use %(asm_cpu_default).
11275 (ASM_SPEC): Redefine.
11276 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11277 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11278 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11279 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11280 configuration.
11281 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11282
11283 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11284
11285 * config/sol2.h (ASM_SPEC): Split into ...
11286 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11287 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11288 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11289 (ASM_SPEC): Use ASM_SPEC_BASE.
11290 * config/sparc/sol2.h (ASM_SPEC): Redefine.
11291
11292 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
11293
11294 * config/avr/avr.md (*reload_insi): Change predicate #1 to
11295 const_int_operand. Ditto for peep2 producing this insn.
11296 Add argument to output_reload_insisf call.
11297 (*movsi,*movsf): Add argument to output_movsisf call.
11298 (*reload_insf): New insn and new peep2 to produce it.
11299 * config/avr/avr-protos.h (output_movsisf): Change prototype.
11300 (output_reload_insisf): Change prototype.
11301 * config/avr/avr.c (avr_asm_len): New function.
11302 (output_reload_insisf): Rewrite.
11303 (output_movsisf): Change prototype. output_reload_insisf for
11304 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
11305 (adjust_insn_length): Add argument to output_movsisf and
11306 output_reload_insisf call.
11307
11308 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11309
11310 * emit-rtl.c (paradoxical_subreg_p): New function.
11311 * rtl.h (paradoxical_subreg_p): Declare.
11312 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11313 apply_distributive_law, simplify_comparison, simplify_set): Use it.
11314 * cse.c (record_jump_cond, cse_insn): Likewise.
11315 * expr.c (force_operand): Likewise.
11316 * rtlanal.c (num_sign_bit_copies1): Likewise.
11317 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11318 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11319 (push_reload): Use precision to check for paradoxical subregs.
11320 * expmed.c (extract_bit_field_1): Likewise.
11321
11322 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11323 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11324 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11325 simplify_set, simplify_logical, expand_compound_operation,
11326 make_extraction, force_to_mode, if_then_else_cond, extended_count,
11327 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11328 record_value_for_reg): Likewise.
11329 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11330 * simplify-rtx. c (simplify_unary_operation_1,
11331 simplify_binary_operation_1, simplify_const_relational_operation):
11332 Likewise.
11333
11334 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11335 instead of GET_MODE_BITSIZE where appropriate.
11336 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11337 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11338 init_num_sign_bit_copies_in_rep): Likewise.
11339 * cse.c (fold_rtx, cse_insn): Likewise.
11340 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11341 * simplify-rtx.c (simplify_unary_operation_1,
11342 simplify_const_unary_operation, simplify_binary_operation_1,
11343 simplify_const_binary_operation, simplify_ternary_operation,
11344 simplify_const_relational_operation, simplify_subreg): Likewise.
11345 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11346 simplify_if_then_else, simplify_set, expand_compound_operation,
11347 expand_field_assignment, make_extraction, if_then_else_cond,
11348 make_compound_operation, force_to_mode, make_field_assignment,
11349 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11350 extended_count, try_widen_shift_mode, simplify_shift_const_1,
11351 simplify_comparison, record_promoted_value, simplify_compare_const,
11352 record_dead_and_set_regs_1): Likewise.
11353
11354 Revert:
11355 * simplify-rtx.c (simplify_const_binary_operation): Use the
11356 shift_truncation_mask hook instead of performing modulo by width.
11357 Compare against mode precision, not bitsize.
11358 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11359 Use shift_truncation_mask instead of constructing the value manually.
11360
11361 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11362
11363 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11364 declaration.
11365 (rs6000_save_toc_in_prologue_p): Ditto.
11366
11367 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11368 up the static chain (r11) during indirect function calls.
11369 (-msave-toc-indirect): New undocumented debug switch.
11370
11371 * config/rs6000/rs6000.c (struct machine_function): Add
11372 save_toc_in_prologue field to note whether the prologue needs to
11373 save the TOC value in the reserved stack location.
11374 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
11375 to save the TOC in the prologue, do so.
11376 (rs6000_trampoline_init): Don't allow creating AIX style
11377 trampolines if -mno-r11 is in effect.
11378 (rs6000_call_indirect_aix): New function to create AIX style
11379 indirect calls, adding support for -mno-r11 to suppress loading
11380 the static chain, and saving the TOC in the prologue instead of
11381 the call body.
11382 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11383 TOC in the prologue.
11384
11385 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11386 register numbers.
11387 (TOC_REGNUM): Ditto.
11388 (STATIC_CHAIN_REGNUM): Ditto.
11389 (ARG_POINTER_REGNUM): Ditto.
11390 (SFP_REGNO): Delete, unused.
11391 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11392 function descriptor offsets.
11393 (TOC_SAVE_OFFSET_64BIT): Ditto.
11394 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11395 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11396 (AIX_FUNC_DESC_SC_32BIT): Ditto.
11397 (AIX_FUNC_DESC_SC_64BIT): Ditto.
11398 (ptrload): New mode attribute for the appropriate load of a pointer.
11399 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11400 (call_indirect_aix64): Ditto.
11401 (call_value_indirect_aix32): Ditto.
11402 (call_value_indirect_aix64): Ditto.
11403 (call_indirect_nonlocal_aix32_internal): Ditto.
11404 (call_indirect_nonlocal_aix32): Ditto.
11405 (call_indirect_nonlocal_aix64_internal): Ditto.
11406 (call_indirect_nonlocal_aix64): Ditto.
11407 (call): Rewrite AIX indirect function calls. Add support for
11408 eliminating the static chain, and for moving the save of the TOC
11409 to the function prologue.
11410 (call_value): Ditto.
11411 (call_indirect_aix<ptrsize>): Ditto.
11412 (call_indirect_aix<ptrsize>_internal): Ditto.
11413 (call_indirect_aix<ptrsize>_internal2): Ditto.
11414 (call_indirect_aix<ptrsize>_nor11): Ditto.
11415 (call_value_indirect_aix<ptrsize>): Ditto.
11416 (call_value_indirect_aix<ptrsize>_internal): Ditto.
11417 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11418 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11419 (call_nonlocal_aix32): Relocate in the rs6000.md file.
11420 (call_nonlocal_aix64): Ditto.
11421
11422 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11423 -mno-r11 documentation.
11424
11425 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11426
11427 PR other/49658
11428 * doc/extend.texi (Compound Literals): Fix typo.
11429
11430 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
11431
11432 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11433
11434 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
11435
11436 * configure.ac (plugin-version.h): Generate
11437 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11438 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11439 macros.
11440
11441 * configure: Regenerate.
11442
11443 * doc/plugins.texi (Building GCC plugins): Mention
11444 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11445
11446 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
11447
11448 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11449 * combine.c (make_extraction, gen_lowpart_or_truncate,
11450 apply_distributive_law, simplify_comparison,
11451 reg_truncated_to_mode, record_truncated_value): Use it.
11452 * cse.c (notreg_cost): Likewise.
11453 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11454 * expr.c (convert_move, convert_modes): Likewise.
11455 * optabs.c (expand_binop, expand_unop): Likewise.
11456 * postreload.c (move2add_last_label): Likewise.
11457 * regmove.c (optimize_reg_copy_3): Likewise.
11458 * rtlhooks.c (gen_lowpart_general): Likewise.
11459 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11460
11461 2011-07-06 Joseph Myers <joseph@codesourcery.com>
11462
11463 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11464
11465 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
11466
11467 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11468 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11469 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11470 (simplify_const_unary_operation, simplify_binary_operation_1,
11471 simplify_const_binary_operation, simplify_const_relational_operation):
11472 Use them. Use GET_MODE_MASK for masking and sign-extensions.
11473 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11474 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11475 simplify_shift_const_1, simplify_comparison): Likewise.
11476 * expr.c (convert_modes): Likewise.
11477 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11478 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11479 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11480
11481 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11482
11483 2011-07-06 Richard Guenther <rguenther@suse.de>
11484
11485 PR tree-optimization/49645
11486 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11487 register variables.
11488 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11489 in type qualification here ...
11490 (copy_reference_ops_from_ref): ... not here.
11491 (vn_reference_lookup_3): ... or here.
11492 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11493 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11494
11495 2011-07-06 Ian Lance Taylor <iant@google.com>
11496
11497 * doc/install.texi (Configuration): It's
11498 --enable-gnu-indirect-function, not --enable-indirect-function.
11499
11500 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
11501
11502 * simplify-rtx.c (simplify_const_binary_operation): Use the
11503 shift_truncation_mask hook instead of performing modulo by width.
11504 Compare against mode precision, not bitsize.
11505 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11506 Use shift_truncation_mask instead of constructing the value manually.
11507
11508 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
11509
11510 PR middle-end/47383
11511 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11512 address computation and convert to address_mode if needed.
11513
11514 2011-07-06 Richard Guenther <rguenther@suse.de>
11515
11516 * tree.c (build_common_tree_nodes_2): Merge with
11517 build_common_tree_nodes.
11518 * tree.h (build_common_tree_nodes): Adjust prototype.
11519 (build_common_tree_nodes_2): Remove.
11520 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11521 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11522
11523 2011-07-05 Jakub Jelinek <jakub@redhat.com>
11524
11525 PR tree-optimization/49618
11526 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11527 t recurse on the decl.
11528 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11529 return true if expr isn't known to be defined in current
11530 TU or some other LTO partition.
11531
11532 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11533
11534 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11535 override CASE_VALUES_THRESHOLD.
11536
11537 * stmt.c (toplevel): Include params.h.
11538 (case_values_threshold): Use the --param case-values-threshold
11539 value if non-zero, otherwise use machine dependent value.
11540 (expand_case): Use case_values_threshold.
11541
11542 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11543
11544 * doc/invoke.texi (--param case-values-threshold): Document.
11545
11546 2011-07-05 Richard Henderson <rth@redhat.com>
11547
11548 * dwarf2out.c (dwarf2out_cfi_label): Make static.
11549 (dwarf2out_flush_queued_reg_saves): Make static.
11550 (dwarf2out_reg_save): Remove.
11551 (dwarf2out_return_save): Remove.
11552 (dwarf2out_return_reg): Remove.
11553 (dwarf2out_reg_save_reg): Remove.
11554 (dwarf2out_def_cfa): Merge into ...
11555 (dwarf2out_frame_init): ... here.
11556 * dwarf2out.h, tree.h: Remove declarations as necessary.
11557
11558 2011-07-05 Richard Henderson <rth@redhat.com>
11559
11560 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
11561 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11562 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
11563 the alloc insn.
11564
11565 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
11566 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
11567 (process_epilogue): Don't call dwarf2out_def_cfa.
11568
11569 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
11570 indicate the return address save.
11571 (process_cfa_register): Likewise.
11572
11573 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
11574 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
11575
11576 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
11577 for ar.pfs save at alloc insn.
11578
11579 2011-07-05 Richard Henderson <rth@redhat.com>
11580
11581 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
11582 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11583 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
11584 stack pointer save.
11585 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
11586 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
11587 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
11588 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
11589
11590 2011-07-05 Richard Henderson <rth@redhat.com>
11591
11592 * config/vax/vax.md (define_c_enum unspecv): New. Define the
11593 VUNSPEC_* constants here instead of via define_constants.
11594 (VUNSPEC_PEM): New constant.
11595 (procedure_entry_mask): New insn.
11596 (prologue): New expander.
11597 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
11598 (vax_expand_prologue): Rename from vax_output_function_prologue;
11599 emit rtl instead of text.
11600 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11601 (print_operand): Add 'x' prefix.
11602
11603 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
11604
11605 PR middle-end/47715
11606 * calls.c (precompute_register_parameters): Promote the function
11607 argument before checking non-legitimate constant.
11608
11609 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11610
11611 PR tree-optimization/47654
11612 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
11613 (lst_do_strip_mine_loop): Return an int.
11614 (lst_do_strip_mine): Same.
11615 (scop_do_strip_mine): Same.
11616 (scop_do_block): Loop blocking should strip-mine at least two loops.
11617 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
11618 (scop_do_interchange): Same.
11619 * graphite-poly.h (scop_do_interchange): Update declaration.
11620 (scop_do_strip_mine): Same.
11621
11622 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11623
11624 * graphite-clast-to-gimple.c (precision_for_value): Removed.
11625 (precision_for_interval): Removed.
11626 (gcc_type_for_interval): Use mpz_sizeinbase.
11627
11628 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11629
11630 * graphite-ppl.h (value_max): Correct computation of max.
11631
11632 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11633
11634 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
11635
11636 2011-07-05 Richard Guenther <rguenther@suse.de>
11637
11638 * c-decl.c (c_init_decl_processing): Defer building common
11639 tree nodes to c_common_nodes_and_builtins.
11640
11641 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
11642
11643 PR tree-optimization/49580
11644 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
11645 the loop's number of iterations.
11646 * tree-parloops.c (transform_to_exit_first_loop): Add the
11647 handling of the loop's number of iterations before the call
11648 to gimple_duplicate_sese_tail.
11649 Insert the stmt caclculating the new rhs of the loop's
11650 condition stmt to the preheader instead of iters_bb.
11651
11652 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
11653
11654 PR rtl-optimization/47449
11655 * fwprop.c (forward_propagate_subreg): Don't propagate hard
11656 register nor zero/sign extended hard register.
11657
11658 2011-07-05 Richard Guenther <rguenther@suse.de>
11659
11660 PR tree-optimization/49518
11661 PR tree-optimization/49628
11662 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
11663 irrelevant and invariant data-references.
11664 (vect_analyze_data_ref_access): For invariant loads clear the
11665 group association.
11666
11667 2011-07-04 Jakub Jelinek <jakub@redhat.com>
11668
11669 PR rtl-optimization/49619
11670 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
11671 pass VOIDmode as op0_mode to recursive call, and return temp even
11672 when different from tor, just if it is not IOR of the original
11673 PLUS arguments.
11674
11675 PR rtl-optimization/49472
11676 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
11677 negating MULT, negate the second operand instead of first.
11678 (simplify_binary_operation_1) <case MULT>: If one operand is
11679 a NEG and the other is MULT, don't attempt to optimize by negation
11680 of the MULT operand if it only moves the NEG operation around.
11681
11682 PR debug/49602
11683 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
11684 get_current_def return value if it can't be trusted to be
11685 the current value of the variable in the current bb.
11686
11687 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
11688
11689 PR target/49600
11690 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
11691 general register to memory for !TARGET_INTER_UNIT_MOVES.
11692
11693 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
11694
11695 PR target/44643
11696 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
11697 instead of TREE_READONLY.
11698
11699 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
11700
11701 * doc/extend.texi (AVR Built-in Functions): Update documentation
11702 of __builtin_avr_fmul*.
11703 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
11704 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
11705 * config/avr/avr.md (fmul): Rename to fmul_insn.
11706 (fmuls): Rename to fmuls_insn.
11707 (fmulsu): Rename to fmulsu_insn.
11708 (fmul,fmuls,fmulsu): New expander.
11709 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
11710 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
11711 * config/avr/libgcc.S (__fmul): New function.
11712 (__fmuls): New function.
11713 (__fmulsu,__fmulsu_exit): New function.
11714
11715 2011-07-04 Richard Guenther <rguenther@suse.de>
11716
11717 PR tree-optimization/49615
11718 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
11719 basic-block index check.
11720
11721 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
11722
11723 * longlong.h (count_leading_zeros, count_trailing_zeros,
11724 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
11725 resp. 64.
11726
11727 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
11728
11729 PR tree-optimization/49610
11730 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
11731 a basic block.
11732
11733 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
11734 Olivier Hainque <hainque@adacore.com>
11735 Nicolas Setton <setton@adacore.com>
11736
11737 * tree.h (TYPE_ARTIFICIAL): New flag.
11738 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
11739 the DIE of the type if it is artificial.
11740 (gen_array_type_die): Likewise.
11741 (gen_enumeration_type_die): Likewise.
11742 (gen_struct_or_union_type_die): Likewise.
11743 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
11744 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
11745
11746 2011-07-01 Jakub Jelinek <jakub@redhat.com>
11747
11748 * tree-object-size.c (pass_through_call): Handle
11749 BUILT_IN_ASSUME_ALIGNED.
11750
11751 2011-07-01 Martin Jambor <mjambor@suse.cz>
11752
11753 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
11754
11755 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
11756
11757 PR middle-end/48016
11758 * explow.c (update_nonlocal_goto_save_area): Use proper mode
11759 for stack save area.
11760 * function.c (expand_function_start): Likewise.
11761
11762 2011-07-01 Richard Guenther <rguenther@suse.de>
11763
11764 PR middle-end/49596
11765 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
11766 may have unknown refs.
11767
11768 2011-07-01 Kai Tietz <ktietz@redhat.com>
11769
11770 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
11771
11772 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11773
11774 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
11775 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
11776 (Specific, mips-sgi-irix6): Likewise.
11777
11778 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11779
11780 PR libmudflap/49549
11781 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
11782
11783 2011-07-01 Jakub Jelinek <jakub@redhat.com>
11784
11785 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
11786 [idx]= and [idx1 ... idx2]= before initializers if needed for
11787 array initializers.
11788
11789 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
11790
11791 * config.gcc (score-*-elf): Remove score7.o.
11792 * config/score/t-score-elf: Likewise.
11793 * config/score/score.c: Merge score7 to score.c and
11794 remove forwarding functions.
11795 * config/score/score7.c: Deleted.
11796 * config/score/score7.h: Deleted.
11797
11798 2011-07-01 Richard Guenther <rguenther@suse.de>
11799
11800 PR tree-optimization/49603
11801 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
11802
11803 2011-06-30 Martin Jambor <mjambor@suse.cz>
11804
11805 * tree-sra.c (struct access): Rename total_scalarization to
11806 grp_total_scalarization
11807 (completely_scalarize_var): New function.
11808 (sort_and_splice_var_accesses): Set total_scalarization in the
11809 representative access.
11810 (analyze_access_subtree): Propagate total scalarization accross the
11811 tree, no holes in totally scalarized trees, simplify coverage
11812 computation.
11813 (analyze_all_variable_accesses): Call completely_scalarize_var instead
11814 of completely_scalarize_record.
11815
11816 2011-06-30 Richard Henderson <rth@redhat.com>
11817
11818 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
11819 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
11820 * config/i386/i386.c: Don't include dwarf2out.h.
11821 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
11822 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
11823 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
11824 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
11825 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
11826
11827 2011-06-30 Richard Henderson <rth@redhat.com>
11828
11829 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
11830 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11831 * final.c (final_scan_insn): Look for it, and invoke
11832 dwarf2out_frame_debug before the insn if found.
11833
11834 2011-06-30 Richard Henderson <rth@redhat.com>
11835
11836 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
11837 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
11838
11839 2011-06-30 Richard Henderson <rth@redhat.com>
11840
11841 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
11842 Define a vector of this type.
11843 (regs_saved_in_regs): Use a VEC.
11844 (num_regs_saved_in_regs): Remove.
11845 (compare_reg_or_pc): New.
11846 (record_reg_saved_in_reg): Split out from...
11847 (dwarf2out_flush_queued_reg_saves): ... here.
11848 (clobbers_queued_reg_save): Update for VEC.
11849 (reg_saved_in): Likewise.
11850 (dwarf2out_frame_debug_init): Likewise.
11851 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
11852 (dwarf2out_frame_debug_cfa_register): Likewise.
11853
11854 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
11855
11856 PR tree-optimization/49572
11857 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
11858 type of the RHS instead of that of the LHS for the expression type.
11859
11860 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
11861
11862 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
11863 unconditionally.
11864
11865 2011-06-30 Richard Guenther <rguenther@suse.de>
11866
11867 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
11868 * tree-ssa-structalias.c (create_variable_info_for): Do not
11869 add initial constraints for non-var-decls. Properly handle
11870 globals in other ltrans partitions.
11871 (intra_create_variable_infos): Manually create constraints for
11872 the fake no-alias parameter.
11873 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
11874 and assert there are no clones.
11875
11876 2011-06-30 Richard Guenther <rguenther@suse.de>
11877
11878 PR tree-optimization/46787
11879 * tree-data-ref.c (dr_address_invariant_p): Remove.
11880 (find_data_references_in_stmt): Invariant accesses are ok now.
11881 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
11882 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11883 invariant loads.
11884
11885 2011-06-30 Martin Jambor <mjambor@suse.cz>
11886
11887 PR tree-optimization/49094
11888 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
11889 (build_accesses_from_assign): Use it.
11890
11891 2011-06-30 Jakub Jelinek <jakub@redhat.com>
11892
11893 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11894 handling of BUILT_IN_ASSUME_ALIGNED.
11895
11896 PR debug/49364
11897 * dwarf2out.c (output_abbrev_section): Don't return early
11898 if abbrev_die_table_in_use is 1.
11899 (dwarf2out_finish): Instead don't call output_abbrev_section
11900 nor emit abbrev_section_label in that case.
11901
11902 2011-06-30 Nick Clifton <nickc@redhat.com>
11903
11904 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
11905 for the V850E.
11906
11907 2011-06-30 Jakub Jelinek <jakub@redhat.com>
11908
11909 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11910 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
11911
11912 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
11913
11914 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
11915 both pattern and original statements if necessary.
11916 (vect_transform_loop): Likewise.
11917 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
11918 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
11919 Mark the pattern statement only if the original statement doesn't
11920 have its own uses.
11921 (process_use): Call vect_mark_relevant with additional parameter.
11922 (vect_mark_stmts_to_be_vectorized): Likewise.
11923 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
11924 (vect_analyze_stmt): Handle both pattern and original statements
11925 if necessary.
11926 (vect_transform_stmt): Don't store vectorized pattern statement
11927 in the original statement.
11928 (vect_is_simple_use_1): Use related pattern statement only if the
11929 original statement is irrelevant.
11930 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11931
11932 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
11933
11934 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
11935 option.
11936 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
11937 entry.
11938 (TARGET_AVX128_OPTIMAL): New definition.
11939 * config/i386/i386.c (initial_ix86_tune_features): Initialize
11940 X86_TUNE_AVX128_OPTIMAL entry.
11941 (ix86_option_override_internal): Enable the generation
11942 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
11943 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
11944 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
11945
11946 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
11947
11948 PR tree-optimization/49539
11949 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
11950 names by means of stmt_references_abnormal_ssa_name.
11951 (associate_plusminus): Call can_propagate_from before propagating
11952 from definition statements.
11953 (ssa_forward_propagate_and_combine): Remove superfluous newline.
11954
11955 2011-06-29 Richard Guenther <rguenther@suse.de>
11956
11957 * doc/invoke.texi: Document -scev dump modifier.
11958 * tree-pass.h (TDF_SCEV): New dump flag.
11959 * tree-dump.c (dump_option_value_in): Add scev.
11960 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
11961 * tree-scalar-evolution.c: Likewise.
11962
11963 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
11964
11965 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
11966 (cxa_type_match): Correct declaration.
11967 (__gnu_unwind_pr_common): Reconstruct additional indirection
11968 when __cxa_type_match returns succeeded_with_ptr_to_base.
11969
11970 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11971
11972 PR rtl-optimization/49114
11973 * reload.c (struct replacement): Remove SUBREG_LOC member.
11974 (push_reload): Do not set it.
11975 (push_replacement): Likewise.
11976 (subst_reload): Remove dead code.
11977 (copy_replacements): Remove assertion.
11978 (copy_replacements_1): Do not handle SUBREG_LOC.
11979 (move_replacements): Likewise.
11980 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
11981 Detect subregs via recursive descent instead of via SUBREG_LOC.
11982
11983 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
11984
11985 * config/avr/avr.c (avr_encode_section_info): Dispatch to
11986 default_encode_section_info.
11987
11988 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
11989
11990 PR tree-optimization/49545
11991 * builtins.c (get_object_alignment_1): Update function comment.
11992 Do not use DECL_ALIGN for functions, but test
11993 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
11994 * fold-const.c (get_pointer_modulus_and_residue): Don't check
11995 for functions here.
11996 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11997
11998 2011-06-29 Jakub Jelinek <jakub@redhat.com>
11999
12000 PR debug/49567
12001 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12002 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12003
12004 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12005
12006 PR target/34734
12007 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12008 about uninitialized data attributed 'progmem' from here...
12009 (avr_encode_section_info): ...to this new function.
12010 (TARGET_ENCODE_SECTION_INFO): New define.
12011 (avr_section_type_flags): For data in ".progmem.data", remove
12012 section flag SECTION_WRITE.
12013
12014 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12015
12016 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12017 _xmulhisi3_exit.
12018 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12019 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
12020 (__umulhisi3): Ditto.
12021 * config/avr/avr.md (mulhisi3): New insn expender.
12022 (umulhisi3): New insn expender.
12023 (*mulhisi3_call): New insn.
12024 (*umulhisi3_call): New insn.
12025
12026 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12027
12028 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12029
12030 2011-06-28 Richard Henderson <rth@redhat.com>
12031
12032 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
12033 all code and arguments that handled pushes. Update all callers.
12034
12035 2011-06-28 Richard Henderson <rth@redhat.com>
12036
12037 * config/arm/arm.c (arm_output_function_prologue): Don't call
12038 thumb1_output_function_prologue.
12039 (arm_expand_prologue): Avoid dead store.
12040 (number_of_first_bit_set): Use ctz_hwi.
12041 (thumb1_emit_multi_reg_push): New.
12042 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12043 to emit the entire prologue as rtl.
12044 (thumb1_output_interwork): Split out from
12045 thumb1_output_function_prologue.
12046 (thumb1_output_function_prologue): Remove.
12047 (arm_attr_length_push_multi): Handle thumb1.
12048 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12049 (prologue_thumb1_interwork): New.
12050 (*push_multi): Allow thumb1; use push_mult_memory_operand.
12051 * config/arm/predicates.md (push_mult_memory_operand): New.
12052
12053 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12054
12055 * config/sparc/sync.md (*stbar): Delete.
12056 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12057
12058 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12059
12060 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12061
12062 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12063
12064 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12065 (TARGET_64BIT_DEFAULT): Define.
12066 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12067 of tm_file.
12068 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12069
12070 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12071
12072 * common.opt (in_lto_p): New Variable entry.
12073 * flags.h (in_lto_p): Move to common.opt.
12074 * gcc.c: Include params.h.
12075 (set_option_handlers): Also use common_handle_option and
12076 target_handle_option.
12077 (main): Call global_init_params, finish_params and init_options_struct.
12078 * opts.c (debug_type_names): Move from toplev.c.
12079 (print_filtered_help): Access quiet_flag through opts pointer.
12080 (common_handle_option): Return early in the driver for some options.
12081 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12082 opts pointer.
12083 * toplev.c (in_lto_p): Move to common.opt.
12084 (debug_type_names): Move to opts.c.
12085 * Makefile.in (OBJS): Remove opts.o.
12086 (OBJS-libcommon-target): Add opts.o.
12087 (gcc.o): Update dependencies.
12088
12089 2011-06-28 Kai Tietz <ktietz@redhat.com>
12090
12091 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12092
12093 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12094
12095 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12096 with '=' constraint modifier.
12097 (*divdf3_vfp): Likewise.
12098 ("*mulsf3_vfp"): Likewise.
12099 ("*muldf3_vfp"): Likewise.
12100 ("*mulsf3negsf_vfp"): Likewise.
12101 ("*muldf3negdf_vfp"): Likewise.
12102
12103 2011-06-28 Nick Clifton <nickc@redhat.com>
12104
12105 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12106 relaxation when performing an incremental link.
12107
12108 2011-06-28 Kai Tietz <ktietz@redhat.com>
12109
12110 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12111 within BB from last to first.
12112
12113 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12114
12115 * genattr-common.c: New. Based on genattr.c.
12116 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12117 (MOSTLYCLEANFILES): Add insn-attr-common.h.
12118 (opts.o): Update dependencies.
12119 (.PRECIOUS): Add insn-attr-common.h.
12120 (simple_rtl_generated_h): Add insn-attr-common.h.
12121 (build/genattr-common.o): New.
12122 (genprogrtl): Add attr-common.
12123 * genattr.c (main): Include insn-attr-common.h. Don't generate
12124 definitions of DELAY_SLOTS or INSN_SCHEDULING.
12125 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12126
12127 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
12128
12129 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12130 avr-*-* and avr-*-rtems* targets.
12131
12132 * config/avr/elf.h: New file.
12133 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12134 (TARGET_ASM_SELECT_SECTION): Define.
12135 (INIT_SECTION_ASM_OP): Undefine.
12136 (FINI_SECTION_ASM_OP): Undefine.
12137 (READONLY_DATA_SECTION_ASM_OP): Undefine.
12138 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12139 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12140 * config/avr/avr.h:
12141 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12142 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12143 (MAX_OFILE_ALIGNMENT): Move to elf.h.
12144 (STRING_LIMIT): Move to elf.h.
12145 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12146 (ASM_DECLARE_OBJECT_NAME): Remove.
12147 (ESCAPES): Remove.
12148 (ASM_OUTPUT_SKIP): Remove.
12149 (DWARF2_DEBUGGING_INFO): Remove.
12150 (OBJECT_FORMAT_ELF): Remove.
12151 (USER_LABEL_PREFIX): Remove.
12152 (ASM_OUTPUT_EXTERNAL): Remove.
12153 (ASM_OUTPUT_ASCII): Remove.
12154 (TYPE_ASM_OP): Remove.
12155 (SIZE_ASM_OP): Remove.
12156 (WEAK_ASM_OP): Remove.
12157 (STRING_ASM_OP): Remove.
12158 (SET_ASM_OP): Remove.
12159 (ASM_WEAKEN_LABEL): Remove.
12160 (TYPE_OPERAND_FMT): Remove.
12161 (ASM_DECLARE_FUNCTION_SIZE): Remove.
12162 (ASM_FINISH_DECLARE_OBJECT): Remove.
12163 (NO_DOLLAR_IN_LABEL): Remove.
12164 (ASM_GENERATE_INTERNAL_LABEL): Remove.
12165 (ASM_OUTPUT_CASE_LABEL): Remove.
12166 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12167 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12168 (gas_output_ascii): Remove.
12169 (gas_output_limited_string): Remove.
12170 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12171 * config/avr/avr-protos.h
12172 (gas_output_ascii): Remove prototye.
12173 (gas_output_limited_string): Remove prototype.
12174
12175 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
12176
12177 PR target/48637
12178 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
12179 asm operands.
12180
12181 2011-06-27 Jan Hubicka <jh@suse.cz>
12182
12183 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12184 node instead of references in node.
12185
12186 2011-06-27 Richard Henderson <rth@redhat.com>
12187
12188 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12189 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12190 inside ifdef.
12191
12192 2011-06-27 Jakub Jelinek <jakub@redhat.com>
12193
12194 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12195
12196 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12197 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12198 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12199 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12200 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12201 (evaluate_stmt, execute_fold_all_builtins): Handle
12202 BUILT_IN_ASSUME_ALIGNED.
12203 * tree-ssa-dce.c (propagate_necessity): Likewise.
12204 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12205 call_may_clobber_ref_p_1): Likewise.
12206 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12207 (expand_builtin_assume_aligned): New function.
12208 * doc/extend.texi (__builtin_assume_aligned): Document.
12209
12210 PR debug/49544
12211 * cselib.c (promote_debug_loc): If cselib_preserve_constants
12212 and l has two DEBUG_INSN owned locs instead of just one, adjust
12213 the second location's setting_insn too.
12214
12215 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12216
12217 PR libmudflap/38738
12218 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12219
12220 2011-06-27 Nick Clifton <nickc@redhat.com>
12221
12222 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12223 bit position of highest bit set into a count of the high zero bits.
12224
12225 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12226
12227 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12228
12229 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12230
12231 PR lto/48492
12232 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12233 to a NULL parent.
12234
12235 2011-06-27 Richard Guenther <rguenther@suse.de>
12236
12237 PR tree-optimization/49394
12238 * passes.c (execute_one_pass): Restore current_pass after
12239 applying IPA transforms.
12240
12241 2011-06-27 Kai Tietz <ktietz@redhat.com>
12242
12243 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12244 out of type precision after operation.
12245 (find_bswap): Take for limit value the integer auto-promotion
12246 into account.
12247
12248 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12249
12250 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12251 forward scan as well.
12252
12253 2011-06-27 Tristan Gingold <gingold@adacore.com>
12254
12255 PR target/44241
12256 * config/vms/vms-protos.h: New file.
12257 * config/vms/vms-crtlmap.map: New file.
12258 * config/vms/vms.c: New file.
12259 * config/vms/make-crtlmap.awk: New file.
12260 * config/vms/vms-crtl.h: File removed.
12261 * config/vms/vms-crtl-64.h: File removed.
12262 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12263 * config/alpha/vms64.h: Do not include vms-crtl-64.h
12264 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12265 clear some builtins on VMS. Calls vms_patch_builtins.
12266 (avms_asm_output_external): Remove.
12267 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12268 (struct crtl_name_spec): Remove
12269 (DO_CTRL_NAMES): Remove.
12270 * config/ia64/vms.h (struct crtl_name_spec): Remove
12271 (DO_CTRL_NAMES): Remove.
12272 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12273 clear some builtins on VMS. Calls vms_patch_builtins.
12274 (ia64_asm_output_external): Remove DO_CRTL_NAME.
12275 * config/ia64/vms64.h: Do not include vms-crtl-64.h
12276 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12277
12278 2011-06-27 Tristan Gingold <gingold@adacore.com>
12279
12280 * config/alpha/alpha.c (alpha_end_function): Always generate .end
12281 directive on VMS.
12282
12283 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12284
12285 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12286 the function receives nonlocal gotos.
12287
12288 2011-06-27 Richard Guenther <rguenther@suse.de>
12289
12290 PR tree-optimization/49536
12291 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12292 For non-scalar inner types use a scalar type according to
12293 the scalar inner mode.
12294
12295 2011-06-27 Richard Guenther <rguenther@suse.de>
12296
12297 PR tree-optimization/49365
12298 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12299
12300 2011-06-27 Richard Guenther <rguenther@suse.de>
12301
12302 PR tree-optimization/49169
12303 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12304 the alignment of function decls.
12305
12306 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
12307
12308 PR target/47997
12309 * config/darwin.c (darwin_mergeable_string_section): Place string
12310 constants in '.cstring' rather than '.const' when CF/NSStrings are
12311 active.
12312
12313 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
12314
12315 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12316 (emit_save_register_window): Likewise.
12317 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12318 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
12319 Swap back %o7/%i7 in register naming.
12320
12321 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
12322
12323 PR driver/49371
12324 * config/darwin.c (darwin_override_options): Improve warning when
12325 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12326 is given with fpie/fPIE.
12327 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12328 * config/darwin9.h (PIE_SPEC): New.
12329
12330 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12331
12332 * timevar.c (timevar_print): Increase width for display of timevar
12333 name.
12334
12335 2011-06-24 Jakub Jelinek <jakub@redhat.com>
12336
12337 PR c++/46400
12338 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12339 instead of TYPE_CHAIN for chain_next for types.
12340
12341 2011-06-24 Richard Henderson <rth@redhat.com>
12342
12343 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12344 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12345 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12346 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12347 (sparc_flat_expand_prologue): Emit individual instructions
12348 instead of one of the above.
12349
12350 2011-06-24 Easwaran Raman <eraman@google.com>
12351
12352 PR rtl-optimization/49429
12353 PR target/49454
12354 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
12355 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12356 used to copy y into x.
12357 * calls.c (initialize_argument_information): Mark
12358 an argument addressable if it is passed by invisible reference.
12359 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
12360 if it is passed by reference.
12361
12362 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
12363
12364 PR rtl-optimization/49504
12365 * rtlanal.c (nonzero_bits1): Properly handle addition or
12366 subtraction of a pointer in Pmode if pointers extend unsigned.
12367 (num_sign_bit_copies1): Likewise.
12368
12369 2011-06-24 Martin Jambor <mjambor@suse.cz>
12370
12371 PR tree-optimizations/49516
12372 * tree-sra.c (sra_modify_assign): Choose the safe path for
12373 aggregate copies if we also did scalar replacements.
12374
12375 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12376
12377 PR target/49335
12378 * config/arm/predicates.md (add_operator): New.
12379 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
12380
12381 2011-06-24 Andi Kleen <ak@linux.intel.com>
12382
12383 * tree-sra.c (type_internals_preclude_sra_p): Add msg
12384 parameter. Split up ifs and report reason in *msg.
12385 (reject): Add.
12386 (find_var_candiate): Add msg variable.
12387 Split up ifs and report reason to reject.
12388 (find_param_candidates): Add msg variable.
12389 Pass msg to type_internals_preclude_sra_p.
12390
12391 2011-06-23 Jeff Law <law@redhat.com>
12392
12393 PR middle-end/48770
12394 * reload.h (reload): Change to return a bool.
12395 * ira.c (ira): If requested by reload, run a fast DCE pass after
12396 reload has completed. Fix comment typo.
12397 * reload1.c (need_dce): New file scoped static.
12398 (reload): Set reload_completed here. Return whether or not a DCE
12399 pass after reload is needed.
12400 (delete_dead_insn): Set need_dce as needed.
12401
12402 PR middle-end/49465
12403 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12404 to detect threading through joiner block. If there was already
12405 an edge to the new target, then do not change the PHI nodes.
12406
12407 2011-06-23 Jakub Jelinek <jakub@redhat.com>
12408
12409 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12410 get_pointer_alignment to see if base isn't sufficiently aligned.
12411
12412 2011-06-23 Jan Hubicka <jh@suse.cz>
12413
12414 PR tree-optimize/49373
12415 * tree-pass.h (all_late_ipa_passes): Declare.
12416 * cgraphunit.c (init_lowered_empty_function): Fix properties.
12417 (cgraph_optimize): Execute late passes; remove unreachable funcions
12418 after materialization.
12419 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12420 LTOing.
12421 * passes.c (all_late_ipa_passes): Declare.
12422 (dump_passes, register_pass): Handle late ipa passes.
12423 (init_optimization_passes): Move ipa_pta to late passes; schedule
12424 fixup_cfg at beggining of all_passes.
12425 (apply_ipa_transforms): New function.
12426 (execute_one_pass): When doing simple ipa pass, apply all transforms.
12427
12428 2011-06-23 Joseph Myers <joseph@codesourcery.com>
12429
12430 * params.c: Include common/common-target.h. Don't include tm.h.
12431 (lang_independent_params): Move from toplev.c.
12432 (global_init_params): New.
12433 * params.h (global_init_params): Declare.
12434 * target.def (default_params): Move to common-target.def.
12435 * toplev.c (lang_independent_options): Remove.
12436 (lang_independent_params): Move to params.c.
12437 (general_init): Use global_init_params.
12438 * common/common-target.def (option_default_params): Move from
12439 target.def.
12440 * common/config/ia64/ia64-common.c: Include params.h.
12441 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12442 from ia64.c.
12443 * common/config/rs6000/rs6000-common.c: Include params.h.
12444 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12445 from rs6000.c.
12446 * common/config/sh/sh-common.c: Include params.h.
12447 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12448 from sh.c.
12449 * common/config/spu/spu-common.c: Include params.h.
12450 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12451 from spu.c.
12452 * config/ia64/ia64.c (ia64_option_default_params,
12453 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12454 * config/rs6000/rs6000.c (rs6000_option_default_params,
12455 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12456 * config/sh/sh.c (sh_option_default_params,
12457 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12458 * config/spu/spu.c (spu_option_default_params,
12459 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12460 * Makefile.in (OBJS): Remove params.o.
12461 (OBJS-libcommon-target): Add params.o.
12462 (params.o, $(common_out_object_file)): Update dependencies.
12463 * doc/tm.texi: Regenerate.
12464
12465 2011-06-23 Alan Modra <amodra@gmail.com>
12466
12467 PR bootstrap/49383
12468 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12469 invocation for 2011-06-09 changes.
12470
12471 2011-06-22 Jakub Jelinek <jakub@redhat.com>
12472
12473 PR libgomp/49490
12474 * omp-low.c (expand_omp_for_static_nochunk): Only
12475 use n ceil/ nthreads size for the first n % nthreads threads in the
12476 team instead of all threads except for the last few ones which
12477 get less work or none at all.
12478
12479 PR debug/49496
12480 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12481 uses.
12482
12483 2011-06-22 Richard Guenther <rguenther@suse.de>
12484
12485 PR tree-optimization/49493
12486 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12487 Refer to the alias target of variables.
12488 (associate_varinfo_to_alias_1): Remove.
12489 (ipa_pta_execute): Do not associate aliases with anything.
12490 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12491 (cgraph_function_node): Likewise.
12492 (cgraph_function_or_thunk_node): Likewise.
12493 (varpool_variable_node): Likewise.
12494
12495 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
12496
12497 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12498 * config.gcc (arm*-*-linux*): Default to gnu tls.
12499 (arm*-*-*): Add --with-tls option.
12500 (all_defaults): Add 'tls'.
12501
12502 2011-06-22 Richard Henderson <rth@redhat.com>
12503
12504 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12505 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12506 (dwarf2out_frame_debug_cfa_window_save): Rename from
12507 dwarf2out_window_save; make static.
12508 * tree.h (dwarf2out_window_save): Don't declare.
12509
12510 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12511 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12512 (emit_save_register_window): Rename from gen_save_register_window;
12513 emit the insn and add REG_CFA_* notes.
12514 (sparc_expand_prologue): Update to match.
12515 * config/sparc/sparc.md (save_register_window_1): Simplify from
12516 save_register_window<P:mode>.
12517
12518 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
12519
12520 PR target/49497
12521 * config/i386/i386.md (*lea_general_2): Always allow SImode.
12522 (*lea_general_2_zext): Likewise.
12523 (imul to lea peepholes): Use const359_operand and check
12524 TARGET_PARTIAL_REG_STALL.
12525
12526 * config/i386/predicates.md (const359_operand): New.
12527
12528 2011-06-22 Michael Matz <matz@suse.de>
12529
12530 * cgraphunit.c (assemble_thunk): Use correct return type.
12531
12532 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
12533 Dmitry Melnik <dm@ispras.ru>
12534
12535 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12536 (neon_output_shift_immediate): Ditto.
12537 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12538 prototype.
12539 (neon_output_shift_immediate): Ditto.
12540 * config/arm/neon.md (vashl<mode>3): Modified constraint.
12541 (vashr<mode>3_imm): New insn pattern.
12542 (vlshr<mode>3_imm): Ditto.
12543 (vashr<mode>3): Modified constraint.
12544 (vlshr<mode>3): Ditto.
12545 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12546 predicate.
12547 (imm_for_neon_rshift_operand): Ditto.
12548 (imm_lshift_or_reg_neon): Ditto.
12549 (imm_rshift_or_reg_neon): Ditto.
12550
12551 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12552
12553 2011-06-22 Jakub Jelinek <jakub@redhat.com>
12554
12555 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12556 builtin calls even if likelyvalue is not CONSTANT.
12557 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12558 Return get_value_for_expr of first operand
12559 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
12560 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12561 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
12562 their non-checking counterparts.
12563 (call_may_clobber_ref_p_1): Likewise.
12564 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
12565 like their non-checking counterparts.
12566 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12567 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
12568 like their non-checking counterparts.
12569 (find_func_clobbers): Likewise.
12570 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
12571 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
12572
12573 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
12574 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
12575 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
12576 of base type reference as argument.
12577 (resolve_addr_in_expr): Likewise. Fix keep computation.
12578 (convert_descriptor_to_signed): Renamed to...
12579 (convert_descriptor_to_mode): ... this. For wider types convert to
12580 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
12581 (typed_binop): New function.
12582 (scompare_loc_descriptor, ucompare_loc_descriptor,
12583 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
12584 default to unsigned type instead of signed.
12585
12586 PR debug/47858
12587 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
12588 (gimple_build_debug_source_bind_stat): New prototype.
12589 (gimple_build_debug_source_bind): Define.
12590 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
12591 gimple_debug_source_bind_get_value,
12592 gimple_debug_source_bind_get_value_ptr,
12593 gimple_debug_source_bind_set_var,
12594 gimple_debug_source_bind_set_value): New inlines.
12595 * gimple.c (gimple_build_debug_source_bind_stat): New function.
12596 * gimple-pretty-print.c (dump_gimple_debug): Handle
12597 GIMPLE_DEBUG_SOURCE_BIND.
12598 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
12599 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12600 * tree-parloops.c (eliminate_local_variables,
12601 separate_decls_in_region): Likewise.
12602 (separate_decls_in_region_debug): Renamed from
12603 separate_decls_in_region_debug_bind. Handle
12604 gimple_debug_source_bind_p.
12605 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
12606 prototypes.
12607 (DECL_HAS_DEBUG_ARGS_P): Define.
12608 (struct tree_function_decl): Add has_debug_args_flag field.
12609 * tree.c (debug_args_for_decl): New variable.
12610 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
12611 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
12612 (rewrite_debug_stmt_uses): New function.
12613 (rewrite_stmt): Use it to rewrite debug stmt uses.
12614 * rtl.def (DEBUG_PARAMETER_REF): New.
12615 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
12616 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
12617 DEBUG_PARAMETER_REF.
12618 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
12619 * print-rtl.c (print_rtx): Likewise.
12620 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
12621 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
12622 debug stmts in the first bb.
12623 * tree-inline.c (remap_ssa_name): If remapping default def
12624 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
12625 a source bind debug stmt.
12626 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
12627 (maybe_move_debug_stmts_to_successors): Likewise.
12628 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
12629 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
12630 debug args vector from old_decl to new_decl.
12631 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
12632 or modified parameters, add debug bind stmts before call
12633 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
12634 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
12635 on DECL_DEBUG_EXPRs from debug args vector.
12636 (expand_debug_source_expr): New function.
12637 (expand_debug_locations): Use it for source bind insns.
12638 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
12639 * var-tracking.c (prepare_call_arguments): Add debug args
12640 to call_arguments if any.
12641 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
12642 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
12643 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
12644 (get_ref_die_offset, parameter_ref_descriptor): New functions.
12645 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
12646 (gen_subprogram_die): Handle parameters identified by
12647 DEBUG_PARAMETER_REF.
12648
12649 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
12650
12651 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
12652 * doc/install.texi (Configuration): Document --with-tls.
12653 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
12654 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
12655 (arm_tls_descseq_addr): New.
12656 (legitimize_tls_address): Add tlsdesc support.
12657 (arm_cannot_copy_insn_p): Check for tlscall.
12658 (arm_emit_tls_decoration): Likewise.
12659 * config/arm/arm.h (TARGET_GNU2_TLS): New.
12660 (OPTION_DEFAULT_SPECS): Add with-tls support.
12661 * config/arm/arm.md (R1_REGNUM): Define.
12662 (tlscall): New.
12663 * config/arm/arm.opt (tls_type): New enumeration type and values.
12664 (mtls-dialect): New switch.
12665 * config/arm/arm-opts.h (enum tls_type): New.
12666
12667 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
12668
12669 * attribs.c (register_attribute): Added assert to check that all
12670 attribute specs are registered with a name that is not empty and
12671 does not start with '_'.
12672 (decl_attributes): Avoid the lookup of the "naked" attribute spec
12673 if the function has no attributes.
12674 * tree.c (is_attribute_with_length_p): Removed.
12675 (is_attribute_p): Removed.
12676 (private_is_attribute_p): New.
12677 (private_lookup_attribute): New.
12678 (lookup_attribute): Removed.
12679 (lookup_ident_attribute): New.
12680 (remove_attribute): Require the first argument to be in the form
12681 'text', not '__text__'. Updated asserts.
12682 (merge_attributes): Use lookup_ident_attributes instead of
12683 lookup_attribute.
12684 (merge_dllimport_decl_attributes): Use remove_attribute.
12685 (attribute_list_contained): Likewise.
12686 (attribute_list_equal): Immediately return 1 if the arguments are
12687 identical pointers.
12688 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
12689 'int'. Require the first argument to be in the form 'text', not
12690 '__text__'. Require the second argument to be an identifier.
12691 (lookup_attribute): Made inline. Require the first argument to be
12692 in the form 'text', not '__text__'.
12693 (private_is_attribute_p, private_lookup_attribute): New.
12694 Updated comments.
12695
12696 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
12697
12698 * builtins.c: Add sync_ or SYNC__ to builtin names.
12699 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
12700 * omp-low.c: Add sync_ or SYNC__ to builtin names.
12701
12702 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
12703
12704 PR target/33049
12705 * config/avr/avr.md (extzv): New expander.
12706 (*extzv): New insn.
12707 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
12708 * config/avr/constraints.md (C04): New constraint.
12709 * doc/md.texi (Machine Constraints): Document it.
12710
12711 2011-06-21 Jakub Jelinek <jakub@redhat.com>
12712
12713 PR middle-end/49489
12714 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
12715 unsignedp argument instead of 1 for clrsb_optab.
12716 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
12717 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
12718 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
12719 * optabs.c (widen_leading): Call widen_operand and expand_unop
12720 with 0 as unsignedp argument instead of 1 for clrsb_optab.
12721 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
12722
12723 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
12724
12725 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
12726
12727 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
12728
12729 * gensupport.c (add_define_attr): New static function.
12730 (is_predicable): Allow multi-alternative lists for the "predicable"
12731 attribute.
12732 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
12733 (process_one_cond_exec): Call alter_attrs_for_insn.
12734 * doc/md.texi (Defining Attributes): Mention some standard names.
12735 (Conditional Execution): Update documentation for "predicable".
12736
12737 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
12738 __builtin_clrsbll): Document.
12739 * doc/rtl.texi (clrsb): New entry.
12740 * optabs.c (widen_leading): Renamed from widen_clz. New argument
12741 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
12742 (expand_unop): Handle clrsb_optab.
12743 (init_optabs): Initialize it.
12744 * optabs.h (enum optab_index): New entry OTI_clrsb.
12745 (clrsb_optab): Define.
12746 * genopinit.c (optabs): Add an entry for it.
12747 * builtins.c (expand_builtin): Handle clrsb builtin functions.
12748 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
12749 BUILT_IN_CLRSBLL): New.
12750 * rtl.def (CLRSB): New code.
12751 * dwarf2out.c (mem_loc_descriptor): Handle it.
12752 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12753 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
12754 and popcount.
12755 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
12756 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
12757 (__ctzDI2): Move declaration.
12758 * config/bfin/bfin.md (clrsbsi2): New expander.
12759 (signbitssi2): Use the CLRSB rtx.
12760 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
12761 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
12762
12763 2011-06-21 Richard Guenther <rguenther@suse.de>
12764
12765 * ipa-inline-transform.c (inline_transform): Fix previous change.
12766
12767 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
12768
12769 PR tree-optimization/49478
12770 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
12771 with constant operand.
12772
12773 2011-06-21 Richard Guenther <rguenther@suse.de>
12774
12775 * ipa-inline-transform.c (inline_transform): Fix typo.
12776
12777 2011-06-21 Richard Guenther <rguenther@suse.de>
12778
12779 PR tree-optimization/49483
12780 * tree-vect-stmts.c (vectorizable_assignment): Also handle
12781 VIEW_CONVERT_EXPR conversions.
12782
12783 2011-06-21 Joseph Myers <joseph@codesourcery.com>
12784
12785 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
12786 * config/avr/avr-tables.opt: New file (generated).
12787 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
12788 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
12789 avr-mcus.def.
12790 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
12791 (avr_option_override): Don't process -mmcu= argument here. Set
12792 avr_current_device using avr_mcu_index.
12793 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
12794 * config/avr/avr.opt (mmcu=): Use Enum.
12795 * config/avr/t-avr (avr-devices.o): Update dependencies.
12796 ($(srcdir)/config/avr/avr-tables.opt): New.
12797 * target.def (help): Remove.
12798 * doc/tm.texi.in (TARGET_HELP): Remove.
12799 * doc/tm.texi: Regenerate.
12800 * opts.c: Don't include target.h.
12801 (common_handle_option): Don't call targetm.help.
12802 * system.h (TARGET_HELP): Poison.
12803 * Makefile.in (opts.o): Update dependencies.
12804
12805 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12806
12807 * config/usegld.h: New file.
12808 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
12809 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
12810 (LIB_SPEC): Likewise. Search /lib.
12811 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
12812 (RDYNAMIC_SPEC): Handle GNU ld.
12813 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
12814 Define.
12815 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
12816 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
12817 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
12818 (STACK_CHECK_STATIC_BUILTIN): Define.
12819 * config/sol2.opt (compat-bsd): Remove.
12820 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
12821 * config/sol2-bi.h: New file.
12822 * config/sol2-gld.h: Remove.
12823 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
12824 (NO_DBX_BNSYM_ENSYM): Remove.
12825 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12826 (STACK_CHECK_STATIC_BUILTIN): Remove.
12827 Test USE_GLD instead of TARGET_GNU_LD.
12828 * config/i386/sol2-10.h: Rename to ...
12829 * config/i386/sol2-bi.h .. this.
12830 (SUBTARGET_EXTRA_SPECS): Redefine.
12831 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
12832 (MULTILIB_DEFAULTS): Remove.
12833 (DEFAULT_ARCH32_P): Define.
12834 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
12835 (ARCH64_SUBDIR): Define.
12836 Test USE_GLD instead of TARGET_GNU_LD.
12837 (I386_EMULATION): Rename to ...
12838 (ARCH32_EMULATION): ... this.
12839 (X86_64_EMULATION): Rename to ...
12840 (ARCH64_EMULATION): ... this.
12841 (TARGET_LD_EMULATION): Remove.
12842 (LINK_ARCH_SPEC): Remove.
12843 * config/i386/sol2-gas.h: Remove.
12844 * config/i386/t-sol2-10: Rename to ...
12845 * config/i386/t-sol2-64: ... this.
12846 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
12847 (AS_SPARC64_FLAG): Define.
12848 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
12849 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
12850 depending on TARGET_CPU_DEFAULT.
12851 (CPP_CPU_SPEC): Redefine.
12852 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
12853 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
12854 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
12855 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
12856 ASM_ARCH_DEFAULT_SPEC): Redefine.
12857 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12858 LINK_ARCH_DEFAULT_SPEC.
12859 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
12860 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
12861 (ARCH64_SUBDIR): Define.
12862 (LINK_ARCH64_SPEC): Redefine.
12863 (CC1_SPEC): Redefine.
12864 (OPTION_DEFAULT_SPECS): Redefine.
12865 (MULTILIB_DEFAULTS): Define.
12866 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
12867 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
12868 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
12869 (NO_DBX_BNSYM_ENSYM): Remove.
12870 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12871 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
12872 (TARGET_ASM_NAMED_SECTION): Likewise.
12873 (STACK_CHECK_STATIC_BUILTIN): Remove.
12874 * config/sparc/sol2-bi.h: Remove.
12875 * config/sparc/sol2-gas-bi.h: Remove.
12876 * config/sparc/sol2-gas.h: Remove.
12877 * config/sparc/sol2-gld-bi.h: Remove.
12878 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
12879 common parts ...
12880 (*-*-solaris2*): ... here.
12881
12882 2011-06-21 Christian Bruel <christian.bruel@st.com>
12883
12884 PR other/43564
12885 * ipa-inline.c (can_inline_edge_p): Check
12886 !DECL_DISREGARD_INLINE_LIMITS.
12887
12888 2011-06-21 Christian Bruel <christian.bruel@st.com>
12889
12890 PR middle-end/49139
12891 * cgraphunit.c (process_function_and_variable_attributes): warn when
12892 always_inline functions that are not inline.
12893 * ipa-inline-transform.c (inline_transform): Always call
12894 optimize_inline.
12895 * tree-inline.c (tree_inlinable_function_p): Use error instead
12896 of sorry.
12897 (expand_call_inline): Likewise.
12898
12899 2011-06-21 Jakub Jelinek <jakub@redhat.com>
12900
12901 * Makefile.in (dg_target_exps): Set.
12902 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
12903 instead of 7, try to divide it more evenly.
12904
12905 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
12906
12907 PR target/49089
12908 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
12909 (avx256_split_unaligned_store): New definition.
12910 (ix86_option_override_internal): Enable avx256 unaligned load/store
12911 splitting only when avx256_split_unaligned_load/store is set.
12912
12913 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
12914
12915 * regrename.c (scan_rtx_reg): Handle the case where we write to an
12916 open chain in a smaller mode without failing the entire block.
12917
12918 2011-06-21 Alan Modra <amodra@gmail.com>
12919
12920 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
12921 CONST high part large-toc address.
12922 (rs6000_tls_referenced_p): Make static.
12923 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
12924
12925 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12926
12927 PR target/49385
12928 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
12929 one of the operands is a register.
12930
12931 2011-06-20 Kai Tietz <ktietz@redhat.com>
12932
12933 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
12934 operations in combination with binary and.
12935
12936 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
12937
12938 * regrename.c (do_replace): Don't update notes.
12939
12940 2011-06-20 Alan Modra <amodra@gmail.com>
12941
12942 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
12943 of toc-relative address in CONST.
12944 (rs6000_delegitimize_address): Recognize changed address.
12945 (rs6000_legitimize_reload_address): Likewise.
12946 (rs6000_emit_move): Don't force these constants to memory.
12947 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
12948 toc-relative address in CONST.
12949 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
12950 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
12951
12952 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
12953
12954 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
12955 (count_trailing_zeros): Likewise.
12956
12957 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
12958
12959 PR other/49325
12960 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
12961 .init_array can be used with .ctors on targets.
12962 * configure: Regenerated.
12963
12964 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
12965
12966 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
12967 if the element type is volatile.
12968
12969 2011-06-18 Jan Hubicka <jh@suse.cz>
12970
12971 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
12972 extra name aliases.
12973 (lto_symtab_resolve_can_prevail_p): Likewise.
12974 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
12975 * cgraphbuild.c (record_reference): Remove extra body alias code.
12976 (mark_load): Likewise.
12977 (mark_store): Likewise.
12978 * cgraph.h (varpool_node): Remove extra_name filed;
12979 add alias_of and extraname_alias.
12980 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
12981 (varpool_alias_aliased_node): New inline function.
12982 (varpool_variable_node): New function.
12983 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
12984 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
12985 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
12986 (input_varpool_node): Likewise.
12987 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
12988 (varpool_externally_visible_p): Remove extra body alias code.
12989 (function_and_variable_visibility): Likewise.
12990 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
12991 (ipa_pta_execute): Use it.
12992 * varpool.c (varpool_remove_node): Remove extra name alias code.
12993 (varpool_mark_needed_node): Likewise.
12994 (varpool_analyze_pending_decls): Analyze aliases.
12995 (assemble_aliases): New functoin.
12996 (varpool_assemble_decl): Use it.
12997 (varpool_create_variable_alias): New function.
12998 (varpool_extra_name_alias): Rewrite.
12999 (varpool_for_node_and_aliases): New function.
13000
13001 2011-06-18 Jakub Jelinek <jakub@redhat.com>
13002
13003 PR target/49411
13004 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13005 last_arg_constant and last argument doesn't match its predicate,
13006 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13007 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13008 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13009 spelling of error message.
13010 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13011 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13012 const_0_to_255_operand instead of const_int_operand.
13013
13014 Revert:
13015 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13016
13017 * config/i386/sse.md (blendbits): Remove mode attribute.
13018 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13019 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13020 Check integer value of operand 3 in insn constraint.
13021
13022 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
13023
13024 PR rtl-optimization/48542
13025 * reload.c (find_equiv_reg): Stop looking when finding a
13026 setjmp-type call.
13027 * reload1.c (reload_as_needed): Invalidate all reload
13028 registers when crossing a setjmp-type call.
13029
13030 2011-06-16 Jeff Law <law@redhat.com>
13031
13032 * tree-ssa-threadupdate.c (struct redirection_data): New field
13033 intermediate_edge.
13034 (THREAD_TARGET2): Define.
13035 (redirection_data_eq): Also check that the intermediate edge is equal.
13036 (lookup_redirection_data): Drop useless argument. Extract the
13037 outgoing_edge and intermediate edge from E. Callers updated.
13038 (copy_phi_args, update_destination_phis): New functions.
13039 (fix_duplicate_block_edges): Likewise.
13040 (create_edge_and_update_destination_phis): Duplicate all the edges
13041 hung off e->aux. Use copy_phi_args.
13042 (create_duplicates): Use fix_duplicate_block_edges.
13043 (fixup_template_block): Likewise.
13044 (redirect_edges): If necessary, redirect the joiner block's incoming
13045 edge to the duplicate of the joiner block.
13046 (thread_block): Don't muck up loops when threading through a joiner
13047 block.
13048 (thread_through_loop_header): Handle threading through a joiner block.
13049 (mark_threaded_blocks, register_jump_thread): Likewise.
13050 * tree-flow.h (register_jump_thread): Add new argument. Callers
13051 updated.
13052 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13053 (thread_across_edge): Handle threading through a joiner block.
13054
13055 2011-06-16 Martin Jambor <mjambor@suse.cz>
13056
13057 PR tree-optimization/49343
13058 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13059 calculate offset, provide 2nd operand for the new COMPONENT_REF.
13060
13061 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
13062
13063 * config/darwin-protos.h (machopic_select_rtx_section): Move to
13064 inside RTX_CODE ifdef.
13065
13066 2011-06-16 Tom de Vries <tom@codesourcery.com>
13067
13068 PR target/45098
13069 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13070 Disallow NULL pointer for pointer arithmetic.
13071
13072 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13073
13074 PR target/49398
13075 Revert.
13076 2011-06-10 Wei Guozhi <carrot@google.com>
13077
13078 PR target/45335
13079 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13080 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13081 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13082 related peephole2.
13083 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13084 related peephole2.
13085 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13086 (arm_legitimate_ldrd_p): New prototype.
13087 (arm_output_ldrd): New prototype.
13088 * config/arm/arm.c (arm_check_ldrd_operands): New function.
13089 (arm_legitimate_ldrd_p): New function.
13090 (arm_output_ldrd): New function.
13091
13092 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
13093
13094 PR middle-end/46500
13095 * doc/tm.texi.in: Update Copyright date.
13096 * doc/tm.texi: Regenerate.
13097 * targhooks.c (default_setup_incoming_varargs): Replace
13098 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13099 (default_pretend_outgoing_varargs_named): Likewise.
13100 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13101 (hook_callee_copies_named): Likewise.
13102 (default_function_arg_advance): Likewise.
13103 (default_function_arg): Likewise.
13104 (default_function_incoming_arg): Likewise.
13105 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13106 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13107 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13108 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13109 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13110 * targhooks.h (default_setup_incoming_varargs): Likewise.
13111 (default_pretend_outgoing_varargs_named): Likewise.
13112 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13113 (hook_callee_copies_named): Likewise.
13114 (default_function_arg_advance): Likewise.
13115 (default_function_arg): Likewise.
13116 (default_function_incoming_arg): Likewise.
13117 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13118 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13119 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13120 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13121 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13122 * target.def (pass_by_reference): Likewise.
13123 (setup_incoming_varargs, strict_argument_naming): Likewise.
13124 (pretend_outgoing_varargs_named, callee_copies): Likewise.
13125 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13126 (function_incoming_arg): Likewise.
13127 * target.h: Don't include "tm.h" .
13128 (cumulative_args_t): New typedef.
13129 [GCC_TM_H] (get_cumulative_args): New static inline function.
13130 [GCC_TM_H] (pack_cumulative_args): Likewise.
13131 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13132 argument type with cumulative_args_t.
13133 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13134 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13135 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13136 (frv_arg_partial_bytes, frv_function_arg): Likewise.
13137 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13138 (frv_function_arg_1): Likewise.
13139 * config/s390/s390.c (s390_pass_by_reference): Likewise.
13140 (s390_function_arg_advance, s390_function_arg): Likewise.
13141 * config/m32c/m32c.c (m32c_function_arg): Likewise.
13142 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13143 (m32c_strict_argument_naming): Likewise.
13144 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13145 (spu_function_arg_advance): Likewise.
13146 (spu_setup_incoming_varargs): Likewise. Make static.
13147 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13148 Remove prototype.
13149 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13150 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13151 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13152 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13153 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13154 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13155 (mep_pass_by_reference, mep_function_arg): Likewise.
13156 (mep_function_arg_advance): Likewise.
13157 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13158 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13159 (m32r_function_arg, m32r_function_arg_advance): Likewise.
13160 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13161 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13162 (ix86_function_arg, ix86_pass_by_reference): Likewise.
13163 (ix86_setup_incoming_varargs): Likewise.
13164 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13165 (sh_strict_argument_naming): Likewise.
13166 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13167 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13168 (sh_function_arg_advance, sh_function_arg): Likewise.
13169 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13170 (pdp11_function_arg_advance): Likewise.
13171 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13172 Likewise.
13173 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13174 * config/avr/avr.c (avr_function_arg): Likewise.
13175 (avr_function_arg_advance): Likewise.
13176 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13177 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13178 (xtensa_function_arg_1): Likewise.
13179 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13180 Likewise.
13181 (xstormy16_function_arg): Likewise.
13182 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13183 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13184 (fr30_function_arg_advance): Likewise.
13185 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13186 (lm32_function_arg, lm32_function_arg_advance): Likewise.
13187 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13188 (moxie_function_arg, moxie_function_arg_advance): Likewise.
13189 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13190 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13191 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13192 (cris_function_arg, cris_function_incoming_arg): Likewise.
13193 (cris_function_arg_advance, cris_function_arg_1): Likewise.
13194 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13195 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13196 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13197 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13198 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13199 (mn10300_arg_partial_bytes): Likewise.
13200 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13201 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13202 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13203 (ia64_function_arg_1): Likewise.
13204 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13205 (m68k_function_arg): Likewise.
13206 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13207 (rs6000_function_arg, setup_incoming_varargs): Likewise.
13208 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13209 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13210 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13211 (picochip_arg_advance): Likewise.
13212 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13213 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13214 (mcore_function_arg_advance): Likewise.
13215 * config/score/score.c (score_pass_by_reference): Likewise.
13216 (score_function_arg_advance): Likewise.
13217 (score_arg_partial_bytes): Likewise. Make static.
13218 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13219 * config/arm/arm.c (arm_arg_partial_bytes): Replace
13220 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13221 (arm_function_arg, arm_function_arg_advance): Likewise.
13222 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13223 * config/pa/pa.c (pa_pass_by_reference): Likewise.
13224 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13225 (pa_function_arg): Likewise.
13226 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13227 (mips_function_arg, mips_function_arg_advance): Likewise.
13228 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13229 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13230 * config/vax/vax.c (vax_function_arg): Likewise.
13231 (vax_function_arg_advance): Likewise.
13232 * config/h8300/h8300.c (h8300_function_arg): Likewise.
13233 (h8300_function_arg_advance): Likewise.
13234 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13235 (v850_strict_argument_naming, v850_function_arg): Likewise.
13236 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13237 (v850_setup_incoming_varargs): Likewise.
13238 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13239 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13240 (mmix_function_arg, mmix_pass_by_reference): Likewise.
13241 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13242 with const void *.
13243 * config/bfin/bfin.c (setup_incoming_varargs): Replace
13244 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13245 (bfin_function_arg_advance, bfin_function_arg): Likewise.
13246 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13247 * calls.c (emit_call_1): Change type of args_so_far to
13248 cumulative_args_t. Changed all callers.
13249 (initialize_argument_information): Likewise.
13250 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13251 * dse.c (get_call_args): Likewise.
13252 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13253 * function.c (pass_by_reference, reference_callee_copied): Likewise.
13254 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13255 New member args_so_far_v. Changed all users.
13256 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13257 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13258 * config/mips/mips.c (mips_output_args_xfer): Likewise.
13259 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13260 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13261 * config/microblaze/microblaze.c (microblaze_expand_prologue):
13262 Likewise.
13263 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13264 m32r_pass_by_reference.
13265
13266 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
13267
13268 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13269 argument to be a VEC of statements.
13270 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13271 assert that pattern statements have to have their vector type set.
13272 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13273 Change the first argument to be a VEC of statements. Update
13274 documentation.
13275 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13276 (vect_handle_widen_mult_by_const): New function.
13277 (vect_recog_widen_mult_pattern): Change the first argument to be a
13278 VEC of statements. Update documentation. Check that the constant is
13279 INTEGER_CST. Support multiplication by a constant that fits an
13280 intermediate type - call vect_handle_widen_mult_by_const.
13281 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13282 call. Handle additional pattern statements if necessary.
13283
13284 2011-06-16 Nick Clifton <nickc@redhat.com>
13285
13286 PR target/49427
13287 * config.gcc: Set cpu_type to v850 for any V850 architecture.
13288 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13289 md_file, extra_modes, out_file and extra_options are these are all
13290 deduced from cpu_type.
13291
13292 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13293
13294 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13295 truncation mask to 63.
13296
13297 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13298
13299 PR target/49313
13300 PR target/29524
13301 * longlong.h: Add AVR support:
13302 (count_leading_zeros): New macro.
13303 (count_trailing_zeros): New macro.
13304 (COUNT_LEADING_ZEROS_0): New macro.
13305 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13306 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13307 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13308 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13309 (LIB2FUNCS_EXCLUDE): Add _clz.
13310 * config/avr/libgcc.S (XCALL): Move up in file.
13311 (XJMP): New C Macro.
13312 (DEFUN): New asm macro.
13313 (ENDF): New asm macro.
13314 (__ffssi2): New function.
13315 (__ffshi2): New function.
13316 (__loop_ffsqi2): New function.
13317 (__ctzsi2): New function.
13318 (__ctzhi2): New function.
13319 (__clzdi2): New function.
13320 (__clzsi2): New function.
13321 (__clzhi2): New function.
13322 (__paritydi2): New function.
13323 (__paritysi2): New function.
13324 (__parityhi2): New function.
13325 (__parityqi2): New function.
13326 (__popcounthi2): New function.
13327 (__popcountsi2): New function.
13328 (__popcountdi2): New function.
13329 (__popcountqi2): New function.
13330 (__bswapsi2): New function.
13331 (__bswapdi2): New function.
13332 (__ashldi3): New function.
13333 (__ashrdi3): New function.
13334 (__lshrdi3): New function.
13335 Fix suspicous lines.
13336
13337 2011-06-16 Richard Guenther <rguenther@suse.de>
13338
13339 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13340 the same as x != 0.
13341 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13342 to (bool) X & 1.
13343 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13344 equality compares against zero for the lower bit.
13345
13346 2011-06-16 Jakub Jelinek <jakub@redhat.com>
13347
13348 PR tree-optimization/49419
13349 * tree-vrp.c (execute_vrp): Call init_range_assertions
13350 before estimate_numbers_of_iterations, call
13351 free_number_of_iterations_estimates before calling
13352 remove_range_assertions.
13353
13354 2011-06-16 Revital Eres <revital.eres@linaro.org>
13355
13356 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13357 (struct partial_schedule): Add rows_length field.
13358 (verify_partial_schedule): Check rows_length.
13359 (ps_insert_empty_row): Handle rows_length.
13360 (create_partial_schedule): Likewise.
13361 (free_partial_schedule): Likewise.
13362 (reset_partial_schedule): Likewise.
13363 (create_ps_insn): Remove rest_count argument.
13364 (remove_node_from_ps): Update rows_length.
13365 (add_node_to_ps): Update rows_length and call create_ps_insn
13366 without passing row_rest_count.
13367 (rotate_partial_schedule): Update rows_length.
13368
13369 2011-06-16 Revital Eres <revital.eres@linaro.org>
13370
13371 * ddg.c (add_intra_loop_mem_dep): New function.
13372 (build_intra_loop_deps): Call it.
13373
13374 2011-06-13 Jeff Law <law@redhat.com>
13375
13376 * df-problems.c (df_lr_local_compute): Manually CSE
13377 PIC_OFFSET_TABLE_REGNUM.
13378 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
13379 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
13380
13381 2011-06-13 Jan Hubicka <jh@suse.cz>
13382
13383 * cgraphunit.c (handle_alias_pairs): New function.
13384 (cgraph_finalize_compilation_unit): Use it.
13385 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13386 as externally visible.
13387
13388 2011-06-15 Richard Guenther <rguenther@suse.de>
13389
13390 * expr.c (expand_expr_real_2): Reduce all integral types to
13391 bitfield precision.
13392 (expand_expr_real_1): Likewise.
13393
13394 2011-06-15 Martin Jambor <mjambor@suse.cz>
13395
13396 PR tree-optimization/48613
13397 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13398 ipa_node_params_vector is NULL.
13399
13400 2011-06-15 Jakub Jelinek <jakub@redhat.com>
13401
13402 PR debug/49382
13403 * dwarf2out.c (dw_loc_list_node): Add force field.
13404 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13405 location in the list, even if it is modified before first real insn.
13406 (output_loc_list): Emit empty ranges with force flag set.
13407 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13408
13409 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
13410
13411 PR target/49349
13412 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13413 (fence_to_rewind). Use it to notice when bookkeeping will be placed
13414 above a fence. Update comments.
13415 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13416 placed just above it. Do not allow NULL place_to_insert.
13417
13418 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
13419
13420 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13421 (slpeel_tree_peel_loop_to_edge): Don't call
13422 remove_dead_stmts_from_loop.
13423 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13424 remove irrelevant pattern statements. For irrelevant statements
13425 check if it is the last statement of a detected pattern, use
13426 corresponding pattern statement instead.
13427 (destroy_loop_vec_info): No need to remove pattern statements,
13428 only free stmt_vec_info.
13429 (vect_transform_loop): For irrelevant statements check if it is
13430 the last statement of a detected pattern, use corresponding
13431 pattern statement instead.
13432 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13433 pattern statements. Set basic block for the new statement.
13434 (vect_pattern_recog): Update documentation.
13435 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13436 operands of pattern statements.
13437 (vectorizable_call): Fix printing. In case of a pattern statement
13438 use the lhs of the original statement when creating a dummy
13439 statement to replace the original call.
13440 (vect_analyze_stmt): For irrelevant statements check if it is
13441 the last statement of a detected pattern, use corresponding
13442 pattern statement instead.
13443 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13444 statements use gsi of the original statement.
13445
13446 2011-06-14 Joseph Myers <joseph@codesourcery.com>
13447
13448 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13449 common/common-target-def.h.
13450 * target.def (default_target_flags, handle_option,
13451 supports_split_stack, optimization_table, init_struct,
13452 except_unwind_info, unwind_tables_default, have_named_sections):
13453 Move to common/common-target.def.
13454 * target.h (enum opt_levels, struct default_options): Move to
13455 common/common-target.h.
13456 * targhooks.c (default_except_unwind_info,
13457 dwarf2_except_unwind_info, sjlj_except_unwind_info,
13458 default_target_handle_option, empty_optimization_table): Move to
13459 common/common-targhooks.c.
13460 * targhooks.h (default_except_unwind_info,
13461 dwarf2_except_unwind_info, sjlj_except_unwind_info,
13462 default_target_handle_option, empty_optimization_table): Move to
13463 common/common-targhooks.h.
13464 * common/common-target-def.h: Include common/common-targhooks.h.
13465 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13466 defined.
13467 * common/common-target.def (handle_option, option_init_struct,
13468 option_optimization_table, default_target_flags,
13469 except_unwind_info, supports_split_stack, unwind_tables_default,
13470 have_named_sections): Move from target.def.
13471 (HOOK_PREFIX): Undefine at end of file.
13472 * common/common-target.h: Include input.h.
13473 (enum opt_levels, struct default_options): Move from target.h.
13474 * common/common-targhooks.c, common/common-targhooks.h: New.
13475 * config.gcc (target_has_targetm_common): Default to yes.
13476 (moxie*): Set target_has_targetm_common=no.
13477 (hppa*-*-*): Don't set target_has_targetm_common=yes.
13478 * doc/tm.texi: Regenerate.
13479 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13480 (C_TARGET_DEF_H): Add common/common-targhooks.h.
13481 (GCC_OBJS): Remove vec.o.
13482 (OBJS): Remove hooks.o and vec.o.
13483 (OBJS-libcommon-target): Add vec.o, hooks.o and
13484 common/common-targhooks.o.
13485 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13486 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13487 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13488 cfglayout.o, $(out_object_file), $(common_out_object_file)):
13489 Update dependencies.
13490 (common/common-targhooks.o): New.
13491 * common/config/default-common.c: Include tm.h. Add FIXME comment.
13492 * common/config/pa/pa-common.c: Include more headers. Take
13493 copyright dates from pa.c.
13494 (pa_option_optimization_table, pa_handle_option,
13495 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13496 TARGET_HANDLE_OPTION): Move from pa.c.
13497 * common/config/alpha/alpha-common.c,
13498 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13499 common/config/bfin/bfin-common.c,
13500 common/config/cris/cris-common.c,
13501 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13502 common/config/h8300/h8300-common.c,
13503 common/config/i386/i386-common.c,
13504 common/config/ia64/ia64-common.c,
13505 common/config/iq2000/iq2000-common.c,
13506 common/config/lm32/lm32-common.c,
13507 common/config/m32c/m32c-common.c,
13508 common/config/m32r/m32r-common.c,
13509 common/config/m68k/m68k-common.c,
13510 common/config/mcore/mcore-common.c,
13511 common/config/mep/mep-common.c,
13512 common/config/microblaze/microblaze-common.c,
13513 common/config/mips/mips-common.c,
13514 common/config/mmix/mmix-common.c,
13515 common/config/mn10300/mn10300-common.c,
13516 common/config/pdp11/pdp11-common.c,
13517 common/config/picochip/picochip-common.c,
13518 common/config/rs6000/rs6000-common.c,
13519 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13520 common/config/score/score-common.c, common/config/sh/sh-common.c,
13521 common/config/sparc/sparc-common.c,
13522 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13523 common/config/vax/vax-common.c,
13524 common/config/xstormy16/xstormy16-common.c,
13525 common/config/xtensa/xtensa-common.c: New.
13526 * config/alpha/alpha.c: Include common/common-target.h.
13527 (alpha_option_optimization_table, alpha_handle_option,
13528 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13529 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13530 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13531 * config/arm/arm.c (arm_option_optimization_table,
13532 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13533 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13534 arm-common.c.
13535 * config/avr/avr.c (avr_option_optimization_table,
13536 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13537 to avr-common.c.
13538 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13539 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13540 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13541 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13542 * config/cris/cris.c (cris_option_optimization_table,
13543 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13544 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13545 cris-common.c.
13546 * config/fr30/fr30.c (fr30_option_optimization_table,
13547 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13548 to fr30-common.c.
13549 * config/frv/frv.c (frv_option_optimization_table,
13550 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13551 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13552 * config/h8300/h8300.c (h8300_option_optimization_table,
13553 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13554 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13555 * config/i386/i386-protos.h (ix86_handle_option): Declare.
13556 * config/i386/i386.c: Include common/common-target.h.
13557 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13558 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13559 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
13560 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
13561 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
13562 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
13563 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
13564 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
13565 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
13566 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
13567 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
13568 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
13569 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
13570 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
13571 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
13572 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
13573 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
13574 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
13575 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
13576 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
13577 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
13578 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
13579 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
13580 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
13581 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
13582 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
13583 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
13584 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
13585 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
13586 ix86_option_optimization_table, ix86_option_init_struct,
13587 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
13588 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13589 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
13590 i386-common.c.
13591 * config/i386/t-i386 (i386.o): Update dependencies.
13592 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
13593 * config/ia64/ia64.c (ia64_option_optimization_table,
13594 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13595 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13596 ia64_handle_option): Move to ia64-common.c.
13597 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
13598 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
13599 * config/lm32/lm32.c (lm32_option_optimization_table,
13600 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13601 to lm32-common.c.
13602 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
13603 m32c-common.c.
13604 * config/m32r/m32r.c (m32r_option_optimization_table,
13605 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13606 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13607 m32r_handle_option): Move to m32r-common.c.
13608 (m32r_memory_move_cost): Remove comment referring to
13609 TARGET_HANDLE_OPTION.
13610 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
13611 Move to m68k-common.c.
13612 * config/mcore/mcore.c (mcore_option_optimization_table,
13613 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13614 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
13615 * config/mep/mep.c (mep_option_optimization_table,
13616 mep_handle_option, TARGET_HANDLE_OPTION,
13617 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
13618 Move to mep-common.c.
13619 * config/microblaze/microblaze.c
13620 (microblaze_option_optimization_table,
13621 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13622 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
13623 * config/mips/mips.c (mips_handle_option,
13624 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13625 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
13626 mips-common.c.
13627 * config/mmix/mmix.c (mmix_option_optimization_table,
13628 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13629 Move to mmix-common.c.
13630 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
13631 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
13632 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13633 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
13634 * config/pa/pa.c: Include common/common-target.h.
13635 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13636 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13637 pa_handle_option): Move to pa-common.c.
13638 (pa_option_override): Use targetm_common.except_unwind_info.
13639 (pa_asm_output_mi_thunk, pa_function_section): Use
13640 targetm_common.have_named_sections.
13641 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
13642 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13643 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13644 pdp11_handle_option, pdp11_option_init_struct): Move to
13645 pdp11-common.c.
13646 * config/picochip/picochip.c (picochip_option_optimization_table,
13647 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
13648 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
13649 * config/rs6000/rs6000.c: Include common/common-target.h.
13650 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
13651 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
13652 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
13653 rs6000_handle_option): Move to rs6000-common.c.
13654 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13655 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
13656 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13657 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
13658 * config/s390/s390.c (processor_flags_table,
13659 s390_option_optimization_table, s390_option_init_struct,
13660 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
13661 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13662 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
13663 * config/s390/s390.h (processor_flags_table): Declare.
13664 * config/score/score.c (score_option_optimization_table,
13665 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13666 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
13667 score_handle_option): Move to score-common.c.
13668 * config/sh/sh.c (sh_option_optimization_table,
13669 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13670 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13671 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
13672 * config/sparc/sparc.c: Include common/common-target.h.
13673 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13674 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
13675 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
13676 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
13677 spu_option_init_struct): Move to spu-common.c.
13678 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
13679 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
13680 * config/v850/v850.c (small_memory_physical_max,
13681 v850_handle_memory_optionn v850_handle_option,
13682 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13683 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
13684 v850-common.c.
13685 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
13686 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
13687 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13688 Move to xtensa-common.c.
13689 * cfglayout.c: Include common/common-target.h.
13690 (fixup_reorder_chain): Use targetm_common.have_named_sections.
13691 * cfgrtl.c: Include common/common-target.h.
13692 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
13693 targetm_common.have_named_sections.
13694 * dbxout.c: Include common/common-target.h.
13695 (dbxout_function_end): Use targetm_common.have_named_sections.
13696 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
13697 targetm_common.except_unwind_info.
13698 * dwarf2out.c: Include common/common-target.h.
13699 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
13700 dwarf2out_begin_prologue, dwarf2out_frame_init,
13701 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
13702 targetm_common.except_unwind_info.
13703 * except.c: Include common/common-target.h.
13704 (init_eh, finish_eh_generation,
13705 output_one_function_exception_table): Use
13706 targetm_common.except_unwind_info.
13707 (switch_to_exception_section): Use targetm_common.have_named_sections.
13708 * explow.c: Include common/common-target.h.
13709 * expr.c: Include common/common-target.h.
13710 (build_personality_function): Use targetm_common.except_unwind_info.
13711 * function.c: Include common/common-target.h.
13712 (expand_function_end): Use targetm_common.except_unwind_info.
13713 * haifa-sched.c: Include common/common-target.h.
13714 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
13715 * lto-opts.c: Include common/common-target.h instead of target.h.
13716 (lto_reissue_options): Use targetm_common.handle_option.
13717 * opts.c: Include common/common-target.h.
13718 (target_handle_option): Use targetm_common.handle_option.
13719 (init_options_struct): Update comment referring to
13720 targetm.target_option.optimization. Use
13721 targetm_common.default_target_flags,
13722 targetm_common.unwind_tables_default and
13723 targetm_common.option_init_struct.
13724 (default_options_optimization): Use
13725 targetm_common.option_optimization_table.
13726 (finish_options): Use targetm_common.except_unwind_info,
13727 targetm_common.unwind_tables_default,
13728 targetm_common.have_named_sections and
13729 targetm_common.supports_split_stack.
13730 * toplev.c: Include common/common-target.h.
13731 (process_options): Use targetm_common.have_named_sections.
13732 * tree-tailcall.c: Include common/common-target.h.
13733 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
13734 * tree.c: Include common/common-target.h.
13735 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
13736 * varasm.c: Include common/common-target.h.
13737 (resolve_unique_section, hot_function_section,
13738 default_function_section): Use targetm_common.have_named_sections.
13739
13740 2011-06-14 Easwaran Raman <eraman@google.com>
13741
13742 PR rtl-optimization/44194
13743 * dse.c: Include tree-flow.h
13744 (insn_info): Add new field non_frame_wild_read.
13745 (group_info): Add new fields escaped_n and escaped_p.
13746 (kill_on_calls): New variable.
13747 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
13748 (dse_step0): Initialize kill_on_calls.
13749 (can_escape): New function.
13750 (set_usage_bits): Add additional parameter; record information
13751 about escaped locations.
13752 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
13753 (dse_step2_nospill): Set kill_on_calls based on
13754 group->escaped_n and group->escaped_n.
13755 (add_wild_read): Refactor into...
13756 (reset_active_stores): ... New function, and
13757 (free_read_records): ... New function.
13758 (add_non_frame_wild_read): New function.
13759 (scan_insn): Call add_non_frame_wild_read on non-const calls.
13760 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
13761 (dse_step5_nospill): Call scan_reads_nospill for instructions
13762 marked as non_frame_wild_read.
13763 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
13764
13765 2011-06-14 Joseph Myers <joseph@codesourcery.com>
13766
13767 * common/common-target-def.h, common/common-target.def,
13768 common/common-target.h, common/config/default-common.c,
13769 common/config/pa/pa-common.c: New files.
13770 * Makefile.in (common_out_file, common_out_object_file,
13771 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
13772 (OBJS-libcommon-target): Include $(common_out_object_file).
13773 (prefix.o): Update dependencies.
13774 ($(common_out_object_file), common/common-target-hooks-def.h,
13775 s-common-target-hooks-def-h): New.
13776 (s-tm-texi): Also check timestamp on common-target.def.
13777 (build/genhooks.o): Update dependencies.
13778 * config.gcc (common_out_file, target_has_targetm_common): Define.
13779 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
13780 TARGET_ALWAYS_STRIP_DOTDOT.
13781 * configure.ac (common_out_object_file): Define.
13782 (common_out_file, common_out_object_file): Substitute.
13783 (common): Create directory.
13784 * configure: Regenerate.
13785 * doc/tm.texi.in (targetm_common): Document.
13786 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
13787 * doc/tm.texi: Regenerate.
13788 * genhooks.c (hook_array): Also include common/common-target.def.
13789 * prefix.c (tm.h): Don't include.
13790 (common/common-target.h): Include.
13791 (ALWAYS_STRIP_DOTDOT): Don't define.
13792 (update_path): Use targetm_common.always_strip_dotdot instead of
13793 ALWAYS_STRIP_DOTDOT.
13794 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
13795
13796 2011-06-14 David Li <davidxl@google.com>
13797
13798 * passes.c (execute_function_todo): Remove TODO_dump_func.
13799 (execute_one_pass): Remove TODO_dump_func.
13800 (execute_function_dump): New function.
13801 * tree-vrp.c: Remove TODO_dump_func.
13802 * regrename.c: Remove TODO_dump_func.
13803 * fwprop.c: Remove TODO_dump_func.
13804 * tree-into-ssa.c: Remove TODO_dump_func.
13805 * tree-complex.c: Remove TODO_dump_func.
13806 * tracer.c: Remove TODO_dump_func.
13807 * tree-loop-distribution.c: Remove TODO_dump_func.
13808 * postreload-gcse.c: Remove TODO_dump_func.
13809 * postreload.c: Remove TODO_dump_func.
13810 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
13811 * tree-tailcall.c: Remove TODO_dump_func.
13812 * ipa-cp.c: Remove TODO_dump_func.
13813 * final.c: Remove TODO_dump_func.
13814 * tree-emutls.c: Remove TODO_dump_func.
13815 * omp-low.c: Remove TODO_dump_func.
13816 * tree-ssa-dse.c: Remove TODO_dump_func.
13817 * tree-ssa-uncprop.c: Remove TODO_dump_func.
13818 * auto-inc-dec.c: Remove TODO_dump_func.
13819 * reorg.c: Remove TODO_dump_func.
13820 * tree-ssa-copyrename.c: Remove TODO_dump_func.
13821 * tree-ssa-ccp.c: Remove TODO_dump_func.
13822 * compare-elim.c: Remove TODO_dump_func.
13823 * mode-switching.c: Remove TODO_dump_func.
13824 * modulo-sched.c: Remove TODO_dump_func.
13825 * tree-call-cdce.c: Remove TODO_dump_func.
13826 * cse.c: Remove TODO_dump_func.
13827 * web.c: Remove TODO_dump_func.
13828 * tree-stdarg.c: Remove TODO_dump_func.
13829 * lto-streamer-out.c: Remove TODO_dump_func.
13830 * tree-ssa-math-opts.c: Remove TODO_dump_func.
13831 * tree-ssa-dom.c: Remove TODO_dump_func.
13832 * tree-nrv.c: Remove TODO_dump_func.
13833 * loop-init.c: Remove TODO_dump_func.
13834 * gimple-low.c: Remove TODO_dump_func.
13835 * ipa-inline.c: Remove TODO_dump_func.
13836 * tree-ssa-sink.c: Remove TODO_dump_func.
13837 * jump.c: Remove TODO_dump_func.
13838 * ifcvt.c: Remove TODO_dump_func.
13839 * tree-ssa-loop.c: Remove TODO_dump_func.
13840 * recog.c: Remove TODO_dump_func.
13841 * dse.c: Remove TODO_dump_func.
13842 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
13843 * matrix-reorg.c: Remove TODO_dump_func.
13844 * tree-eh.c: Remove TODO_dump_func.
13845 * regmove.c: Remove TODO_dump_func.
13846 * function.c: Remove TODO_dump_func.
13847 * tree-vectorizer.c: Remove TODO_dump_func.
13848 * ipa-split.c: Remove TODO_dump_func.
13849 * gcse.c: Remove TODO_dump_func.
13850 * tree-if-conv.c: Remove TODO_dump_func.
13851 * init-regs.c: Remove TODO_dump_func.
13852 * tree-ssa-phiopt.c: Remove TODO_dump_func.
13853 * implicit-zee.c: Remove TODO_dump_func.
13854 * lower-subreg.c: Remove TODO_dump_func.
13855 * bt-load.c: Remove TODO_dump_func.
13856 * tree-dfa.c: Remove TODO_dump_func.
13857 * except.c: Remove TODO_dump_func.
13858 * emit-rtl.c: Remove TODO_dump_func.
13859 * store-motion.c: Remove TODO_dump_func.
13860 * cfgexpand.c: Remove TODO_dump_func.
13861 * tree-cfgcleanup.c: Remove TODO_dump_func.
13862 * cfgcleanup.c: Remove TODO_dump_func.
13863 * tree-ssa-pre.c: Remove TODO_dump_func.
13864 * tree-sra.c: Remove TODO_dump_func.
13865 * tree-mudflap.c: Remove TODO_dump_func.
13866 * tree-ssa-copy.c: Remove TODO_dump_func.
13867 * cfglayout.c: Remove TODO_dump_func.
13868 * tree-ssa-forwprop.c: Remove TODO_dump_func.
13869 * tree-ssa-dce.c: Remove TODO_dump_func.
13870 * ira.c: Remove TODO_dump_func.
13871 * tree-ssa.c: Remove TODO_dump_func.
13872 * integrate.c: Remove TODO_dump_func.
13873 * tree-optimize.c: Remove TODO_dump_func.
13874 * tree-ssa-phiprop.c: Remove TODO_dump_func.
13875 * tree-object-size.c: Remove TODO_dump_func.
13876 * combine.c: Remove TODO_dump_func.
13877 * bb-reorder.c: Remove TODO_dump_func.
13878 * cprop.c: Remove TODO_dump_func.
13879 * var-tracking.c: Remove TODO_dump_func.
13880 * tree-profile.c: Remove TODO_dump_func.
13881 * tree-vect-generic.c: Remove TODO_dump_func.
13882 * reg-stack.c: Remove TODO_dump_func.
13883 * sched-rgn.c: Remove TODO_dump_func.
13884 * tree-ssa-structalias.c: Remove TODO_dump_func.
13885 * tree-switch-conversion.c: Remove TODO_dump_func.
13886 * tree-cfg.c: Remove TODO_dump_func.
13887 * tree-ssa-reassoc.c: Remove TODO_dump_func.
13888 * combine-stack-adj.c: Remove TODO_dump_func.
13889 * dce.c: Remove TODO_dump_func.
13890 * tree-ssanames.c: Remove TODO_dump_func.
13891 * regcprop.c: Remove TODO_dump_func.
13892
13893 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
13894
13895 PR middle-end/47364
13896 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
13897 and properly handle result not in Pmode.
13898
13899 2011-06-14 Robert Millan <rmh@gnu.org>
13900
13901 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
13902 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
13903 `config/linux.h'.
13904
13905 * config/i386/kfreebsd-gnu64.h: New file.
13906 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
13907 with `i386/kfreebsd-gnu64.h'.
13908
13909 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
13910 (GNU_USER_LINK_EMULATION64): New macros.
13911 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
13912 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
13913 of hardcoding `elf_i386' and `elf_x86_64'.
13914
13915 2011-06-14 Nick Clifton <nickc@redhat.com>
13916
13917 PR target/49403
13918 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
13919
13920 PR target/49402
13921 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
13922
13923 2011-06-14 Jakub Jelinek <jakub@redhat.com>
13924
13925 PR fortran/49103
13926 * tree.h (DECL_NONSHAREABLE): Define.
13927 (struct tree_decl_common): Change decl_common_unused to
13928 decl_nonshareable_flag.
13929 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
13930 Ignore vars with DECL_NONSHAREABLE bit set.
13931 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
13932 on stores to automatic aggregate vars.
13933
13934 PR rtl-optimization/49390
13935 Revert:
13936 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
13937
13938 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13939 MEM_ALIAS_SET.
13940
13941 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
13942 Tom de Vries <tom@codesourcery.com>
13943
13944 PR target/45098
13945 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
13946 Document changed semantics.
13947 (max_stmt_executions, max_stmt_executions_int): Declare.
13948 * tree-data-ref.c (estimated_loop_iterations)
13949 (estimated_loop_iterations_int): Move functions...
13950 * tree-ssa-loop-niter.c (estimated_loop_iterations)
13951 (estimated_loop_iterations_int): here.
13952 (record_estimate): Change nb_iterations_upper_bound and
13953 nb_iterations_estimate semantics.
13954 (max_stmt_executions, max_stmt_executions_int): New function.
13955 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
13956 (max_stmt_executions_tree): this.
13957 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
13958 estimated_loop_iterations_tree.
13959 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
13960 max_stmt_executions_int instead of estimated_loop_iterations_int.
13961 * predict.c (predict_loops): Idem.
13962 * tree-parloops.c (parallelize_loops): Idem.
13963 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
13964 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
13965 (init_omega_for_ddr_1): Idem.
13966 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
13967 (loop_prefetch_arrays): Idem
13968 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
13969 max_stmt_executions instead of estimated_loop_iterations.
13970 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
13971 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
13972 instead of nb_iterations_upper_bound.
13973
13974 2011-06-13 Jan Hubicka <jh@suse.cz>
13975
13976 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
13977
13978 2011-06-14 Richard Henderson <rth@redhat.com>
13979
13980 PR debug/48459
13981 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
13982 (based_loc_descr): Assert it's true.
13983 (compute_frame_pointer_to_fb_displacement): Set it, rather than
13984 aborting immediately.
13985
13986 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
13987 Mingfeng Wu <mingfeng@faraday-tech.com>
13988
13989 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
13990
13991 2011-06-13 Jan Hubicka <jh@suse.cz>
13992
13993 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
13994
13995 2011-06-13 Jan Hubicka <jh@suse.cz>
13996
13997 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
13998 similarly to DECL_COMDAT.
13999 * cgraphunit.c (cgraph_analyze_function): Likewise.
14000 * ipa.c (function_and_variable_visibility): Likewise.
14001
14002 2011-06-13 Jan Hubicka <jh@suse.cz>
14003
14004 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14005 BINFO_VIRTUALS when streaming for ltrans unit.
14006
14007 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
14008
14009 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14010 (movdi_internal64): Same.
14011
14012 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
14013
14014 PR target/44618
14015 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14016 a set of similar patterns, where the MATCH_OPERAND for the function
14017 argument is replaced with individual references to hardware registers.
14018 (save_fpregs_<mode>): Ditto
14019 (restore_gpregs_<mode>): Ditto
14020 (return_and_restore_gpregs_<mode>): Ditto
14021 (return_and_restore_fpregs_<mode>): Ditto
14022 (return_and_restore_fpregs_aix_<mode>): Ditto
14023
14024 2011-06-13 Jan Hubicka <jh@suse.cz>
14025
14026 * ipa-utils.c (postorder_stack): New structure.
14027 (ipa_reverse_postorder): Handle aliases.
14028
14029 2011-06-13 Jan Hubicka <jh@suse.cz>
14030
14031 * ipa-inline.c (reset_edge_caches): Walk aliases.
14032 (update_caller_keys): Do not test inlinability of aliases.
14033 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14034 (do_estimate_growth): Fix typo.
14035
14036 2011-06-13 Jan Hubicka <jh@suse.cz>
14037
14038 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14039 (can_remove_node_now_p): ... here; handle same comdat groups.
14040 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14041 (inline_call): Update use of can_remove_node_now_p.
14042
14043 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14044
14045 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14046 condition to disallow non-identical memory locations.
14047 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14048 preference to bit manipulation instructions.
14049
14050 2011-06-13 Jan Hubicka <jh@suse.cz>
14051
14052 * cgraph.c (cgraph_for_node_thunks_and_aliases,
14053 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14054 (nonremovable_p): New function.
14055 (cgraph_can_remove_if_no_direct_calls_p): New function.
14056 (used_from_object_file_p): New functoin.
14057 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14058 references from aliases.
14059 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14060 * ipa-inline.c (check_caller_edge): New function.
14061 (want_inline_function_called_once_p): Use it; accept aliases called
14062 once, too.
14063 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14064
14065 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14066
14067 PR target/48454
14068 * config/arm/neon.md (vec_pack_trunc): Set the lengths
14069 correctly for the case with Quad vectors.
14070
14071 2011-06-13 Jakub Jelinek <jakub@redhat.com>
14072 Ira Rosen <ira.rosen@linaro.org>
14073
14074 PR tree-optimization/49352
14075 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14076 all, make sure loop_use_stmt after the loop is a def stmt of a used
14077 SSA_NAME that is the only one defined inside of the loop. Don't
14078 check for COND_EXPR and GIMPLE_BINARY_RHS.
14079 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14080 check_reduction is true.
14081
14082 2011-06-11 Jan Hubicka <jh@suse.cz>
14083
14084 PR middle-end/49373
14085 * ipa.c (cgraph_externally_visible_p): Check resolution info.
14086
14087 2011-06-11 Jan Hubicka <jh@suse.cz>
14088
14089 PR middle-end/48836
14090 * ipa-inline-transform.c: Include tree-pass.h
14091 (inline_transform): Set TODO_update_ssa_only_virtuals.
14092 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14093
14094 2011-06-11 Jan Hubicka <jh@suse.cz>
14095
14096 PR middle-end/49378
14097 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14098 aliases and thunks.
14099
14100 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
14101
14102 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14103 Take number of iterations to peel into account for equally frequent
14104 misalignment values.
14105
14106 2011-06-11 Jan Hubicka <jh@suse.cz>
14107
14108 * lto-streamer-out.c (produce_symtab): Stream out the newly
14109 represented aliases.
14110
14111 2011-06-11 Jan Hubicka <jh@suse.cz>
14112
14113 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14114 varying args.
14115 (ipa_update_after_lto_read): Likewise.
14116 (ipa_write_node_info): Do not sream call_with_var_arguments.
14117 (ipa_read_node_info): Likewise.
14118
14119 2011-06-11 Jan Hubicka <jh@suse.cz>
14120
14121 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14122
14123 2011-06-11 Jan Hubicka <jh@suse.cz>
14124
14125 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14126 (lto_symtab_resolve_can_prevail_p): Likewise.
14127 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14128 * cgraph.c (same_body_aliases_done): New global var.
14129 (cgraph_same_body_alias_1): Rename to ...
14130 (cgraph_create_function_alias): ... this one; reorg to new
14131 representation.
14132 (cgraph_same_body_alias): Use cgraph_create_function_alias;
14133 record references when asked to.
14134 (cgraph_add_thunk): Fix formating.
14135 (cgraph_get_node): Kill same body alias code.
14136 (cgraph_node_for_asm): Likewise.
14137 (cgraph_remove_same_body_alias): Remove.
14138 (cgraph_remove_node): Kill same body alias code.
14139 (cgraph_mark_address_taken_node): Mark also the aliased function
14140 as having address taken.
14141 (dump_cgraph_node): Dump same body aliases.
14142 (cgraph_for_node_thunks_and_aliases): Update for new alias
14143 representation.
14144 (cgraph_for_node_and_aliases): Likewise.
14145 * cgraph.h (same_body): Kll pointer.
14146 (same_body_alias): Update comment.
14147 (same_body_aliases_done): Declare.
14148 (cgraph_remove_same_body_alias): Remove declaration.
14149 (cgraph_create_function_alias): Declare.
14150 (cgraph_process_same_body_aliases): Declare.
14151 (cgraph_function_with_gimple_body_p): Check for alias.
14152 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14153 (cgraph_alias_aliased_node): New function.
14154 (cgraph_function_node): Update for new aliases.
14155 (cgraph_function_or_thunk_node): Likewise.
14156 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14157 (inline_call): Remove dead aliases.
14158 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14159 name hack for same body aliases.
14160 (clone_of_p): Look through aliases.
14161 (verify_cgraph_node): Verify aliases.
14162 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14163 (cgraph_process_same_body_aliases): New function.
14164 (process_function_and_variable_attributes): Disable weakref warning on
14165 alias.
14166 (cgraph_analyze_functions): Handle aliases.
14167 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14168 (assemble_thunks): Rename to ...
14169 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14170 (cgraph_expand_function): Remove alias output code.
14171 (cgraph_output_in_order): Skip aliases.
14172 (cgraph_preserve_function_body_p): Aliases don't need preserving.
14173 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14174 (ipa_record_reference): Do not assert on alias references.
14175 (ipa_ref_has_aliases_p): New function.
14176 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14177 (ipa_ref_has_aliases_p): Declare.
14178 * lto-cgraph.c (lto_output_node): Handle aliases.
14179 (input_node): Likewise.
14180 * lto-streamer-out.c (lto_output): Skip aliases.
14181 (produce_symtab): Kill same_body_alias code.
14182 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14183 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14184 * ipa-inline.c (update_caller_keys): Walk aliases.
14185 (inline_small_functions): Fix thinko in previous patch.
14186 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14187 (function_and_variable_visibility): Do not walk same body aliases.
14188 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14189 (ipa_pta_execute): Use it.
14190
14191 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14192
14193 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14194 (*vec_dupv2df): Rename from vec_dupv2df.
14195 (vec_dupv2df): New expander.
14196
14197 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14198
14199 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14200
14201 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14202
14203 * config/i386/i386.md: Use default value in "isa" attribute.
14204 * config/i386/sse.md: Ditto.
14205 * config/i386/mmx.md: Ditto.
14206
14207 2011-06-10 Wei Guozhi <carrot@google.com>
14208
14209 PR target/45335
14210 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14211 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14212 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14213 related peephole2.
14214 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14215 related peephole2.
14216 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14217 (arm_legitimate_ldrd_p): New prototype.
14218 (arm_output_ldrd): New prototype.
14219 * config/arm/arm.c (arm_check_ldrd_operands): New function.
14220 (arm_legitimate_ldrd_p): New function.
14221 (arm_output_ldrd): New function.
14222
14223 2011-06-10 David Li <davidxl@google.com>
14224
14225 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14226 * passes.c (passr_eq): New function.
14227 (create_pass_tab): New function.
14228 (pass_traverse): New function.
14229 (dump_one_pass): New function.
14230 (dump_pass_list): New function.
14231 (dump_passes): New function.
14232
14233 2011-06-10 Jan Hubicka <jh@suse.cz>
14234
14235 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14236 setting the nothrow flag.
14237 * ipa-reference.c (propagate): Skip aliases.
14238 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14239 (propagate_nothrow): Skip aliases; do not update cgraph.
14240 (local_pure_const): Do not update cgraph.
14241 * tree-profile.c (tree_profiling): Do fixup_cfg.
14242
14243 2011-06-10 Jan Hubicka <jh@suse.cz>
14244
14245 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14246 (cgraph_local_node_p): ... here; handle aliases.
14247 (has_addr_references_p): Break out from ...;
14248 (cgraph_remove_unreachable_nodes) ... here.
14249
14250 2011-06-10 Jan Hubicka <jh@suse.cz>
14251
14252 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14253 * common.opt (flag_inline_functions_called_once): Do not
14254 initialize to 1.
14255
14256 2011-06-10 Jan Hubicka <jh@suse.cz>
14257
14258 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14259 (ipcp_initialize_node_lattices): Do not deal with aliases;
14260 Do not try to propagate through thunks.
14261 (ipcp_change_tops_to_bottom): Do not deal with aliases.
14262
14263 2011-06-10 Jan Hubicka <jh@suse.cz>
14264
14265 * ipa-prop.c (ipa_write_node_info): Stream jump functions
14266 for indirect calls.
14267 (ipa_read_node_info): Likewise.
14268
14269 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14270
14271 PR lto/49302
14272 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14273 (build_and_insert_call): Likewise.
14274 (build_and_insert_ref): New.
14275 (gimple_expand_builtin_pow): Minor cleanup.
14276 (gimple_expand_builtin_cabs): New.
14277 (execute_cse_sincos): Add case for BUILT_IN_CABS.
14278
14279 2011-06-10 Jan Hubicka <jh@suse.cz>
14280
14281 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14282 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14283 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14284 (ipcp_propagate_stage): Skip aliases when propagating.
14285 (ipcp_need_redirect_p): Skip aliases.
14286 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14287 collect_callers_of_node.
14288 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14289 for aliases.
14290 (ipa_compute_jump_functions): Look through aliases.
14291
14292 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14293
14294 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14295
14296 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14297
14298 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14299 Adjust comments.
14300 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14301
14302 2011-06-10 Jan Hubicka <jh@suse.cz>
14303
14304 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14305 Update call of gimple_get_virt_method_for_binfo.
14306 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14307 refuse_thunks parameter.
14308 (gimple_fold_call): Update.
14309 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14310
14311 2011-06-10 Jan Hubicka <jh@suse.cz>
14312
14313 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14314 (not_all_callers_have_enough_arguments_p): ... this one; turn into
14315 worker for cgraph_for_node_and_aliases.
14316 (convert_callers_for_node): Break out from ...
14317 (convert_callers): ... here.
14318 (modify_function): Use collect_callers_of_node.
14319 (ipa_early_sra): Use cgraph_for_node_and_aliases.
14320
14321 2011-06-10 Richard Guenther <rguenther@suse.de>
14322
14323 PR tree-optimization/49361
14324 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14325 when not already in gimple form.
14326
14327 2011-06-10 Richard Guenther <rguenther@suse.de>
14328
14329 PR bootstrap/49344
14330 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14331 FOR_EACH_PHI_OR_STMT_USE.
14332
14333 2011-06-10 Jan Hubicka <jh@suse.cz>
14334
14335 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14336 (clone_inlined_nodes): ... here.
14337 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14338 to real destination prior inlining.
14339 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14340 can_early_inline_edge_p, want_early_inline_function_p,
14341 want_early_inline_function_p, want_inline_small_function_p,
14342 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14343 edge_badness, update_all_callee_keys, lookup_recursive_calls,
14344 add_new_edges_to_heap, inline_small_functions, flatten_function,
14345 inline_always_inline_functions, early_inline_small_functions): Use
14346 cgraph_function_or_thunk_node.
14347 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14348 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14349 (do_estimate_edge_growth_1): Break out from ...
14350 (do_estimate_growth) ... here; walk aliases.
14351 (inline_generate_summary): Skip aliases.
14352
14353 2011-06-10 Richard Guenther <rguenther@suse.de>
14354
14355 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14356 forward when combining, visit inserted stmts when a stmt was changed.
14357
14358 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
14359
14360 * tree.h (error_operand_p): Add.
14361 * dbxout.c (dbxout_type_fields): Use the latter.
14362 * c-decl.c (add_stmt): Likewise.
14363 * gimplify.c (omp_add_variable, omp_notice_variable,
14364 gimplify_scan_omp_clauses): Likewise.
14365
14366 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
14367
14368 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14369 when a value is actually passed in regs.
14370
14371 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
14372 Laurent Rougé <laurent.rouge@menta.fr>
14373
14374 * doc/invoke.texi (SPARC options): Add -mflat.
14375 * config/sparc/sparc.opt: Likewise.
14376 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
14377 (sparc_flat_expand_prologue): Declare.
14378 (sparc_flat_expand_epilogue): Likewise.
14379 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
14380 (CPP_ENDIAN_SPEC): Replace with...
14381 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
14382 (CPP_SPEC): Adjust to above change.
14383 (EXTRA_SPECS): Likewise.
14384 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14385 (INCOMING_REGNO): Likewise.
14386 (OUTGOING_REGNO): Likewise.
14387 (LOCAL_REGNO): Likewise.
14388 (SETUP_FRAME_ADDRESSES): Likewise.
14389 (FIXED_REGISTERS): Set 0 for %fp.
14390 (CALL_USED_REGISTERS): Likewise.
14391 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14392 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14393 (RETURN_ADDR_REGNUM): Define.
14394 (RETURN_ADDR_RTX): Use it.
14395 (INCOMING_RETURN_ADDR_REGNUM): Define.
14396 (INCOMING_RETURN_ADDR_RTX): Use it.
14397 (DWARF_FRAME_RETURN_COLUMN): Likewise.
14398 (EH_RETURN_REGNUM): Define.
14399 (EH_RETURN_STACKADJ_RTX): Use it.
14400 (EH_RETURN_HANDLER_RTX): Delete.
14401 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14402 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14403 Delete.
14404 (struct machine_function): Add frame_size, apparent_frame_size,
14405 frame_base_reg, frame_base_offset, n_global_fp_regs and
14406 save_local_in_regs_p fields.
14407 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14408 sparc_frame_base_offset, sparc_n_global_fp_regs,
14409 sparc_save_local_in_regs_p): New macros.
14410 (sparc_option_override): Error out if -fcall-saved-REG is specified
14411 for Out registers.
14412 (eligible_for_restore_insn): Fix formatting.
14413 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
14414 (eligible_for_sibcall_delay): Likewise.
14415 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14416 (sparc_legitimate_address_p): Adjust to above change.
14417 (save_global_or_fp_reg_p): New predicate.
14418 (return_addr_reg_needed_p): Likewise.
14419 (save_local_or_in_reg_p): Likewise.
14420 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
14421 (SORR_SAVE, SORR_RESTORE): Delete.
14422 (sorr_pred_t): New typedef.
14423 (sorr_act_t): New enum.
14424 (save_or_restore_regs): Rename to...
14425 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
14426 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14427 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
14428 mechanism. Add CFI information for double-word saves in 32-bit mode.
14429 (emit_adjust_base_to_offset): New function extracted from...
14430 (emit_save_or_restore_regs): ...this. Rename the rest to...
14431 (emit_save_or_restore_regs_global_fp_regs): ...this.
14432 (emit_save_or_restore_regs_local_in_regs): New function.
14433 (gen_create_flat_frame_[123]): New functions.
14434 (sparc_expand_prologue): Use SIZE local variable. Adjust.
14435 (sparc_flat_expand_prologue): New function.
14436 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14437 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
14438 (sparc_flat_expand_epilogue): New function.
14439 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14440 (output_return): Likewise.
14441 (output_sibcall): Likewise.
14442 (sparc_output_mi_thunk): Likewise.
14443 (sparc_frame_pointer_required): Likewise.
14444 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14445 function optimization.
14446 * config/sparc/sparc.md (flat): New attribute.
14447 (prologue): Add TARGET_FLAT handling.
14448 (save_register_window): Disable if TARGET_FLAT.
14449 (create_flat_frame_[123]): New patterns.
14450 (epilogue): Add TARGET_FLAT handling.
14451 (sibcall_epilogue): Likewise.
14452 (eh_return): New expander.
14453 (eh_return_internal): New insn and splitter.
14454 (return_internal): Add TARGET_FLAT handling.
14455 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14456 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14457 (nonlocal_goto): Add TARGET_FLAT handling.
14458 * config/sparc/t-elf: Add -mflat multilib.
14459 * config/sparc/t-leon: Likewise.
14460
14461 2011-06-10 Jan Hubicka <jh@suse.cz>
14462
14463 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14464 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14465 (self_recursive_p): Use cgraph_function_node.
14466 (propagate_pure_const): Likewise.
14467 (propagate_nothrow): Likewise.
14468 * ipa-reference.c (ipa_reference_get_not_read_global): Use
14469 cgraph_function_node.
14470 (propagate_bits): Likewise.
14471 (propagate): Likewise.
14472
14473 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14474 Richard Earnshaw <rearnsha@arm.com>
14475
14476 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14477 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14478 (*thumb2_movdi_vfp): Delete.
14479 (*arm_movdi_vfp_cortexa8): Delete.
14480 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14481 (*movdi_vfp_cortexa8): Likewise.
14482
14483 2011-06-10 Richard Guenther <rguenther@suse.de>
14484
14485 * stor-layout.c (initialize_sizetypes): Give names to all
14486 sizetype kinds.
14487
14488 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
14489
14490 PR tree-optimization/49318
14491 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14492 irrelevant pattern statements.
14493
14494 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14495
14496 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14497
14498 PR bootstrap/49354
14499 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14500 to last assignment.
14501
14502 2011-06-09 Jan Hubicka <jh@suse.cz>
14503
14504 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14505 do not recompute reachable flag.
14506 (cgraph_finalize_function, cgraph_analyze_functions): Set
14507 redefined_extern_inline here.
14508
14509 2011-06-09 Jan Hubicka <jh@suse.cz>
14510
14511 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14512 (cgraph_only_called_directly_p): ... this one; bring offline.
14513 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14514 varpool_used_from_object_file_p): Drop names from the declaratoin.
14515 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14516 collect_callers_of_node): New.
14517 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14518 (cgraph_edge_recursive_p): Use cgraph_function_node.
14519 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14520 (cgraph_node_cannot_be_local_p_1): Break out from ...
14521 (cgraph_node_can_be_local_p): ... here; walk aliases.
14522 (cgraph_for_node_thunks_and_aliases): New function.
14523 (cgraph_for_node_and_aliases): New function.
14524 (cgraph_make_node_local_1): Break out from ...
14525 (cgraph_make_node_local) ... here; use
14526 cgraph_for_node_thunks_and_aliases.
14527 (cgraph_set_nothrow_flag_1): Break out from ...
14528 (cgraph_set_nothrow_flag) ... here;
14529 use cgraph_for_node_thunks_and_aliases.
14530 (cgraph_set_const_flag_1): Break out from ...
14531 (cgraph_set_const_flag) ... here;
14532 use cgraph_for_node_thunks_and_aliases.
14533 (cgraph_set_pure_flag_1): Break out from ...
14534 (cgraph_set_pure_flag) ... here;
14535 use cgraph_for_node_thunks_and_aliases.
14536 (cgraph_propagate_frequency_1): Break out from ...
14537 (cgraph_propagate_frequency) ... here; use
14538 cgraph_for_node_thunks_and_aliases.
14539 (cgraph_used_from_object_file_p): Do not care about aliases.
14540 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14541 New functions.
14542 (collect_callers_of_node_1, collect_callers_of_node): New functions.
14543
14544 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14545
14546 PR rtl-optimization/49154
14547 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14548 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14549 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14550 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14551 * config/cris/cris.h (cris_register_move_cost): Remove
14552 !TARGET_V32 code. Tweak comments.
14553
14554 2011-06-09 Jan Hubicka <jh@suse.cz>
14555
14556 * cgraphbuild.c (record_eh_tables): Mark personality function as having
14557 address taken.
14558
14559 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14560
14561 PR rtl-optimization/49154
14562 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
14563 is a matching slot in the hashtable, assign it to classes_ptr.
14564
14565 PR rtl-optimization/49154
14566 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
14567 register classes.
14568 * doc/tm.texi: Regenerate.
14569
14570 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
14571
14572 PR target/49307
14573 * config/sh/sh.md (UNSPEC_CHKADD): New.
14574 (chk_guard_add): New define_insn_and_split.
14575 (symGOT_load): Use chk_guard_add instead of blockage.
14576
14577 2011-06-09 Kai Tietz <ktietz@redhat.com>
14578
14579 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
14580
14581 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
14582
14583 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
14584
14585 2011-06-09 Wei Guozhi <carrot@google.com>
14586
14587 PR target/46975
14588 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
14589 (peephole2 for conditional move): Generate 16 bit instructions.
14590
14591 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
14592
14593 * config/i386/i386.md (*movdi_internal_rex64): Merge
14594 alternatives 6 and 8.
14595
14596 2011-06-09 David Li <davidxl@google.com>
14597
14598 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14599 * passes.c (passr_eq): New function.
14600 (create_pass_tab): New function.
14601 (pass_traverse): New function.
14602 (dump_one_pass): New function.
14603 (dump_pass_list): New function.
14604 (dump_passes): New function.
14605
14606 2011-06-09 David Li <davidxl@google.com>
14607
14608 * tree-complex.c (tree_lower_complex): Gate cleanup.
14609 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
14610 (execute_optimize_stdarg): Ditto.
14611 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
14612 (execute_cleanup_eh_1): Ditto.
14613 (execute_cleanup_eh): Ditto.
14614 * gcse.c (gate_rtl_pre): Ditto.
14615 (execute_rtl_pre): Ditto.
14616 * except.c (finish_eh_generation): Ditto.
14617 (convert_to_eh_region_ranges): Ditto.
14618 * cprop.c (one_cprop_pass): Ditto.
14619
14620 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
14621
14622 PR target/48673
14623 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
14624 in all basic blocks.
14625
14626 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14627
14628 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
14629 (HAVE_ENABLE_EXECUTE_STACK): Define.
14630 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
14631 (HAVE_ENABLE_EXECUTE_STACK): Define.
14632 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
14633 (HAVE_ENABLE_EXECUTE_STACK): Define.
14634 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
14635 (ENABLE_EXECUTE_STACK): Remove.
14636 (HAVE_ENABLE_EXECUTE_STACK): Define.
14637 [IN_LIBGCC2]: Don't include <windows.h>.
14638 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14639 (HAVE_ENABLE_EXECUTE_STACK): Define.
14640 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
14641 (HAVE_ENABLE_EXECUTE_STACK): Define.
14642 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
14643 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
14644 (HAVE_ENABLE_EXECUTE_STACK): Define.
14645 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
14646 (HAVE_ENABLE_EXECUTE_STACK): Define.
14647 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
14648 (HAVE_ENABLE_EXECUTE_STACK): Define.
14649 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14650 (HAVE_ENABLE_EXECUTE_STACK): Define.
14651 * config/alpha/alpha.c (alpha_trampoline_init): Test
14652 HAVE_ENABLE_EXECUTE_STACK.
14653 * config/i386/i386.c (ix86_trampoline_init): Likewise.
14654 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14655 (sparc64_initialize_trampoline): Likewise.
14656 * libgcc2.c [L_enable_execute_stack]: Remove.
14657 * system.h (ENABLE_EXECUTE_STACK): Poison.
14658 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
14659 * doc/tm.texi: Regenerate.
14660 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
14661
14662 2011-06-09 Jakub Jelinek <jakub@redhat.com>
14663
14664 PR middle-end/49308
14665 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
14666 variable. After resetting and rescanning insn continue with previous
14667 statement.
14668
14669 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14670
14671 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
14672 (gcc_cv_ld_hidden): Likewise.
14673 * configure: Regenerate.
14674 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
14675 (ix86_stack_protect_fail): Mark unused.
14676 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
14677 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
14678 [TARGET_MACHO]: Don't define.
14679 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
14680 (TARGET_STACK_PROTECT_FAIL): Likewise.
14681 (rs6000_stack_protect_fail): Mark unused.
14682 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
14683 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
14684
14685 2011-06-08 Andi Kleen <ak@linux.intel.com>
14686
14687 * varasm.c (get_section): Print location of other conflict
14688 for section conflicts.
14689
14690 2011-06-08 Andi Kleen <ak@linux.intel.com>
14691
14692 * config/i386/driver-i386.c (host_detect_local_cpu):
14693 Add model 0x2d Intel CPU.
14694
14695 2011-06-08 Andi Kleen <ak@linux.intel.com>
14696
14697 * reginfo.c (global_regs_decl): Add.
14698 (globalize_reg): Add decl parameter. Compute location. Pass location
14699 to warnings and add inform. Store decl in global_regs_decl.
14700 * rtl.h (globalize_reg): Update prototype.
14701 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
14702
14703 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
14704
14705 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
14706
14707 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14708
14709 PR target/49305
14710 * config/sh/predicates.md (general_movsrc_operand): Check
14711 mode for memory with indexed address for QI and HImode.
14712 (general_movdst_operand): Likewise.
14713
14714 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
14715
14716 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
14717
14718 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
14719
14720 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
14721 (num_ssa_operands): Likewise.
14722 (op_iter_init_phiuse): Forward-declare.
14723 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
14724
14725 2011-06-08 Nick Clifton <nickc@redhat.com>
14726
14727 * doc/invoke.texi (ARM Options): Update description of
14728 -mthumb-interwork.
14729
14730 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
14731
14732 * config/i386/driver-i386.c (host_detect_local_cpu): Support
14733 unknown Intel family 0x6 CPUs.
14734
14735 2011-06-08 Martin Jambor <mjambor@suse.cz>
14736
14737 * tree-sra.c (mark_rw_status): Removed.
14738 (analyze_access_subtree): New parameter parent instead of
14739 mark_read and mark_write, propagate from that.
14740
14741 2011-06-08 Julian Brown <julian@codesourcery.com>
14742
14743 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
14744 for double-precision helper functions in hard-float mode if only
14745 single-precision arithmetic is supported in hardware.
14746
14747 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
14748
14749 PR rtl-optimization/49303
14750 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
14751 code_motion_path_driver returned 0 or 1.
14752 (sel_region_finish): Clear h_d_i_d.
14753
14754 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14755
14756 * config/sh/sh.c (prepare_move_operands): Set pic register
14757 appropriately for global and local dynamic tls models even
14758 if flag_pic is unset.
14759
14760 2011-06-07 Jason Merrill <jason@redhat.com>
14761
14762 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
14763
14764 2011-06-07 Xinliang David Li <davidxl@google.com>
14765 * passes.c (enable_disable_pass): Handle assembler name.
14766 (is_pass_explicitly_enabled_or_disabled): Ditto.
14767
14768 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14769
14770 PR tree-optimization/48497
14771 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
14772
14773 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14774
14775 PR tree-optimization/46728
14776 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
14777 to use gimple_val_nonnegative_real_p.
14778 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
14779 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
14780
14781 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
14782
14783 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
14784
14785 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
14786
14787 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
14788 constant vectors.
14789
14790 2011-06-07 Richard Guenther <rguenther@suse.de>
14791
14792 * stor-layout.c (initialize_sizetypes): Initialize all
14793 sizetypes based on target definitions.
14794 (set_sizetype): Remove.
14795 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
14796 * tree.h (set_sizetype): Remove.
14797
14798 2011-06-07 Nick Clifton <nickc@redhat.com>
14799
14800 * config.gcc: Unify V850 architecture options and add support for
14801 newer V850 architectures.
14802 * config/v850/t-v850e: Delete.
14803
14804 2011-06-07 Richard Guenther <rguenther@suse.de>
14805
14806 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
14807 Call set_sizetype from here.
14808
14809 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
14810
14811 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
14812 (*maddhisi4tb, *maddhisi4tt): New define_insns.
14813
14814 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
14815 Andrew Stubbs <ams@codesourcery.com>
14816
14817 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
14818 multiplies.
14819 * doc/md.texi (Canonicalization of Instructions): Document widening
14820 multiply canonicalization.
14821
14822 2011-06-07 Jakub Jelinek <jakub@redhat.com>
14823
14824 PR gcov-profile/49299
14825 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
14826
14827 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
14828
14829 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
14830 a pointer.
14831 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
14832 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
14833 vect_recog_pow_pattern): Likewise.
14834 (vect_pattern_recog_1): Remove declaration.
14835 (widened_name_p): Remove declaration. Add new argument to specify
14836 whether to check that both types are either signed or unsigned.
14837 (vect_recog_widen_mult_pattern): Update documentation. Handle
14838 unsigned patterns and multiplication by constants.
14839 (vect_pattern_recog_1): Update vect_recog_func references. Use
14840 statement information from the statement returned from pattern
14841 detection functions.
14842 (vect_pattern_recog): Update vect_recog_func reference.
14843 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
14844 multiplication by a constant use the type of the other operand.
14845
14846 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
14847
14848 PR rtl-optimization/49145
14849 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
14850
14851 2011-06-06 Jakub Jelinek <jakub@redhat.com>
14852
14853 PR debug/49262
14854 * dwarf2out.c (native_encode_initializer): Decrement count in each
14855 iteration.
14856
14857 PR debug/49294
14858 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
14859 non-MODE_INT modes.
14860
14861 PR c++/49264
14862 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
14863 if stmt folded into nothing.
14864 * tree-inline.c (fold_marked_statements): If a builtin at the end of
14865 a bb folded into nothing, just update cgraph edges and move to next bb.
14866 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
14867 to be NULL. Don't compute count and frequency if new_call is NULL.
14868
14869 2011-06-04 Diego Novillo <dnovillo@google.com>
14870
14871 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
14872 (cgraph.o): Likewise.
14873 (cgraphunit.o): Likewise.
14874 * cgraphunit.c: Include lto-streamer.h
14875 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
14876 if LTO is enabled.
14877 * lto-streamer-in.c (unpack_value_fields): Call
14878 streamer_hooks.unpack_value_fields if set.
14879 (lto_materialize_tree): For unhandled nodes, first try to
14880 call lto_streamer_hooks.alloc_tree, if it exists.
14881 (lto_input_ts_decl_common_tree_pointers): Move reading of
14882 DECL_INITIAL to lto_streamer_read_tree.
14883 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
14884 (lto_streamer_read_tree): New.
14885 (lto_reader_init): Rename from lto_init_reader.
14886 Move initialization code to lto/lto.c.
14887 * lto-streamer-out.c (pack_value_fields): Call
14888 streamer_hooks.pack_value_fields if set.
14889 (lto_output_tree_ref): For tree nodes that are not normally indexable,
14890 call streamer_hooks.indexable_with_decls_p before giving up.
14891 (lto_output_ts_decl_common_tree_pointers): Move handling
14892 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
14893 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
14894 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
14895 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
14896 (lto_streamer_write_tree): New.
14897 (lto_output): Call lto_streamer_init directly.
14898 (lto_writer_init): Remove.
14899 * lto-streamer.c (streamer_hooks): New.
14900 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
14901 instead of lto_preload_common_nodes.
14902 (lto_is_streamable): Move from lto-streamer.h
14903 (lto_streamer_hooks_init): New.
14904 (streamer_hooks): New.
14905 (streamer_hooks_init): New.
14906 * lto-streamer.h (struct output_block): Forward declare.
14907 (struct lto_input_block): Likewise.
14908 (struct data_in): Likewise.
14909 (struct bitpack_d): Likewise.
14910 (struct streamer_hooks): Declare.
14911 (streamer_hooks): Declare.
14912 (lto_streamer_hooks_init): Declare.
14913 (lto_streamer_write_tree): Declare.
14914 (lto_streamer_read_tree): Declare.
14915 (streamer_hooks_init): Declare.
14916 (lto_is_streamable): Move to lto-streamer.c
14917
14918 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14919
14920 * longlong.h (smul_ppmm): The resulting register pair contains the
14921 higher order word first.
14922
14923 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14924
14925 PR tree-optimization/46728
14926 * builtins.c (powi_table): Remove.
14927 (powi_lookup_cost): Remove.
14928 (powi_cost): Remove.
14929 (expand_powi_1): Remove.
14930 (expand_powi): Remove.
14931 (expand_builtin_pow_root): Remove.
14932 (expand_builtin_pow): Remove.
14933 (expand_builtin_powi): Eliminate handling of constant exponent.
14934 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
14935
14936 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
14937
14938 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
14939
14940 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
14941
14942 * dce.c (reset_unmarked_insns_debug_uses): New.
14943 (delete_unmarked_insns): Skip debug insns.
14944 (prescan_insns_for_dce): Likewise.
14945 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
14946 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
14947 active reg can be found.
14948 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
14949 (convert_regs_1): Use it.
14950
14951 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
14952
14953 * tree-pretty-print.c (dump_function_header): Add flags.
14954 Don't dump decl_uid with nouid.
14955 * tree-pretty-print.h (dump_function_header): Adjust.
14956 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
14957 * passes.c (pass_init_dump_file): Pass dump_flags on.
14958 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
14959
14960 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
14961
14962 PR bootstrap/49270
14963 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
14964
14965 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
14966
14967 PR tree-optimization/49243
14968 * calls.c (setjmp_call_p): Also check if fndecl has the
14969 returns_twice attribute.
14970
14971 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14972
14973 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
14974 -ffast-math etc.
14975
14976 2011-06-06 Richard Henderson <rth@redhat.com>
14977 Georg-Johann Lay <avr@gjlay.de>
14978
14979 PR target/42210
14980 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
14981 New predicates.
14982 * config/avr/avr.md ("insv"): New insn expander.
14983 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
14984 "*insv.not.io", "*insv.reg"): New insns.
14985
14986 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
14987
14988 PR target/49285
14989 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
14990 to nonimmediate_operand from memory_operand for the operand that is to
14991 be forced to memory by the expander. Lose the constraints.
14992
14993 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
14994
14995 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
14996 EH return when delayed branches are disabled.
14997
14998 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
14999
15000 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15001 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
15002 calculation.
15003 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15004 Simplify MODE_V1DF and MODE_V2SF handling.
15005 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15006 Simplify MODE_SF handling.
15007
15008 2011-06-04 Jan Hubicka <jh@suse.cz>
15009
15010 PR tree-optimization/48893
15011 PR tree-optimization/49091
15012 PR tree-optimization/49179
15013 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15014 Bounds check.
15015
15016 2011-06-04 Jan Hubicka <jh@suse.cz>
15017
15018 PR lto/48954
15019 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15020 bitmaps.
15021
15022 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
15023
15024 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15025
15026 2011-06-04 Jakub Jelinek <jakub@redhat.com>
15027
15028 PR target/49281
15029 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15030 to be strictly smaller than 1 << shiftcount.
15031
15032 2011-06-04 Jan Hubicka <jh@suse.cz>
15033
15034 PR tree-optimize/48929
15035 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15036 of empty predicate.
15037
15038 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
15039
15040 PR debug/48333
15041 * calls.c (emit_call_1): Prefer the __builtin declaration of
15042 builtin functions.
15043
15044 2011-06-03 Diego Novillo <dnovillo@google.com>
15045
15046 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15047 (lto_input_tree_pointers): Likewise.
15048 * lto-streamer-out.c (pack_value_fields): Likewise.
15049 (lto_output_tree_pointers): Likewise.
15050 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15051 and OPTIMIZATION_NODE.
15052
15053 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15054
15055 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15056 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15057 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15058 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15059 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15060 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15061 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15062 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15063 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15064 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15065 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15066 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15067 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15068 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15069 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15070 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15071 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15072 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15073 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15074 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15075 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15076 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15077 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15078 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15079 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15080 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15081 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15082 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15083 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15084 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15085 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15086 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15087 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15088 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15089 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15090 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15091 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15092 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15093 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15094 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15095 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15096 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15097 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15098 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15099 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15100 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15101 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15102 * system.h (MD_UNWIND_SUPPORT): Poison.
15103 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15104 * doc/tm.texi: Regenerate.
15105 * unwind-dw2.c: Include md-unwind-support.h instead of
15106 MD_UNWIND_SUPPORT.
15107 * config/ia64/unwind-ia64.c: Likewise.
15108 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15109
15110 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
15111
15112 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15113
15114 2011-06-03 Richard Henderson <rth@redhat.com>
15115 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15116
15117 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15118 (sigill_hdlr): Correct insn, insn size.
15119 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15120
15121 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15122
15123 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15124 t-slibgcc-dummy.
15125 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15126 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15127 * config/mips/t-iris: Remove.
15128 * config/mips/t-irix6: New file.
15129 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15130
15131 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15132
15133 * Makefile.in (LIB2ADDEHDEP): Remove.
15134 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15135 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15136 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15137 * config/t-darwin (LIB2ADDEHDEP): Remove.
15138 * config/t-freebsd (LIB2ADDEHDEP): Remove.
15139 * config/t-linux (LIB2ADDEHDEP): Remove.
15140
15141 2011-06-03 Diego Novillo <dnovillo@google.com>
15142
15143 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15144 (lto_register_var_decl_in_symtab): Likewise.
15145 (lto_register_function_decl_in_symtab): Likewise.
15146 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15147 logic to uniquify_nodes.
15148
15149 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15150
15151 * config/alpha/t-osf5: Remove.
15152 * config/alpha/t-osf-pthread: Remove.
15153 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15154 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15155
15156 2011-06-03 Julian Brown <julian@codesourcery.com>
15157
15158 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15159 (strongarm1110): Use strongarm tuning.
15160 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15161 * config/arm/arm.c (arm_strongarm_tune): New.
15162 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15163 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15164 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15165 setting, using previous defaults or 1 for Cortex-A5.
15166 (arm_option_override): Set max_insns_skipped from current tuning.
15167
15168 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
15169
15170 * doc/install.texi (Options specification): Document --with-specs.
15171
15172 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15173
15174 * config/arm/neon.md (orndi3_neon): Actually split it.
15175
15176 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15177
15178 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15179 * var-tracking.c (reverse_op): Limite recurse depth to 5.
15180
15181 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15182
15183 PR debug/47590
15184 * target.def (delay_sched2, delay_vartrack): New.
15185 * doc/tm.texi.in: Update.
15186 * doc/tm.texi: Rebuild.
15187 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15188 * var-tracking.c (gate_handle_var_tracking): Likewise.
15189 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15190 (bfin_flag_var_tracking): Drop.
15191 (output_file_start): Don't save and override flag_var_tracking.
15192 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15193 (bfin_reorg): Test original variables.
15194 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15195 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15196 (ia64_flag_var_tracking): Drop.
15197 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15198 (ia64_file_start): Don't save and override flag_var_tracking.
15199 (ia64_override_options_after_change): Ditto
15200 flag_schedule_insns_after_reload.
15201 (ia64_reorg): Test original variables.
15202 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15203 (picochip_flag_var_tracking): Drop.
15204 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15205 (picochip_option_override): Don't save and override
15206 flag_schedule_insns_after_reload.
15207 (picochip_asm_file_start): Ditto flag_var_tracking.
15208 (picochip_reorg): Test original variables.
15209 * config/spu/spu.c (spu_flag_var_tracking): Drop.
15210 (TARGET_DELAY_VARTRACK): Define.
15211 (spu_var_tracking): New.
15212 (spu_machine_dependent_reorg): Call it.
15213 (asm_file_start): Don't save and override flag_var_tracking.
15214
15215 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
15216
15217 PR target/49163
15218 * config/sh/predicates.md (general_movsrc_operand): Return 0
15219 for memory and memory subreg of which address is an invalid
15220 indexed address for QI and HImode.
15221 (general_movdst_operand): Likewise.
15222
15223 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15224
15225 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15226 edges only, when there is a non-local label in the function.
15227 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15228
15229 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15230
15231 * config/i386/constraints.md (Y3): New register constraint.
15232 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15233 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15234 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15235 *sse2_interleave_lowv2df.
15236
15237 2011-06-02 Julian Brown <julian@codesourcery.com>
15238
15239 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15240 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15241 (arm_cortex_a5_tune): New.
15242
15243 2011-06-02 Julian Brown <julian@codesourcery.com>
15244
15245 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15246 * config/arm/arm.c (arm_default_branch_cost): New.
15247 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15248 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15249 (arm_fa726_tune): Set branch_cost field using
15250 arm_default_branch_cost.
15251 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15252 current_tune structure.
15253 * dojump.c (tm_p.h): Include file.
15254
15255 2011-06-02 Julian Brown <julian@codesourcery.com>
15256
15257 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15258 tuning.
15259 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15260 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15261 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15262 field.
15263 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15264 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15265 (arm_fa726te_tune): Add prefer_constant_pool setting.
15266 (arm_v6t2_tune, arm_cortex_tune): New.
15267 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15268 prefer_constant_pool setting.
15269
15270 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15271
15272 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15273 switch statement.
15274 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15275 (*movdf_internal) <case 6,7,8>: Ditto.
15276
15277 * config/i386/constraints.md (Y4): New register constraint.
15278 * config/i386/sse.md (vec_set<mode>_0): Merge with
15279 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15280 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15281 *vec_extractv2di_1_sse.
15282 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15283 and *vec_concatv2di_rex64_sse.
15284
15285 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
15286
15287 PR target/48807
15288 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15289 of cgraph_local_info for null before attempting to use it.
15290
15291 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15292
15293 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15294 (current_function_dynamic_alloc_count): Delete.
15295 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15296 (expand_builtin_nonlocal_goto): Remove obsolete comment.
15297 (expand_builtin_update_setjmp_buf): Remove dead code.
15298 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15299 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15300 support.
15301 * function.c (instantiate_virtual_regs): Likewise.
15302 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15303 for a block with a single abnormal incoming edge.
15304 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15305 (SETJMP_VIA_SAVE_AREA): Delete.
15306 * config/sparc/sparc-protos.h (load_got_register): Declare.
15307 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15308 (load_got_register): Make global.
15309 (sparc_frame_pointer_required): Add 'static'.
15310 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
15311 (sparc_builtin_setjmp_frame_value): New function.
15312 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15313 (save_stack_nonlocal): New expander.
15314 (restore_stack_nonlocal): Likewise.
15315 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15316 (nonlocal_goto_internal): New insn.
15317 (goto_handler_and_restore): Delete.
15318 (builtin_setjmp_setup): Likewise.
15319 (do_builtin_setjmp_setup): Likewise.
15320 (setjmp): Likewise.
15321 (builtin_setjmp_receiver): New expander.
15322
15323 2011-06-01 David Li <davidxl@google.com>
15324
15325 PR middle-end/49261
15326 * tree-pretty-print.c (dump_function_header): Format cleanup.
15327
15328 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
15329
15330 PR target/49238
15331 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15332 needed when original operands are used for msw_skip comparison.
15333
15334 2011-06-01 Jakub Jelinek <jakub@redhat.com>
15335
15336 PR debug/49250
15337 * var-tracking.c (add_uses, add_stores): Don't call
15338 cselib_subst_to_values on ENTRY_VALUE.
15339
15340 2011-06-01 Diego Novillo <dnovillo@google.com>
15341
15342 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15343 output_record_start with LTO_null instead of output_zero.
15344 (lto_output_ts_binfo_tree_pointers): Likewise.
15345 (lto_output_tree): Likewise.
15346 (output_eh_try_list): Likewise.
15347 (output_eh_region): Likewise.
15348 (output_eh_lp): Likewise.
15349 (output_eh_regions): Likewise.
15350 (output_bb): Likewise.
15351 (output_function): Likewise.
15352 (output_unreferenced_globals): Likewise.
15353 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15354 instead of NUM_TREE_CODES.
15355 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15356 (lto_output_int_in_range): Change << to >> when shifting VAL.
15357
15358 2011-06-01 Diego Novillo <dnovillo@google.com>
15359
15360 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15361 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15362
15363 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
15364
15365 PR target/45074
15366 * optabs.h (valid_multiword_target_p): Declare.
15367 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15368 doing multi-word operations.
15369 * optabs.c (expand_binop): Likewise.
15370 (expand_doubleword_bswap): Likewise.
15371 (expand_absneg_bit): Likewise.
15372 (expand_unop): Likewise.
15373 (expand_copysign_bit): Likewise.
15374 (multiword_target_p): New function.
15375
15376 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
15377
15378 PR rtl-optimization/48830
15379 PR rtl-optimization/48808
15380 PR rtl-optimization/48792
15381 * reload.c (push_reload): Check contains_reg_of_mode.
15382 * reload1.c (strip_paradoxical_subreg): New function.
15383 (gen_reload_chain_without_interm_reg_p): Use it to handle
15384 paradoxical subregs.
15385 (emit_output_reload_insns, gen_reload): Likewise.
15386
15387 2011-06-01 David Li <davidxl@google.com>
15388
15389 * predict.c : Change pass name
15390 * ipa.c: Ditto.
15391 * dce.c: Ditto.
15392 * tree-profile.c: Ditto.
15393 * except.c: Ditto.
15394
15395 2011-06-01 David Li <davidxl@google.com>
15396
15397 * tree-pretty-print.c (dump_function_header): New function.
15398 * final.c (rest_of_clean_state): Use header dumper.
15399 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15400 * passes.c (pass_init_dump_file): Use header dumper.
15401
15402 2011-06-01 Jakub Jelinek <jakub@redhat.com>
15403
15404 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15405 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15406 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15407 New functions.
15408 (mem_loc_descriptor): Use them.
15409
15410 * var-tracking.c (create_entry_value): New function.
15411 (vt_add_function_parameter): Use it.
15412
15413 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15414
15415 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15416 Include <signal.h>, <ucontext.h>.
15417 (sigill_caught): Define.
15418 (sigill_hdlr): New function.
15419 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15420 insns can be executed.
15421 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15422 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15423
15424 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15425
15426 * config/t-slibgcc-darwin: Move to ...
15427 * config/t-slibgcc-dummy: ... this. Clarify comments.
15428 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15429 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15430 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15431 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
15432 Remove i386/t-crtstuff from tmake_file.
15433 (i[34567]86-*-solaris2*): Remove t-svr4,
15434 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15435 t-slibgcc-dummy.
15436 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15437 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15438 sparc/t-crtfm from tmake_file.
15439 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15440 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15441 Remove extra_parts.
15442 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15443 * config/i386/t-nwld (SHLIB_LINK): Remove.
15444 * config/i386/t-rtems-i386: Rename to ...
15445 * config/i386/t-rtems: ... this.
15446 ($(T)crti.o, $(T)crtn.o): Remove.
15447 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15448 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15449 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15450 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15451 EXTRA_MULTILIB_PARTS): Remove.
15452 * config/sparc/t-sol2-64: Likewise.
15453 * config/sparc/t-sol2: Remove.
15454 * config/sparc/t-crtin: Remove.
15455 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15456 * config/i386/gmon-sol2.c: Remove.
15457 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15458 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15459 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15460 * config/i386/sol2-gc1.asm: Remove.
15461 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15462 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15463 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15464 * config/t-slibgcc-sld: Remove.
15465
15466 2011-06-01 Jakub Jelinek <jakub@redhat.com>
15467
15468 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15469 base_type_for_mode with op_mode instead of mode.
15470
15471 2011-06-01 Paul Brook <paul@cpodesourcery.com>
15472
15473 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
15474 Cortex-A15.
15475 * config/arm/arm-tune.md: Regenerate.
15476 * config/arm/arm-tables.opt: Regenerate.
15477 * config/arm/arm.c (FL_DIV): Rename...
15478 (FL_THUMB_DIV): ... to this.
15479 (FL_ARM_DIV): Define.
15480 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15481 (arm_arch_hwdiv): Remove.
15482 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15483 (arm_issue_rate): Add cortexr5.
15484 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15485 __ARM_ARCH_EXT_IDIV__.
15486 (TARGET_IDIV): Define.
15487 (arm_arch_hwdiv): Remove.
15488 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15489 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15490 (divsi3, udivsi3): New patterns.
15491 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15492 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15493
15494 2011-06-01 Martin Jambor <mjambor@suse.cz>
15495
15496 * ipa-utils.c (ipa_dfs_info): New field scc_no.
15497 * ipa-utils.c (searchc): Set scc_no.
15498
15499 2011-06-01 Martin Jambor <mjambor@suse.cz>
15500
15501 * ipa-utils.c (searchc_env): New field allow_overwritable.
15502 (searchc): do not ignore edges to overwritable nodes if indicated
15503 by env->allow_overwritable.
15504 (ipa_reduced_postorder): Set env.allow_overwritable.
15505
15506 2011-06-01 Richard Guenther <rguenther@suse.de>
15507
15508 * tree.c (free_lang_data): Do not reset boolean_type_node nor
15509 char_type_node.
15510 * lto-streamer.c (lto_record_common_node): Take node pointer,
15511 do not register types.
15512 (lto_preload_common_nodes): Explicitly skip preloading nodes
15513 that differ between frontends.
15514
15515 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
15516
15517 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15518 NON_FLOAT_REGS.
15519
15520 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
15521
15522 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15523 parameter value for dump. Dump cost on outermost call only.
15524 (rs6000_memory_move_cost): Dump cost on outermost call only.
15525
15526 2011-05-31 Jakub Jelinek <jakub@redhat.com>
15527
15528 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15529 DW_OP_GNU_convert ops.
15530
15531 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15532 cselib_preserve_constants.
15533 (cselib_lookup_1): If cselib_preserve_constants,
15534 a new VALUE is being created for REG and there is a VALUE for the
15535 same register in wider mode, add another loc with lowpart SUBREG of
15536 the wider VALUE.
15537 (cselib_subst_to_values): Handle ENTRY_VALUE.
15538 * var-tracking.c (replace_expr_with_values): Return NULL for
15539 ENTRY_VALUE too.
15540 * dwarf2out.c (convert_descriptor_to_signed): New function.
15541 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15542 instead of two shifts.
15543 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15544 the right mode if needed.
15545 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15546 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15547 convert_descriptor_to_signed.
15548 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15549 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15550
15551 PR target/48688
15552 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15553
15554 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
15555
15556 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15557 of X87MODEI12 and SWI48x instead of SSEMODEI24.
15558 (SWI248x): New mode iterator, rename from X87MODEI.
15559 (X87MODEI): Remove mode iterator.
15560 (X87MODEI12): Ditto.
15561 (SSEMODEI24): Ditto.
15562
15563 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15564
15565 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
15566 * doc/invoke.texi: Document max-vartrack-expr-depth.
15567 * var-tracking.c (EXPR_DEPTH): New.
15568 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
15569
15570 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15571
15572 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
15573 * config/i386/sse.md: Add n to negated FMA pattern names.
15574
15575 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15576
15577 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
15578
15579 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15580
15581 * gengtype-state.c (read_state_params_structs): Initialize previous.
15582
15583 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
15584
15585 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
15586 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
15587
15588 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
15589
15590 * config/i386/i386.md (*movtf_internal): Avoid allocating general
15591 registers. Penalize F*r->o alternative to prevent partial memory
15592 stalls. Slightly penalize *roF->*r alternative. Generate SSE
15593 CONST_DOUBLE immediates when optimizing function for size. Do not move
15594 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15595 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
15596 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
15597 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
15598 alternatives.
15599 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
15600
15601 (fp_register_operand splitters): Use fp_register_operand
15602 constraint. Do not use FP_REG_P in insn condition.
15603 (any_fp_register_operand splitters): Use any_fp_register_operand
15604 constraint. Do not use ANY_FP_REG_P in insn condition.
15605
15606 2011-05-31 Jan Hubicka <jh@suse.cz>
15607
15608 * cgraph.h (cgraph_inline_failed_t): Give enum a name
15609 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
15610 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
15611 (lto_output_edge): Use output_enum and var_len_unsigned.
15612 (lto_output_varpool_node): Likewise.
15613 (input_overwrite_node): Do not take resolution parameter;
15614 extract it from a bitpack.
15615 (input_node): Do not read resolution; use input_enum and
15616 var_len_unsigned.
15617 (input_varpool_node): Likewise.
15618 (input_edge): Likewise.
15619 (input_cgraph_1): Likewise.
15620
15621 2011-05-31 Richard Guenther <rguenther@suse.de>
15622
15623 * gimple.c (gimple_register_canonical_type): Do not register
15624 any types via gimple_register_type.
15625
15626 2011-05-31 Jan Hubicka <jh@suse.cz>
15627
15628 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
15629 of thunks.
15630
15631 2011-05-31 Jakub Jelinek <jakub@redhat.com>
15632
15633 PR rtl-optimization/49235
15634 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
15635 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
15636
15637 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
15638
15639 PR tree-optimization/49093
15640 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
15641 data references.
15642
15643 2011-05-31 Dodji Seketeli <dodji@redhat.com>
15644
15645 PR debug/49047
15646 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
15647 for concrete functions containing the code of cloned functions.
15648
15649 2011-05-31 Richard Guenther <rguenther@suse.de>
15650
15651 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
15652 to ...
15653 (forward_propagate_into_comparison_1): ... this.
15654 (forward_propagate_comparison): Rename to ...
15655 (forward_propagate_into_comparison): ... this. Split out
15656 real forward propagation code to ...
15657 (forward_propagate_comparison): ... this.
15658 (forward_propagate_into_gimple_cond): Remove looping.
15659 (forward_propagate_into_cond): Likewise.
15660 (simplify_not_neg_expr): Return whether we have done something.
15661 (simplify_gimple_switch): Likewise.
15662 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
15663 (ssa_forward_propagate_and_combine): ... this. Re-structure
15664 to do a forward forward-propagation walk on BBs and a backward
15665 stmt combining walk on BBs. Consistently re-scan changed statements.
15666 (pass_forwprop): Adjust.
15667
15668 2011-05-30 Ian Lance Taylor <iant@google.com>
15669
15670 * godump.c (go_format_type): Correct length of name added to
15671 obstack for anonymous field.
15672
15673 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
15674
15675 PR target/49186
15676 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
15677 part of the second operand is 0.
15678
15679 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
15680
15681 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
15682 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
15683 to memory for !TARGET_MEMORY_MISMATCH_STALL.
15684 (*movdf_internal_rex64): Do not penalize F->r alternative.
15685 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
15686 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
15687 when optimizing function for size. Do not move CONST_DOUBLEs
15688 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15689 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
15690 SUBREGs. Do not check for MEM_P operands in the insn condition,
15691 check for ANY_FP_REGNO_P instead.
15692 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
15693 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
15694 function for speed.
15695 * config/i386/i386.c (ix86_option_override_internal): Do not
15696 set TARGET_INTEGER_DFMODE_MOVES here.
15697
15698 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
15699
15700 PR target/49168
15701 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
15702
15703 2011-05-30 Jakub Jelinek <jakub@redhat.com>
15704
15705 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
15706 DW_TAG_rvalue_reference_type even for
15707 -gdwarf-4 -fno-debug-types-section.
15708
15709 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15710
15711 PR tree-optimization/46728
15712 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
15713 (build_and_insert_binop): New.
15714 (gimple_expand_builtin_pow): Reorder args for
15715 build_and_insert_call; use build_and_insert_binop; add more
15716 optimizations for fractional exponents.
15717
15718 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
15719
15720 PR bootstrap/49190
15721
15722 Revert:
15723 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
15724
15725 * tree.h (struct tree_identifier): Inherit from tree_typed, not
15726 tree_common.
15727 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15728 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15729 TS_BASE instead of TS_COMMON.
15730 * varasm.c (assemble_name): Remove assert.
15731
15732 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
15733
15734 * config.gcc: Keep obselete list sorted.
15735
15736 2011-05-30 Jakub Jelinek <jakub@redhat.com>
15737 Eric Botcazou <ebotcazou@adacore.com>
15738
15739 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
15740 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
15741 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
15742 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
15743 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
15744
15745 2011-05-30 Richard Guenther <rguenther@suse.de>
15746
15747 * gimple.c (gimple_types_compatible_p_1): Compare record
15748 and union type members properly.
15749
15750 2011-05-30 Richard Guenther <rguenther@suse.de>
15751
15752 PR tree-optimization/49210
15753 * ipa-split.c (split_function): Care for the case where the call
15754 result is not trivially convertible to the result holding variable.
15755
15756 2011-05-30 Richard Guenther <rguenther@suse.de>
15757
15758 PR tree-optimization/49218
15759 * tree-vrp.c (adjust_range_with_scev): Properly check whether
15760 overflow occured.
15761
15762 2011-05-30 Richard Guenther <rguenther@suse.de>
15763
15764 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
15765 New function split out from ...
15766 (forward_propagate_into_gimple_cond): ... here. Adjust.
15767 (forward_propagate_into_cond): Likewise.
15768 (forward_propagate_comparison): Also propagate into
15769 comparisons on assignment RHS. Change return value to
15770 behave similar to forward_propagate_into_cond.
15771 (tree_ssa_forward_propagate_single_use_vars): Handle
15772 strict-overflow warnings properly for forward_propagate_comparison.
15773
15774 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15775
15776 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
15777 from plugin linker.
15778 * configure: Regenerate.
15779
15780 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
15781
15782 PR tree-optimization/49199
15783 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
15784 non-reduction operands are either defined in the loop or by induction.
15785
15786 2011-05-29 Xinliang David Li <davidxl@google.com>
15787
15788 * opts-global.c (handle_common_deferred_options): Handle new options.
15789 * passes.c (register_one_dump_file): Call register_pass_name.
15790 (execute_one_pass): Check explicit enable/disable flag.
15791 (passr_hash): New function.
15792 (passr_eq): Ditto.
15793 (register_pass_name): Ditto.
15794 (get_pass_by_name): Ditto.
15795 (pass_hash): Ditto.
15796 (pass_eq): Ditto.
15797 (enable_pass): Ditto.
15798 (disable_pass): Ditto.
15799 (is_pass_explicitly_enabled_or_disabled): Ditto.
15800
15801 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
15802
15803 * config/i386/i386.md (*movoi_internal_avx): Use
15804 standard_sse_constant_opcode for alternative 0.
15805 (*movti_internal_sse): Ditto.
15806 (*movti_internal_rex64): Use standard_sse_constant_opcode for
15807 alternative 2.
15808 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
15809 sselog1 type moves.
15810 (*movsi_internal): Ditto.
15811 (*movdi_internal): Ditto. Add ssecvt type moves.
15812
15813 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
15814
15815 PR target/48830
15816 * rtlanal.c (simplify_subreg_regno): Adjust comment.
15817
15818 2011-05-29 Jakub Jelinek <jakub@redhat.com>
15819
15820 PR rtl-optimization/49095
15821 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
15822 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
15823
15824 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
15825
15826 PR target/43995
15827 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
15828 recurse_p argument. Only follow register copies if it is set,
15829 and prevent mips_find_pic_call_symbol from recursing.
15830 (mips_find_pic_call_symbol): Add a recurse_p argument.
15831 Pass it to mips_pic_call_symbol_from_set.
15832 (mips_annotate_pic_calls): Update accordingly.
15833
15834 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
15835
15836 * emit-rtl.c (try_split): Use a loop to search for
15837 NOTE_INSN_CALL_ARG_LOCATIONs.
15838
15839 2011-05-29 Richard Guenther <rguenther@suse.de>
15840
15841 PR tree-optimization/49217
15842 * ipa-pure-const.c (propagate_pure_const): Fix typos.
15843
15844 2011-05-28 Jan Hubicka <jh@suse.cz>
15845
15846 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
15847 length.
15848 (string_slot_free): Remove
15849 (create_output_block): Initialize obstack.
15850 (destroy_output_block): Free obstack.
15851 (lto_string_index): Add PERSISTENT parameter; do not duplicate
15852 the string unless it needs to be added into the hash.
15853 (lto_output_string_with_length): Add persistent attribute;
15854 handle NULL strings.
15855 (lto_output_string): Add PERSISTENT parameter.
15856 (output_string_cst, output_identifier): Simplify.
15857 (lto_output_location_bitpack): Update.
15858 (lto_output_builtin_tree): Update.
15859 * lto-streamer.h (struct output_block): Add obstack.
15860 (lto_output_string, lto_output_string_with_length): Remove
15861 declarations; functions are static now.
15862
15863 2011-05-28 Jan Hubicka <jh@suse.cz>
15864
15865 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
15866 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
15867 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
15868 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
15869 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
15870 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
15871 unpack_ts_decl_with_vis_value_fields,
15872 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
15873 lto_get_builtin_tree): Use enum and variable length i/o.
15874 * basic-block.h (profile_status_d): Add PROFILE_LAST.
15875 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
15876 New functions.
15877 (bp_pack_enum, bp_unpack_enum): New macros.
15878
15879 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15880
15881 * genrecog.c: Remove redundant forward declarations.
15882
15883 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15884
15885 * config.gcc: Deprecate mips*-*-openbsd*.
15886
15887 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15888
15889 PR bootstrap/49195
15890 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
15891 for match_op_dup.
15892
15893 2011-05-27 Andrew Pinski <pinskia@gmail.com>
15894
15895 PR middle-end/48981
15896 * gengtype.c (vec_prefix_type): New function.
15897 (note_def_vec): Use vec_prefix_type and change the length
15898 attribute to be based on the prefix.
15899 * vec.c: Include coretypes.h before vec.h.
15900 (struct vec_prefix): Remove.
15901 (vec_gc_p_reserve): Change the offsetof to sizeof.
15902 (vec_gc_p_reserve_exact): Likewise.
15903 (vec_heap_p_reserve): Likewise.
15904 (vec_heap_p_reserve_exact): Likewise.
15905 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
15906 (vec_stack_p_reserve): Change the offsetof to sizeof.
15907 (vec_stack_p_reserve_exact): Likewise.
15908 * vec.h (struct vec_prefix): New struct definition.
15909 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
15910 (VEC_T_GTY(T,B)): Likewise.
15911 (DEF_VEC_FUNC_P(T)): Use prefix field.
15912 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
15913 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
15914
15915 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15916
15917 PR tree-optimization/46728
15918 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
15919 (powi_as_mults): Add gimple_set_location.
15920 (build_and_insert_call): New.
15921 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
15922 0.5, 0.25, 0.75, 1./3., or 1./6.
15923
15924 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
15925
15926 * doc/contrib.texi: Update copyright years.
15927 (Contributors): Add Zdenek Sojka.
15928
15929 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
15930
15931 * c-decl.c (c_push_function_context): Copy the current statement
15932 list stack.
15933 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
15934 (finish_struct): Call building_stmt_list_p instead of checking
15935 cur_stmt_list.
15936 * c-parser.c (c_parser_postfix_expression): Likewise.
15937 * c-typeck.c (c_end_compound_stmt): Likewise.
15938 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
15939 * tree-iterator.c (stmt_list_cache): Change to a VEC.
15940 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
15941 (free_stmt_list): Likewise.
15942 * tree.h (struct tree_statement_list): Include typed_tree instead
15943 of tree_common.
15944 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
15945 as TS_TYPED instead of TS_COMMON.
15946
15947 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15948 Uros Bizjak <ubizjak@gmail.com>
15949
15950 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
15951 (HAVE_AS_IX86_TLSGDPTL): Define.
15952 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
15953 (HAVE_AS_IX86_TLSLDMPLT): Define.
15954 * configure: Regenerate.
15955 * config.in: Regenerate.
15956 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
15957 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
15958 TARGET_SUN_TLS, use @tlsgdplt or @plt.
15959 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
15960 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
15961 @tlsldmplt or @plt.
15962 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
15963
15964 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
15965
15966 * sched-int.h (struct _haifa_deps_insn_data): New members cond
15967 and reverse_cond.
15968 (INSN_COND, INSN_REVERSE_COND): New macros.
15969 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
15970 once.
15971 (sched_get_condition_with_rev): Cache the results, and look them up
15972 if possible.
15973 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
15974 are clobbered by the current insn.
15975 * target.def (exposed_pipline): New sched data hook.
15976 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
15977 * doc/tm.texi: Regenerate.
15978
15979 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15980
15981 PR tree-optimization/49170
15982 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
15983 sincos or cexp.
15984
15985 2011-05-27 Richard Guenther <rguenther@suse.de>
15986
15987 PR middle-end/49189
15988 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
15989 of comparisons.
15990
15991 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
15992
15993 * haifa-sched.c (sched_scan_info): Remove.
15994 (schedule_block): Call sched_extend_luids rather than sched_init_luids
15995 with NULL args.
15996 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
15997 Remove functions.
15998 (sched_scan): Remove.
15999 (sched_extend_luids): Renamed from luids_extend_insn and no longer
16000 static. All callers changed.
16001 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16002 static. All callers changed.
16003 (sched_init_luids): Remove all arguments except the first. All
16004 callers changed. Don't use sched_scan.
16005 (haifa_init_h_i_d): Likewise.
16006 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16007 manually rather than using sched_init_luids. Likewise with
16008 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16009 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16010 rather than sched_init_luids with NULL args.
16011 * sel-sched-ir.c (new_insns): Remove variable.
16012 (sched_scan): New static function, previously in haifa-sched.c. Remove
16013 all arguments but the first two; all callers changed.
16014 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16015 rather than sched_init_luids.
16016 (sel_init_bbs): Remove second argument. All callers changed.
16017 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16018 with NULL arguments.
16019 (create_insn_rtx_from_pattern): Likewise.
16020 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16021 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16022 (sched_init_insn_luid, sched_extend_luids): Declare.
16023 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16024 declarations.
16025
16026 2011-05-27 Richard Guenther <rguenther@suse.de>
16027
16028 PR middle-end/49177
16029 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16030 A CMP B ? (T) true : (T) false for non-integral types T again.
16031
16032 2011-05-27 Jan Hubicka <jh@suse.cz>
16033
16034 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16035 so 0 means NULL string.
16036 (lto_output_string_with_length): ... here.
16037 (lto_output_string, output_string_cst, output_identifier): Update
16038 handling of NULL strings.
16039 (lto_output_location_bitpack): New function.
16040 (lto_output_location): Use it.
16041 (lto_output_tree_ref): Use output_record_start.
16042 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16043 len values.
16044 * lto-streamer-in.c (string_for_index): Break out from ...; offset
16045 values by 1.
16046 (input_string_internal): ... here;
16047 (input_string_cst, input_identifier, lto_input_string): Update handling
16048 of NULL strings.
16049 (lto_input_location_bitpack): New function
16050 (lto_input_location): Use it.
16051 (unpack_ts_type_common_value_fields): Pack align & alias in var len
16052 values.
16053 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16054 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16055 (bp_pack_value): Sanity check the value range.
16056 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16057 New functions.
16058 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16059 New functions.
16060
16061 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
16062
16063 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16064 call_arg_location instructions down the floor.
16065
16066 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
16067
16068 PR rtl-optimization/49154
16069 * ira.c (setup_pressure_classes): Process class without sublcasses
16070 as a candidate for pressure classes.
16071
16072 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
16073
16074 PR rtl-optimization/48575
16075 * genrecog.c (position_type): New enum.
16076 (position): New structure.
16077 (decision): Use position structure instead of a string.
16078 (root_pos, peep2_insn_pos_list): New variables.
16079 (next_position, compare_positions): New functions.
16080 (new_decision): Use position structures instead of strings.
16081 (maybe_both_true): Likewise.
16082 (change_state): Likewise.
16083 (write_tree): Likewise.
16084 (make_insn_sequence): Likewise.
16085
16086 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16087
16088 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16089 TS_BASE instead of TS_COMMON.
16090 (find_decls_types_r): Check for TS_TYPED structure before looking at
16091 TREE_TYPE.
16092 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16093 Add chain field.
16094 (BLOCK_CHAIN): Use new chain field.
16095
16096 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
16097
16098 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16099 moves expensive on Power7 also.
16100
16101 2011-05-26 Richard Guenther <rguenther@suse.de>
16102
16103 * fold-const.c (fold_unary_loc): Remove bogus code.
16104
16105 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16106
16107 * tree.h (struct tree_identifier): Inherit from tree_typed, not
16108 tree_common.
16109 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16110 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16111 TS_BASE instead of TS_COMMON.
16112 * varasm.c (assemble_name): Remove assert.
16113
16114 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16115
16116 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16117 substituted first.
16118 * libgcc-std.ver: Delete file.
16119
16120 2011-05-26 Richard Guenther <rguenther@suse.de>
16121
16122 PR tree-optimization/48702
16123 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16124 only when we know the base address is within bounds.
16125 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16126 assume the base address of TARGET_MEM_REFs is in bounds.
16127
16128 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16129
16130 PR target/49099
16131 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16132 declaration in TARGET_SOLARIS.
16133
16134 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
16135
16136 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16137 The instruction is then expanded explicitly.
16138 (supported_compare): Callable instruction.
16139 (compare): Likewise.
16140
16141 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16142
16143 PR c++/49165
16144 * gimplify.c (shortcut_cond_r): Don't special case
16145 COND_EXPRs if they have void type on one of their arms.
16146
16147 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16148
16149 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16150 to reduce duplication, and to achieve a slightly more logical order
16151 of operations.
16152
16153 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16154
16155 PR tree-optimization/49161
16156 * tree-vrp.c (struct case_info): New type.
16157 (compare_case_labels): Sort case_info structs instead of
16158 trees, and not primarily by CASE_LABEL uids but by
16159 label_for_block indexes.
16160 (find_switch_asserts): Put case labels into struct case_info
16161 array instead of TREE_VEC, adjust sorting, compare label_for_block
16162 values instead of CASE_LABELs.
16163
16164 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16165
16166 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16167 ("orndi3_neon"): Likewise.
16168 ("bic<mode>3_neon"): Likewise.
16169
16170 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
16171
16172 PR tree-optimization/49038
16173 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16174 Ensure at least one epilogue iteration if required by data
16175 accesses with gaps.
16176 * tree-vectorizer.h (struct _loop_vec_info): Add new field
16177 to mark loops that require peeling for gaps.
16178 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16179 (vect_get_known_peeling_cost): Take peeling for gaps into
16180 account.
16181 (vect_transform_loop): Generate epilogue if required by data
16182 access with gaps.
16183 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16184 loop as requiring an epilogue if there are gaps in the end of
16185 the strided group.
16186
16187 2011-05-25 Ian Lance Taylor <iant@google.com>
16188
16189 * godump.c (go_format_type): Output the first field with a usable
16190 Go type, if any.
16191
16192 2011-05-25 Ian Lance Taylor <iant@google.com>
16193
16194 * godump.c (go_format_type): Check for invalid type names, pointer
16195 target types, and struct field types.
16196
16197 2011-05-25 Jason Merrill <jason@redhat.com>
16198
16199 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16200
16201 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
16202
16203 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16204
16205 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16206
16207 * config/i386/i386.md (*movqi_extv_1)): Put back
16208 "register_operand" check in "type" calculation.
16209 (*movqi_extzv_2): Likewise.
16210
16211 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16212
16213 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16214
16215 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16216
16217 PR bootstrap/49160
16218 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16219 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16220 __divxc3, __divtc3): Wrap definitions in #ifndef.
16221
16222 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16223
16224 PR target/49142
16225 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16226 "register_operand" check and replace q_regs_operand with
16227 QIreg_operand in "type" calculation.
16228 (*movqi_extv_1): Likewise.
16229 (*movqi_extzv_2_rex64): Likewise.
16230 (*movqi_extzv_2): Likewise.
16231
16232 * config/i386/predicates.md (QIreg_operand): New.
16233
16234 2011-05-25 Richard Guenther <rguenther@suse.de>
16235
16236 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16237 type-based offset disambiguation, streamline MEM_REF and
16238 TARGET_MEM_REF handling.
16239
16240 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16241
16242 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16243 (bdesc_special_args): Add pause intrinsic.
16244
16245 * config/i386/i386.md (UNSPEC_PAUSE): New.
16246 (pause): Likewise.
16247 (*pause): Likewise.
16248 * config/i386/ia32intrin.h (__pause): Likewise.
16249
16250 * doc/extend.texi (X86 Built-in Functions): Add documentation for
16251 pause intrinsic.
16252
16253 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16254
16255 PR tree-optimization/46728
16256 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16257 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16258
16259 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
16260
16261 * tree.h (struct tree_exp): Inherit from struct tree_typed.
16262 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16263 instead of TS_COMMON.
16264
16265 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16266
16267 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16268 LIBGCC2_GNU_PREFIX is defined.
16269 (__N): New macro.
16270 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16271 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16272 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16273 __clz_tab): Define using __N.
16274 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16275 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16276 * target.def (libfunc_gnu_prefix): New hook.
16277 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16278 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16279 * doc/tm.texi: Regenerate.
16280 * system.h (LIBGCC2_GNU_PREFIX): Poison.
16281 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16282 account.
16283 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16284 (init_optabs): Likewise for the bswap libfuncs.
16285 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16286 and divide.
16287 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16288 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16289 * libgcc-std.ver: Remove.
16290 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16291 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16292 libgcc-std.ver.
16293 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16294 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16295 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16296 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16297 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16298 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16299 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16300 * config/fixed-bit.h (FIXED_OP): Define differently depending on
16301 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16302 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16303
16304 2011-05-25 Jan Hubicka <jh@suse.cz>
16305
16306 * lto-streamer-out.c (output_record_start): Use lto_output_enum
16307 (lto_output_tree): Use output_record_start.
16308 * lto-streamer-in.c (input_record_start): Use lto_input_enum
16309 (lto_get_pickled_tree): Use input_record_start.
16310 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16311 (lto_value_range_error): New function.
16312 * lto-streamer.h (lto_value_range_error): Declare.
16313 (lto_output_int_in_range, lto_input_int_in_range): New functions.
16314 (lto_output_enum, lto_input_enum): New macros.
16315
16316 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
16317
16318 * common.opt (flag_stack_usage_info): New variable.
16319 (-Wstack-usage): New option.
16320 * doc/invoke.texi (Warning options): Document -Wstack-usage.
16321 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16322 <OPT_fstack_usage>: Likewise.
16323 * toplev.c (output_stack_usage): Handle -Wstack-usage.
16324 * calls.c (expand_call): Test flag_stack_usage_info variable instead
16325 of flag_stack_usage.
16326 (emit_library_call_value_1): Likewise.
16327 * explow.c (allocate_dynamic_stack_space): Likewise.
16328 * function.c (instantiate_virtual_regs ): Likewise.
16329 (prepare_function_start): Likewise.
16330 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16331 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16332 * config/arm/arm.c (arm_expand_prologue): Likewise.
16333 (thumb1_expand_prologue): Likewise.
16334 * config/avr/avr.c (expand_prologue): Likewise.
16335 * config/i386/i386.c (ix86_expand_prologue): Likewise.
16336 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16337 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16338 * config/mips/mips.c (mips_expand_prologue): Likewise.
16339 * config/pa/pa.c (hppa_expand_prologue): Likewise.
16340 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16341 * config/s390/s390.c (s390_emit_prologue): Likewise.
16342 * config/sh/sh.c (sh_expand_prologue): Likewise.
16343 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16344 * config/spu/spu.c (spu_expand_prologue): Likewise.
16345
16346 2011-05-25 Richard Guenther <rguenther@suse.de>
16347
16348 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16349 (gimple_canonical_types_compatible_p): Likewise.
16350
16351 2011-05-25 Jan Hubicka <jh@suse.cz>
16352
16353 PR middle-end/49062
16354 * ipa.c (function_and_variable_visibility): Only add to same
16355 comdat group list if DECL_ONE_ONLY.
16356
16357 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
16358
16359 PR rtl-optimization/49014
16360 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16361
16362 2011-05-25 Jakub Jelinek <jakub@redhat.com>
16363
16364 PR target/49128
16365 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16366
16367 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
16368
16369 PR rtl-optimization/48757
16370 * ira-build.c (loop_with_eh_edge_p): Rename to
16371 loop_with_complex_edge_p, check edges on complexity, make function
16372 conditional.
16373 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16374 conditional.
16375
16376 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
16377
16378 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
16379 force flag_ira_share_save_slots to 0.
16380
16381 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
16382
16383 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16384 (vt_initialize): Set PROLOGUE_BB unconditionally.
16385 Add block comment about CFA_BASE_RTX machinery.
16386 Reset FP_CFA_OFFSET to -1 on all invalid paths.
16387 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16388
16389 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
16390
16391 PR objc/48187
16392 * c-parser.c (c_parser_objc_class_instance_variables): More robust
16393 parsing of syntax error in ObjC instance variable lists. In
16394 particular, avoid an infinite loop if there is a stray ']'.
16395 Updated error message.
16396
16397 2011-05-24 Ian Lance Taylor <iant@google.com>
16398
16399 * godump.c (go_define): Don't accept a string immediately after
16400 another operand.
16401
16402 2011-05-24 Ian Lance Taylor <iant@google.com>
16403
16404 * godump.c (struct godump_container): Add invalid_hash field.
16405 (go_format_type): Return false if type is found in invalid_hash.
16406 (go_output_typedef): Add invalid type to invalid_hash.
16407 (go_finish): Create and delete invalid_hash.
16408
16409 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16410
16411 PR tree-optimization/46728
16412 * tree-ssa-math-opts.c (powi_table): New.
16413 (powi_lookup_cost): New.
16414 (powi_cost): New.
16415 (powi_as_mults_1): New.
16416 (powi_as_mults): New.
16417 (gimple_expand_builtin_powi): New.
16418 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16419 (gate_cse_sincos): Remove sincos/cexp restriction.
16420
16421 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16422
16423 PR target/3746
16424 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16425 mips-tdump native.
16426 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16427 * mips-tdump.c: Likewise.
16428
16429 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
16430
16431 PR target/49128
16432 * config/i386/driver-i386.c (host_detect_local_cpu): Always
16433 add -mno-XXX. Handle FMA.
16434
16435 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
16436
16437 PR rtl-optimization/48633
16438 * ira-build.c (loop_with_eh_edge_p): New function.
16439 (mark_loops_for_removal): Use it.
16440
16441 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
16442
16443 PR rtl-optimization/48971
16444 * ira.c (setup_pressure_classes): Don't check register move cost
16445 for classes with one registers. Don't add pressure class if there
16446 is a pressure class with the same available hard registers.
16447 Check contains_reg_of_mode. Fix a typo in collecting
16448 temp_hard_regset. Ignore hard registers not belonging to a class.
16449
16450 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
16451
16452 PR target/49133
16453 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16454
16455 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
16456 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16457
16458 PR gcov-profile/48845
16459 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16460
16461 2011-05-24 Richard Guenther <rguenther@suse.de>
16462
16463 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16464 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16465 (gimple_types_compatible_p_1): Adjust.
16466 (iterative_hash_canonical_type): Do not bother about complete vs.
16467 incomplete types.
16468 (gimple_canonical_types_compatible_p): Likewise.
16469
16470 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16471
16472 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16473
16474 2011-05-24 Richard Guenther <rguenther@suse.de>
16475
16476 PR bootstrap/49078
16477 * gimple.c (gimple_register_canonical_type): Revert
16478 previous change.
16479 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16480 does not for a tree for the case where it matters. Cache
16481 pointer-type alias-sets.
16482
16483 2011-05-24 Joseph Myers <joseph@codesourcery.com>
16484
16485 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16486 (OBJS): Remove options.o, opts-common.o and prefix.o.
16487 (OBJS-libcommon-target): New.
16488 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16489 (BACKEND): Include libcommon-target.a.
16490 (MOSTLYCLEANFILES): Include libcommon-target.a.
16491 (libcommon-target.a): New.
16492 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16493 prefix.o.
16494
16495 2011-05-23 Joseph Myers <joseph@codesourcery.com>
16496
16497 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
16498 parts of output shared with the driver.
16499 * optc-gen.awk: Don't generate parts of output not shared with the
16500 driver.
16501 * opth-gen.awk: Remove GCC_DRIVER conditionals.
16502 * doc/options.texi (SourcerInclude): Mention options-save.c.
16503 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16504 (OBJS): Add options-save.o.
16505 (options-save.c, options-save.o): New.
16506 (options.o): Update dependencies.
16507 (gcc-options.o): Remove.
16508 (mostlyclean): Remove options-save.c.
16509
16510 2011-05-23 Jakub Jelinek <jakub@redhat.com>
16511
16512 PR debug/49032
16513 * dbxout.c: Include cgraph.h.
16514 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16515 and without value expr, return NULL if no varpool node exists for
16516 it or if it is not needed.
16517 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16518
16519 PR c/49120
16520 * c-decl.c (start_decl): Convert expr to void_type_node.
16521
16522 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
16523
16524 PR rtl-optimization/48826
16525 * emit-rtl.c (try_split): When splitting a call that is followed
16526 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16527
16528 2011-05-23 Jakub Jelinek <jakub@redhat.com>
16529
16530 * cfgexpand.c (expand_debug_expr): For unused non-addressable
16531 parameters passed in memory prefer using DECL_INCOMING_RTL over
16532 the pseudos it will be copied into.
16533
16534 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
16535
16536 PR target/47315
16537 * config/i386/i386.c (ix86_option_override_internal): Save the
16538 initial options after checking vzeroupper.
16539
16540 2011-05-23 David Li <davidxl@google.com>
16541
16542 PR tree-optimization/48988
16543 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16544 Initialize has_valid_pred for each pred chain.
16545
16546 2011-05-23 Richard Guenther <rguenther@suse.de>
16547
16548 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16549 (iterative_hash_gimple_type): Always hash type names.
16550
16551 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
16552
16553 * c-typeck.c (build_function_call_vec): Tweak call to
16554 check_function_arguments.
16555
16556 2011-05-23 Richard Guenther <rguenther@suse.de>
16557
16558 PR tree-optimization/49115
16559 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
16560 is not necessarily carried out, do not claim it kills the ref.
16561 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
16562
16563 2011-05-23 Richard Guenther <rguenther@suse.de>
16564
16565 PR middle-end/15419
16566 * builtins.c (fold_builtin_memory_op): Be less restrictive about
16567 what pointer types we accept for folding.
16568
16569 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16570
16571 * gthr-gnat.c: Remove.
16572 * gthr-gnat.h: Remove.
16573 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
16574 * config/t-freebsd (LIB2ADDEH): Likewise.
16575 * config/t-linux (LIB2ADDEH): Likewise.
16576 * config/t-sol2 (LIB2ADDEH): Likewise.
16577 * config/ia64/t-vms (LIB2ADDEH): Likewise.
16578 * configure.ac (target_thread_file): Remove gnat handling.
16579 * configure: Regenerate.
16580 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
16581
16582 2011-05-23 Tristan Gingold <gingold@adacore.com>
16583 Eric Botcazou <ebotcazou@adacore.com>
16584
16585 * gcov.c (create_file_names): If no object directory is specified,
16586 keep the directory of the file.
16587
16588 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16589
16590 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
16591 * configure: Regenerate.
16592
16593 2011-05-23 Jakub Jelinek <jakub@redhat.com>
16594
16595 PR middle-end/48973
16596 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
16597 failed and the comparison has a single bit signed type, use
16598 constm1_rtx instead of const1_rtx for true value.
16599 (do_store_flag): If ops->type is single bit signed type, disable
16600 signel bit test optimization and pass -1 instead of 1 as last
16601 parameter to emit_store_flag_force.
16602
16603 2011-05-23 Tom de Vries <tom@codesourcery.com>
16604
16605 PR target/45098
16606 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
16607 function.
16608 (infer_loop_bounds_from_undefined): Use new function.
16609
16610 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
16611
16612 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
16613 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
16614 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
16615 and -O0 otherwise.
16616 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
16617
16618 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
16619
16620 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
16621 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
16622 returns true.
16623
16624 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
16625
16626 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
16627
16628 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
16629
16630 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
16631 UNSPEC_MOVE_PIC pattern.
16632
16633 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
16634
16635 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
16636 (sparc-*-rtems*): Likewise.
16637 (sparc64-*-elf*): Likewise.
16638 (sparc64-*-rtems*): Likewise.
16639 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
16640 * config/sparc/t-crtin: New file.
16641 * config/sparc/t-sol2 (crti.o): Delete rule.
16642 (crtn.o): Likewise.
16643 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
16644 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
16645 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
16646 (ENDFILE_SPEC): Add crtn.o.
16647
16648 2011-05-22 Tom de Vries <tom@codesourcery.com>
16649
16650 PR middle-end/48689
16651 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
16652 CODE_CONTAINS_STRUCT (TS_COMMON).
16653
16654 2011-05-22 Jakub Jelinek <jakub@redhat.com>
16655
16656 PR middle-end/49029
16657 * expmed.c (extract_fixed_bit_field): Test whether target can be used
16658 only after deciding which mode to use.
16659
16660 2011-05-22 Tom de Vries <tom@codesourcery.com>
16661
16662 PR target/45098
16663 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
16664 for call to get_shiftadd_cost.
16665
16666 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
16667
16668 PR target/49104
16669 * config/i386/cpuid.h (bit_MMXEXT): New define.
16670
16671 2011-05-22 Nick Clifton <nickc@redhat.com>
16672
16673 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
16674 initialisation of non-existant args[2] element. Use args[] array
16675 not arg[] array to pass arguments to build_function_type_list.
16676
16677 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
16678
16679 PR tree-optimization/49087
16680 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
16681
16682 2011-05-21 Jason Merrill <jason@redhat.com>
16683
16684 PR c++/49092
16685 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
16686 static storage duration.
16687
16688 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
16689
16690 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
16691 frame pointer.
16692
16693 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
16694
16695 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
16696 false if there are call-saved registers here...
16697 (sparc_can_use_return_insn_p): ...but here instead.
16698 (save_or_restore_regs): Fix thinko.
16699 (sparc_expand_prologue): Use current_function_is_leaf.
16700 (sparc_frame_pointer_required): Likewise.
16701
16702 2011-05-21 Nick Clifton <nickc@redhat.com>
16703
16704 PR target/49098
16705 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
16706
16707 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
16708
16709 * gengtype.c (walk_type): Implemented "atomic" GTY option.
16710 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
16711
16712 2011-05-21 Joseph Myers <joseph@codesourcery.com>
16713
16714 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
16715 * optc-gen.awk: Move common code to opt-read.awk.
16716 * opth-gen.awk: Likewise.
16717 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
16718
16719 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
16720
16721 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
16722
16723 2011-05-20 Tom de Vries <tom@codesourcery.com>
16724
16725 PR target/45098
16726 * tree-ssa-loop-ivopts.c: Include expmed.h.
16727 (get_shiftadd_cost): New function.
16728 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
16729
16730 2011-05-20 Jakub Jelinek <jakub@redhat.com>
16731
16732 PR bootstrap/49086
16733 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
16734 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
16735
16736 2011-05-20 Joseph Myers <joseph@codesourcery.com>
16737
16738 * Makefile.in: Update comment referring to $(OBJS-common).
16739
16740 2011-05-20 Ian Lance Taylor <iant@google.com>
16741
16742 * godump.c (go_output_typedef): Put enum constants in the macro
16743 hash table to avoid duplicate Go const definitions.
16744
16745 2011-05-20 Joseph Myers <joseph@codesourcery.com>
16746
16747 * Makefile.in (LIBDEPS): Add libcommon.a.
16748 (LIBS): Likewise.
16749 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
16750 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
16751 pretty-print.o and version.o.
16752 (OBJS-libcommon): New.
16753 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
16754 (BACKEND): Add libcommon.a.
16755 (MOSTLYCLEANFILES): Likewise.
16756 (libcommon.a): New.
16757 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
16758 (cpp$(exeext)): Likewise.
16759 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
16760 pretty-print.o and input.o.
16761 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
16762 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
16763 (errors.o): Remove.
16764 (mips-tfile): Don't explicitly use version.o.
16765 (mips-tdump): Likewise.
16766 (gcov.o): Depend on $(DIAGNOSTIC_H).
16767 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
16768 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
16769 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
16770 * gcov-dump.c: Include intl.h and diagnostic.h.
16771 (main): Initialize diagnostics.
16772 * gcov.c: Include diagnostic.h.
16773 (fnotice): Remove.
16774 (main): Initialize diagnostics.
16775 * lto-wrapper.c: Include diagnostic.h.
16776 (main): Initialize diagnostics.
16777
16778 2011-05-20 Michael Matz <matz@suse.de>
16779
16780 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
16781
16782 2011-05-20 Michael Matz <matz@suse.de>
16783 Richard Guenther <rguenther@suse.de>
16784
16785 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
16786 use lto_streamer_cache_append directly instead of returning a VEC.
16787 (preload_common_node): Remove.
16788 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
16789 track seen nodes.
16790 (lto_streamer_cache_create): Call lto_preload_common_nodes.
16791
16792 2011-05-20 Richard Guenther <rguenther@suse.de>
16793
16794 PR tree-optimization/49079
16795 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
16796 MEM_REFs correctly for the trailing array access detection.
16797 Special case constants the same way as decls for overall size
16798 constraining.
16799
16800 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
16801
16802 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
16803 argument expansion.
16804
16805 2011-05-20 Jakub Jelinek <jakub@redhat.com>
16806
16807 PR tree-optimization/49073
16808 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
16809 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
16810 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
16811
16812 2011-05-20 Richard Guenther <rguenther@suse.de>
16813
16814 PR middle-end/48849
16815 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
16816 of pointer types the same way the middle-end does.
16817
16818 2011-05-20 Richard Guenther <rguenther@suse.de>
16819
16820 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
16821 or pointer-to chains. Delay all fixup to uniquify_nodes.
16822
16823 2011-05-19 Quentin Neill <quentin.neill@amd.com>
16824
16825 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
16826 (fma4_fmaddsub): Likewise
16827
16828 2011-05-19 Jan Hubicka <jh@suse.cz>
16829
16830 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
16831 (GIMPLE_TYPE_PAIR_SIZE): New macro.
16832 (type_pair_cache): New static var.
16833 (lookup_type_pair): Use fixed sized custom hash; make inline.
16834 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
16835 calls of lookup_type_pair.
16836 (print_gimple_types_stats): Remove cache stats.
16837 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
16838 and gtc_ob.
16839
16840 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
16841
16842 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
16843 when TARGET_RDRND is active.
16844 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
16845 Generate dummy SImode target register when target is NULL.
16846
16847 2011-05-19 Joseph Myers <joseph@codesourcery.com>
16848
16849 * config/arm/arm-fpus.def: New.
16850 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
16851 arm-fpus.def.
16852 * config/arm/arm-tables.opt: Regenerate.
16853 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
16854 (arm_option_override): Don't decode FPU name to string here.
16855 * config/arm/arm.opt (mfpu=): Use Enum.
16856 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
16857 Update dependencies.
16858
16859 2011-05-19 Joseph Myers <joseph@codesourcery.com>
16860
16861 * collect2.c: Include diagnostic.h.
16862 (fatal_perror, fatal, error, fancy_abort): Remove.
16863 (main): Set progname. Call xmalloc_set_program_name and
16864 diagnostic_initialize.
16865 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
16866 scan_libraries, resolve_lib_name): Call fatal_error instead of
16867 fatal and fatal_perror.
16868 * collect2.h (error, fatal, fatal_perror): Don't declare.
16869 * tlink.c: Include diagnostic-core.h.
16870 (recompile_files): Call fatal_error instead of fatal_perror.
16871 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
16872 pretty-print.o and input.o.
16873 (collect2.o, tlink.o): Update dependencies.
16874
16875 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16876
16877 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
16878
16879 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16880
16881 PR target/40483
16882 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
16883 COMDAT group syntax, both SPARC and x86 variants.
16884 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
16885 * configure: Regenerate.
16886 * config/sol2.h (TARGET_SOLARIS): Define.
16887 (PUSHSECTION_FORMAT): Remove.
16888 (SECTION_NAME_FORMAT): Define.
16889 * config/sol2.c: Include hashtab.h.
16890 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
16891 expansion, using SECTION_NAME_FORMAT.
16892 (solaris_comdat_htab): New variable.
16893 (struct comdat_entry): Define.
16894 (comdat_hash): New function.
16895 (comdat_eq): New function.
16896 (solaris_elf_asm_comdat_section): New function.
16897 (solaris_define_comdat_signature): New function.
16898 (solaris_code_end): New function.
16899 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
16900 (solaris_code_end): Declare.
16901 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
16902 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
16903 solaris_code_end.
16904 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
16905 Remove ATTRIBUTE_UNUSED.
16906 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
16907 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
16908 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
16909 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
16910 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
16911 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
16912 (PUSHSECTION_FORMAT): Remove.
16913 (SECTION_NAME_FORMAT): Redefine.
16914
16915 2011-05-19 Kai Tietz <ktietz@redhat.com>
16916
16917 * tree-cfg.c (verify_gimple_assign_binary): Barf on
16918 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
16919 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
16920
16921 2011-05-19 Anatoly Sokolov <aesok@post.ru>
16922 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16923
16924 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
16925
16926 2011-05-19 Richard Guenther <rguenther@suse.de>
16927
16928 PR middle-end/48985
16929 * tree-object-size.c (addr_object_size): If the pointed-to
16930 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
16931
16932 2011-05-19 Richard Guenther <rguenther@suse.de>
16933
16934 * gimple.c (gimple_types_compatible_p_1): Compare names of
16935 the types themselves.
16936 (iterative_hash_gimple_type): And hash them that way.
16937 (gimple_register_type_1): If we register a main variant properly
16938 initialize the leader to ourselves.
16939
16940 2011-05-19 Tom de Vries <tom@codesourcery.com>
16941
16942 PR target/45098
16943 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
16944 get_loop_invariant_expr_id.
16945 (get_loop_invariant_expr_id): Use get_expr_id.
16946 (parm_decl_cost): New function.
16947 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
16948 Improve bound cost estimation. Use different inv_expr_id for elim and
16949 express cases.
16950
16951 2011-05-19 Tom de Vries <tom@codesourcery.com>
16952
16953 PR target/45098
16954 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
16955 cost_base.cost == 0.
16956
16957 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
16958
16959 PR target/49002
16960 * config/i386/sse.md
16961 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
16962 load cast.
16963
16964 2011-05-18 Jakub Jelinek <jakub@redhat.com>
16965
16966 PR tree-optimization/49039
16967 * tree-vrp.c (extract_range_from_binary_expr): For
16968 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
16969 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
16970
16971 2011-05-18 Tom de Vries <tom@codesourcery.com>
16972
16973 PR target/45098
16974 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
16975
16976 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
16977
16978 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
16979 (*tls_global_dynamic_64): Ditto.
16980 (*tls_local_dynamic_base_32_gnu): Ditto.
16981 (*tls_local_dynamic_base_64): Ditto.
16982 (tls_initial_exec_64_sun): Ditto.
16983
16984 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
16985
16986 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
16987 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
16988 bf592-none.
16989 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
16990 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
16991 * config/bfin/bfin.c (bfin_cpus): Add bf592.
16992 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16993 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
16994 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
16995 * config/bfin/elf.h (LIB_SPEC): Add bf592.
16996
16997 2011-05-18 Joseph Myers <joseph@codesourcery.com>
16998
16999 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17000 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17001 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17002 target_thread_pointer, arm_structure_size_boundary, struct
17003 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17004 struct abi_name, arm_all_abis): Remove.
17005 (arm_option_override) Don't process most enumerated option values here.
17006 Don't process target_fpe_name here. Work with integer not string for
17007 structure size boundary; use separate diagnostics for each case.
17008 * config/arm/arm.h (enum float_abi_type, enum
17009 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17010 to arm-opts.h.
17011 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17012 arm_structure_size_boundary): Remove.
17013 * config/arm/arm.opt (mabi=): Use Enum and Init.
17014 (arm_abi_type): New Enum and EnumValue entries.
17015 (mfloat-abi=): Use Enum and Init.
17016 (float_abi_type): New Enum and EnumValue entries.
17017 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17018 (mfp16-format=): Use Enum and Init.
17019 (arm_fp16_format_type): New Enum and EnumValue entries.
17020 (mstructure-size-boundary=): Use UInteger and Init.
17021 (mtp=): Use Enum and Init.
17022 (arm_tp_type): New Enum and EnumValue entries.
17023
17024 2011-05-18 Richard Guenther <rguenther@suse.de>
17025
17026 PR tree-optimization/49018
17027 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17028 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17029 gimple_has_side_effects.
17030
17031 2011-05-18 Richard Guenther <rguenther@suse.de>
17032
17033 * gimple.c (gimple_register_type_1): New function, split out from ...
17034 (gimple_register_type): ... here. Avoid infinite recursion.
17035
17036 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17037
17038 PR tree-optimization/41881
17039 * tree-vectorizer.h (struct _loop_vec_info): Add new field
17040 reduction_chains along with a macro for its access.
17041 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17042 (destroy_loop_vec_info): Free reduction chains.
17043 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17044 (vect_is_slp_reduction): New function.
17045 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17046 (vect_create_epilog_for_reduction): Support SLP reduction chains.
17047 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17048 definition types for reduction chains.
17049 (vect_supported_load_permutation_p): Don't allow permutations for
17050 reduction chains.
17051 (vect_analyze_slp_instance): Support reduction chains.
17052 (vect_analyze_slp): Try to build SLP instance from reduction chains.
17053 (vect_get_constant_vectors): Handle reduction chains.
17054 (vect_schedule_slp_instance): Mark the first statement of the
17055 reduction chain as reduction.
17056
17057 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17058
17059 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17060 names for group elements access.
17061 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17062 reduction chains as well. Remove data reference and interleaving
17063 related words from the fields names.
17064 * tree-vect-loop.c (vect_transform_loop): Use new names for group
17065 elements access.
17066 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17067 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17068 vect_update_interleaving_chain, vect_same_range_drs,
17069 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17070 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17071 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17072 vect_analyze_group_access, vect_analyze_data_ref_access,
17073 vect_create_data_ref_ptr, vect_transform_strided_load,
17074 vect_record_strided_load_vectors): Likewise.
17075 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17076 vect_model_load_cost, vectorizable_store, vectorizable_load,
17077 vect_remove_stores, new_stmt_vec_info): Likewise.
17078 * tree-vect-slp.c (vect_build_slp_tree,
17079 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17080
17081 2011-05-18 Richard Guenther <rguenther@suse.de>
17082
17083 PR middle-end/48989
17084 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17085 operand verification.
17086 (verify_gimple_assign_binary): Likewise.
17087 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17088 to non-1-precision BOOLEAN_TYPEs.
17089
17090 2011-05-18 Tom de Vries <tom@codesourcery.com>
17091
17092 PR target/45098
17093 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17094
17095 2011-05-18 Jakub Jelinek <jakub@redhat.com>
17096
17097 PR tree-optimization/49000
17098 * tree-ssa.c (execute_update_addresses_taken): Call
17099 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
17100 be rewritten and decl has been marked for renaming, reset
17101 the debug stmt.
17102
17103 2011-05-17 Joseph Myers <joseph@codesourcery.com>
17104
17105 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17106 enum_opts_set when testing if attributes have set -mfpmath=.
17107
17108 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17109
17110 * config/mips/mips.c (mips_handle_option): Remove unused variable.
17111
17112 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17113
17114 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17115 info->entry with 0
17116 * tree-inline.c (maybe_inline_call_in_expr): Initialize
17117 id.transform_lang_insert_block with NULL.
17118
17119 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17120
17121 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17122 (output_fp_compare): Change args 3 and 4 to bool.
17123 (ix86_expand_call): Change arg 6 to bool.
17124 (ix86_attr_length_immediate_default): Change arg 2 to bool.
17125 (ix86_attr_length_vex_default): Change arg 3 to bool.
17126 * config/i386/i386.md: Update all uses.
17127 * config/i386/i386.c: Ditto.
17128 (ix86_flags_dependent): Change return type to bool.
17129
17130 2011-05-17 Richard Guenther <rguenther@suse.de>
17131
17132 * gimple.c (type_hash_pair_compare): Fix comparison.
17133
17134 2011-05-17 Richard Guenther <rguenther@suse.de>
17135
17136 * gimple.c (iterative_hash_gimple_type): Simplify singleton
17137 case some more, fix final hash value of the non-singleton case.
17138
17139 2011-05-17 Richard Guenther <rguenther@suse.de>
17140
17141 PR bootstrap/49013
17142 Revert
17143 2011-05-16 Richard Guenther <rguenther@suse.de>
17144
17145 * gimple.c (gimple_types_compatible_p_1): Use names of the
17146 type itself, not its main variant.
17147 (iterative_hash_gimple_type): Likewise.
17148
17149 2011-05-17 Richard Guenther <rguenther@suse.de>
17150
17151 * gimple.c (gimple_register_canonical_type): Use the main-variant
17152 leader for computing the canonical type.
17153
17154 2011-05-17 Nick Clifton <nickc@redhat.com>
17155
17156 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17157 moves.
17158
17159 * config/rx/rx.md: Add peephole to remove redundant extensions
17160 after loads.
17161 (bitset_in_memory): Use rx_restricted_mem_operand.
17162 (bitinvert_in_memory): Likewise.
17163 (bitclr_in_memory): Likewise.
17164
17165 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
17166 Nick Clifton <nickc@redhat.com>
17167
17168 * config/rx/rx.md: Add peepholes to match a register move followed
17169 by a comparison of the moved register. Replace these with an
17170 addition of zero that does both actions in one instruction.
17171
17172 2011-05-17 Jakub Jelinek <jakub@redhat.com>
17173
17174 PR target/48986
17175 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17176 predicate to allow CONST_INT.
17177 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17178
17179 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17180
17181 * opts-common.c (opt_enum_arg_to_value): New.
17182 * opts.h (opt_enum_arg_to_value): Declare.
17183 * config/i386/i386.opt (fpmath): Remove.
17184 (mfpmath=): Use Enum, Init and Save.
17185 (fpmath_unit): New Enum and EnumValue entries.
17186 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17187 name for function fpmath state.
17188 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17189 * config/i386/i386.c: Include diagnostic.h.
17190 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17191 (ix86_target_string): Take enum fpmath_unit value instead of string.
17192 (ix86_debug_options): Update call to ix86_target_string.
17193 (ix86_option_override_internal): Don't process fpmath strings here.
17194 (x86_function_specific_save, ix86_function_specific_restore):
17195 Don't handle fpmath state specially.
17196 (ix86_function_specific_print): Pass fpmath state to
17197 ix86_target_string instead of printing in this function.
17198 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17199 Handle enum attributes.
17200 (IX86_ATTR_ENUM, ix86_opt_enum): New.
17201 (ix86_valid_target_attribute_tree): Update option_strings
17202 handling. Handle fpmath as enum option.
17203 (ix86_can_inline_p): Update field names for function fpmath state.
17204 (ix86_expand_builtin): Update call to ix86_target_string.
17205 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17206 (ix86_fpmath): Remove.
17207 * config/i386/t-i386 (i386.o): Update dependencies.
17208
17209 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17210
17211 PR preprocessor/48677
17212 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17213 from decoded_options[0], not from itself.
17214
17215 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
17216
17217 * config/i386/constraints.md (z): New constraint.
17218 * config/i386/i386.c (c): New mode attribute.
17219 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17220 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17221 constraint for operand 0.
17222 (*call_vzeroupper): Ditto.
17223 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
17224 (*call_rex64_ms_sysv_vzeroupper): Ditto.
17225 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17226 Use "lzm" constraint for operand 0.
17227 (*call_pop_vzeroupper): Ditto.
17228 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17229 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
17230 constraint for operand 0.
17231 (*sibcall_vzeroupper): Ditto.
17232 (*sibcall_rex64_ms_sysv): Ditto.
17233 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17234 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17235 *sibcall_pop_1. Use "Uz" constraint for operand 0.
17236 (*sibcall_pop_vzeroupper): Ditto.
17237 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17238 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17239 mode iterator. Use "<c>zm" constraint for operand 1.
17240 (*call_value_vzeroupper): Ditto.
17241 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
17242 for operand 1.
17243 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17244 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17245 *call_value_pop_1. Use "lzm" constraint for operand 1.
17246 (*call_value_pop_vzeroupper): Ditto.
17247 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17248 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17249 mode iterator. Use "Uz" constraint for operand 1.
17250 (*sibcall_value_vzeroupper): Ditto.
17251 (*sibcall_value_rex64_ms_sysv): Ditto.
17252 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17253 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
17254 constraint for operand 1.
17255 (*sibcall_value_pop_vzeroupper): Ditto.
17256 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17257 and "z" constraint for operand 2.
17258 (*tls_global_dynamic_32_gnu): Ditto.
17259 (*tls_local_dynamic_base_32_gnu): Ditto.
17260 (*tls_local_dynamic_base_64): Ditto.
17261 (*tls_local_dynamic_32_once): Ditto.
17262 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17263 Update all callers.
17264 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17265
17266 2011-05-16 Richard Guenther <rguenther@suse.de>
17267
17268 * gimple.c (gimple_types_compatible_p_1): Use names of the
17269 type itself, not its main variant.
17270 (iterative_hash_gimple_type): Likewise.
17271
17272 2011-05-16 Richard Guenther <rguenther@suse.de>
17273
17274 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17275 always visit pointer target and function result and argument types.
17276
17277 2011-05-16 Jason Merrill <jason@redhat.com>
17278
17279 PR c++/48999
17280 * tree-inline.c (copy_statement_list): Put back recursion.
17281
17282 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17283
17284 PR target/27663
17285 PR target/41076
17286 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17287 * config/avr/avr.md ("*ior<mode>qi.byte0",
17288 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17289
17290 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17291
17292 PR target/45099
17293 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17294 register is needed for a function argument.
17295
17296 2011-05-16 Richard Guenther <rguenther@suse.de>
17297
17298 * gimple.c (struct type_hash_pair): New type.
17299 (type_hash_pair_compare): New function.
17300 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17301
17302 2011-05-16 Revital Eres <revital.eres@linaro.org>
17303
17304 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17305
17306 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17307
17308 * config/i386/i386.md (floating point move splitters): Fix
17309 usage of standard_80387_constant_p.
17310 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17311
17312 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17313
17314 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17315
17316 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
17317
17318 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17319 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17320 (tree_ssa_lim_finalize): Likewise.
17321
17322 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
17323
17324 * config/i386/constraint.md (Yd, Yx): New register constraints.
17325 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
17326 Yd conditional register constraint.
17327 (*movtf_internal): Use standard_sse_constant_opcode.
17328 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
17329 Yx conditional register constraint.
17330 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
17331 Yd conditional register constraint. Use standard_sse_constant_p to
17332 check for valid SSE constants and call standard_sse_constant_opcode to
17333 output SSE insn.
17334 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17335 constants and call standard_sse_constant_opcode to output SSE insn.
17336 * config/i386/i386.c (ix86_option_ovverride_internal): Set
17337 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
17338 optimize_size is set.
17339 (standard_sse_constant_opcode): Output conditional AVX insn templates.
17340
17341 2011-05-14 Tobias Burnus <burnus@net-b.de>
17342
17343 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17344
17345 2011-05-13 Martin Jambor <mjambor@suse.cz>
17346
17347 * ipa-prop.c (ipa_cst_from_jfunc): New function.
17348 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17349 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17350 (evaluate_conditions_for_ipcp_clone): Removed.
17351 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17352 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17353 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17354
17355 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
17356
17357 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17358 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17359 lieu of MAY_HAVE_DEBUG_STMTS.
17360 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17361 debug statements if !MAY_HAVE_DEBUG_STMTS.
17362
17363 2011-05-13 Martin Thuresson <martint@google.com>
17364
17365 PR gcov-profile/47793
17366 * libgcov.c (gcov_exit): Support relative profile paths.
17367 * doc/invoke.texi (-fprofile-dir): Update for above change.
17368
17369 2011-05-13 Richard Guenther <rguenther@suse.de>
17370
17371 * gimple.c (gimple_canonical_types_compatible_p): Do not use
17372 type-pair caching, do not compare hashes.
17373
17374 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
17375
17376 PR middle-end/48965
17377 * tree-cfg.c (edge_to_cases_cleanup): Return true.
17378 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
17379
17380 2011-05-13 Kai Tietz <ktietz@redhat.com>
17381
17382 * gimplify.c (gimplify_expr): Make sure operand is boolified.
17383 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17384 compatible type for TRUTH_NOT_EXPR.
17385
17386 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
17387
17388 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17389 (ix86_hard_regno_mode_ok): Change return value to bool. Use
17390 can_create_pseudo_p ().
17391
17392 2011-05-13 Richard Guenther <rguenther@suse.de>
17393
17394 PR lto/48978
17395 * gimple.c (iterative_hash_gimple_type): Revert change in
17396 pointer target and function result and argument hashing.
17397
17398 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
17399
17400 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17401 (*movxf_internal_nointeger): Ditto.
17402 (*movdf_internal_rex64): Ditto.
17403 (*movdf_internal): Ditto.
17404 (*movdf_internal_nointeger): Ditto.
17405 (*movsf_internal): Ditto.
17406 (sincos splitters): Use can_create_pseudo ().
17407
17408 2011-05-13 Joseph Myers <joseph@codesourcery.com>
17409
17410 * config/i386/i386-opts.h: New.
17411 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17412 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17413 ix86_section_threshold): Remove.
17414 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
17415 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17416 OPT_mbranch_cost_.
17417 (ix86_option_override_internal): Don't decode strings for options
17418 other than -march=, -mtune= and -mfpmath=. Don't allow for
17419 __attribute__ uses in remaining diagnostics for options with
17420 string arguments. Don't check for integer arguments being negative.
17421 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17422 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17423 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17424 ix86_branch_cost, ix86_section_threshold): Remove.
17425 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17426 HeaderInclude.
17427 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17428 but not Var.
17429 (masm=): Use Enum and Init.
17430 (asm_dialect): New Enum and EnumValue entries.
17431 (mbranch-cost=): Use UInteger.
17432 (mlarge-data-threshold=): Use UInteger and Init.
17433 (mcmodel=): Use Enum and Init.
17434 (cmodel): New Enum and EnumValue entries.
17435 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17436 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17437 mregparm=): Use UInteger.
17438 (mstringop-strategy=): Use Enum and Init.
17439 (stringop_alg): New Enum and EnumValue entries.
17440 (mtls-dialect=): Use Enum and Init.
17441 (tls_dialect): New Enum and EnumValue entries.
17442 (mabi=): Use Enum and Init.
17443 (calling_abi): New Enum and EnumValue entries.
17444 (mveclibabi=): Use Enum and Init.
17445 (ix86_veclibabi): New Enum and EnumValue entries.
17446
17447 2011-05-13 Nick Clifton <nickc@redhat.com>
17448
17449 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17450 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17451
17452 2011-05-13 Kai Tietz <ktietz@redhat.com>
17453
17454 PR middle-end/48984
17455 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17456 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17457 (gimple_boolify): Check for cast for boolean_type_node instead for
17458 BOOLEAN_TYPE.
17459
17460 2011-05-13 Richard Guenther <rguenther@suse.de>
17461
17462 PR tree-optimization/48172
17463 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17464 multiplying by number of iterations for equal step.
17465 (vect_create_cond_for_alias_checks): Likewise.
17466
17467 2011-05-13 Andreas Schwab <schwab@redhat.com>
17468
17469 * configure.ac: Use AS_HELP_STRING throughout.
17470 * configure: Regenerate.
17471
17472 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
17473
17474 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17475 (ix86_emit_restore_regs_using_mov): Likewise.
17476 (ix86_emit_restore_sse_regs_using_mov): Likewise.
17477
17478 2011-05-12 Anatoly Sokolov <aesok@post.ru>
17479
17480 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17481 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17482 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17483 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17484 RTX_OK_FOR_OLO10_P): ...here.
17485 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17486 SYMBOLIC_CONST.
17487
17488 2011-05-12 Kai Tietz <ktietz@redhat.com>
17489
17490 * gimplify.c (gimple_boolify): Re-boolify expression
17491 arguments even if expression type is of kind BOOLEAN_TYPE.
17492 (gimplify_boolean_expr): Removed.
17493 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17494 and XOR. Additional take care that we keep expression's type.
17495 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17496 of TRUTH_AND|OR|XOR_EXPR.
17497
17498 2011-05-12 Jakub Jelinek <jakub@redhat.com>
17499
17500 PR tree-optimization/48975
17501 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17502 on all bbs here and free and clear ifc_bbs at the end.
17503
17504 2011-05-12 Richard Guenther <rguenther@suse.de>
17505
17506 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17507 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
17508 until after simple checks.
17509 (gimple_types_compatible_p): Likewise.
17510 (iterative_hash_gimple_type): Always hash pointer targets
17511 and function return and argument types.
17512 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17513 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
17514 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17515 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
17516 completely in the simple compare section.
17517 (gimple_register_canonical_type): Query the cache again after
17518 registering.
17519
17520 2011-05-12 Richard Guenther <rguenther@suse.de>
17521
17522 PR tree-optimization/48172
17523 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17524 the number of iterations from the segment size calculation.
17525 (vect_create_cond_for_alias_checks): Adjust.
17526
17527 2011-05-12 Jakub Jelinek <jakub@redhat.com>
17528
17529 PR debug/48967
17530 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17531 if validate_subreg fails.
17532
17533 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
17534
17535 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17536 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17537 early.
17538
17539 2011-05-12 DJ Delorie <dj@redhat.com>
17540
17541 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17542 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17543 created builtin into rx_builtins array.
17544 (rx_builtin_decl): New function.
17545 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
17546
17547 2011-05-12 DJ Delorie <dj@redhat.com>
17548 Nick Clifton <nickc@redhat.com>
17549
17550 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17551 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17552 (rx_is_legitimate_address): Add pre-decrement and post-increment
17553 addressing in HImode and QImode. Fix test for out of range
17554 REG+INT addressing.
17555 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17556 (rx_align_for_label): Test label before extracting its usage count.
17557 (rx_adjust_insn_lengths): Fix selection of insn codes.
17558 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17559
17560 2011-05-11 Jason Merrill <jason@redhat.com>
17561
17562 * tree.c (type_hash_canon): Use struct tree_type_non_common.
17563
17564 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
17565
17566 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
17567 reindent the subsequent block.
17568
17569 2011-05-11 Satoru Takabayashi <satorux@google.com>
17570 Paul Pluzhnikov <ppluzhnikov@google.com>
17571
17572 * doc/install.texi (Configuration): Document --with-linker-hash-style.
17573 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
17574 * config.in: Add LINKER_HASH_STYLE.
17575 * configure.ac: Add --with-linker-hash-style.
17576 * configure: Regenerate.
17577
17578 2011-05-11 Richard Guenther <rguenther@suse.de>
17579
17580 PR middle-end/48964
17581 * gimple.c (iterative_hash_canonical_type): Fix typo.
17582
17583 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
17584
17585 * config/i386/i386.c (legitimize_tls_address)
17586 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17587 expanders directly for TARGET_GNU2_TLS. Determine pic and
17588 __tls_get_addr symbol reference here. Update call to
17589 gen_tls_global_dynamic_{32,64} for added arguments.
17590 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17591 expanders directly for TARGET_GNU2_TLS. Determine
17592 __tls_get_addr symbol reference here. Update call to
17593 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
17594 unique UNSPEC REG_EQUIV to libcall block.
17595 (ix86_tls_get_addr): Declare static.
17596 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
17597 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
17598 Do not determine pic and __tls_get_addr symbol reference here. Do not
17599 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
17600 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
17601 (tls_global_dynamic_64): Add operand 2. Do not determine
17602 __tls_get_addr symbol reference here. Do not call
17603 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
17604 (tls_local_dynamic_base64): Ditto for operand 1.
17605
17606 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
17607
17608 * function.c (expand_function_start): Initialize stack_check_probe_note
17609 only if the generic stack checking mechanism is used.
17610
17611 2011-05-11 Richard Guenther <rguenther@suse.de>
17612
17613 PR tree-optimization/15256
17614 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
17615 (A & B) | C, combine (A op CST1) op CST2.
17616 (tree_ssa_forward_propagate_single_use_vars): Only bother to
17617 visit assigns that have uses.
17618
17619 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
17620
17621 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
17622 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
17623 (unpack_ts_type_common_value_fields): ...this. Update comment.
17624 (unpack_value_fields): Adjust for renaming.
17625 (lto_input_ts_type_tree_pointers): Split into...
17626 (lto_input_ts_type_common_tree_pointer): ...this and...
17627 (lto_input_ts_type_non_common_tree_pointers): ...this.
17628 (lto_input_tree_pointers): Adjust for above split.
17629 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
17630 (pack_ts_type_common_value_fields): ...this. Update comment.
17631 (lto_output_ts_type_tree_pointers): Split into...
17632 (lto_output_ts_type_common_tree_pointers): ...this and...
17633 (lto_output_ts_type_non_common_tree_pointers): ...this.
17634 (lto_output_tree_pointers): Adjust for above split.
17635 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
17636 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
17637 * stor-layout.c (vector_type_mode): Adjust location of mode field.
17638 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
17639 Define.
17640 (struct tree_type): Split into...
17641 (struct tree_type_common: ...this and...
17642 (struct tree_type_with_lang_specific): ...this and...
17643 (struct tree_type_non_common): ...this. Adjust accessor macros
17644 accordingly.
17645 (TYPE_VALUES_RAW): Define.
17646 (union tree_node): Update for above changes.
17647 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
17648 TS_TYPE_NON_COMMON.
17649 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
17650 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
17651 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
17652 * treestructu.def (TS_TYPE): Remove.
17653 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
17654 Define.
17655
17656 2011-05-11 Jakub Jelinek <jakub@redhat.com>
17657
17658 PR debug/48159
17659 * tree-ssa.c (reset_debug_uses): New function.
17660 * tree-flow.h (reset_debug_uses): New prototype.
17661 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
17662 * tree-loop-distribution.c (generate_loops_for_partition): Call
17663 reset_debug_uses on the stmts that will be removed. Keep around
17664 all debug stmts, don't count them as bits in partition bitmap.
17665 (generate_builtin): Don't count debug stmts or labels as bits in
17666 partition bitmap.
17667
17668 2011-05-11 Richard Guenther <rguenther@suse.de>
17669
17670 * gimple.c (gimple_type_hash_1): Merge with ...
17671 (gimple_type_hash): ... this.
17672 (gtc_visit): Remove mode parameter and simplify accordingly.
17673 (gimple_types_compatible_p_1): Likewise.
17674 (gimple_types_compatible_p): Likewise.
17675 (iterative_hash_gimple_type): Likewise.
17676 (visit): Likewise.
17677 (gimple_type_eq): Adjust.
17678
17679 2011-05-11 Revital Eres <revital.eres@linaro.org>
17680
17681 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
17682 enters the branch create an anti edge in the opposite direction
17683 to prevent the creation of reg-moves.
17684 * modulo-sched.c: Adjust comment to reflect the fact we are
17685 scheduling closing branch.
17686 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
17687 (stage_count): New field in struct partial_schedule.
17688 (calculate_stage_count): New function.
17689 (normalize_sched_times): Rename to reset_sched_times and handle
17690 incrementing the sched time of the nodes by a constant value
17691 passed as parameter.
17692 (duplicate_insns_of_cycles): Skip closing branch.
17693 (sms_schedule_by_order): Schedule closing branch.
17694 (ps_insn_find_column): Handle closing branch.
17695 (sms_schedule): Call reset_sched_times and adjust the code to
17696 support scheduling of the closing branch.
17697 (ps_insert_empty_row): Update calls to normalize_sched_times
17698 and rotate_partial_schedule functions.
17699
17700 2011-05-11 Richard Guenther <rguenther@suse.de>
17701
17702 PR middle-end/48953
17703 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
17704
17705 2011-05-11 Joseph Myers <joseph@codesourcery.com>
17706
17707 * opts.c (finish_options): Move warning settings from process_options.
17708 * toplev.c (process_options): Move warning settings to finish_options.
17709
17710 2011-05-11 Richard Guenther <rguenther@suse.de>
17711
17712 PR tree-optimization/18041
17713 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
17714 (simplify_bitwise_binary): ... this. Handle operand conversions
17715 by applying them to the result instead.
17716 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
17717
17718 2011-05-11 Richard Guenther <rguenther@suse.de>
17719
17720 * gimple.c (gimple_canonical_types_compatible_p): Split out
17721 from gimple_types_compatible_p and friends. Do not recurse
17722 to pointed-to types.
17723 (gimple_canonical_type_eq): Use it.
17724 (iterative_hash_canonical_type): Split out from
17725 iterative_hash_gimple_type and friends. Do not recurse
17726 to pointed-to types.
17727 (gimple_canonical_type_hash): Use it, allocate the hash here.
17728
17729 2011-05-11 Revital Eres <revital.eres@linaro.org>
17730
17731 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
17732 recognizing doloop.
17733
17734 2011-05-11 Revital Eres <revital.eres@linaro.org>
17735
17736 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
17737 instead of PREV_INSN.
17738
17739 2011-05-11 Revital Eres <revital.eres@linaro.org>
17740
17741 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
17742 * loop-doloop.c (doloop_condition_get): Likewise.
17743 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
17744 (doloop_end): New.
17745 * config/arm/arm.md (*addsi3_compare0): Remove "*".
17746
17747 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
17748
17749 * tree.def (CASE_LABEL_EXPR): Add an operand.
17750 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
17751
17752 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17753
17754 * c-decl.c (c_override_global_bindings_to_false): Remove.
17755 (global_bindings_p): Don't check
17756 c_override_global_bindings_to_false.
17757 * c-tree.h (c_override_global_bindings_to_false): Remove.
17758 * c-typeck.c (composite_type): Don't set
17759 c_override_global_bindings_to_false.
17760
17761 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
17762
17763 PR target/48857, 48495
17764 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
17765 (VSX_MODE): Ditto.
17766 (VSX_MOVE_MODE): Ditto.
17767 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
17768 VSX vector types. Add V2DImode.
17769 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
17770 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
17771 (MODES_TIEABLE_P): Ditto.
17772
17773 * config/rs6000/rs6000.c (rs6000_emit_move): Use
17774 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
17775 VSX_VECTOR_MODE.
17776 (init_cumulative_args): Ditto.
17777 (rs6000_function_arg_boundary): Ditto.
17778 (rs6000_function_arg_advance_1): Ditto.
17779 (rs6000_function_arg): Ditto.
17780 (rs6000_function_ok_for_sibcall): Ditto.
17781 (emit_frame_save): Ditto.
17782 (rs6000_function_value): Ditto.
17783 (rs6000_libcall_value): Ditto.
17784
17785 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17786
17787 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17788 i386/darwin-lib.h to $libgcc_tm_file.
17789 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
17790
17791 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17792
17793 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
17794
17795 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17796
17797 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
17798 * config/rs6000/rs6000-tables.opt: New file (generated).
17799 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
17800 rs6000/rs6000-tables.opt to extra_options.
17801 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
17802 * config/rs6000/rs6000.c (rs6000_select): Remove.
17803 (processor_target_table): Move contents to rs6000-cpus.def.
17804 (darwin_rs6000_override_options): Check
17805 global_options_set.x_rs6000_cpu_index instead of
17806 rs6000_select[1].string.
17807 (rs6000_option_override_internal): Likewise.
17808 (rs6000_handle_option): Don't assert that global structures are in
17809 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
17810 (rs6000_default_cpu): New variable.
17811 (rs6000_file_start): Set it instead of local default_cpu. Check
17812 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
17813 global_options_set.x_rs6000_tune_index instead of rs6000_select.
17814 (rs6000_darwin_file_start): Check rs6000_default_cpu and
17815 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
17816 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
17817 rs6000_select): Remove.
17818 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
17819 Remove.
17820 (mcpu=, mtune=): Use Var, Init, Enum and Save.
17821 * config/rs6000/t-rs6000
17822 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
17823 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17824 global_options_set.x_rs6000_cpu_index instead of
17825 rs6000_select[1].string.
17826 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17827 global_options_set.x_rs6000_cpu_index instead of
17828 rs6000_select[1].string.
17829
17830 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17831
17832 * config.gcc (libgcc_tm_file): Define instead of including files
17833 from ../../libgcc/config/ in tm_file.
17834 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
17835 * configure: Regenerate.
17836 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
17837 libgcc_tm.h, cs-libgcc_tm.h): New.
17838 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
17839 (clean): Remove libgcc_tm.h.
17840 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
17841 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
17842 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
17843
17844 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
17845
17846 PR target/48896
17847 * config/avr/avr.c (avr_ret_register): Return unsigned int
17848 instead of int.
17849 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
17850 it to avr_libcall_value.
17851 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
17852 expand_expr.
17853 (avr_expand_binop_builtin): Ditto.
17854 (avr_expand_unop_builtin): Ditto.
17855
17856 2011-05-10 DJ Delorie <dj@redhat.com>
17857
17858 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
17859 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
17860 * config/rx/rx.c (rx_align_for_label): Add label and
17861 uses_threshold parameters. Do not align when the label is not
17862 used enough.
17863 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
17864
17865 2011-05-10 Richard Guenther <rguenther@suse.de>
17866
17867 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
17868 a series of conversions and apply foldings similar to what
17869 fold-const does.
17870 (tree_ssa_forward_propagate_single_use_vars): Call it.
17871
17872 2011-05-10 Jakub Jelinek <jakub@redhat.com>
17873
17874 PR tree-optimization/48611
17875 PR tree-optimization/48794
17876 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
17877 referenced from RESX or EH_DISPATCH arguments.
17878
17879 PR debug/48928
17880 * dfp.c (decimal_to_decnumber): Handle conversion from
17881 dconst{1,2,m1,half}.
17882
17883 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17884
17885 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
17886 for !flag_prefer_avx128.
17887 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
17888
17889 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
17890
17891 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
17892 (fold_ternary_loc): Use expr_location_or.
17893
17894 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
17895
17896 PR debug/48853
17897 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
17898 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
17899 Pmode and mem_mode is not VOIDmode.
17900
17901 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
17902
17903 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
17904 TYPE_QUAL_RESTRICT): Convert to enum.
17905
17906 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17907
17908 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
17909 (const_pow2_1_to_8_operand): Ditto.
17910 (const_pow2_1_to_128_operand): Ditto.
17911 (const_pow2_1_to_32768_operand): Ditto.
17912 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
17913 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
17914 in insn constraint to check integer value of operand 3.
17915 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
17916
17917 (PINSR_MODE): New mode iterator.
17918 (sse2p4_1): New mode attribute.
17919 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
17920 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
17921 iterator. Use const_int_operand instead of
17922 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
17923 exact_log2 in insn constraint to check integer value of operand 3.
17924
17925 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17926
17927 * config/i386/sse.md (blendbits): Remove mode attribute.
17928 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
17929 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
17930 Check integer value of operand 3 in insn constraint.
17931
17932 2011-05-09 Richard Guenther <rguenther@suse.de>
17933
17934 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
17935 for diagnostics.
17936 (lto_symtab_merge): Likewise. Do not register types here.
17937 (lto_symtab_merge_decls_2): Likewise.
17938 (lto_symtab_merge_decls_1): Likewise.
17939 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
17940 * gimple.c (enum gtc_mode): Declare.
17941 (gimple_types_compatible_p): Make static.
17942
17943 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17944
17945 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
17946 temporary register to match Pmode.
17947
17948 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17949
17950 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
17951 and *vec_concatv4si_1_avx.
17952
17953 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17954
17955 PR rtl-optimization/48927
17956 * ira-conflicts.c (commutative_constraint_p): Use
17957 recog_data.alternative_enabled_p to disable alternatives where
17958 "enabled" attribute is false.
17959 (get_dup_num): Ditto.
17960 * ira-lives.c (single_reg_class): Ditto.
17961 (ira_implicitly_set_insn_hard_regs): Ditto.
17962
17963 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
17964
17965 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
17966 (dataflow_set_preserve_mem_locs): Likewise.
17967
17968 2011-05-09 Philipp Thomas <pth@suse.de>
17969
17970 * config/mep/mep.c (mep_validate_vliw): Syntax description
17971 should not be translated.
17972
17973 2011-05-09 Joseph Myers <joseph@codesourcery.com>
17974
17975 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
17976 * config/mips/mips-tables.opt: New file (generated).
17977 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
17978 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
17979 MIPS_ARCH_OPTION_NATIVE): Define.
17980 * config/mips/mips.c (mips_cpu_info_table): Move contents to
17981 mips-cpus.def.
17982 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
17983 mips_parse_cpu): Remove.
17984 (mips_cpu_info_from_opt, mips_default_arch): New.
17985 (mips_handle_option): Don't assert that global structures are in
17986 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
17987 (mips_option_override): Use new variables and functions to set
17988 state of these options. Use strcmp to check for individual CPU names.
17989 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
17990 definition.
17991 * config/mips/mips.opt (march=): Use ToLower and Enum.
17992 (mips): Use ToLower, Enum and Var.
17993 (mtune=): Use ToLower and Enum.
17994 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
17995
17996 2011-05-08 Jan Hubicka <jh@suse.cz>
17997
17998 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
17999 Arrange type pairs to be UID ordered.
18000 (gimple_lookup_type_leader): Make inline.
18001
18002 2011-05-09 Nick Clifton <nickc@redhat.com>
18003
18004 PR target/48899
18005 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18006 PROCESSOR_DEFAULT.
18007
18008 PR target/48897
18009 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18010 variable 's'.
18011
18012 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
18013
18014 * combine.c (simplify_comparison): Abstract out parts into...
18015 (simplify_compare_const): ... new function.
18016 (try_combine): Generalize parallel arithmetic/compare combining
18017 to call simplify_compare_const() and CANONICALIZE_COMPARE().
18018
18019 2011-05-08 Jan Hubicka <jh@suse.cz>
18020
18021 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18022 (cgraph_create_virtual_clone): Call hooks once virtual clone
18023 is finished.
18024 * cgraph.h (cgraph_clone_node): Update prototype.
18025 * ipa-cp.c (ipcp_estimate_growth): Use
18026 estimate_ipcp_clone_size_and_time.
18027 * ipa-inline-transform.c (clone_inlined_nodes): Update.
18028 * lto-cgraph.c (input_node): Update.
18029 * ipa-inline.c (recursive_inlining): Update.
18030 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18031 (evaluate_conditions_for_known_args): Break out from ...
18032 (evaluate_conditions_for_edge): ... here.
18033 (evaluate_conditions_for_ipcp_clone): New function.
18034 (inline_node_duplication_hook): Update clone summary based
18035 on parameter map.
18036 (estimate_callee_size_and_time): Rename to ...
18037 (estimate_node_size_and_time): take NODE instead of EDGE;
18038 take POSSIBLE_TRUTHS as argument.
18039 (estimate_callee_size_and_time): Update.
18040 (estimate_ipcp_clone_size_and_time): New function.
18041 (do_estimate_edge_time): Update.
18042
18043 2011-05-08 Richard Guenther <rguenther@suse.de>
18044
18045 PR middle-end/48908
18046 PR middle-end/48905
18047 * expmed.c (expand_shift_1): Compute adjusted constant shift
18048 amount manually.
18049
18050 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18051
18052 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18053
18054 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18055
18056 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18057
18058 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
18059
18060 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18061
18062 2011-05-07 Jan Hubicka <jh@suse.cz>
18063
18064 * ipa-inline-transform.c (inline_call): Account when program size
18065 decreases.
18066 * ipa-inline.c (relative_time_benefit): New function.
18067 (edge_badness): Reorganize to be power 2 based; fix thinko when
18068 computing badness for negative growth; update comments to match
18069 reality; better dumps.
18070
18071 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
18072
18073 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18074 type to bool and adjust comment.
18075 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18076 (fold_mathfn_compare): Remove calls to global_bindings_p.
18077 (fold_inf_compare): Likewise.
18078 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18079 * c-tree.h (global_bindings_p): Adjust prototype.
18080 * c-decl.c (global_bindings_p): Return bool and simplify.
18081
18082 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
18083
18084 PR tree-optimization/48837
18085 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18086 when accumulator transformation is performed.
18087
18088 2011-05-06 Jan Hubicka <jh@suse.cz>
18089
18090 * i386.h (ix86_tune_indices): Add
18091 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18092 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18093 * i386.c (initial_ix86_tune_features): Add
18094 X86_SOFTARE_PREFETCHING_BENEFICIAL.
18095 (software_prefetching_beneficial_p): Remove predicate.
18096 (ix86_option_override_internal): Use new macro.
18097
18098 2011-05-06 Jan Hubicka <jh@suse.cz>
18099
18100 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18101
18102 2011-05-06 Jan Hubicka <jh@suse.cz>
18103
18104 * cgraph.c (cgraph_add_thunk): Create real function node instead
18105 of alias node; finalize it and mark needed/reachale; arrange visibility
18106 to be right and add it into the corresponding same comdat group list.
18107 (dump_cgraph_node): Dump thunks.
18108 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18109 cgraph_function_with_gimple_body_p,
18110 cgraph_first_function_with_gimple_body,
18111 cgraph_next_function_with_gimple_body): New functions.
18112 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18113 New macros.
18114 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18115 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18116 * cgraphunit.c (cgraph_finalize_function): Only look into possible
18117 devirtualization when optimizing.
18118 (verify_cgraph_node): Verify thunks.
18119 (cgraph_analyze_function): Analyze thunks.
18120 (cgraph_mark_functions_to_output): Output thunks only in combination
18121 with function they are assigned to.
18122 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18123 alias into normal node.
18124 (assemble_thunks): New functoin.
18125 (cgraph_expand_function): Use it.
18126 * lto-cgraph.c (lto_output_node): Stream thunks.
18127 (input_overwrite_node): Stream in thunks.
18128 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18129 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18130 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18131 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18132 (inline_analyze_function): Do not care about thunk jump functions.
18133 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18134 * ipa-prop.c (ipa_prop_write_jump_functions): Use
18135 cgraph_function_with_gimple_body_p.
18136 * passes.c (do_per_function_toporder): Use
18137 cgraph_function_with_gimple_body_p.
18138 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18139 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18140 (function_called_by_processed_nodes_p): Likewise.
18141
18142 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18143
18144 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18145 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18146 entries.
18147 (mabi=): Replace with separate entries for mabi=altivec,
18148 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18149 mabi=ieeelongdouble and mabi=ibmlongdouble.
18150 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18151 check for -mabi=spe without SPE ABI support here.
18152 (rs6000_handle_option): Replace OPT_mabi_ handling with
18153 OPT_mabi_altivec and OPT_mabi_spe handling.
18154
18155 2011-05-06 Cary Coutant <ccoutant@google.com>
18156
18157 * dwarf2out.c (contains_subprogram_definition): New function.
18158 (should_move_die_to_comdat): Call it.
18159
18160 2011-05-06 Jeff Law <law@redhat.com>
18161
18162 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18163 remove_ctrl_stmt_and_useless_edges.
18164 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18165 (fixup_template_block, thread_single_edge): Likewise.
18166 (mark_threaded_blocks): Use THREAD_TARGET.
18167
18168 2011-05-06 Alan Modra <amodra@gmail.com>
18169
18170 PR target/48900
18171 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18172 const0_rtx as the arg to the dummy __tls_get_addr libcall.
18173
18174 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18175
18176 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18177 constraint modifier to "r".
18178
18179 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18180
18181 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18182 fall through for OPT_mcmodel_.
18183
18184 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18185
18186 * config/s390/s390.c (s390_asm_trampoline_template): Comment
18187 instruction sizes.
18188 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18189
18190 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18191
18192 PR target/47930
18193 * config/arm/arm.opt (marm): Document it.
18194 (mthumb): Reject negative variant.
18195
18196 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18197
18198 PR target/48898
18199 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18200 Fix typo in "ccvt" variable name.
18201
18202 2011-05-06 Tristan Gingold <gingold@adacore.com>
18203
18204 PR target/48895
18205 * config/vms/vms-ar.c (main): Remove cwd variable.
18206
18207 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18208
18209 PR debug/48902
18210 * var-tracking.c (prepare_call_arguments): Move else before #endif.
18211
18212 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
18213
18214 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18215 * gimplify.c (gimplify_switch_expr): Likewise.
18216 * omp-low.c (expand_omp_sections): Likewise.
18217 * tree-eh.c (lower_try_finally_switch): Likewise.
18218 (lower_eh_dispatch): Likewise.
18219 * tree.h (build_case_label): Declare.
18220 * tree.c (build_case_label): Define.
18221
18222 2011-05-05 Jason Merrill <jason@redhat.com>
18223
18224 PR c++/40975
18225 * tree-inline.c (copy_tree_r): Use copy_statement_list.
18226 (copy_statement_list): Don't recurse.
18227 * stor-layout.c (copy_self_referential_tree_r): Don't allow
18228 STATEMENT_LIST.
18229
18230 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18231
18232 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18233 through from -mfpu= handling.
18234 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18235
18236 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
18237
18238 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18239 POST_MODIFY.
18240
18241 2011-05-05 Steve Ellcey <sje@cup.hp.com>
18242
18243 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18244 for 11.31.
18245 (hppa[12]*-*-hpux11*): Ditto.
18246 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18247 * config/ia64/hpux-unix2003.h: New.
18248 * config/pa/pa-hpux1131.opt: New.
18249 * config/pa/pa-hpux1131.h: New.
18250 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18251 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18252 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18253
18254 2011-05-05 Jakub Jelinek <jakub@redhat.com>
18255
18256 PR debug/48853
18257 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18258 instead of mode as 3rd argument to recursive call.
18259 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18260 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18261 VOIDmode.
18262 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18263 don't give up if mode is Pmode and mem_mode is not VOIDmode.
18264 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18265 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18266
18267 2011-05-05 Julian Brown <julian@codesourcery.com>
18268
18269 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18270 parenthesis in D-register case.
18271
18272 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18273
18274 * opt-functions.awk (var_type_struct): Handle Enum options.
18275 * optc-gen.awk: Don't check range of variables of character type.
18276 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18277 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18278 rs6000_sdata_name, rs6000_explicit_options): Remove.
18279 (rs6000_option_override_internal): Check for -malign-power here.
18280 Use global_options_set instead of rs6000_explicit_options.
18281 (rs6000_parse_fpu_option): Remove.
18282 (rs6000_handle_option): Access variables via opts and opts_set
18283 pointers. Use error_at and warning_at. Add fall-through
18284 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18285 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18286 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18287 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18288 here. Don't use rs6000_parse_fpu_option.
18289 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18290 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18291 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18292 (mrecip=): Use Var.
18293 (mspe): Use Var and Save.
18294 (mtraceback=): Use Enum and Var.
18295 (rs6000_traceback_type): New Enum and EnumValue entries.
18296 (mfloat-gprs=): Use Enum, Var and Save.
18297 (rs6000_float_gprs): New Enum and EnumValue entries.
18298 (mlong-double-): use Var and Save.
18299 (msched-costly-dep=, minsert-sched-nops=): Use Var.
18300 (malign-): Use Enum and Var.
18301 (rs6000_alignment_flags): New Enum and EnumValue entries.
18302 (mfpu=): Use Enum.
18303 (fpu_type_t): New Enum and EnumValue entries.
18304 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18305 global_options_set instead of rs6000_explicit_options.
18306 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18307 global_options_set instead of rs6000_explicit_options.
18308 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18309 global_options_set instead of rs6000_explicit_options.
18310 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18311 global_options_set instead of rs6000_explicit_options.
18312 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18313 global_options_set instead of rs6000_explicit_options.
18314 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18315 global_options_set instead of rs6000_explicit_options.
18316 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18317 definition.
18318 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18319 global_options_set instead of rs6000_explicit_options.
18320 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18321 (rs6000_cmodel): New Enum and EnumValue entries.
18322 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18323 global_options_set instead of rs6000_explicit_options.
18324 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18325 (mtls-size=): Use Enum and Var.
18326 (rs6000_tls_size): New Enum and EnumValue entries.
18327
18328 2011-05-05 Michael Matz <matz@suse.de>
18329
18330 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18331 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18332 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18333 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18334 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18335 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18336 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18337 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18338 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18339 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18340 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18341 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18342 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18343 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18344 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18345 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18346
18347 2011-05-05 Richard Guenther <rguenther@suse.de>
18348
18349 * expmed.c (expand_variable_shift): Rename to ...
18350 (expand_shift_1): ... this. Take an expanded shift amount.
18351 For rotates recurse directly not building trees for the shift amount.
18352 (expand_variable_shift): Wrap around expand_shift_1.
18353 (expand_shift): Adjust.
18354
18355 2011-05-05 Jakub Jelinek <jakub@redhat.com>
18356
18357 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18358
18359 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
18360
18361 * tree.h (get_pending_sizes): Remove prototype.
18362 (put_pending_size): Likewise.
18363 (put_pending_sizes): Likewise.
18364 * stor-layout.c (pending_sizes): Delete.
18365 (get_pending_sizes): Likewise.
18366 (put_pending_size): Likewise.
18367 (put_pending_sizes): Likewise.
18368 (variable_size): Do not call put_pending_size and tidy up.
18369 * function.h (struct function): Remove dont_save_pending_sizes_p.
18370 * lto-streamer-in.c (input_function): Do not stream it.
18371 * lto-streamer-out.c (output_function): Likewise.
18372 * tree-inline.c (initialize_cfun): Do not copy it.
18373 * c-decl.c (store_parm_decls): Do not set it.
18374 * omp-low.c (create_task_copyfn): Likewise.
18375 * tree-optimize.c (tree_rest_of_compilation): Likewise.
18376
18377 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
18378
18379 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
18380 conditions.
18381 (*movdf_internal): Ditto.
18382 (*movdf_internal_nointeger): Ditto.
18383 (*movsf_internal): Ditto.
18384
18385 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18386
18387 * c-decl.c (finish_decl): Don't call get_pending_sizes.
18388 (grokparm): Add parameter expr. Pass it to grokdeclarator.
18389 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
18390 (c_variable_size): Remove.
18391 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
18392 call put_pending_sizes.
18393 (get_parm_info): Add parameter expr. Use it to set
18394 arg_info->pending_sizes.
18395 (store_parm_decls): Use arg_info->pending_sizes instead or calling
18396 get_pending_sizes.
18397 * c-parser.c (c_parser_parms_declarator): Update call to
18398 c_parser_parms_list_declarator.
18399 (c_parser_parms_list_declarator): Take parameter expr. Update
18400 call to push_parm_decl. Update recursive call. Don't call
18401 get_pending_sizes. Update calls to get_parm_info.
18402 (c_parser_objc_method_definition): Update calls to
18403 c_parser_objc_method_decl and objc_start_method_definition.
18404 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18405 (c_parser_objc_method_decl): Add parameter expr. Update call to
18406 grokparm.
18407 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18408 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18409 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18410
18411 2011-05-05 Michael Hope <michael.hope@linaro.org>
18412
18413 PR pch/45979
18414 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18415 __ARM_EABI__ hosts.
18416
18417 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18418
18419 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18420 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18421 (spu_output_mi_thunk): New function.
18422
18423 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18424
18425 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18426 targetm.asm_out.print_operand.
18427 * config/sol2.c: Include target.h.
18428
18429 2011-05-04 Jan Hubicka <jh@suse.cz>
18430
18431 * ipa-inline.c (reset_edge_caches): New function.
18432 (update_caller_keys): Add check_inlinablity_for; do not
18433 reset edge caches; remove now unnecesary loop.
18434 (update_callee_keys): Add comments; reset node_growth_cache of callee.
18435 (update_all_callee_keys): Likewise.
18436 (inline_small_functions): Sanity check cache; update code
18437 recomputing it.
18438
18439 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
18440
18441 PR rtl-optimization/47612
18442 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18443 as the last insn of the sequence to be moved.
18444
18445 2011-05-04 Tobias Burnus <burnus@net-b.de>
18446
18447 PR fortran/48864
18448 * doc/invoke.texi (Ofast): Document that it
18449 enables Fortran's -fno-protect-parens.
18450
18451 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
18452
18453 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18454
18455 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
18456
18457 * stor-layout.c (variable_size): Do not issue errors.
18458
18459 2011-05-04 Richard Guenther <rguenther@suse.de>
18460
18461 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18462 for array-ref indices.
18463 (tree_coverage_counter_addr): Likewise.
18464 (build_fn_info_type): Use size_int for index types.
18465 (build_gcov_info): Likewise.
18466
18467 2011-05-04 Richard Guenther <rguenther@suse.de>
18468
18469 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18470 to build_int_cst.
18471 * c-typeck.c (really_start_incremental_init): Use bitsize_int
18472 for constructor indices.
18473 (push_init_level): Likewise.
18474
18475 2011-05-04 Richard Guenther <rguenther@suse.de>
18476
18477 * explow.c (promote_mode): Move variable declarations before code.
18478
18479 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
18480
18481 * tree.h (build_function_type_array): Declare.
18482 (build_varargs_function_type_array): Declare.
18483 (build_function_type_vec, build_varargs_function_type_vec): Define.
18484 * tree.c (build_function_type_array_1): New function.
18485 (build_function_type_array): New function.
18486 (build_varargs_function_type_array): New function.
18487
18488 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
18489
18490 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18491 before setting STMT_VINFO_TYPE.
18492
18493 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18494
18495 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18496 instead of spu_pass_by_reference.
18497
18498 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18499
18500 * calls.c (emit_library_call_value_1): Invoke
18501 promote_function_mode hook on libcall arguments.
18502 * explow.c (promote_function_mode, promote_mode): Handle TYPE
18503 argument being NULL.
18504 * targhooks.c (default_promote_function_mode): Lisewise.
18505 * config/s390/s390.c (s390_promote_function_mode): Likewise.
18506 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18507
18508 * doc/tm.texi: Document that TYPE argument might be NULL.
18509
18510 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18511
18512 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18513
18514 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18515
18516 From Bernd Schmidt
18517 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18518
18519 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18520
18521 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18522 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18523 Move ...
18524 * mips-tfile.c: ... here.
18525 Don't include coretypes.h, tm.h, filenames.h.
18526 (saber_stop): Remove definition and all calls.
18527 [__SABER__]: Remove.
18528 (__LINE__): Remove default.
18529 (Size_t, Ptrdiff_t): Remove definitions.
18530 Replace by size_t, ptrdiff_t.
18531 [!MIPS_DEBUGGING_INFO]: Remove.
18532 (SHASH_SIZE, THASH_SIZE): Remove defaults.
18533 (progname): Add const.
18534 (STATIC): Remove.
18535 Replace all uses by static.
18536 (ALIGN_SYMTABLE_OFFSET): Remove default.
18537 * mips-tdump.c: Don't include coretypes.h, tm.h.
18538 Remove !MIPS_IS_STAB guard.
18539 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18540 $(TM_H), filenames.h dependencies.
18541 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18542
18543 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18544
18545 From Jie Zhang
18546 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18547 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18548
18549 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18550
18551 From Bernd Schmidt
18552 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18553 account and save/restore RETS.
18554 (PROFILE_BEFORE_PROLOGUE): Define.
18555 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
18556 the push insn to use predecrement.
18557
18558 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18559
18560 From Jie Zhang
18561 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
18562
18563 2011-05-04 Nick Clifton <nickc@redhat.com>
18564
18565 * config/mn10300/mn10300.c: Include cfgloop.h.
18566 (DUMP): New macro.
18567 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
18568 Lcc or a FLcc insn into the instruction stream.
18569 (mn10300_block_contains_call): New function. Returns true if the
18570 given basic block contains a CALL insn.
18571 (mn10300_loop_contains_call_insn): New function. Returns true if
18572 the given loop contains a CALL insn.
18573 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
18574 to use the SETLB and Lcc or FLcc insns.
18575 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
18576 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
18577 * config/mn10300/mn10300.opt (msetlb): New option. Used to
18578 disable the SETLB optimization.
18579 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
18580 __SETLB__ or __NO_SETLB__.
18581 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
18582 (movsf_internal): Handle MDR register.
18583 (cmpsi): Make visible.
18584 (setlb): New pattern.
18585 (Lcc): New pattern.
18586 (FLcc): New pattern.
18587
18588 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
18589
18590 PR target/48860
18591 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
18592 for reg<->xmm moves.
18593 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
18594 (vec_concatv2di_rex64_sse): Ditto.
18595 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
18596 (*vec_extractv2di_1_rex64): Ditto.
18597
18598 Revert:
18599 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
18600
18601 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18602 reg<->xmm moves.
18603 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
18604
18605 2011-05-04 Richard Guenther <rguenther@suse.de>
18606
18607 * tree.h (int_const_binop): Remove notrunc argument.
18608 * fold-const.c (int_const_binop): Remove notrunc argument. Always
18609 create integer constants that are properly truncated.
18610 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
18611 (const_binop): Remove zero notrunc argument to int_const_binop.
18612 (size_binop_loc): Likewise.
18613 (fold_div_compare): Likewise.
18614 (maybe_canonicalize_comparison_1): Likewise.
18615 (fold_comparison): Likewise.
18616 (fold_binary_loc): Likewise.
18617 (multiple_of_p): Likewise.
18618 * expr.c (store_constructor): Likewise.
18619 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18620 (maybe_fold_stmt_addition): Likewise.
18621 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
18622 * stor-layout.c (layout_type): Likewise.
18623 * tree-data-ref.c (tree_fold_divides_p): Likewise.
18624 * tree-sra.c (build_ref_for_offset): Likewise.
18625 (build_user_friendly_ref_for_offset): Likewise.
18626 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
18627 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18628 * tree-ssa-loop-niter.c (inverse): Likewise.
18629 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18630 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
18631 * tree-switch-conversion.c (check_range): Likewise.
18632 (build_constructors): Likewise.
18633 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
18634 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
18635 (extract_range_from_assert): Likewise.
18636 (vrp_int_const_binop): Likewise.
18637 (extract_range_from_binary_expr): Likewise.
18638 (extract_range_from_unary_expr): Likewise.
18639 (check_array_ref): Likewise.
18640 (find_case_label_range): Likewise.
18641 (simplify_div_or_mod_using_ranges): Likewise.
18642 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
18643 comparing case labels for merging.
18644
18645 2011-05-03 Mark Wielaard <mjw@redhat.com>
18646
18647 * dwarf2out.c (debug_str_hash_forced): Removed.
18648 (gen_label_for_indirect_string): Removed.
18649 (get_debug_string_label): Removed.
18650 (AT_string_form): Generate label directly.
18651 (output_indirect_string): Test indirect_string_node for
18652 DW_FORM_strp instead of checking label and refcount.
18653 (prune_indirect_string): Removed.
18654 (prune_unused_types): Don't check debug_str_hash_forced or
18655 call prune_indirect_string.
18656
18657 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
18658
18659 PR other/48093
18660 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
18661
18662 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
18663
18664 PR debug/47994
18665 PR debug/47919
18666 * combine.c (try_combine): Skip debug insns at m_split tests.
18667
18668 2011-04-26 Mark Wielaard <mjw@redhat.com>
18669
18670 PR42288
18671 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
18672 when info_section_emitted.
18673
18674 2011-05-03 Joseph Myers <joseph@codesourcery.com>
18675
18676 * config/mips/mips-opts.h: New.
18677 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
18678 to mips-opts.h.
18679 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
18680 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
18681 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
18682 via opts pointer.
18683 * config/mips/mips.h (enum mips_code_readable_setting): Move to
18684 mips-opts.h.
18685 (mips_abi, mips_code_readable): Don't declare.
18686 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
18687 (mabi=): Use Enum and Var.
18688 (mips_abi): New Enum and EnumValue entries.
18689 (mcode-readable=): Use Enum and Var.
18690 (mips_code_readable_setting): New Enum and EnumValue entries.
18691 (mr10k-cache-barrier=): Use Enum and Var.
18692 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
18693
18694 2011-05-03 Jan Hubicka <jh@suse.cz>
18695
18696 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
18697 replace hash by pointer map.
18698 (cgraph_node_set_element_def, cgraph_node_set_element,
18699 const_cgraph_node_set_element, varpool_node_set_element_def,
18700 varpool_node_set_element, const_varpool_node_set_element): Remove.
18701 (free_cgraph_node_set, free_varpool_node_set): New function.
18702 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
18703 * tree-emutls.c: Free varpool node set.
18704 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
18705 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18706 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
18707 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18708 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
18709 Move here from ipa.c; implement using pointer_map
18710 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
18711 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18712 debug_cgraph_node_set, varpool_node_set_new,
18713 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18714 dump_varpool_node_set, debug_varpool_node_set):
18715 Move to ipa-uitls.c.
18716 * passes.c (ipa_write_summaries): Update.
18717
18718 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18719
18720 From Mike Frysinger:
18721 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
18722 bf542/bf544/bf547/bf548/bf549.
18723
18724 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
18725
18726 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
18727
18728 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18729
18730 From Bernd Schmidt:
18731 * config/bfin/bfin.md (MOVCC): New mode_macro.
18732 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
18733 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
18734 comments from generated assembly.
18735
18736 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18737
18738 From Bernd Schmidt
18739 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
18740 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
18741 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
18742 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
18743 * config/bfin/lib1funcs.asm (___muldi3): New function.
18744
18745 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18746
18747 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
18748 build_function_type_list instead of build_function_type.
18749 Rearrange initialization of `args' to do so.
18750
18751 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18752
18753 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
18754 instead of build_function_type.
18755
18756 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18757
18758 * config/rs6000/rs6000.c (spe_init_builtins): Call
18759 build_function_type_list instead of build_function_type.
18760 (paired_init_builtins, altivec_init_builtins): Likewise.
18761 (builtin_function_type): Likewise.
18762
18763 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18764
18765 * config/sh/sh.c (sh_media_init_builtins): Call
18766 build_function_type_list instead of build_function_type.
18767
18768 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18769
18770 * config/sparc/sparc.c (sparc_file_end): Call
18771 build_function_type_list instead of build_function_type.
18772
18773 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18774
18775 * config/alpha/alpha.c (alpha_init_builtins): Call
18776 build_function_type_list instead of build_function_type.
18777
18778 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18779
18780 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
18781 build_function_type_list instead of build_function_type.
18782
18783 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18784
18785 * config/iq2000/i2000.c (iq2000_init_builtins): Call
18786 build_function_type_list instead of build_function_type.
18787 Delete `endlink' variable.
18788
18789 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18790
18791 * config/avr/avr.c (avr_init_builtins): Call
18792 build_function_type_list instead of build_function_type.
18793
18794 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18795
18796 * config/picochip/picochip.c (picochip_init_builtins): Call
18797 build_function_type_list instead of build_function_type.
18798 Delete `endlink' variable.
18799
18800 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18801
18802 * config/bfin/bfin.c (bfin_init_builtins): Call
18803 build_function_type_list instead of build_function_type.
18804
18805 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18806
18807 From Bernd Schmidt
18808 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
18809 that's not CONST_INT. Seemingly redundant check is due to PR39768.
18810
18811 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18812
18813 From Jie Zhang:
18814 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
18815 libbffastfp overrides libgcc when -mfast-fp.
18816
18817 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18818
18819 Originally from Bernd Schmidt
18820 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
18821 * config/bfin/bfin.c (override_options): Test it and error if
18822 TARGET_FDPIC.
18823
18824 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18825
18826 Originally From Bernd Schmidt
18827 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
18828 FD-PIC.
18829
18830 2011-05-03 Jeff Law <law@redhat.com>
18831
18832 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
18833 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
18834 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
18835 than accessing AUX field directly. Free the AUX field before
18836 clearing it.
18837 (thread_block, thread_through_loop_header): Likewise.
18838 (thread_single_edge, mark_threaded_blocks): Likewise.
18839 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
18840 (register_jump_thread): Do not attempt to thread to a NULL edge.
18841
18842 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
18843
18844 * function.c (init_function_start): Call decide_function_section.
18845 * varasm.c (decide_function_section): New function.
18846 (assemble_start_function): When not using
18847 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
18848 or first_function_block_is_cold.
18849 * rtl.h (decide_function_section): Declare.
18850
18851 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
18852 Jakub Jelinek <jakub@redhat.com>
18853
18854 PR target/48774
18855 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
18856 only succeed if req_mode is the same as set_mode.
18857
18858 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
18859
18860 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
18861 * genemit.c (gen_exp): Handle RETURN.
18862 * emit-rtl.c (verify_rtx_sharing): Likewise.
18863 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
18864 * rtl.c (copy_rtx): RETURN is shared.
18865 * rtl.h (enum global_rtl_index): Add GR_RETURN.
18866 (ret_rtx): New.
18867 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
18868 * config/s390/s390.c (s390_emit_epilogue): Likewise.
18869 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
18870 * config/cris/cris.c (cris_expand_return): Likewise.
18871 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
18872 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
18873 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
18874 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
18875 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
18876 Likewise.
18877 * config/v850/v850.c (expand_epilogue): Likewise.
18878 * config/bfin/bfin.c (bfin_expand_call): Likewise.
18879 * config/arm/arm.md (epilogue): Likewise.
18880 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
18881 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
18882 variable to ret_reg.
18883
18884 2011-05-03 Richard Guenther <rguenther@suse.de>
18885
18886 PR lto/48846
18887 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
18888 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
18889 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18890
18891 2011-05-03 Richard Guenther <rguenther@suse.de>
18892
18893 * c-decl.c (grokdeclarator): Instead of looking at
18894 TREE_OVERFLOW check if the constant fits in the index type.
18895
18896 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
18897
18898 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
18899 (vec_store_lanes<mode><mode>): Likewise.
18900
18901 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
18902
18903 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
18904 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
18905 convert_optab_index values.
18906 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
18907 * genopinit.c (optabs): Initialize the new optabs.
18908 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
18909 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
18910 (expand_STORE_LANES): New functions.
18911 * tree.h (build_array_type_nelts): Declare.
18912 * tree.c (build_array_type_nelts): New function.
18913 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
18914 (vect_model_load_cost): Likewise.
18915 (vect_store_lanes_supported, vect_load_lanes_supported)
18916 (vect_record_strided_load_vectors): Declare.
18917 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
18918 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
18919 (vect_transform_strided_load): Split out statement recording into...
18920 (vect_record_strided_load_vectors): ...this new function.
18921 * tree-vect-stmts.c (create_vector_array, read_vector_array)
18922 (write_vector_array, create_array_ref): New functions.
18923 (vect_model_store_cost): Add store_lanes_p argument.
18924 (vect_model_load_cost): Add load_lanes_p argument.
18925 (vectorizable_store): Try to use store-lanes functions for
18926 interleaved stores.
18927 (vectorizable_load): Likewise load-lanes and loads.
18928 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
18929 to vect_model_store_cost.
18930 (vect_build_slp_tree): Likewise vect_model_load_cost.
18931
18932 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
18933
18934 * hooks.h (hook_bool_mode_uhwi_false): Declare.
18935 * hooks.c (hook_bool_mode_uhwi_false): New function.
18936 * target.def (array_mode_supported_p): New hook.
18937 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
18938 * doc/tm.texi: Regenerate.
18939 * stor-layout.c (mode_for_array): New function.
18940 (layout_type): Use it.
18941 * config/arm/arm.c (arm_array_mode_supported_p): New function.
18942 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
18943
18944 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
18945
18946 PR target/48723
18947 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
18948 for -fstack-check if the size to allocate is negative.
18949
18950 2011-05-02 Lawrence Crowl <crowl@google.com>
18951
18952 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
18953 (timevar_cond_start): New for starting a timer only when it is not
18954 already running.
18955 (timevar_cond_stop): New for stopping a timer when it was not already
18956 running.
18957
18958 * timevar.c (timevar_stop): Enable start/stop timers to start again.
18959 (timevar_cond_start): New as above.
18960 (timevar_cond_stop): New as above.
18961
18962 * timevar.def: Add start/stop timers for compiler phases,
18963 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
18964 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
18965 and TV_PHASE_FINALIZE.
18966 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
18967 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
18968 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
18969 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
18970 Make unused TV_OVERLOAD into a start/stop timer.
18971
18972 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
18973 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
18974 to indicate that they are start/stop timers.
18975
18976 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
18977 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
18978 Move initialization to do_compile.
18979 (do_compile): Add initialization from above.
18980 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
18981
18982 * c-decl.c (c_write_global_declarations): Add start/stop of
18983 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
18984
18985 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
18986 or TV_PARSE_INLINE, as appropriate.
18987 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
18988 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
18989
18990 2011-05-02 Jason Merrill <jason@redhat.com>
18991
18992 PR c++/40975
18993 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
18994
18995 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
18996
18997 PR c/35445
18998 * c-decl.c (finish_decl): Only create a composite if the types are
18999 compatible.
19000
19001 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19002
19003 * config/fr30/fr30-protos.h (Mmode): Don't define.
19004 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
19005 definition where used.
19006 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19007 define. Expand definitions where used.
19008 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19009 Expand definitions where used.
19010 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19011 rx_function_arg, rx_function_arg_advance,
19012 rx_function_arg_boundary): Expand definitions of those macros.
19013 * config/v850/v850-protos.h (Mmode): Don't define. Expand
19014 definition where used.
19015
19016 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19017
19018 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19019 reg<->xmm moves.
19020 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19021 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
19022 with *movv2sf_internal_rex64_avx.
19023 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19024 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19025 Use %v prefix in insn mnemonic to handle TARGET_AVX.
19026 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
19027 "vex" in "prefix" attribute calculation.
19028 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
19029
19030 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
19031
19032 PR target/47951
19033 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19034 inputs match the output.
19035
19036 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
19037
19038 PR target/47955
19039 * config/m68k/m68k.c (m68k_expand_prologue): Set
19040 current_function_static_stack_size.
19041
19042 2011-05-02 Jan Hubicka <jh@suse.cz>
19043
19044 * lto-streamer.c (lto_streamer_cache_insert_1,
19045 lto_streamer_cache_lookup, lto_streamer_cache_create,
19046 lto_streamer_cache_delete): Use pointer map instead of hashtable.
19047 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19048
19049 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19050
19051 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19052 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19053 config/m68k/t-opts: New files.
19054 * config/m68k/m68k-tables.opt: New file (generated).
19055 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19056 extra_options and m68k/t-opts to tmake_file.
19057 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19058 (all_isas): Initialize using m68k-isas.def.
19059 (all_microarchs): Initialize using m68k-microarchs.def.
19060 (m68k_find_selection): Remove.
19061 (m68k_handle_option): Don't assert that global structures are in
19062 use. Use error_at. Access variables via opts pointer. Don't
19063 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
19064 directly for -m68020-40 and -m68020-60.
19065 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19066 m68k_tune_entry here.
19067 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19068 to m68k-opts.h.
19069 (m68k_library_id_string): Remove declaration.
19070 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19071 (m68k_library_id_string): New Variable.
19072 (march=, mcpu=, mtune=): Use Enum and Var.
19073
19074 2011-05-02 Richard Guenther <rguenther@suse.de>
19075
19076 * varasm.c (output_constructor_regular_field): Compute zero-based
19077 index with double-ints. Make sure to ICE instead of producing
19078 wrong code.
19079 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19080 in asserts. Properly use a signed type.
19081
19082 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19083
19084 * config/i386/sse.md (V): New mode iterator.
19085 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
19086 TARGET_SSE2.
19087 (V_256): Rename from AVX256MODE.
19088 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
19089 condition to all users.
19090 (VF1): Ditto.
19091 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
19092 condition to all users.
19093 (VF_128): Make V4SF mode unconditional.
19094 (VF_256): Rename from AVX256MODEF2P.
19095 (VI4F_128): Rename from SSEMODE4S.
19096 (VI8F_128): Rename from SSEMODE2D.
19097 (VI4F_256): Rename from AVX256MODE8P.
19098 (VI8F_256): Rename from AVX256MODE4P.
19099 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19100 (ssescalarmodesuffix): Remove SF and DF modes.
19101 (SSEMODE124): Remove.
19102 (SSEMODE1248): Ditto.
19103 (SSEMODEF2P): Ditto.
19104 (AVXMODEF2P): Ditto.
19105 (AVXMODEFDP): Ditto.
19106 (AVXMODEFSP): Ditto.
19107 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19108 unconditional.
19109 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
19110 unconditional.
19111 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19112 xop_pcmov_<mode>256. Use V mode iterator.
19113
19114 Adjust RTX patterns globally for renamed mode attributes.
19115
19116 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19117
19118 * haifa-sched.c (sched_emit_insn): Emit insn before first
19119 non-scheduled insn. Inform back-end about new insn. Add
19120 new insn to scheduled_insns list.
19121
19122 2011-05-02 Richard Guenther <rguenther@suse.de>
19123
19124 PR tree-optimization/48822
19125 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19126 (process_scc): Indicate which iteration we start.
19127
19128 2011-05-02 Jan Hubicka <jh@suse.cz>
19129
19130 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19131 (lto_section_overrun): New.
19132 * lto-section-out.c (append_block): Rename to ...
19133 (lto_append_block): ... this one; export.
19134 (lto_output_1_stream): Move lto lto-streamer.h
19135 (lto_output_data_stream): Update.
19136 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19137 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19138 functions.
19139
19140 2011-05-02 Richard Guenther <rguenther@suse.de>
19141
19142 * tree.c (tree_code_counts): New global array.
19143 (record_node_allocation_statistics): Count individual tree codes.
19144 (dump_tree_statistics): Dump individual code stats.
19145
19146 2011-05-01 Jan Hubicka <jh@suse.cz>
19147
19148 * ipa-inline.c (caller_growth_limits): Fix thinko when
19149 looking for largest stack frame.
19150 * ipa-inline.h (dump_inline_summary): Declare.
19151 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19152 on stack usage.
19153 (dump_inline_summary): Export.
19154 (debug_inline_summary): Declare as DEBUG_FUNCTION.
19155
19156 2011-05-01 Anatoly Sokolov <aesok@post.ru>
19157
19158 * reginfo.c (memory_move_cost): Change rclass argument type form
19159 'enum reg_class' to reg_class_t.
19160 * reload.h (memory_move_cost): Update prototype.
19161 * postreload.c reload_cse_simplify_set): Change type dclass var to
19162 reg_class_t.
19163 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19164 Update prototype.
19165 (ira_allocate_and_set_costs): Change aclass argument type form
19166 'enum reg_class' to reg_class_t.
19167 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19168 Change aclass argument type to reg_class_t.
19169 (update_conflict_hard_reg_costs): Change type aclass and pref vars
19170 to reg_class_t.
19171 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19172 memory_move_cost call.
19173
19174 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19175 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19176 Change type tmp var to reg_class_t.
19177
19178 2011-04-30 Jan Hubicka <jh@suse.cz>
19179
19180 * ipa-inline.c (can_inline_edge_p): Disregard limits when
19181 inlining into function with flatten attribute.
19182 (want_inline_small_function_p): Be more realistic about inlining
19183 cold calls where callee size grows.
19184
19185 2011-04-30 Jan Hubicka <jh@suse.cz>
19186
19187 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19188 flags.
19189
19190 2011-04-30 Anatoly Sokolov <aesok@post.ru>
19191
19192 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19193 PRINT_OPERAND_PUNCT_VALID_P): Remove.
19194 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19195 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19196 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19197 (print_operand): Rename to...
19198 (sparc_print_operand): ...this. Make static. Adjust
19199 sparc_print_operand function call.
19200 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19201 functions.
19202
19203 2011-04-30 Jan Hubicka <jh@suse.cz>
19204
19205 PR middle-end/48752
19206 * ipa-inline.c (early_inliner): Disable when doing late
19207 addition of function.
19208
19209 2011-04-30 Jakub Jelinek <jakub@redhat.com>
19210
19211 * dwarf2out.c (get_address_mode): New inline.
19212 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19213 if not dwarf_strict emit
19214 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19215 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19216 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
19217 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19218 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19219 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19220 mem_loc_descriptor callers.
19221 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19222 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19223 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19224 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19225 (base_types): New variable.
19226 (get_base_type_offset, calc_base_type_die_sizes,
19227 base_type_for_mode, mark_base_types, base_type_cmp,
19228 move_marked_base_types): New functions.
19229 (calc_die_sizes): Assert that die_offset is 0 or equal to
19230 next_die_offset.
19231 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19232 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
19233 callers. If not dwarf_strict, call mem_loc_descriptor even for
19234 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19235 (gen_subprogram_die): Don't give up on call site parameters
19236 with non-integral or large integral modes. Adjust
19237 mem_loc_descriptor callers.
19238 (prune_unused_types): Call prune_unused_types_mark on base_types
19239 vector entries.
19240 (resolve_addr): Call mark_base_types.
19241 (dwarf2out_finish): Call move_marked_base_types.
19242
19243 PR tree-optimization/48809
19244 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19245 type.
19246 (gen_inbound_check): Don't compute index_expr - range_min in utype
19247 again, instead reuse SSA_NAME initialized in build_arrays.
19248 Remove two useless gsi_for_stmt calls.
19249
19250 2011-04-29 Jeff Law <law@redhat.com>
19251
19252 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19253
19254 2011-04-29 Martin Jambor <mjambor@suse.cz>
19255
19256 * cgraph.h (cgraph_postorder): Remove declaration.
19257 * ipa-utils.h (ipa_free_postorder_info): Declare.
19258 (ipa_reverse_postorder): Likewise.
19259 * cgraphunit.c: Include ipa-utils.h.
19260 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19261 * ipa-inline.c: Include ipa-utils.h.
19262 (ipa_inline): Update call to ipa_reverse_postorder.
19263 * ipa-pure-const.c (propagate_pure_const): Update call to
19264 ipa_reduced_postorder and ipa_print_order. Call
19265 ipa_free_postorder_info to clean up.
19266 (propagate_nothrow): Likewise.
19267 * ipa-reference.c (propagate): Removed a useless call to
19268 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19269 and ipa_print_order. Call ipa_free_postorder_info to clean up.
19270 * ipa.c: Include ipa-utils.h.
19271 (ipa_profile): Update call to ipa_reverse_postorder.
19272 (cgraph_postorder): Moved to...
19273 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19274 (ipa_utils_print_order): Renamed to ipa_print_order.
19275 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19276 comments.
19277 (ipa_free_postorder_info): New function.
19278 * passes.c: Include ipa-utils.h.
19279 (do_per_function_toporder): Update call to ipa_reverse_postorder.
19280 (ipa_write_summaries): Likewise.
19281 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19282 (cgraphunit.o): Likewise.
19283 (ipa.o): Likewise.
19284 (ipa-inline.o): Likewise.
19285
19286 2011-04-29 Jan Hubicka <jh@suse.cz>
19287
19288 * ipa-inline.h (clause_t): Turn into unsigned int.
19289 * ipa-inline-analysis.c (add_clause): Do more simplification.
19290 (and_predicates): Shortcut more cases.
19291 (predicates_equal_p): Move forward; check that clauses are properly
19292 ordered.
19293 (or_predicates): Shortcut more cases.
19294 (edge_execution_predicate): Rewrite as...
19295 (set_cond_stmt_execution_predicate): ... this function; handle
19296 __builtin_constant_p.
19297 (set_switch_stmt_execution_predicate): New .
19298 (compute_bb_predicates): New.
19299 (will_be_nonconstant_predicate): Update TODO.
19300 (estimate_function_body_sizes): Use compute_bb_predicates
19301 and free them later, always try to estimate if stmt is constant.
19302 (estimate_time_after_inlining, estimate_size_after_inlining):
19303 Gracefully handle optimized out edges.
19304 (read_predicate): Fix off by one error.
19305
19306 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
19307
19308 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19309
19310 2011-04-27 Xinliang David Li <davidxl@google.com>
19311
19312 * tree-profile.c (init_ic_make_global_vars): Set
19313 tls attribute on ic vars.
19314 * coverage.c (coverage_end_function): Initialize
19315 function_list with zero.
19316
19317 2011-04-29 Richard Guenther <rguenther@suse.de>
19318
19319 * builtins.c (fold_builtin_classify_type): Use integer_type_node
19320 for the type of the result.
19321 (fold_builtin_isascii): Likewise.
19322 (fold_builtin_toascii): Use integer_type_node where appropriate.
19323 (fold_builtin_logb): Likewise.
19324 (fold_builtin_frexp): Likewise.
19325 (fold_builtin_strstr): Likewise.
19326 (fold_builtin_strpbrk): Likewise.
19327 (fold_builtin_fputs): Likewise.
19328 (fold_builtin_sprintf): Likewise.
19329 (fold_builtin_snprintf): Likewise.
19330 (fold_builtin_printf): Likewise.
19331 (do_mpfr_remquo): Use a proper type for the assigned constant.
19332 (do_mpfr_lgamma_r): Likewise.
19333 * dwarf2out.c (resolve_one_addr): Use size_int.
19334 * except.c (init_eh): Likewise.
19335 (assign_filter_values): Use integer_type_node for filter values.
19336 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19337 indices.
19338 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19339 for EH region numbers.
19340 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19341 for the shift amount.
19342
19343 2011-04-29 Richard Guenther <rguenther@suse.de>
19344
19345 * expr.h (expand_shift): Rename to ...
19346 (expand_variable_shift): ... this.
19347 (expand_shift): Take a constant shift amount.
19348 * expmed.c (expand_shift): Rename to ...
19349 (expand_variable_shift): ... this.
19350 (expand_shift): New wrapper around expand_variable_shift.
19351 * expr.c (convert_move, emit_group_load_1, emit_group_store,
19352 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19353 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19354 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19355 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19356 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19357 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19358 emit_store_flag_1, emit_store_flag): Likewise.
19359 * builtins.c (expand_builtin_signbit): Likewise.
19360 * calls.c (load_register_parameters): Likewise.
19361 * function.c (assign_parm_setup_block): Likewise.
19362 * lower-subreg.c (resolve_shift_zext): Likewise.
19363 * optabs.c (widen_bswap, expand_abs_nojump,
19364 expand_one_cmpl_abs_nojump, expand_float): Likewise.
19365 * spu/spu.c (spu_expand_extv): Likewise.
19366 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19367
19368 2011-04-29 Richard Guenther <rguenther@suse.de>
19369
19370 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19371 for the remapped region number.
19372 * predict.c (build_predict_expr): Use integer_type_node for the
19373 predict kind.
19374 * fold-const.c (fold_binary_loc): Use integer_type_node for
19375 the shift amount. Use a proper type for the PLUS_EXPR operand.
19376
19377 2011-04-29 Michael Matz <matz@suse.de>
19378
19379 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19380 other trees that just builtins.
19381 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19382
19383 2011-04-29 Richard Guenther <rguenther@suse.de>
19384
19385 * tree-nested.c (get_trampoline_type): Use size_int.
19386 (get_nl_goto_field): Likewise.
19387 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19388 for all indexes.
19389 (lower_eh_constructs_2): Likewise.
19390 (lower_resx): Likewise.
19391 (lower_eh_dispatch): Likewise.
19392 * tree-mudflap.c (mf_build_string): Use size_int.
19393 (mudflap_register_call): Use integer_type_node for the flag.
19394 (mudflap_enqueue_constant): Use size_int.
19395 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19396 instead of rebuilding it.
19397
19398 2011-04-29 Richard Guenther <rguenther@suse.de>
19399
19400 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19401 Handle OBJ_TYPE_REF.
19402 (find_func_aliases_for_call): Use it more consistently.
19403
19404 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
19405
19406 * haifa-sched.c (last_nondebug_scheduled_insn): New.
19407 (rank_for_schedule): Use it.
19408 (schedule_block): Set it.
19409
19410 2011-04-28 David Li <davidxl@google.com>
19411
19412 * tree.c (crc32_string): Use crc32_byte.
19413 (crc32_byte): New function.
19414 * tree.h (crc32_byte): New function.
19415 * gcov.c (read_graph_file): Handle new cfg_cksum.
19416 (read_count_file): Ditto.
19417 * profile.c (instrument_values): Ditto.
19418 (get_exec_counts): Ditto.
19419 (read_profile_edge_counts): Ditto.
19420 (compute_branch_probabilities): Ditto.
19421 (compute_value_histograms): Ditto.
19422 (branch_prob): Ditto.
19423 (end_branch_prob): Ditto.
19424 * coverage.c (read_counts_file): Ditto.
19425 (get_coverage_counts): Ditto.
19426 (tree_coverage_counter_addr): Ditto.
19427 (coverage_checksum_string): Ditto.
19428 (coverage_begin_output): Ditto.
19429 (coverage_end_function): Ditto.
19430 (build_fn_info_type): Ditto.
19431 (build_fn_info_value): Ditto.
19432 * libgcov.c (gcov_exit): Ditto.
19433 * gcov-dump.c (tag_function): Ditto.
19434 (compute_checksum): Remove.
19435
19436 2011-04-29 Alan Modra <amodra@gmail.com>
19437
19438 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19439 unspec plus offset. Tidy macho code.
19440
19441 2011-04-29 Martin Jambor <mjambor@suse.cz>
19442
19443 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19444 node instead of a decl. Update all callers.
19445 * cgraph.h: Update declaration.
19446
19447 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
19448
19449 PR tree-optimization/48765
19450 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19451 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19452 to indicate if loop aware SLP is being used. Scan the statements
19453 and update the vectorization factor according to the type of
19454 vectorization before statement analysis.
19455 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19456 pass it to vect_analyze_loop_operations.
19457 (vectorizable_reduction): Set number of copies to 1 in case of pure
19458 SLP statement.
19459 * tree-vect-stmts.c (vectorizable_conversion,
19460 vectorizable_assignment, vectorizable_shift,
19461 vectorizable_operation, vectorizable_type_demotion,
19462 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19463 Likewise.
19464 (vectorizable_condition): Move the check that it is not SLP
19465 vectorization before the number of copies check.
19466 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19467 to vectorize the loop using SLP.
19468
19469 2011-04-28 Jakub Jelinek <jakub@redhat.com>
19470
19471 PR middle-end/48597
19472 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19473 inline asm.
19474
19475 2011-04-28 Joseph Myers <joseph@codesourcery.com>
19476
19477 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19478 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19479 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19480 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19481 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19482 linux*.h headers.
19483 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19484 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19485 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19486 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19487 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19488 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19489 REG_NAME.
19490 * config/i386/linux.h (REG_NAME): Don't define.
19491 * config/i386/linux64.h (REG_NAME): Don't define.
19492 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19493 Undefine before defining.
19494
19495 2011-04-28 Jan Hubicka <jh@suse.cz>
19496
19497 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19498 nonconstant_names array.
19499 (estimate_function_body_sizes): Build nonconstant_names array; handle
19500 BUILT_IN_CONSTANT_P.
19501
19502 2011-04-28 Richard Guenther <rguenther@suse.de>
19503
19504 PR bootstrap/48804
19505 Revert
19506 2011-04-28 Richard Guenther <rguenther@suse.de>
19507
19508 * tree-ssa-structalias.c (solve_constraints): Build succ graph
19509 as late as possible.
19510
19511 2011-04-28 Richard Guenther <rguenther@suse.de>
19512
19513 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19514 (debug_constraint): Do it here.
19515 (dump_constraints): And here.
19516 (rewrite_constraints): And here.
19517 (dump_constraint_edge): Remove.
19518 (dump_constraint_graph): Rewrite to produce DOT output.
19519 (solve_constraints): Build succ graph as late as possible.
19520 Dump constraint graphs before and after solving.
19521
19522 2011-04-28 Richard Guenther <rguenther@suse.de>
19523
19524 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19525 New function split out from ...
19526 (find_func_aliases): ... here. Call it.
19527 (find_func_aliases_for_call): Likewise.
19528
19529 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
19530
19531 * internal-fn.h (internal_fn_name_array): Declare.
19532 (internal_fn_flags_array): Likewise.
19533
19534 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
19535
19536 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
19537 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19538 Move from sse.md.
19539 (ssemodefsuffix): Remove.
19540 (ssevecmodesuffix): New mode attribute.
19541 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19542 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19543 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19544 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19545 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19546 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19547 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19548 ssemodesuffix mode attribute.
19549 (float splitters): Use ssevecmodesuffix mode attribute.
19550 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19551 (sseinsmode): Rename from avxvecmode.
19552 (avxsizesuffix): Rename from avxmodesuffix.
19553 (sseintvecmode): Rename from avxpermvecmode.
19554 (ssedoublevecmode): Rename from ssedoublesizemode.
19555 (ssehalfvecmode): Rename from avxhalfvecmode.
19556 (ssescalarmode): Rename from avxscalarmode.
19557 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19558 templates for ssemodesuffix mode attribute.
19559 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
19560 mode attribute.
19561
19562 Adjust RTX patterns globally for renamed mode attributes.
19563
19564 2011-04-27 Jan Hubcika <jh@suse.cz>
19565
19566 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
19567 * ipa-inline-analysis.c: Include alloc-pool.h.
19568 (edge_predicate_pool): New.
19569 (trye_predicate_p): New function
19570 (false_predicate_p): New function.
19571 (add_clause): Sanity check that false clauses are "optimized";
19572 never add clauses to predicate that is already known to be false.
19573 (and_predicate): Use flase_predicate_p.
19574 (evaulate_predicate): Rename to ...
19575 (evaluate_predicate): ... this one; update all callers; assert
19576 that false is not listed among possible truths.
19577 (dump_predicate): Use true_predicate_p.
19578 (account_size_time): Use false_predicate_p.
19579 (evaulate_conditions_for_edge): Rename to ...
19580 (evaluate_conditions_for_edge) ... this one.
19581 (edge_set_predicate): New function.
19582 (inline_edge_duplication_hook): Duplicate edge predicates.
19583 (inline_edge_removal_hook): Free edge predicates.
19584 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
19585 (dump_inline_summary): Update.
19586 (estimate_function_body_sizes): Set edge predicates.
19587 (estimate_calls_size_and_time): Handle predicates.
19588 (estimate_callee_size_and_time): Update.
19589 (remap_predicate): Add toplev_predicate; update comment.
19590 (remap_edge_predicates): New function.
19591 (inline_merge_summary): Compute toplev predicate; update.
19592 (read_predicate): New function.
19593 (read_inline_edge_summary): Use it.
19594 (inline_read_section): Likewise.
19595 (write_predicate): New function.
19596 (write_inline_edge_summary): Use it.
19597 (inline_write_summary): Likewise.
19598 (inline_free_summary): Free alloc pool and edge summary vec.
19599
19600 2011-04-27 Richard Guenther <rguenther@suse.de>
19601
19602 * tree-ssa-structalias.c (changed_count): Remove.
19603 (changed): Use a bitmap.
19604 (unify_nodes): Adjust.
19605 (do_sd_constraint): Likewise.
19606 (do_ds_constraint): Likewise.
19607 (do_complex_constraint): Likewise.
19608 (solve_graph): Likewise.
19609
19610 2011-04-27 Jan Hubicka <jh@suse.cz>
19611
19612 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
19613
19614 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
19615
19616 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
19617 (avx_vperm2f128_*_operand): Ditto.
19618 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
19619 Use avx_vpermilp_parallel in insn condition.
19620 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
19621 Use avx_vperm2f128_parallel in insn condition.
19622
19623 2011-04-27 Richard Guenther <rguenther@suse.de>
19624
19625 * Makefile.in (tree-ssa-structalias.o): Remove
19626 gt-tree-ssa-structalias.h dependency.
19627 (GTFILES): Remove tree-ssa-structalias.c.
19628 * tree.c (allocate_decl_uid): New function.
19629 (make_node_stat): Use it.
19630 (copy_node_stat): Likewise.
19631 * tree.h (allocate_decl_uid): Declare.
19632 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
19633 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
19634 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
19635 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
19636 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
19637 (struct heapvar_map): Likewise.
19638 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
19639 heapvar_insert): Likewise.
19640 (make_heapvar_for): Rename to ...
19641 (make_heapvar): ... this. Simplify.
19642 (fake_var_decl_obstack): New global var.
19643 (build_fake_var_decl): New function.
19644 (make_constraint_from_heapvar): Adjust.
19645 (handle_lhs_call): Likewise.
19646 (create_function_info_for): Likewise.
19647 (intra_create_variable_infos): Likewise.
19648 (init_alias_vars): Allocate fake_var_decl_obstack.
19649 (init_alias_heapvars, delete_alias_heapvars): Remove.
19650 (compute_points_to_sets): Do not call init_alias_heapvars.
19651 (ipa_pta_execute): Likewise.
19652 (delete_points_to_sets): Free fake_var_decl_obstack.
19653
19654 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19655
19656 * config/spu/divmovti4.c (union qword_UTItype): New data type.
19657 (si_from_UTItype, si_to_UTItype): New functions.
19658 (__udivmodti4): Use them to implement type-punning.
19659 * config/spu/multi3.c (union qword_TItype): New data type.
19660 (si_from_TItype, si_to_TItype): New functions.
19661 (__multi3): Use them to implement type-punning.
19662
19663 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19664
19665 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
19666
19667 2011-04-27 Jan Hubicka <jh@suse.cz>
19668
19669 * ipa-prop.c (function_insertion_hook_holder): New holder.
19670 (ipa_add_new_function): New function.
19671 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
19672 Register/deregister holder.
19673
19674 2011-04-27 Richard Guenther <rguenther@suse.de>
19675
19676 PR tree-optimization/48772
19677 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
19678
19679 2011-04-27 Richard Guenther <rguenther@suse.de>
19680
19681 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
19682 TARGET_MEM_REF handling.
19683
19684 2011-04-27 Nick Clifton <nickc@redhat.com>
19685
19686 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
19687 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
19688 (REG_CLASS_NAMES): Likewise.
19689 (REG_CLASS_CONTENTS): Likewise.
19690 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
19691 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
19692 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
19693 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
19694 (EVEN_REGS): New macro. Alias for QUAD_REGS.
19695 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
19696 duplicate register classes.
19697 (frv_class_likely_spilled_p): Likewise.
19698 (frv_register_move_cost): Likewise.
19699
19700 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
19701 end of the regno_reg_class array.
19702
19703 2011-04-27 Jakub Jelinek <jakub@redhat.com>
19704
19705 PR c/48742
19706 * c-typeck.c (build_binary_op): Don't wrap arguments if
19707 int_operands is true.
19708
19709 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
19710
19711 PR target/48767
19712 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
19713 targetm.calls.must_pass_in_stack for void type.
19714
19715 2011-04-26 Jan Hubicka <jh@suse.cz>
19716
19717 * cgraphbuild.c (build_cgraph_edges): Update call
19718 of cgraph_create_edge and cgraph_create_indirect_edge.
19719 * cgraph.c (cgraph_create_edge_including_clones,
19720 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
19721 cgraph_update_edges_for_call_stmt_node): Do not take nest
19722 argument; do not initialize call_stmt_size/time.
19723 (dump_cgraph_node): Do not dump nest.
19724 (cgraph_clone_edge): Do not take loop_nest argument;
19725 do not propagate it; do not clone call_stmt_size/time.
19726 (cgraph_clone_node): Likewise.
19727 (cgraph_create_virtual_clone): Update.
19728 * cgraph.h (struct cgraph_edge): Remove
19729 call_stmt_size/call_stmt_time/loop_nest.
19730 (cgraph_create_edge, cgraph_create_indirect_edge,
19731 cgraph_create_edge_including_clones, cgraph_clone_node): Update
19732 prototype.
19733 * tree-emutls.c (gen_emutls_addr): Update.
19734 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
19735 loop_nest; handle indirect calls, too.
19736 (clone_inlined_nodes): Do not care about updating inline summaries.
19737 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
19738 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
19739 stream call_stmt_size/call_stmt_time/loop_nest.
19740 * ipa-inline.c (edge_badness): Update.
19741 (ipa_inline): dump summaries after inlining.
19742 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
19743 New.
19744 (inline_edge_summary): New function.
19745 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
19746 (inline_edge_removal_hook): Handle edge summaries.
19747 (inline_edge_duplication_hook): New hook.
19748 (inline_summary_alloc): Alloc hooks.
19749 (initialize_growth_caches): Do not register removal hooks.
19750 (free_growth_caches); Do not free removal hook.
19751 (dump_inline_edge_summary): New function.
19752 (dump_inline_summary): Use it.
19753 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
19754 (inline_update_callee_summaries): New function.
19755 (inline_merge_summary): Use it.
19756 (do_estimate_edge_time, do_estimate_edge_growth): Update.
19757 (read_inline_edge_summary): New function.
19758 (inline_read_section): Use it.
19759 (write_inline_edge_summary): New function.
19760 (inline_write_summary): Use it.
19761 (inline_free_summary): Free edge new holders.
19762 * tree-inline.c (copy_bb): Update.
19763
19764 2011-04-26 Jason Merrill <jason@redhat.com>
19765
19766 * tree-eh.c (lower_try_finally_switch): Create the label along with
19767 the CASE_LABEL_EXPR.
19768
19769 2011-04-26 David S. Miller <davem@davemloft.net>
19770 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19771
19772 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
19773 * configure: Regenerate.
19774
19775 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19776
19777 PR target/48258
19778 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
19779 reduction.
19780 (VEC_reduc): New code iterator and splitters for vector reduction.
19781 (VEC_reduc_name): Ditto.
19782 (VEC_reduc_rtx): Ditto.
19783 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
19784 (reduc_<VEC_reduc_name>_v4sf): Ditto.
19785
19786 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19787 support for extracting SF on VSX.
19788
19789 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
19790 generating xscvspdp.
19791 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
19792 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
19793 double add, minimum, maximum vector reduction.
19794 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
19795 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
19796 optimize double vector reduction.
19797 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
19798
19799 2011-04-26 Joseph Myers <joseph@codesourcery.com>
19800
19801 * config/fr30/fr30.h (inhibit_libc): Don't define.
19802 * config/m32r/m32r-protos.h: Correct comment.
19803 * config/v850/v850.h (GHS_default_section_names,
19804 GHS_current_section_names): Use tree, not union tree_node *.
19805
19806 2011-04-26 Xinliang David Li <davidxl@google.com>
19807
19808 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
19809 * c-family/c-opts.c (c_common_handle_option): Set
19810 warn_maybe_uninitialized.
19811 * opts.c (common_handle_option): Ditto.
19812 * common.opt: New option.
19813 * tree-ssa.c (warn_uninit): Add one more parameter.
19814 (warn_uninitialized_var): Pass warning code.
19815 * tree-flow.h: Interface change.
19816
19817 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19818
19819 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
19820 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
19821 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
19822
19823 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19824
19825 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
19826 * config/mips/mips.opt (mmips-tfile): Remove.
19827
19828 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
19829 mips-tdump reference to ...
19830 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
19831 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
19832 reference by Tru64 UNIX.
19833
19834 2011-04-26 Jakub Jelinek <jakub@redhat.com>
19835
19836 PR debug/48768
19837 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
19838 is error_mark_node, set value to NULL.
19839
19840 PR tree-optimization/48734
19841 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
19842 if return value from maybe_fold_*_comparsions isn't something
19843 the code is prepared to handle.
19844
19845 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
19846
19847 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
19848 mode check.
19849 (ext_QIreg_nomode_operands): Remove.
19850 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
19851 (*andsi_1): Ditto.
19852 (*andhi_1): Ditto.
19853
19854 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
19855
19856 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
19857
19858 2011-04-26 Richard Guenther <rguenther@suse.de>
19859
19860 * c-typeck.c (build_unary_op): Do not expand array-refs via
19861 pointer arithmetic. Only adjust qualifiers for function types.
19862
19863 2011-04-26 Richard Guenther <rguenther@suse.de>
19864
19865 PR middle-end/48694
19866 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
19867 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
19868 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
19869 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
19870
19871 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
19872
19873 * doc/extend.texi: Document __underlying_type.
19874
19875 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
19876
19877 * config/rs6000/titan.md (automata_option "progress"): Remove.
19878
19879 2011-04-25 Jeff Law <law@redhat.com>
19880
19881 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
19882
19883 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
19884
19885 * system.h (ENUM_BITFIELD): Remove.
19886
19887 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
19888 Eric Botcazou <ebotcazou@adacore.com>
19889
19890 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
19891 for STORE_FLAG_VALUE==-1 case.
19892
19893 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
19894
19895 PR target/43804
19896 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
19897 LEGITIMATE_PIC_OPERAND_P.
19898
19899 2011-04-24 Jan Hubicka <jh@suse.cz>
19900
19901 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
19902 WPA hack.
19903 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
19904 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
19905 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
19906 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
19907 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
19908 Sanity check predicate length.
19909 (remap_predicate): Likewise; sanity check jump functions.
19910 (inline_read_section, inline_write_summary): Sanity check
19911 predicate length.
19912
19913 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
19914
19915 PR other/48748
19916 * doc/extend.texi (Type Traits): Document __is_standard_layout,
19917 __is_literal_type, and __is_trivial; update throughout about
19918 possibly cv-qualified void types.
19919
19920 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
19921
19922 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
19923 testsuite and make it version agnostic.
19924
19925 2011-04-22 Jan Hubicka <jh@suse.cz>
19926
19927 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
19928
19929 2011-04-23 Jakub Jelinek <jakub@redhat.com>
19930
19931 PR c/48685
19932 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
19933 to VOID_TYPE even around MODIFY_EXPR.
19934
19935 2011-04-22 Mike Stump <mikestump@comcast.net>
19936
19937 * gensupport.c (read_md_rtx): Fix typo in comment.
19938 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
19939 comment.
19940
19941 2011-04-22 Jan Hubicka <jh@suse.cz>
19942
19943 * gengtype.c (open_base_files): Add ipa-inline.h include.
19944 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
19945 ipa-prop.c; update all uses.
19946 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
19947 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
19948 merge summary of inlined function into former caller.
19949 * ipa-inline.c (max_benefit): Remove.
19950 (edge_badness): Compensate for removal of benefits.
19951 (update_caller_keys): Use
19952 reset_node_growth_cache/reset_edge_growth_cache.
19953 (update_callee_keys): Likewise.
19954 (update_all_callee_keys): Likewise.
19955 (inline_small_functions): Do not collect max_benefit; do not reset
19956 estimated_growth; call free_growth_caches and initialize_growth_caches.
19957 * ipa-inline.h (struct condition, type clause_t, struct predicate,
19958 struct size_time_entry): New structures.
19959 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
19960 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
19961 and estimated_growth.
19962 (edge_growth_cache_entry): New structure.
19963 (node_growth_cache, edge_growth_cache): New global vars.
19964 (estimate_growth): Turn into inline.
19965 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
19966 initialize_growth_caches, free_growth_caches): Declare.
19967 (estimate_edge_growth): Rewrite.
19968 (estimate_edge_time): Implement as inline cache lookup.
19969 (reset_node_growth_cache, reset_edge_growth_cache): New inline
19970 functions.
19971 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
19972 (NUM_CONDITIONS): New constant.
19973 (predicate_conditions): New enum.
19974 (IS_NOT_CONSTANT): New constant.
19975 (edge_removal_hook_holder): New var.
19976 (node_growth_cache, edge_growth_cache): New global vars.
19977 (true_predicate, single_cond_predicate, false_predicate,
19978 not_inlined_predicate, add_condition, add_clause, and_predicates,
19979 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
19980 dump_clause, dump_predicate, account_size_time,
19981 evaulate_conditions_for_edge): New functions.
19982 (inline_summary_alloc): Move to heap.
19983 (inline_node_removal_hook): Clear condition and entry vectors.
19984 (inline_edge_removal_hook): New function.
19985 (initialize_growth_caches, free_growth_caches): New function.
19986 (dump_inline_summary): Update.
19987 (edge_execution_predicate): New function.
19988 (will_be_nonconstant_predicate): New function.
19989 (estimate_function_body_sizes): Compute BB and constantness predicates.
19990 (compute_inline_parameters): Do not clear estimated_growth.
19991 (estimate_edge_size_and_time): New function.
19992 (estimate_calls_size_and_time): New function.
19993 (estimate_callee_size_and_time): New function.
19994 (remap_predicate): New function.
19995 (inline_merge_summary): New function.
19996 (do_estimate_edge_time): New function based on...
19997 (estimate_edge_time): ... this one.
19998 (do_estimate_edge_growth): New function.
19999 (do_estimate_growth): New function based on....
20000 (estimate_growth): ... this one.
20001 (inline_analyze_function): Analyze after deciding on jump functions.
20002 (inline_read_section): New function.
20003 (inline_read_summary): Use it.
20004 (inline_write_summary): Write all the new data.
20005 * ipa-prop.c (ipa_get_param_decl_index): Export.
20006 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20007 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20008 Declare.
20009 (ipa_get_lattice): Move here from ipa-cp.c
20010 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20011 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20012 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20013 cgraph_edge_inlinable_p): Remove.
20014 * cgraphunit.c: Include ipainline.h
20015 (cgraph_process_new_functions): Update call of
20016 compute_inline_parameters.
20017
20018 2011-04-22 Richard Guenther <rguenther@suse.de>
20019
20020 * tree.c (build_int_cst): Properly create canonicalized integer
20021 constants.
20022 (build_int_cst_type): Remove scary comments.
20023
20024 2011-04-22 Xinliang David Li <davidxl@google.com>
20025
20026 * toplev.c (process_options): Enable -Werror=coverage-mismatch
20027 by default when -Wno-error is not specified.
20028 * opts-global.c (decode_options): Remove call to
20029 control_warning_options.
20030
20031 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20032
20033 PR tree-optimization/48717
20034 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20035 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20036
20037 2011-04-22 Joseph Myers <joseph@codesourcery.com>
20038
20039 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
20040 definition where used.
20041
20042 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20043
20044 PR c/48716
20045 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20046 TREE_STATIC variables declared inside of some OpenMP construct.
20047
20048 2011-04-22 Martin Jambor <mjambor@suse.cz>
20049
20050 PR middle-end/48585
20051 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20052
20053 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
20054
20055 PR c/36750
20056 * c-typeck.c (pop_init_level): Do not warn about initializing
20057 with ` = {0}'.
20058
20059 2011-04-22 Alan Modra <amodra@gmail.com>
20060
20061 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20062 when returning call_cookie.
20063 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20064 pointers, to functions with no more vector args than the current
20065 function, and some non-local calls for ABI_V4.
20066 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20067 sibcall_nonlocal_aix64): Combine to ..
20068 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
20069 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20070 (sibcall_value_nonlocal_aix<mode>): ..likewise.
20071 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20072 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
20073 operand.
20074 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20075 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20076 sibcall_value_symbolic_64): Delete.
20077
20078 2011-04-21 Xinliang David Li <davidxl@google.com>
20079
20080 * cgraph.h: Remove pid.
20081 * cgraph.c: Remove pid.
20082 * value-prof.c (init_node_map): New function.
20083 (del_node_map): New function.
20084 (find_func_by_funcdef_no): New function.
20085 (gimple_ic_transform): Call new function.
20086 * cgraphunit.c (cgraph_finalize_function): Remove pid.
20087 * function.c (get_last_funcdef_no): New function.
20088 * function.h (get_last_funcdef_no): New function.
20089 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20090 to libgcov function.
20091 (tree-profiling): Call node map init and delete function.
20092
20093 2011-04-21 Ian Lance Taylor <iant@google.com>
20094
20095 * godump.c (go_format_type): Use exported Go name for anonymous
20096 field name.
20097
20098 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20099
20100 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20101 Call builtin_function_type_list instead of builtin_function_type.
20102 (UNARY, BINARY, TRINARY, QUAD): Likewise.
20103
20104 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20105
20106 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20107 build_function_type_list instead of build_function_type.
20108 Delete variable `endlink'.
20109
20110 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20111
20112 * config/s390/s390.c (s390_init_builtins): Call
20113 build_function_type_list instead of build_function_type.
20114
20115 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20116
20117 * config/ia64/ia64.c (ia64_init_builtins): Call
20118 build_function_type_list instead of builtin_function_type.
20119
20120 2011-04-21 Easwaran Raman <eraman@google.com>
20121
20122 * cfgexpand.c (stack_var): Remove OFFSET...
20123 (add_stack_var): ...and its reference here...
20124 (expand_stack_vars): ...and here.
20125 (stack_var_cmp): Sort by descending order of size.
20126 (partition_stack_vars): Change heuristic.
20127 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20128 (dump_stack_var_partition): Add newline after each partition.
20129
20130 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
20131 Jeff Law <law@redhat.com>
20132
20133 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20134 * gengtype.c (matching_file_name_substitute): Likewise.
20135
20136 2011-04-21 Richard Guenther <rguenther@suse.de>
20137
20138 PR lto/48703
20139 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20140
20141 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
20142
20143 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20144
20145 2011-04-21 Richard Guenther <rguenther@suse.de>
20146
20147 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20148 file name.
20149
20150 2011-04-21 Richard Guenther <rguenther@suse.de>
20151
20152 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20153 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20154 Use DECL_P, not SSA_VAR_P.
20155 (ptr_derefs_may_alias_p): Likewise.
20156 (ptr_deref_may_alias_ref_p_1): Likewise.
20157 (decl_refs_may_alias_p): Likewise.
20158 (refs_may_alias_p_1): Likewise.
20159 (ref_maybe_used_by_call_p_1): Likewise.
20160 (call_may_clobber_ref_p_1): Likewise.
20161 (indirect_ref_may_alias_decl_p): Assume indirect refrences
20162 are either MEM_REF or TARGET_MEM_REF.
20163 (indirect_refs_may_alias_p): Likewise.
20164 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20165 for MEM_EXPR of indirect calls.
20166
20167 2011-04-21 Tristan Gingold <gingold@adacore.com>
20168
20169 * vmsdbgout.c (write_srccorr): Compute file length from the string.
20170 (dst_file_info_struct): Remove flen field.
20171 (lookup_filename): Remove code that set flen field.
20172
20173 2011-04-21 Tristan Gingold <gingold@adacore.com>
20174
20175 * config/ia64/ia64.c (ia64_start_function): Add a guard.
20176
20177 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
20178
20179 PR target/48708
20180 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20181 vec_extract and vec_concat for non-SSE4_1 targets.
20182
20183 2011-04-21 Richard Guenther <rguenther@suse.de>
20184
20185 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20186 return statements.
20187
20188 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20189
20190 * config/i386/cygming.h (union tree_node, TREE): Don't define or
20191 undefine.
20192 (FILE): Don't undefine.
20193
20194 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20195
20196 * config/alpha/alpha.c (struct machine_function): Use rtx, not
20197 struct rtx_def *.
20198 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20199 struct rtx_def *.
20200 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20201 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20202 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20203 rtx_def *.
20204 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
20205 definitions where used.
20206 * config/microblaze/microblaze.h (struct microblaze_args): Use
20207 rtx, not struct rtx_def *.
20208 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20209 rtx_def *.
20210 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20211 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20212 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20213 not struct rtx_def *.
20214 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20215 struct rtx_def *.
20216 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20217 rtx_def *.
20218 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20219
20220 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20221
20222 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20223 operand_equal_p to compare DR_BASE_ADDRESSes.
20224 (vect_check_interleaving): Likewise.
20225
20226 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20227
20228 PR target/46329
20229 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20230 for all Neon struct constants.
20231
20232 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20233
20234 * target.def (legitimate_constant_p): New hook.
20235 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20236 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20237 * doc/tm.texi: Regenerate.
20238 * hooks.h (hook_bool_mode_rtx_true): Declare.
20239 * hooks.c (hook_bool_mode_rtx_true): Define.
20240 * system.h (LEGITIMATE_CONSTANT_P): Poison.
20241 * calls.c (precompute_register_parameters): Replace uses of
20242 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20243 (emit_library_call_value_1): Likewise.
20244 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20245 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20246 * ira-costs.c (scan_one_insn): Likewise.
20247 * recog.c (general_operand, immediate_operand): Likewise.
20248 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20249 * reload1.c (init_eliminable_invariants): Likewise.
20250
20251 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20252 mode argument.
20253 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20254 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20255 argument.
20256 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20257 * config/alpha/predicates.md (input_operand): Update call to
20258 alpha_legitimate_constant_p.
20259
20260 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20261 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20262 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20263 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20264 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20265 (arm_legitimate_constant_p): New functions.
20266 (arm_cannot_force_const_mem): Make static.
20267
20268 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20269
20270 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20271 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20272 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20273 instead of bfin_legitimate_constant_p.
20274 (bfin_legitimate_constant_p): Make static. Add a mode argument.
20275 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20276
20277 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20278
20279 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20280
20281 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20282 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20283 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20284 (frv_legitimate_constant_p): Make static. Add a mode argument.
20285
20286 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20287 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20288 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20289
20290 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20291 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20292 * config/i386/i386.c (legitimate_constant_p): Rename to...
20293 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
20294 argument.
20295 (ix86_cannot_force_const_mem): Update accordingly.
20296 (ix86_legitimate_address_p): Likewise.
20297 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20298 * config/i386/i386.md: Update commentary.
20299
20300 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20301 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20302 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20303 (ia64_legitimate_constant_p): Make static. Add a mode argument.
20304
20305 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20306
20307 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20308 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20309 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20310 (lm32_legitimate_constant_p): Make static. Add a mode argument.
20311
20312 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20313 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20314 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20315
20316 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20317 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20318 (m32r_legitimate_constant_p): New function.
20319
20320 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20321 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20322 LEGITIMATE_CONSTANT_P.
20323 (LEGITIMATE_CONSTANT_P): Delete.
20324 * config/m68k/m68k.c (m68k_expand_prologue): Call
20325 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20326 (m68k_legitimate_constant_p): New function.
20327 * config/m68k/m68k.md: Update comments.
20328
20329 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20330 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20331 (mcore_legitimate_constant_p): New function.
20332
20333 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20334 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20335 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20336 Add a mode argument.
20337 (mep_legitimate_address): Update accordingly.
20338 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20339
20340 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20341 Delete.
20342 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20343 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20344 static. Check OP's mode for VOIDmode.
20345 (microblaze_legitimate_constant_p): New function.
20346 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20347
20348 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20349 * config/mips/mips.c (mips_legitimate_constant_p): New function.
20350 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20351 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20352 * config/mips/predicates.md: Update comments.
20353
20354 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20355 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20356 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20357 (mmix_legitimate_constant_p): Make static, return a bool, and take
20358 a mode argument.
20359 (mmix_print_operand_address): Update accordingly.
20360
20361 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20362 Delete.
20363 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20364 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20365 static. Add a mode argument.
20366 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20367
20368 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20369
20370 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20371 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20372 (pa_legitimate_constant_p): New function.
20373
20374 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
20375
20376 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
20377 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20378 (pdp11_legitimate_constant_p): New function.
20379
20380 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20381 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20382 (rs6000_legitimate_constant_p): New function.
20383
20384 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20385 (rx_legitimate_constant_p): ...this.
20386 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20387 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20388 (rx_legitimate_constant_p): ...this.
20389 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20390 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20391
20392 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20393 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20394 * config/s390/s390.c (legitimate_constant_p): Rename to...
20395 (s390_legitimate_constant_p): ...this. Make static, return a bool,
20396 and add a mode argument.
20397 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20398
20399 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20400
20401 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20402 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20403 (sh_legitimate_constant_p): New function.
20404
20405 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20406 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20407 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20408 (legitimate_constant_p): Rename to...
20409 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
20410 argument.
20411 (constant_address_p): Update accordingly.
20412
20413 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20414 argument and return a bool.
20415 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20416 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20417 (spu_legitimate_constant_p): Add a mode argument and return a bool.
20418 (spu_rtx_costs): Update accordingly.
20419 * config/spu/predicates.md (vec_imm_operand): Likewise.
20420
20421 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20422
20423 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20424 * config/v850/v850.c (v850_legitimate_constant_p): New function.
20425 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20426
20427 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20428 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20429 * config/vax/vax.c (legitimate_constant_p): Likewise.
20430
20431 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20432 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20433 (xtensa_legitimate_constant_p): New function.
20434
20435 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20436
20437 * target.def (cannot_force_const_mem): Add a mode argument.
20438 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20439 * doc/tm.texi: Regenerate.
20440 * hooks.h (hook_bool_mode_rtx_false): Declare.
20441 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20442 (hook_bool_mode_const_rtx_true): Likewise.
20443 (hook_bool_mode_rtx_false): New function.
20444 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20445 to be non-VOID. Update call to cannot_force_const_mem.
20446 (find_reloads): Update accordingly.
20447 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20448 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20449 argument.
20450 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20451 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20452 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20453 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20454 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20455 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20456 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20457 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20458 (m68k_cannot_force_const_mem): ...this new function.
20459 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20460 argument.
20461 (mips_const_insns, mips_legitimize_const_move): Update calls.
20462 (mips_secondary_reload_class): Likewise.
20463 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20464 (pa_cannot_force_const_mem): ...this new function.
20465 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20466 (rs6000_cannot_force_const_mem): ...this new function.
20467 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20468 argument.
20469 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20470 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20471 to...
20472 (xtensa_cannot_force_const_mem): ...this new function.
20473
20474 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
20475
20476 * config/mips/mips.c (mips16_build_function_stub): Call
20477 build_function_type_list instead of build_function_type.
20478 (mips16_build_call_stub): Likewise.
20479
20480 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
20481
20482 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20483 instead of build_function_type.
20484
20485 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
20486
20487 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20488 instead of build_function_type.
20489
20490 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
20491
20492 PR target/48678
20493 * config/i386/i386.md (insv): Change operand 0 constraint to
20494 "register_operand". Change operand 1 and 2 constraint to
20495 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
20496 * config/i386/sse.md (sse4_1_pinsrb): Export.
20497 (sse2_pinsrw): Ditto.
20498 (sse4_1_pinsrd): Ditto.
20499 (sse4_1_pinsrq): Ditto.
20500 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20501 * config/i386/i386.c (ix86_expand_pinsr): New.
20502
20503 2011-04-20 Easwaran Raman <eraman@google.com>
20504
20505 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20506 containing union type only with -fstrict-aliasing.
20507
20508 2011-04-20 Jim Meyering <meyering@redhat.com>
20509
20510 Remove useless if-before-free tests.
20511 * calls.c (expand_call, save_area): Likewise.
20512 * cfgcleanup.c (try_forward_edges): Likewise.
20513 * collect2.c (collect_execute): Likewise.
20514 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20515 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20516 * coverage.c (coverage_checksum_string): Likewise.
20517 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20518 * cselib.c (cselib_init): Likewise.
20519 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20520 (df_set_clean_cfg): Likewise.
20521 * function.c (free_after_compilation): Likewise.
20522 * gcc.c (do_spec_1, main): Likewise.
20523 * gcov.c (create_file_names): Likewise.
20524 * gensupport.c (identify_predicable_attribute): Likewise.
20525 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20526 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20527 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20528 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20529 * ipa-pure-const.c (local_pure_const): Likewise.
20530 * ipa-reference.c (propagate): Likewise.
20531 * ira-costs.c (free_ira_costs): Likewise.
20532 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20533 * matrix-reorg.c (mat_free): Likewise.
20534 * prefix.c (get_key_value): Likewise.
20535 * profile.c (compute_value_histograms): Likewise.
20536 * reload1.c (free_reg_equiv): Likewise.
20537 * sched-deps.c (free_deps): Likewise.
20538 * sel-sched-ir.c (fence_clear): Likewise.
20539 * sese.c (set_rename, if_region_set_false_region): Likewise.
20540 * tree-data-ref.c (free_rdg): Likewise.
20541 * tree-eh.c (lower_try_finally): Likewise.
20542 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20543 * tree-ssa-live.c (delete_var_map): Likewise.
20544 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20545 * tree-ssa-pre.c (phi_trans_add): Likewise.
20546
20547 2011-04-20 Jakub Jelinek <jakub@redhat.com>
20548
20549 PR tree-optimization/48611
20550 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20551 beyond ERT_MUST_NOT_THROW region.
20552
20553 2011-04-20 Catherine Moore <clm@codesourcery.com>
20554
20555 * config/mips/mips.opt (mfix-24k): New.
20556 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20557 * config/mips/mips.md (length): Increase by 4 for stores if
20558 fixing 24K errata.
20559 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
20560 all noreorder if fixing 24K errata.
20561 * doc/invoke.texi: Document mfix-24k.
20562
20563 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
20564
20565 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
20566 quad-word modes, reduce to 9-bit index range when above 1016 limit.
20567
20568 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
20569
20570 * config/arm/arm.c (arm_gen_constant): Move movw support ....
20571 (const_ok_for_op): ... to here.
20572
20573 2011-04-20 Kai Tietz <ktietz@redhat.com>
20574
20575 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
20576 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
20577
20578 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
20579
20580 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
20581
20582 2011-04-20 Richard Guenther <rguenther@suse.de>
20583
20584 PR tree-optimization/47892
20585 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
20586 are if-convertible.
20587
20588 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
20589
20590 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
20591
20592 2011-04-20 Tristan Gingold <gingold@adacore.com>
20593
20594 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
20595
20596 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
20597
20598 PR target/18145
20599
20600 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
20601 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
20602 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
20603 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
20604 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
20605
20606 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
20607 New prototype.
20608
20609 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
20610 (avr_asm_named_section, avr_asm_output_aligned_common,
20611 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
20612 New functions to update...
20613 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
20614 (avr_asm_init_sections): Overwrite section callbacks for
20615 data_section, bss_section.
20616 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
20617 from here to...
20618 (avr_file_end): ...here.
20619
20620 2011-04-20 Richard Guenther <rguenther@suse.de>
20621
20622 PR middle-end/48695
20623 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
20624 objects and types here. Adjust for their offset before comparing.
20625
20626 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
20627
20628 * tree-vect-stmts.c (vectorizable_store): Only chain one related
20629 statement per copy.
20630
20631 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
20632
20633 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
20634 (GIMPLE_H): Include $(INTERNAL_FN_H).
20635 (OBJS-common): Add internal-fn.o.
20636 (internal-fn.o): New rule.
20637 * internal-fn.def: New file.
20638 * internal-fn.h: Likewise.
20639 * internal-fn.c: Likewise.
20640 * gimple.h: Include internal-fn.h.
20641 (GF_CALL_INTERNAL): New gf_mask.
20642 (gimple_statement_call): Put fntype into a union with a new
20643 internal_fn field.
20644 (gimple_build_call_internal): Declare.
20645 (gimple_build_call_internal_vec): Likewise.
20646 (gimple_call_same_target_p): Likewise.
20647 (gimple_call_internal_p): New function.
20648 (gimple_call_internal_fn): Likewise.
20649 (gimple_call_fntype): Return null for internal calls.
20650 (gimple_call_set_fntype): Assert that the function is not internal.
20651 (gimple_call_set_fn): Likewise.
20652 (gimple_call_set_fndecl): Likewise.
20653 (gimple_call_set_internal_fn): New function.
20654 (gimple_call_addr_fndecl): Handle null functions.
20655 (gimple_call_return_type): Likewise null types.
20656 * gimple.c (gimple_build_call_internal_1): New function.
20657 (gimple_build_call_internal): Likewise.
20658 (gimple_build_call_internal_vec): Likewise.
20659 (gimple_call_same_target_p): Likewise.
20660 (gimple_call_flags): Handle calls to internal functions.
20661 (gimple_call_fnspec): New function.
20662 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
20663 (gimple_has_side_effects): Handle null functions.
20664 (gimple_rhs_has_side_effects): Likewise.
20665 (gimple_call_copy_skip_args): Handle calls to internal functions.
20666 * cfgexpand.c (expand_call_stmt): Likewise.
20667 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
20668 * gimple-fold.c (gimple_fold_call): Handle null functions.
20669 (gimple_fold_stmt_to_constant_1): Don't fold
20670 calls to internal functions.
20671 * gimple-low.c (gimple_check_call_args): Handle calls to internal
20672 functions.
20673 * gimple-pretty-print.c (dump_gimple_call): Likewise.
20674 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
20675 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
20676 (do_warn_unused_result): Likewise.
20677 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
20678 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
20679 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
20680 the target of a call.
20681 (initialize_hash_element): Update accordingly.
20682 (hashable_expr_equal_p): Use gimple_call_same_target_p.
20683 (iterative_hash_hashable_expr): Handle calls to internal functions.
20684 (print_expr_hash_elt): Likewise.
20685 * tree-ssa-pre.c (can_value_number_call): Likewise.
20686 (eliminate): Handle null functions.
20687 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
20688 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
20689 (find_func_aliases): Likewise.
20690 * value-prof.c (gimple_ic_transform): Likewise.
20691 (gimple_indirect_call_to_profile): Likewise.
20692 * lto-streamer-in.c (input_gimple_stmt): Likewise.
20693 * lto-streamer-out.c (output_gimple_stmt): Likewise.
20694
20695 2011-04-19 Jan Hubicka <jh@suse.cz>
20696
20697 * ipa-inline-transform.c (save_inline_function_body): Add comments.
20698 * ipa-inline.c (inline_small_functions): Compute summaries first,
20699 populate heap later.
20700
20701 2011-04-19 Jan Hubicka <jh@suse.cz>
20702
20703 * cgraph.h (save_inline_function_body): Remove.
20704 * ipa-inline-transform.c: New file, broke out of...
20705 * ipa-inline.c: ... this one; Update toplevel comment.
20706 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
20707 make global.
20708 (update_noncloned_frequencies): Move to ipa-inline-transform.c
20709 (cgraph_mark_inline_edge): Rename to inline_call; move to
20710 ipa-inline-transform.c.
20711 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
20712 move to ipa-inline-transform.c
20713 (recursive_inlining, inline_small_functions, flatten_function,
20714 ipa_inline, inline_always_inline_functions,
20715 early_inline_small_functions): Update.
20716 (inline_transform): Move to ipa-inline-transform.c.
20717 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
20718 Declare.
20719 * Makefile.in (ipa-inline-transform.o): New file.
20720 * cgraphunit.c (save_inline_function_body): Move to
20721 ipa-inline-transform.c
20722
20723 2011-04-19 DJ Delorie <dj@redhat.com>
20724
20725 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
20726 registers if we already know there aren't any.
20727 (m32c_emit_epilogue): Don't emit a barrier here.
20728 (m32c_emit_eh_epilogue): Likewise.
20729 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
20730 operands at expand time.
20731 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
20732 int" wchar type.
20733 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
20734 duplicates. Provide aliases instead.
20735 * config/m32c/prologue.md (eh_return): Emit a barrier here.
20736 (eh_epilogue): Add a "(return)" here as a hint to other parts of
20737 the compiler.
20738
20739 2011-04-19 Anatoly Sokolov <aesok@post.ru>
20740
20741 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
20742 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
20743 (general_or_i64_p, sparc_register_move_cost): New function.
20744
20745 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20746
20747 * doc/install.texi (Configuration, --enable-threads): Remove mach.
20748 Add lynx, mipssde. Sort table.
20749
20750 2011-04-19 Xinliang David Li <davidxl@google.com>
20751
20752 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
20753 not negative.
20754
20755 2011-04-19 Jakub Jelinek <jakub@redhat.com>
20756
20757 PR target/48678
20758 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
20759 is a SUBREG with non-MODE_INT mode inside of it.
20760
20761 2011-04-19 Martin Jambor <mjambor@suse.cz>
20762
20763 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
20764 also according to actual contants.
20765 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
20766 (gimple_fold_call): Use it.
20767 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
20768
20769 2011-04-19 Martin Jambor <mjambor@suse.cz>
20770
20771 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
20772 non-pointer assignments.
20773
20774 2011-04-19 Martin Jambor <mjambor@suse.cz>
20775
20776 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
20777 account anc_offset and otr_type from the indirect edge info.
20778 * ipa-prop.c (get_ancestor_addr_info): New function.
20779 (compute_complex_ancestor_jump_func): Assignment analysis moved to
20780 get_ancestor_addr_info, call it.
20781 (ipa_note_param_call): Do not initialize information about polymorphic
20782 calls, return the indirect call graph edge. Remove the last
20783 parameter, adjust all callers.
20784 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
20785 parameters. Initialize polymorphic information in the indirect edge.
20786
20787 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
20788
20789 PR lto/48148
20790 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
20791 the types if they have different enumeration identifiers.
20792
20793 2011-04-19 Jan Hubicka <jh@suse.cz>
20794
20795 * cgraph.h (cgraph_optimize_for_size_p): Declare.
20796 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
20797 * predict.c (cgraph_optimize_for_size_p): Break out from ...
20798 (optimize_function_for_size_p) ... here.
20799
20800 2011-04-19 Richard Guenther <rguenther@suse.de>
20801
20802 PR lto/48207
20803 * tree.c (free_lang_data): Do not reset the decl-assembler-name
20804 langhook.
20805
20806 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
20807
20808 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
20809 if DECL_NO_INLINE_WARNING_P is set on the function.
20810
20811 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
20812
20813 PR fortran/47976
20814 * reload1.c (inc_for_reload): Return void. All callers changed.
20815 (emit_input_reload_insns): Don't try to delete previous output
20816 reloads to a register, or record spill_reg_store for autoincs.
20817
20818 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
20819
20820 * gengtype.h: Updated copyright year.
20821 (struct input_file_st): Add inpisplugin field.
20822 (type_fileloc): New function.
20823 * gengtype.c
20824 (write_typed_struct_alloc_def): Add gcc_assert.
20825 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
20826 (write_typed_alloc_defns): Don't output for plugin files.
20827 (input_file_by_name): Clear inpisplugin field.
20828 (main): Set inpisplugin field for plugin files.
20829
20830 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
20831
20832 * gengtype-state.c (string_eq): New.
20833 (read_state): Use string_eq instead of strcmp when creating the
20834 state_ident_tab.
20835
20836 2011-04-19 Wei Guozhi <carrot@google.com>
20837
20838 PR target/47855
20839 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
20840 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
20841 linkage.
20842 * config/arm/constraints.md (Uu): New constraint.
20843 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
20844
20845 2011-04-19 Tristan Gingold <gingold@adacore.com>
20846
20847 * config.gcc (-*-*-*vms): Added.
20848 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
20849 definitions moved.
20850 * config/vms/vms-ld.c: New file.
20851 * config/vms/vms-ar.c: New file.
20852 * config/vms/t-vmsnative: New file.
20853
20854 2011-04-18 Xinliang David Li <davidxl@google.com>
20855
20856 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
20857
20858 2011-04-18 Jakub Jelinek <jakub@redhat.com>
20859
20860 PR middle-end/48661
20861 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
20862 if TREE_TYPE (v) is non-NULL.
20863
20864 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
20865 gimple_get_virt_mehtod_for_binfo.
20866 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
20867 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
20868 callers.
20869 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20870
20871 2011-04-18 Michael Matz <matz@suse.de>
20872 Steve Ellcey <sje@cup.hp.com>
20873
20874 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
20875 use its mode as source mode if it isn't VOIDmode.
20876
20877 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
20878
20879 * doc/passes.texi: Fill crossref nodes.
20880
20881 2011-04-18 Jim Meyering <meyering@redhat.com>
20882
20883 Fix doubled-word typos in comments and strings
20884 * config/alpha/vms-unwind.h: s/for for/for/
20885 * config/arm/unwind-arm.h: Likewise.
20886 * config/microblaze/microblaze.c: Likewise.
20887 * config/sh/constraints.md: s/in in/in/
20888 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
20889
20890 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
20891
20892 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
20893 (AVX_FLOAT_MODE_P): Ditto.
20894 (AVX128_VEC_FLOAT_MODE_P): Ditto.
20895 (AVX256_VEC_FLOAT_MODE_P): Ditto.
20896 (AVX_VEC_FLOAT_MODE_P): Ditto.
20897 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
20898 (UNSPEC_MASKSTORE): Ditto.
20899 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
20900 Merge from <sse>_movmsk<ssemodesuffix> and
20901 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
20902 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
20903 iterator.
20904 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
20905 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
20906 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
20907
20908 2011-04-18 Jan Hubicka <jh@suse.cz>
20909
20910 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
20911
20912 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
20913 (want_inline_function_called_once_p): Break out the logic from
20914 ipa_inline.
20915 (edge_badness): Ensure that profile is not misupdated.
20916 (lookup_recursive_calls): Prioritize by call frequencies.
20917 (inline_small_functions): Move program size estimates here;
20918 actually process whole queue even when unit growth has been
20919 met. (to properly compute inline_failed reasons and for the
20920 case unit size decrease.) Revisit comments on recursive inlining.
20921 (ipa_inline): Remove unit summary code; first inline hot calls
20922 of functions called once, cold calls next.
20923 (order, nnodes): Remove unused variables.
20924 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
20925 (GTFILES): Remove ipa-inline.c
20926 * sel-sched.c (fill_insns): Silence uninitialized var warning.
20927
20928 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
20929
20930 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
20931
20932 2011-04-18 Jie Zhang <jie@codesourcery.com>
20933 Richard Earnshaw <rearnsha@arm.com>
20934
20935 * arm.c (neon_builtin_type_bits): Remove.
20936 (typedef enum neon_builtin_mode): New.
20937 (T_MAX): Don't define.
20938 (typedef enum neon_builtin_datum): Remove bits, codes[],
20939 num_vars and base_fcode. Add mode, code and fcode.
20940 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
20941 VAR10): Change accordingly.
20942 (neon_builtin_data[]): Change accordingly
20943 (arm_init_neon_builtins): Change accordingly.
20944 (neon_builtin_compare): Remove.
20945 (locate_neon_builtin_icode): Remove.
20946 (arm_expand_neon_builtin): Change accordingly.
20947
20948 * arm.h (enum arm_builtins): Move to ...
20949 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
20950
20951 * arm.c (arm_builtin_decl): Declare.
20952 (TARGET_BUILTIN_DECL): Define.
20953 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
20954 (arm_builtin_decls[]): New.
20955 (arm_init_neon_builtins): Store builtin declarations in
20956 arm_builtin_decls[].
20957 (arm_init_tls_builtins): Likewise.
20958 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
20959 (arm_builtin_decl): New.
20960
20961 2011-04-18 Richard Guenther <rguenther@suse.de>
20962
20963 * tree.c (upper_bound_in_type): Build properly canonicalized
20964 INTEGER_CSTs.
20965 (lower_bound_in_type): Likewise.
20966
20967 2011-04-18 Richard Guenther <rguenther@suse.de>
20968
20969 * gimple.h (gimple_call_addr_fndecl): New function.
20970 (gimple_call_fndecl): Use it.
20971 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
20972 for direct calls.
20973 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
20974 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
20975
20976 2011-04-18 Richard Guenther <rguenther@suse.de>
20977
20978 PR middle-end/48650
20979 * tree.c (build_string): STRING_CST is now derived from tree_typed.
20980
20981 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
20982
20983 PR lto/48492
20984 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
20985 DECL_IN_CONSTANT_POOL without RTL.
20986
20987 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
20988 Ira Rosen <ira.rosen@linaro.org>
20989
20990 PR target/48252
20991 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
20992 to match neon_vzip/vuzp/vtrn_internal.
20993 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
20994 outputs explicitly dependent on both inputs.
20995 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
20996
20997 2011-04-18 Jakub Jelinek <jakub@redhat.com>
20998
20999 PR tree-optimization/48616
21000 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21001 whether the shift is by scalar or vector based on whether all SLP
21002 scalar stmts have the same rhs.
21003
21004 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
21005
21006 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21007 memory operands.
21008
21009 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
21010
21011 PR target/43700
21012 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21013 registers.
21014
21015 2011-04-17 Jan Hubicka <jh@suse.cz>
21016
21017 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21018 * cgrpahunit.c (cgraph_finalize_function): Do not set
21019 finalized_by_frontend.
21020 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21021 finalized_by_frontend.
21022
21023 2011-04-17 Jan Hubicka <jh@suse.cz>
21024
21025 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21026 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21027 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21028 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21029 method.
21030 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21031 gimple-fold.c
21032 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21033
21034 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
21035
21036 PR lto/48538
21037 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21038 is non-null before accessing it.
21039 (input_cgraph): Remove trailing spaces.
21040
21041 2011-04-17 Revital Eres <revital.eres@linaro.org>
21042
21043 * params.def (sms-min-sc): New param flag.
21044 * modulo-sched.c (sms_schedule): Use it.
21045 * doc/invoke.texi (sms-min-sc): Document it.
21046
21047 2011-04-17 Jan Hubicka <jh@suse.cz>
21048
21049 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21050 present, also set gimple_call_set_cannot_inline.
21051 * ipa-inline.c: Update toplevel comment.
21052 (MAX_TIME): Remove.
21053 (cgraph_clone_inlined_nodes): Fix linebreaks.
21054 (cgraph_check_inline_limits): Restructure to ...
21055 (caller_growth_limits): ... this one; be more tolerant
21056 on growth in nested inline chains; add explanatory comment;
21057 fix stack accounting thinko introduced by previous patch.
21058 (cgraph_default_inline_p): Remove.
21059 (report_inline_failed_reason): New function.
21060 (can_inline_edge_p): New function.
21061 (can_early_inline_edge_p): New function.
21062 (leaf_node_p): Move upwards in file.
21063 (want_early_inline_function_p): New function.
21064 (want_inline_small_function_p): New function.
21065 (want_inline_self_recursive_call_p): New function.
21066 (cgraph_edge_badness): Rename to ...
21067 (edge_badness) ... this one; fix linebreaks.
21068 (update_edge_key): Update call of edge_baddness; add
21069 detailed dump about queue updates.
21070 (update_caller_keys): Use can_inline_edge_p and
21071 want_inline_small_function_p.
21072 (cgraph_decide_recursive_inlining): Rename to...
21073 (recursive_inlining): Use can_inline_edge_p and
21074 want_inline_self_recursive_call_p; simplify and remove no longer
21075 valid FIXME.
21076 (cgraph_set_inline_failed): Remove.
21077 (add_new_edges_to_heap): Use can_inline_edge_p and
21078 want_inline_small_function_p.
21079 (cgraph_decide_inlining_of_small_functions): Rename to ...
21080 (inline_small_functions): ... this one; cleanup; use
21081 can/want predicates; cleanup debug ouput; work edges till fibheap
21082 is exhausted and do not stop once unit growth is reached; remove
21083 later loop processing remaining edges.
21084 (cgraph_flatten): Rename to ...
21085 (flatten_function): ... this one; use can_inline_edge_p
21086 and can_early_inline_edge_p predicates.
21087 (cgraph_decide_inlining): Rename to ...
21088 (ipa_inline): ... this one; remove unreachable nodes before
21089 inlining functions called once; simplify the pass.
21090 (cgraph_perform_always_inlining): Rename to ...
21091 (inline_always_inline_functions): ... this one; use
21092 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21093 (cgraph_decide_inlining_incrementally): Rename to ...
21094 (early_inline_small_functions): ... this one; simplify
21095 using new predicates; cleanup; make dumps prettier.
21096 (cgraph_early_inlining): Rename to ...
21097 (early_inliner): newer inline regular functions into always-inlines;
21098 fix updating of call stmt summaries.
21099 (pass_early_inline): Update for new names.
21100 (inline_transform): Fix formating.
21101 (gate_cgraph_decide_inlining): Rename to ...
21102 (pass_ipa_inline): ... this one.
21103 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21104 * ipa-inline-analysis.c (dump_inline_summary): Update.
21105 (compute_inline_parameters): Do not compute disregard_inline_limits;
21106 look for mismatching arguments.
21107 (estimate_growth): Fix handlig of non-trivial self recursion.
21108 (inline_read_summary): Do not read info->disregard_inline_limits.
21109 (inline_write_summary): Do not write info->disregard_inline_limits.
21110 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21111 and move all checks into can_inline_edge_p predicate; re-enable code
21112 comparing optimization levels.
21113 (expand_call_inline): Do not test inline_forbidden_into_p.
21114 * Makefile.in (ipa-inline.o): Update arguments.
21115
21116 2011-04-17 Revital Eres <revital.eres@linaro.org>
21117
21118 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21119
21120 2011-04-17 Revital Eres <revital.eres@linaro.org>
21121
21122 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21123
21124 2011-04-17 Michael Matz <matz@suse.de>
21125
21126 PR tree-optimization/48622
21127 PR lto/48645
21128 * ipa-inline-analysis.c (inline_read_summary): Read size/time
21129 in same order as they're written.
21130
21131 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21132
21133 * config/pa/predicates.md: Reorganize and simplify predicates.
21134 Eliminate duplicate code checks.
21135 (arith_operand): Rename to arith14_operand
21136 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21137 * config/pa/pa.md: Use renamed operands.
21138 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21139 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21140 arith11_operand, adddi3_operand, indexed_memory_operand,
21141 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21142 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21143 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21144 move_dest_operand, move_src_operand, prefetch_cc_operand,
21145 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21146 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21147 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21148 div_operand, int5_operand, movb_comparison_operator,
21149 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21150 arith_double_operand, ireg_operand, lhs_lshift_operand,
21151 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21152 integer_store_memory_operand): Likewise.
21153 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21154 (integer_store_memory_operand, read_only_operand,
21155 function_label_operand, borx_reg_operand,
21156 non_hard_reg_operand): Likewise.
21157 (eq_neq_comparison_operator): Delete unused operator.
21158 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21159 function_label_operand.
21160 (emit_move_sequence): Likewise.
21161
21162 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21163
21164 * config/i386/sse.md (sseunpackmode): New mode attribute.
21165 (ssepackmode): Ditto.
21166 (vec_pack_trunc_<mode>): Macroize expander from
21167 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21168 (vec_unpacks_lo_<mode>): Macroize expander from
21169 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21170 (vec_unpacks_hi_<mode>): Macroize expander from
21171 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21172 (vec_unpacku_lo_<mode>): Macroize expander from
21173 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21174 (vec_unpacku_hi_<mode>): Macroize expander from
21175 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21176 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21177 ix86_expand_sse4_unpack.
21178 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21179
21180 2011-04-16 Jan Hubicka <jh@suse.cz>
21181
21182 * cgraphbuild.c: Include ipa-inline.h.
21183 (reset_inline_failed): Use initialize_inline_failed.
21184 * cgraph.c: Include ipa-inline.h.
21185 (cgraph_create_node_1): Do not initialize estimated_growth.
21186 (initialize_inline_failed): More to ipa-inline-analysis.c
21187 (dump_cgraph_node): Do not dump inline flags.
21188 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21189 and disregard_inline_limits flags.
21190 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21191 time, size, estimated_growth.
21192 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21193 Update.
21194 * cgraphunit.c (cgraph_decide_is_function_needed): Use
21195 DECL_DISREGARD_INLINE_LIMITS.
21196 (cgraph_analyze_function): Do not initialize
21197 node->local.disregard_inline_limits.
21198 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21199 inlinable, versionable and disregard_inline_limits.
21200 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21201 cgraph_check_inline_limits, cgraph_default_inline_p,
21202 cgraph_edge_badness, update_caller_keys, update_callee_keys,
21203 add_new_edges_to_heap): Update.
21204 (cgraph_decide_inlining_of_small_function): Update; set
21205 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21206 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21207 cgraph_decide_inlining_incrementally): Update.
21208 * ipa-inline.h (inline_summary): Add inlinable, versionable,
21209 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21210 time, size and estimated_growth parameters.
21211 (estimate_edge_growth): Update.
21212 (initialize_inline_failed): Declare.
21213 * ipa-split.c: Include ipa-inline.h
21214 (execute_split_functions): Update.
21215 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21216 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21217 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21218 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21219 estimated_growth to INT_MIN.
21220 (inline_node_duplication_hook): Likewise.
21221 (dump_inline_summary): Dump new fields.
21222 (compute_inline_parameters): Update.
21223 (estimate_edge_time, estimate_time_after_inlining,
21224 estimate_size_after_inlining, estimate_growth, inline_read_summary,
21225 inline_write_summary):
21226 (initialize_inline_failed): Move here from cgraph.c.
21227 * tree-sra.c: Include ipa-inline.h.
21228 (ipa_sra_preliminary_function_checks): Update.
21229 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21230 ipa-inline.h.
21231
21232 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21233
21234 * config/i386/sse.md (V16): New mode iterator.
21235 (VI1, VI8): Ditto.
21236 (AVXMODEQI, AVXMODEDI): Remove.
21237 (sse2, sse3): New mode attribute.
21238 (mov<mode>): Use V16 mode iterator.
21239 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21240 (push<mode>1): Use V16 mode iterator.
21241 (movmisalign<mode>): Ditto.
21242 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21243 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21244 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21245 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21246 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21247 avx_movdqu<avxmodesuffix>.
21248 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21249 *avx_movdqu<avxmodesuffix>.
21250 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21251 avx_lddqu<avxmodesuffix>.
21252 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21253 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21254 avx_movnt<AVXMODEDI:mode>.
21255 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21256 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21257
21258 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
21259
21260 PR target/48629
21261 * haifa-sched.c (prune_ready_list, schedule_block): Use
21262 sched_pressure_p rather than flag_sched_pressure.
21263
21264 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
21265
21266 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21267 cgraph_get_node instead of cgraph_get_create_node.
21268
21269 2011-04-15 Jakub Jelinek <jakub@redhat.com>
21270
21271 * cfgexpand.c (expand_debug_expr): Use
21272 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21273
21274 2011-04-15 Michael Matz <matz@suse.de>
21275
21276 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21277 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21278 * function.c (gimplify_parameters): Ditto.
21279 * gimplify.c (gimplify_vla_decl): Ditto.
21280
21281 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21282 (gimple_call_set_alloca_for_var): New inline function.
21283 (gimple_call_alloca_for_var_p): Ditto.
21284 * gimple.c (gimple_build_call_from_tree): Remember
21285 CALL_ALLOCA_FOR_VAR_P state.
21286 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21287
21288 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21289 calls if they were for VLA objects.
21290
21291 2011-04-15 Martin Jambor <mjambor@suse.cz>
21292
21293 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21294 of ADR_EXPRs.
21295
21296 2011-04-15 Martin Jambor <mjambor@suse.cz>
21297
21298 PR middle-end/48601
21299 * tree-emutls.c (lower_emutls_function_body): Call
21300 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
21301 result is non-NULL.
21302
21303 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
21304
21305 * c-decl.c (detect_field_duplicates): Call
21306 objc_detect_field_duplicates instead of objc_get_interface_ivars.
21307
21308 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
21309
21310 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21311 * gimple.c (gimple_asm_clobbers_memory_p): Define.
21312 * ipa-pure-const.c (check_stmt): Call it.
21313 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21314
21315 2011-04-15 Richard Guenther <rguenther@suse.de>
21316
21317 PR tree-optimization/48290
21318 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21319 Properly decide inhibiting propagation based on the valueized
21320 operand. Do loop-closed SSA form preserving here ...
21321 (init_copy_prop): ... not here.
21322
21323 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
21324
21325 PR target/48612
21326 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21327 (*ieee_smax<mode>3): Likewise.
21328
21329 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21330
21331 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21332 Replace match_operand with match_dup for the third operand in
21333 these expanders.
21334
21335 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
21336
21337 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21338 to track processing of conditionals. Update all callers.
21339 (try_combine, simplify_if_then_else): Update.
21340
21341 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
21342
21343 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21344 -fsched-pressure.
21345
21346 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
21347
21348 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21349 instead of match_operand for operand 3.
21350
21351 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
21352
21353 * recog.h (insn_operand_data): Add an "allows_mem" field.
21354 * genoutput.c (output_operand_data): Initialize it.
21355 * optabs.c (maybe_legitimize_operand_same_code): New function.
21356 (maybe_legitimize_operand): Use it when matching the original
21357 op->value.
21358
21359 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
21360
21361 * gimplify.c: Fix issues in comments throughout.
21362 (voidify_wrapper_expr): Fix long line.
21363 (build_stack_save_restore): Likewise.
21364 (gimplify_loop_expr): Likewise.
21365 (gimplify_compound_lval): Likewise.
21366 (gimplify_init_ctor_eval): Likewise.
21367 (gimplify_modify_expr_rhs): Likewise.
21368 (omp_notice_threadprivate_variable): Likewise.
21369
21370 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
21371
21372 * cfgexpand.c (expand_call_stmt): Convert the function type to the
21373 original one if this is not a builtin function.
21374
21375 2011-04-14 Jakub Jelinek <jakub@redhat.com>
21376
21377 PR target/48605
21378 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21379 offset it as needed based on top 2 bits in operands[3], change
21380 MEM mode to SFmode and mask those 2 bits away from operands[3].
21381
21382 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
21383
21384 * c-parser.c (c_parser_objc_protocol_definition): Updated for
21385 change from objc_declare_protocols() to objc_declare_protocol().
21386
21387 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
21388
21389 * config/i386/sse.md (sse4_1): New mode attribute.
21390 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21391 avx_blend<ssemodesuffix><avxmodesuffix> and
21392 sse4_1_blend<ssemodesuffix> using VF mode iterator.
21393 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21394 avx_blendv<ssemodesuffix><avxmodesuffix> and
21395 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21396 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21397 avx_dp<ssemodesuffix><avxmodesuffix> and
21398 sse4_1_dp<ssemodesuffix> using VF mode iterator.
21399 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21400 (sse4_1_packusdw): Merge with *avx_packusdw.
21401 (sse4_1_pblendvb): Merge with *avx_pblendvb.
21402 (sse4_1_pblendw): Merge with *avx_pblendw.
21403 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21404 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21405 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21406 VF mode iterator.
21407 (sse4_1_round<ssescalarmodesuffix>): Merge with
21408 *avx_round<ssescalarmodesuffix>.
21409 (aesenc): Merge with *avx_aesenc.
21410 (aesenclast): Merge with *avx_aesenclast.
21411 (aesdec): Merge with *avx_aesdec.
21412 (aesdeclast): Merge with *avx_aesdeclast.
21413 (pclmulqdq): Merge with *pclmulqdq.
21414 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21415 New predicate.
21416 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21417
21418 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
21419
21420 PR middle-end/48608
21421 * cfgexpand.c (get_decl_align_unit): Renamed to ...
21422 (align_local_variable): This. Update DECL_ALIGN.
21423 (add_stack_var): Updated.
21424 (expand_one_stack_var): Likewise.
21425
21426 2011-04-14 Richard Guenther <rguenther@suse.de>
21427
21428 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21429 Remove.
21430 (dse_initialize_block_local_data, dse_leave_block,
21431 record_voperand_set, get_stmt_uid): Likewise.
21432 (dse_possible_dead_store_p): Allow any kind of killing stmt.
21433 (dse_optimize_stmt): Remove voperand set handling code.
21434 Simplify and improve to handle any kind of killing stmt.
21435 (dse_record_phi): Remove.
21436 (dse_enter_block): Simplify.
21437 (tree_ssa_dse): Likewise.
21438 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21439
21440 2011-04-14 Jan Hubicka <jh@suse.cz>
21441
21442 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21443 * cgraph.h (struct inline_summary): Move to ipa-inline.h
21444 (cgraph_local_info): Remove inline_summary.
21445 * ipa-cp.c: Include ipa-inline.h.
21446 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21447 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21448 accesor.
21449 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21450 (input_overwrite_node): Do not set inline summary.
21451 (input_node): Do not stream inline summary.
21452 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21453 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21454 growth; we do not have inline parameters computed for that anyway.
21455 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21456 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21457 (inline_summary_t): New type and VECtor.
21458 (debug_inline_summary, dump_inline_summaries): Declare.
21459 (inline_summary): Use VOCtor.
21460 (estimate_edge_growth): Kill hack computing call stmt size directly.
21461 * lto-section-in.c (lto_section_name): Add inline section.
21462 * ipa-inline-analysis.c: Include lto-streamer.h
21463 (node_removal_hook_holder, node_duplication_hook_holder): New holders
21464 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21465 (inline_summary_vec): Define.
21466 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21467 dump_inline_summaries): New functions.
21468 (estimate_function_body_sizes): Properly compute size/time of outgoing
21469 calls.
21470 (compute_inline_parameters): Alloc inline_summary; do not compute
21471 size/time of incomming calls.
21472 (estimate_edge_time): Avoid missing time summary hack.
21473 (inline_read_summary): Read inline summary info.
21474 (inline_write_summary): Write inline summary info.
21475 (inline_free_summary): Free all hooks and inline summary vector.
21476 * lto-streamer.h: Add LTO_section_inline_summary section.
21477 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21478 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21479
21480 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21481
21482 * tree-vectorizer.h (vect_strided_store_supported): Add a
21483 HOST_WIDE_INT argument.
21484 (vect_strided_load_supported): Likewise.
21485 (vect_permute_store_chain): Return void.
21486 (vect_transform_strided_load): Likewise.
21487 (vect_permute_load_chain): Delete.
21488 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21489 count argument. Check that the count is a power of two.
21490 (vect_strided_load_supported): Likewise.
21491 (vect_permute_store_chain): Return void. Update after above changes.
21492 Assert that the access is supported.
21493 (vect_permute_load_chain): Likewise.
21494 (vect_transform_strided_load): Return void.
21495 * tree-vect-stmts.c (vectorizable_store): Update calls after
21496 above interface changes.
21497 (vectorizable_load): Likewise.
21498 (vect_analyze_stmt): Don't check for strided powers of two here.
21499
21500 2011-04-14 Richard Guenther <rguenther@suse.de>
21501
21502 PR tree-optimization/48590
21503 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21504 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21505 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21506 BUILT_IN_STACK_SAVE.
21507 * tree-ssa-dce.c (propagate_necessity): Handle
21508 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21509
21510 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
21511
21512 * c-parser.c (c_parser_objc_class_declaration): Updated call to
21513 objc_declare_class.
21514
21515 2011-04-14 Richard Guenther <rguenther@suse.de>
21516
21517 * tree.h (get_object_alignment_1): Declare.
21518 * builtins.c (get_object_alignment_1): Split out worker from ...
21519 (get_object_alignment): ... here.
21520 * fold-const.c (get_pointer_modulus_and_residue): Use
21521 get_object_alignment_1.
21522
21523 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21524
21525 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21526 type parameter.
21527 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21528 parameter. Generalise code to handle arrays as well as vectors.
21529 (vect_setup_realignment): Update accordingly.
21530 * tree-vect-stmts.c (vectorizable_store): Likewise.
21531 (vectorizable_load): Likewise.
21532
21533 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21534
21535 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21536 within the per-copy loop.
21537
21538 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21539
21540 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21541 in the dump file.
21542
21543 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21544
21545 * doc/options.texi (Negative): Explicitly mention that the
21546 Negative chain must be circular.
21547
21548 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
21549
21550 * function.h (block_chainon): Declare.
21551 * function.c (block_chainon): Define.
21552
21553 2011-04-14 Anatoly Sokolov <aesok@post.ru>
21554 Eric Weddington <eric.weddington@atmel.com>
21555 Georg-Johann Lay <avr@gjlay.de>
21556
21557 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21558 New Includes
21559 (avr_init_builtins, avr_expand_builtin,
21560 avr_expand_delay_cycles, avr_expand_unop_builtin,
21561 avr_expand_binop_builtin ): New functions.
21562 (avr_builtin_id): New enum
21563 (struct avr_builtin_description): New struct
21564 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
21565 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
21566
21567 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
21568 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
21569 UNSPECV_DELAY_CYCLES): new enumeration values
21570 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
21571 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
21572 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21573 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
21574 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
21575 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
21576 "fmulsu"): New insns
21577
21578 * config/avr/avr-c.c: fix line endings
21579 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
21580 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
21581 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
21582 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
21583 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
21584
21585 * doc/extend.texi (AVR Built-in Functions): New node
21586 (Target Builtins): Add documentation of AVR
21587 built-in functions.
21588
21589 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
21590
21591 PR target/44643
21592 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
21593 alone. Error if non-const data has attribute progmem.
21594
21595 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21596
21597 * tree.h (struct tree_constructor): Include tree_typed instead of
21598 tree_common.
21599 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
21600 TS_TYPED instead of TS_COMMON.
21601
21602 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
21603
21604 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
21605 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
21606 (sse2_psadbw): Merge with *avx_psadbw.
21607 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
21608 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
21609 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
21610 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
21611 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
21612 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
21613 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
21614 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
21615 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
21616 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
21617 (ssse3_palignrti): Merge with *avx_palignrti.
21618
21619 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21620
21621 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
21622 * tree-ssanames.c (fini_ssanames): VEC_free it.
21623 (make_ssa_name_fn): Update for VECness of free_ssanames.
21624 (release_ssa_name, release_dead_ssa_names): Likewise.
21625 * tree.h (struct tree_ssa_name): Include tree_typed instead of
21626 tree_common.
21627 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
21628 TS_TYPED instead of TS_COMMON.
21629
21630 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21631
21632 * postreload-gcse.c (gcse_after_reload_main): Add calls to
21633 statistics_counter_event.
21634 * tree-ssa-copyrename.c (stats): Define.
21635 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
21636 statistics_counter_event.
21637 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
21638 (bswap_stats, widen_mul_stats): Define.
21639 (insert_reciprocals): Increment rdivs_inserted.
21640 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
21641 rfuncs_inserted. Add calls to statistics_counter_event.
21642 (execute_cse_sincos_1): Increment inserted.
21643 (execute_cse_sincos): Zeroize sincos_stats. Add call to
21644 statistics_counter_event.
21645 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
21646 of bswap_stats. Add calls to statistics_counter_event.
21647 (convert_mult_to_widen): Increment widen_mults_inserted.
21648 (convert_plusminus_to_widen): Increment maccs_inserted.
21649 (convert_mult_to_fma): Increment fmas_inserted.
21650 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
21651 calls to statistics_counter_event.
21652
21653 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
21654
21655 PR rtl-optimization/48455
21656 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
21657 `temp_costs->mem_cost'.
21658
21659 2011-04-13 Jan Hubicka <jh@suse.cz>
21660
21661 * ipa-inline.h: New file.
21662 * ipa-inline-analysis.c: New file. Broken out of ...
21663 * ipa-inline.c: ... this file; update toplevel comment;
21664 include ipa-inline.h
21665 (inline_summary): Move to ipa-inline.h
21666 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
21667 ipa-inline-analysis.c.
21668 (cgraph_estimate_time_after_inlining): Rename to
21669 estiamte_time_after_inlining; move to ipa-inline-analysis.c
21670 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
21671 to estimate_edge_growth.
21672 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
21673 rename to estimate_size_after_inlining.
21674 (cgraph_mark_inline_edge): Update for new naming convention.
21675 (cgraph_check_inline_limits): Likewise.
21676 (cgraph_edge_badness): Likewise.
21677 (cgraph_decide_recursive_inlining): Likewise.
21678 (cgraph_decide_inlining_of_small_functions): Likewise.
21679 (cgraph_decide_inlining_incrementally): Likewise.
21680 (cgraph_estimate_growth): Rename to estimate_growth; move to
21681 ipa-inline-analysis.c.
21682 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
21683 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
21684 (compute_inline_parameters): Likewise.
21685 (compute_inline_parameters_for_current): Likewise.
21686 (pass_inline_parameters): Likewise.
21687 (inline_indirect_intraprocedural_analysis): Likewise.
21688 (analyze_function): Rename to inline_analyze_function; likewise.
21689 (add_new_function): Move to ipa-inline-analysis.c.
21690 (inline_generate_summary): Likewise.
21691 (inline_read_summary): Likewise.
21692 (inline_write_summary): Likewise.
21693 * Makefile.in (ipa-inline-analysis.c): New file.
21694
21695 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21696
21697 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
21698 * configure: Regenerate.
21699
21700 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21701
21702 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
21703 instead of tree_common.
21704 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
21705 Likewise.
21706 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
21707 TS_TYPED rather than TS_COMMON.
21708 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
21709
21710 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
21711
21712 PR target/45263
21713 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
21714 r20 around calls of __tablejump_elpm__
21715
21716 2011-04-13 Jakub Jelinek <jakub@redhat.com>
21717
21718 PR middle-end/48591
21719 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
21720 NULL.
21721 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
21722
21723 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
21724
21725 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
21726 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
21727 (cfi_vec): New typedef.
21728 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
21729 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
21730 (cie_cfi_vec): New static variable.
21731 (cie_cfi_head): Delete.
21732 (add_cfi): Accept a cfi_vec * as first argument. All callers and
21733 declaration changed. Use vector rather than list operations.
21734 (new_cfi): Don't initialize the dw_cfi_next field.
21735 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
21736 rather than list operations.
21737 (lookup_cfa): Use vector rather than list operations.
21738 (output_cfis): New argument upto. Accept a cfi_vec rather than
21739 a dw_cfi_ref list head as argument. All callers changed.
21740 Iterate over the vector using upto as a maximum index.
21741 (output_all_cfis): New static function.
21742 (output_fde): Use vector rather than list operations. Use the
21743 new upto argument for output_cfis rather than manipulating a
21744 list.
21745 (dwarf2out_begin_prologue): Change initializations to match
21746 new struct members.
21747 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
21748 from the vector length rather than searching for the end of a list.
21749 Use output_all_cfis.
21750 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
21751
21752 2011-04-13 Nick Clifton <nickc@redhat.com>
21753
21754 * config/rx/rx.md (movmemsi): Do not use this pattern when
21755 volatile pointers are involved.
21756
21757 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
21758
21759 * config/i386/sse.md (pinsrbits): Remove.
21760 (sse2_packsswb): Merge with *avx_packsswb.
21761 (sse2_packssdw): Merge with *avx_packssdw.
21762 (sse2_packuswb): Merge with *avx_packuswb.
21763 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
21764 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
21765 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
21766 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
21767 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
21768 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
21769 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
21770 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
21771 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
21772 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
21773 (sse2_loadld): Merge with *avx_loadld.
21774 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
21775 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
21776 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
21777 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
21778 (vec_concatv2di): Merge with *vec_concatv2di_avx.
21779
21780 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
21781
21782 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
21783 calling TREE_CHAIN.
21784 * print-tree.c (print_node): Likewise.
21785 * tree-inline.c (copy_tree_r): Likewise.
21786 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
21787 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
21788 instead of TS_COMMON.
21789 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
21790 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
21791 (copy_node_stat): Zero TREE_CHAIN only if necessary.
21792 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
21793 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
21794 ...and these...
21795 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
21796 * tree.h: ...here.
21797 (TREE_CHAIN): Check for a TS_COMMON structure.
21798 (TREE_TYPE): Check for a TS_TYPED structure.
21799
21800 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
21801
21802 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21803 cgraph_get_create_node instead of cgraph_node.
21804
21805 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
21806
21807 * c-parser.c (c_parser_initelt): Updated call to
21808 objc_build_message_expr.
21809 (c_parser_postfix_expression): Likewise.
21810
21811 2011-04-12 Kai Tietz <ktietz@redhat.com>
21812
21813 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
21814 MASK_MS_BITFIELD_LAYOUT bit.
21815
21816 2011-04-12 Jakub Jelinek <jakub@redhat.com>
21817
21818 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
21819 assert it is always true.
21820 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
21821 moves.
21822
21823 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
21824
21825 * c-parser.c (c_lex_one_token): Rewritten conditional used when
21826 compiling Objective-C to be more efficient.
21827
21828 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
21829
21830 * opts-common.c (decode_cmdline_options_to_array): Remove variable
21831 argv_copied.
21832
21833 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21834
21835 * recog.h, genoutput.c, optabs.c: Revert last patch.
21836
21837 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21838
21839 PR target/48090
21840 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
21841
21842 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21843
21844 * recog.h (insn_operand_data): Add an "allows_mem" field.
21845 * genoutput.c (output_operand_data): Initialize it.
21846 * optabs.c (maybe_legitimize_operand_same_code): New function.
21847 (maybe_legitimize_operand): Use it when matching the original
21848 op->value.
21849
21850 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21851
21852 * genpreds.c (process_define_predicate): Move most processing
21853 to gensupport.c. Continue to validate the expression.
21854 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
21855 (process_define_predicate): Move processing to gensupport.c.
21856 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
21857 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
21858 (compute_predicate_codes): Moved from genrecog.c. Add lineno
21859 argument.
21860 (valid_predicate_name_p): New function, split out from old
21861 genpreds.c:process_define_predicate.
21862 (process_define_predicate): New function, combining code from
21863 old genpreds.c and genrecog.c functions.
21864 (process_rtx): Call it for DEFINE_PREDICATE and
21865 DEFINE_SPECIAL_PREDICATE.
21866
21867 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21868
21869 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
21870 size of a '%A' memory reference.
21871 (T_DREG, T_QREG): New neon_builtin_type_bits.
21872 (arm_init_neon_builtins): Assert that the load and store operands
21873 are neon_struct_operands.
21874 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
21875 (NEON_ARG_MEMORY): New builtin_arg.
21876 (neon_dereference_pointer): New function.
21877 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
21878 Handle NEON_ARG_MEMORY.
21879 (arm_expand_neon_builtin): Update after above interface changes.
21880 Use NEON_ARG_MEMORY for loads and stores.
21881 * config/arm/predicates.md (neon_struct_operand): New predicate.
21882 * config/arm/iterators.md (V_two_elem): Tweak formatting.
21883 (V_three_elem): Use BLKmode for accesses that have no associated mode.
21884 (V_four_elem): Tweak formatting.
21885 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
21886 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
21887 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
21888 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
21889 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
21890 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
21891 (neon_vst4<mode>): Replace pointer operand with a memory operand.
21892 Use %A in the output template.
21893 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
21894 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
21895 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
21896 the width of the memory access. Remove post-increment.
21897 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
21898
21899 2011-04-12 Nick Clifton <nickc@redhat.com>
21900
21901 * config/v850/v850.c (expand_prologue): Do not use the CALLT
21902 instruction for interrupt handlers if the target is the basic V850
21903 architecture.
21904 (expand_epilogue): Likewise.
21905
21906 2011-04-12 Jakub Jelinek <jakub@redhat.com>
21907
21908 PR rtl-optimization/48549
21909 * combine.c (propagate_for_debug): Also stop after BB_END of
21910 this_basic_block. Process LAST and just stop processing after it.
21911 (combine_instructions): If last_combined_insn has been deleted,
21912 set last_combined_insn to its PREV_INSN.
21913
21914 2011-04-12 Richard Guenther <rguenther@suse.de>
21915
21916 PR tree-optimization/46076
21917 * gimple.h (struct gimple_statement_call): Add fntype field.
21918 (gimple_call_fntype): Adjust.
21919 (gimple_call_set_fntype): New function.
21920 * gimple.c (gimple_build_call_1): Set the call function type.
21921 * gimplify.c (gimplify_call_expr): Preserve the function
21922 type the frontend used for the call.
21923 (gimplify_modify_expr): Likewise.
21924 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
21925 function type.
21926 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
21927 function type.
21928 * tree-ssa.c (useless_type_conversion_p): Function pointer
21929 conversions are useless.
21930
21931 2011-04-12 Martin Jambor <mjambor@suse.cz>
21932
21933 * cgraph.h (cgraph_node): Remove function declaration.
21934 (cgraph_create_node): Declare.
21935 (cgraph_get_create_node): Likewise.
21936 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
21937 Updated all callers.
21938 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
21939 the decl does not already exist. Call cgraph_get_create_node instead
21940 of cgraph_node.
21941 (cgraph_get_create_node): New function.
21942 (cgraph_same_body_alias): Update comment.
21943 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
21944 assert it does not return NULL.
21945 (cgraph_update_edges_for_call_stmt): Likewise.
21946 (cgraph_clone_edge): Likewise.
21947 (cgraph_create_virtual_clone): Likewise.
21948 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
21949 instead of cgraph_node.
21950 (cgraph_add_new_function): Call cgraph_create_node or
21951 cgraph_get_create_node instead of cgraph_node.
21952 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
21953 instead of cgraph_node.
21954 (record_eh_tables): Likewise.
21955 (mark_address): Likewise.
21956 (mark_load): Likewise.
21957 (build_cgraph_edges): Call cgraph_get_create_node instead
21958 of cgraph_node.
21959 (rebuild_cgraph_edges): Likewise.
21960 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
21961 instead of cgraph_node.
21962 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
21963 cgraph_node.
21964 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
21965 cgraph_create_node instead of cgraph_node.
21966 * c-decl.c (finish_function): Call cgraph_get_create_node instead
21967 of cgraph_node.
21968 * lto-cgraph.c (input_node): Likewise.
21969 * lto-streamer-in.c (input_function): Likewise.
21970 * varasm.c (mark_decl_referenced): Likewise.
21971 (assemble_alias): Likewise.
21972
21973 2011-04-12 Martin Jambor <mjambor@suse.cz>
21974
21975 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
21976 instead of cgraph_node and assert it does not return NULL.
21977 * lto-streamer-in.c (lto_read_body): Likewise.
21978 * omp-low.c (new_omp_context): Likewise.
21979 (create_task_copyfn): Likewise.
21980 * tree-emutls.c (lower_emutls_function_body): Likewise.
21981 * matrix-reorg.c (transform_allocation_sites): Likewise.
21982
21983 2011-04-12 Jakub Jelinek <jakub@redhat.com>
21984
21985 PR c/48552
21986 * c-typeck.c (build_asm_expr): Error out on attempts to use
21987 void type outputs or inputs for constraints that allow reg or
21988 don't allow memory.
21989
21990 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
21991 Richard Earnshaw <rearnsha@arm.com>
21992
21993 PR target/48250
21994 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
21995 to use sign-magnitude offsets. Reject unsupported unaligned
21996 cases. Add detailed description in comments.
21997 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
21998 condition from TARGET_32BIT to TARGET_ARM.
21999
22000 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
22001
22002 * tree.h (struct typed_tree): New.
22003 (struct tree_common): Include it instead of tree_base.
22004 (TREE_TYPE): Update for new location of type field.
22005 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22006 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22007 (union tree_node): Add typed field.
22008 * treestruct.def (TS_TYPED): New.
22009 * lto-streamer.c (check_handled_ts_structures): Handle it.
22010 * tree.c (MARK_TS_TYPED): New macro.
22011 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22012
22013 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
22014
22015 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22016 (force_nonfallthru): Do not alter the loop nest if no basic block
22017 was created.
22018
22019 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22020
22021 * config/i386/sse.md (VI): New mode iterator.
22022 (SSEMODEI): Remove.
22023 (AVX256MODEI): Ditto.
22024 (AVXMODEF4P): Ditto.
22025 (avxvecpsmode): Ditto.
22026 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
22027 (sse2_andnot<mode>3): New expander.
22028 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22029 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
22030 (<any_logic:code><mode>3): Use VI mode iterator.
22031 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22032 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
22033 (*andnottf3): Handle AVX three-operand constraints.
22034 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22035
22036 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22037 Robert Millan <rmh@gnu.org>
22038
22039 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22040 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22041 GNU_USER_DYNAMIC_LINKER64): Define.
22042 (REG_NAME): Don't undefine.
22043 (MD_UNWIND_SUPPORT): Undefine.
22044 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22045 (REG_NAME): Don't undefine.
22046 (MD_UNWIND_SUPPORT): Undefine.
22047 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22048
22049 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22050
22051 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22052 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22053
22054 2011-04-11 Xinliang David Li <davidxl@google.com>
22055
22056 * value-profile.c (check_ic_target): New function.
22057 (gimple_ic_transform): Sanity check indirect call target.
22058 * gimple-low.c (gimple_check_call_args): Interface change.
22059 (gimple_check_call_matching_types): New function.
22060 * tree-inline.c (tree_can_inline_p): Call new function.
22061
22062 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
22063
22064 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22065 tree-pretty-print.h & realmpfr.h.
22066
22067 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
22068
22069 PR middle-end/48464
22070 * ira.c (setup_pressure_classes): Fix typo in loop condition.
22071 (setup_allocno_and_important_classes): Ditto.
22072
22073 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22074
22075 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22076 GNU_USER_DYNAMIC_LINKER.
22077 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22078 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22079 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22080 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22081 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22082 GNU_USER_TARGET_OS_CPP_BUILTINS.
22083 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22084 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22085 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22086 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22087 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22088 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22089 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22090 GNU_USER_TARGET_OS_CPP_BUILTINS.
22091 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22092 GNU_USER_DYNAMIC_LINKER.
22093 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22094 GNU_USER_TARGET_OS_CPP_BUILTINS.
22095 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22096 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22097 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22098 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22099 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22100 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22101 GNU_USER_DYNAMIC_LINKER64): Remove.
22102 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22103 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22104 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22105 GNU_USER_DYNAMIC_LINKER.
22106 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22107 GNU_USER_TARGET_OS_CPP_BUILTINS.
22108 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22109 GNU_USER_TARGET_OS_CPP_BUILTINS.
22110 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22111 to GNU_USER_TARGET_OS_CPP_BUILTINS.
22112 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22113 GNU_USER_TARGET_OS_CPP_BUILTINS.
22114 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22115 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22116 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22117 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22118 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22119 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22120 GNU_USER_DYNAMIC_LINKER.
22121 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22122 GNU_USER_TARGET_OS_CPP_BUILTINS.
22123 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22124 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22125 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22126 GNU_USER_DYNAMIC_LINKER.
22127 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22128 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22129 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22130 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22131 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22132 GNU_USER_DYNAMIC_LINKER.
22133 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22134 GNU_USER_DYNAMIC_LINKERN32.
22135 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22136 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
22137 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
22138 GNU_USER_DYNAMIC_LINKER32.
22139 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22140 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22141 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22142 GNU_USER_DYNAMIC_LINKER.
22143 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22144 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22145 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22146 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22147 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22148 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22149 GNU_USER_DYNAMIC_LINKER32.
22150 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22151 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22152 GNU_USER_DYNAMIC_LINKER.
22153 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22154 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22155 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22156 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
22157 GNU_USER_DYNAMIC_LINKER64.
22158 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22159 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22160 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22161 GNU_USER_DYNAMIC_LINKER.
22162 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22163 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22164 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22165 GNU_USER_DYNAMIC_LINKER.
22166 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22167 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22168 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22169 GNU_USER_DYNAMIC_LINKER32.
22170 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22171 GNU_USER_DYNAMIC_LINKER64.
22172 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22173 GNU_USER_DYNAMIC_LINKER64.
22174 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22175 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22176 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22177 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22178 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22179
22180 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22181
22182 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
22183 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22184 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22185 GNU_USER_DYNAMIC_LINKER.
22186 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22187 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
22188 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22189 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22190 GNU_USER_DYNAMIC_LINKER64.
22191 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22192 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22193 GNU_USER_LINK_EMULATION.
22194 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22195 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22196 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22197 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22198 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22199 CPP_SPEC, CC1_SPEC): Remove.
22200 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22201 (GNU_USER_DYNAMIC_LINKER): Define.
22202 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22203 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22204 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22205 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22206 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22207 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22208 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22209 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22210 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22211 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22212 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22213 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22214 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22215 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22216 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22217 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22218 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22219 GNU_USER_DYNAMIC_LINKER.
22220 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22221 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22222 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22223 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22224 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22225 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22226 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22227 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22228 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22229 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22230
22231 2011-04-11 Kai Tietz <ktietz@redhat.com>
22232
22233 PR target/9601
22234 PR target/11772
22235 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22236 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22237 comment.
22238 (ix86_is_msabi_thiscall): Removed.
22239 (ix86_is_type_thiscall): Likewise.
22240 (ix86_get_callcvt): New function.
22241 (ix86_comp_type_attributes): Simplify check.
22242 (ix86_function_regparm): Use ix86_get_callcvt for calling
22243 convention attribute checks.
22244 (ix86_return_pops_args): Likewise.
22245 (ix86_static_chain): Likewise.
22246 (x86_this_parameter): Likewise.
22247 (x86_output_mi_thunk): Likewise.
22248 (ix86_function_type_abi): Optimize check for types without attributes.
22249 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22250 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22251 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22252 by flag-values.
22253 (IX86_BASE_CALLCVT): Helper macro.
22254 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22255 Use ix86_get_callcvt for calling convention attribute checks and avoid
22256 symbol-decoration for stdcall in TARGET_RTD case.
22257 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22258 Likewise.
22259 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22260 for declaration.
22261
22262 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22263
22264 * config/i386/sse.md (VI_128): New mode iterator.
22265 (VI12_128): Rename from SSEMODE12.
22266 (VI14_128): Rename from SSEMODE14.
22267 (VI124_128): New mode iterator.
22268 (VI24_128): Rename from SSEMODE248.
22269 (VI248_128): Rename from SSEMODE248.
22270 (SSEMODE124C8): Remove.
22271 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22272 (*sse2_<plusminus_insn><mode>3): Merge with
22273 *avx_<plusminus_insn><mode>3.
22274 (*mulv8hi3): Merge with *avx_mulv8hi3.
22275 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22276 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22277 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22278 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22279 (ashr<mode>3): Merge with *avx_ashr<mode>3.
22280 (lshr<mode>3): Merge with *avx_lshr<mode>3.
22281 (ashl<mode>3): Merge with *avx_ashl<mode>3.
22282 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22283 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22284 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22285 (*<smaxmin:code>v8hi3): Ditto.
22286 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22287 (*<smaxmin:code>v16qi3): Ditto.
22288 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22289 (*sse2_eq<mode>3): Ditto.
22290 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22291 (*sse2_gt<mode>3): Ditto.
22292 (vcondv2di): Split out of vcond<mode>.
22293 (vconduv2di): Split out of vcondu<mode>.
22294
22295 2011-04-11 Richard Guenther <rguenther@suse.de>
22296
22297 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22298 before calling tree_low_cst.
22299
22300 2011-04-11 Richard Guenther <rguenther@suse.de>
22301
22302 * stor-layout.c (layout_type): Compute all array index size operations
22303 in the original type.
22304 (initialize_sizetypes): Add comment.
22305 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22306
22307 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22308
22309 * common.opt (Tbss=, Tdata=, Ttext=): New options.
22310
22311 2011-04-11 Martin Jambor <mjambor@suse.cz>
22312
22313 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22314 of cgraph_node, handle NULL return value.
22315 (cgraph_global_info): Likewise.
22316 (cgraph_rtl_info): Likewise.
22317 * tree-inline.c (estimate_num_insns): Likewise.
22318 * gimplify.c (unshare_body): Likewise.
22319 (unvisit_body): Likewise.
22320 (gimplify_body): Likewise.
22321 * predict.c (optimize_function_for_size_p): Likewise.
22322 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22323 (call_may_clobber_ref_p_1): Likewise.
22324 * varasm.c (function_section_1): Likewise.
22325 (assemble_start_function): Likewise.
22326
22327 2011-04-11 Martin Jambor <mjambor@suse.cz>
22328
22329 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22330 of cgraph_node.
22331 * final.c (rest_of_clean_state): Likewise.
22332 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22333 * passes.c (pass_init_dump_file): Likewise.
22334 (execute_all_ipa_transforms): Likewise.
22335 (function_called_by_processed_nodes_p): Likewise.
22336 * predict.c (maybe_hot_frequency_p): Likewise.
22337 (probably_never_executed_bb_p): Likewise.
22338 (compute_function_frequency): Likewise.
22339 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22340 (unnest_nesting_tree_1): Likewise.
22341 (lower_nested_functions): Likewise.
22342 * tree-optimize.c (execute_fixup_cfg): Likewise.
22343 (tree_rest_of_compilation): Likewise.
22344 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22345 * tree-sra.c (ipa_early_sra): Likewise.
22346 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22347 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22348 * ipa.c (record_cdtor_fn): Likewise.
22349 * ipa-inline.c (cgraph_early_inlining): Likewise.
22350 (compute_inline_parameters_for_current): Likewise.
22351 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22352 * ipa-pure-const.c (local_pure_const): Likewise.
22353 * ipa-split.c (split_function): Likewise.
22354 (execute_split_functions): Likewise.
22355 * cgraphbuild.c (build_cgraph_edges): Likewise.
22356 (rebuild_cgraph_edges): Likewise.
22357 (cgraph_rebuild_references): Likewise.
22358 (remove_cgraph_callee_edges): Likewise.
22359 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22360 (verify_cgraph_node): Likewise.
22361 (cgraph_analyze_functions): Likewise.
22362 (cgraph_preserve_function_body_p): Likewise.
22363 (save_inline_function_body): Likewise.
22364 (save_inline_function_body): Likewise.
22365 * tree-inline.c (copy_bb): Likewise.
22366 (optimize_inline_calls): Likewise.
22367
22368 2011-04-11 Martin Jambor <mjambor@suse.cz>
22369
22370 PR tree-optimization/48195
22371 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22372 ipa_check_create_edge_args.
22373 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22374 ipa_check_create_edge_args.
22375 * ipa-inline.c (inline_generate_summary): Do not call
22376 ipa_check_create_node_params and ipa_check_create_edge_args.
22377 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
22378 ipa_check_create_edge_args.
22379
22380 2011-04-09 Anatoly Sokolov <aesok@post.ru>
22381
22382 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22383 instead of loop.
22384 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22385 * function.c (record_hard_reg_sets): Likewise.
22386 * ira.c (compute_regs_asm_clobbered): Likewise.
22387 * sched-deps.c (sched_analyze_1): Likewise.
22388 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22389
22390 2011-04-09 Xinliang David Li <davidxl@google.com>
22391
22392 PR tree-optimization/PR48484
22393 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22394 has_valid_pred lazily
22395
22396 2011-04-09 Duncan Sands <baldrick@free.fr>
22397
22398 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22399
22400 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
22401
22402 * combine.c (combine_validate_cost): Adjust comments. Set registered
22403 cost of I0 to zero at the end, if any.
22404
22405 2011-04-08 Xinliang David Li <davidxl@google.com>
22406
22407 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22408 to insane profile data.
22409
22410 2011-04-08 Xinliang David Li <davidxl@google.com>
22411
22412 * ipa-cp.c (ipcp_update_profiling): Correct
22413 negative scale factor due to insane profile data.
22414
22415 2011-04-08 Xinliang David Li <davidxl@google.com>
22416
22417 * final.c (dump_basic_block_info): New function.
22418 (final): Dump basic block.
22419 (final_scan_insn): Remove old dump.
22420
22421 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
22422
22423 PR target/47829
22424 * config.gcc (i386-*-freebsd): Disable unwind table generation for
22425 crtbegin/crtend.
22426
22427 2011-04-08 Michael Matz <matz@suse.de>
22428
22429 PR middle-end/48389
22430 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22431 functions.
22432 (rebuild_jump_labels): Call rebuild_jump_labels_1.
22433 * rtl.h (rebuild_jump_labels_chain): Declare.
22434 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22435 insns inserted on edges.
22436
22437 2011-04-08 Joseph Myers <joseph@codesourcery.com>
22438
22439 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22440 * config/arm/arm-arches.def: New.
22441 * config/arm/arm-opts.h: New.
22442 * config/arm/genopt.sh: New.
22443 * config/arm/arm-tables.opt: New (generated).
22444 * config/arm/arm.c (arm_handle_option, arm_target_help,
22445 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22446 (all_architectures): Get most table contents from arm-arches.def.
22447 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22448 arm_selected_tune here.
22449 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22450 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22451 (march=, mcpu=, mtune=): Use Enum and Var.
22452 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22453 (arm.o): Update dependencies.
22454
22455 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
22456
22457 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22458 of header_file.
22459 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22460 (write_typed_alloc_defns): Likewise.
22461 (main): Calls write_typed_alloc_defns with output_header.
22462
22463 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
22464
22465 PR inline-asm/48435
22466 * ira-color.c (setup_profitable_hard_regs): Add comments.
22467 Don't take prohibited hard regs into account.
22468 (setup_conflict_profitable_regs): Rename to
22469 get_conflict_profitable_regs.
22470 (check_hard_reg_p): Check prohibited hard regs.
22471
22472 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
22473
22474 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22475 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22476 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22477
22478 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22479
22480 PR target/48366
22481 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22482 move from floating point to shift amount register.
22483 (emit_move_sequence): Remove secondary reload support for floating
22484 point to shift amount amount register copies.
22485 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22486 amount register copies.
22487 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22488 register, return false if mode isn't a scalar integer mode.
22489 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22490
22491 2011-04-08 Richard Guenther <rguenther@suse.de>
22492
22493 * gimple.c (gimple_call_flags): Remove kludge.
22494
22495 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22496
22497 * sel-sched.c (sel_region_init): Move call to
22498 sel_setup_region_sched_flags after setup_current_loop_nest.
22499
22500 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
22501
22502 PR rtl-optimization/48272
22503 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22504 init_insn_reg_pressure_info. Adjust a caller.
22505 * sched-int.h (init_insn_reg_pressure_info): Declare.
22506 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22507 when sched-pressure is enabled.
22508
22509 2011-04-08 Richard Guenther <rguenther@suse.de>
22510
22511 * gimple.c (gimple_set_modified): Do not queue calls to
22512 MODIFIED_NORETURN_CALLS here ...
22513 * tree-ssa-operands.c (update_stmt_operands): ... but here.
22514
22515 2011-04-08 Richard Guenther <rguenther@suse.de>
22516
22517 PR lto/48467
22518 * toplev.c (lang_dependent_init): Do not open asm_out_file
22519 in WPA mode, nor perform debug machinery initialization.
22520 (finalize): Do not unlink asm_out_file in WPA mode.
22521
22522 2011-04-08 Richard Guenther <rguenther@suse.de>
22523
22524 * gimple.h (gimple_call_fntype): New function.
22525 (gimple_call_return_type): Use it.
22526 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22527 * gimple-low.c (gimple_check_call_args): Likewise.
22528 * gimple.c (gimple_call_flags): Likewise.
22529 (gimple_call_arg_flags): Likewise.
22530 (gimple_call_return_flags): Likewise.
22531 * tree-cfg.c (verify_gimple_call): Likewise.
22532 (do_warn_unused_result): Likewise.
22533 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22534 * value-prof.c (gimple_ic_transform): Fix fndecl check.
22535
22536 2011-04-08 Dmitry Melnik <dm@ispras.ru>
22537
22538 PR rtl-optimization/48235
22539 * sel-sched.c (code_motion_process_successors): Recompute the last
22540 insn in basic block if control flow changed.
22541 (code_motion_path_driver): Ditto. Recompute the first insn as well.
22542 Update condition for ilist_remove.
22543
22544 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22545
22546 PR rtl-optimization/48302
22547 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22548 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
22549 it to record added preheader blocks.
22550 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
22551 on to sel_add_loop_preheaders.
22552 (sel_region_init): Move call to setup_current_loop_nest after
22553 sel_init_bbs.
22554
22555 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22556
22557 PR target/48273
22558 * cfgloop.h (loop_has_exit_edges): New helper.
22559 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
22560 non-clonable.
22561 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
22562 that have no exit edges.
22563
22564 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22565
22566 PR rtl-optimization/48442
22567 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
22568 all callers. Adjust assert.
22569
22570 2011-04-08 Jakub Jelinek <jakub@redhat.com>
22571
22572 PR tree-optimization/48377
22573 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
22574 is_packed to true even for types with smaller TYPE_ALIGN than
22575 TYPE_SIZE.
22576
22577 2011-04-08 Richard Guenther <rguenther@suse.de>
22578
22579 PR bootstrap/48513
22580 * doc/tm.texi: Re-generate.
22581
22582 2011-04-08 Wei Guozhi <carrot@google.com>
22583
22584 PR target/47855
22585 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
22586 * config/arm/arm.c (arm_attr_length_push_multi): New function.
22587 * config/arm/arm.md (*push_multi): Change the length computation to
22588 call a C function.
22589
22590 2011-04-08 Anatoly Sokolov <aesok@post.ru>
22591
22592 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
22593 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
22594 * doc/tm.texi: Regenerate.
22595 * system.h (ASM_OUTPUT_BSS): Poison.
22596 * varasm.c (asm_output_bss): Remove function.
22597 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
22598
22599 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
22600 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
22601 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
22602 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22603 Likewise.
22604 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22605 Likewise.
22606 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22607 Likewise.
22608 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
22609
22610 2011-04-07 Joseph Myers <joseph@codesourcery.com>
22611
22612 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
22613 EnumValue lines.
22614
22615 2011-04-07 Joseph Myers <joseph@codesourcery.com>
22616
22617 * config/m68k/m68k.c (m68k_handle_option): Don't handle
22618 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
22619 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
22620 OPT_mcpu32.
22621 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22622 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
22623 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
22624 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
22625 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
22626 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
22627 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22628 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
22629 options. Don't map other m68k options manually. Don't handle
22630 old-style options as canonical.
22631 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22632 * doc/install.texi (m68k-*-*): Document binutils version requirement.
22633
22634 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
22635
22636 * basic-block.h (force_nonfallthru): Move to...
22637 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
22638 (force_nonfallthru): ...here.
22639 * cfghooks.c (force_nonfallthru): New function.
22640 * cfgrtl.c (force_nonfallthru): Rename into...
22641 (rtl_force_nonfallthru): ...this.
22642 (commit_one_edge_insertion): Do not set AUX field.
22643 (commit_edge_insertions): Do not discover new basic blocks.
22644 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
22645 (cfg_layout_rtl_cfg_hooks): Likewise.
22646 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
22647 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
22648 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
22649
22650 2011-04-07 Anatoly Sokolov <aesok@post.ru>
22651
22652 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22653 Remove macros.
22654
22655 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
22656
22657 * config/i386/sse.md: Update copyright year.
22658 (avxcvtvecmode): Remove.
22659 (sse_movhlps): Merge with *avx_movhlps.
22660 (sse_movlhps): Merge with *avx_movlhps.
22661 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
22662 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
22663 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
22664 (sse_loadhps): Merge with *avx_loadhps.
22665 (sse_storelps): Merge with *avx_storelps.
22666 (sse_loadlps): Merge with *avx_loadlps.
22667 (sse_movss): Merge with *avx_movss.
22668 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
22669 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
22670 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
22671 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
22672 (vec_set<mode>_0): Ditto.
22673 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
22674 (sse4_1_insertps): Merge with *avx_insertps.
22675 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
22676 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
22677 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
22678 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
22679 (sse2_storehpd): Merge with *avx_storehpd.
22680 (sse2_loadhpd): Merge with *avx_loadhpd.
22681 (sse2_loadlpd): Merge with *avx_loadlpd.
22682 (sse2_movsd): Merge with *avx_movsd.
22683 (*vec_concatv2df): Merge with *vec_concatv2df.
22684
22685 2011-04-07 Jakub Jelinek <jakub@redhat.com>
22686
22687 PR debug/48343
22688 * combine.c (combine_instructions): Add last_combined_insn,
22689 update it if insn is after it, pass it to all try_combine calls.
22690 (try_combine): Add last_combined_insn parameter, pass it instead of
22691 i3 to propagate_for_debug.
22692
22693 2011-04-07 Nick Clifton <nickc@redhat.com>
22694
22695 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
22696 to handle MDR <-> data register transfers.
22697 (movhi_internal): Likewise.
22698
22699 2011-04-07 Alan Modra <amodra@gmail.com>
22700
22701 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
22702 previous stack info.
22703
22704 2011-04-07 Tom de Vries <tom@codesourcery.com>
22705
22706 PR target/43920
22707 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
22708 flow_find_cross_jump. Swap variables to implement backward replacement.
22709 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
22710
22711 2011-04-07 Tom de Vries <tom@codesourcery.com>
22712
22713 PR target/43920
22714 * cfgcleanup.c (walk_to_nondebug_insn): New function.
22715 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
22716 and bb2.
22717 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
22718 src1 or src2. Redirect edges to the last basic block. Update
22719 frequency and count on multiple basic blocks in case of fallthru.
22720
22721 2011-04-07 Tom de Vries <tom@codesourcery.com>
22722
22723 PR target/43920
22724 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
22725 function.
22726 (old_insns_match_p): Change return type. Replace return false/true
22727 with return dir_none/dir_both. Use can_replace_by.
22728 (flow_find_cross_jump): Add dir_p parameter. Init replacement
22729 direction from dir_p. Register replacement direction in dir, last_dir
22730 and afterlast_dir. Handle new return type of old_insns_match_p using
22731 merge_dir. Return replacement direction in dir_p.
22732 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
22733 return type of old_insns_match_p.
22734 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
22735 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
22736 flow_find_cross_jump.
22737 * basic-block.h (enum replace_direction): New type.
22738 (flow_find_cross_jump): Add parameter to declaration.
22739
22740 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
22741
22742 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
22743 (AVXMODEDCVTPS2DQ): Ditto.
22744 (VEC_FLOAT_MODE): Ditto.
22745 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
22746 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22747 (<any_logic:code><mode>3): Use VF mode iterator.
22748 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
22749 Use VF mode iterator.
22750 (copysign<mode>3): Use VF mode iterator.
22751 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
22752 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22753 (*<any_logic:code><MODEF:mode>3): Merge with
22754 *avx_<any_logic:code><MODEF:mode>3.
22755 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
22756 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
22757 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
22758 (avx_cvtdq2ps<avxmodesuffix>): Remove.
22759 (sse2_cvtdq2ps): Use %v modifier.
22760 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
22761 (avx_cvtps2dq<avxmodesuffix>): Remove.
22762 (sse2_cvtps2dq): Use %v modifier.
22763 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
22764 (avx_cvttps2dq<avxmodesuffix>): Remove.
22765 (sse2_cvttps2dq): Use %v modifier.
22766 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
22767 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
22768 (sse2_cvtsd2siq): Fix insn template.
22769 (sse2_cvtsd2siq_2): Ditto.
22770 (sse2_cvttsd2siq): Ditto.
22771 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
22772 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
22773
22774 2011-04-06 Joseph Myers <joseph@codesourcery.com>
22775
22776 * gcov-io.c: Use GCC Runtime Library Exception.
22777
22778 2011-04-06 Jakub Jelinek <jakub@redhat.com>
22779
22780 PR debug/48466
22781 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
22782 as base_reg whatever register reg has been eliminated to, instead
22783 of hardcoding STACK_POINTER_REGNUM.
22784
22785 2011-04-06 Joseph Myers <joseph@codesourcery.com>
22786
22787 * doc/tm.texi.in: Document C target hooks as separate from general
22788 target hooks.
22789 * doc/tm.texi: Regenerate.
22790 * genhooks.c (struct hook_desc): Add docname field.
22791 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
22792 docname field.
22793 (hook_array): Include c-target.def.
22794 (emit_documentation): Use docname field in output.
22795 (emit_init_macros): Take docname argument. Only emit definitions
22796 for hooks matching docname.
22797 (main): Expect additional arguments in all cases. Pass argument
22798 to emit_init_macros.
22799 * target.def: Move initial macro definitions and comments to
22800 target-hooks-macros.h.
22801 (gcc_targetcm): Move to c-family/c-target.def.
22802 * target.h (targetcm): Move declaration to c-family/c-target.h.
22803 * targhooks.c (default_handle_c_option): Move to
22804 c-family/c-opts.c.
22805 * targhooks.h (default_handle_c_option): Move declaration to
22806 c-family/c-common.h.
22807 * target-hooks-macros.h: New file.
22808 * config.gcc (target_has_targetcm): Define and use to add to
22809 c_target_objs and cxx_target_objs.
22810 * config/default-c.c: New file.
22811 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
22812 of target.h and target-def.h.
22813 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
22814 (darwin_objc_construct_string, darwin_cfstring_ref_p,
22815 darwin_check_cfstring_format_arg): Make static.
22816 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22817 TARGET_STRING_OBJECT_REF_TYPE_P,
22818 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
22819 * config/darwin-protos.h (darwin_objc_construct_string,
22820 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
22821 declare.
22822 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22823 TARGET_STRING_OBJECT_REF_TYPE_P,
22824 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
22825 * config/t-darwin (darwin-c.o): Update dependencies.
22826 * system.h (TARGET_HAS_TARGETCM): Poison.
22827 * Makefile.in (TARGET_H): Update.
22828 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
22829 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
22830 (default-c.o): New target.
22831 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
22832 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
22833 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
22834 c-target.def.
22835 (build/genhooks.o): Update dependencies.
22836
22837 2011-04-06 Richard Guenther <rguenther@suse.de>
22838
22839 * ipa-inline.c (enum inlining_mode): Remove.
22840 (cgraph_flatten): Use some other token.
22841 (cgraph_edge_early_inlinable_p): New function, split out from ...
22842 (cgraph_perform_always_inlining): New function, split out from ...
22843 (cgraph_decide_inlining_incrementally): ... here.
22844 (cgraph_mark_inline_edge): Adjust.
22845 (cgraph_early_inlining): Re-structure.
22846 (pass_early_inline): Require SSA form.
22847
22848 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
22849 Julian Brown <julian@codesourcery.com>
22850 Mark Shinwell <shinwell@codesourcery.com>
22851
22852 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
22853 LO_REGS only for Thumb-1.
22854 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
22855 be used in short instructions when optimising for size on Thumb-2.
22856
22857 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
22858
22859 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
22860 associated with user returns to be preserved.
22861
22862 2011-04-06 Tristan Gingold <gingold@adacore.com>
22863
22864 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
22865 symbol_queue_size, DBXOUT_DECR_NESTING,
22866 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
22867 if XCOFF_DEBUGGING_INFO.
22868
22869 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
22870
22871 * config/i386/i386.md (attribute isa): New.
22872 (attribute enabled): New.
22873 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
22874 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
22875 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
22876 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
22877 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
22878 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22879 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
22880 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
22881
22882 * config/i386/sse.md (VF): New mode iterator.
22883 (VF1): Ditto.
22884 (VF2): Ditto.
22885 (VF_128): Ditto.
22886 (SSEMODEF4): Remove.
22887 (attribute sse): Handle V8SF and V4DF modes.
22888 (<absneg:code><mode>2): Use VF mode iterator.
22889 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
22890 mode iterator.
22891 (<plusminus_insn><mode>3): Use VF mode iterator.
22892 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22893 Use VF mode iterator.
22894 (<sse>_vm<plusminus_insn><mode>3): Merge with
22895 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
22896 (mul<mode>3): Use VF mode iterator.
22897 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
22898 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
22899 mode iterator.
22900 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
22901 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
22902 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
22903 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
22904 mode iterator.
22905 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
22906 Use VF1 mode iterator.
22907 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
22908 (sqrt<VF2:mode>2): New expander.
22909 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
22910 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
22911 and sqrtv2df2. Use VF mode iterator.
22912 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
22913 mode iterator.
22914 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
22915 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
22916 Use VF1 mode iterator.
22917 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
22918 (<smaxmin:code><mode>3): Use VF mode iterator.
22919 (*<smaxmin:code><mode>3_finite): Merge with
22920 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
22921 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22922 (<sse>_vm<smaxmin:code><mode>2): Merge with
22923 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
22924 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
22925 mode iterator.
22926 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
22927 mode iterator.
22928 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
22929 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
22930 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
22931 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
22932 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
22933 VF mode iterator.
22934 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
22935 Use VF_128 mode iterator.
22936 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
22937 mode iterator.
22938 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
22939 VF_128 mode iterator.
22940 (vcond<mode>): Use VF mode iterator.
22941 * config/i386/predicates.md (sse_comparison_operator): Merge with
22942 avx_comparison_float_operator. Do not declare as special_predicate.
22943 * config/i386/i386.c (struct builtin_description): Update for renamed
22944 compare patterns.
22945 (ix86_expand_args_builtin): Ditto.
22946 (ix86_expand_sse_compare_mask): Ditto.
22947
22948 2011-04-06 Richard Guenther <rguenther@suse.de>
22949
22950 * tree-inline.c (estimate_num_insns): For calls simply account
22951 for all passed arguments and a used return value.
22952
22953 2011-04-06 Richard Guenther <rguenther@suse.de>
22954
22955 PR tree-optimization/47663
22956 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
22957 call_stmt_time fields.
22958 (cgraph_edge_inlinable_p): Declare.
22959 (cgraph_edge_recursive_p): New inline function.
22960 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
22961 (cgraph_clone_edge): Copy it.
22962 * ipa-inline.c (cgraph_estimate_edge_time): New function.
22963 Account for call stmt time.
22964 (cgraph_estimate_time_after_inlining): Take edge argument.
22965 (cgraph_estimate_edge_growth): Account call stmt size.
22966 (cgraph_estimate_size_after_inlining): Take edge argument.
22967 (cgraph_mark_inline_edge): Adjust.
22968 (cgraph_check_inline_limits): Likewise.
22969 (cgraph_recursive_inlining_p): Remove.
22970 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
22971 (cgraph_decide_recursive_inlining): Take edge argument and
22972 adjust.
22973 (cgraph_decide_inlining_of_small_functions): Do not avoid
22974 diags for recursive inlining here.
22975 (cgraph_flatten): Adjust.
22976 (cgraph_decide_inlining_incrementally): Likewise.
22977 (estimate_function_body_sizes): Remove call cost handling.
22978 (compute_inline_parameters): Initialize caller edge call costs.
22979 (cgraph_estimate_edge_growth): New function.
22980 (cgraph_estimate_growth): Use it.
22981 (cgraph_edge_badness): Likewise.
22982 (cgraph_check_inline_limits): Take an edge argument.
22983 (cgraph_decide_inlining_of_small_functions): Adjust.
22984 (cgraph_decide_inlining): Likewise.
22985 * tree-inline.c (estimate_num_insns): Only account for call
22986 return value if it is used.
22987 (expand_call_inline): Avoid diagnostics on recursive inline
22988 functions here.
22989 * lto-cgraph.c (lto_output_edge): Output edge call costs.
22990 (input_edge): Input edge call costs.
22991
22992 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22993
22994 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
22995
22996 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
22997
22998 * doc/invoke.texi (Spec Files): Fix typo.
22999
23000 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
23001
23002 * profile.c (branch_prob): Move declaration of local variable. Remove
23003 obsolete ??? comment. Expand the location explicitly instead of using
23004 the LOCATION_FILE and LOCATION_LINE macros.
23005
23006 2011-04-06 Wei Guozhi <carrot@google.com>
23007
23008 PR target/47855
23009 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23010 (arm_cond_branch): Likewise.
23011 (arm_cond_branch_reversed): Likewise.
23012 (arm_jump): Likewise.
23013 (push_multi): Likewise.
23014 * config/arm/constraints.md (Py): New constraint.
23015
23016 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23017
23018 PR bootstrap/48471
23019 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23020 Move these...
23021 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23022 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23023 #ifdef DBX_DEBUGGING_INFO.
23024
23025 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
23026
23027 PR bootstrap/48403
23028 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23029 if old and new states differ.
23030
23031 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23032
23033 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23034 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23035 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23036 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23037 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23038 mcfv4e): Use Alias.
23039 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23040 ColdFire options to -mcpu= options.
23041
23042 2011-04-05 Jeff Law <law@redhat.com>
23043
23044 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23045 check if BB is a successor of LOOP->header and return
23046 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23047
23048 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23049
23050 * cprop.c (struct reg_use): Remove.
23051 (reg_use_table): Make an array of RTX.
23052 (find_used_regs, constprop_register, local_cprop_pass,
23053 bypass_block): Simplify users of reg_use_table.
23054 (cprop_insn): Likewise. Iterate if copy propagation succeeded
23055 on one of the uses found by find_used_regs.
23056
23057 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23058
23059 PR bootstrap/48469
23060 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23061 declaration.
23062
23063 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23064
23065 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23066 as an rtx.
23067 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23068
23069 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23070
23071 PR middle-end/48441
23072 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23073
23074 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23075
23076 * combine.c: Include obstack.h.
23077 (struct insn_link): Define.
23078 (uid_log_links): Adjust type.
23079 (FOR_EACH_LOG_LINK): New macro.
23080 (insn_link_obstack): Declare.
23081 (alloc_insn_link): Define.
23082 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
23083 type of link variables.
23084 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23085 (try_combine, record_promoted_values, distribute_notes): Likewise.
23086 (distribute_links): Likewise. Tweak prototype.
23087 (clear_log_links): Delete.
23088 (adjust_for_new_dest): Call alloc_insn_link.
23089 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23090
23091 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23092
23093 * gcse.c (modify_mem_list): Convert to an array of VECs.
23094 (canon_modify_mem_list, compute_transp): Tweak formatting.
23095 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
23096 (load_killed_in_block_p): Likewise.
23097 (record_last_mem_set_info): Likewise.
23098 (clear_modify_mem_tables): Likewise.
23099
23100 2011-04-05 Tom de Vries <tom@codesourcery.com>
23101
23102 PR middle-end/48461
23103 * function.c (emit_use_return_register_into_block): Only define if
23104 HAVE_return.
23105
23106 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
23107
23108 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23109
23110 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23111
23112 * config/rx/rx-opts.h: New.
23113 * config/rx/rx.c (rx_cpu_type): Remove.
23114 (rx_handle_option): Don't assert that global structures are in
23115 use. Access variables via opts pointer. Defer most handling of
23116 OPT_mint_register_. Use error_at.
23117 (rx_option_override): Handle deferred OPT_mint_register_ here.
23118 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23119 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23120 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23121 (rx_cpu_types): New Enum and EnumValue entries.
23122 (mint-register=): Use Defer and use Var accordingly.
23123
23124 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23125
23126 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23127 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23128 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23129 Move these...
23130 (debug_free_queue, debug_nesting, symbol_queue_index):
23131 ...and these...
23132 * dbxout.c: ...to here. Make static.
23133
23134 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23135
23136 * gcse.c (modify_pair): Define. Define a VEC of it.
23137 (canon_modify_mem_list): Convert to an array of VECs.
23138 (free_insn_expr_list_list): Delete.
23139 (clear_modify_mem_tables): Call VEC_free instead.
23140 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23141 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23142 (canon_list_insert, compute_transp): Likewise.
23143
23144 2011-04-05 Tom de Vries <tom@codesourcery.com>
23145
23146 PR target/43920
23147 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23148 for size.
23149
23150 2011-04-05 Tom de Vries <tom@codesourcery.com>
23151
23152 PR target/43920
23153 * function.c (emit_use_return_register_into_block): New function.
23154 (thread_prologue_and_epilogue_insns): Use
23155 emit_use_return_register_into_block.
23156
23157 2011-04-05 Tom de Vries <tom@codesourcery.com>
23158
23159 PR target/43920
23160 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23161 insn.
23162
23163 2011-04-05 Tom de Vries <tom@codesourcery.com>
23164
23165 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23166
23167 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
23168
23169 * config/arm/arm.md (define_constants for unspec): Replace with
23170 define_c_enum.
23171 (define_constants for unspecv): Replace with define_c_enum.
23172 * config/arm/neon.md (define_constants for unspec): Replace with
23173 define_c_enum.
23174
23175 2011-04-04 Richard Henderson <rth@redhat.com>
23176
23177 PR bootstrap/48400
23178 * dwarf2out.c (output_line_info): Always emit line info from
23179 at least one section.
23180 (dwarf2out_init): Create text_section_line_info here ...
23181 (set_cur_line_info_table): ... not here.
23182
23183 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
23184
23185 PR target/48380
23186 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23187 not called.
23188
23189 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23190
23191 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
23192
23193 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23194 (expr_equiv_p): Remove.
23195 (insert_set_in_table): Look at <dest, src> pair instead of expr.
23196 (hash_scan_set): Update call to insert_set_in_table.
23197 (dump_hash_table): Dump <dest, src> pair.
23198 (lookup_set): Simplify. Lookup <dest, src> pair.
23199 (compute_transp): Remove, fold heavily simplified code into...
23200 (compute_local_properties): ...here. Expect COMP and TRANSP
23201 unconditionally.
23202 (find_avail_set): Take set directly from struct expr.
23203 (find_bypass-set): Likewise.
23204 (bypass_block): Likewise.
23205 (cprop_insn): Likewise. Remove redundant INSN_P test.
23206
23207 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23208 checks on form of COND from find_implicit_sets to here.
23209 (find_implicit_sets): Cleanup control flow. Split critical edges
23210 if it exposes implicit sets. Allocate/resize implicit_sets as
23211 necessary.
23212 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23213 changed something. Run df_analyze after find_implicit_sets if any
23214 edges were split. Do not allocate implicit_sets here.
23215
23216 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23217 (gcse_obstack): Renamed to cprop_obstack.
23218 (GNEW, GNEWVEC, GNEWVAR): Remove.
23219 (gmalloc): Remove.
23220 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23221 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23222 (gcse_alloc): Likewise, and rename to cprop_alloc.
23223 (alloc_gcse_men, free_gcse_mem): Remove.
23224 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23225 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23226 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23227
23228 * cprop.c (oprs_not_set_p): Remove.
23229 (mark_set, mark_clobber): Remove.
23230 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23231 (reg_not_set_p): New function.
23232 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23233 (cprop_insn): Likewise.
23234 (cprop_jump): Use FOR_EACH_EDGE.
23235
23236 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
23237
23238 PR bootstrap/48403
23239 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23240 (rank_for_schedule): Use scheduled_insns vector instead of
23241 last_scheduled_insn.
23242 (ok_for_early_queue_removal): Likewise.
23243 (queue_to_ready): Search forward in nonscheduled_insns_begin if
23244 we have a dbg_cnt.
23245 (choose_ready): Likewise.
23246 (commit_schedule): Use VEC_iterate.
23247 (schedule_block): Initialize nonscheduled_insns_begin. If we have
23248 a dbg_cnt, use it and ensure the first insn is in the ready list.
23249 (haifa_sched_init): Allocate scheduled_insns.
23250 (sched_extend_ready_list): Don't allocate it; reserve space.
23251 (haifa_sched_finish): Free it.
23252
23253 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23254
23255 * optc-gen.awk: Always remove type from Variable entry before
23256 recording in var_seen.
23257
23258 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
23259
23260 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23261 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23262 call to tidy_fallthru_edges.
23263
23264 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23265
23266 * doc/options.texi (ToLower): Document.
23267 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23268 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23269 * opts.h (cl_option): Add cl_tolower field.
23270 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23271 arguments with lowercase strings.
23272 * config/rx/rx.opt (mcpu=): Add ToLower.
23273 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23274 argument.
23275
23276 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23277
23278 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23279
23280 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23281
23282 * config/vax/vax.c: Include reload.h.
23283
23284 2011-04-04 Anatoly Sokolov <aesok@post.ru>
23285
23286 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23287 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23288 (sparc_preferred_reload_class): New function.
23289
23290 2011-04-04 Jakub Jelinek <jakub@redhat.com>
23291
23292 PR debug/48401
23293 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23294 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23295
23296 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
23297
23298 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23299 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23300
23301 2011-04-03 Anatoly Sokolov <aesok@post.ru>
23302
23303 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23304 (ASM_OUTPUT_ALIGNED_BSS): Define.
23305
23306 2011-04-03 Michael Matz <matz@suse.de>
23307
23308 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23309 and next_slot members.
23310 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23311 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23312 (lto_streamer_cache_append): Declare.
23313 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23314 unsigned index, remove offset parameter, ensure that we append
23315 or update existing entries.
23316 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23317 parameter, update next_slot for append.
23318 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23319 parameter.
23320 (lto_streamer_cache_insert_at): Likewise.
23321 (lto_streamer_cache_append): New function.
23322 (lto_streamer_cache_lookup): Use unsigned index.
23323 (lto_streamer_cache_get): Likewise.
23324 (lto_record_common_node): Don't test tree_node_can_be_shared.
23325 (preload_common_node): Adjust call to lto_streamer_cache_insert.
23326 (lto_streamer_cache_delete): Don't free offsets member.
23327 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23328 (lto_output_string_with_length): Use lto_output_data_stream.
23329 (lto_output_tree_header): Remove ix parameter, don't write it.
23330 (lto_output_builtin_tree): Likewise.
23331 (lto_write_tree): Adjust callers to above, don't track and write
23332 offset, write unsigned index.
23333 (output_unreferenced_globals): Don't emit all global vars.
23334 (write_global_references): Use unsigned indices.
23335 (lto_output_decl_state_refs): Likewise.
23336 (write_symbol): Likewise.
23337 * lto-streamer-in.c (lto_input_chain): Move earlier.
23338 (input_function): Use unsigned index.
23339 (input_alias_pairs): Don't read and then ignore all global vars.
23340 (lto_materialize_tree): Remove ix_p parameter, don't read index,
23341 don't pass it back, use lto_streamer_cache_append.
23342 (lto_register_var_decl_in_symtab): Use unsigned index.
23343 (lto_register_function_decl_in_symtab): Likewise.
23344 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23345 index.
23346 (lto_get_builtin_tree): Don't read index, use
23347 lto_streamer_cache_append.
23348 (lto_read_tree): Adjust call to lto_materialize_tree.
23349
23350 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23351 don't use function calls in arguments to MIN.
23352
23353 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23354 twice.
23355
23356 * gimple.c (gimple_type_leader_entry): Mark deletable.
23357
23358 2011-04-03 Alan Modra <amodra@gmail.com>
23359
23360 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23361
23362 2011-04-03 Michael Matz <matz@suse.de>
23363
23364 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23365 an integer.
23366 * tree.h (tree_decl_non_common.vindex): Adjust comment.
23367
23368 2011-04-03 Michael Matz <matz@suse.de>
23369
23370 * cgraphbuild.c (record_reference): Canonicalize constructor values.
23371 * gimple-fold.c (canonicalize_constructor_val): Accept being called
23372 without function context.
23373 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23374 current_function_decl and cfun.
23375
23376 2011-04-03 Michael Matz <matz@suse.de>
23377
23378 * tree.c (decl_init_priority_insert): Don't create entry for
23379 default priority.
23380 (decl_fini_priority_insert): Ditto.
23381 (fields_compatible_p, find_compatible_field): Remove.
23382 * tree.h (fields_compatible_p, find_compatible_field): Remove.
23383 * gimple.c (gimple_compare_field_offset): Adjust block comment.
23384
23385 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
23386
23387 * combine.c (try_combine): Remove useless local variable.
23388
23389 2011-04-03 Richard Guenther <rguenther@suse.de>
23390 Ira Rosen <ira.rosen@linaro.org>
23391
23392 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23393 non-variable offsets and compare the remaining bases of the two
23394 accesses instead of looking for exact same data-ref.
23395
23396 2011-04-02 Kai Tietz <ktietz@redhat.com>
23397
23398 PR target/48416
23399 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23400
23401 * i386.c (ix86_is_msabi_thiscall): New helper function.
23402 (ix86_is_type_thiscall): New helper function.
23403 (ix86_comp_type_attributes): Handle thiscall for method-functions
23404 special.
23405 (init_cumulative_args): Likewise.
23406 (find_drap_reg): Likewise.
23407 (ix86_static_chain): Likewise.
23408 (x86_this_parameter): Likewise.
23409 (x86_output_mi_thunk): Likewise.
23410
23411 2011-04-01 Olivier Hainque <hainque@adacore.com>
23412 Nicolas Setton <setton@adacore.com>
23413 Eric Botcazou <ebotcazou@adacore.com>
23414
23415 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23416 (add_gnat_descriptive_type_attribute): New function.
23417 (gen_array_type_die): Call it.
23418 (gen_enumeration_type_die): Likewise.
23419 (gen_struct_or_union_type_die): Likewise.
23420 (modified_type_die): Likewise.
23421 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23422 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23423 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23424
23425 2011-04-01 Jakub Jelinek <jakub@redhat.com>
23426
23427 PR bootstrap/48148
23428 * dwarf2out.c (resolve_addr): Don't call force_decl_die
23429 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23430
23431 Revert:
23432 2011-03-17 Richard Guenther <rguenther@suse.de>
23433
23434 PR bootstrap/48148
23435 * lto-cgraph.c (input_overwrite_node): Clear the abstract
23436 origin for decls in other ltrans units.
23437 (input_varpool_node): Likewise.
23438
23439 2011-04-01 Jakub Jelinek <jakub@redhat.com>
23440
23441 PR middle-end/48335
23442 * expr.c (expand_assignment): Handle all possibilities
23443 if TO_RTX is CONCAT.
23444 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23445 (store_split_bit_field): If SUBREG_REG (op0) or
23446 op0 itself has smaller mode than word, return it
23447 for offset 0 and const0_rtx for out-of-bounds stores.
23448 If word is const0_rtx, skip it.
23449
23450 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
23451
23452 * config/h8300/h8300.c (print_operand_address): Rename to...
23453 (h8300_print_operand_address): ...this. Make static. Adjust comments.
23454 Call h8300_print_operand and h8300_print_operand_address instead of
23455 print_operand and print_operand_address. Declare.
23456 (print_operand): Renake to...
23457 (h8300_print_operand): ...this. Make static. Adjust comments.
23458 Call h8300_print_operand instead of print_operand. Declare.
23459 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23460 (h8300_register_move_cost): Likewise.
23461 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23462 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23463 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23464 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23465 * config/h8300/h8300-protos.h (print_operand): Delete.
23466 (print_operand_address): Delete.
23467
23468 2011-04-01 Richard Henderson <rth@redhat.com>
23469
23470 PR 48400
23471 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23472 in strict mode before dwarf4. Re-order tests to early out
23473 before switching sections.
23474
23475 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
23476
23477 * config/h8300/constraints.md: New file.
23478 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
23479 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23480 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23481 * config/h8300/predicates.md (bit_operand): Likewise.
23482 (incdec_operand): Use satisfies_constraint_M and
23483 satisfies_constraint_O. Don't use C code block.
23484 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23485 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23486 (compute_mov_length): Use satisfies_constraint_G.
23487 (fix_bit_operand): Use satisfies_constraint_U.
23488 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23489 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23490 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23491 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23492 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23493 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23494 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23495 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23496 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23497 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23498 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23499 (EXTRA_MEMORY_CONSTRAINT): Delete.
23500
23501 2011-04-01 Andrew Pinski <pinskia@gmail.com>
23502 Michael Meissner <meissner@linux.vnet.ibm.com>
23503
23504 PR target/48262
23505 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23506 operands, as per the specifications.
23507
23508 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23509 (vec_extract_evenv4sf): Ditto.
23510 (vec_extract_evenv8hi): Ditto.
23511 (vec_extract_evenv16qi): Ditto.
23512 (vec_extract_oddv4si): Ditto.
23513
23514 2011-03-31 Mark Wielaard <mjw@redhat.com>
23515
23516 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23517 high_pc attribute if the CU has no associated code. Only output
23518 DW_AT_entry_pc for CU if not generating strict dwarf and
23519 dwarf_version < 4.
23520
23521 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
23522
23523 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23524 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23525 out of ...
23526 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23527 * final.c (final_start_function): Call the new function rather
23528 than using a NULL argument for dwarf2out_frame_debug.
23529
23530 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23531 that contains the prologue.
23532
23533 * haifa-sched.c (queue_insn): New arg REASON. All callers
23534 changed. Print it in debugging output.
23535
23536 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23537
23538 * sched-ebb.c (begin_schedule_ready): Remove second argument.
23539 Split most of the code into...
23540 (begin_move_insn): ... here. New function.
23541 (ebb_sched_info): Add a pointer to it.
23542 * haifa-sched.c (scheduled_insns): New static variable.
23543 (sched_extend_ready_list): Allocate it.
23544 (schedule_block): Use it to record the order of scheduled insns.
23545 Perform RTL changes to move insns only after all scheduling
23546 decisions have been made.
23547 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23548 begin_move_insn field.
23549 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23550 * sched-int.h (struct haifa_sched_info): Remove second argument
23551 from begin_schedule_ready hook. Add new member begin_move_insn.
23552 * sched-rgn.c (begin_schedule_ready): Remove second argument.
23553 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23554
23555 * haifa-sched.c (prune_ready_list): New function, broken out of
23556 schedule_block.
23557 (schedule_block): Use it.
23558
23559 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23560
23561 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
23562
23563 2011-04-01 Kai Tietz <ktietz@redhat.com>
23564
23565 * config.gcc (*-*-mingw*): Allow as option the
23566 posix threading model.
23567 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
23568 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
23569 definition.
23570 (CPP_SPEC): Add pthread/no-pthread handling.
23571 (LIB_SPEC): Likewise.
23572 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
23573 (LIB_SPEC): Likewise.
23574 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
23575 flag to pass -pthread option for shared libgcc build.
23576 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
23577 for shared libgcc build.
23578 * config/i386/t-mingw-pthread: New file.
23579 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
23580 New define to enable use of library pthread by default.
23581 * config/i386/mingw.opt (pthread): New driver option.
23582 (no-pthread): New driver option.
23583 * config/i386/cygming.opt: Make sure trailing empty line is retained.
23584 * config/i386/mingw-w64.opt: Likewise.
23585
23586 2011-04-01 Gary Funck <gary@intrepid.com>
23587
23588 * c-decl.c (grokdeclarator): Fix formatting.
23589
23590 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
23591
23592 * expr.c (emit_block_move_via_movmem): Use n_generator_args
23593 instead of n_operands.
23594 (set_storage_via_setmem): Likewise.
23595 * optabs.c (maybe_gen_insn): Likewise.
23596 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
23597 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
23598 (mips_expand_builtin_direct): Likewise.
23599 * config/spu/spu.c (expand_builtin_args): Likewise.
23600
23601 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
23602
23603 * recog.h (insn_data_d): Add n_generator_args.
23604 * genoutput.c (data): Likewise.
23605 (output_insn_data): Print it.
23606 (max_opno, num_dups): Delete.
23607 (scan_operands): Just fill in "d->operand[...]".
23608 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
23609
23610 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
23611
23612 * gensupport.h (pattern_stats): New structure.
23613 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
23614 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
23615 (max_operand_1, max_operand_vec): Delete.
23616 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
23617
23618 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
23619
23620 * emit-rtl.c (emit_pattern_after_setloc): New function.
23621 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
23622 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
23623 (emit_pattern_after): New function.
23624 (emit_insn_after, emit_jump_insn_after): Call it.
23625 (emit_call_insn_after, emit_debug_insn_after): Likewise.
23626 (emit_pattern_before_setloc): New function.
23627 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
23628 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
23629 Likewise.
23630 (emit_pattern_before): New function.
23631 (emit_insn_before, emit_jump_insn_before): Call it.
23632 (emit_call_insn_before, emit_debug_insn_before): Likewise.
23633
23634 2011-03-31 Richard Henderson <rth@redhat.com>
23635
23636 * dwarf2out.c (dw_separate_line_info_ref): Remove.
23637 (dw_separate_line_info_entry): Remove.
23638 (enum dw_line_info_opcode): New.
23639 (dw_line_info_entry): Use it.
23640 (dw_line_info_table, dw_line_info_table_p): New.
23641 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
23642 (line_info_table, line_info_label_num): Remove.
23643 (line_info_table_in_use): Remove.
23644 (separate_line_info_table): Remove.
23645 (separate_line_info_table_allocated): Remove.
23646 (separate_line_info_table_in_use): Remove.
23647 (LINE_INFO_TABLE_INCREMENT): Remove.
23648 (line_info_label_num): New.
23649 (cur_line_info_table): New.
23650 (text_section_line_info, cold_text_section_line_info): New.
23651 (separate_line_info): New.
23652 (SEPARATE_LINE_CODE_LABEL): Remove.
23653 (print_dwarf_line_table): Remove.
23654 (debug_dwarf): Don't dump it.
23655 (output_one_line_info_table): New.
23656 (output_line_info): Use it.
23657 (new_line_info_table): New.
23658 (set_cur_line_info_table): New.
23659 (dwarf2out_switch_text_section): Use it.
23660 (dwarf2out_begin_function): Likewise.
23661 (push_dw_line_info_entry): New.
23662 (dwarf2out_source_line): Rewrite for new line info tables.
23663 (dwarf2out_init): Remove dead initailizations.
23664
23665 2011-03-31 Joseph Myers <joseph@codesourcery.com>
23666
23667 * opts.h (cl_option): Add comments to fields. Add bit-fields for
23668 various flags.
23669 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
23670 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
23671 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
23672 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
23673 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
23674 * opt-functions.awk (flag_init, switch_bit_fields): New.
23675 (switch_flags): Don't handle flags moved to bit-fields. Don't
23676 generate CL_MISSING_OK or CL_SAVE.
23677 * optc-gen.awk: Update to generate bit-field output as well as
23678 flags field.
23679 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
23680 bit-field instead of CL_REJECT_DRIVER flag.
23681 * opts-common.c (generate_canonical_option,
23682 decode_cmdline_option): Use bit-fields instead of CL_* flags.
23683 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
23684 instead of CL_REJECT_NEGATIVE flag.
23685 * toplev.c (print_switch_values): Use cl_report bit-field instead
23686 of CL_REPORT flag.
23687
23688 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
23689
23690 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
23691 a zero minimum index only if it is redundant.
23692
23693 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
23694
23695 PR rtl-optimization/48381
23696 * ira-color.c (assign_hard_reg): Use hard reg set intersection
23697 instead of ira_class_hard_reg_index for calculating conflicting
23698 hard registers.
23699
23700 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
23701
23702 * cprop.c: Clean up hash table building.
23703 (reg_avail_info): Remove.
23704 (oprs_available_p): Remove.
23705 (record_last_reg_set_info): Remove.
23706 (record_last_set_info): Remove.
23707 (reg_available_p): New function.
23708 (gcse_constant_p): Do not treat unfolded conditions as constants.
23709 (make_set_regs_unavailable): New function.
23710 (hash_scan_set): Simplify with new reg_available_p.
23711 (compute_hash_table_work): Traverse insns stream only once.
23712 Do not compute reg_avail_info. Traverse insns in reverse order.
23713 Record implicit sets after recording explicit sets from the block.
23714
23715 2011-03-31 Michael Matz <matz@suse.de>
23716
23717 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
23718
23719 2011-03-31 Anatoly Sokolov <aesok@post.ru>
23720
23721 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
23722 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
23723 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23724 (h8300_mode_dependent_address_p): New function.
23725 (h8300_get_index): Make static.
23726
23727 2011-03-31 Jeff Law <law@redhat.com>
23728
23729 * reload1.c (elimination_effects): Fix typo in recent change.
23730
23731 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
23732 typo potentially leading to null pointer dereference.
23733
23734 * caller-save.c (new_saved_hard_reg): Eliminate return value.
23735 (setup_save_areas): Corresponding changes to avoid useless
23736 assignments.
23737
23738 * jump.c (reversed_comparison_code_parts): Avoid successive return
23739 statements when REVERSE_CONDITION is defined.
23740
23741 * expr.c (expand_assignment): Avoid useless assignments.
23742 (expand_expr_real_1): Likewise.
23743 (expand_expr_real_2): Avoid useless statements.
23744
23745 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
23746
23747 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23748
23749 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
23750 statements.
23751
23752 * stmt.c (expand_expr_stmt): Avoid useless assignment.
23753
23754 2011-03-31 Joseph Myers <joseph@codesourcery.com>
23755
23756 PR target/47109
23757 * doc/tm.texi.in (TARGET_VERSION): Remove.
23758 * doc/tm.texi: Regenerate.
23759 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
23760 * collect2.c (main): Don't use TARGET_VERSION.
23761 * mips-tdump.c (main): Don't use TARGET_VERSION.
23762 * mips-tfile.c (main): Don't use TARGET_VERSION.
23763 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
23764 * config/rs6000/vxworksae.h: Remove.
23765 * config/alpha/alpha.h (TARGET_VERSION): Remove.
23766 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
23767 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
23768 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
23769 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23770 * config/arm/arm.h (TARGET_VERSION): Remove.
23771 * config/arm/coff.h (TARGET_VERSION): Remove.
23772 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
23773 * config/arm/elf.h (TARGET_VERSION): Remove.
23774 * config/arm/freebsd.h (TARGET_VERSION): Remove.
23775 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
23776 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
23777 * config/arm/pe.h (TARGET_VERSION): Remove.
23778 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
23779 * config/arm/semi.h (TARGET_VERSION): Remove.
23780 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
23781 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
23782 * config/arm/vxworks.h (TARGET_VERSION): Remove.
23783 * config/avr/avr.h (TARGET_VERSION): Remove.
23784 * config/bfin/bfin.h (TARGET_VERSION): Remove.
23785 * config/fr30/fr30.h (TARGET_VERSION): Remove.
23786 * config/frv/frv.h (TARGET_VERSION): Remove.
23787 * config/h8300/h8300.h (TARGET_VERSION): Remove.
23788 * config/i386/cygwin.h (TARGET_VERSION): Remove.
23789 * config/i386/darwin.h (TARGET_VERSION): Remove.
23790 * config/i386/darwin64.h (TARGET_VERSION): Remove.
23791 * config/i386/djgpp.h (TARGET_VERSION): Remove.
23792 * config/i386/freebsd.h (TARGET_VERSION): Remove.
23793 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
23794 * config/i386/gnu.h (TARGET_VERSION): Remove.
23795 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
23796 * config/i386/i386elf.h (TARGET_VERSION): Remove.
23797 * config/i386/linux.h (TARGET_VERSION): Remove.
23798 * config/i386/linux64.h (TARGET_VERSION): Remove.
23799 * config/i386/lynx.h (TARGET_VERSION): Remove.
23800 * config/i386/mingw32.h (TARGET_VERSION): Remove.
23801 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
23802 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
23803 * config/i386/netware.h (TARGET_VERSION): Remove.
23804 * config/i386/nto.h (TARGET_VERSION): Remove.
23805 * config/i386/openbsd.h (TARGET_VERSION): Remove.
23806 * config/i386/vxworks.h (TARGET_VERSION): Remove.
23807 * config/ia64/elf.h (TARGET_VERSION): Remove.
23808 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
23809 * config/ia64/hpux.h (TARGET_VERSION): Remove.
23810 * config/ia64/linux.h (TARGET_VERSION): Remove.
23811 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23812 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
23813 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23814 * config/lm32/lm32.h (TARGET_VERSION): Remove.
23815 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
23816 * config/m32c/m32c.h (TARGET_VERSION): Remove.
23817 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
23818 * config/m32r/m32r.h (TARGET_VERSION): Remove.
23819 * config/m68k/linux.h (TARGET_VERSION): Remove.
23820 * config/m68k/m68k.h (TARGET_VERSION): Remove.
23821 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
23822 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
23823 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
23824 * config/mep/mep.h (TARGET_VERSION): Remove.
23825 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
23826 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23827 * config/mips/iris6.h (MACHINE_TYPE): Remove.
23828 * config/mips/linux.h (TARGET_VERSION): Remove.
23829 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
23830 * config/mips/vxworks.h (TARGET_VERSION): Remove.
23831 * config/mmix/mmix.h (TARGET_VERSION): Remove.
23832 * config/mn10300/linux.h (TARGET_VERSION): Remove.
23833 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
23834 * config/pa/pa.h (TARGET_VERSION): Remove.
23835 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
23836 * config/picochip/picochip.h (TARGET_VERSION): Remove.
23837 * config/rs6000/aix.h (TARGET_VERSION): Remove.
23838 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
23839 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
23840 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
23841 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
23842 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
23843 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
23844 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
23845 * config/rs6000/linux.h (TARGET_VERSION): Remove.
23846 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
23847 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
23848 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
23849 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
23850 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
23851 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
23852 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
23853 * config/s390/linux.h (TARGET_VERSION): Remove.
23854 * config/s390/s390.h (TARGET_VERSION): Remove.
23855 * config/s390/tpf.h (TARGET_VERSION): Remove.
23856 * config/score/score.h (TARGET_VERSION): Remove.
23857 * config/sh/linux.h (TARGET_VERSION): Remove.
23858 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
23859 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
23860 * config/sh/sh.h (TARGET_VERSION): Remove.
23861 * config/sh/sh64.h (TARGET_VERSION): Remove.
23862 * config/sh/superh.h (TARGET_VERSION): Remove.
23863 * config/sh/vxworks.h (TARGET_VERSION): Remove.
23864 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
23865 * config/sparc/linux.h (TARGET_VERSION): Remove.
23866 * config/sparc/linux64.h (TARGET_VERSION): Remove.
23867 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
23868 TARGET_NAME32, TARGET_NAME): Remove.
23869 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
23870 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
23871 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
23872 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
23873 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
23874 * config/spu/spu.h (TARGET_VERSION): Remove.
23875 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
23876 * config/v850/v850.h (TARGET_VERSION): Remove.
23877 * config/vax/linux.h (TARGET_VERSION): Remove.
23878 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
23879 * config/xtensa/elf.h (TARGET_VERSION): Remove.
23880 * config/xtensa/linux.h (TARGET_VERSION): Remove.
23881
23882 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
23883
23884 PR target/48142
23885 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
23886 frame-related from frame-unrelated adjustments to the stack pointer.
23887
23888 2011-03-31 Jakub Jelinek <jakub@redhat.com>
23889
23890 * common.opt (fdebug-types-section): Move earlier.
23891 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
23892
23893 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
23894
23895 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
23896 var.
23897
23898 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
23899
23900 * tree.h (CASE_CHAIN): Define.
23901 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
23902 (gimple_redirect_edge_and_branch): Likewise.
23903
23904 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
23905
23906 PR middle-end/48367
23907 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
23908 calculation.
23909
23910 2011-03-30 Jeff Law <law@redhat.com>
23911
23912 * PR bootstrap/48371
23913 * reload1.c (reload): Fix botch in last change.
23914
23915 * reload.h (struct reload): Fix typo introduced in last change.
23916
23917 2011-03-30 Joseph Myers <joseph@codesourcery.com>
23918
23919 * config/arm/arm.opt (mhard-float, msoft-float): Mark
23920 Undocumented. Remove help text.
23921 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
23922 -mhard-float.
23923
23924 2011-03-30 Joseph Myers <joseph@codesourcery.com>
23925
23926 * doc/options.texi (NegativeAlias): Document.
23927 (Alias): Mention NegativeAlias.
23928 * opt-functions.awk: Handle NegativeAlias.
23929 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
23930 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
23931 * opts.h (CL_NEGATIVE_ALIAS): Define.
23932 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
23933 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
23934 OPT_mspe_.
23935 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
23936 Alias entries.
23937 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23938 mno-spe and mno-isel instead of mspe=no and -misel=no.
23939
23940 2011-03-29 Mark Wielaard <mjw@redhat.com>
23941
23942 * common.opt (fdebug-types-section): New flag.
23943 * doc/invoke.texi: Document new -fno-debug-types-section flag.
23944 * dwarf2out.c (use_debug_types): New define.
23945 (struct die_struct): Mark die_id with GTY desc use_debug_types.
23946 (print_die): Guard output of type unit signatures using
23947 use_debug_types.
23948 (build_abbrev_table): Replace assert of dwarf_version >= 4
23949 with assert on use_debug_types.
23950 (size_of_die): Likewise.
23951 (unmark_dies): Likewise.
23952 (value_format): Decide AT_ref_external form on use_debug_types.
23953 (output_die): Replace dwarf_version version check guard with
23954 use_debug_types where appropriate.
23955 (modified_type_die): Likewise.
23956 (gen_reference_type_die): Likewise.
23957 (dwarf2out_start_source_file): Likewise.
23958 (dwarf2out_end_source_file): Likewise.
23959 (prune_unused_types_walk_attribs): Likewise.
23960 (dwarf2out_finish): Likewise.
23961
23962 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
23963
23964 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
23965
23966 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
23967
23968 PR rtl-optimization/48332
23969 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
23970 mode of input operand N and modeN to its actual mode.
23971
23972 2011-03-30 Jeff Law <law@redhat.com>
23973
23974 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
23975 define accessor macro.
23976 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
23977 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
23978 (reg_equiv_init): Likewise.
23979 (reg_equivs_size): New variable.
23980 (reg_equiv_init_size): Remove.
23981 (allocate_initial_values): Move prototype to here from....
23982 * integrate.h (allocate_initial_values): Remove prototype.
23983 * integrate.c: Include reload.h.
23984 (allocate_initial_values): Corresponding changes.
23985 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
23986 (fix_reg_equiv_init, no_equiv): Corresponding changes.
23987 (update_equiv_regs): Corresponding changes.
23988 (ira): Corresponding changes.
23989 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
23990 (push_secondary_reload): Corresponding changes.
23991 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
23992 (make_memloc, find_reloads_address): Corresponding changes.
23993 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
23994 (find_reloads_address_1): Corresponding changes.
23995 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
23996 (refers_to_regno_for_reload_p): Corresponding changes.
23997 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
23998 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
23999 * reload1.c: Include ggc.h.
24000 (grow_reg_equivs): New function.
24001 (replace_pseudos_in, reload): Corresponding changes.
24002 (calculate_needs_all_insns, alter_regs): Corresponding changes.
24003 (eliminate_regs_1, elimination_effects): Corresponding changes.
24004 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24005 (delete_output_reload): Likewise.
24006 * caller-save.c (mark_referenced_regs): Corresponding changes.
24007 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24008 * frv/predicates.md (frv_load_operand): Corresponding changes.
24009 * microblaze/microblaze.c (double_memory_operand): Corresponding
24010 changes.
24011 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24012 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24013 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24014 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24015 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24016 changes.
24017 * pa/pa.c (emit_move_sequence): Corresponding changes.
24018 * vax/vax.c (nonindexed_address_p): Corresponding changes.
24019
24020 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24021
24022 PR target/47551
24023 * config/arm/arm.c (coproc_secondary_reload_class): Handle
24024 structure modes. Don't check neon_vector_mem_operand for
24025 vector or structure modes.
24026
24027 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24028 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24029
24030 PR target/43590
24031 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24032 operand 1 and reshuffle the operands to match.
24033 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24034
24035 2011-03-30 Christian Schüler <cschueler@gmx.de>
24036
24037 PR driver/48208
24038 * config/c.opt (F): Added 'Driver' to -F option.
24039
24040 PR driver/48260
24041 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24042 handler function.
24043 * config/darwin.opt: Added '-arch' option.
24044
24045 2011-03-30 Nick Clifton <nickc@redhat.com>
24046
24047 * config/rx/rx.md: Add peepholes and patterns to combine
24048 extending loads and simple arithmetic instructions.
24049 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24050 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24051 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24052 modes to use pre-decrement and post-increment addressing.
24053 (rx_is_restricted_memory_address): Add range checking of REG+INT
24054 addresses.
24055 (rx_print_operand): Add support for %Q. Fix handling of %Q.
24056 (rx_memory_move_cost): Adjust cost of stores.
24057 (rx_adjust_insn_length): New function.
24058
24059 2011-03-30 Jakub Jelinek <jakub@redhat.com>
24060
24061 PR c/48305
24062 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24063 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24064 matching arg00/arg01 types.
24065
24066 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
24067
24068 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24069 last_location to UNKNOWN_LOCATION.
24070
24071 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
24072
24073 PR target/48349
24074 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24075 FLOAT_SSE_REGS.
24076
24077 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24078 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24079
24080 PR bootstrap/48337
24081 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24082 Init(PROCESSOR_V7).
24083 (sparc_cpu): Likewise.
24084 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24085 PROCESSOR_V7.
24086
24087 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24088
24089 PR target/48336
24090 PR middle-end/48342
24091 PR rtl-optimization/48345
24092 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24093 hard regs for given mode from profitable regs when doing secondary
24094 allocation.
24095
24096 2011-03-29 Jeff Law <law@redhat.com>
24097
24098 PR bootstrap/48327
24099 * tree-ssa-threadupdate.c (struct redirection_data): Remove
24100 do_not_duplicate field.
24101 (lookup_redirection_data): Corresponding changes.
24102 (create_duplicates): Always create a template block.
24103 (redirect_edges): Remove code which reused the original block
24104 when it was going to become unreachable code.
24105 (thread_block): Don't set do_not_duplicate field.
24106
24107 2011-03-29 Joseph Myers <joseph@codesourcery.com>
24108
24109 * lto-opts.c (register_user_option_p, lto_register_user_option):
24110 Make type argument unsigned.
24111 * lto-streamer.h (lto_register_user_option): Make type argument
24112 unsigned.
24113 * opth-gen.awk: Make CL_* macros unsigned.
24114 * opts-common.c (find_opt): Make lang_mask argument unsigned.
24115 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24116 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24117 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24118 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24119 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24120 (find_opt): Make lang_mask argument unsigned.
24121
24122 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24123
24124 PR rtl-optimization/48331
24125 PR rtl-optimization/48334
24126 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24127 for any used algorithm.
24128
24129 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24130
24131 * ira-conflicts.c (build_object_conflicts): Add unused attribute
24132 to parent_max.
24133
24134 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
24135
24136 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24137 (alpha_option_override): Don't set alpha_sr_alias_set.
24138 (emit_frame_store_1): Use gen_frame_mem rather than calling
24139 set_mem_alias_set.
24140 (alpha_expand_epilogue): Ditto.
24141
24142 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
24143
24144 PR tree-optimization/48290
24145 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24146 vectorization, check that relevant phis in the basic block after
24147 the inner loop are really inner loop's exit phis.
24148
24149 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
24150
24151 PR debug/48190
24152 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24153 (cached_dw_loc_list_def): New structure.
24154 (cached_dw_loc_list): New typedef.
24155 (cached_dw_loc_list_table): New variable.
24156 (cached_dw_loc_list_table_hash): New function.
24157 (cached_dw_loc_list_table_eq): Likewise.
24158 (add_location_or_const_value_attribute): Take a bool cache_p.
24159 Cache the list when the parameter is true.
24160 (gen_formal_parameter_die): Update caller.
24161 (gen_variable_die): Likewise.
24162 (dwarf2out_finish): Likewise.
24163 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24164 while generating debug info for the decl.
24165 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24166 (dwarf2out_init): Initialize cached_dw_loc_list_table.
24167 (resolve_addr): Cache the result of resolving a chain of
24168 location lists.
24169
24170 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
24171
24172 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24173 conflict object hard regset nodes have intersecting hard reg sets.
24174
24175 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24176 after regstat_init_n_sets_and_refs.
24177
24178 * ira.c: Add more comments at the top.
24179 (setup_stack_reg_pressure_class, setup_pressure_classes):
24180 Add comments how we compute the register pressure classes.
24181 (setup_allocno_and_important_classes): Add more comments.
24182 (setup_class_translate_array, reorder_important_classes)
24183 (setup_reg_class_relations): Add comments.
24184
24185 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
24186 start of the file.
24187
24188 * ira-color.c: Add 2011 to the Copyright line.
24189 (assign_hard_reg): Add more comments.
24190 (improve_allocation): Ditto.
24191
24192 * ira-costs.c: Add 2011 to the Copyright line.
24193 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24194 comments.
24195 (setup_regno_cost_classes_by_mode): Ditto.
24196
24197 Initial patches from ira-improv branch:
24198
24199 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
24200
24201 * ira-build.c (ira_create_object): Remove initialization of
24202 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
24203 (ira_create_allocno): Remove initialization of
24204 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24205 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24206 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24207 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24208 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24209 Initialize ALLOCNO_ADD_DATA.
24210 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24211 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24212 ALLOCNO_REG.
24213 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
24214 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24215
24216 * ira.c (ira_reallocate): Remove.
24217 (setup_pressure_classes): Call
24218 ira_init_register_move_cost_if_necessary. Use
24219 ira_register_move_cost instead of ira_get_register_move_cost.
24220 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24221 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24222
24223 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24224 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24225 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24226 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24227 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24228 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24229 Fix formatting.
24230 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24231 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24232 (struct allocno_color_data): New.
24233 (allocno_color_data_t): New typedef.
24234 (allocno_color_data): New definition.
24235 (ALLOCNO_COLOR_DATA): New macro.
24236 (struct object_color_data): New.
24237 (object_color_data_t): New typedef.
24238 (object_color_data): New definition.
24239 (OBJECT_COLOR_DATA): New macro.
24240 (update_copy_costs, calculate_allocno_spill_cost): Call
24241 ira_init_register_move_cost_if_necessary. Use
24242 ira_register_move_cost instead of ira_get_register_move_cost.
24243 (move_spill_restore, update_curr_costs): Ditto.
24244 (allocno_spill_priority): Make it inline.
24245 (color_pass): Allocate and free allocno_color_dat and object_color_data.
24246 (struct coalesce_data, coalesce_data_t): New.
24247 (allocno_coalesce_data): New definition.
24248 (ALLOCNO_COALESCE_DATA): New macro.
24249 (merge_allocnos, coalesced_allocno_conflict_p): Use
24250 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24251 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24252 (coalesce_allocnos): Ditto.
24253 (setup_coalesced_allocno_costs_and_nums): Ditto.
24254 (collect_spilled_coalesced_allocnos): Ditto.
24255 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24256 (setup_slot_coalesced_allocno_live_ranges): Ditto.
24257 (coalesce_spill_slots): Ditto.
24258 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
24259 free allocno_coalesce_data.
24260
24261 * ira-conflicts.c: Fix formatting.
24262 (process_regs_for_copy): Call
24263 ira_init_register_move_cost_if_necessary. Use
24264 ira_register_move_cost instead of ira_get_register_move_cost.
24265 (build_object_conflicts): Optimize.
24266
24267 * ira-costs.c (record_reg_classes): Optimize. Call
24268 ira_init_register_move_cost_if_necessary. Use
24269 ira_register_move_cost, ira_may_move_in_cost, and
24270 ira_may_move_out_cost instead of ira_get_register_move_cost and
24271 ira_get_may_move_cost.
24272 (record_address_regs): Ditto.
24273 (scan_one_insn): Optimize.
24274 (find_costs_and_classes): Optimize.
24275 (process_bb_node_for_hard_reg_moves): Call
24276 ira_init_register_move_cost_if_necessary. Use
24277 ira_register_move_cost instead of ira_get_register_move_cost.
24278
24279 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24280 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24281 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24282 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24283 definitions.
24284 (ira_initiate_emit_data, ira_finish_emit_data)
24285 (create_new_allocno): New functions.
24286 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24287 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24288 Use ira_register_move_cost instead of ira_get_register_move_cost.
24289
24290 * ira-int.h: Fix some comments.
24291 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24292 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24293 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24294 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
24295 add_data.
24296 (struct ira_allocno): Make mode and aclass a bitfield. Move other
24297 bitfield after mode. Make hard_regno a short int. Make
24298 hard_regno short. Remove first_coalesced_allocno and
24299 next_coalesced_allocno. Move mem_optimized_dest_p,
24300 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24301 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
24302 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24303 temp, colorable_p. Add new member add_data.
24304 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24305 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24306 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24307 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24308 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24309 (ALLOCNO_ADD_DATA): New macro.
24310 (ira_emit_data_t): New typedef.
24311 (struct ira_emit_data): New. Move mem_optimized_dest_p,
24312 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24313 from struct ira_allocno.
24314 (ALLOCNO_EMIT_DATA): New macro.
24315 (ira_allocno_emit_data, allocno_emit_reg): New.
24316 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24317 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24318 (OBJECT_ADD_DATA): New macro.
24319 (ira_reallocate): Remove.
24320 (ira_initiate_emit_data, ira_finish_emit_data): New.
24321 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24322 (ira_init_register_move_cost_if_necessary): New.
24323 (ira_object_conflict_iter_next): Merge into
24324 ira_object_conflict_iter_cond.
24325 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24326
24327 * ira-live.c (process_single_reg_class_operands): Call
24328 ira_init_register_move_cost_if_necessary. Use
24329 ira_register_move_cost instead of ira_get_register_move_cost.
24330
24331 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
24332
24333 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24334
24335 * ira-costs.c: Fix formatting.
24336 (cost_classes, cost_classes_num): Remove.
24337 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24338 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24339 (cost_classes_del, cost_classes_htab): New.
24340 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24341 (initiate_regno_cost_classes, setup_cost_classes): New.
24342 (setup_regno_cost_classes_by_aclass): New.
24343 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24344 (record_reg_classes): Use regno_cost_classes instead of
24345 cost_classes. Move checking opposite operand up.
24346 (record_address_regs): Use regno_cost_classes
24347 instead of cost_classes.
24348 (scan_one_insn): Ditto. Use always general register.
24349 (print_allocno_costs): Use regno_cost_classes instead of
24350 cost_classes.
24351 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
24352 (find_costs_and_classes): Set up cost classes for each registers.
24353 Use also their mode for this. Use regno_cost_classes instead of
24354 cost_classes.
24355 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24356 cost_classes.
24357 (free_ira_costs, ira_init_costs): Don't use cost_classes.
24358 (ira_costs, ira_set_pseudo_classes): Call
24359 initiate_regno_cost_classes and finish_regno_cost_classes.
24360
24361 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
24362
24363 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24364
24365 * target.def (ira_cover_classes): Remove.
24366
24367 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24368
24369 * doc/tm.texi.in: Ditto.
24370
24371 * ira-conflicts.c: Remove mentioning cover classes from the file.
24372 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
24373 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
24374
24375 * targhooks.c (default_ira_cover_classes): Remove.
24376
24377 * targhooks.h (default_ira_cover_classes): Ditto.
24378
24379 * haifa-sched.c: Remove mentioning cover classes from the file.
24380 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
24381 ira_pressure_classes and ira_pressure_classes_num instead of
24382 ira_reg_class_cover_size and ira_reg_class_cover. Use
24383 sched_regno_pressure_class instead of sched_regno_cover_class.
24384 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24385 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24386
24387 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
24388 classes from the file.
24389 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24390 (struct object_hard_regs, struct object_hard_regs_node): New.
24391 (struct ira_object): New members profitable_hard_regs,
24392 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24393 (struct ira_allocno): Rename cover_class to aclass. Rename
24394 cover_class_cost and updated_cover_class_cost to class_cost and
24395 updated_class_cost. Remove splay_removed_p and
24396 left_conflict_size. Add new members colorable_p.
24397 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24398 (ALLOCNO_COLORABLE_P): New macro.
24399 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24400 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24401 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24402 (OBJECT_...): Rename parameter C to O.
24403 (OBJECT_PROFITABLE_HARD_REGS): New macro.
24404 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24405 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24406 (struct target_ira_int): New members x_ira_max_memory_move_cost,
24407 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24408 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24409 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24410 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
24411 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
24412 x_ira_reg_class_subunion.
24413 (ira_max_memory_move_cost, ira_max_register_move_cost)
24414 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24415 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24416 (ira_important_class_nums, ira_reg_class_superunion): New macros.
24417 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24418 (ira_reg_class_union): Rename to ira_reg_class_subunion.
24419 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24420 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24421 (ira_tune_allocno_costs_and_cover_classes): Rename to
24422 ira_tune_allocno_costs.
24423 (ira_debug_hard_regs_forest): New.
24424 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24425 (ira_object_conflict_iter_next): Fix comments.
24426 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24427 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24428 cover_class to aclass.
24429 (ira_allocate_and_accumulate_costs): Ditto.
24430 (ira_allocate_and_set_or_copy_costs): Ditto.
24431
24432 * opts.c (decode_options): Remove ira_cover_class check.
24433
24434 * ira-color.c: Remove mentioning cover classes from the file. Use
24435 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24436 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24437 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
24438 (splay-tree.h): Remove include.
24439 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24440 before copy_freq_compare_func.
24441 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24442 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24443 New definitions.
24444 (hard_regs_roots, hard_regs_node_vec): Ditto.
24445 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24446 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24447 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24448 (create_new_object_hard_regs_node): Ditto.
24449 (add_new_object_hard_regs_node_to_forest): Ditto.
24450 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24451 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24452 Ditto.
24453 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24454 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24455 (remove_unused_object_hard_regs_nodes): Ditto.
24456 (enumerate_object_hard_regs_nodes): Ditto.
24457 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24458 (object_hard_regs_subnode_t): Ditto.
24459 (struct object_hard_regs_subnode): Ditto.
24460 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24461 (setup_object_hard_regs_subnode_index): Ditto.
24462 (get_object_hard_regs_subnodes_num): Ditto.
24463 (form_object_hard_regs_nodes_forest): Ditto.
24464 (finish_object_hard_regs_nodes_tree): Ditto.
24465 (finish_object_hard_regs_nodes_forest): Ditto.
24466 (allocnos_have_intersected_live_ranges_p): Rename to
24467 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
24468 (pseudos_have_intersected_live_ranges_p): Rename to
24469 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
24470 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24471 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24472 (update_copy_costs): Remove assert. Skip cost update if the hard
24473 reg does not belong the class.
24474 (assign_hard_reg): Process only profitable hard regs.
24475 (uncolorable_allocnos_num): Make it scalar.
24476 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24477 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24478 and ira_reg_class_max_nregs.
24479 (bucket_allocno_compare_func): Check frequency first.
24480 (sort_bucket): Add compare function as a parameter.
24481 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24482 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24483 (push_allocno_to_stack): Rewrite for checking new allocno
24484 colorability.
24485 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
24486 (push_only_colorable): Pass new parameter to sort_bucket.
24487 (push_allocno_to_spill): Remove.
24488 (allocno_spill_priority_compare): Make it inline and rewrite.
24489 (splay_tree_allocate, splay_tree_free): Remove.
24490 (allocno_spill_sort_compare): New function.
24491 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
24492 build and use splay tree. Choose first allocno in uncolorable
24493 allocno bucket to spill. Remove setting spill cost.
24494 (all_conflicting_hard_regs): Remove.
24495 (setup_allocno_available_regs_num): Check only profitable hard
24496 regs. Print info about hard regs nodes.
24497 (setup_allocno_left_conflicts_size): Remove.
24498 (put_allocno_into_bucket): Don't call
24499 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
24500 (improve_allocation): New.
24501 (color_allocnos): Call setup_profitable_hard_regs,
24502 form_object_hard_regs_nodes_forest, improve_allocation,
24503 finish_object_hard_regs_nodes_forest. Setup spill cost.
24504 (print_loop_title): Use pressure classes.
24505 (color_allocnso): Ditto.
24506 (do_coloring): Remove allocation and freeing splay_tree_node_pool
24507 and allocnos_for_spilling.
24508 (ira_sort_regnos_for_alter_reg): Don't setup members
24509 {first,next}_coalesced_allocno.
24510 (color): Remove allocating and freeing removed_splay_allocno_vec.
24511 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24512 prohibited_class_mode_regs.
24513
24514 * ira-lives.c: Remove mentioning cover classes from the file. Fix
24515 formatting.
24516 (update_allocno_pressure_excess_length): Use pressure classes.
24517 (inc_register_pressure, dec_register_pressure): Check for pressure
24518 class.
24519 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24520 pressure class. Use ira_reg_class_nregs instead of
24521 ira_reg_class_max_nregs.
24522 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24523 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24524 (single_reg_class): Use ira_reg_class_nregs instead of
24525 ira_reg_class_max_nregs.
24526 (process_bb_node_lives): Use pressure classes.
24527
24528 * ira-emit.c: Remove mentioning cover classes from the file. Use
24529 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
24530 (change_loop): Use pressure classes.
24531 (modify_move_list): Call ira_set_allocno_class instead of
24532 ira_set_allocno_cover_class.
24533
24534 * ira-build.c: Remove mentioning cover classes from the file. Use
24535 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24536 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
24537 ALLOCNO_UPDATED_CLASS_COST instead of
24538 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
24539 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24540 (ira_create_allocno): Remove initialization of
24541 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
24542 ALLOCNO_COLORABLE_P.
24543 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24544 Update conflict regs for the objects.
24545 (create_cap_allocno): Remove assert. Don't propagate
24546 ALLOCNO_AVAILABLE_REGS_NUM.
24547 (ira_free_allocno_costs): New function.
24548 (finish_allocno): Change a part of code into call of
24549 ira_free_allocno_costs.
24550 (low_pressure_loop_node_p): Use pressure classes.
24551 (object_range_compare_func): Don't compare classes.
24552 (setup_min_max_conflict_allocno_ids): Ditto.
24553
24554 * loop-invariant.c: Remove mentioning cover classes from the file.
24555 Use ira_pressure_classes and ira_pressure_classes_num instead of
24556 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
24557 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24558 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24559 Use reg_allocno_class instead of reg_cover_class.
24560 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
24561 STACK_REG_COVER_CLASS.
24562 (get_regno_cover_class): Rename to get_regno_pressure_class.
24563 (move_loop_invariants): Initialize and finalize regstat.
24564
24565 * ira.c: Remove mentioning cover classes from the file. Add
24566 comments about coloring without cover classes. Use ALLOCNO_CLASS
24567 instead of ALLOCNO_COVER_CLASS. Fix formatting.
24568 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
24569 setup_class_subset_and_memory_move_costs.
24570 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
24571 (setup_cover_and_important_classes): Rename to
24572 setup_allocno_and_important_classes.
24573 (setup_class_translate_array): New.
24574 (setup_class_translate): Call it for allocno and pressure classes.
24575 (cover_class_order): Rename to allocno_class_order.
24576 (comp_reg_classes_func): Use ira_allocno_class_translate instead
24577 of ira_class_translate.
24578 (reorder_important_classes): Set up ira_important_class_nums.
24579 (setup_reg_class_relations): Set up ira_reg_class_superunion.
24580 (print_class_cover): Rename to print_classes. Add parameter.
24581 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24582 Print pressure classes too.
24583 (find_reg_class_closure): Rename to find_reg_classes. Don't call
24584 setup_reg_subclasses.
24585 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24586 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24587 (setup_prohibited_class_mode_regs): Use
24588 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
24589 (clarify_prohibited_class_mode_regs): New function.
24590 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
24591 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
24592 (ira_init_once): Initialize them.
24593 (free_register_move_costs): Process them.
24594 (ira_init): Move calls of find_reg_classes and
24595 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
24596 Call clarify_prohibited_class_mode_regs.
24597 (ira_no_alloc_reg): Remove.
24598 (too_high_register_pressure_p): Use pressure classes.
24599
24600 * sched-deps.c: Remove mentioning cover classes from the file.
24601 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
24602 ira_pressure_classes and ira_pressure_classes_num instead of
24603 ira_reg_class_cover_size and ira_reg_class_cover.
24604 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
24605 sched_regno_pressure_class instead of sched_regno_cover_class.
24606 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
24607 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24608
24609 * ira.h: Add 2010 to Copyright.
24610 (ira_no_alloc_reg): Remove external.
24611 (struct target_ira): Rename x_ira_hard_regno_cover_class,
24612 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
24613 x_ira_class_translate to x_ira_hard_regno_allocno_class,
24614 x_ira_allocno_classes_num, x_ira_allocno_classes, and
24615 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
24616 x_ira_pressure_classes, x_ira_pressure_class_translate, and
24617 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
24618 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
24619 x_ira_no_alloc_regs.
24620 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24621 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
24622 ira_allocno_classes_num and ira_allocno_classes.
24623 (ira_class_translate): Rename to ira_allocno_class_translate.
24624 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
24625 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
24626 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24627 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
24628 (ira_no_alloc_regs): New.
24629
24630 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
24631 classes from the file. Use ALLOCNO_CLASS instead of
24632 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
24633 ALLOCNO_COVER_CLASS_COST.
24634 (regno_cover_class): Rename to regno_aclass.
24635 (record_reg_classes): Use ira_reg_class_subunion instead of
24636 ira_reg_class_union.
24637 (record_address_regs): Check overflow.
24638 (scan_one_insn): Ditto.
24639 (print_allocno_costs): Print total mem cost fore regional allocation.
24640 (print_pseudo_costs): Use REG_N_REFS.
24641 (find_costs_and_classes): Use classes intersected with them on the
24642 1st pass. Check overflow. Use ira_reg_class_subunion instead of
24643 ira_reg_class_union. Use ira_allocno_class_translate and
24644 regno_aclass instead of ira_class_translate and regno_cover_class.
24645 Modify code for finding regno_aclass. Setup preferred classes for
24646 the next pass.
24647 (setup_allocno_cover_class_and_costs): Rename to
24648 setup_allocno_class_and_costs. Use regno_aclass instead of
24649 regno_cover_class. Use ira_set_allocno_class instead of
24650 ira_set_allocno_cover_class.
24651 (init_costs, finish_costs): Use regno_aclass instead of
24652 regno_cover_class.
24653 (ira_costs): Use setup_allocno_class_and_costs instead of
24654 setup_allocno_cover_class_and_costs.
24655 (ira_tune_allocno_costs_and_cover_classes): Rename to
24656 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
24657 by processing objects. Use ira_reg_class_max_nregs instead of
24658 ira_reg_class_nregs.
24659
24660 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
24661
24662 * sched-int.h: Remove mentioning cover classes from the file.
24663 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
24664
24665 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
24666 classes from the file.
24667 (struct reg_pref): Rename coverclass into allocnoclass.
24668 (reg_cover_class): Rename to reg_allocno_class.
24669
24670 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
24671
24672 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
24673
24674 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
24675
24676 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
24677
24678 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
24679
24680 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
24681
24682 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
24683
24684 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
24685
24686 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
24687
24688 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
24689
24690 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
24691 (i386_ira_cover_classes): Ditto.
24692
24693 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
24694
24695 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
24696
24697 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
24698
24699 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
24700
24701 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
24702
24703 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
24704
24705 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
24706 (mips_ira_cover_classes): Ditto.
24707
24708 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
24709
24710 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
24711
24712 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
24713
24714 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
24715
24716 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
24717
24718 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
24719 (IRA_COVER_CLASSES_VSX): Ditto.
24720
24721 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
24722 (rs6000_ira_cover_classes): Ditto.
24723
24724 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
24725
24726 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
24727
24728 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
24729
24730 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
24731
24732 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
24733
24734 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
24735
24736 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
24737
24738 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
24739
24740 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
24741
24742 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
24743
24744 2011-03-29 Jakub Jelinek <jakub@redhat.com>
24745
24746 PR debug/48253
24747 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
24748 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
24749 dw_fde_unlikely_section_end_label, cold_in_std_section,
24750 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
24751 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
24752 fields.
24753 (output_fde): Use dw_fde_second_{begin,end} if second is
24754 true, otherwise dw_fde_{begin,end}.
24755 (output_call_frame_info): Test dw_fde_second_begin != NULL
24756 instead of dw_fde_switched_sections.
24757 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
24758 fields, initialize new fields. Initialize in_std_section
24759 unconditionally from the first partition.
24760 (dwarf2out_end_epilogue): Don't override dw_fde_end when
24761 dw_fde_second_begin is non-NULL.
24762 (dwarf2out_switch_text_section): Stop initializing removed
24763 dw_fde_struct fields, initialize new fields, initialize
24764 also dw_fde_end here. Set dw_fde_switch_cfi even when
24765 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
24766 (struct var_loc_list_def): Add last_before_switch field.
24767 (arange_table, arange_table_allocated, arange_table_in_use,
24768 ARANGE_TABLE_INCREMENT, add_arange): Removed.
24769 (size_of_aranges): Count !in_std_section and !second_in_std_section
24770 hunks in fdes, instead of looking at arange_table_in_use.
24771 (output_aranges): Add aranges_length argument, don't call
24772 size_of_aranges here. Instead of using aranges_table*
24773 emit ranges for fdes when !in_std_section resp.
24774 !second_in_std_section.
24775 (dw_loc_list): Break ranges crossing section switch.
24776 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
24777 use dw_fde_second_end instead of dw_fde_end as end of last range.
24778 (gen_subprogram_die): Don't call add_arange. Use
24779 dw_fde_{begin,end} for first partition and if switched
24780 section dw_fde_second_{begin,end} for the second.
24781 (var_location_switch_text_section_1,
24782 var_location_switch_text_section): New functions.
24783 (dwarf2out_begin_function): Initialize cold_text_section even
24784 when function_section () isn't text_section.
24785 (prune_unused_types): Don't walk arange_table.
24786 (dwarf2out_finish): Don't needlessly test
24787 flag_reorder_blocks_and_partition when testing cold_text_section_used.
24788 If info_section_emitted, call size_of_aranges and if it indicates
24789 non-empty .debug_aranges, call output_aranges with the computed
24790 size. Stop using removed dw_fde_struct fields, use
24791 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
24792 for second.
24793
24794 PR debug/48203
24795 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
24796 create ENTRY_VALUE if incoming or address of incoming's MEM
24797 is a hard REG.
24798 * dwarf2out.c (mem_loc_descriptor): Don't emit
24799 DW_OP_GNU_entry_value of DW_OP_fbreg.
24800 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
24801 on ENTRY_VALUE is able to find the canonical parameter VALUE.
24802 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
24803 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
24804 ENTRY_VALUE_EXPs.
24805 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
24806 is a REG_P or MEM_P with REG_P address, compute hash directly
24807 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
24808 (preserve_only_constants): Don't clear VALUES forwaring
24809 ENTRY_VALUE to some other VALUE.
24810
24811 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
24812
24813 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
24814 instead of GEN_INT.
24815
24816 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
24817
24818 * cfgexpand.c (expand_gimple_cond): Always set the source location and
24819 block before expanding the statement.
24820 (expand_gimple_stmt_1): Likewise. Set them here...
24821 (expand_gimple_stmt): ...and not here. Tidy.
24822 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
24823 unknown.
24824
24825 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
24826
24827 * Makefile.in: New rule for cprop.o.
24828 * gcse.c: Move constant/copy propagation to cprop.c.
24829 (compute_local_properties): Only handle expression tables.
24830 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
24831 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
24832 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
24833 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
24834 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
24835 compute_cprop_data, find_used_regs, try_replace_reg,
24836 find_avail_set, cprop_jump, constprop_register, cprop_insn,
24837 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
24838 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
24839 find_bypass_set, reg_killed_on_edge, bypass_block,
24840 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
24841 execute_rtl_cprop, pass_rtl_cprop): Move to...
24842 * cprop.c: ...here. New file, constant/copy propagation for RTL
24843 moved from gcse.c to here with minor cleanups in duplicated code.
24844
24845 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
24846
24847 * config/i386/i386.c (flag_opts): Fix a typo in
24848 -mavx256-split-unaligned-store.
24849
24850 2011-03-28 Anatoly Sokolov <aesok@post.ru>
24851
24852 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24853 LIBCALL_VALUE): Remove macros.
24854 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24855 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24856 (h8300_function_value, h8300_libcall_value,
24857 h8300_function_value_regno_p): New functions.
24858
24859 2011-03-28 Anatoly Sokolov <aesok@post.ru>
24860
24861 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
24862
24863 2011-03-28 Jeff Law <law@redhat.com>
24864
24865 * tree-ssa-threadupdate.c (redirect_edges): Call
24866 create_edge_and_update_destination_phis as needed.
24867 (create_edge_and_update_destination_phis): Accept new BB argument.
24868 All callers updated.
24869 (thread_block): Do not update the profile when threading around
24870 intermediate blocks.
24871 (thread_single_edge): Likewise.
24872 (determine_bb_domination_status): If BB is not a successor of the
24873 loop header, return NONDOMINATING.
24874 (register_jump_thread): Note when we register a jump thread around
24875 an intermediate block.
24876 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
24877 (thread_across_edge): Use it.
24878
24879 2011-03-28 Tristan Gingold <gingold@adacore.com>
24880
24881 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
24882 when for_return is 2.
24883
24884 2011-03-28 Jeff Law <law@redhat.com>
24885
24886 * var-tracking.c (canonicalize_values_mark): Delete unused
24887 lhs assignment.
24888 (canonicalize_values_star, set_variable_part): Likewise.
24889 (clobber_variable_part, delete_variable_part): Likewise.
24890
24891 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
24892
24893 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
24894
24895 2011-03-28 Martin Jambor <mjambor@suse.cz>
24896
24897 * tree-inline.c (expand_call_inline): Do not check that destination
24898 node is analyzed.
24899 (optimize_inline_calls): Assert that destination node is analyzed.
24900 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
24901 not call tree_lowering_passes.
24902 * cgraph.h (cgraph_analyze_function): Declare.
24903 * cgraphunit.c (cgraph_analyze_function): Make public.
24904
24905 2011-03-28 Joseph Myers <joseph@codesourcery.com>
24906
24907 * config/sparc/sparc-opts.h: New.
24908 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
24909 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
24910 (sparc_option_override): Store processor_type enumeration rather
24911 than string in cpu_default. Remove name and enumeration from
24912 cpu_table. Directly default -mcpu then default -mtune from -mcpu
24913 without using sparc_select. Use target_flags_explicit instead of
24914 fpu_option_set.
24915 * config/sparc/sparc.h (enum processor_type): Move to
24916 sparc-opts.h.
24917 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
24918 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
24919 HeaderInclude entry.
24920 (mcpu=, mtune=): Use Var and Enum.
24921 (sparc_processor_type): New Enum and EnumValue entries.
24922
24923 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24924 Iain Sandoe <iains@gcc.gnu.org>
24925
24926 PR target/48245
24927 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
24928
24929 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
24930
24931 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
24932 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
24933 Insert new statements at it in lieu of STMT.
24934 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
24935 * tree-vect-stmts.c (vectorizable_store): Likewise.
24936 (vectorizable_load): Likewise.
24937
24938 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
24939
24940 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
24941 (divtf3): Ditto.
24942 (multf3): Ditto.
24943 (subtf3): Ditto.
24944
24945 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
24946
24947 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
24948 unaligned 256bit load/store.
24949 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
24950 (*avx_movdqu<avxmodesuffix>): Likewise.
24951
24952 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24953
24954 PR target/48288
24955 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
24956 * config/pa/pa.md (iordi3): Use new predicate in expander.
24957 (iorsi3): Likewise.
24958
24959 2011-03-27 Anatoly Sokolov <aesok@post.ru>
24960
24961 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
24962 FUNCTION_VALUE_REGNO_P): Remove macros.
24963 * config/mips/mips-protos.h (mips_function_value): Remove.
24964 * config/mips/mips.c (mips_function_value): Rename to...
24965 (mips_function_value_1): ... this. Make static. Handle receiving
24966 the function type in 'fn_decl_or_type' argument.
24967 (mips_function_value, mips_libcall_value,
24968 mips_function_value_regno_p): New function.
24969 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24970 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24971
24972 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
24973
24974 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
24975 and -mavx256-split-unaligned-store.
24976 (ix86_option_override_internal): Split 32-byte AVX unaligned
24977 load/store by default.
24978 (ix86_avx256_split_vector_move_misalign): New.
24979 (ix86_expand_vector_move_misalign): Use it.
24980
24981 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
24982 -mavx256-split-unaligned-store.
24983
24984 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
24985 256bit load/store. Generate unaligned store on misaligned memory
24986 operand.
24987 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
24988 256bit load/store.
24989 (*avx_movdqu<avxmodesuffix>): Likewise.
24990
24991 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
24992 -mavx256-split-unaligned-store.
24993
24994 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
24995
24996 PR target/38598
24997 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
24998 Update commentary.
24999
25000 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
25001
25002 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25003 opno arguments with an expand_operand. Use create_input_operand.
25004 (mips_prepare_builtin_target): Delete.
25005 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25006 functions.
25007 (mips_expand_builtin_direct): Use create_output_operand and
25008 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
25009 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
25010 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25011
25012 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
25013
25014 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25015 function.
25016 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25017
25018 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
25019
25020 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25021 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
25022 basic blocks and call commit_edge_insertions directly.
25023 (fixup_abnormal_edges): Move from here to...
25024 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
25025 on the edges and return whether some have actually been inserted.
25026 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25027 compensation code.
25028
25029 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
25030
25031 PR rtl-optimization/48144
25032 * sel-sched-ir.c (merge_history_vect): Factor out from ...
25033 (merge_expr_data): ... here.
25034 (av_set_intersect): Rename to av_set_code_motion_filter.
25035 Update all callers. Call merge_history_vect when an expression
25036 is found in both sets.
25037 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25038
25039 2011-03-26 Alan Modra <amodra@gmail.com>
25040
25041 * config/rs6000/predicates.md (word_offset_memref_op): Handle
25042 cmodel medium addresses.
25043 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25044 64-bit gpr loads and stores.
25045 (rs6000_secondary_reload_ppc64): New function.
25046 * config/rs6000/rs6000-protos.h: Declare it.
25047 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25048
25049 2011-03-26 Alan Modra <amodra@gmail.com>
25050
25051 PR target/47487
25052 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25053 GNU Go in traceback table.
25054
25055 2011-03-25 Richard Henderson <rth@redhat.com>
25056
25057 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25058 if there are exactly 6 operands.
25059 (set_storage_via_setmem): Similarly.
25060
25061 2011-03-25 Kai Tietz <ktietz@redhat.com>
25062
25063 * collect2.c (write_c_file_stat): Handle backslash
25064 as right-hand directory separator.
25065 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25066 checking just for slash.
25067 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25068 instead of checking for trailing slash.
25069 * gcc.c (record_temp_file): Use filename_cmp instead
25070 of strcmp.
25071 (do_spec_1): Likewise.
25072 (replace_outfile_spec_function): Likewise.
25073 (is_directory): Use filename_ncmp instead of strncmp.
25074 (print_multilib_info): Likewise.
25075 * gcov.c (find_source): Use filename_cmp instead
25076 instead of strcmp.
25077 (make_gcov_file_name): Fix order of slash/backslash
25078 checks.
25079 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25080 (add_standard_paths): Likewise.
25081 * mips-tfile.c (saber_stop): Handle backslash.
25082 * prefix.c (update_path): Use filename_ncmp instead of
25083 strncmp.
25084 * profile.c (output_location): Use filename_cmp instead
25085 of strcmp.
25086 * read-md.c (handle_toplevel_file): Handle backslash.
25087 * tlink.c (frob_extension): Likewise.
25088 * tree-cfg.c (same_line_p): Use filename_cmp instead of
25089 strcmp.
25090 * tree-dump.c (dequeue_and_dump): Handle backslash.
25091 * tree.c (get_file_function_name): Likewise.
25092 * gengtype.c (read_input_list): Likewise.
25093 (get_file_realbasename): Likewise.
25094 (get_output_file_with_visibility): Use filename_cmp
25095 instead of strcmp.
25096
25097 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
25098
25099 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25100 case to VFPv1.
25101
25102 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25103
25104 * fold-const.c (expr_location_or): New function.
25105 (fold_truth_not_expr): Call it.
25106
25107 2011-03-25 Jeff Law <law@redhat.com>
25108
25109 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25110 va_end.
25111 * c-family/c-common.c (def_fn_type): Likewise.
25112 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
25113 * emit-rtl.c (gen_rtvec): Likewise.
25114 * lto/lto-lang.c (def_fn_type): Likewise.
25115
25116 2011-03-25 Richard Guenther <rguenther@suse.de>
25117
25118 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25119 also generate copies.
25120 (fini_copy_prop): Handle constant values properly.
25121
25122 2011-03-25 Jakub Jelinek <jakub@redhat.com>
25123
25124 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25125 mode size instead of bitsize with DWARF2_ADDR_SIZE.
25126 (hash_loc_operands, compare_loc_operands): Handle
25127 DW_OP_GNU_entry_value.
25128
25129 2011-03-25 Kai Tietz <ktietz@redhat.com>
25130
25131 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25132 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25133 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25134 comment and use macro TARGET_64BIT_MS_ABI instead.
25135 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25136 and change default behavior for 32-bit MS_ABI.
25137 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25138 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25139 32-bit, too.
25140 (ix86_cfun_abi): Likewise.
25141 (ix86_maybe_switch_abi): Adjust comment.
25142 (init_cumulative_args): Check for bit-ness in MS_ABI case.
25143 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25144 instead of checking for SYSV_ABI.
25145 (ix86_nsaved_sseregs): Likewise.
25146 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25147 to 16 bytes.
25148 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25149 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25150 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25151 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25152 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25153
25154 2011-03-25 Richard Guenther <rguenther@suse.de>
25155
25156 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25157 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25158 (verify_gimple): Remove.
25159 * tree-cfg.c (verify_gimple_call): Merge verification
25160 from verify_stmts.
25161 (verify_gimple_phi): Merge verification from verify_stmts.
25162 (verify_gimple_label): New function.
25163 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25164 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25165 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25166 (verify_stmts): Rename to verify_gimple_in_cfg.
25167 (verify_gimple_in_cfg): New function.
25168 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25169 * tree-ssa.c (verify_ssa): Likewise.
25170 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25171
25172 2011-03-25 Richard Guenther <rguenther@suse.de>
25173
25174 * passes.c (init_optimization_passes): Add FRE pass after
25175 early SRA.
25176
25177 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
25178 Andrew Stubbs <ams@codesourcery.com>
25179
25180 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25181 for Cortex-A8.
25182 (arm_movdi_vfp_cortexa8): New pattern.
25183 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25184 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25185 instructions when tuning for Cortex-A8. Set attribute "arch".
25186 * config/arm/arm.md: Move include arm-tune.md up a bit.
25187 (define_attr "arch"): Add "onlya8" and "nota8" values.
25188 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25189
25190 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25191
25192 PR bootstrap/48282
25193 Revert:
25194 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25195
25196 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25197 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25198 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25199 * passes.c (init_optimization_passes): Move
25200 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25201
25202 2011-03-25 Kai Tietz <ktietz@redhat.com>
25203
25204 * c-typeck.c (comptypes_internal): Replace target
25205 hook call of comp_type_attributes by version in tree.c file.
25206 * gimple.c (gimple_types_compatible_p_1): Likewise.
25207 * tree-ssa.c (useless_type_conversion_p): Likewise.
25208 * tree.c (build_type_attribute_qual_variant): Likewise.
25209 (attribute_value_equal): New static helper function.
25210 (comp_type_attributes): New function.
25211 (merge_attributes): Use attribute_value_equal for comparison.
25212 (attribute_list_contained): Likewise.
25213 * tree.h (comp_type_attributes): New prototype.
25214
25215 2011-03-25 Richard Guenther <rguenther@suse.de>
25216
25217 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25218 of complex types at -O0.
25219 (verify_gimple_assign_binary): Likewise.
25220 (verify_gimple_assign_ternary): Likewise.
25221
25222 2011-03-24 Mark Wielaard <mjw@redhat.com>
25223
25224 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25225 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25226
25227 2011-03-24 Mark Wielaard <mjw@redhat.com>
25228
25229 PR debug/48041
25230 * dwarf2out.c (output_abbrev_section): Only write table when
25231 abbrev_die_table_in_use > 1.
25232
25233 2011-02-24 Richard Henderson <rth@redhat.com>
25234
25235 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25236 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25237 (alpha_expand_unaligned_load_words): Use extql.
25238 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25239 (emit_insxl): Handle all modes for consistency.
25240
25241 2011-02-24 Richard Henderson <rth@redhat.com>
25242
25243 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25244 (alpha_expand_unaligned_load): Likewise.
25245 (alpha_expand_unaligned_store): Likewise.
25246 (alpha_expand_unaligned_load_words): Likewise.
25247 (alpha_expand_unaligned_store_words): Likewise.
25248 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25249 (alpha_split_lock_test_and_set_12): Likewise.
25250 (print_operand, alpha_fold_builtin_extxx): Likewise.
25251 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25252 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25253 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25254 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25255 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25256 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25257 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25258 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25259 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25260 (extwl, extll, extql): Similarly.
25261 (inswh, inslh, insqh): Similarly.
25262 (mskbl, mskwl, mskll, mskql): Similarly.
25263 (mskwh, msklh, mskqh): Similarly.
25264
25265 2011-02-24 Richard Henderson <rth@redhat.com>
25266
25267 * config/alpha/alpha.md (attribute isa): Add er, ner.
25268 (attribute enabled): Handle them.
25269 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25270
25271 2011-02-24 Richard Henderson <rth@redhat.com>
25272
25273 * config/alpha/alpha.md (attribute isa): Add vms.
25274 (attribute enabled): Handle it.
25275 (*movsf): Merge *movsf_{nofix,fix,nofp}.
25276 (*movdf): Merge *movdf_{nofix,fix,nofp}.
25277 (*movtf): Rename from *movtf_internal for consistency.
25278 (*movsi): Merge with *movsi_nt_vms.
25279 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25280 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25281 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25282 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25283
25284 2011-02-24 Richard Henderson <rth@redhat.com>
25285
25286 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25287 (extendqisi2, extendhisi2): Likewise.
25288 (extendqidi2): Simplify BWX/non-BWX expansions.
25289 (extendhidi2): Similarly.
25290
25291 2011-02-24 Richard Henderson <rth@redhat.com>
25292
25293 * config/alpha/alpha.md (attribute isa): New.
25294 (attribute enabled): New.
25295 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25296 (zero_extendqisi2, zero_extendqidi2): Similarly.
25297 (zero_extendhisi2, zero_extendhidi2): Similarly.
25298 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25299
25300 2011-02-24 Richard Henderson <rth@redhat.com>
25301
25302 * config/alpha/predicates.md (input_operand): Revert last change;
25303 update comment to mention 32-bit VMS rather than Windows.
25304
25305 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25306
25307 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25308 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25309 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25310 * passes.c (init_optimization_passes): Move
25311 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25312
25313 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25314
25315 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25316
25317 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
25318
25319 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25320 correctly.
25321
25322 2011-03-24 Jakub Jelinek <jakub@redhat.com>
25323
25324 PR debug/48204
25325 * simplify-rtx.c (simplify_const_unary_operation): Call
25326 real_convert when changing mode class with FLOAT_EXTEND.
25327
25328 2011-03-24 Nick Clifton <nickc@redhat.com>
25329
25330 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25331 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25332 * config/rx/rx.c (rx_option_override): Set align_jumps,
25333 align_loops and align_labels if not set by the user.
25334 (rx_align_for_label): New function.
25335 (rx_max_skip_for_label): New function.
25336 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25337 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25338 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25339 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25340 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25341
25342 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
25343
25344 PR rtl-optimization/48263
25345 * optabs.c (expand_binop_directly): Reinstate convert_modes code
25346 and original commutative_p handling. Use maybe_gen_insn.
25347
25348 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25349
25350 * reload.c (find_reloads_subreg_address): Add address_reloaded
25351 parameter and return true there if the full address has been
25352 reloaded.
25353 (find_reloads_toplev): Pass address_reloaded flag.
25354 (find_reloads_address_1): Don't use address_reloaded parameter.
25355
25356 2011-03-24 Jeff Law <law@redhat.com>
25357
25358 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25359 unused variable "ann".
25360 (remove_unused_locals): Likewise.
25361
25362 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25363 statement.
25364
25365 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25366 after it is freed.
25367
25368 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25369
25370 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25371 for invalid symbolic addresses.
25372 (s390_secondary_reload): Don't use s390_check_symref_alignment for
25373 larl operands.
25374
25375 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25376
25377 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
25378 the argument in calls to fold_truth_not_expr.
25379
25380 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25381
25382 * tree.c (record_node_allocation_statistics): New function.
25383 (make_node_stat, copy_node_stat, build_string): Call it.
25384 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25385 (build1_stat, build_omp_clause): Likewise.
25386
25387 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
25388
25389 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25390 last commit.
25391
25392 2011-03-24 Richard Guenther <rguenther@suse.de>
25393
25394 PR tree-optimization/48271
25395 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25396 blocks that still exist.
25397
25398 2011-03-24 Richard Guenther <rguenther@suse.de>
25399
25400 PR tree-optimization/48270
25401 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25402 not free datarefs before ddrs.
25403
25404 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25405
25406 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25407 from the address built for a reference with variable offset.
25408
25409 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
25410
25411 PR target/48237
25412 * config/i386/i386.md (*movdf_internal_rex64): Do not split
25413 alternatives that can be handled with movq or movabsq insn.
25414 (*movdf_internal): Disable for !TARGET_64BIT.
25415 (*movdf_internal_nointeger): Ditto.
25416 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25417
25418 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25419
25420 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25421 (FUNCTION_ARG_ADVANCE): Likewise.
25422 * tm.texi.in: Change references to them to hook references.
25423 * tm.texi: Regenerate.
25424 * targhooks.c (default_function_arg): Eliminate check for target macro.
25425 (default_function_incoming_arg): Likewise.
25426 (default_function_arg_advance): Likewise.
25427 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25428 (function_arg_advance): Likewise.
25429 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25430
25431 2011-03-24 Richard Guenther <rguenther@suse.de>
25432
25433 PR middle-end/48269
25434 * tree-object-size.c (addr_object_size): Do not double-account
25435 for MEM_REF offsets.
25436
25437 2011-03-24 Diego Novillo <dnovillo@google.com>
25438
25439 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25440 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25441 (lto_input_data_block): Move from lto-opts.c. Make extern.
25442 Update all users.
25443 (lto_input_string): Rename from input_string. Make extern.
25444 Update all users.
25445 * lto-streamer-out.c (lto_output_string_with_length): Rename from
25446 output_string_with_length.
25447 Output 0 to indicate a non-NULL string. Update all callers to
25448 not emit 0.
25449 (lto_output_string): Rename from output_string. Make extern.
25450 Update all users.
25451 (lto_output_decl_state_streams): Make extern.
25452 (lto_output_decl_state_refs): Make extern.
25453 * lto-streamer.h (lto_input_string): Declare.
25454 (lto_input_data_block): Declare.
25455 (lto_output_string): Declare.
25456 (lto_output_string_with_length): Declare.
25457 (lto_output_decl_state_streams): Declare.
25458 (lto_output_decl_state_refs): Declare.
25459
25460 2011-03-24 Richard Guenther <rguenther@suse.de>
25461
25462 PR tree-optimization/46562
25463 * tree.c (build_invariant_address): New function.
25464 * tree.h (build_invariant_address): Declare.
25465 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25466 a renamed function moved ...
25467 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25468 Take valueization callback parameter.
25469 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25470 * gimple-fold.h: New file.
25471 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25472 (ccp_fold, fold_const_aggregate_ref,
25473 fold_ctor_reference, fold_nonarray_ctor_reference,
25474 fold_array_ctor_reference, fold_string_cst_ctor_reference,
25475 get_base_constructor): Move ...
25476 * gimple-fold.c: ... here.
25477 (gimple_fold_stmt_to_constant_1): New function
25478 split out from ccp_fold. Take a valueization callback parameter.
25479 Valueize all operands.
25480 (gimple_fold_stmt_to_constant): New wrapper function.
25481 (fold_const_aggregate_ref_1): New function split out from
25482 fold_const_aggregate_ref. Take a valueization callback parameter.
25483 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25484 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25485 invariant POINTER_PLUS_EXPRs to invariant form.
25486 (vn_valueize): New function.
25487 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25488 * tree-vrp.c (vrp_valueize): New function.
25489 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25490 to fold statements to constants.
25491 * tree-ssa-pre.c (eliminate): Properly guard propagation of
25492 function declarations.
25493 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25494 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25495
25496 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
25497
25498 * config/h8300/predicates.md (jump_address_operand): Fix register
25499 mode check.
25500
25501 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
25502
25503 * doc/invoke.texi (max-stores-to-sink): Document.
25504 * params.h (MAX_STORES_TO_SINK): Define.
25505 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25506 if either vectorization or if-conversion is disabled.
25507 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25508 tree-vect-data-refs.c vect_equal_offsets.
25509 (dr_equal_offsets_p): New function.
25510 (find_data_references_in_bb): Remove static.
25511 * tree-data-ref.h (find_data_references_in_bb): Declare.
25512 (dr_equal_offsets_p): Likewise.
25513 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25514 (vect_drs_dependent_in_basic_block): Update calls to
25515 vect_equal_offsets.
25516 (vect_check_interleaving): Likewise.
25517 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25518 (cond_if_else_store_replacement): Rename to...
25519 (cond_if_else_store_replacement_1): ... this. Change arguments and
25520 documentation.
25521 (cond_if_else_store_replacement): New function.
25522 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25523 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25524
25525 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
25526
25527 PR target/46934
25528 * config/arm/arm.md (casesi): Use the gen_int_mode() function
25529 to subtract lower bound instead of GEN_INT().
25530
25531 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
25532
25533 PR other/48179
25534 PR other/48221
25535 PR other/48234
25536 * doc/extend.texi (Alignment): Move section to match order in TOC.
25537 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25538 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25539
25540 2011-03-23 Jeff Law <law@redhat.com>
25541
25542 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25543 before removing the edge.
25544
25545 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25546 it may have been freed by redirect_branch_edge or
25547 redirect_edge_succ_nodup.
25548
25549 2011-03-23 Richard Guenther <rguenther@suse.de>
25550
25551 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25552 (check_va_list_escapes): Likewise.
25553 (check_all_va_list_escapes): Likewise.
25554
25555 2011-03-23 Richard Guenther <rguenther@suse.de>
25556
25557 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25558 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25559 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25560 (alias.o): Likewise.
25561 (ipa-type-escape.o): Remove.
25562 (ipa-struct-reorg.o): Likewise.
25563 (GTFILES): Remove ipa-struct-reorg.c.
25564 * alias.c: Do not include ipa-type-escape.h.
25565 * tree-ssa-alias.c: Likewise.
25566 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
25567 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
25568 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
25569 and ipa-type-escape passes.
25570 * tree-pass.h (pass_ipa_type_escape): Remove.
25571 (pass_ipa_struct_reorg): Likewise.
25572 * ipa-struct-reorg.h: Remove.
25573 * ipa-struct-reorg.c: Likewise.
25574 * ipa-type-escape.h: Likewise.
25575 * ipa-type-escape.c: Likewise.
25576 * doc/invoke.texi (-fipa-struct-reorg): Remove.
25577 (--param struct-reorg-cold-struct-ratio): Likewise.
25578 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25579 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25580 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
25581
25582 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25583
25584 * config/s390/2084.md: Enable all insn reservations also for z9_ec
25585 cpu attribute value.
25586 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
25587 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
25588 * config/s390/s390.c (processor_flags_table): New constant array.
25589 (s390_handle_arch_option): Remove.
25590 (s390_handle_option): Remove s390_handle_arch_option invocations
25591 and OPT_mwarn_framesize_ handling.
25592 (s390_option_override): Remove s390_handle_arch_option invocation.
25593 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
25594 warnings.
25595 * config/s390/s390.md (cpu attribute): Add z9_ec value.
25596 * config/s390/s390.opt (s390_tune, s390_arch)
25597 (march=): Replace s390_arch_option enum and values with
25598 processor_type. Set variable name to s390_arch. Set
25599 initialization value.
25600 (mtune=): Replace s390_arch_option with processor_type. Set
25601 variable name to s390_tune. Set initialization value.
25602
25603 2011-03-23 Julian Brown <julian@codesourcery.com>
25604
25605 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
25606 accesses which are not naturally aligned.
25607
25608 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
25609
25610 PR target/47553
25611 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
25612
25613 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
25614
25615 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
25616 parameter from "int" to "enum insn_code".
25617 (expand_operand_type): New enum.
25618 (expand_operand): New structure.
25619 (create_expand_operand): New function.
25620 (create_fixed_operand, create_output_operand): Likewise
25621 (create_input_operand, create_convert_operand_to): Likewise.
25622 (create_convert_operand_from, create_address_operand): Likewise.
25623 (create_integer_operand): Likewise.
25624 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
25625 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25626 (expand_insn, expand_jump_insn): Likewise.
25627 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
25628 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
25629 (expand_movstr, expand_builtin___clear_cache): Likewise.
25630 (expand_builtin_lock_release): Likewise.
25631 * explow.c (allocate_dynamic_stack_space): Likewise.
25632 (probe_stack_range): Likewise. Allow check_stack to FAIL,
25633 and use the default handling in that case.
25634 * expmed.c (check_predicate_volatile_ok): Delete.
25635 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
25636 (emit_cstore): Likewise.
25637 * expr.c (emit_block_move_via_movmem): Likewise.
25638 (set_storage_via_setmem, expand_assignment): Likewise.
25639 (emit_storent_insn, try_casesi): Likewise.
25640 (emit_single_push_insn): Likewise. Allow the expansion to fail.
25641 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
25642 (expand_vec_shift_expr, expand_binop_directly): Likewise.
25643 (expand_twoval_unop, expand_twoval_binop): Likewise.
25644 (expand_unop_direct, emit_indirect_jump): Likewise.
25645 (emit_conditional_move, vector_compare_rtx): Likewise.
25646 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
25647 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
25648 (expand_sync_lock_test_and_set): Likewise.
25649 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
25650 (emit_unop_insn): Likewise.
25651 (expand_copysign_absneg): Change icode to an insn_code.
25652 (create_convert_operand_from_type): New function.
25653 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
25654 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25655 (expand_insn, expand_jump_insn): Likewise.
25656 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
25657 than const_int_operand for operand 2.
25658
25659 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25660
25661 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
25662 if possible.
25663
25664 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
25665
25666 * emit-rtl.c (emit_pattern_before_noloc): New function.
25667 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
25668 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
25669 (emit_pattern_after_noloc): New function.
25670 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
25671 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
25672
25673 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
25674
25675 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
25676 (__ffsDI2): Likewise.
25677
25678 2011-03-22 Richard Henderson <rth@redhat.com>
25679
25680 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
25681 of !TARGET_ABI_OPEN_VMS.
25682 (alpha_trampoline_init, alpha_start_function): Likewise.
25683 (alpha_expand_epilogue, alpha_file_start): Likewise.
25684 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
25685 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
25686 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
25687 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
25688 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
25689
25690 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25691
25692 * config/s390/s390-opts.h: New.
25693 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
25694 s390_arch_flags, s390_warn_framesize, s390_stack_size,
25695 s390_stack_guard): Remove.
25696 (s390_handle_arch_option): Return void. Take enum
25697 s390_arch_option value instead of string and searching array.
25698 (s390_handle_option): Don't assert that global structures are in
25699 use. Access variables via opts pointer. Use error_at. Don't use
25700 sscanf for -mstack-guard= or -mstack-size=. Update call to
25701 s390_handle_arch_option.
25702 (s390_option_override): Update call to s390_handle_arch_option.
25703 (s390_emit_prologue): Use %d format for s390_stack_size in
25704 diagnostic. Use %wd for HOST_WIDE_INT.
25705 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
25706 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
25707 * config/s390/s390.opt (config/s390/s390-opts.h): New
25708 HeaderInclude entry.
25709 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
25710 s390_arch_flags, s390_warn_framesize): New Variable entries.
25711 (s390_arch_option): New Enum and EnumValue entries.
25712 (march=): Use Enum instead of Var.
25713 (mstack-guard=, mstack-size=): Use UInteger and Var.
25714 (mtune=): Use Enum.
25715
25716 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25717
25718 * config/score/score.c (score_handle_option): Don't assert that
25719 global structures are in use. Access target_flags via opts
25720 pointer. Use value of -march= option to determine target_flags
25721 settings.
25722 * config/score/score.opt (march=): Use Enum.
25723 (score_arch): New Enum and EnumValue entries.
25724
25725 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25726
25727 * config/mep/mep.c (option_mtiny_specified): Remove.
25728 (mep_option_override): Move register handling for -mivc2 from
25729 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
25730 instead of option_mtiny_specified.
25731 (mep_handle_option): Access target_flags via opts pointer. Don't
25732 assert that global structures are in use. Defer part of -mivc2
25733 handling and move it to mep_option_override.
25734 * config/mep/mep.opt (IVC2): New Mask entry.
25735 (mivc2): Use Var and Defer instead of Mask.
25736
25737 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25738
25739 * config/v850/v850-opts.h: New.
25740 * config/v850/v850.c (small_memory): Replace with
25741 small_memory_physical_max array. Make that array static const.
25742 (v850_handle_memory_option): Take integer value of argument. Take
25743 gcc_options pointer, option text and location. Return void.
25744 Update for changes to small memory structures.
25745 (v850_handle_option): Access target_flags via opts pointer. Don't
25746 assert that global structures are in use. Update calls to
25747 v850_handle_memory_option.
25748 (v850_encode_data_area): Update references to small memory settings.
25749 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
25750 (enum small_memory_type): Move to v850-opts.h.
25751 * config/v850/v850.opt (config/v850/v850-opts.h): New
25752 HeaderInclude entry.
25753 (small_memory_max): New Variable entry.
25754 (msda): Replace by pair of options msda= and msda-. Use UInteger.
25755 (mtda, mzda): Likewise.
25756
25757 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25758
25759 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
25760 pointer. Don't assert that global structures are in use.
25761
25762 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25763
25764 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
25765 via opts pointer. Don't assert that global structures are in use.
25766
25767 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25768
25769 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
25770 (munix=93): Use Var.
25771 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
25772 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
25773 * config/pa/pa-opts.h: New.
25774 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
25775 (pa_handle_option): Don't assert that global structures are in
25776 use. Access target_flags via opts pointer. Don't handle
25777 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
25778 OPT_munix_98 here.
25779 (pa_option_override): Handle deferred OPT_mfixed_range_.
25780
25781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25782
25783 * config/mn10300/mn10300-opts.h: New.
25784 * config/mn10300/mn10300.c (mn10300_processor,
25785 mn10300_tune_string): Remove.
25786 (mn10300_handle_option): Don't assert that global structures are
25787 in use. Access mn10300_processor via opts pointer. Don't handle
25788 OPT_mtune_ here.
25789 * config/mn10300/mn10300.h (enum processor_type): Move to
25790 mn10300-opts.h.
25791 (mn10300_processor): Remove.
25792 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
25793 HeaderInclude entry.
25794 (mn10300_processor): New Variable entry.
25795 (mtune=): Use Var.
25796
25797 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25798
25799 * config/microblaze/microblaze.c: Don't include opts.h.
25800 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
25801 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
25802 (mno-clearbss): Use Var and Warn.
25803
25804 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25805
25806 * config/m32r/m32r-opts.h: New.
25807 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
25808 (m32r_handle_option): Don't assert that global structures are in
25809 use. Access target_flags and m32r_cache_flush_func via opts
25810 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
25811 OPT_mno_flush_trap here.
25812 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
25813 include of m32r-opts.h.
25814 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
25815 HeaderInclude entry.
25816 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
25817 (mmodel=): Use Enum and Var.
25818 (m32r_model): New Enum and EnumValue entries.
25819 (mno-flush-trap): Use Var.
25820 (msdata=): Use Enum and Var.
25821 (m32r_sdata): New Enum and EnumValue entries.
25822
25823 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25824
25825 * config/m32c/m32c.c: Don't include opts.h.
25826 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
25827 m32c_handle_option): Remove.
25828 (m32c_option_override): Check global_options_set.x_target_memregs
25829 instead of target_memregs_set.
25830 * config/m32c/m32c.h (target_memregs): Remove.
25831 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
25832 variable.
25833
25834 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25835
25836 * config/iq2000/iq2000-opts.h: New.
25837 * config/iq2000/iq2000.c: Don't include opts.h.
25838 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
25839 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
25840 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
25841 HeaderInclude entry.
25842 (iq2000_tune): New Variable entry.
25843 (march=): Add comment. Use Enum.
25844 (iq2000_arch): New Enum and EnumValue entries.
25845 (mcpu=): Use Enum and Var.
25846 (iq2000_tune): New Enum and EnumValue entries.
25847
25848 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25849
25850 * config/ia64/ia64-opts.h: New.
25851 * config/ia64/ia64.c (ia64_tune): Remove.
25852 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
25853 here. Use error_at.
25854 (ia64_option_override): Handle deferred OPT_mfixed_range_.
25855 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
25856 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
25857 HeaderInclude entry.
25858 (ia64_tune): New Variable entry.
25859 (mfixed-range=): Use Defer and Var.
25860 (mtune=): Use Enum and Var.
25861 (ia64_tune): New Enum and EnumValue entries.
25862
25863 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25864
25865 * config/frv/frv-opts.h: New.
25866 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
25867 frv-opts.h.
25868 (frv_cpu_type): Remove.
25869 * config/frv/frv.c: Don't include opts.h.
25870 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
25871 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
25872 (frv_cpu_type): New Variable entry.
25873 (frv_cpu): New Enum and EnumValue entries.
25874
25875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25876
25877 * config/cris/cris.c (cris_handle_option): Access target_flags via
25878 opts pointer. Don't assert that global structures are in use.
25879 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
25880 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
25881
25882 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25883
25884 * config/bfin/bfin-opts.h: New.
25885 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
25886 bfin_si_revision, bfin_workarounds): Remove.
25887 (bfin_cpus): Make static const.
25888 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
25889 not bfin_lib_id_given.
25890 (bfin_handle_option): Don't set bfin_lib_id_given. Access
25891 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
25892 pointer. Use error_at. Don't assert that global structures are in use.
25893 * config/bfin/bfin.h: Include bfin-opts.h.
25894 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
25895 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
25896 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
25897 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
25898 entries.
25899
25900 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25901
25902 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
25903 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
25904 or -msoft-float here.
25905 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
25906 -msoft-float and -mhard-float.
25907 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
25908 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25909 msoft-float.
25910 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
25911 -msoft-float.
25912 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
25913 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
25914 not mhard-float.
25915 (LIBGCC_SPEC): Don't handle -msoft-float.
25916 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
25917 -mhard-float.
25918 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25919 msoft-float.
25920 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
25921 -mfloat-abi=*, not -msoft-float and -mhard-float.
25922 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
25923 -msoft-float.
25924 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
25925 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
25926 mhard-float and msoft-float.
25927 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
25928 mfloat-abi=soft in comments, not mhard-float and msoft-float.
25929 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
25930 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
25931 mhard-float.
25932 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
25933 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
25934 msoft-float.
25935 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
25936 not mhard-float.
25937 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
25938 not msoft-float.
25939
25940 2011-03-22 Richard Henderson <rth@redhat.com>
25941
25942 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
25943 TARGET_ABI_WINDOWS_NT.
25944 (alpha_output_function_end_prologue): Likewise.
25945 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
25946 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
25947 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
25948 (trap, *movsi_nt_vms): Likewise.
25949 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
25950 (*tablejump_osf_nt_internal): Remove.
25951 * config/alpha/predicates.md (input_operand): Only test Pmode.
25952
25953 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25954
25955 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
25956 via opts pointer. Use error_at. Don't assert that global
25957 structures are in use.
25958
25959 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25960
25961 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
25962 (ix86_handle_option): Access ix86_isa_flags and
25963 ix86_isa_flags_explicit via opts pointer. Don't assert that
25964 global structures are in use.
25965 (ix86_function_specific_save, ix86_function_specific_restore):
25966 Update ix86_isa_flags_explicit field name.
25967 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
25968 (ix86_isa_flags_explicit): Rename TargetSave entry to
25969 x_ix86_isa_flags_explicit.
25970
25971 2011-03-22 Richard Henderson <rth@redhat.com>
25972
25973 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
25974 (alpha_option_override, direct_return): Likewise.
25975 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
25976 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
25977 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
25978 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25979 (alpha_expand_epilogue, alpha_end_function): Likewise.
25980 (alpha_init_libfuncs): Likewise.
25981 (struct machine_function): Remove unicosmk members.
25982 (print_operand) ['t']: Remove.
25983 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
25984 unicosmk_output_module_name, unicosmk_output_common,
25985 current_section_align, unicosmk_output_text_section_asm_op,
25986 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
25987 unicosmk_section_type_flags, unicosmk_unique_section,
25988 unicosmk_asm_named_section, unicosmk_insert_attributes,
25989 unicosmk_output_align, unicosmk_defer_case_vector,
25990 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
25991 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
25992 unicosmk_output_ssib, unicosmk_add_call_info_word,
25993 unicosmk_extern_head, unicosmk_output_default_externs,
25994 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
25995 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
25996 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
25997 * config/alpha/alpha-protos.h: Update.
25998 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
25999 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26000 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26001 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26002 (*mulsi_se, mulvsi3): Likewise.
26003 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26004 (*divmodsi_internal, call, call_value, realign): Likewise.
26005 (moddi3, umoddi3): Likewise; remove duplicate expander.
26006 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26007 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26008 (*movdi_nofix): Remove r/U alternative.
26009 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26010 * config/alpha/constraints.md ("U"): Remove.
26011 * config/alpha/predicates.md (call_operand"): Don't test
26012 TARGET_ABI_UNICOSMK.
26013
26014 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26015
26016 * target.def (handle_option): Take gcc_options and
26017 cl_decoded_option pointers and location_t.
26018 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26019 * doc/tm.texi: Regenerate.
26020 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26021 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26022 * lto-opts.c (lto_reissue_options): Generate option structure for
26023 targetm.handle_option call.
26024 * opts.c (target_handle_option): Update call to
26025 targetm.handle_option. Remove assertions about values now passed
26026 down to hook.
26027 * targhooks.c (default_target_handle_option): New.
26028 * targhooks.h (default_target_handle_option): Declare.
26029 * config/alpha/alpha.c: Include opts.h.
26030 (alpha_handle_option): Update to new hook interface.
26031 * config/arm/arm.c: Include opts.h.
26032 (arm_handle_option): Update to new hook interface.
26033 * config/arm/t-arm (arm.o): Update dependencies.
26034 * config/bfin/bfin.c: Include opts.h.
26035 (bfin_handle_option): Update to new hook interface.
26036 * config/cris/cris.c: Include opts.h.
26037 (cris_handle_option): Update to new hook interface.
26038 * config/frv/frv.c: Include opts.h.
26039 (frv_handle_option): Update to new hook interface.
26040 * config/i386/i386.c: Include opts.h.
26041 (ix86_handle_option): Update to new hook interface.
26042 (ix86_valid_target_attribute_inner_p): Generate option structure
26043 for call to ix86_handle_option.
26044 * config/i386/t-i386 (i386.o): Update dependencies.
26045 * config/ia64/ia64.c: Include opts.h.
26046 (ia64_handle_option): Update to new hook interface.
26047 * config/ia64/t-ia64 (ia64.o): Update dependencies.
26048 * config/iq2000/iq2000.c: Include opts.h.
26049 (iq2000_handle_option): Update to new hook interface.
26050 * config/m32c/m32c.c: Include opts.h.
26051 (m32c_handle_option): Update to new hook interface.
26052 * config/m32r/m32r.c: Include opts.h.
26053 (m32r_handle_option): Update to new hook interface.
26054 * config/m68k/m68k.c: Include opts.h.
26055 (m68k_handle_option): Update to new hook interface.
26056 * config/mep/mep.c: Include opts.h.
26057 (mep_handle_option): Update to new hook interface.
26058 * config/microblaze/microblaze.c: Include opts.h.
26059 (microblaze_handle_option): Update to new hook interface.
26060 * config/mips/mips.c: Include opts.h.
26061 (mips_handle_option): Update to new hook interface.
26062 * config/mn10300/mn10300.c: Include opts.h.
26063 (mn10300_handle_option): Update to new hook interface.
26064 * config/pa/pa.c: Include opts.h.
26065 (pa_handle_option): Update to new hook interface.
26066 * config/pdp11/pdp11.c: Include opts.h.
26067 (pdp11_handle_option): Update to new hook interface.
26068 * config/rs6000/rs6000.c: Include opts.h.
26069 (rs6000_handle_option): Update to new hook interface.
26070 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26071 * config/rx/rx.c: Include opts.h.
26072 (rx_handle_option): Update to new hook interface.
26073 * config/s390/s390.c: Include opts.h.
26074 (s390_handle_option): Update to new hook interface.
26075 * config/score/score.c: Include opts.h.
26076 (score_handle_option): Update to new hook interface.
26077 * config/sh/sh.c: Include opts.h.
26078 (sh_handle_option): Update to new hook interface.
26079 * config/sparc/sparc.c: Include opts.h.
26080 (sparc_handle_option): Update to new hook interface.
26081 * config/v850/v850.c: Include opts.h.
26082 (v850_handle_option): Update to new hook interface.
26083
26084 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26085
26086 * gcc.c (driver_unknown_option_callback): Only permit and save
26087 unknown -Wno- options.
26088 (driver_wrong_lang_callback): Save options directly instead of via
26089 driver_unknown_option_callback.
26090
26091 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26092
26093 * combine.c (simplify_set): Try harder to find the best CC mode when
26094 simplifying a nested COMPARE on the RHS.
26095
26096 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26097
26098 * config/alpha/gnu.h: Remove.
26099 * config/arc: Remove directory.
26100 * config/arm/netbsd.h: Remove.
26101 * config/arm/t-pe: Remove.
26102 * config/crx: Remove directory.
26103 * config/i386/netbsd.h: Remove.
26104 * config/m68hc11: Remove directory.
26105 * config/m68k/uclinux-oldabi.h: Remove.
26106 * config/mcore/mcore-pe.h: Remove.
26107 * config/mcore/t-mcore-pe: Remove.
26108 * config/netbsd-aout.h: Remove.
26109 * config/rs6000/gnu.h: Remove.
26110 * config/sh/sh-symbian.h: Remove.
26111 * config/sh/symbian-base.c: Remove.
26112 * config/sh/symbian-c.c: Remove.
26113 * config/sh/symbian-cxx.c: Remove.
26114 * config/sh/symbian-post.h: Remove.
26115 * config/sh/symbian-pre.h: Remove.
26116 * config/sh/t-symbian: Remove.
26117 * config/svr3.h: Remove.
26118 * config/vax/netbsd.h: Remove.
26119 * config.build: Don't handle i[34567]86-*-pe.
26120 * config.gcc: Remove handling of deprecations for most deprecated
26121 targets.
26122 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26123 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26124 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26125 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26126 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26127 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26128 Remove cases.
26129 * config.host: Don't handle i[34567]86-*-pe.
26130 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26131 (ASM_SPEC32): Don't handle -mcall-gnu.
26132 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26133 -mcall-gnu.
26134 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26135 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26136 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26137 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26138 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26139 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26140 conditional on SYMBIAN.
26141 * configure.ac: Don't handle powerpc*-*-gnu*.
26142 * configure: Regenerate.
26143 * doc/extend.texi (interrupt attribute): Don't mention CRX.
26144 * doc/install-old.texi (m6811, m6812): Don't mention.
26145 * doc/install.texi (arc-*-elf*): Don't document multilib option.
26146 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26147 (m68k-uclinuxoldabi): Don't mention.
26148 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26149 Remove.
26150 (-mcall-gnu): Remove.
26151 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26152 families): Remove constraint documentation.
26153
26154 2011-03-22 Marius Strobl <marius@FreeBSD.org>
26155
26156 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26157 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26158 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26159
26160 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26161
26162 PR target/48226
26163 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26164 vector when peeking at the next token for vector, don't expand the
26165 keywords.
26166
26167 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
26168
26169 * config/avr/avr-protos.h (expand_epilogue): Change prototype
26170 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26171 * config/avr/avr.c (init_cumulative_args)
26172 (avr_function_arg_advance): Use it.
26173 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26174 sibcall epilogues.
26175 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26176 (avr_function_ok_for_sibcall): ...this new function.
26177 (avr_lookup_function_attribute1): New static Function.
26178 (avr_naked_function_p, interrupt_function_p)
26179 (signal_function_p, avr_OS_task_function_p)
26180 (avr_OS_main_function_p): Use it.
26181 * config/avr/avr.md ("sibcall", "sibcall_value")
26182 ("sibcall_epilogue"): New expander.
26183 ("*call_insn", "*call_value_insn"): New insn.
26184 ("call_insn", "call_value_insn"): Remove
26185 ("call", "call_value", "epilogue"): Change expander to handle
26186 sibling calls.
26187
26188 2011-03-21 Nick Clifton <nickc@redhat.com>
26189
26190 * doc/invoke.texi (Overall Options): Move closing brace to end of
26191 options list.
26192 (Optimization Options): Add missing @gol.
26193 (Directory Options): Likewise.
26194 (i386 and x86-64 Options): Likewise.
26195 (RS6000 and PowerPC Options): Likewise.
26196 (i386 and x86-64 Windows Options): Likewise.
26197 (V850 Options): Add text missing from descriptions.
26198
26199 2011-03-22 Richard Henderson <rth@redhat.com>
26200
26201 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26202 (avr_incoming_return_addr_rtx): New.
26203 (emit_push_byte): New.
26204 (expand_prologue): Use it. Remove incorrect dwarf annotation for
26205 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
26206 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
26207 (emit_pop_byte): New.
26208 (expand_epilogue): Use it. Pop frame pointer by bytes.
26209 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26210 (INCOMING_RETURN_ADDR_RTX): New.
26211 (INCOMING_FRAME_SP_OFFSET): New.
26212 (ARG_POINTER_CFA_OFFSET): New.
26213 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26214 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26215 (pophi): Remove.
26216
26217 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26218
26219 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26220
26221 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26222 (FUNCTION_ARG_ADVANCE): Likewise.
26223 * tm.texi.in: Change references to them to hook references.
26224 * tm.texi: Regenerate.
26225 * targhooks.c (default_function_arg): Eliminate check for target
26226 macro.
26227 (default_function_incoming_arg): Likewise.
26228 (default_function_arg_advance): Likewise.
26229 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26230 (function_arg_advance): Likewise.
26231 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26232
26233 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26234
26235 * tree.c (build_call_1): New function.
26236 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26237
26238 2011-03-22 Richard Guenther <rguenther@suse.de>
26239
26240 PR tree-optimization/48228
26241 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26242 for single-arg PHIs.
26243
26244 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
26245
26246 PR rtl-optimization/48143
26247 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26248 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26249 sse2_cvtps2pd): Likewise.
26250
26251 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26252
26253 * recog.c (canonicalize_change_group): Use validate_unshare_change.
26254
26255 2011-03-22 Richard Guenther <rguenther@suse.de>
26256
26257 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26258 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26259 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26260 and REALIGN_LOAD_EXPR.
26261 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26262 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26263 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26264 DOT_PROD_EXPR case ...
26265 (expand_expr_real_2): ... here.
26266 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26267 and REALIGN_LOAD_EXPR.
26268 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26269 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26270 (vect_create_epilog_for_reduction): Likewise.
26271 (vectorizable_reduction): Likewise.
26272 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26273 * tree-vect-stmts.c (vectorizable_load): Likewise.
26274
26275 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26276
26277 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26278
26279 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26280
26281 * config/s390/s390.c (s390_delegitimize_address): Fix offset
26282 handling for PLTOFF/GOTOFF.
26283
26284 2011-03-22 Nick Clifton <nickc@redhat.com>
26285
26286 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26287 trailing backslash from the end of the macro definition.
26288
26289 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26290
26291 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26292 and PLT unspecs.
26293
26294 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
26295
26296 * expr.h (prepare_operand): Move to...
26297 * optabs.h (prepare_operand): ...here and change the insn code
26298 parameter from "int" to "enum insn_code".
26299 (insn_operand_matches): Declare.
26300 * expr.c (init_expr_target): Use insn_operand_matches.
26301 (compress_float_constant): Likewise.
26302 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26303 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26304 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26305 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26306 Likewise.
26307 (gen_cond_trap): Likewise.
26308 (prepare_operand): Likewise. Change icode to an insn_code.
26309 (insn_operand_matches): New function.
26310 * reload.c (find_reloads_address_1): Use insn_operand_matches.
26311 * reload1.c (gen_reload): Likewise.
26312 * targhooks.c (default_secondary_reload): Likewise.
26313
26314 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26315
26316 * config/alpha/alpha.md (unspec): New define_c_enum.
26317 (unspecv): Ditto.
26318
26319 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26320
26321 PR debug/48214
26322 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26323 between a call and its CALL_ARG_LOCATION note.
26324
26325 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
26326
26327 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26328
26329 2011-03-21 Jakub Jelinek <jakub@redhat.com>
26330
26331 PR c/42544
26332 PR c/48197
26333 * c-common.c (shorten_compare): If primopN is first sign-extended
26334 to opN and then zero-extended to result type, set primopN to opN.
26335
26336 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
26337
26338 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26339 for barrier handlers.
26340
26341 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26342
26343 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26344 UNSPEC constants to be in the unspec enumeration, and redefine
26345 all UNSPECV constants to be in the unspecv enumeration, so that
26346 dumps print which unspec/unspec_volatile this is.
26347 * config/rs6000/vector.md (UNSPEC_*): Ditto.
26348 * config/rs6000/paired.md (UNSPEC_*): Ditto.
26349 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26350 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26351 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26352
26353 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26354 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26355 UNSPECV_LWSYNC, since these are used as unspec_volatile.
26356 * config/rs6000/sync.md (isync, lwsync): Ditto.
26357
26358 2011-03-21 Richard Guenther <rguenther@suse.de>
26359
26360 * params.def (lto-min-partition): Fix typo.
26361
26362 2011-03-21 Richard Guenther <rguenther@suse.de>
26363
26364 PR c/47939
26365 * c-decl.c (grokdeclarator): Drop to the main variant only
26366 for array types. Drop flag_gen_aux_info check.
26367
26368 2011-03-21 Richard Guenther <rguenther@suse.de>
26369
26370 PR translation/47911
26371 * params.def (lto-partitions): Fix typo.
26372 (lto-min-partition): Fix wording.
26373
26374 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
26375
26376 * config/rs6000/t-freebsd: Remove duplication from file.
26377
26378 2011-03-21 Richard Guenther <rguenther@suse.de>
26379
26380 PR middle-end/47661
26381 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26382
26383 2011-03-21 Richard Guenther <rguenther@suse.de>
26384
26385 PR lto/48210
26386 * params.def (lto-partitions): Require at least 1 partition.
26387
26388 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26389
26390 * gthr-solaris.h: Remove.
26391 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26392 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26393 (LIB_SPEC): Likewise.
26394 * config/sol2.opt (threads): Remove.
26395 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26396 (sparc*-*-solaris2*): Likewise.
26397 * configure.ac (enable_threads): Enable solaris support.
26398 * configure: Regenerate.
26399 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26400 * doc/install.texi (Configuration, --enable-threads=lib): Remove
26401 solaris.
26402
26403 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26404
26405 * config.gcc: Obsolete *-*-solaris2.8*.
26406 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26407
26408 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26409
26410 PR bootstrap/48135
26411 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26412 reference. Solaris 8 perl works.
26413
26414 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26415
26416 PR bootstrap/48135
26417 * doc/install.texi (Prerequisites): Move jar etc. up.
26418 Explain support library version requirements.
26419
26420 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26421
26422 PR bootstrap/48135
26423 * doc/install.texi (Prerequisites): Move Perl to build
26424 requirements. Always necessary on Solaris 2 with Sun ld.
26425
26426 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26427
26428 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26429 binutils 2.21.
26430 (Specific, i?86-*-solaris2.[89]): Likewise.
26431 (Specific, i?86-*-solaris2.10): Likewise.
26432 (Specific, mips-sgi-irix6): Likewise.
26433 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26434 Update for binutils 2.21.
26435
26436 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26437
26438 * configure.ac (gcc_cv_lto_plugin): Fix typo.
26439 Allow -fuse-linker-plugin for non-default plugin linker.
26440 * configure: Regenerate.
26441
26442 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
26443
26444 PR bootstrap/48167
26445 * gengtype.c (files_rules): Added rule for cp/parser.h.
26446
26447 2011-03-21 Jakub Jelinek <jakub@redhat.com>
26448
26449 PR target/48213
26450 * config/s390/s390.c (s390_delegitimize_address): Don't call
26451 lowpart_subreg if orig_x has BLKmode.
26452
26453 2011-03-21 Kai Tietz <ktietz@redhat.com>
26454
26455 PR target/12171
26456 * doc/plugins.texi: Adjust documentation for plugin register_callback.
26457 * tree.h (attribute_spec): Add new member affects_type_identity.
26458 * attribs.c (empty_attribute_table): Adjust attribute_spec
26459 initializers.
26460 * config/alpha/alpha.c: Likewise.
26461 * config/arc/arc.c: Likewise.
26462 * config/arm/arm.c: Likewise.
26463 * config/avr/avr.c: Likewise.
26464 * config/bfin/bfin.c: Likewise.
26465 * config/crx/crx.c: Likewise.
26466 * config/darwin.h: Likewise.
26467 * config/h8300/h8300.c: Likewise.
26468 * config/i386/cygming.h: Likewise.
26469 * config/i386/i386.c: Likewise.
26470 * config/ia64/ia64.c: Likewise.
26471 * config/m32c/m32c.c: Likewise.
26472 * config/m32r/m32r.c: Likewise.
26473 * config/m68hc11/m68hc11.c: Likewise.
26474 * config/m68k/m68k.c: Likewise.
26475 * config/mcore/mcore.c: Likewise.
26476 * config/mep/mep.c: Likewise.
26477 * config/microblaze/microblaze.c: Likewise.
26478 * config/mips/mips.c: Likewise.
26479 * config/rs6000/rs6000.c: Likewise.
26480 * config/rx/rx.c: Likewise.
26481 * config/sh/sh.c: Likewise.
26482 * config/sol2.h: Likewise.
26483 * config/sparc/sparc.c: Likewise.
26484 * config/spu/spu.c: Likewise.
26485 * config/stormy16/stormy16.c: Likewise.
26486 * config/v850/v850.c: Likewise.
26487
26488 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
26489
26490 * simplify-rtx.c (simplify_binary_operation_1): Handle
26491 (xor (and A B) C) case when B and C are both constants.
26492
26493 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
26494
26495 * tree-dfa.c (add_referenced_var): Fix typo in comment.
26496
26497 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
26498
26499 PR bootstrap/48168
26500 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26501
26502 2011-03-20 Jakub Jelinek <jakub@redhat.com>
26503
26504 PR rtl-optimization/48156
26505 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26506 assume df and df_lr are not NULL.
26507
26508 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26509
26510 PR debug/48023
26511 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26512 between a call and its CALL_ARG_LOCATION note.
26513
26514 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
26515
26516 PR debug/48178
26517 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26518 between a call and its corresponding CALL_ARG_LOCATION note.
26519
26520 2011-03-19 Anatoly Sokolov <aesok@post.ru>
26521
26522 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26523 instead of loop. Use HARD_REGISTER_NUM_P predicate.
26524 * haifa-sched.c (setup_ref_regs): Ditto.
26525 * caller-save.c (add_used_regs_1): Ditto.
26526 * dse.c (look_for_hardregs): Ditto.
26527 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26528 * sched-rgn.c (check_live_1): Ditto.
26529
26530 2011-03-18 Joseph Myers <joseph@codesourcery.com>
26531
26532 * c-decl.c (diagnose_mismatched_decls): Give an error for
26533 redefining a typedef with variably modified type.
26534
26535 2011-03-18 Joseph Myers <joseph@codesourcery.com>
26536
26537 * c-decl.c (grokfield): Don't allow typedefs for structures or
26538 unions with no tag by default.
26539 * doc/extend.texi (Unnamed Fields): Update.
26540
26541 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
26542
26543 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26544 Rewrite using indirect functions.
26545 (lwp_slwpcb): Ditto.
26546 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26547 (avx_vinsertf128<mode>): Ditto.
26548
26549 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26550
26551 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26552 unspecs.
26553
26554 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26555
26556 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26557 splitting between a call and its corresponding CALL_ARG_LOCATION note.
26558
26559 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
26560
26561 PR rtl-optimization/48170
26562 * gcse.c (hoist_code): Remove bogus asserts.
26563
26564 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
26565
26566 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
26567 computation for prologue/epilogue.
26568
26569 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26570
26571 * Makefile.in (check-consistency): Remove.
26572
26573 2011-03-18 Jakub Jelinek <jakub@redhat.com>
26574
26575 PR debug/48176
26576 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
26577 arange_table_in_use is 0, but either text_section_used or
26578 cold_text_section_used is true. Don't call it if
26579 !info_section_emitted.
26580
26581 2011-03-18 Anatoly Sokolov <aesok@post.ru>
26582
26583 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
26584 FUNCTION_VALUE_REGNO_P): Remove.
26585 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
26586 Remove.
26587 * config/avr/avr.c (avr_ret_register): Make static inline.
26588 (avr_function_value_regno_p): New function.
26589 (avr_libcall_value): Make static. Add 'func' argument.
26590 (avr_function_value): Make static. Rename 'func' argument to
26591 'fn_decl_or_type', forward it to avr_libcall_value. Call
26592 avr_ret_register function instead of RET_REGISTER macro.
26593 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26594
26595 2011-03-18 Jason Merrill <jason@redhat.com>
26596
26597 PR c++/23372
26598 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
26599
26600 2011-03-18 Richard Guenther <rguenther@suse.de>
26601
26602 * doc/install.texi (--enable-gold): Remove.
26603 (--with-plugin-ld): Document.
26604 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
26605
26606 2011-03-18 Andrew Pinski <pinskia@gmail.com>
26607
26608 PR middle-end/47790
26609 * expr.c (optimize_bitfield_assignment_op): Revamp to work
26610 again after expansion changes.
26611
26612 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
26613
26614 * combine.c (try_combine): Do simplification only call of
26615 subst() on i2 even when i1 is present. Update comments.
26616
26617 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
26618
26619 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
26620 and UNSPEC_PCREL_SYMOFF.
26621
26622 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26623
26624 * config/s390/s390.md: Use define_c_enum for the unspec constant
26625 definitions.
26626
26627 2011-03-18 Richard Henderson <rth@redhat.com>
26628 Jakub Jelinek <jakub@redhat.com>
26629
26630 PR bootstrap/48161
26631 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
26632 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
26633
26634 2011-03-17 Anatoly Sokolov <aesok@post.ru>
26635
26636 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26637 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
26638 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
26639 Change return type to bool.
26640 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26641
26642 2011-03-17 Jakub Jelinek <jakub@redhat.com>
26643
26644 PR debug/48163
26645 * var-tracking.c (prepare_call_arguments): If CALL target
26646 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
26647 pc instead of looking it up using cselib_lookup and use
26648 Pmode for it if x has VOIDmode.
26649 * dwarf2out.c (gen_subprogram_die): If also both first and
26650 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
26651
26652 PR debug/48163
26653 * function.c (assign_parms): For data.passed_pointer parms
26654 use MEM of data.entry_parm instead of data.entry_parm itself
26655 as DECL_INCOMING_RTL.
26656 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
26657 also when passed and declared mode is the same, DECL_RTL
26658 is a MEM with pseudo as address and DECL_INCOMING_RTL is
26659 a MEM too.
26660
26661 2011-03-16 Jeff Law <law@redhat.com>
26662
26663 PR rtl-optimization/37273
26664 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26665 handle them like argument loads from stack slots. Do not double
26666 count memory for memory constants and argument loads from stack slots.
26667
26668 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
26669
26670 PR debug/48160
26671 * var-tracking.c (prepare_call_arguments): Check SUBREG.
26672
26673 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
26674
26675 PR target/48171
26676 * config/i386/i386.opt: Add Save to -mavx and -mfma.
26677
26678 2011-03-17 Jakub Jelinek <jakub@redhat.com>
26679
26680 PR bootstrap/48153
26681 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
26682 if dwarf_strict.
26683 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
26684 Clear call_arg_locations and call_arg_loc_last always.
26685
26686 PR middle-end/48152
26687 * var-tracking.c (prepare_call_arguments): If argument needs to be
26688 passed by reference, adjust argtype and mode.
26689
26690 2011-03-17 Richard Guenther <rguenther@suse.de>
26691
26692 PR middle-end/48134
26693 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
26694 a value make sure to fold the statement.
26695
26696 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
26697
26698 PR target/43872
26699 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
26700 return condition with !cfun->calls_alloca.
26701
26702 2011-03-17 Richard Guenther <rguenther@suse.de>
26703
26704 PR bootstrap/48148
26705 * lto-cgraph.c (input_overwrite_node): Clear the abstract
26706 origin for decls in other ltrans units.
26707 (input_varpool_node): Likewise.
26708
26709 2011-03-17 Richard Guenther <rguenther@suse.de>
26710
26711 PR middle-end/48165
26712 * tree-object-size.c (compute_object_offset): Properly return
26713 the offset operand of MEM_REFs as sizetype.
26714
26715 2011-03-17 Jakub Jelinek <jakub@redhat.com>
26716
26717 PR rtl-optimization/48141
26718 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
26719 * dse.c: Include params.h.
26720 (active_local_stores_len): New variable.
26721 (add_wild_read, dse_step1): Clear it when setting active_local_stores
26722 to NULL.
26723 (record_store, check_mem_read_rtx): Decrease it when removing
26724 from the chain.
26725 (scan_insn): Likewise. Increase it when adding to chain, if it
26726 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
26727 set active_local_stores to NULL before the addition.
26728 * Makefile.in (dse.o): Depend on $(PARAMS_H).
26729
26730 PR rtl-optimization/48141
26731 * dse.c (record_store): If no positions are needed in an insn
26732 that cannot be deleted, at least unchain it from active_local_stores.
26733
26734 2011-03-16 Dodji Seketeli <dodji@redhat.com>
26735
26736 PR debug/47510
26737 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
26738 (lookup_type_die_strip_naming_typedef): ... here.
26739 (get_context_die): Use it.
26740 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
26741 the anonymous struct named by the naming typedef.
26742
26743 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
26744
26745 PR target/48154
26746 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
26747 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26748
26749 2011-03-16 Jeff Law <law@redhat.com>
26750
26751 * tree-vrp.c (identify_jump_threads): Slightly simplify type
26752 check for operands of conditional. Allow type to be a pointer.
26753
26754 2011-03-16 Richard Guenther <rguenther@suse.de>
26755
26756 PR tree-optimization/48149
26757 * fold-const.c (fold_binary_loc): Fold
26758 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
26759
26760 2011-03-16 Richard Guenther <rguenther@suse.de>
26761
26762 PR tree-optimization/26134
26763 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
26764 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
26765 (non_rewritable_mem_ref_base): Handle complex type component
26766 accesses, constrain offsets for vector and complex extracts
26767 more properly.
26768
26769 2011-03-16 Richard Guenther <rguenther@suse.de>
26770
26771 PR tree-optimization/48146
26772 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
26773 operands avoiding the need for renaming.
26774
26775 2011-03-16 Richard Guenther <rguenther@suse.de>
26776
26777 * gimple-fold.c (maybe_fold_reference): Open-code relevant
26778 constant folding. Move MEM_REF canonicalization first.
26779 Rely on fold_const_aggregate_ref for initializer folding.
26780 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
26781
26782 2011-03-16 Jakub Jelinek <jakub@redhat.com>
26783
26784 PR middle-end/48136
26785 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26786 arg0/arg1 or their arguments are always fold converted to matching
26787 types.
26788
26789 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
26790 to nargs.
26791
26792 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26793
26794 PR lto/46944
26795 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
26796 Handle in-tree gold.
26797 (ld_vers): Extract binutils version for gold.
26798 (gcc_cv_ld_hidden): Handle gold here.
26799 (gcc_cv_lto_plugin): Determine level of linker plugin support.
26800 * configure: Regenerate.
26801 * config.in: Regenerate.
26802 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
26803 -fuse-linker-plugin otherwise.
26804 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
26805 (LINK_COMMAND_SPEC): Use it.
26806 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
26807
26808 2011-03-16 Jakub Jelinek <jakub@redhat.com>
26809
26810 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
26811 * calls.c: Remove debug.h include.
26812 (emit_call_1): Don't call virtual_call_token debug hook.
26813 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
26814 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
26815 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
26816 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
26817 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
26818 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
26819 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
26820 dwarf2out_virtual_call): Remove.
26821 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
26822 copy_call_info and virtual_call hooks.
26823 (dwarf2out_init): Don't initialize vcall_insn_table,
26824 debug_dcall_section and debug_vcall_section.
26825 (prune_unused_types): Don't mark nodes from dcall_table.
26826 (dwarf2out_finish): Don't output dcall or vcall tables.
26827 * final.c (final_scan_insn): Don't call direct_call or
26828 virtual_call debug hooks.
26829 * debug.h (struct gcc_debug_hooks): Remove direct_call,
26830 virtual_call_token, copy_call_info and virtual_call hooks.
26831 (debug_nothing_uid): Remove prototype.
26832 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
26833 copy_call_info and virtual_call hooks.
26834 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26835 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
26836 * debug.c (do_nothing_debug_hooks): Likewise.
26837 (debug_nothing_uid): Remove.
26838 * doc/invoke.texi (-fenable-icf-debug): Remove.
26839 * common.opt (-fenable-icf-debug): Likewise.
26840
26841 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
26842 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
26843 call's MEM. Handle functions returning aggregate through a hidden
26844 first pointer. For virtual calls add clobbered pc to call arguments
26845 chain.
26846 * dwarf2out.c (gen_subprogram_die): Emit
26847 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
26848 can't be emitted.
26849
26850 PR debug/45882
26851 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
26852 * rtl.h (ENTRY_VALUE_EXP): Define.
26853 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
26854 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
26855 * print-rtl.c (print_rtx): Likewise.
26856 * gengtype.c (adjust_field_rtx_def): Likewise.
26857 * var-tracking.c (vt_add_function_parameter): Adjust
26858 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
26859 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
26860 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
26861 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
26862 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
26863
26864 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
26865 Call var_location debug hook even on CALL_INSNs.
26866 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
26867 * rtl.def (ENTRY_VALUE): New.
26868 * dwarf2out.c: Include cfglayout.h.
26869 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26870 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
26871 (struct call_arg_loc_node): New type.
26872 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
26873 tail_call_site_count): New variables.
26874 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
26875 DW_TAG_GNU_call_site_parameter.
26876 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
26877 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
26878 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
26879 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
26880 and DW_AT_GNU_all_source_call_sites.
26881 (mem_loc_descriptor): Handle ENTRY_VALUE.
26882 (add_src_coords_attributes): Don't add enything if
26883 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
26884 (dwarf2out_abstract_function): Save and clear call_arg_location,
26885 call_site_count and tail_call_site_count around dwarf2out_decl call.
26886 (gen_call_site_die): New function.
26887 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
26888 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
26889 (dwarf2out_function_decl): Clear call_arg_locations,
26890 call_arg_loc_last, set call_site_count and tail_call_site_count
26891 to -1 and free block_map.
26892 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
26893 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
26894 followed by any real instructions.
26895 (dwarf2out_begin_function): Set call_site_count and
26896 tail_call_site_count to 0.
26897 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
26898 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
26899 attempt to force a DIE for it and worst case remove the attribute.
26900 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
26901 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
26902 the decl itself.
26903 * var-tracking.c: Include tm_p.h.
26904 (vt_stack_adjustments): For calls call note_register_arguments.
26905 (argument_reg_set): New variable.
26906 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
26907 ensure the VALUE is resolved.
26908 (call_arguments): New variable.
26909 (prepare_call_arguments): New function.
26910 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
26911 (struct expand_loc_callback_data): Add ignore_cur_loc field.
26912 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
26913 always use the best expression.
26914 (vt_expand_loc): Add ignore_cur_loc argument.
26915 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
26916 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
26917 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
26918 note for all calls.
26919 (vt_add_function_parameter): Use cselib_lookup_from_insn.
26920 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
26921 argument. Don't call cselib_preserve_only_values and
26922 cselib_reset_table.
26923 (note_register_arguments): New function.
26924 (vt_initialize): Compute argument_reg_set. Call
26925 vt_add_function_parameters before processing basic blocks instead of
26926 afterwards. For calls call prepare_call_arguments before calling
26927 cselib_process_insn.
26928 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
26929 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
26930 (var-tracking.o): Depend on $(TM_P_H).
26931 * cfglayout.h (insn_scope): New prototype.
26932 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
26933 * cfglayout.c (insn_scope): No longer static.
26934 * insn-notes.def (CALL_ARG_LOCATION): New.
26935 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
26936 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
26937 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
26938 nothing for DECL_EXTERNAL BLOCK_VARS.
26939
26940 2011-03-16 Alan Modra <amodra@gmail.com>
26941
26942 PR target/45844
26943 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
26944 create invalid offset address for vsx splat insn.
26945 * config/rs6000/predicates.md (splat_input_operand): New.
26946 * config/rs6000/vsx.md (vsx_splat_*): Use it.
26947
26948 2011-03-15 Xinliang David Li <davidxl@google.com>
26949
26950 PR c/47837
26951 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
26952 (normalize_preds): New function.
26953 (is_use_properly_guarded): Normalize def predicates.
26954
26955 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26956
26957 PR target/46788
26958 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
26959 in the output template.
26960
26961 2011-03-15 Richard Guenther <rguenther@suse.de>
26962
26963 PR middle-end/47650
26964 * tree-pretty-print.c (dump_function_declaration): Properly
26965 dump unprototyped and varargs function types.
26966
26967 2011-03-15 Richard Guenther <rguenther@suse.de>
26968
26969 PR tree-optimization/13954
26970 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
26971 and friends.
26972
26973 2011-03-15 Richard Guenther <rguenther@suse.de>
26974
26975 PR tree-optimization/48037
26976 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
26977 selects into BIT_FIELD_REFs.
26978 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
26979 vector select.
26980
26981 2011-03-15 Jakub Jelinek <jakub@redhat.com>
26982
26983 PR tree-optimization/48129
26984 * builtins.c (fold_builtin_snprintf): Convert to type of
26985 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
26986 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
26987
26988 2011-03-15 Richard Guenther <rguenther@suse.de>
26989
26990 PR tree-optimization/41490
26991 * tree-ssa-dce.c (propagate_necessity): Handle returns without
26992 value but with VUSE.
26993 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
26994 return statements.
26995 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
26996 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
26997 * tree-tailcall.c (find_tail_calls): Ignore returns.
26998
26999 2011-03-15 Richard Guenther <rguenther@suse.de>
27000
27001 PR middle-end/48031
27002 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27003 or variable-indexed array accesses when in gimple form.
27004
27005 2011-03-15 Richard Guenther <rguenther@suse.de>
27006
27007 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27008
27009 2011-03-15 Alan Modra <amodra@gmail.com>
27010
27011 PR target/48032
27012 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27013 presume symbol_refs without a symbol_ref_decl are suitably
27014 aligned, nor other trees we may see here. Handle anchor symbols.
27015 (legitimate_constant_pool_address_p): Comment. Add mode param.
27016 Check cmodel=medium addresses. Adjust all calls.
27017 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27018 creating cmodel=medium optimized access to locals.
27019 * config/rs6000/constraints.md (R): Pass QImode to
27020 legitimate_constant_pool_address_p.
27021 * config/rs6000/predicates.md (input_operand): Pass mode to
27022 legitimate_constant_pool_address_p.
27023 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27024 Update prototype.
27025
27026 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27027
27028 PR target/48053
27029 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27030 64-bit constants being loaded into registers other than GPRs such
27031 as loading 0 into a VSX register.
27032
27033 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27034
27035 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27036
27037 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27038
27039 PR middle-end/47917
27040 * builtins.c (fold_builtin_snprintf): New function.
27041 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27042 (fold_builtin_4): Likewise.
27043
27044 PR middle-end/38878
27045 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27046 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
27047 and C - X == X also strip nops from +/-/p+ operand.
27048 When optimizing -X == C, fold C to arg0's type.
27049
27050 PR debug/47946
27051 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27052 emit it as add_AT_int instead of add_AT_unsigned.
27053
27054 2011-03-14 Tom Tromey <tromey@redhat.com>
27055
27056 * unwind-dw2.c: Include sys/sdt.h if it exists.
27057 (_Unwind_DebugHook): Use STAP_PROBE2.
27058 * config.in, configure: Rebuild.
27059 * configure.ac: Check for sys/sdt.h.
27060
27061 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
27062
27063 * config/i386/i386.md (ROUND_FLOOR): New constant.
27064 (ROUND_CEIL): Ditto.
27065 (ROUND_TRUNC): Ditto.
27066 (ROUND_MXCSR): Ditto.
27067 (ROUND_NO_EXC): Ditto.
27068 (rint<mode>2): Use new defines instead of numerical constants.
27069 (floor<mode>2): Ditto.
27070 (ceil<mode>2): Ditto.
27071 (btrunc<mode>2): Ditto.
27072 * config/i386/i386-builtin-types.def: Define ROUND function type
27073 aliases.
27074 * config/i386/i386.c (enum ix86_builtins): Add
27075 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27076 (struct builtin_description): Add
27077 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27078 (ix86_expand_sse_round): New static function.
27079 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27080 function types.
27081 (ix86_builtin_vectorized_function): Handle
27082 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27083
27084 2011-03-14 Tom Tromey <tromey@redhat.com>
27085
27086 * c-parser.c (c_parser_asm_string_literal): Clear
27087 warn_overlength_strings.
27088
27089 2011-03-14 Tom Tromey <tromey@redhat.com>
27090
27091 * c-parser.c (disable_extension_diagnostics): Save
27092 warn_overlength_strings.
27093 (restore_extension_diagnostics): Restore warn_overlength_strings.
27094
27095 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27096
27097 * BASE-VER: Change to 4.7.0.
27098
27099 2011-03-14 Richard Guenther <rguenther@suse.de>
27100
27101 PR middle-end/48098
27102 * tree.c (build_vector_from_val): Adjust assert to requirements
27103 and reality.
27104
27105 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27106
27107 PR bootstrap/48102
27108 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27109
27110 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
27111
27112 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27113 terms of target_flags_explicit. Adjust copyright year.
27114
27115 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27116 * config/rs6000/t-freebsd: New file. Add override for
27117 LIB2FUNCS_EXTRA.
27118
27119 2011-03-13 Chris Demetriou <cgd@google.com>
27120
27121 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27122 (-fno-diagnostics-show-option): this, to reflect current default.
27123 (-Werror=): Update text about -fno-diagnostics-show-option.
27124
27125 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
27126
27127 PR target/48053
27128 * config/rs6000/predicates.md (easy_vector_constant_add_self,
27129 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27130 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27131 mode is not V2DImode or V2DFmode.
27132 (vspltis_constant): Do not handle V2DImode and V2DFmode.
27133 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27134 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27135 registers to 0.
27136 (movdi_internal64): Likewise.
27137
27138 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
27139
27140 PR tree-optimization/47127
27141 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27142 parameter.
27143 (set_cloog_options): Same.
27144 (scop_to_clast): Same.
27145 (print_clast_stmt): Do not call cloog_state_malloc and
27146 cloog_state_free.
27147 (print_generated_program): Same.
27148 (gloog): Same.
27149 * graphite-clast-to-gimple.h (cloog_state): Declared.
27150 (scop_to_clast): Adjust declaration.
27151 * graphite.c (cloog_state): Defined here.
27152 (graphite_initialize): Call cloog_state_malloc.
27153 (graphite_finalize): Call cloog_state_free.
27154
27155 2011-03-11 Jason Merrill <jason@redhat.com>
27156
27157 * attribs.c (lookup_attribute_spec): Take const_tree.
27158 * tree.h: Adjust.
27159
27160 2011-03-11 Joseph Myers <joseph@codesourcery.com>
27161
27162 * config/sparc/sparc.c (sparc_option_override): Use
27163 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27164
27165 2011-03-11 Richard Guenther <rguenther@suse.de>
27166
27167 PR tree-optimization/48067
27168 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27169 multiplication result will be only used once on the target
27170 stmt.
27171
27172 2011-03-11 Richard Guenther <rguenther@suse.de>
27173
27174 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27175
27176 2011-03-11 Richard Guenther <rguenther@suse.de>
27177
27178 PR lto/48073
27179 * tree.c (find_decls_types_r): Do not walk types only reachable
27180 from IDENTIFIER_NODEs.
27181
27182 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27183
27184 PR middle-end/48044
27185 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27186 all vnode->force_output nodes as needed.
27187
27188 2011-03-11 Jason Merrill <jason@redhat.com>
27189
27190 PR c++/48069
27191 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27192 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27193
27194 2011-03-11 Martin Jambor <mjambor@suse.cz>
27195
27196 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27197 cgraph_node.
27198
27199 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27200
27201 PR tree-optimization/48063
27202 * ipa-inline.c (cgraph_decide_inlining): Don't try to
27203 inline functions called once if !tree_can_inline_p (node->callers).
27204
27205 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
27206
27207 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27208 extra_objs.
27209 * config/score/score3.c: Delete.
27210 * config/score/score3.h: Delete.
27211 * config/score/mul-div.S: Delete.
27212 * config/score/sfp-machine.h: Add new file.
27213 * config/score/constraints.md: Add new file.
27214 * config/score/t-score-softfp: Add new file.
27215 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27216 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27217 (score7_extra_constraint): Delete.
27218 (score7_option_override): Remove unused code.
27219 * config/score/score.c: Remove score3 and score5 define and code.
27220 * config/score/score.h: Remove score3 and score5 define and code.
27221 * config/score/score.md: Remove score3 template and unusual insn.
27222 * config/score/score.opt: Remove score3 and score5 options.
27223
27224 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27225
27226 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27227 when _HPUX_SOURCE is defined.
27228 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27229
27230 2011-03-10 Jason Merrill <jason@redhat.com>
27231
27232 PR c++/48029
27233 * stor-layout.c (layout_type): Don't set structural equality
27234 on arrays of incomplete type.
27235 * tree.c (type_hash_eq): Handle comparing them properly.
27236
27237 2011-03-10 Jakub Jelinek <jakub@redhat.com>
27238
27239 PR debug/48043
27240 * config/s390/s390.c (s390_delegitimize_address): Make sure the
27241 result mode matches original rtl mode.
27242
27243 2011-03-10 Nick Clifton <nickc@redhat.com>
27244
27245 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27246 (andsi3, andsi3_flags): Fix timings for three operand alternative.
27247
27248 2011-03-09 Jakub Jelinek <jakub@redhat.com>
27249
27250 PR rtl-optimization/47866
27251 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27252 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27253 if target wasn't scalar.
27254 * function.c (assign_stack_temp_for_type): Assert that neither
27255 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27256 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27257 macro.
27258 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27259
27260 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27261
27262 * config/s390/s390-protos.h (s390_label_align): New prototype.
27263 * config/s390/s390.c (s390_label_align): New function.
27264 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27265
27266 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
27267
27268 PR target/47755
27269 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27270 V2DI/V2DF constants. Only all 0's or all 1's are easy.
27271 (output_vec_const_move): Ditto.
27272
27273 2011-03-08 Anatoly Sokolov <aesok@post.ru>
27274
27275 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27276 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27277 * config/mips/mips.c (mips_preferred_reload_class): Make static.
27278 Change 'rclass' argument and result type to reg_class_t.
27279 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27280
27281 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
27282
27283 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27284 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27285 (TARGET_MEMORY_MOVE_COST): Define.
27286 (avr_register_move_cost, avr_memory_move_cost): New Functions.
27287
27288 2011-03-08 Jakub Jelinek <jakub@redhat.com>
27289
27290 PR debug/47881
27291 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27292 removed anything.
27293
27294 PR tree-optimization/48022
27295 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27296 for EQ/NE_EXPR.
27297
27298 2011-03-07 Jakub Jelinek <jakub@redhat.com>
27299
27300 PR debug/47991
27301 * var-tracking.c (find_use_val): Return NULL for
27302 cui->sets && cui->store_p BLKmode MEMs.
27303
27304 2011-03-07 Anatoly Sokolov <aesok@post.ru>
27305
27306 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27307 Remove.
27308 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27309 xstormy16_print_operand_address): Remove.
27310 * config/stormy16/stormy16.c (xstormy16_print_operand,
27311 xstormy16_print_operand_address): Make static.
27312 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27313
27314 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
27315
27316 PR target/47862
27317 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27318 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27319 before definition.
27320
27321 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
27322
27323 PR bootstrap/48000
27324 * cfgloopmanip.c (fix_bb_placements): Return immediately
27325 if FROM is BASE_LOOP's header.
27326
27327 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
27328
27329 * gimplify.c (gimplify_function_tree): Fix building calls
27330 to __builtin_return_address.
27331
27332 2011-03-07 Alan Modra <amodra@gmail.com>
27333
27334 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27335 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27336 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27337 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27338 return_mode args.
27339 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27340 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27341 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27342 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27343 * config/rs6000/rs6000.c
27344 (rs6000_elf_end_indicate_exec_stack): Rename to..
27345 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
27346 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
27347 (rs6000_file_start): ..here.
27348 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27349 file scope variables.
27350 (call_ABI_of_interest): New function.
27351 (init_cumulative_args): Set above vars when function return value
27352 is a float, vector, or small struct.
27353 (rs6000_function_arg_advance_1): Likewise for function args.
27354 (rs6000_va_start): Set rs6000_passes_float if variable arg function
27355 references float args.
27356
27357 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
27358
27359 * doc/cfg.texi: Remove "See" before @ref.
27360 * doc/invoke.texi: Likewise.
27361
27362 2011-03-05 Jason Merrill <jason@redhat.com>
27363
27364 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27365
27366 2011-03-05 Anthony Green <green@moxielogic.com>
27367
27368 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27369
27370 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
27371
27372 PR rtl-optimization/47899
27373 * cfgloopmanip.c (fix_bb_placements): Fix first argument
27374 to flow_loop_nested_p when moving the loop upward.
27375
27376 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
27377
27378 PR target/47719
27379 * arm.md (movhi_insn_arch4): Accept any immediate constant.
27380
27381 2011-03-05 Jakub Jelinek <jakub@redhat.com>
27382
27383 PR tree-optimization/47967
27384 * ipa-cp.c (build_const_val): Return NULL instead of creating
27385 VIEW_CONVERT_EXPR for mismatching sizes.
27386 (ipcp_create_replace_map): Return NULL if build_const_val failed.
27387 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27388 give up on versioning.
27389
27390 2011-03-05 Alan Modra <amodra@gmail.com>
27391
27392 PR target/47986
27393 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27394 full cmodel medium/large lo_sum + high addresses.
27395
27396 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27397
27398 * config/s390/s390.c (s390_decompose_address): Reject non-literal
27399 pool references in UNSPEC_LTREL_OFFSET.
27400
27401 2011-03-04 Jan Hubicka <jh@suse.cz>
27402
27403 PR lto/47497
27404 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27405 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27406 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27407 Add node pointers.
27408 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27409 cgraph_add_thunk): Add node pointers.
27410 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27411 associated to right node.
27412 (input_node): Update use of cgraph_same_body_alias
27413 and cgraph_add_thunk.
27414
27415 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
27416
27417 * config/i386/i386.opt (mprefer-avx128): New flag.
27418 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27419 modes when the flag -mprefer-avx128 is on.
27420
27421 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
27422
27423 * dwarf2out.c (compare_loc_operands): Fix address handling.
27424
27425 2011-03-04 Alan Modra <amodra@gmail.com>
27426
27427 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27428
27429 2011-03-04 Richard Guenther <rguenther@suse.de>
27430
27431 PR middle-end/47968
27432 * expmed.c (extract_bit_field_1): Prefer vector modes that
27433 vec_extract patterns can handle.
27434
27435 2011-03-04 Richard Guenther <rguenther@suse.de>
27436
27437 PR middle-end/47975
27438 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27439
27440 2011-03-04 Richard Henderson <rth@redhat.com>
27441
27442 * explow.c (emit_stack_save): Remove 'after' parameter.
27443 (emit_stack_restore): Likewise.
27444 * expr.h: Update to match.
27445 * builtins.c, calls.c, stmt.c: Likewise.
27446 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27447 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27448 * function.c (expand_function_end): Insert the emit_stack_save
27449 sequence before parm_birth_insn instead of after.
27450
27451 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
27452
27453 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27454 (ssse3_pmaddubsw128): Ditto.
27455 (ssse3_pmaddubsw): Ditto.
27456
27457 2011-03-03 Steve Ellcey <sje@cup.hp.com>
27458
27459 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27460
27461 2011-03-03 Jakub Jelinek <jakub@redhat.com>
27462
27463 PR c/47963
27464 * gimplify.c (omp_add_variable): Only call omp_notice_variable
27465 on TYPE_SIZE_UNIT if it is a DECL.
27466
27467 PR debug/47283
27468 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27469 first operand is not is_gimple_mem_ref_addr, try to fold it.
27470 If the operand still isn't is_gimple_mem_ref_addr, clear
27471 MEM_EXPR on op0.
27472
27473 2011-03-03 Richard Guenther <rguenther@suse.de>
27474
27475 PR middle-end/47283
27476 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27477 match comment.
27478 (refs_may_alias_p_1): For release branches return true if
27479 we are confused by our input.
27480
27481 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27482
27483 * config/s390/s390.c (s390_function_value): Rename to ...
27484 (s390_function_and_libcall_value): ... this.
27485 (s390_function_value): New function.
27486 (s390_libcall_value): New function.
27487 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27488 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27489 target macro definitions.
27490 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27491
27492 2011-03-02 Joseph Myers <joseph@codesourcery.com>
27493
27494 * config/i386/freebsd64.h (CC1_SPEC): Define.
27495 * config/i386/linux64.h (CC1_SPEC): Define.
27496 * config/i386/x86-64.h (CC1_SPEC): Don't define.
27497
27498 2011-03-02 Anatoly Sokolov <aesok@post.ru>
27499
27500 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27501 Remove.
27502 * config/stormy16/stormy16.c: Include reload.h.
27503 (xstormy16_memory_move_cost): New function.
27504 (TARGET_MEMORY_MOVE_COST): Define.
27505
27506 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
27507
27508 PR rtl-optimization/47925
27509 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27510 with side effects. Remove the more-specific check for volatile asms.
27511
27512 2011-03-02 Alan Modra <amodra@gmail.com>
27513
27514 PR target/47935
27515 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27516 toc relative addresses for valid offsets.
27517
27518 2011-03-01 Richard Guenther <rguenther@suse.de>
27519
27520 PR tree-optimization/47890
27521 * tree-vect-loop.c (get_initial_def_for_induction): Set
27522 related stmt properly.
27523
27524 2011-03-01 Richard Guenther <rguenther@suse.de>
27525
27526 PR lto/47924
27527 * lto-streamer.c (lto_record_common_node): Also register
27528 the canonical type.
27529
27530 2011-03-01 Richard Guenther <rguenther@suse.de>
27531
27532 PR lto/46911
27533 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27534 Do not stream DECL_ABSTRACT_ORIGIN.
27535 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27536 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27537 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27538 Do not stream DECL_ABSTRACT_ORIGIN.
27539 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27540 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27541
27542 2011-02-28 Anatoly Sokolov <aesok@post.ru>
27543
27544 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27545 FUNCTION_VALUE_REGNO_P): Remove.
27546 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27547 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27548 Add 'outgoing' argument.
27549 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27550 function.
27551 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27552 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27553
27554 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
27555
27556 PR debug/28047
27557 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27558 (lookup_filename): Likewise.
27559 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27560
27561 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
27562 Jakub Jelinek <jakub@redhat.com>
27563
27564 PR middle-end/47893
27565 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
27566 (assign_stack_local_1): Change last argument type to int.
27567 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
27568 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
27569 don't record padding space into frame_space_list nor use those areas.
27570 (assign_stack_local): Adjust caller.
27571 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
27572 of assign_stack_local, pass 0 as last argument.
27573 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
27574 callers.
27575
27576 2011-02-28 Jakub Jelinek <jakub@redhat.com>
27577
27578 PR debug/47283
27579 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
27580 Use target address_mode and pointer_mode hooks instead of hardcoded
27581 Pmode and ptr_mode. Handle some simple cases of extending if
27582 POINTERS_EXTEND_UNSIGNED < 0.
27583 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
27584 Call convert_debug_memory_address.
27585 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
27586 convert_debug_memory_address.
27587
27588 PR middle-end/46790
27589 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
27590 * configure: Regenerated.
27591 * config.in: Regenerated.
27592 * varasm.c (default_function_section): Return NULL
27593 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
27594
27595 2011-02-28 Martin Jambor <mjambor@suse.cz>
27596
27597 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
27598 the description to match the printed values.
27599
27600 2011-02-28 Richard Guenther <rguenther@suse.de>
27601
27602 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
27603 of the copied scope tree.
27604
27605 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27606
27607 * doc/extend.texi (Function Attributes): Avoid deeply (and
27608 wrongly) nested tables.
27609
27610 2011-02-27 Jakub Jelinek <jakub@redhat.com>
27611
27612 PR middle-end/47903
27613 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
27614 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
27615 r isn't op0 nor op1.
27616
27617 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
27618
27619 * config/avr/avr.md: Remove magic comment for emacs.
27620
27621 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
27622
27623 PR target/45261
27624 * config/avr/avr.c (avr_option_override): Use error on bad options.
27625 (avr_help): New function.
27626 (TARGET_HELP): Define.
27627
27628 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
27629
27630 PR target/42240
27631 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
27632 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
27633
27634 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
27635
27636 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
27637 (ARM Options): Ditto.
27638 (i386 and x86-64 Options): Ditto.
27639 (RX Options): Ditto.
27640 (SPARC Options): Ditto.
27641
27642 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
27643
27644 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
27645 FreeBSD 6 and later. Generally use cpu generic.
27646
27647 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
27648
27649 * doc/cpp.texi: Update copyright years.
27650
27651 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
27652
27653 PR target/46898
27654 * config/lm32/lm32.md (ashrsi3): Added needed variable.
27655
27656 2011-02-25 Jon Beniston <jon@beniston.com>
27657
27658 PR target/46898
27659 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
27660 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
27661 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
27662 (lm32_block_move_inline): Add type cast to remove warning.
27663 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
27664 (gen_int_relational): Move declarations to start of function.
27665
27666 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
27667
27668 PR tree-optimization/45470
27669 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
27670 can throw internally only.
27671 * tree-vect-stmts.c (vectorizable_call): Likewise.
27672
27673 2011-02-24 Anatoly Sokolov <aesok@post.ru>
27674
27675 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
27676 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27677 * config/stormy16/stormy16-protos.h
27678 (xstormy16_preferred_reload_class): Remove.
27679 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
27680 static. Change 'rclass' argument and return type to reg_class_t.
27681 (TARGET_PREFERRED_RELOAD_CLASS,
27682 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27683
27684 2011-02-24 Richard Guenther <rguenther@suse.de>
27685
27686 * lto-streamer-in.c (input_bb): Do not find referenced vars
27687 in debug statements.
27688
27689 2011-02-23 Jason Merrill <jason@redhat.com>
27690
27691 * common.opt (fabi-version): Document v5 and v6.
27692
27693 2011-02-23 Richard Guenther <rguenther@suse.de>
27694
27695 PR tree-optimization/47849
27696 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
27697
27698 2011-02-23 Jie Zhang <jie@codesourcery.com>
27699
27700 * opts-common.c (decode_cmdline_option): Print empty string
27701 argument as "" in decoded->orig_option_with_args_text.
27702 * gcc.c (execute): Print empty string argument as ""
27703 in the verbose output.
27704 (do_spec_1): Keep empty string argument.
27705
27706 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
27707
27708 * config.gcc: Declare score-* and crx-* obsolete.
27709
27710 2011-02-23 Jie Zhang <jie@codesourcery.com>
27711
27712 PR rtl-optimization/47763
27713 * web.c (web_main): Ignore naked clobber when replacing register.
27714
27715 2011-02-22 Anatoly Sokolov <aesok@post.ru>
27716
27717 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27718 Remove.
27719
27720 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
27721
27722 PR doc/47848
27723 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
27724
27725 2011-02-22 Mike Stump <mikestump@comcast.net>
27726
27727 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
27728 assembler.
27729 * configure: Regenerate.
27730
27731 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
27732
27733 PR rtl-optimization/46002
27734 * ira-color.c (update_copy_costs): Change class intersection
27735 test to reg_class_contents[] test of 'hard_regno'.
27736
27737 2011-02-21 Joseph Myers <joseph@codesourcery.com>
27738
27739 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
27740 than Driver option.
27741 * config/hpux11.opt (mt): Likewise.
27742 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
27743 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
27744 * config/vax/elf.opt (mno-asm-pic): Likewise.
27745 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
27746
27747 2011-02-21 Mike Stump <mikestump@comcast.net>
27748
27749 PR target/47822
27750 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
27751 tree so we can get save the type.
27752 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
27753 for CFString instead of trying to use past the end of the builtins.
27754 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
27755 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
27756 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
27757 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
27758 Rename to darwin_builtin_cfstring.
27759 (darwin_init_cfstring_builtins): Return the built type.
27760
27761 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
27762
27763 PR target/47840
27764 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
27765 (_mm256_insert_epi64): Use _mm_insert_epi64.
27766
27767 2011-02-21 Anatoly Sokolov <aesok@post.ru>
27768
27769 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27770 * config/stormy16/stormy16-protos.h
27771 (xstormy16_mode_dependent_address_p): Remove.
27772 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
27773 Make static. Change return type to bool. Change argument type to
27774 const_rtx. Remove dead code.
27775 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27776
27777 2011-02-21 Richard Guenther <rguenther@suse.de>
27778
27779 PR lto/47820
27780 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27781 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27782 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
27783 TUs context.
27784 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27785 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27786
27787 2011-02-20 Richard Guenther <rguenther@suse.de>
27788
27789 PR lto/47822
27790 * tree.c (free_lang_data_in_decl): Clean builtins from
27791 the TU decl BLOCK_VARS.
27792
27793 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
27794
27795 PR debug/47620
27796 PR debug/47630
27797 * haifa-sched.c (fix_tick_ready): Skip tick computation
27798 for debug insns.
27799
27800 2011-02-19 Richard Guenther <rguenther@suse.de>
27801
27802 PR lto/47647
27803 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
27804 Remove lazy BLOCK_VARS streaming.
27805 (lto_input_ts_block_tree_pointers): Likewise.
27806 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
27807
27808 2011-02-19 Joseph Myers <joseph@codesourcery.com>
27809
27810 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
27811
27812 2011-02-19 Joseph Myers <joseph@codesourcery.com>
27813
27814 * config/i386/biarch32.h, config/i386/mach.h,
27815 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
27816
27817 2011-02-19 Jakub Jelinek <jakub@redhat.com>
27818
27819 PR target/47800
27820 * config/i386/i386.md (peephole2 for shift and plus): Use
27821 operands[1] original mode in the first insn.
27822
27823 2011-02-18 Mike Stump <mikestump@comcast.net>
27824
27825 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
27826
27827 2011-02-18 Jan Hubicka <jh@suse.cz>
27828
27829 PR middle-end/47788
27830 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
27831 to zero when the function is not inlinable at all.
27832
27833 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27834
27835 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
27836 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27837 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
27838 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
27839 * config/pa/t-pa64: Likewise.
27840 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
27841
27842 2011-02-18 Jakub Jelinek <jakub@redhat.com>
27843
27844 PR driver/47787
27845 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
27846
27847 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27848
27849 PR target/47792
27850 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
27851
27852 2011-02-18 Anatoly Sokolov <aesok@post.ru>
27853
27854 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
27855 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
27856 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
27857 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
27858 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
27859 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
27860 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
27861 m32r_load_postinc_p, m32r_store_preinc_predec_p,
27862 m32r_legitimate_address_p): New functions.
27863 * config/m32r/constraints.md (constraint "S"): Don't use
27864 STORE_PREINC_PREDEC_P.
27865 (constraint "U"): Don't use LOAD_POSTINC_P.
27866
27867 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
27868
27869 PR rtl-optimization/46178
27870 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
27871 compute ira_hard_regno_cover_class[].
27872
27873 2011-02-18 Richard Guenther <rguenther@suse.de>
27874
27875 PR lto/47798
27876 * lto-streamer.h (lto_global_var_decls): Declare.
27877 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
27878 statics for global var processing.
27879
27880 2011-02-18 Richard Guenther <rguenther@suse.de>
27881
27882 PR tree-optimization/47737
27883 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
27884 edge dominance check.
27885
27886 2011-02-18 Jakub Jelinek <jakub@redhat.com>
27887
27888 PR debug/47780
27889 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
27890 avoid invalid rtx sharing.
27891
27892 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
27893
27894 * doc/cpp.texi (Obsolete Features): Add background on the
27895 origin of assertions.
27896
27897 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
27898
27899 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
27900 objc_abi == 2.
27901 * config/darwin.c (output_objc_section_asm_op): Added support for
27902 ABI v1 and v2.
27903 (is_objc_metadata): New.
27904 (darwin_objc2_section): New.
27905 (darwin_objc1_section): New.
27906 (machopic_select_section): Added support for ABI v1 and v2.
27907 (darwin_emit_objc_zeroed): New.
27908 (darwin_output_aligned_bss): Detect objc metadata and treat it
27909 appropriately.
27910 (darwin_asm_output_aligned_decl_common): Same.
27911 (darwin_asm_output_aligned_decl_local): Same.
27912 * config/darwin-sections.def: Updated for ABI v1 and v2.
27913 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
27914 compiling Objective-C code for the NeXT runtime, default to using
27915 ABI version 0 for 32-bit, and version 2 for 64-bit.
27916
27917 2011-02-17 Joseph Myers <joseph@codesourcery.com>
27918
27919 * common.opt (optimize_fast): New Variable.
27920 * opts.c (default_options_optimization): Use opts->x_optimize_fast
27921 instead of local variable ofast.
27922
27923 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
27924
27925 * doc/invoke.texi (fobjc-abi-version): Documented.
27926 (fobjc-nilcheck): Documented.
27927 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
27928 version.
27929
27930 2011-02-17 Joseph Myers <joseph@codesourcery.com>
27931
27932 PR driver/47390
27933 * common.opt (export-dynamic): New Driver option.
27934 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
27935
27936 2011-02-17 Joseph Myers <joseph@codesourcery.com>
27937
27938 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
27939
27940 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
27941 Jan Hubicka <jh@suse.cz>
27942
27943 PR debug/47106
27944 PR debug/47402
27945 * cfgexpand.c (account_used_vars_for_block): Remove.
27946 (estimated_stack_frame_size): Use referenced vars.
27947 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
27948 that were referenced in the original function. Test src_fn
27949 rather than cfun. Drop redundant get_var_ann.
27950 (setup_one_parameter): Drop redundant get_var_ann.
27951 (declare_return_variable): Likewise.
27952 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
27953 (copy_arguments_for_versioning): Drop redundant get_var_ann.
27954 * ipa-inline.c (compute_inline_parameters): Do not compute
27955 disregard_inline_limits here.
27956 (compute_inlinable_for_current, pass_inlinable): New.
27957 (pass_inline_parameters): Require PROP_referenced_vars.
27958 * cgraphunit.c (cgraph_process_new_functions): Don't run
27959 compute_inline_parameters explicitly unless function is in SSA form.
27960 (cgraph_analyze_function): Set .disregard_inline_limits.
27961 * tree-sra.c (convert_callers): Compute inliner parameters
27962 only for functions already in SSA form.
27963
27964 2011-02-17 Joseph Myers <joseph@codesourcery.com>
27965
27966 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
27967 -mlittle-endian-data.
27968
27969 2011-02-17 Joseph Myers <joseph@codesourcery.com>
27970
27971 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
27972 -mno-fpu, not -fpu and -no-fpu.
27973 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
27974 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
27975
27976 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
27977
27978 PR target/43653
27979 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
27980 input reload with PLUS RTX.
27981
27982 2011-02-16 Joseph Myers <joseph@codesourcery.com>
27983
27984 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
27985 of InverseVar(MDMX).
27986
27987 2011-02-16 Joseph Myers <joseph@codesourcery.com>
27988
27989 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
27990 --m4-340.
27991
27992 2011-02-16 Joseph Myers <joseph@codesourcery.com>
27993
27994 * config/mn10300/mn10300.opt (mno-crt0): New.
27995
27996 2011-02-16 Joseph Myers <joseph@codesourcery.com>
27997
27998 * config/m68k/uclinux.opt (static-libc): New Driver option.
27999
28000 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28001
28002 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28003
28004 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28005
28006 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28007 %{muser-extend-enabled}.
28008
28009 2011-02-16 Richard Guenther <rguenther@suse.de>
28010
28011 PR tree-optimization/47738
28012 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28013 the TODO from tree_predictive_commoning.
28014
28015 2011-02-15 Jeff Law <law@redhat.com>
28016
28017 Revert
28018 2011-01-25 Jeff Law <law@redhat.com>
28019
28020 PR rtl-optimization/37273
28021 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28022 handle them like argument loads from stack slots. Do not double
28023 count memory for memory constants and argument loads from stack slots.
28024
28025 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
28026
28027 PR target/47755
28028 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28029 mode for vector constants. Remove code that checks for TImode.
28030
28031 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28032
28033 PR debug/47106
28034 PR debug/47402
28035 * cgraph.h (compute_inline_parameters): Return void.
28036 * ipa-inline.c (compute_inline_parameters): Adjust.
28037
28038 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28039
28040 PR debug/47106
28041 PR debug/47402
28042 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28043 rather than decl.
28044 * cfgexpand.c (estimated_stack_frame_size): Likewise.
28045 * ipa-inline.c (compute_inline_parameters): Adjust.
28046
28047 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28048
28049 PR debug/47106
28050 PR debug/47402
28051 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28052 Adjust all users. Pass FN to...
28053 * tree-flow-inline.h (first_referenced_var): ... this. Add
28054 fn argument.
28055 * ipa-struct-reorg.c: Adjust.
28056 * tree-dfa.c: Adjust.
28057 * tree-into-ssa.c: Adjust.
28058 * tree-sra.c: Adjust.
28059 * tree-ssa-alias.c: Adjust.
28060 * tree-ssa-live.c: Adjust.
28061 * tree-ssa.c: Adjust.
28062 * tree-ssanames.c: Adjust.
28063 * tree-tailcall.c: Adjust.
28064
28065 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28066
28067 PR debug/47106
28068 PR debug/47402
28069 * tree-flow.h (referenced_var_lookup): Add fn parameter.
28070 Adjust all callers.
28071 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28072 * tree-flow-inline.h: Adjust.
28073 * gimple-pretty-print.c: Adjust.
28074 * tree-into-ssa.c: Adjust.
28075 * tree-ssa.c: Adjust.
28076 * cfgexpand.c: Adjust.
28077
28078 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28079
28080 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28081 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28082 (EXTRA_CONSTRAINT): Delete.
28083 * config/iq2000/constraints.md: New file.
28084 * config/iq2000/iq2000.md: Include it.
28085 (define_insn ""): Delete.
28086 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28087 unsupported constraint letters from patterns.
28088 (call_value, call_value_internal1): Likewise.
28089 (call_value_multiple_internal1): Likewise.
28090
28091 2011-02-15 Nick Clifton <nickc@redhat.com>
28092
28093 * config/mn10300/mn10300.c: Include tm-constrs.h.
28094 (struct liw_data): New data structure describing an LIW candidate
28095 instruction.
28096 (extract_bundle): Use struct liw_data. Allow small integer
28097 operands for some instructions.
28098 (check_liw_constraints): Use struct liw_data. Remove swapped
28099 parameter. Add comments describing the checks. Fix bug when
28100 assigning the source of liw1 to the source of liw2.
28101 (liw_candidate): Delete. Code moved into extract_bundle.
28102 (mn10300_bundle_liw): Use struct liw_data. Check constraints
28103 before swapping.
28104 * config/mn10300/predicates.md (liw_operand): New predicate.
28105 Allows registers and small integer constants.
28106 * config/mn10300/constraints.md (O): New constraint. Accetps
28107 integers in the range -8 to +7 inclusive.
28108 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28109 for moving a small integer into a register. Give this alternative
28110 LIW attributes.
28111 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28112 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28113 using the J,K,L and M constraints,
28114 (liw): Remove SI mode on second operands to allow for HI and QI
28115 mode values.
28116 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
28117 instruction.
28118
28119 2011-02-15 Richard Guenther <rguenther@suse.de>
28120
28121 PR tree-optimization/47743
28122 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28123 for a non-type-compatible VN lookup bail out.
28124
28125 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28126
28127 * config/fr30/constraints.md: New file.
28128 * config/fr30/fr30.md: Include it.
28129 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28130 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28131 (EXTRA_CONSTRAINT): Delete.
28132
28133 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28134
28135 * config/frv/constraints.md: New file.
28136 * config/frv/predicates.md: Include it.
28137 * config/frv/frv.c (reg_class_from_letter): Delete.
28138 (frv_option_override): Don't initialize it.
28139 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28140 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28141 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28142 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28143 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28144 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28145 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28146 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28147 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28148 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28149 (REG_CLASS_FROM_CONSTRAINT): Delete.
28150
28151 2011-02-15 Jakub Jelinek <jakub@redhat.com>
28152
28153 PR middle-end/47581
28154 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28155 if frame size is 0 in a leaf function.
28156
28157 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28158
28159 PR pch/14940
28160 * config/alpha/host-osf.c: New file.
28161 * config/alpha/x-osf: New file.
28162 * config.host (alpha*-dec-osf*): Use it.
28163
28164 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28165
28166 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28167 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28168 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28169 (rx_mode_dependent_address_p): ...this. Make static. Change argument
28170 type to const_rtx.
28171 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28172
28173 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28174
28175 * config/stormy16/constraints.md: New file.
28176 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28177 Use satisfies_constraint_Q and satisfies_constraint_R.
28178 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28179 Delete.
28180 (xstormy16_legitiamte_address_p): Declare.
28181 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28182 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28183 (EXTRA_CONSTRAINT): Delete.
28184 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28185 Un-staticize.
28186 (xstormy16_extra_constraint_p): Delete.
28187
28188 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
28189
28190 PR tree-optimization/46494
28191 * loop-unroll.c (split_edge_and_insert): Adjust comment.
28192 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28193 (pass_rtl_loop_done): Add TODO_verify_flow.
28194 * fwprop.c (pass_rtl_fwprop): Likewise.
28195 * modulo-sched.c (pass_sms): Likewise.
28196 * tree-ssa-dom.c (pass_dominator): Likewise.
28197 * tree-ssa-loop-ch.c (pass_ch): Likewise.
28198 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28199 (pass_tree_loop_done): Likewise.
28200 * tree-ssa-pre.c (execute_pre): Likewise.
28201 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28202 * tree-ssa-sink.c (pass_sink_code): Likewise.
28203 * tree-vrp.c (pass_vrp): Likewise.
28204
28205 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28206
28207 * config/v850/constraints.md: New file.
28208 * config/v850/v850.md: Include it.
28209 * config/v850/predicates.md (reg_or_0_operand): Use
28210 satisfies_constraint_G.
28211 (special_symbolref_operand): Use satisfies_constraint_K.
28212 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28213 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28214 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28215 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28216 (EXTRA_CONSTRAINT): Delete.
28217 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28218 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28219 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28220
28221 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28222
28223 PR target/47696
28224 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28225 description.
28226
28227 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28228
28229 * config/mcore/constraints.md: New file.
28230 * config/mcore/mcore.md: Include it.
28231 * config/mcore/mcore.c (reg_class_from_letter): Delete.
28232 * config/mcore/mcore.h (reg_class_from_letter): Delete.
28233 (REG_CLASS_FROM_LETTER): Delete.
28234 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28235 insn_const_int_ok_for_constraint.
28236 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28237 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28238 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28239 (EXTRA_CONSTRAINT): Delete.
28240
28241 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28242
28243 PR ada/41929
28244 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28245 (IS_SIGHANDLER): Define.
28246 (sparc64_is_sighandler): New function, split off from
28247 sparc64_fallback_frame_state.
28248 (sparc_is_sighandler): New function, split off from
28249 sparc_fallback_frame_state.
28250 (sparc64_fallback_frame_state): Merge with ...
28251 (sparc_fallback_frame_state): ... this into ...
28252 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28253 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
28254 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
28255 stack instead of hardcoded offsets.
28256
28257 2011-02-14 Andriy Gapon <avg@freebsd.org>
28258
28259 PR target/45808
28260 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28261
28262 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28263
28264 * configure: Regenerate.
28265
28266 2011-02-12 Joseph Myers <joseph@codesourcery.com>
28267
28268 PR driver/45731
28269 * gcc.c (asm_options): Correct spec matching --target-help.
28270
28271 2011-02-12 Martin Jambor <mjambor@suse.cz>
28272
28273 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28274 to gimple call error.
28275
28276 2011-02-12 Mike Stump <mikestump@comcast.net>
28277
28278 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28279 comments in backslash regions.
28280
28281 2011-02-12 Mike Stump <mikestump@comcast.net>
28282 Jakub Jelinek <jakub@redhat.com>
28283 Iain Sandoe <iains@gcc.gnu.org>
28284
28285 PR target/47324
28286 * dwarf2out.c (output_cfa_loc): When required, apply the
28287 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28288 (output_loc_sequence): Likewise.
28289 (output_loc_operands_raw): Likewise.
28290 (output_loc_sequence_raw): Likewise.
28291 (output_cfa_loc): Likewise.
28292 (output_loc_list): Suppress register number adjustment when
28293 calling output_loc_sequence()
28294 (output_die): Likewise.
28295
28296 2011-02-12 Anatoly Sokolov <aesok@post.ru>
28297
28298 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28299 Remove macros.
28300 * config/xtensa/xtensa.c (xtensa_register_move_cost,
28301 xtensa_memory_move_cost): New functions.
28302 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28303
28304 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
28305
28306 PR lto/47225
28307 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28308 in the current directory.
28309 * configure: Rebuilt.
28310
28311 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28312
28313 * config/darwin.c (darwin_override_options): Add a hunk missed
28314 from the commit of r168571. Trim comment line lengths and
28315 correct indents of the preceding block.
28316
28317 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28318
28319 * gcc.c (driver_handle_option): Concatenate the argument to -F with
28320 the switch.
28321
28322 2011-02-11 Joseph Myers <joseph@codesourcery.com>
28323
28324 * common.opt (nostartfiles): New Driver option.
28325
28326 2011-02-11 Xinliang David Li <davidxl@google.com>
28327
28328 PR tree-optimization/47707
28329 * tree-chrec.c (convert_affine_scev): Keep type precision.
28330
28331 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
28332
28333 PR tree-optimization/47420
28334 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28335
28336 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
28337
28338 PR rtl-optimization/47614
28339 * rtl.h (check_for_inc_dec): Declare.
28340 * dse.c (check_for_inc_dec): Externalize...
28341 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28342 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28343
28344 2011-02-11 Joseph Myers <joseph@codesourcery.com>
28345
28346 PR driver/47678
28347 * gcc.c (main): Do not compile inputs if there were errors in
28348 option handling.
28349 * opts-common.c (read_cmdline_option): Check for wrong language
28350 after other error checks.
28351
28352 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
28353
28354 * cgraph.c: Fix comment typos.
28355 * cgraph.h: Likewise.
28356 * cgraphunit.c: Likewise.
28357 * ipa-cp.c: Likewise.
28358 * ipa-inline.c: Likewise.
28359 * ipa-prop.c: Likewise.
28360 * ipa-pure-const.c: Likewise.
28361 * ipa-ref.c: Likewise.
28362 * ipa-reference.c: Likewise.
28363
28364 2011-02-11 Jakub Jelinek <jakub@redhat.com>
28365
28366 PR debug/47684
28367 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28368
28369 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28370
28371 PR testsuite/47400
28372 * doc/sourcebuild.texi (Require Support): Document
28373 dg-require-ascii-locale.
28374
28375 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
28376
28377 * doc/lto.texi (Write summary): Fix missing parentheses.
28378
28379 2011-02-10 DJ Delorie <dj@redhat.com>
28380
28381 * config/m32c/m32c.c (m32c_option_override): Disable
28382 -fcombine-stack-adjustments until flag value tracking and compare
28383 optimization can be rewritten.
28384
28385 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
28386
28387 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28388 PROCESSOR_POWER7.
28389 (PROCESSOR_DEFAULT64): Likewise.
28390
28391 2011-02-10 Richard Henderson <rth@redhat.com>
28392
28393 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28394 change from 2011-02-03.
28395 * config/rx/rx.c (flags_from_code): Likewise.
28396 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28397 is valid, n/pz otherwise.
28398 (rx_select_cc_mode): Return CCmode if Y is not zero.
28399
28400 2011-02-10 Richard Guenther <rguenther@suse.de>
28401
28402 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28403
28404 2011-02-10 Richard Guenther <rguenther@suse.de>
28405
28406 PR tree-optimization/47677
28407 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28408
28409 2011-02-10 Jakub Jelinek <jakub@redhat.com>
28410
28411 PR target/47665
28412 * combine.c (make_compound_operation): Only change shifts into
28413 multiplication for SCALAR_INT_MODE_P.
28414
28415 2011-02-10 Jie Zhang <jie@codesourcery.com>
28416
28417 PR testsuite/47622
28418 Revert
28419 2011-02-05 Jie Zhang <jie@codesourcery.com>
28420 PR debug/42631
28421 * web.c (entry_register): Don't clobber the number of the
28422 first uninitialized reference in used[].
28423
28424 2011-02-09 Richard Guenther <rguenther@suse.de>
28425
28426 PR tree-optimization/47664
28427 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28428 all edges again.
28429
28430 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
28431
28432 PR target/46481
28433 PR target/47032
28434 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28435 PROCESSOR_POWER7.
28436 (PROCESSOR_DEFAULT64): Same.
28437 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28438
28439 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28440
28441 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28442
28443 2011-02-09 Martin Jambor <mjambor@suse.cz>
28444
28445 PR middle-end/45505
28446 * tree-sra.c (struct access): New flags grp_scalar_read and
28447 grp_scalar_write. Changed description of assignment read and write
28448 flags.
28449 (dump_access): Dump new flags, reorder all of them.
28450 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28451 to detect multiple scalar reads.
28452 (analyze_access_subtree): Use the new scalar read write flags instead
28453 of the old flags. Adjusted comments.
28454
28455 2011-02-08 DJ Delorie <dj@redhat.com>
28456
28457 PR target/47548
28458 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28459 patterns.
28460
28461 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28462
28463 * config/m68k/uclinux.opt: New.
28464 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28465
28466 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28467
28468 * config/cris/elf.opt (sim): New Driver option.
28469
28470 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28471
28472 * config/xtensa/elf.opt: New.
28473 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28474
28475 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28476
28477 * config/vax/elf.opt: New.
28478 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28479
28480 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28481
28482 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28483
28484 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28485
28486 * config/gnu-user.opt: New.
28487 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28488 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28489 *-*-uclinux*): Use gnu-user.opt.
28490
28491 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
28492
28493 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28494 * config/i386/gnu.h (CPP_SPEC): Likewise.
28495
28496 2011-02-08 Ian Lance Taylor <iant@google.com>
28497
28498 * common.opt (fcx-limited-range): Add SetByCombined flag.
28499 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28500 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28501 (fassociative-math, freciprocal-math): Likewise.
28502 (funsafe-math-optimizations): Likewise.
28503 * opth-gen.awk: Handle SetByCombined.
28504 * optc-gen.awk: Likewise.
28505 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28506 (set_unsafe_math_optimizations_flags): Likewise.
28507 * doc/options.texi (Option properties): Document SetByCombined.
28508
28509 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28510
28511 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28512 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28513 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28514 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28515 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28516
28517 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
28518
28519 PR tree-optimization/46834
28520 PR tree-optimization/46994
28521 PR tree-optimization/46995
28522 * graphite-sese-to-poly.c (used_outside_reduction): New.
28523 (detect_commutative_reduction): Call used_outside_reduction.
28524 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28525 translate_scalar_reduction_to_array only when at least one
28526 loop-phi/close-phi tuple has been detected.
28527
28528 2011-02-08 Richard Guenther <rguenther@suse.de>
28529
28530 PR middle-end/47639
28531 * tree-vect-generic.c (expand_vector_operations_1): Update
28532 stmts here ...
28533 (expand_vector_operations): ... not here. Cleanup EH info
28534 and the CFG if required.
28535
28536 2011-02-08 Richard Guenther <rguenther@suse.de>
28537
28538 PR tree-optimization/47641
28539 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28540 require type compatibility.
28541
28542 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28543
28544 * gimple-low.c (lower_function_body): Don't remove the location of
28545 the return statement here.
28546 (lower_gimple_return): Do it here instead but only if the return
28547 statement is actually used twice.
28548
28549 2011-02-08 Richard Guenther <rguenther@suse.de>
28550
28551 PR tree-optimization/47632
28552 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28553 unused up_to_stmt parameter, return whether cfg-cleanup is
28554 necessary, remove EH info properly.
28555 (forward_propagate_into_gimple_cond): Adjust caller.
28556 (forward_propagate_into_cond): Likewise.
28557 (forward_propagate_comparison): Likewise.
28558 (tree_ssa_forward_propagate_single_use_vars): Make
28559 forward_propagate_comparison case similar to the two others.
28560
28561 2011-02-08 Nick Clifton <nickc@redhat.com>
28562
28563 * config/mn10300/mn10300.opt (mliw): New command line option.
28564 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
28565 (liw_bundling): New automaton.
28566 (liw): New attribute.
28567 (liw_op): New attribute.
28568 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
28569 (movsi_internal): Add LIW attributes.
28570 (andsi3): Likewise.
28571 (iorsi3): Likewise.
28572 (xorsi3): Likewise.
28573 (addsi3): Separate register and immediate alternatives.
28574 Add LIW attributes.
28575 (subsi3): Likewise.
28576 (cmpsi): Likewise.
28577 (aslsi3): Likewise.
28578 (lshrsi3): Likewise.
28579 (ashrsi3): Likewise.
28580 (liw): New pattern.
28581 * config/mn10300/mn10300.c (liw_op_names): New
28582 (mn10300_print_operand): Handle 'W' operand descriptor.
28583 (extract_bundle): New function.
28584 (check_liw_constraints): New function.
28585 (liw_candidate): New function.
28586 (mn10300_bundle_liw): New function.
28587 (mn10300_reorg): New function.
28588 (TARGET_MACHINE_DEPENDENT_REORG): Define.
28589 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
28590 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
28591 __LIW__ or __NO_LIW__.
28592 * doc/invoke.texi: Describe the -mliw command line option.
28593
28594 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28595
28596 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
28597 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28598 pthread_mutex_unlock): Remove.
28599 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
28600 * config/pa/t-pa64: Likewise.
28601 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
28602 shared libc if not linking against libpthread.
28603 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28604
28605 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
28606
28607 PR target/47558
28608 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
28609 on 10.6 and later to ensure that we always use the unwinder from
28610 the system. Only add -no_compact_unwind when tarteting darwin
28611 10.6 or later.
28612
28613 2011-02-07 Steve Ellcey <sje@cup.hp.com>
28614
28615 PR target/46997
28616 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
28617 (vec_interleave_lowv2sf): Ditto.
28618 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
28619 (vec_extract_oddv2sf): Ditto.
28620
28621 2011-02-07 Mike Stump <mikestump@comcast.net>
28622
28623 PR target/42333
28624 Add __ieee_divdc3 entry point.
28625 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
28626 entry point.
28627 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
28628 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
28629 * config/darwin.c (darwin_rename_builtins): Add.
28630 * config/darwin-protos.h (darwin_rename_builtins): Add.
28631
28632 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
28633
28634 PR target/47636
28635 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
28636 for the condition.
28637
28638 2011-02-07 Mike Stump <mikestump@comcast.net>
28639
28640 * config/darwin.opt (mmacosx-version-min): Update default OS version.
28641
28642 2011-02-07 Denis Chertykov <chertykov@gmail.com>
28643
28644 PR target/47534
28645 * config/avr/libgcc.S (exit): Move .endfunc
28646
28647 2011-02-07 Richard Guenther <rguenther@suse.de>
28648
28649 PR tree-optimization/47615
28650 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
28651 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
28652 (run_scc_vn): Initialize it.
28653 (visit_reference_op_load): Use it.
28654 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
28655
28656 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28657
28658 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
28659 DImode trapping arithmetic libfuncs.
28660
28661 2011-02-07 Richard Guenther <rguenther@suse.de>
28662
28663 PR tree-optimization/47621
28664 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
28665 two duplicates ...
28666 (execute_update_addresses_taken): ... here. Make it more
28667 conservative in what we accept.
28668
28669 2011-02-06 Joseph Myers <joseph@codesourcery.com>
28670
28671 * config/sparc/freebsd.h (ASM_SPEC): Define.
28672 * config/sparc/vxworks.h (ASM_SPEC): Define.
28673
28674 2011-02-06 Joseph Myers <joseph@codesourcery.com>
28675
28676 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28677
28678 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
28679
28680 * doc/invoke.texi: Remove reference to compiler internals from
28681 user documentation.
28682
28683 * reg-notes.def: Remove REG_VALUE_PROFILE.
28684 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
28685
28686 2011-02-05 Jakub Jelinek <jakub@redhat.com>
28687
28688 PR middle-end/47610
28689 * varasm.c (default_section_type_flags): If decl is NULL,
28690 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
28691
28692 2011-02-05 Jie Zhang <jie@codesourcery.com>
28693
28694 PR debug/42631
28695 * web.c (entry_register): Don't clobber the number of the
28696 first uninitialized reference in used[].
28697
28698 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
28699
28700 PR tree-optimization/46194
28701 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
28702 (build_classic_dist_vector_1): Do not represent classic distance
28703 vectors when the access functions are variating in different loops.
28704
28705 2011-02-04 Joseph Myers <joseph@codesourcery.com>
28706
28707 * config/mips/iris6.opt: New.
28708 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
28709
28710 2011-02-04 Richard Henderson <rth@redhat.com>
28711 Steve Ellcey <sje@cup.hp.com>
28712
28713 PR target/46997
28714 * config/ia64/predicates.md (mux1_brcst_element): New.
28715 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
28716 * config/ia64/ia64.c (ia64_unpack_assemble): New.
28717 (ia64_unpack_sign): New.
28718 (ia64_expand_unpack): Rewrite using new routines.
28719 (ia64_expand_widen_sum): Ditto.
28720 (ia64_expand_dot_prod_v8qi): Ditto.
28721 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
28722 routines, add endian check.
28723 (pmpy2_even): Rename from pmpy2_r, add endian check.
28724 (pmpy2_odd): Rename from pmpy2_l, add endian check.
28725 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
28726 (vec_widen_smult_hi_v4hi): Ditto.
28727 (vec_widen_umult_lo_v4hi): Ditto.
28728 (vec_widen_umult_hi_v4hi): Ditto.
28729 (mulv2si3): Change endian checks.
28730 (sdot_prodv4hi): Rewrite with new calls.
28731 (udot_prodv4hi): New.
28732 (vec_pack_ssat_v4hi): Add endian check.
28733 (vec_pack_usat_v4hi): Ditto.
28734 (vec_pack_ssat_v2si): Ditto.
28735 (max1_even): Rename from max1_r, add endian check.
28736 (max1_odd): Rename from max1_l, add endian check.
28737 (*mux1_rev): Format change.
28738 (*mux1_mix): Ditto.
28739 (*mux1_shuf): Ditto.
28740 (*mux1_alt): Ditto.
28741 (*mux1_brcst_v8qi): Use new predicate.
28742 (vec_extract_evenv8qi): Remove endian check.
28743 (vec_extract_oddv8qi): Ditto.
28744 (vec_interleave_lowv4hi): Format change.
28745 (vec_interleave_highv4hi): Ditto.
28746 (mix2_even): Rename from mix2_r, add endian check.
28747 (mix2_odd): Rename from mux2_l, add endian check.
28748 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
28749 (vec_extract_evenodd_helper): Format change.
28750 (vec_extract_evenv4hi): Remove endian check.
28751 (vec_extract_oddv4hi): Remove endian check.
28752 (vec_interleave_lowv2si): Format change.
28753 (vec_interleave_highv2si): Format change.
28754 (vec_initv2si): Remove endian check.
28755 (vecinit_v2si): Add endian check.
28756 (reduc_splus_v2sf): Add endian check.
28757 (reduc_smax_v2sf): Ditto.
28758 (reduc_smin_v2sf): Ditto.
28759 (vec_initv2sf): Remove endian check.
28760 (fpack): Add endian check.
28761 (fswap): Add endian check.
28762 (vec_interleave_highv2sf): Add endian check.
28763 (vec_interleave_lowv2sf): Add endian check.
28764 (fmix_lr): Add endian check.
28765 (vec_setv2sf): Format change.
28766 (*vec_extractv2sf_0_be): Use shift to extract operand.
28767 (*vec_extractv2sf_1_be): New.
28768 (vec_pack_trunc_v4hi): Add endian check.
28769 (vec_pack_trunc_v2si): Format change.
28770
28771 2011-02-04 Jakub Jelinek <jakub@redhat.com>
28772
28773 PR inline-asm/23200
28774 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
28775 do bb, locus and block comparison and disallow loads if it is not set.
28776 (stmt_is_replaceable_p): New function.
28777 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
28778 callers.
28779 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
28780 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
28781 SSA_NAME_DEF_STMT.
28782 * tree-flow.h (stmt_is_replaceable_p): New prototype.
28783
28784 2011-02-04 Joseph Myers <joseph@codesourcery.com>
28785
28786 * config/rs6000/xilinx.opt: New.
28787 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
28788
28789 2011-02-04 Joseph Myers <joseph@codesourcery.com>
28790
28791 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
28792
28793 2011-02-03 Anatoly Sokolov <aesok@post.ru>
28794
28795 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
28796 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28797 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
28798 secondary_reload_info, xtensa_secondary_reload): Remove.
28799 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
28800 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28801 (xtensa_preferred_reload_class): Make static. Change return and
28802 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
28803 Use CONST_DOUBLE_P predicate.
28804 (xtensa_preferred_output_reload_class): New function.
28805 (xtensa_secondary_reload): Make static.
28806
28807 2011-02-03 Joseph Myers <joseph@codesourcery.com>
28808
28809 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
28810 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
28811 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
28812
28813 2011-02-03 Jakub Jelinek <jakub@redhat.com>
28814
28815 PR middle-end/31490
28816 * output.h (SECTION_RELRO): Define.
28817 (SECTION_MACH_DEP): Adjust.
28818 (get_variable_section): New prototype.
28819 * varpool.c (varpool_finalize_named_section_flags): New function.
28820 (varpool_assemble_pending_decls): Call it.
28821 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
28822 * cgraphunit.c (cgraph_output_in_order): Call
28823 varpool_finalize_named_section_flags.
28824 * varasm.c (get_section): Allow section flags conflicts between
28825 relro and read-only sections if the section hasn't been declared yet.
28826 Set SECTION_OVERRIDE after diagnosing section type conflict.
28827 (get_variable_section): No longer static.
28828 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
28829 readonly sections that need relocations.
28830 (decl_readonly_section_1): New function.
28831 (decl_readonly_section): Use it.
28832
28833 Revert:
28834 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
28835 Steve Ellcey <sje@cup.hp.com>
28836
28837 PR middle-end/31490
28838 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
28839 if section attribute used.
28840
28841 2011-02-03 Jakub Jelinek <jakub@redhat.com>
28842
28843 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
28844 * config/darwin.c (SECTION_NO_ANCHOR): Define.
28845 (darwin_init_sections): Remove assertion.
28846
28847 2011-02-03 Nick Clifton <nickc@redhat.com>
28848
28849 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
28850 lt and ge.
28851 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
28852 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
28853 instead of "n" and "pz".
28854 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
28855 CC_FLAG_S.
28856
28857 2011-02-03 Jakub Jelinek <jakub@redhat.com>
28858
28859 PR target/47312
28860 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
28861 fma, expand FMA_EXPR as fma{,f,l} call.
28862
28863 PR lto/47274
28864 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
28865 copy them into a unsigned char variable and pass address of it to
28866 lto_output_data_stream.
28867
28868 PR target/47564
28869 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
28870 around backend_init_target and lang_dependent_init_target calls.
28871 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
28872 (verify_cgraph_node): Don't call set_cfun here. Use
28873 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
28874 Set error_found for incorrectly represented calls to thunks.
28875
28876 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
28877
28878 PR debug/43092
28879 PR rtl-optimization/43494
28880 * rtl.h (for_each_inc_dec_fn): New type.
28881 (for_each_inc_dec): Declare.
28882 * rtlanal.c (struct for_each_inc_dec_ops): New type.
28883 (for_each_inc_dec_find_inc_dec): New fn.
28884 (for_each_inc_dec_find_mem): New fn.
28885 (for_each_inc_dec): New fn.
28886 * dse.c (struct insn_size): Remove.
28887 (replace_inc_dec, replace_inc_dec_mem): Remove.
28888 (emit_inc_dec_insn_before): New fn.
28889 (check_for_inc_dec): Use it, along with for_each_inc_dec.
28890 (canon_address): Pass mem modes to cselib_lookup.
28891 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
28892 (cselib_lookup_from_insn): Likewise.
28893 (cselib_subst_to_values): Likewise.
28894 * cselib.c (find_slot_memmode): New var.
28895 (cselib_find_slot): New fn. Use it instead of
28896 htab_find_slot_with_hash everywhere.
28897 (entry_and_rtx_equal_p): Use find_slot_memmode.
28898 (autoinc_split): New fn.
28899 (rtx_equal_for_cselib_p): Rename and implement in terms of...
28900 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
28901 Deal with autoinc. Special-case recursion into MEMs.
28902 (cselib_hash_rtx): Likewise.
28903 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
28904 address and MEM modes.
28905 (cselib_subst_to_values): Add memmode, pass it on.
28906 Deal with autoinc.
28907 (cselib_lookup): Add memmode argument, pass it on.
28908 (cselib_lookup_from_insn): Add memmode.
28909 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
28910 (struct cselib_record_autoinc_data): New.
28911 (cselib_record_autoinc_cb): New fn.
28912 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
28913 mode to cselib_lookup. Reset autoinced REGs here instead of...
28914 (cselib_process_insn): ... here.
28915 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
28916 to cselib_lookup.
28917 (add_uses): Likewise, also to cselib_subst_to_values.
28918 (add_stores): Likewise.
28919 * sched-deps.c (add_insn_mem_dependence): Pass mode to
28920 cselib_subst_to_values.
28921 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
28922 * gcse.c (do_local_cprop): Adjusted.
28923 * postreload.c (reload_cse_simplify_set): Adjusted.
28924 (reload_cse_simplify_operands): Adjusted.
28925 * sel-sched-dump (debug_mem_addr_value): Pass mode.
28926
28927 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
28928
28929 PR tree-optimization/45122
28930 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
28931 unsafe assumptions when there's more than one loop exit.
28932
28933 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28934
28935 PR target/47272
28936 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28937 Document using vector double with the load/store builtins, and
28938 that the load/store builtins always use Altivec instructions.
28939
28940 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
28941 to use altivec memory instructions, even on VSX.
28942 (vector_altivec_store_<mode>): Ditto.
28943
28944 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
28945 function.
28946
28947 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28948 V2DF, V2DI support to load/store overloaded builtins.
28949
28950 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
28951 altivec load/store builtins for V2DF/V2DI types.
28952
28953 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28954 set avoid indexed addresses on power6 if -maltivec.
28955 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
28956 vector_altivec_load/vector_altivec_store builtins.
28957 (altivec_expand_st_builtin): Ditto.
28958 (altivec_expand_builtin): Add VSX memory builtins.
28959 (rs6000_init_builtins): Add V2DI types to internal types.
28960 (altivec_init_builtins): Add support for V2DF/V2DI altivec
28961 load/store builtins.
28962 (rs6000_address_for_altivec): Insure memory address is appropriate
28963 for Altivec.
28964
28965 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
28966 vec_vsx_ld and vec_vsx_st.
28967 (vsx_store_<mode>): Ditto.
28968
28969 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
28970 variables to hold long long types for VSX vector memory builtins.
28971 (RS6000_BTI_unsigned_long_long): Ditto.
28972 (long_long_integer_type_internal_node): Ditti.
28973 (long_long_unsigned_type_internal_node): Ditti.
28974
28975 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
28976 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
28977 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
28978
28979 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
28980 short cuts.
28981 (vec_vsx_st): Ditto.
28982
28983 2011-02-02 Joseph Myers <joseph@codesourcery.com>
28984
28985 * config/pa/pa-hpux10.opt: New.
28986 * config/hpux11.opt (pthread): New Driver option.
28987 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
28988 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
28989
28990 2011-02-02 Joseph Myers <joseph@codesourcery.com>
28991
28992 * config/ia64/vms.opt: New.
28993 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
28994
28995 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
28996
28997 PR target/47580
28998 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
28999 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29000 generator functions.
29001 (vsx_floatuns<VSi><mode>2): Ditto.
29002 (vsx_fix_trunc<mode><VSi>2): Ditto.
29003 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29004
29005 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29006
29007 * config/i386/djgpp.opt (posix): New Driver option.
29008
29009 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
29010
29011 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29012 Move to the unsupported targets list.
29013
29014 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
29015
29016 PR rtl-optimization/47525
29017 * df-scan.c: Update copyright years.
29018 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29019 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29020
29021 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29022
29023 * config/i386/sysv4.h (TARGET_VERSION): Remove.
29024 (SUBTARGET_RETURN_IN_MEMORY): Remove.
29025 (ASM_OUTPUT_ASCII): Remove.
29026 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29027
29028 2011-02-02 Jeff Law <law@redhat.com>
29029
29030 PR middle-end/47543
29031 * reload.c (find_reloads_address): Handle reg+d address where both
29032 components are invalid by reloading the entire address.
29033
29034 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29035 Richard Guenther <rguenther@suse.de>
29036
29037 PR tree-optimization/40979
29038 PR bootstrap/47044
29039 * passes.c (init_optimization_passes): After LIM call copy_prop
29040 and DCE to clean up.
29041 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29042
29043 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29044
29045 PR tree-optimization/47576
29046 PR tree-optimization/47555
29047 * doc/invoke.texi (scev-max-expr-complexity): Documented.
29048 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29049 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29050 * tree-scalar-evolution.c (follow_ssa_edge): Use
29051 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29052
29053 2011-02-02 Richard Guenther <rguenther@suse.de>
29054
29055 PR tree-optimization/47566
29056 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29057
29058 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29059
29060 PR debug/47106
29061 PR debug/47402
29062 * tree-inline.c (declare_return_variable): Remove unused caller
29063 variable.
29064
29065 PR debug/47106
29066 PR debug/47402
29067 * tree-flow-inline.h (clear_is_used, is_used_p): New.
29068 * cfgexpand.c (account_used_vars_for_block): Use them.
29069 * tree-nrv.c (tree_nrv): Likewise.
29070 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29071 (dump_scope_block): Likewise.
29072 (remove_unused_locals): Likewise.
29073
29074 PR debug/47106
29075 PR debug/47402
29076 * tree-inline.c (declare_return_variable): Add result decl to
29077 local decls only once.
29078 * gimple-low.c (record_vars_into): Mark newly-created variables
29079 as referenced.
29080
29081 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29082
29083 PR debug/47498
29084 PR debug/47501
29085 PR debug/45136
29086 PR debug/45130
29087 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29088 debug insns.
29089 (no_real_insns_p, schedule_block, set_priorities): Drop special
29090 treatment of boundary debug insns.
29091 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29092 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29093 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29094 (BOUNDARY_DEBUG_INSN_P): Likewise.
29095 (SCHEDULE_DEBUG_INSN_P): Likewise.
29096 * sched-rgn.c (init_ready_list): Drop special treatment of
29097 boundary debug insns.
29098 * final.c (rest_of_clean_state): Clear notes' BB.
29099
29100 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29101
29102 * config/openbsd.opt (assert=): New Driver option.
29103
29104 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29105
29106 * config/i386/nto.opt: New.
29107 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29108
29109 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29110
29111 * config/i386/netware.opt: New.
29112 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29113
29114 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29115
29116 * config/interix.opt (posix): New Driver option.
29117
29118 2011-02-01 DJ Delorie <dj@redhat.com>
29119
29120 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29121
29122 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29123 class for A0/A1.
29124
29125 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
29126
29127 PR tree-optimization/47561
29128 * toplev.c (process_options): Print the Graphite flags. Add
29129 flag_loop_flatten to the list of options requiring Graphite.
29130
29131 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29132
29133 * config/i386/cygming.opt (posix): New Driver option.
29134
29135 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29136
29137 * config/arm/vxworks.opt: New.
29138 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29139
29140 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29141
29142 * config/alpha/elf.opt: New.
29143 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29144 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29145
29146 2011-02-01 Richard Guenther <rguenther@suse.de>
29147
29148 PR tree-optimization/47559
29149 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29150 store-motion on references that can throw.
29151
29152 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
29153
29154 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29155 * tree-pass.h (TDF_CSELIB): New macro.
29156 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29157 cselib_lookup): Check for it rather than for TDF_DETAILS.
29158
29159 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
29160
29161 PR driver/47547
29162 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29163 is HOST_BIT_BUCKET.
29164
29165 * opts.c (finish_options): Don't add x_aux_base_name if it is
29166 HOST_BIT_BUCKET.
29167
29168 2011-02-01 Richard Guenther <rguenther@suse.de>
29169
29170 PR tree-optimization/47555
29171 Revert
29172 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
29173
29174 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29175
29176 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
29177
29178 PR gcc/46692
29179 * config/lm32/t-lm32: Add multilib for all CPU options.
29180
29181 2011-02-01 Richard Guenther <rguenther@suse.de>
29182
29183 PR tree-optimization/47541
29184 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29185 sure to have a field at offset zero.
29186
29187 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29188
29189 * config/arc/arc.opt (EB, EL): New Driver options.
29190
29191 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29192
29193 * config/alpha/osf5.opt: New.
29194 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29195
29196 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29197
29198 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29199
29200 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
29201
29202 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29203 -floop-interchange.
29204 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29205 is an alias of -floop-interchange and that it requires the
29206 Graphite infrastructure.
29207 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29208 flag_loop_interchange based on the value of flag_tree_loop_linear.
29209
29210 2011-01-31 Jakub Jelinek <jakub@redhat.com>
29211 Richard Guenther <rguenther@suse.de>
29212
29213 PR tree-optimization/47538
29214 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29215 type instead of r1type, except for comparisons. For right
29216 shifts and comparisons punt if there are mismatches in
29217 sizetype vs. non-sizetype types.
29218
29219 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29220
29221 * doc/sourcebuild.texi (Effective-Target Keywords): Document
29222 avx_runtime.
29223
29224 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29225
29226 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29227 version number.
29228 * configure: Regenerate.
29229
29230 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29231
29232 * configure.ac (gcc_cv_ld_static_option): Define.
29233 (gcc_cv_ld_dynamic_option): Define.
29234 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29235 instead.
29236 (HAVE_LD_STATIC_DYNAMIC): Update message.
29237 (LD_STATIC_OPTION): Define.
29238 (LD_DYNAMIC_OPTION): Define.
29239 * configure: Regenerate.
29240 * config.in: Regenerate.
29241 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29242 HAVE_LD_STATIC_DYNAMIC]: Use them.
29243
29244 2011-01-31 Nick Clifton <nickc@redhat.com>
29245
29246 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29247 registers inside interrupt handlers if the handler is not a leaf
29248 function.
29249
29250 2011-01-31 Nick Clifton <nickc@redhat.com>
29251
29252 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29253 reg_renumber returning an INVALID_REGNUM.
29254
29255 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29256
29257 PR libgcj/44341
29258 * doc/install.texi: Document host options discarded when cross
29259 configuring target libraries.
29260
29261 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29262
29263 Reverted:
29264 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
29265 PR debug/45136
29266 PR debug/45130
29267 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29268 debug insns.
29269 (no_real_insns_p, schedule_block, set_priorities): Drop special
29270 treatment of boundary debug insns.
29271 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29272 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29273 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29274 (BOUNDARY_DEBUG_INSN_P): Likewise.
29275 (SCHEDULE_DEBUG_INSN_P): Likewise.
29276 * sched-rgn.c (init_ready_list): Drop special treatment of
29277 boundary debug insns.
29278 * final.c (rest_of_clean-state): Clear notes' BB.
29279
29280 2011-01-31 Alan Modra <amodra@gmail.com>
29281
29282 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29283 toc relative expressions as we do in print_operand_address.
29284
29285 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
29286
29287 * doc/extend.texi: Follow spelling conventions.
29288 * doc/invoke.texi: Fix a typo.
29289
29290 2011-01-30 Joseph Myers <joseph@codesourcery.com>
29291
29292 * config/hpux11.opt: New.
29293 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29294 ia64*-*-hpux*): Use hpux11.opt.
29295
29296 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
29297
29298 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29299 to tmake_file.
29300
29301 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29302
29303 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29304 support sites.
29305
29306 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29307
29308 * doc/install.texi (Binaries): Remove outdated reference for
29309 Motorola 68HC11/68HC12 downloads.
29310
29311 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29312
29313 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29314 Drepper's paper.
29315
29316 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
29317
29318 PR bootstrap/47147
29319 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29320 used by NetBSD.
29321
29322 2011-01-28 Ahmad Sharif <asharif@google.com>
29323
29324 * value-prof.c (check_counter): Corrected error message.
29325
29326 2011-01-29 Jie Zhang <jie@codesourcery.com>
29327
29328 * config/arm/arm.c (arm_legitimize_reload_address): New.
29329 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29330 arm_legitimize_reload_address.
29331 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29332
29333 2011-01-28 Ian Lance Taylor <iant@google.com>
29334
29335 * godump.c (go_define): Ignore macros whose definitions include
29336 two adjacent operands.
29337
29338 2011-01-28 Jakub Jelinek <jakub@redhat.com>
29339
29340 PR target/42894
29341 * varasm.c (force_const_mem): Store copy of x in desc->constant
29342 instead of x itself.
29343 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29344 itself into REG_EQUAL note.
29345
29346 2011-01-28 Joseph Myers <joseph@codesourcery.com>
29347
29348 * config/freebsd.opt (posix, rdynamic): New Driver options.
29349
29350 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29351
29352 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29353 -Bstatic/-Bdynamic.
29354 * configure: Regenerate.
29355
29356 2011-01-27 Joseph Myers <joseph@codesourcery.com>
29357
29358 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29359 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29360
29361 2011-01-27 Anatoly Sokolov <aesok@post.ru>
29362
29363 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29364 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29365 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29366 (s390_preferred_reload_class): Make static. Change return and
29367 'rclass' argument type to reg_class_t.
29368
29369 2011-01-27 Jan Hubicka <jh@suse.cz>
29370
29371 PR middle-end/46949
29372 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29373 (process_function_and_variable_attributes): Check defined weakrefs.
29374
29375 2011-01-27 Martin Jambor <mjambor@suse.cz>
29376
29377 PR tree-optimization/47228
29378 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29379 build_ref_for_offset.
29380
29381 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29382
29383 * config/spu/spu-elf.h (ASM_SPEC): Remove.
29384
29385 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
29386
29387 PR rtl-optimization/46856
29388 * postreload.c (reload_combine_recognize_const_pattern): Do not
29389 separate cc0 setter and user on cc0 targets.
29390
29391 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
29392
29393 PR c/43082
29394 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29395 passed a VOID_TYPE expression, immediately emit an error and
29396 return error_mark_node.
29397
29398 2011-01-26 Jeff Law <law@redhat.com>
29399
29400 PR rtl-optimization/47464
29401 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29402 rather than may_trap_p as needed.
29403
29404 2011-01-26 DJ Delorie <dj@redhat.com>
29405
29406 PR rtl-optimization/46878
29407 * combine.c (insn_a_feeds_b): Check for the implicit cc0
29408 setter/user dependency as well.
29409
29410 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
29411
29412 PR rtl-optimization/44469
29413 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29414 after removing trivially dead basic blocks.
29415
29416 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29417
29418 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29419 * config/frv/frv.h (LINK_SPEC): Likewise.
29420 * config/i386/netware.h (LINK_SPEC): Likewise.
29421 * config/m68k/linux.h (ASM_SPEC): Likewise.
29422 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29423 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29424 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29425 * config/sparc/linux.h (ASM_SPEC): Likewise.
29426 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29427 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29428
29429 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29430
29431 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29432 * config/frv/frv.h (ASM_SPEC): Likewise.
29433 * config/m68k/linux.h (ASM_SPEC): Likewise.
29434 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29435 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29436 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29437 * config/sparc/linux.h (ASM_SPEC): Likewise.
29438 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29439 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29440
29441 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29442
29443 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29444 * config/frv/frv.h (LINK_SPEC): Likewise.
29445 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29446
29447 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29448
29449 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29450 * config/frv/frv.h (ASM_SPEC): Likewise.
29451 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29452 * config/m68k/linux.h (ASM_SPEC): Likewise.
29453 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29454 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29455 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29456 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29457 * config/sparc/linux.h (ASM_SPEC): Likewise.
29458 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29459 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29460 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29461
29462 2011-01-26 Steve Ellcey <sje@cup.hp.com>
29463
29464 PR target/46997
29465 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29466 (*mux2): Ditto.
29467 (vec_extract_evenodd_help): Ditto.
29468 (vec_extract_evenv4hi): Ditto.
29469 (vec_extract_oddv4hi): Ditto.
29470 (vec_interleave_lowv2si): Ditto.
29471 (vec_interleave_highv2si): Ditto.
29472 (vec_extract_evenv2si): Ditto.
29473 (vec_extract_oddv2si: Ditto.
29474 (vec_pack_trunc_v2si): Ditto.
29475
29476 2011-01-22 Jan Hubicka <jh@suse.cz>
29477
29478 PR target/47237
29479 * cgraph.h (cgraph_local_info): New field can_change_signature.
29480 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29481 signature can change.
29482 (ipcp_estimate_growth): Call sequence simplify only if calle signature
29483 can change.
29484 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29485 (cgraph_function_versioning): We can not change signature of functions
29486 that don't allow that.
29487 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29488 (lto_input_node): Likewise.
29489 * ipa-inline.c (compute_inline_parameters): Compute
29490 local.can_change_signature.
29491 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29492 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29493 functions that can not change signature.
29494 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29495 init_cumulative_args): Do not use local calling conventions
29496 for functions that can not change signature.
29497
29498 2011-01-22 Jan Hubicka <jh@suse.cz>
29499
29500 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29501
29502 2011-01-26 Richard Guenther <rguenther@suse.de>
29503
29504 PR tree-optimization/47190
29505 * cgraphunit.c (process_common_attributes): New function.
29506 (process_function_and_variable_attributes): Use it.
29507
29508 2011-01-26 Richard Guenther <rguenther@suse.de>
29509
29510 PR lto/47423
29511 * cgraphbuild.c (record_eh_tables): Record reference to personality
29512 function.
29513
29514 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
29515
29516 PR debug/45454
29517 * sel-sched.c (moveup_expr): Don't let debug insns prevent
29518 non-debug insns from moving up.
29519
29520 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
29521
29522 PR target/40125
29523 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29524 t-dlldir{,-x} fragment for build and add it to tmake_file.
29525 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29526 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29527 * config/i386/t-dlldir: New file.
29528 (SHLIB_DLLDIR): Define.
29529 * config/i386/t-dlldir-x: New file.
29530 (SHLIB_DLLDIR): Define.
29531 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29532 (SHLIB_INSTALL): Use it.
29533
29534 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
29535
29536 PR target/47246
29537 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29538 lower bound of the allowed Thumb-2 coprocessor load/store
29539 index range to -256. Add explaining comment.
29540
29541 2011-01-25 Ian Lance Taylor <iant@google.com>
29542
29543 * godump.c (go_define): Improve lexing of macro expansion to only
29544 accept expressions which match Go spec.
29545
29546 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
29547
29548 PR c++/43601
29549 * tree.c (handle_dll_attribute): Handle it.
29550 * doc/extend.texi (@item dllexport): Mention it.
29551 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29552
29553 2011-01-25 Ian Lance Taylor <iant@google.com>
29554
29555 PR tree-optimization/26854
29556 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29557 (decl_jump_unsafe): Move higher in file, with no other change.
29558 (bind): Set has_jump_unsafe_decl if appropriate.
29559 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29560 (check_earlier_gotos): Likewise.
29561 (c_check_switch_jump_warnings): Likewise.
29562
29563 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
29564
29565 * doc/invoke.texi (Warning Options): Add missing hyphen.
29566 (-fprofile-dir): Minor grammatical fixes.
29567 (-fbranch-probabilities): Likewise.
29568
29569 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
29570
29571 PR debug/45136
29572 PR debug/45130
29573 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29574 debug insns.
29575 (no_real_insns_p, schedule_block, set_priorities): Drop special
29576 treatment of boundary debug insns.
29577 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29578 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29579 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29580 (BOUNDARY_DEBUG_INSN_P): Likewise.
29581 (SCHEDULE_DEBUG_INSN_P): Likewise.
29582 * sched-rgn.c (init_ready_list): Drop special treatment of
29583 boundary debug insns.
29584 * final.c (rest_of_clean-state): Clear notes' BB.
29585
29586 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29587
29588 * Makefile.in (LAMBDA_H): Removed.
29589 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
29590 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
29591 lambda-trans.o, and tree-loop-linear.o.
29592 (lto-symtab.o): Remove dependence on LAMBDA_H.
29593 (tree-loop-linear.o): Remove rule.
29594 (lambda-mat.o): Same.
29595 (lambda-trans.o): Same.
29596 (lambda-code.o): Same.
29597 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
29598 (tree-vect-slp.o): Same.
29599 * hwint.h (gcd): Moved here.
29600 (least_common_multiple): Same.
29601 * lambda-code.c: Removed.
29602 * lambda-mat.c: Removed.
29603 * lambda-trans.c: Removed.
29604 * lambda.h: Removed.
29605 * tree-loop-linear.c: Removed.
29606 * lto-symtab.c: Do not include lambda.h.
29607 * omega.c (gcd): Removed.
29608 * passes.c (init_optimization_passes): Remove pass_linear_transform.
29609 * tree-data-ref.c (print_lambda_vector): Moved here.
29610 (lambda_vector_copy): Same.
29611 (lambda_matrix_copy): Same.
29612 (lambda_matrix_id): Same.
29613 (lambda_vector_first_nz): Same.
29614 (lambda_matrix_row_add): Same.
29615 (lambda_matrix_row_exchange): Same.
29616 (lambda_vector_mult_const): Same.
29617 (lambda_vector_negate): Same.
29618 (lambda_matrix_row_negate): Same.
29619 (lambda_vector_equal): Same.
29620 (lambda_matrix_right_hermite): Same.
29621 * tree-data-ref.h: Do not include lambda.h.
29622 (lambda_vector): Moved here.
29623 (lambda_matrix): Same.
29624 (dependence_level): Same.
29625 (lambda_transform_legal_p): Removed declaration.
29626 (lambda_collect_parameters): Same.
29627 (lambda_compute_access_matrices): Same.
29628 (lambda_vector_gcd): Same.
29629 (lambda_vector_new): Same.
29630 (lambda_vector_clear): Same.
29631 (lambda_vector_lexico_pos): Same.
29632 (lambda_vector_zerop): Same.
29633 (lambda_matrix_new): Same.
29634 * tree-flow.h (least_common_multiple): Removed declaration.
29635 * tree-parloops.c (lambda_trans_matrix): Moved here.
29636 (LTM_MATRIX): Same.
29637 (LTM_ROWSIZE): Same.
29638 (LTM_COLSIZE): Same.
29639 (LTM_DENOMINATOR): Same.
29640 (lambda_trans_matrix_new): Same.
29641 (lambda_matrix_vector_mult): Same.
29642 (lambda_transform_legal_p): Same.
29643 * tree-pass.h (pass_linear_transform): Removed declaration.
29644 * tree-ssa-loop.c (tree_linear_transform): Removed.
29645 (gate_tree_linear_transform): Removed.
29646 (pass_linear_transform): Removed.
29647 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
29648 flag_loop_interchange.
29649
29650 2011-01-25 Jakub Jelinek <jakub@redhat.com>
29651
29652 PR tree-optimization/47265
29653 PR tree-optimization/47443
29654 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
29655 if name still has some uses.
29656
29657 2011-01-25 Martin Jambor <mjambor@suse.cz>
29658
29659 PR tree-optimization/47382
29660 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
29661 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
29662
29663 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
29664
29665 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
29666 sjlj_except_unwind_info.
29667
29668 2011-01-25 Richard Guenther <rguenther@suse.de>
29669
29670 PR tree-optimization/47426
29671 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
29672 visible functions results escape.
29673
29674 2011-01-25 Jakub Jelinek <jakub@redhat.com>
29675
29676 PR target/45701
29677 * config/arm/arm.c (any_sibcall_uses_r3): New function.
29678 (arm_get_frame_offsets): Use it.
29679
29680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29681 Jakub Jelinek <jakub@redhat.com>
29682
29683 PR tree-optimization/47271
29684 * tree-if-conv.c (bb_postdominates_preds): New.
29685 (if_convertible_bb_p): Call bb_postdominates_preds.
29686 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
29687 (predicate_scalar_phi): Call bb_postdominates_preds.
29688
29689 2011-01-25 Nick Clifton <nickc@redhat.com>
29690
29691 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
29692 * config/rx/rx.c (rx_function_value): Likewise.
29693 (rx_promote_function_mode): Likewise.
29694 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
29695 in order to make it legitimate.
29696 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
29697 make sure that the first operand is the same as the result register.
29698 (addsi3_unspec): Delete.
29699 (subdi3): Do not accept immediate operands.
29700 (subdi3_internal): Likewise.
29701
29702 2011-01-25 Jeff Law <law@redhat.com>
29703
29704 PR rtl-optimization/37273
29705 * ira-costs.c (scan_one_insn): Detect constants living in memory and
29706 handle them like argument loads from stack slots. Do not double
29707 count memory for memory constants and argument loads from stack slots.
29708
29709 2011-01-25 Jakub Jelinek <jakub@redhat.com>
29710
29711 PR tree-optimization/47427
29712 PR tree-optimization/47428
29713 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
29714 coalesce if the new root var would be TREE_READONLY.
29715
29716 2011-01-25 Richard Guenther <rguenther@suse.de>
29717
29718 PR middle-end/47414
29719 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
29720 correct type for TBAA.
29721
29722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29723
29724 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
29725 (close_phi_written_to_memory): Call for_each_index with
29726 dr_indices_valid_in_loop.
29727
29728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29729
29730 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
29731 when it is initialized.
29732
29733 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29734
29735 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
29736 call to graphite_find_data_references_in_stmt.
29737 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
29738 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
29739 call to graphite_find_data_references_in_stmt.
29740 (analyze_drs_in_stmts): Same.
29741 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
29742 in which the scalar analysis of indices is performed.
29743 (create_data_ref): Same. Update call to dr_analyze_indices.
29744 (find_data_references_in_stmt): Update call to create_data_ref.
29745 (graphite_find_data_references_in_stmt): Same.
29746 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
29747 declaration.
29748 (create_data_ref): Same.
29749 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
29750 call to create_data_ref.
29751
29752 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29753
29754 * graphite-sese-to-poly.c (build_poly_scop): Move
29755 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
29756
29757 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29758
29759 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
29760 VAR_DECL, PARM_DECL, and RESULT_DECL.
29761
29762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29763
29764 * graphite-dependences.c (reduction_dr_1): Allow several reductions
29765 in a reduction PBB.
29766 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
29767 that have already been marked as PBB_IS_REDUCTION.
29768
29769 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29770
29771 * graphite-scop-detection.c (same_close_phi_node): New.
29772 (remove_duplicate_close_phi): New.
29773 (make_close_phi_nodes_unique): New.
29774 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
29775
29776 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29777
29778 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
29779 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
29780 of both data references to be the same.
29781
29782 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29783
29784 * graphite-dependences.c (build_lexicographical_constraint): Remove
29785 the gdim parameter.
29786 (build_lexicographical_constraint): Adjust call to
29787 ppl_powerset_is_empty.
29788 (dependence_polyhedron): Same.
29789 (graphite_legal_transform_dr): Same.
29790 (graphite_carried_dependence_level_k): Same.
29791 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
29792 parameter.
29793 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
29794
29795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29796
29797 * graphite-sese-to-poly.c
29798 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
29799 (close_phi_written_to_memory): New.
29800 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
29801 and unshare_expr.
29802
29803 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29804
29805 * doc/install.texi: Update the expected version number of PPL to 0.11.
29806 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
29807 #if PPL_VERSION_MINOR < 11.
29808
29809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29810
29811 * graphite-dependences.c: Include graphite-cloog-util.h.
29812 (new_poly_ddr): Inlined into dependence_polyhedron.
29813 (free_poly_ddr): Moved close by new_poly_ddr.
29814 (dependence_polyhedron_1): Renamed dependence_polyhedron.
29815 Early return NULL when ppl_powerset_is_empty returns true.
29816 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
29817 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
29818 (graphite_legal_transform_dr): Call new_poly_ddr.
29819 (graphite_carried_dependence_level_k): Same.
29820 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
29821 (dot_transformed_deps_stmt_1): Removed.
29822 (dot_deps_stmt_1): Call dot_deps_stmt_2.
29823 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
29824 (dot_deps_1): Call dot_deps_2.
29825 * Makefile.in (graphite-dependences.o): Add missing dependence on
29826 graphite-cloog-util.h.
29827
29828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29829
29830 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
29831 (build_lexicographical_constraint): Same.
29832 (dependence_polyhedron_1): Same.
29833 (graphite_legal_transform_dr): Same.
29834 (graphite_carried_dependence_level_k): Same.
29835 * graphite-ppl.c (ppl_powerset_is_empty): New.
29836 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
29837 * tree-data-ref.c (dump_data_reference): Print the basic block index.
29838
29839 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29840
29841 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
29842 the "a followed by b" relation and document it.
29843
29844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29845
29846 * graphite-dependences.c (build_lexicographical_constraint): Stop the
29847 iteration when the bag of constraints is empty.
29848
29849 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29850
29851 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
29852
29853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29854
29855 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
29856 nest and two loop depths as parameters.
29857 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
29858 lst_perfect_nestify.
29859
29860 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29861
29862 * graphite-dependences.c (print_pddr): Call
29863 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
29864
29865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29866
29867 * graphite-ppl.c (debug_gmp_value): New.
29868 * graphite-ppl.h (debug_gmp_value): Declared.
29869
29870 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
29871
29872 * doc/install.texi: Document availability of cloog-0.16.
29873
29874 2011-01-25 Vladimir Kargov <kargov@gmail.com>
29875
29876 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
29877 invalid postdominance info.
29878
29879 2011-01-24 Jan Hubicka <jh@suse.cz>
29880
29881 PR c/21659
29882 * doc/extend.texi (weak pragma): Drop claim that it must
29883 appear before definition.
29884 * varasm.c (merge_weak, declare_weak): Only sanity check
29885 that DECL is not output at a time it is declared weak.
29886
29887 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
29888
29889 * machmode.def: Fixed comments.
29890
29891 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
29892
29893 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
29894
29895 2011-01-24 Paul Koning <ni1d@arrl.net>
29896
29897 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
29898 WORDS_BIG_ENDIAN.
29899
29900 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
29901
29902 PR target/46519
29903 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
29904 (block_info): Add scanned and prev.
29905 (move_or_delete_vzeroupper_2): Return if the basic block
29906 has been scanned and the upper 128bit state is unchanged
29907 from the last scan.
29908 (move_or_delete_vzeroupper_1): Return true if the exit
29909 state is changed.
29910 (move_or_delete_vzeroupper): Visit basic blocks using the
29911 work-list based algorithm based on vt_find_locations in
29912 var-tracking.c.
29913
29914 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
29915
29916 2011-01-24 Nick Clifton <nickc@redhat.com>
29917
29918 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
29919 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
29920 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
29921 then define __v850e1__.
29922 * doc/invoke.texi: Document -mv850es.
29923
29924 2011-01-24 Richard Henderson <rth@redhat.com>
29925
29926 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
29927 compound unordered comparisons.
29928 * config/rx/rx.c (rx_split_fp_compare): Remove.
29929 * config/rx/rx-protos.h: Update.
29930 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
29931 (cbranchsf4): Don't call rx_split_fp_compare.
29932 (*cbranchsf4): Use rx_split_cbranch.
29933 (*cmpsf): Don't accept "i" constraint.
29934 (*conditional_branch): Only valid after reload.
29935 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
29936
29937 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29938
29939 PR target/47385
29940 * config/rs6000/altivec.md (vector constant splitters): Add
29941 support for creating vector single precision constants if -mvsx is
29942 used and we would create the constant using Altivec primitives.
29943
29944 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
29945 Richard Sandiford <rdsandiford@googlemail.com>
29946
29947 PR rtl-optimization/47166
29948 * reload1.c (emit_reload_insns): Disable the spill_reg_store
29949 mechanism for PRE_MODIFY and POST_MODIFY.
29950 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
29951 reloadreg.
29952
29953 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
29954
29955 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
29956
29957 2011-01-22 Jan Hubicka <jh@suse.cz>
29958
29959 PR lto/47333
29960 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
29961
29962 2011-01-22 Jan Hubicka <jh@suse.cz>
29963
29964 PR tree-optimization/43884
29965 PR lto/44334
29966 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
29967 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
29968
29969 2011-01-22 Anatoly Sokolov <aesok@post.ru>
29970
29971 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
29972 * config/s390/s390.c (s390_register_move_cost,
29973 s390_memory_move_cost): New.
29974 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
29975
29976 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29977
29978 PR middle-end/47401
29979 * except.c (sjlj_assign_call_site_values): Move setting the
29980 crtl->uses_eh_lsda flag to ...
29981 (sjlj_mark_call_sites): ... here.
29982 (sjlj_emit_function_enter): Support NULL dispatch label.
29983 (sjlj_build_landing_pads): In a function with no landing pads
29984 that still has must-not-throw regions, generate code to register
29985 a personality function with empty LSDA.
29986
29987 2011-01-21 Richard Henderson <rth@redhat.com>
29988
29989 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
29990
29991 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
29992
29993 * compare-elim.c: New file.
29994 * Makefile.in (OBJS-common): Add it.
29995 (compare-elim.o): New.
29996 * common.opt (fcompare-elim): New.
29997 * opts.c (default_options_table): Add OPT_fcompare_elim.
29998 * tree-pass.h (pass_compare_elim_after_reload): New.
29999 * passes.c (init_optimization_passes): Add it.
30000 * recog.h: Protect against re-inclusion.
30001 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30002 * doc/invoke.texi (-fcompare-elim): Document it.
30003 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30004 * doc/tm.texi: Rebuild.
30005
30006 2011-01-22 Nick Clifton <nickc@redhat.com>
30007
30008 * config/rx/rx.md (cstoresf4): Pass comparison operator to
30009 rx_split_fp_compare.
30010
30011 2011-01-22 Nick Clifton <nickc@redhat.com>
30012
30013 * config/rx/rx.md (UNSPEC_CONST): New.
30014 (deallocate_and_return): Wrap the amount popped off the stack in
30015 an UNSPEC_CONST in order to stop it being rejected by
30016 -mmax-constant-size.
30017 (pop_and_return): Add a "(return)" rtx.
30018 (call): Drop the immediate operand.
30019 (call_internal): Likewise.
30020 (call_value): Likewise.
30021 (call_value_internal): Likewise.
30022 (sibcall_internal): Likewise.
30023 (sibcall_value_internal): Likewise.
30024 (sibcall): Likewise. Generate an explicit call using
30025 sibcall_internal.
30026 (sibcall_value): Likewise.
30027 (mov<>): FAIL if a constant operand is not legitimate.
30028 (addsi3_unpsec): New pattern.
30029
30030 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30031 (ok_for_max_constant): New function.
30032 (gen_safe_add): New function.
30033 (rx_expand_prologue): Use gen_safe_add.
30034 (rx_expand_epilogue): Likewise.
30035 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
30036 UNSPEC CONSTs.
30037
30038 2011-01-21 Jeff Law <law@redhat.com>
30039
30040 PR tree-optimization/47053
30041 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30042 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30043 statements are deleted.
30044 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
30045 is nonempty, then purge dead edges and cleanup the CFG.
30046
30047 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30048
30049 PR debug/47402
30050 Temporarily revert:
30051 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30052 PR debug/47106
30053 * tree-dfa.c (create_var_ann): Mark variable as used.
30054
30055 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30056
30057 PR middle-end/45566
30058 * except.c (convert_to_eh_region_ranges): Emit queued no-region
30059 notes from other section in hot/cold partitioning even if
30060 last_action is -3. Increment call_site_base.
30061
30062 PR rtl-optimization/47366
30063 * fwprop.c (forward_propagate_into): Return bool. If
30064 any changes are made, -fnon-call-exceptions is used and
30065 REG_EH_REGION note is present, call purge_dead_edges
30066 and return true if it purged anything.
30067 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30068 any EH edges were purged.
30069
30070 2011-01-21 Jeff Law <law@redhat.com>
30071
30072 PR rtl-optimization/41619
30073 * caller-save.c (setup_save_areas): Break out code to determine
30074 which hard regs are live across calls by examining the reload chains
30075 so that it is always used.
30076 Eliminate code which checked REG_N_CALLS_CROSSED.
30077
30078 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30079
30080 PR tree-optimization/47355
30081 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30082 NOP has non-debug uses beyond PHIs in new_bb.
30083
30084 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30085
30086 PR debug/47106
30087 * cfgexpand.c (account_used_vars_for_block): Only account vars
30088 that are annotated as used.
30089 (estimated_stack_frame_size): Don't set TREE_USED.
30090 * tree-dfa.c (create_var_ann): Mark variable as used.
30091
30092 2011-01-21 Richard Guenther <rguenther@suse.de>
30093
30094 PR middle-end/47395
30095 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30096
30097 2011-01-21 Richard Guenther <rguenther@suse.de>
30098
30099 PR tree-optimization/47365
30100 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30101 (vn_reference_lookup_pieces): Adjust.
30102 (vn_reference_lookup): Likewise.
30103 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30104 (vn_reference_lookup_3): Only look through kills if in
30105 VN_WALKREWRITE mode.
30106 (vn_reference_lookup_pieces): Adjust.
30107 (vn_reference_lookup): Likewise.
30108 (visit_reference_op_load): Likewise.
30109 (visit_reference_op_store): Likewise.
30110 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30111 (compute_avail): Likewise.
30112 (eliminate): Likewise.
30113
30114 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30115
30116 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30117 DECL_IGNORED_P non-reg vars if they are used.
30118
30119 PR tree-optimization/47391
30120 * varpool.c (const_value_known_p): Return false if
30121 decl is volatile.
30122
30123 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
30124
30125 PR bootstrap/47215
30126 * config/i386/i386.c (ix86_local_alignment): Handle
30127 case for va_list_type_node is nil.
30128 (ix86_canonical_va_list_type): Likewise.
30129
30130 2011-01-21 Alan Modra <amodra@gmail.com>
30131
30132 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30133 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30134
30135 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30136
30137 * config/arm/arm.md (define_attr type): Rename f_load
30138 and f_store to f_fpa_load and f_fpa_store. Update.
30139 (write_conflict): Deal with rename fallout.
30140 (*push_fp_multi): Likewise.
30141 * config/arm/fpa.md (f_load): Use f_fpa_load.
30142 (f_store): Use f_fpa_store.
30143 (*movsf_fpa): Likewise.
30144 (*movdf_fpa): Likewise.
30145 (*movxf_fpa): Likewise.
30146 (*thumb2_movsf_fpa): Likewise.
30147 (*thumb2_movdf_fpa): Likewise.
30148 (*thumb2_movxf_fpa): Likewise.
30149 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30150 f_loadd and f_stored.
30151 (*thumb2_movdi_vfp): Likewise.
30152 (*thumb2_movsf_vfp): Fix attribute to f_loads.
30153 (*thumb2_movsi_vfp): Likewise.
30154 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30155 Use f_loads instead of f_load.
30156 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30157
30158 2011-01-20 Anatoly Sokolov <aesok@post.ru>
30159
30160 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30161 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30162 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30163 (xtensa_mode_dependent_address_p): New function.
30164 (constantpool_address_p): Make static. Change return type to bool.
30165 Change argument type to const_rtx. Use CONST_INT_P predicate.
30166
30167 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
30168
30169 PR debug/46583
30170 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30171
30172 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30173
30174 PR debug/47283
30175 * cfgexpand.c (expand_debug_expr): Instead of generating
30176 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30177 etc. handling.
30178
30179 2011-01-20 Richard Guenther <rguenther@suse.de>
30180
30181 PR middle-end/47370
30182 * tree-inline.c (remap_gimple_op_r): Recurse manually for
30183 the pointer operand of MEM_REFs.
30184
30185 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30186
30187 PR tree-optimization/46130
30188 * ipa-split.c (consider_split): If return_bb contains non-virtual
30189 PHIs other than for retval or if split_function would not adjust it,
30190 refuse to split.
30191
30192 2011-01-20 Richard Guenther <rguenther@suse.de>
30193
30194 PR tree-optimization/47167
30195 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30196 Revert previous change, only avoid enumeral type changes.
30197
30198 2011-01-19 Mike Stump <mikestump@comcast.net>
30199
30200 * doc/tm.texi.in (BRANCH_COST): Englishify.
30201 * doc/tm.texi (BRANCH_COST): Likewise.
30202
30203 2011-01-19 Dodji Seketeli <dodji@redhat.com>
30204
30205 PR c++/47291
30206 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30207 (gen_scheduled_generic_parms_dies): New functions.
30208 (gen_struct_or_union_type_die): Schedule template parameters DIEs
30209 generation for the end of CU compilation.
30210 (dwarf2out_finish): Generate template parameters DIEs here.
30211
30212 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30213
30214 PR debug/46240
30215 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30216 debug bind stmt on merge edges.
30217
30218 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30219
30220 PR debug/47079
30221 PR debug/46724
30222 * function.c (instantiate_expr): Instantiate incoming rtl of
30223 implicit arguments, and recurse on VALUE_EXPRs.
30224 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30225 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30226
30227 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30228
30229 * c-parser.c (c_parser_for_statement): Initialize
30230 collection_expression.
30231
30232 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30233
30234 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30235
30236 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30237
30238 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30239 (LINK_SHLIB_SPEC): Don't use %(link_path).
30240 (SUBTARGET_EXTRA_SPECS): Remove link_path.
30241
30242 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30243
30244 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30245 (NO_SHARED_LIB_SUPPORT): Remove.
30246 (LINK_SHLIB_SPEC): Remove one conditional definition.
30247
30248 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30249
30250 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30251 %{call_shared}.
30252 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30253 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30254 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30255 %{call_shared} and conditionals on these options not being passed.
30256 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30257 %{call_shared}.
30258
30259 2011-01-19 Jakub Jelinek <jakub@redhat.com>
30260
30261 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30262 simplify.
30263
30264 * ipa-split.c: Spelling fixes.
30265
30266 2011-01-19 Richard Henderson <rth@redhat.com>
30267
30268 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30269 (*mulsi3): Likewise.
30270
30271 * longlong.h [__mn10300__] (count_leading_zeros): New.
30272 [__mn10300__] (umul_ppmm, smul_ppmm): New.
30273 [__mn10300__] (add_ssaaaa, subddmmss): New.
30274 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30275 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30276
30277 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30278
30279 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30280
30281 2011-01-19 Richard Henderson <rth@redhat.com>
30282
30283 * config/mn10300/mn10300.md (addsi3_flags): New.
30284 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30285 (subsi3_flags, subc_internal, subdi3): New.
30286 (subdi3_internal, *subdi3_degenerate): New.
30287 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30288
30289 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30290 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30291 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
30292 * config/mn10300/mn10300-protos.h: Update.
30293 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30294 (return_ret): Likewise. Rename from return_internal_regs.
30295 (return_internal): Remove.
30296
30297 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30298 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30299 (mn10300_legitimate_constant_p): Likewise.
30300 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30301 (mn10300_frame_size): New.
30302 (mn10300_expand_prologue): Use it.
30303 (mn10300_expand_epilogue): Likewise.
30304 (mn10300_initial_offset): Likewise.
30305 * config/mn10300/mn10300-protos.h: Update.
30306 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30307 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30308 (prologue, epilogue, return_internal): Tidy output code.
30309 (mn10300_store_multiple_operation, return): Likewise.
30310 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30311 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30312 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30313 (load_pic, am33_load_pic): New.
30314 (mn10300_load_pic0, mn10300_load_pic1): New.
30315
30316 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30317 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30318 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30319 (cc_flags_for_mode, cc_flags_for_code): New.
30320 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30321 overflow flag is not valid. Validate that the flags we need
30322 for the comparison are valid.
30323 (mn10300_output_cmp): Remove.
30324 (mn10300_output_add): New.
30325 (mn10300_select_cc_mode): Use cc_flags_for_code.
30326 (mn10300_split_cbranch): New.
30327 (mn10300_match_ccmode): New.
30328 (mn10300_split_and_operand_count): New.
30329 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30330 to the function.
30331 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30332 (addsi3): ... here. Use mn10300_output_add.
30333 (*addsi3_flags): New.
30334 (*am33_subsi3, *mn10300_subsi3): Merge...
30335 (subsi3): ... here. Use attribute isa.
30336 (*subsi3_flags): New.
30337 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
30338 when possible.
30339 (*am33_andsi3, *mn10300_andsi3): Merge...
30340 (andsi3): ... here.
30341 (*andsi3_flags): New.
30342 (andsi3 splitters): New.
30343 (*am33_iorsi3, *mn10300_iorsi3): Merge...
30344 (iorsi3): ... here.
30345 (*iorsi3_flags): New.
30346 (*am33_xorsi3, *mn10300_xorsi3): Merge...
30347 (xorsi3): ... here.
30348 (*xorsi3_flags): New.
30349 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30350 (one_cmplsi2): ... here.
30351 (*one_cmplsi2_flags): New.
30352 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
30353 instead of "dax" in constraints. Use mn10300_split_cbranch.
30354 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
30355 use matching constraints to eliminate a self-comparison.
30356 (*integer_conditional_branch): Rename from integer_conditional_branch.
30357 Use int_mode_flags to match CC_REG.
30358 (*cbranchsi4_btst, *btstsi): New.
30359 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
30360 mn10300_split_cbranch.
30361 (*am33_cmpsf): Rename from am33_cmpsf.
30362 (*float_conditional_branch): Rename from float_conditional_branch.
30363 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30364 (zero_extendqisi2): ... here.
30365 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30366 (zero_extendhisi2): ... here.
30367 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30368 (extendqisi2): ... here.
30369 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30370 (extendhisi2): ... here.
30371 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30372 (ashlsi3): ... here.
30373 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30374 (lshrsi3): ... here.
30375 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
30376 (ashrsi3): ... here.
30377 (consecutive add peephole): Remove.
30378 * config/mn10300/predicates.md (label_ref_operand): New.
30379 (int_mode_flags): New.
30380 (CCZN_comparison_operator): New.
30381
30382 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30383 (throughput_42_latency_43): New reservation.
30384 (mulsidi3, umulsidi3): New expanders.
30385 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
30386 the MDR register to allocation; separately allocate the low and
30387 high parts of the DImode result.
30388 (umulsidi3_internal): Similarly.
30389 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30390 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
30391 (udivsi3, umodsi3): Remove.
30392 (udivmodsi4, divmodsi4): New expanders.
30393 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
30394 (*divmodsi4): Simiarly.
30395 (ext_internal): New.
30396
30397 * config/mn10300/constraints.md ("z"): New constraint.
30398 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30399 (FIXED_REGISTERS): Don't fix MDR.
30400 (CALL_USED_REGSITERS): Reformat nicely.
30401 (REG_ALLOC_ORDER): Add MDR.
30402 (enum regclass): Add MDR_REGS.
30403 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30404 (IRA_COVER_CLASSES): Add MDR_REGS.
30405 (REGNO_REG_CLASS): Handle MDR_REG.
30406 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30407 (mn10300_register_move_cost): Likewise.
30408 * config/mn10300/mn10300.md (MDR_REG): New.
30409 (*movsi_internal): Handle moves to/from MDR_REGS.
30410
30411 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30412 POST_MODIFY.
30413 (mn10300_secondary_reload): Tidy combination reload classes.
30414 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30415 addresses for AM33. Allow symbolic offsets for reg+imm.
30416 (mn10300_regno_in_class_p): New.
30417 (mn10300_legitimize_reload_address): New.
30418 * config/mn10300/mn10300.h (enum reg_class): Remove
30419 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30420 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
30421 SP_OR_GENERAL_REGS.
30422 (REG_CLASS_NAMES): Update to match.
30423 (REG_CLASS_CONTENTS): Likewise.
30424 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30425 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30426 (REGNO_IN_RANGE_P): Remove.
30427 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30428 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30429 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30430 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30431 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30432 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30433 (REGNO_GENERAL_P): New.
30434 (HAVE_POST_MODIFY_DISP): New.
30435 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30436 (LEGITIMIZE_RELOAD_ADDRESS): New.
30437 * config/mn10300/mn10300-protos.h: Update.
30438
30439 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30440 DATA_REGS for AM33 stack-pointer destination.
30441 (mn10300_preferred_output_reload_class): Likewise.
30442 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30443 into a form appropriate for ...
30444 (TARGET_SECONDARY_RELOAD): New.
30445 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30446 * config/mn10300/mn10300-protos.h: Update.
30447 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30448 reload_insi; use the "A" constraint for the scratch; handle AM33
30449 moves of sp to non-address registers.
30450
30451 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30452 (*movqi_internal): ... here.
30453 (*am33_movhi, *mn10300_movhi): Merge into...
30454 (*movhi_internal): ... here.
30455 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
30456 as the source/destination of moves from/to SP.
30457 (movsf): Only allow for AM33-2.
30458 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30459 any integer constant constraint. Only allow for AM33-2. Tidy
30460 all of the alternative outputs.
30461 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30462 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
30463 for MN103.
30464 (udivsi3, umodsi3): New patterns for MN103 only.
30465
30466 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
30467
30468 * doc/tm.texi.in: Spell out that a lack of register class unions
30469 can lead to ICEs.
30470 * doc/tm.texi: Regenerate.
30471
30472 2011-01-19 Jakub Jelinek <jakub@redhat.com>
30473
30474 PR rtl-optimization/47337
30475 * dce.c (check_argument_store): New function.
30476 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
30477
30478 PR tree-optimization/47290
30479 * tree-eh.c (infinite_empty_loop_p): New function.
30480 (cleanup_empty_eh): Use it.
30481
30482 2011-01-18 Steve Ellcey <sje@cup.hp.com>
30483
30484 PR target/46997
30485 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30486 (a64_expand_widen_sum): Ditto.
30487 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30488 (vec_extract_evenodd_help): Ditto.
30489 (vec_extract_evenv4hi): Ditto.
30490 (vec_extract_oddv4hi): Ditto.
30491 (vec_extract_evenv2si): Ditto.
30492 (vec_extract_oddv2si): Ditto.
30493 (vec_extract_evenv2sf): Ditto.
30494 (vec_extract_oddv2sf): Ditto.
30495 (vec_pack_trunc_v4hi: Ditto.
30496 (vec_pack_trunc_v2si): Ditto.
30497 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30498 (vec_interleave_highv8qi): Ditto.
30499 (mix1_r): Ditto.
30500 (vec_extract_oddv8qi): Ditto.
30501 (vec_interleave_lowv4hi): Ditto.
30502 (vec_interleave_highv4hi): Ditto.
30503 (vec_interleave_lowv2si): Ditto.
30504 (vec_interleave_highv2si): Ditto.
30505
30506 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30507
30508 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30509 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30510 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
30511 (pa_c_mode_for_suffix): New.
30512 (TARGET_EXPAND_BUILTIN): Define.
30513 (TARGET_C_MODE_FOR_SUFFIX): Define.
30514 (pa_builtins): Define.
30515 (pa_init_builtins): Register __float128 type and init new support
30516 builtins.
30517 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30518 * config/pa/quadlib.c (_U_Qfcopysign): New.
30519
30520 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
30521
30522 PR middle-end/46894
30523 * explow.c (allocate_dynamic_stack_space): Do not assume more than
30524 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30525 are defined.
30526
30527 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30528
30529 PR tree-optimization/47179
30530 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30531 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30532
30533 2011-01-18 Richard Guenther <rguenther@suse.de>
30534
30535 PR rtl-optimization/47216
30536 * emit-rtl.c: Include tree-flow.h.
30537 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30538 of replicating it with different semantics.
30539 * Makefile.in (emit-rtl.o): Adjust.
30540
30541 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30542
30543 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30544 (cortex_a9_dp): Handle neon types correctly.
30545
30546 2011-01-18 Jakub Jelinek <jakub@redhat.com>
30547
30548 PR rtl-optimization/47299
30549 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30550 subtarget. Use normal multiplication if both operands are constants.
30551 * expmed.c (expand_widening_mult): Don't try to optimize constant
30552 multiplication if op0 has VOIDmode. Convert op1 constant to mode
30553 before using it.
30554
30555 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30556
30557 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
30558 spacing after 'e.g.', typos, comma, hyphenation.
30559
30560 2011-01-17 Richard Henderson <rth@redhat.com>
30561
30562 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
30563 (rx_restricted_mem_operand): New.
30564 (rx_shift_operand): Use register_operand.
30565 (rx_source_operand, rx_compare_operand): Likewise.
30566 * config/rx/rx.md (addsi3_flags): New expander.
30567 (adddi3): Rewrite as expander.
30568 (adc_internal, *adc_flags, adddi3_internal): New patterns.
30569 (subsi3_flags): New expander.
30570 (subdi3): Rewrite as expander.
30571 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
30572
30573 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
30574 (rx_init_builtins): Remove sat builtin.
30575 (rx_expand_builtin): Likewise.
30576 * config/rx/rx.md (ssaddsi3): New.
30577 (*sat): Rename from sat. Represent the CC_REG input.
30578
30579 * config/rx/predicates.md (rshift_operator): New.
30580 * config/rx/rx.c (rx_expand_insv): Remove.
30581 * config/rx/rx-protos.h: Update.
30582 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
30583 operand to the canonical position.
30584 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
30585 (*bitclr, *bitclr_in_memory): Similarly.
30586 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
30587 (insv): Retain the zero_extract in the expansion.
30588
30589 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
30590 (bswaphi2, bitinvert, revw): Likewise.
30591
30592 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
30593 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
30594 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
30595 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
30596 (bitset, bitset_in_memory): Likewise.
30597 (bitinvert, bitinvert_in_memory): Likewise.
30598 (bitclr, bitclr_in_memory): Likewise.
30599 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
30600 (rx_strend, rx_cmpstrn): Likewise.
30601 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
30602 (bitop peep2 patterns): Remove.
30603
30604 * config/rx/rx.c (rx_match_ccmode): New.
30605 * config/rx/rx-protos.h: Update.
30606 * config/rx/rx.md (abssi2): Clobber, don't set flags.
30607 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
30608 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
30609 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
30610 (fix_truncsfsi2, floatsisf2): Likewise.
30611 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
30612 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
30613 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
30614 (*subsi3_flags, *xorsi3_flags): New.
30615
30616 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
30617
30618 * config/rx/rx.c (rx_print_operand): Remove workaround for
30619 unsplit comparison operations.
30620
30621 * config/rx/rx.md (movsicc): Split after reload.
30622 (*movsicc): Merge *movsieq and *movsine via match_operator.
30623 (*stcc): New pattern.
30624
30625 * config/rx/rx.c (rx_float_compare_mode): Remove.
30626 * config/rx/rx.h (rx_float_compare_mode): Remove.
30627 * config/rx/rx.md (cstoresi4): Split after reload.
30628 (*sccc): New pattern.
30629
30630 * config/rx/predicates.md (label_ref_operand): New.
30631 (rx_z_comparison_operator): New.
30632 (rx_zs_comparison_operator): New.
30633 (rx_fp_comparison_operator): New.
30634 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
30635 Validate that the flags are set properly for the comparison.
30636 (rx_gen_cond_branch_template): Remove.
30637 (rx_cc_modes_compatible): Remove.
30638 (mode_from_flags): New.
30639 (flags_from_code): Rename from flags_needed_for_conditional.
30640 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
30641 (rx_select_cc_mode): Likewise.
30642 (rx_split_fp_compare): New.
30643 (rx_split_cbranch): New.
30644 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
30645 (*cbranchsi4): Use match_operator and rx_split_cbranch.
30646 (*cbranchsf4): Similarly.
30647 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
30648 match_operator and rx_split_cbranch.
30649 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
30650 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
30651 (*cmpsi): Rename from cmpsi.
30652 (*tstsi): Rename from tstsi.
30653 (*cmpsf): Rename from cmpsf; use CC_Fmode.
30654 (*conditional_branch): Rename from conditional_branch.
30655 (*reveresed_conditional_branch): Remove.
30656 (b<code>): Remove expander.
30657 * config/rx/rx-protos.h: Update.
30658
30659 * config/rx/rx.c (rx_compare_redundant): Remove.
30660 * config/rx/rx.md (cmpsi): Don't use it.
30661 * config/rx/rx-protos.h: Update.
30662
30663 * config/rx/rx-modes.def (CC_F): New mode.
30664 * config/rx/rx.c (rx_select_cc_mode): New.
30665 * config/rx/rx.h (SELECT_CC_MODE): Use it.
30666 * config/rx/rx-protos.h: Update.
30667
30668 2011-01-17 Richard Henderson <rth@redhat.com>
30669
30670 * except.c (dump_eh_tree): Fix stray ; after for statement.
30671
30672 2011-01-17 Richard Guenther <rguenther@suse.de>
30673
30674 PR tree-optimization/47313
30675 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
30676 handling before copying the body. Properly deal with
30677 by-reference result in SSA form.
30678
30679 2011-01-17 Ian Lance Taylor <iant@google.com>
30680
30681 PR target/47219
30682 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
30683 (struct_value_alias_set): Don't define.
30684 (sparc_option_override): Don't set sparc_sr_alias_set and
30685 struct_value_alias_set.
30686 (save_or_restore_regs): Use gen_frame_mem rather than calling
30687 set_mem_alias_set.
30688 (sparc_struct_value_rtx): Likewise.
30689
30690 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
30691
30692 PR target/47318
30693 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
30694 (_mm_maskstore_pd): Likewise.
30695 (_mm_maskload_ps): Likewise.
30696 (_mm_maskstore_ps): Likewise.
30697 (_mm256_maskload_pd): Change mask to __m256i.
30698 (_mm256_maskstore_pd): Likewise.
30699 (_mm256_maskload_ps): Likewise.
30700 (_mm256_maskstore_ps): Likewise.
30701
30702 * config/i386/i386-builtin-types.def: Updated.
30703 (ix86_expand_special_args_builtin): Likewise.
30704
30705 * config/i386/i386.c (bdesc_special_args): Update
30706 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
30707 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
30708 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
30709 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
30710
30711 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
30712 Use <avxpermvecmode> on mask register.
30713 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
30714
30715 2011-01-17 Olivier Hainque <hainque@adacore.com>
30716 Michael Haubenwallner <michael.haubenwallner@salomon.at>
30717 Eric Botcazou <ebotcazou@adacore.com>
30718
30719 PR target/46655
30720 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
30721 if <= USHRT_MAX in 32-bit mode.
30722
30723 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30724
30725 * doc/install.texi (Configuration, Specific): Wrap long
30726 lines in examples. Allow line wrapping in long options
30727 and URLs where beneficial for PDF output.
30728
30729 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
30730
30731 * config/mips/mips.c (mips_classify_symbol): Don't return
30732 SYMBOL_PC_RELATIVE for nonlocal labels.
30733
30734 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
30735
30736 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
30737
30738 2011-01-15 Jan Hubicka <jh@suse.cz>
30739
30740 PR tree-optimization/47276
30741 * ipa.c (function_and_variable_visibility): Do not try to mark alias
30742 declarations as needed.
30743
30744 2011-01-15 Martin Jambor <mjambor@suse.cz>
30745
30746 * common.opt (fdevirtualize): New flag.
30747 * doc/invoke.texi (Option Summary): Document it.
30748 * opts.c (default_options_table): Add devirtualize flag.
30749 * ipa-prop.c (detect_type_change): Return immediately if
30750 devirtualize flag is not set.
30751 (detect_type_change_ssa): Likewise.
30752 (compute_known_type_jump_func): Likewise.
30753 (ipa_analyze_virtual_call_uses): Likewise.
30754
30755 2011-01-14 Martin Jambor <mjambor@suse.cz>
30756
30757 PR tree-optimization/45934
30758 PR tree-optimization/46302
30759 * ipa-prop.c (type_change_info): New type.
30760 (stmt_may_be_vtbl_ptr_store): New function.
30761 (check_stmt_for_type_change): Likewise.
30762 (detect_type_change): Likewise.
30763 (detect_type_change_ssa): Likewise.
30764 (compute_complex_assign_jump_func): Check for dynamic type change.
30765 (compute_complex_ancestor_jump_func): Likewise.
30766 (compute_known_type_jump_func): Likewise.
30767 (compute_scalar_jump_functions): Likewise.
30768 (ipa_analyze_virtual_call_uses): Likewise.
30769 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
30770
30771 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30772
30773 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
30774 * config/i386/i386.opt (msse5): New Alias.
30775
30776 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30777
30778 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30779 * config/sparc/linux64.h (CC1_SPEC): Likewise.
30780 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30781 * config/sparc/sparc.h (CC1_SPEC): Likewise.
30782
30783 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30784
30785 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
30786 -mcpu options.
30787 * config/sparc/linux64.h (CC1_SPEC): Likewise.
30788 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30789 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
30790 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
30791 Likewise.
30792 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
30793
30794 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30795
30796 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
30797
30798 2011-01-14 Mike Stump <mikestump@comcast.net>
30799
30800 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
30801 * config/fr30/fr30.md: Likweise
30802 (movsi_push): Likewise.
30803 (movsi_pop): Likewise.
30804 (enter_func): Likewise.
30805 * config/moxie/moxie.md (movsi_push): Likewise.
30806 (movsi_pop): Likewise.
30807
30808 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30809
30810 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
30811 %{no_archive} %{exact_version}.
30812 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
30813 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
30814 %{no_archive} %{exact_version}.
30815 * config/mips/openbsd.h (LINK_SPEC): Likewise.
30816 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
30817 * config/mips/vxworks.h: Likewise.
30818
30819 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30820
30821 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
30822
30823 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30824
30825 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
30826 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
30827
30828 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30829
30830 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
30831 -nodefaultlib.
30832
30833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30834
30835 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
30836 for mcpu not cpu.
30837 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
30838 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
30839 not cpu.
30840 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
30841 Don't handle -shlib.
30842
30843 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30844
30845 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
30846 (CC1_SPEC): Don't handle -profile.
30847
30848 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30849
30850 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
30851 * config/mips/mips.h (CC1_SPEC): Likewise.
30852
30853 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30854
30855 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
30856 * config/mips/mips.h (CC1_SPEC): Likewise.
30857
30858 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30859
30860 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
30861 * config/m32r/linux.h (LINK_SPEC): Likewise.
30862 * config/mips/linux.h (LINK_SPEC): Likewise.
30863 * config/mips/linux64.h (LINK_SPEC): Likewise.
30864 * config/sparc/linux.h (LINK_SPEC): Likewise.
30865 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
30866 LINK_SPEC): Likewise.
30867 * config/xtensa/linux.h (LINK_SPEC): Likewise.
30868
30869 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30870
30871 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
30872 %{version:-v}.
30873 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
30874
30875 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30876
30877 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
30878 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30879
30880 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30881
30882 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
30883
30884 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30885
30886 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
30887 supports -Bstatic/-Bdynamic.
30888 * configure: Regenerate.
30889
30890 2011-01-14 Jan Hubicka <jh@suse.cz>
30891 Jack Howarth <howarth@bromo.med.uc.edu>
30892
30893 PR target/46037
30894 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
30895 when checking debug_info_level. Test write_symbols instead of
30896 debug_hooks->var_location when setting flag_var_tracking_uninit.
30897
30898 2011-01-14 Richard Guenther <rguenther@suse.de>
30899
30900 PR tree-optimization/47179
30901 * target.def (ref_may_alias_errno): New target hook.
30902 * targhooks.h (default_ref_may_alias_errno): Declare.
30903 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
30904 (default_ref_may_alias_errno): New function.
30905 * target.h (struct ao_ref_s): Declare.
30906 * tree-ssa-alias.c: Include target.h.
30907 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
30908 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
30909 (targhooks.o): Likewise.
30910 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
30911 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
30912
30913 2011-01-14 Richard Guenther <rguenther@suse.de>
30914
30915 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
30916
30917 2011-01-14 Richard Guenther <rguenther@suse.de>
30918
30919 PR tree-optimization/47280
30920 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
30921 return CFG changes.
30922 (tree_ssa_forward_propagate_single_use_vars): Deal with
30923 CFG changes from associate_plusminus.
30924
30925 2011-01-14 Richard Guenther <rguenther@suse.de>
30926
30927 PR middle-end/47281
30928 Revert
30929 2011-01-11 Richard Guenther <rguenther@suse.de>
30930
30931 PR tree-optimization/46076
30932 * tree-ssa.c (useless_type_conversion_p): Conversions from
30933 unprototyped to empty argument list function types are useless.
30934
30935 2011-01-14 Richard Guenther <rguenther@suse.de>
30936
30937 PR tree-optimization/47286
30938 * tree-ssa-structalias.c (new_var_info): Register variables are global.
30939
30940 2011-01-14 Martin Jambor <mjambor@suse.cz>
30941
30942 PR middle-end/46823
30943 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
30944
30945 2011-01-13 Anatoly Sokolov <aesok@post.ru>
30946
30947 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
30948 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
30949 * config/xtensa/xtensa.c (xtensa_libcall_value,
30950 xtensa_function_value_regno_p): New functions.
30951 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
30952
30953 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
30954
30955 PR c++/47213
30956 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
30957 PE specific hook.
30958 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
30959 New function prototype.
30960 * config/i386/winnt.c (i386_pe_assemble_visibility):
30961 Warn only if attribute was specified by user.
30962
30963 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
30964
30965 PR target/47251
30966 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
30967 floating point.
30968 (floatunsdidf2_fcfidu): Ditto.
30969
30970 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30971
30972 * config/s390/s390.c (print_operand_address): Replace 'error' with
30973 'output_operand_lossage'.
30974 (print_operand): Likewise.
30975
30976 2011-01-13 Jeff Law <law@redhat.com>
30977
30978 PR rtl-optimization/39077
30979 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
30980 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
30981 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
30982 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
30983 * gcse.c (prune_insertions_deletions): New function.
30984 (compute_pre_data): Use it.
30985
30986 2011-01-13 Dodji Seketeli <dodji@redhat.com>
30987
30988 PR debug/PR46973
30989 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
30990 static function.
30991 (prune_unused_types_mark): Use it.
30992
30993 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
30994
30995 PR rtl-optimization/45352
30996 * sel-sched.c: Update copyright years.
30997 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
30998 in the advancing loop when we have issued issue_rate insns.
30999
31000 2011-01-12 Richard Henderson <rth@redhat.com>
31001
31002 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31003 (TARGET_MD_ASM_CLOBBERS): New.
31004
31005 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31006 (TARGET_DELEGITIMIZE_ADDRESS): New.
31007
31008 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31009 (clzsi2, *bsch): New patterns.
31010
31011 * config/mn10300/mn10300.md (INT): New mode iterator.
31012 (*mov<INT>_clr): New pattern, and peep2 to generate it.
31013
31014 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31015 flag_split_wide_types.
31016
31017 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31018 (mn10300_trampoline_init): Rewrite without a template, an immediate
31019 load and a direct branch.
31020 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31021
31022 2011-01-12 Anatoly Sokolov <aesok@post.ru>
31023
31024 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31025 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31026 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31027 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31028
31029 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
31030
31031 PR debug/47209
31032 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31033 of type.
31034
31035 2011-01-12 Jan Hubicka <jh@suse.cz>
31036
31037 PR driver/47244
31038 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31039 (PLUGIN_COND_CLOSE): New macro.
31040 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31041
31042 2011-01-12 Richard Guenther <rguenther@suse.de>
31043
31044 PR lto/47259
31045 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31046 register variables in a MEM_REF.
31047
31048 2011-01-12 Joseph Myers <joseph@codesourcery.com>
31049
31050 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31051 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31052 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31053 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31054 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31055 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31056 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31057 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31058 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31059 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31060 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31061 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31062 * config/gnu-user.h: New. Copied from linux.h.
31063 (LINUX_TARGET_STARTFILE_SPEC): Rename to
31064 GNU_USER_TARGET_STARTFILE_SPEC.
31065 (LINUX_TARGET_ENDFILE_SPEC): Rename to
31066 GNU_USER_TARGET_ENDFILE_SPEC.
31067 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31068 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31069 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31070 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31071 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31072 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31073 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31074 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31075 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31076 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31077 * config/arm/linux-eabi.h (CC1_SPEC): Use
31078 GNU_USER_TARGET_CC1_SPEC.
31079 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31080 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31081 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31082 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31083 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31084 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31085 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31086 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31087
31088 2011-01-12 Richard Guenther <rguenther@suse.de>
31089
31090 PR other/46946
31091 * doc/invoke.texi (ffast-math): Document it is turned on
31092 with -Ofast.
31093
31094 2011-01-12 Jan Hubicka <jh@suse.cz>
31095
31096 PR tree-optimization/47233
31097 * opts.c (common_handle_option): Disable ipa-reference with profile
31098 feedback.
31099
31100 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31101
31102 * c-parser.c (c_parser_objc_at_property_declaration): Improved
31103 error message.
31104
31105 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31106
31107 * c-parser.c (c_lex_one_token): Updated and reindented some
31108 comments. No changes in code.
31109
31110 2011-01-11 Ian Lance Taylor <iant@google.com>
31111
31112 * godump.c (go_output_var): Don't output the variable if there is
31113 already a type with the same name.
31114
31115 2011-01-11 Ian Lance Taylor <iant@google.com>
31116
31117 * godump.c (go_format_type): Don't generate float80.
31118
31119 2011-01-11 Richard Henderson <rth@redhat.com>
31120
31121 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31122 declaration. Rewrite for both speed and size.
31123 (mn10300_address_cost_1): Remove.
31124 (mn10300_register_move_cost): New.
31125 (mn10300_memory_move_cost): New.
31126 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
31127 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
31128 extensions, shifts, BSWAP, CLZ.
31129 (mn10300_wide_const_load_uses_clr): Remove.
31130 (TARGET_REGISTER_MOVE_COST): New.
31131 (TARGET_MEMORY_MOVE_COST): New.
31132 * config/mn10300/mn10300-protos.h: Update.
31133 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31134
31135 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31136 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31137 * config/mn10300/mn10300-protos.h: Update.
31138 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31139 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31140 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31141 (*test_int_bitfield, *test_byte_bitfield): Remove.
31142 (*bit_test, *subreg_bit_test): Remove.
31143 * config/mn10300/predicates.md (const_8bit_operand): Remove.
31144
31145 * config/mn10300/constraints.md ("c"): Rename from "A".
31146 ("A", "D"): New constraint letters.
31147 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31148 (fmssf4, fnmasf4, fnmssf4): Likewise.
31149
31150 * config/mn10300/mn10300.md (isa): New attribute.
31151 (enabled): New attribute.
31152
31153 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31154 (abssf2, negsf2): Define only for hardware fp.
31155 (sqrtsf2): Reformat.
31156 (addsf3, subsf3, mulsf3): Merge expander and insn.
31157
31158 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31159 (DEBUGGER_AUTO_OFFSET): Remove.
31160 (DEBUGGER_ARG_OFFSET): Remove.
31161
31162 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31163 Emit register stores with the same offsets as the hardware.
31164 (mn10300_store_multiple_operation): Don't check that the register
31165 save offsets are monotonic.
31166 * config/mn10300/mn10300-protos.h: Update.
31167
31168 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31169
31170 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31171 in terms of the value on the stack, not the MDR register.
31172
31173 2011-01-11 Jan Hubicka <jh@suse.cz>
31174
31175 PR lto/45721
31176 PR lto/45375
31177 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31178 (symbol_alias_set_destroy, symbol_alias_set_contains,
31179 propagate_aliases_backward): Declare.
31180 * lto-streamer-out.c (struct sets): New sturcture.
31181 (trivally_defined_alias): New function.
31182 (output_alias_pair_p): Rewrite.
31183 (output_unreferenced_globals): Fix output of alias pairs.
31184 (produce_symtab): Likewise.
31185 * ipa.c (function_and_variable_visibility): Set weak alias destination
31186 as needed in lto.
31187 * varasm.c (symbol_alias_set_t): Remove.
31188 (symbol_alias_set_destroy): Export.
31189 (propagate_aliases_forward, propagate_aliases_backward): New functions
31190 based on ...
31191 (compute_visible_aliases): ... this one; remove.
31192 (trivially_visible_alias): New
31193 (trivially_defined_alias): New.
31194 (remove_unreachable_alias_pairs): Rewrite.
31195 (finish_aliases_1): Reorganize code checking if alias is defined.
31196 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31197 in LTO mode.
31198
31199 2011-01-11 Richard Guenther <rguenther@suse.de>
31200
31201 PR tree-optimization/46076
31202 * tree-ssa.c (useless_type_conversion_p): Conversions from
31203 unprototyped to empty argument list function types are useless.
31204
31205 2011-01-11 Richard Guenther <rguenther@suse.de>
31206
31207 PR middle-end/45235
31208 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31209 volatile MEMs as MEM_READONLY_P.
31210
31211 2011-01-11 Richard Guenther <rguenther@suse.de>
31212
31213 PR tree-optimization/47239
31214 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31215
31216 2011-01-11 Jeff Law <law@redhat.com>
31217
31218 PR tree-optimization/47086
31219 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31220 IVs from statements that might throw.
31221
31222 2011-01-10 Jan Hubicka <jh@suse.cz>
31223
31224 PR lto/45375
31225 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31226
31227 2011-01-10 Jan Hubicka <jh@suse.cz>
31228
31229 PR lto/45375
31230 * profile.c (read_profile_edge_counts): Ignore profile inconistency
31231 when correcting profile.
31232
31233 2011-01-10 Jan Hubicka <jh@suse.cz>
31234
31235 PR lto/46083
31236 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31237 DECL_FINI_PRIORITY.
31238 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31239 Restore DECL_FINI_PRIORITY.
31240
31241 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31242
31243 * doc/gimple.texi: Fix quoting of multi-word return values in
31244 @deftypefn statements. Ensure presence of return value. Wrap
31245 overlong @deftypefn lines.
31246 (is_gimple_operand, is_gimple_min_invariant_address): Remove
31247 descriptions of removed functions.
31248 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31249 of multi-word return value in @deftypefn statement.
31250
31251 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31252
31253 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31254 (Conditional Expressions, Logical Operators)
31255 (Statement and operand traversals): Do not indent smallexample
31256 code. Fix duplicate function argument in example.
31257
31258 2011-01-10 Jeff Law <law@redhat.com>
31259
31260 PR tree-optimization/47141
31261 * ipa-split.c (split_function): Handle case where we are
31262 returning a value and the return block has a virtual operand phi.
31263
31264 2011-01-10 Jan Hubicka <jh@suse.cz>
31265
31266 PR tree-optimization/47234
31267 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31268 (pass_feedback_split_functions): Declare.
31269 * passes.c (init_optimization_passes): Add ipa-split as subpass of
31270 tree-profile.
31271 * ipa-split.c (gate_split_functions): Update comments; disable
31272 split-functions for profile_arc_flag and branch_probabilities.
31273 (gate_feedback_split_functions): New function.
31274 (execute_feedback_split_functions): New function.
31275 (pass_feedback_split_functions): New global var.
31276
31277 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
31278
31279 PR lto/46760
31280 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31281 calling gimple_call_set_cannot_inline.
31282
31283 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
31284
31285 * config/darwin-sections.def: Remove unused section.
31286
31287 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
31288
31289 PR c++/47218
31290 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31291
31292 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
31293
31294 PR objc/47232
31295 * c-parser.c (c_parser_declaration_or_fndef): Improved
31296 error message.
31297
31298 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
31299
31300 * config/i386/winnt.c (i386_pe_start_function): Make sure
31301 to switch back to function's section.
31302
31303 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
31304
31305 PR gcc/46902
31306 PR testsuite/46912
31307 * plugin.c: Move include of dlfcn.h from here...
31308 * system.h: ... to here.
31309
31310 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31311
31312 * doc/cpp.texi (C++ Named Operators): Fix markup for header
31313 file name.
31314 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31315 two extra empty pages in PDF output.
31316
31317 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
31318
31319 PR objc/47078
31320 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31321 for error recovery purposes behave as if it was not specified so
31322 that the default type is usd.
31323
31324 2011-01-07 Jan Hubicka <jh@suse.cz>
31325
31326 PR tree-optmization/46469
31327 * ipa.c (function_and_variable_visibility): Clear needed flags on
31328 nodes with external decls; handle weakrefs merging correctly.
31329
31330 2011-01-07 Joseph Myers <joseph@codesourcery.com>
31331
31332 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31333 not false.
31334
31335 2011-01-07 Jan Hubicka <jh@suse.cz>
31336
31337 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31338 and no longer claim that gold is required for linker plugin.
31339 * configure: Regenerate.
31340 * gcc.c (PLUGIN_COND): New macro.
31341 (LINK_COMMAND_SPEC): Use it.
31342 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31343 * config.in (HAVE_LTO_PLUGIN): New.
31344 * configure.ac (--with-lto-plugin): New parameter; autodetect
31345 HAVE_LTO_PLUGIN.
31346
31347 2011-01-07 Jan Hubicka <jh@suse.cz>
31348
31349 PR tree-optimization/46367
31350 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31351 when we can update original.
31352 (cgraph_mark_inline_edge): Sanity check.
31353 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31354
31355 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31356
31357 * config/spu/spu.h (ASM_COMMENT_START): Define.
31358
31359 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
31360
31361 PR driver/42445
31362 * gcc.c (%>S): New.
31363 (SWITCH_KEEP_FOR_GCC): Likewise.
31364 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31365 (do_spec_1): Handle "%>".
31366
31367 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31368
31369 2011-01-07 Jakub Jelinek <jakub@redhat.com>
31370
31371 PR target/47201
31372 * config/i386/i386.c (ix86_delegitimize_address): If
31373 simplify_gen_subreg fails, return orig_x.
31374
31375 PR bootstrap/47187
31376 * value-prof.c (gimple_stringop_fixed_value): Handle
31377 lhs of the call properly.
31378
31379 2011-01-07 Jan Hubicka <jh@suse.cz>
31380
31381 PR lto/45375
31382 * lto-opt.c (lto_reissue_options): Set flag_shlib.
31383
31384 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
31385
31386 * target.def (function_switched_text_sections): New hook.
31387 * doc/tm.texi: Regenerated.
31388 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31389 * final.c (default_function_switched_text_sections): New.
31390 (final_scan_insn): Call function_switched_text_sections when a
31391 mid-function section change occurs.
31392 * output.h (default_function_switched_text_sections): Declare.
31393 * config/darwin-protos.h (darwin_function_switched_text_sections):
31394 Likewise.
31395 * config/darwin.c (darwin_function_switched_text_sections): New.
31396 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31397
31398 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
31399
31400 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
31401 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
31402 the secondary code fragment when outputting for DWARF == 2.
31403
31404 2011-01-07 Anatoly Sokolov <aesok@post.ru>
31405
31406 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31407 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31408 Remove.
31409 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31410 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31411
31412 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
31413
31414 PR debug/46704
31415 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31416 when it is not empty.
31417
31418 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
31419
31420 Bobcat Enablement
31421 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31422 (case ${target}): Add btver1.
31423 * config/i386/driver-i386.c (host_detect_local_cpu): Let
31424 -march=native recognize btver1 processors.
31425 * config/i386/i386-c.c (ix86_target_macros_internal): Add
31426 btver1 def_and_undef
31427 * config/i386/i386.c (struct processor_costs btver1_cost): New
31428 btver1 cost table.
31429 (m_BTVER1): New definition.
31430 (m_AMD_MULTIPLE): Includes m_BTVER1.
31431 (initial_ix86_tune_features): Add btver1 tune.
31432 (processor_target_table): Add btver1 entry.
31433 (static const char *const cpu_names): Add btver1 entry.
31434 (software_prefetching_beneficial_p): Add btver1.
31435 (ix86_option_override_internal): Add btver1 instruction sets.
31436 (ix86_issue_rate): Add btver1.
31437 (ix86_adjust_cost): Add btver1.
31438 * config/i386/i386.h (TARGET_BTVER1): New definition.
31439 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31440 (enum processor_type): Add PROCESSOR_BTVER1.
31441 * config/i386/i386.md (define_attr "cpu"): Add btver1.
31442
31443 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31444
31445 PR target/43309
31446 * config/i386/i386.c (legitimize_tls_address)
31447 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31448 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31449 (tls_initial_exec_64_sun): New pattern.
31450
31451 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
31452
31453 * doc/invoke.texi (Overall Options): Improve wording and markup
31454 of the description of -wrapper.
31455
31456 2011-01-06 Joseph Myers <joseph@codesourcery.com>
31457
31458 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31459 rdynamic, threads): New Driver options.
31460
31461 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31462
31463 PR target/38118
31464 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31465 if coming from .tdata.
31466 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31467
31468 2011-01-06 Jan Hubicka <jh@suse.cz>
31469
31470 PR lto/47188
31471 * collect2.c (main): Do not enable LTOmode when plugin is active.
31472
31473 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31474
31475 PR other/45915
31476 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31477 --version output if supported.
31478 * configure: Regenerate.
31479
31480 2011-01-06 Joseph Myers <joseph@codesourcery.com>
31481
31482 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31483 Driver options.
31484
31485 2011-01-06 Jakub Jelinek <jakub@redhat.com>
31486
31487 PR c/47150
31488 * c-convert.c (convert): When converting a complex expression
31489 other than COMPLEX_EXPR to a different complex type, ensure
31490 c_save_expr is called instead of save_expr, unless in_late_binary_op.
31491 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31492 when converting COMPLEX_TYPE.
31493
31494 2011-01-06 Ira Rosen <irar@il.ibm.com>
31495
31496 PR tree-optimization/47139
31497 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31498 only the last reduction value is used outside the loop. Update
31499 documentation.
31500
31501 2011-01-05 Joseph Myers <joseph@codesourcery.com>
31502
31503 * config/rtems.opt: New.
31504 * config.gcc (*-*-rtems*): Use rtems.opt.
31505
31506 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
31507
31508 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31509 processors do not support 3DNow instructions.
31510
31511 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31512
31513 * config/spu/spu.c (spu_option_override): Set parameter
31514 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31515
31516 2011-01-05 Jan Hubicka <jh@suse.cz>
31517
31518 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31519 at the command line.
31520
31521 2011-01-05 Martin Jambor <mjambor@suse.cz>
31522
31523 PR lto/47162
31524 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31525 deltas on streamed outgoing edges.
31526 (output_node_opt_summary): Output info for outgoing edges only when
31527 the node is in new parameter set.
31528 (output_cgraph_opt_summary): New parameter set, passed to the two
31529 aforementioned functions. Update its forward declaration and its
31530 callee too.
31531
31532 2011-01-05 Tom Tromey <tromey@redhat.com>
31533
31534 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31535 operator to c_finish_omp_atomic.
31536 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31537 (build_unary_op): Update.
31538 (build_modify_expr): Update.
31539 (build_asm_expr): Update.
31540
31541 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31542
31543 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31544 newly inserted insns.
31545 (pad_bb): Likewise.
31546 (spu_emit_branch_hint): Likewise.
31547 (insert_hbrp_for_ilb_runout): Likewise.
31548 (spu_machine_dependent_reorg): Call df_finish_pass after
31549 schedule_insns returns.
31550
31551 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31552
31553 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31554
31555 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
31556
31557 PR tree-optimization/47005
31558 * tree-sra.c (struct access): Add 'non_addressable' bit.
31559 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31560 (decide_one_param_reduction): Return 0 if the parameter is passed by
31561 reference and one of the accesses in the group is non_addressable.
31562
31563 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
31564
31565 PR tree-optimization/47056
31566 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
31567 (mark_load): Likewise. Handle FUNCTION_DECL specially.
31568 (mark_store): Likewise. Pass STMT to ipa_record_reference.
31569
31570 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
31571
31572 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
31573 initializer. Skip view conversions from aggregate types.
31574
31575 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
31576
31577 PR bootstrap/47055
31578 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
31579
31580 2011-01-04 Philipp Thomas <pth@suse.de>
31581
31582 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
31583 obvious typo.
31584
31585 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31586
31587 * function.c (thread_prologue_and_epilogue_insns): Do not crash
31588 on empty epilogue sequences.
31589
31590 2011-01-04 Joseph Myers <joseph@codesourcery.com>
31591
31592 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
31593 non-static): New Driver options.
31594
31595 2011-01-04 Jie Zhang <jie@codesourcery.com>
31596
31597 PR driver/47137
31598 * gcc.c (default_compilers[]): Set combinable field to 0
31599 for all assembly languages.
31600
31601 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
31602
31603 * config/mips/loongson3a.md: New file.
31604 * config/mips/mips.md: Include loongson3a.md.
31605 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
31606 TUNE_LOONGSON_3A.
31607
31608 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
31609
31610 PR middle-end/47017
31611 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
31612 instead of convert_memory_address_addr_space on the base expression.
31613
31614 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31615
31616 * config/spu/spu.c (spu_option_override): Update error text
31617 for bad -march= / -mtune= values.
31618
31619 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31620
31621 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
31622 if branch-hint optimization will be performed.
31623
31624 2011-01-03 Jakub Jelinek <jakub@redhat.com>
31625
31626 PR tree-optimization/47148
31627 * ipa-split.c (split_function): Convert arguments to
31628 DECL_ARG_TYPE if possible.
31629
31630 PR tree-optimization/47155
31631 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
31632 when computing uns.
31633
31634 PR rtl-optimization/47157
31635 * combine.c (try_combine): If undobuf.other_insn becomes
31636 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
31637 and set *new_direct_jump_p too.
31638
31639 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
31640
31641 PR tree-optimization/47021
31642 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
31643
31644 2011-01-03 Jakub Jelinek <jakub@redhat.com>
31645
31646 * gcc.c (process_command): Update copyright notice dates.
31647 * gcov.c (print_version): Likewise.
31648 * gcov-dump.c (print_version): Likewise.
31649 * mips-tfile.c (main): Likewise.
31650 * mips-tdump.c (main): Likewise.
31651
31652 2011-01-03 Martin Jambor <mjambor@suse.cz>
31653
31654 PR tree-optimization/46801
31655 * tree-sra.c (type_internals_preclude_sra_p): Check whether
31656 aggregate fields start at byte boundary instead of the bit-field flag.
31657
31658 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
31659
31660 PR driver/47137
31661 * gcc.c (main): Revert revision 168407.
31662
31663 2011-01-03 Martin Jambor <mjambor@suse.cz>
31664
31665 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
31666
31667 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31668
31669 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
31670 vector optab to expand vector/scalar shift, update gimple to vector.
31671
31672 2011-01-03 Martin Jambor <mjambor@suse.cz>
31673
31674 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
31675 a thunk.
31676
31677 2011-01-03 Martin Jambor <mjambor@suse.cz>
31678
31679 PR tree-optimization/46984
31680 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
31681 HOST_WIDE_INT.
31682 (cgraph_create_indirect_edge): Fixed line length.
31683 (cgraph_indirect_call_info): Declare.
31684 (cgraph_make_edge_direct) Update declaration.
31685 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
31686 (cgraph_create_indirect_edge): Use it.
31687 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
31688 callees.
31689 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
31690 the new thunk_delta representation.
31691 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
31692 HOST_WIDE_INT.
31693 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
31694 (ipa_read_indirect_edge_info): Likewise.
31695 * lto-cgraph.c (output_edge_opt_summary): New function.
31696 (output_node_opt_summary): Call it on all outgoing edges.
31697 (input_edge_opt_summary): New function.
31698 (input_node_opt_summary): Call it on all outgoing edges.
31699
31700 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
31701
31702 PR driver/47137
31703 * gcc.c (main): Don't check have_o when settting combine_inputs.
31704
31705 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
31706
31707 * regrename.c: Add general comment describing the pass.
31708 (struct du_head): Remove 'length' field.
31709 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
31710 (regrename_optimize): Do not sort chains. Rework comments, add others.
31711 Force renaming to the preferred class (if any) in the first pass and do
31712 not consider registers that belong to it in the second pass.
31713 (create_new_chain): Do not set 'length' field.
31714 (scan_rtx_reg): Likewise.
31715
31716 2011-01-02 Jakub Jelinek <jakub@redhat.com>
31717
31718 PR tree-optimization/47140
31719 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
31720 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
31721 to bit_value_binop.
31722
31723 PR rtl-optimization/47028
31724 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
31725 parm_birth_insn instead of at the beginning of first bb.
31726
31727 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
31728
31729 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
31730 Remove the word "see" before "@pxref".
31731 * doc/rtl.texi: Remove the word "see" before "@pxref".
31732
31733 2011-01-01 Jan Hubicka <jh@suse.cz>
31734
31735 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
31736 memory.
31737
31738 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
31739
31740 PR target/38662
31741 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
31742
31743 \f
31744 Copyright (C) 2011 Free Software Foundation, Inc.
31745
31746 Copying and distribution of this file, with or without modification,
31747 are permitted in any medium without royalty provided the copyright
31748 notice and this notice are preserved.