re PR c++/50757 (Cannot turn off -Wnonnull when using C++)
[gcc.git] / gcc / ChangeLog
1 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2
3 PR c++/50757
4 * c-family/c.opt ([Wnonnull]): Add C++ and Objective-C++.
5 * doc/invoke.texi: Update.
6
7 2011-10-17 Richard Henderson <rth@redhat.com>
8
9 PR 50746
10 * optabs.c (expand_vec_perm_expr): Fix indexing error.
11
12 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
13
14 * configure.ac: Display `yes' if the SystemTap header has been
15 found.
16 * configure: Regenerate.
17
18 2011-10-08 Andi Kleen <ak@linux.intel.com>
19
20 PR other/50636
21 * config.in, configure: Regenerate.
22 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
23 * ggc-page.c (USING_MADVISE): Add.
24 (page_entry): Add discarded field.
25 (alloc_page): Check for discarded pages.
26 (release_pages): Add USING_MADVISE branch.
27
28 2011-10-17 Richard Guenther <rguenther@suse.de>
29
30 PR tree-optimization/50729
31 * tree-vrp.c (extract_range_from_unary_expr_1): Remove
32 redundant test.
33 (simplify_conversion_using_ranges): Properly test the
34 intermediate result.
35
36 2011-10-15 Tom Tromey <tromey@redhat.com>
37 Dodji Seketeli <dodji@redhat.com>
38
39 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
40 * ggc-none.c (ggc_round_alloc_size): New public stub function.
41 * ggc-page.c (ggc_alloced_size_order_for_request): New static
42 function. Factorized from ggc_internal_alloc_stat.
43 (ggc_round_alloc_size): New public function. Uses
44 ggc_alloced_size_order_for_request.
45 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
46 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
47 from ggc_internal_alloc_zone_stat.
48 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
49 * toplev.c (general_init): Initialize
50 line_table->alloced_size_for_request.
51
52 2011-10-15 Tom Tromey <tromey@redhat.com>
53 Dodji Seketeli <dodji@redhat.com>
54
55 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
56 macros.
57 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
58 new counters.
59 (dump_line_table_statistics): Define new function.
60 * input.h (dump_line_table_statistics): Declare new function.
61 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
62
63 2011-10-15 Tom Tromey <tromey@redhat.com>
64 Dodji Seketeli <dodji@redhat.com>
65
66 * doc/cppopts.texi: Document -fdebug-cpp.
67 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
68 options.
69
70 2011-10-15 Tom Tromey <tromey@redhat.com>
71 Dodji Seketeli <dodji@redhat.com>
72
73 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
74 location parameter.
75 * diagnostic.c (diagnostic_report_current_module): Add a location
76 parameter to the function definition. Use it instead of
77 input_location. Resolve the virtual location rather than just
78 looking up its map and risking to touch a resulting macro map.
79 (default_diagnostic_starter): Pass the relevant diagnostic
80 location to diagnostic_report_current_module.
81 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
82 (virt_loc_aware_diagnostic_finalizer): Likewise.
83 (diagnostic_report_current_function): Pass the
84 relevant location to diagnostic_report_current_module.
85 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
86 new function.
87 * toplev.c (general_init): By default, use the new
88 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
89 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
90
91 2011-10-15 Tom Tromey <tromey@redhat.com>
92 Dodji Seketeli <dodji@redhat.com>
93
94 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
95 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
96 preprocessor related options.
97
98 2011-10-15 Tom Tromey <tromey@redhat>
99 Dodji Seketeli <dodji@redhat.com>
100
101 * input.h (struct expanded_location): Move to libcpp/line-map.h.
102 (LOCATION_COLUMN): New accessor
103 (in_system_header_at): Use linemap_location_in_system_header_p.
104 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
105 touching the internals of struct line_map. Use the public API.
106 instead.
107 (diagnostic_report_diagnostic): Don't use relational operator '<'
108 on virtual locations. Use linemap_location_before_p instead.
109 * input.c (expand_location): Adjust to expand to the tokens'
110 spelling location when macro location tracking is on.
111
112
113 2011-10-08 Andi Kleen <ak@linux.intel.com>
114
115 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
116
117 2011-10-13 Andi Kleen <ak@linux.intel.com>
118
119 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
120
121 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
122
123 PR tree-optimization/50727
124 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
125 DEF_STMT to the list of statements to be replaced by the
126 pattern statements.
127
128 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
129
130 PR rtl-optimization/50615
131 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
132
133 2011-10-16 Jakub Jelinek <jakub@redhat.com>
134
135 PR tree-optimization/50596
136 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
137 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
138 vect_recog_bool_pattern.
139 (check_bool_pattern, adjust_bool_pattern_cast,
140 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
141
142 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
143
144 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
145 treat the first load of the node as the first element in its
146 interleaving chain.
147 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
148 necessary and possible.
149 (vect_build_slp_tree): Add new argument. Allow load groups of any size
150 in basic blocks. Keep all the loads for further permutation check.
151 Use the new argument to determine if there is a permutation. Update
152 the recursive calls.
153 (vect_supported_load_permutation_p): Allow subchains of interleaving
154 chains in basic block vectorization.
155 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
156 Check load permutation based on the new parameter.
157 (vect_schedule_slp_instance): Don't start from the first element in
158 interleaving chain unless the loads are permuted.
159
160 2011-10-15 Jan Hubicka <jh@suse.cz>
161
162 PR target/48668
163 PR target/50689
164 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
165 after function body.
166
167 2011-10-15 Richard Henderson <rth@redhat.com>
168
169 * tree-vect-slp.c: Include langhooks.h.
170 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
171 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
172 mask creation for VEC_PERM_EXPR.
173 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
174 not the builtin.
175 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
176 * Makefile.in (tree-vect-slp.o): Update dependency.
177 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
178
179 2011-10-15 Alan Modra <amodra@gmail.com>
180
181 PR bootstrap/50738
182 * ifcvt.c (dead_or_predicable): Revert accidental commit with
183 HAVE_simple_return test.
184
185 2011-10-15 Alan Modra <amodra@gmail.com>
186
187 * ifcvt.c (dead_or_predicable): Disable if-conversion when
188 doing so is likely to kill a shrink-wrapping opportunity.
189
190 PR rtl-optimization/49941
191 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
192
193 * rtl.h (set_return_jump_label): Declare.
194 * function.c (set_return_jump_label): New function, extracted..
195 (thread_prologue_and_epilogue_insns): ..from here. Use it in
196 another instance to set return jump_label.
197 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
198 * reorg.c (find_end_label): Likewise.
199
200 2011-10-14 David S. Miller <davem@davemloft.net>
201
202 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
203 with a more complete cpp test.
204 * config/sparc/linux64.h: Likewise.
205 * config/sparc/linux.h: Likewise.
206 * config/sparc/sparc.opt (sparc_debug): New target variable.
207 (mdebug): New target option.
208 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
209 TARGET_DEBUG_OPTIONS): New defines.
210 * config/sparc/sparc.c (debug_target_flag_bits,
211 debug_target_flags): New functions.
212 (sparc_option_override): Add name strings back to cpu_table[].
213 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
214 out the target flags before and after override processing as well
215 as the selected cpu. If MASK_V8PLUS, make sure that the selected
216 cpu is at least v9.
217
218 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
219
220 PR target/49263
221 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
222 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
223 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
224 and instruction commutative.
225 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
226 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
227 tstsi_t_zero_extract_subreg_xor_little,
228 tstsi_t_zero_extract_subreg_xor_big): New insns.
229 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
230 asm output.
231 (*andsi_compact): Reorder alternatives so that K08 is considered first.
232
233 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
234
235 PR target/50354
236 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
237 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
238
239 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
240
241 * invoke.texi (AVR Options): Avoid \leq{}.
242
243 2011-10-14 Kai Tietz <ktietz@redhat.com>
244
245 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
246 transformation the operands have compatible types.
247
248 2011-10-14 Jakub Jelinek <jakub@redhat.com>
249
250 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
251 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
252 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
253 mode iterator and any_extend code iterator.
254 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
255 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
256 also for TARGET_SSE4_1 using pmuldq insn.
257 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
258 (sse2_sse4_1): New code attr.
259 (udot_prodv4si): Macroize using any_extend code iterator.
260 (<s>dot_prodv8si): New expander.
261
262 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
263
264 * config/i386/i386.c (atom_cost): Changed cost for loading
265 QImode using movzbl.
266
267 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
268
269 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
270 change on October 11th, 2011.
271
272 2011-10-14 Jakub Jelinek <jakub@redhat.com>
273
274 * config/i386/sse.md (vec_interleave_high<mode>,
275 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
276 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
277 (ix86_expand_vec_perm_builtin_1): Call it.
278
279 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
280
281 Fix thinko from r179765
282 * config/avr/avr.c (avr_option_override): Don't override
283 flag_omit_frame_pointer if not actually needed.
284
285 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
286
287 PR target/46278
288 * doc/invoke.texi (AVR Options): Document -mstrict-X.
289
290 * config/avr/avr.opt (-mstrict-X): New option.
291 (avr_strict_X): New variable reflecting -mstrict-X.
292 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
293 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
294 (avr_legitimate_address_p): Pass outer_code to
295 avr_reg_ok_for_addr_p and use that function in case PLUS.
296 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
297 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
298 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
299
300 2011-10-14 Jakub Jelinek <jakub@redhat.com>
301
302 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
303 of VI_128.
304
305 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
306 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
307 Use <sseinsnmode> instead of TI in mode attr.
308
309 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
310
311 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
312 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
313 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
314 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
315
316 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
317
318 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
319 (arm_output_strex): Support strexd.
320 (arm_output_it): New helper to output it in Thumb2 mode only.
321 (arm_output_sync_loop): Support DI mode. Change comment to
322 not support const_int.
323 (arm_expand_sync): Support DI mode.
324 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
325 and LDREXD.
326 * config/arm/iterators.md (NARROW): move from sync.md.
327 (QHSD): New iterator for all current ARM integer modes.
328 (SIDI): New iterator for SI and DI modes only.
329 * config/arm/sync.md (sync_predtab): New mode_attr.
330 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
331 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
332 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
333 (sync_nandsi): Fold into sync_nand<mode>.
334 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
335 (sync_new_nandsi): Fold into sync_new_nand<mode>.
336 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
337 (sync_old_nandsi): Fold into sync_old_nand<mode>.
338 (sync_compare_and_swap<mode>): Support SI & DI.
339 (sync_lock_test_and_set<mode>): Likewise.
340 (sync_<sync_optab><mode>): Likewise.
341 (sync_nand<mode>): Likewise.
342 (sync_new_<sync_optab><mode>): Likewise.
343 (sync_new_nand<mode>): Likewise.
344 (sync_old_<sync_optab><mode>): Likewise.
345 (sync_old_nand<mode>): Likewise.
346 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
347 (arm_sync_lock_test_and_setsi): Likewise.
348 (arm_sync_new_<sync_optab>si): Likewise.
349 (arm_sync_new_nandsi): Likewise.
350 (arm_sync_old_<sync_optab>si): Likewise.
351 (arm_sync_old_nandsi): Likewise.
352 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
353 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
354 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
355 (arm_sync_new_nand<mode> NARROW): Likewise.
356 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
357 (arm_sync_old_nand<mode> NARROW): Likewise.
358
359 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
360
361 PR target/48126
362 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
363
364 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
365
366 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
367
368 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
369
370 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
371
372 2011-10-14 Jakub Jelinek <jakub@redhat.com>
373
374 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
375 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
376
377 2011-10-14 Richard Guenther <rguenther@suse.de>
378
379 PR tree-optimization/50723
380 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
381
382 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
383
384 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
385 objc/objc-map.c.
386
387 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
388
389 PR c++/17212
390 * c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
391 * doc/invoke.texi: Update.
392
393 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
394
395 PR bootstrap/50699
396 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
397 build for powerpc targets. (darwin_patch_builtins): Only build for
398 powerpc targets.
399
400 2011-10-14 Jakub Jelinek <jakub@redhat.com>
401
402 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
403 (avx_cvtdq2pd256_2): ... this.
404 (sseunpackfltmode): New mode attr.
405 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
406 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
407 using VI2_AVX2 iterator.
408 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
409
410 2011-10-13 David S. Miller <davem@davemloft.net>
411
412 * config/sparc/sparc.md (plusminus): New code iterator.
413 (plusminus_insn): New code attr.
414 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
415 using plusminus and plusminus_insn.
416 (fpadd64_vis, fpsub64_vis): Likewise.
417
418 2011-10-13 Richard Henderson <rth@redhat.com>
419
420 * doc/md.texi (vec_perm): Document fallback to byte permutation.
421 * genopinit.c (optabs): Add vec_perm_const.
422 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
423 Reject non-vector modes. Allow fallback to byte permutation.
424 (expand_vec_perm_expr_1): Split out from ...
425 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
426 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
427 * tree-vect-generic.c (lower_vec_perm): Update for name change.
428
429 2011-10-13 Richard Henderson <rth@redhat.com>
430
431 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
432
433 * config/rs6000/spu.md (vec_permv16qi): New pattern.
434
435 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
436 * config/i386/i386-protos.h: Update.
437 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
438 (vec_perm_const<VEC_PERM_CONST>): New expander.
439
440 * optabs.c (expand_vector_broadcast): New.
441 (expand_binop): Expand scalar shifts of vectors to vector shifts
442 of vectors, if the former isn't supported.
443 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
444 here; always simplify to scalar shift of vector if possible.
445
446 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
447 test for vector splat.
448
449 2011-10-13 Jakub Jelinek <jakub@redhat.com>
450
451 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
452
453 2011-10-13 Jakub Jelinek <jakub@redhat.com>
454 Richard Guenther <rguenther@suse.de>
455
456 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
457 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
458
459 2011-10-13 Jakub Jelinek <jakub@redhat.com>
460
461 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
462 * config/i386/i386.c (ix86_build_const_vector): Handle
463 also V32QI, V16QI, V16HI and V8HI modes.
464 (emit_reduc_half): New function.
465 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
466 Use emit_reduc_half helper function.
467
468 2011-10-13 Lawrence Crowl <crowl@google.com>
469 Diego Novillo <dnovillo@google.com>
470
471 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
472 (input_function): ... here.
473 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
474 (output_function): ... here.
475
476 2011-10-13 Gabriel Charette <gchare@google.com>
477 Diego Novillo <dnovillo@google.com>
478
479 * streamer-hooks.h (struct streamer_hooks): Add hooks
480 input_location and output_location.
481 * lto-streamer-in.c (lto_input_location): Use
482 streamer_hooks.input_location, if set.
483 * lto-streamer-out.c (lto_output_location): Use
484 streamer_hooks.output_location, if set.
485
486 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
487
488 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
489 * config/sparc/sparc.opt (mfix-at697f): New option.
490 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
491 (sparc_reorg): New function.
492
493 2011-10-13 Richard Guenther <rguenther@suse.de>
494
495 PR tree-optimization/50712
496 * ipa-split.c (split_function): Always re-gimplify parameters
497 when they are not gimple vals before passing them. Properly
498 check for type compatibility.
499
500 2011-10-13 Tom de Vries <tom@codesourcery.com>
501
502 * function.c (gimplify_parameters): Set number of arguments of call to
503 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
504
505 2011-10-13 Tom de Vries <tom@codesourcery.com>
506
507 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
508 for static const strings.
509 * varasm.c (build_constant_desc): Generate the memory location of the
510 constant using gen_const_mem.
511
512 2011-10-13 Richard Guenther <rguenther@suse.de>
513
514 PR tree-optimization/50698
515 * tree-data-ref.c (split_constant_offset_1): Also process
516 offsets of &MEM.
517
518 2011-10-12 David S. Miller <davem@davemloft.net>
519
520 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
521 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
522 unspecs.
523 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
524 of a vec_concat.
525 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
526 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
527 Reimplement as unspecs and remove inaccurate comments.
528 (vis3_shift_patname): New code attr.
529 (<vis3_shift_insn><vbits>_vis): Rename to
530 "v<vis3_shift_patname><mode>3".
531 (vis3_addsub_ss_patname): New code attr.
532 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
533 "<vis3_addsub_ss_patname><mode>3".
534 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
535 accommodate pattern name changes.
536
537 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
538 to zero when assembler lacks support for such instructions.
539 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
540 and MASK_FMAF in defaults when assembler lacks necessary support.
541
542 2011-10-12 Jakub Jelinek <jakub@redhat.com>
543
544 * config/i386/sse.md (vec_unpacks_lo_<mode>,
545 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
546 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
547 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
548 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
549
550 * config/i386/sse.md (vec_avx2): New mode_attr.
551 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
552 (mul<mode>3): ... this.
553
554 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
555 * config/i386/i386.c (ix86_expand_vec_perm): Handle
556 V16QImode and V32QImode for TARGET_AVX2.
557 (MAX_VECT_LEN): Increase to 32.
558 (expand_vec_perm_blend): Add support for 32-byte integer
559 vectors with TARGET_AVX2.
560 (valid_perm_using_mode_p): New function.
561 (expand_vec_perm_pshufb): Add support for 32-byte integer
562 vectors with TARGET_AVX2.
563 (expand_vec_perm_vpshufb2_vpermq): New function.
564 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
565 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
566 with TARGET_AVX2.
567 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
568 and expand_vec_perm_vpshufb2_vpermq_even_odd.
569 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
570 32-byte integer vector modes.
571 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
572 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
573 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
574 4 new operands.
575 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
576 match_dup, instead add 4 new operands and require they have
577 right cross-lane values.
578 (avx2_permv4di): Change into define_expand.
579 (avx2_permv4di_1): New instruction.
580 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
581 for "xm" constrained operand.
582 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
583
584 * config/i386/sse.md (avx2_gathersi<mode>,
585 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
586 match_scratch, change memory_operand to register_operand,
587 add (mem:BLK (scratch)) use.
588 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
589 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
590 add earlyclobber to the output operand and match_scratch,
591 add (mem:BLK (scratch)) use, change the other mem to match_operand.
592 Use %p6 instead of %c6 in the pattern.
593 * config/i386/i386.c (ix86_expand_builtin): Adjust for
594 operand 2 being a Pmode register_operand instead of memory_operand.
595
596 2011-10-12 Kai Tietz <ktietz@redhat.com>
597
598 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
599
600 2011-10-12 Steve Ellcey <sje@cup.hp.com>
601
602 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
603
604 2011-10-12 Richard Guenther <rguenther@suse.de>
605
606 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
607 of the first store we visit in a basic-block.
608 (get_continuation_for_phi): Search for a candidate VUSE that
609 might dominates all others. Do pairwise disambiguation against
610 that candidate.
611
612 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
613
614 PR tree-optimization/50189
615 * tree-vrp.c (extract_range_from_assert): Use the type of
616 the variable, not the limit.
617
618 2011-10-12 Richard Guenther <rguenther@suse.de>
619
620 PR tree-optimization/50700
621 * tree-object-size.c (addr_object_size): Simplify and treat
622 MEM_REF bases consistently.
623
624 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
625
626 * function.c (prepare_shrink_wrap, bb_active_p): New function.
627 (thread_prologue_and_epilogue_insns): Use bb_active_p.
628 Call prepare_shrink_wrap, then recompute bb_active_p for the
629 last block.
630
631 2011-10-12 Joseph Myers <joseph@codesourcery.com>
632
633 PR c/50565
634 * convert.c (convert_to_integer): Do not narrow operands of
635 pointer subtraction.
636
637 2011-10-12 Nick Clifton <nickc@redhat.com>
638
639 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
640 emit a .eabi_attribute assembler directive, possibly with a
641 comment attached.
642 * config/arm/arm.c (arm_file_start): Use the new macro.
643 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
644
645 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
646
647 PR target/49939
648 * config/avr/avr.md (*movqi): Rename to movqi_insn.
649 (*call_insn): Rename to call_insn.
650 (*call_value_insn): Rename to call_value_insn.
651 * config/avr/avr.c (avr_2word_insn_p): New static function.
652 (jump_over_one_insn_p): Use it.
653
654 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
655
656 * expr.h (copy_blkmode_to_reg): Declare.
657 * expr.c (copy_blkmode_to_reg): New function.
658 (expand_assignment): Don't expand register RESULT_DECLs before
659 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
660 RESULT_DECL register.
661 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
662 * stmt.c (expand_return): Move BLKmode-to-register code into
663 copy_blkmode_to_reg.
664
665 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
666
667 PR target/49965
668 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
669 (mov<F:mode>cc): Likewise.
670
671 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
672
673 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
674
675 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
676
677 * tree.h (built_in_decls): Delete old interface with two parallel
678 arrays to hold standard builtin declarations, and replace it with
679 a function based interface that can support creating builtins on
680 the fly in the future. Change all uses, and poison the old
681 names. Make sure 0 is not a legitimate builtin index.
682 (implicit_built_in_decls): Ditto.
683 (built_in_info): Ditto.
684 (BUILTIN_VALID_P): Ditto.
685 (builtin_decl_explicit): Ditto.
686 (builtin_decl_implicit): Ditto.
687 (set_builtin_decl): Ditto.
688 (set_builtin_decl_implicit_p): Ditto.
689 (builtin_decl_explicit_p): Ditto.
690 (builtin_decl_implicit_p): Ditto.
691 * tree-complex.c (expand_complex_libcall): Ditto.
692 * tree-loop-distribution.c (generate_memset_zero): Ditto.
693 * tree-ssa-strlen.c (get_string_length): Ditto.
694 (handle_builtin_strcpy): Ditto.
695 (handle_builtin_strcat): Ditto.
696 * tree.c (iterative_hash_expr): Ditto.
697 (local_define_builtin): Ditto.
698 (build_common_builtin_nodes): Ditto.
699 * builtins.c (built_in_decls): Ditto.
700 (implicit_built_in_decls): Ditto.
701 (built_in_info): Ditto
702 (expand_builtin_classify_type): Ditto.
703 (mathfn_built_in_1): Ditto.
704 (expand_builtin_cexpi): Ditto.
705 (expand_builtin_mempcpy_args): Ditto.
706 (expand_builtin_stpcpy): Ditto.
707 (gimplify_va_arg_expr): Ditto.
708 (expand_builtin_sync_operation): Ditto.
709 (build_builtin_expect_predicate): Ditto.
710 (fold_builtin_memory_op): Ditto.
711 (fold_builtin_strcpy): Ditto.
712 (fold_builtin_stpcpy): Ditto.
713 (fold_builtin_strncpy): Ditto.
714 (fold_builtin_interclass_mathfn): Ditto.
715 (fold_builtin_classify): Ditto.
716 (fold_builtin_2): Ditto.
717 (fold_builtin_strstr): Ditto.
718 (fold_builtin_strrchr): Ditto.
719 (fold_builtin_strpbrk): Ditto.
720 (fold_builtin_strcat): Ditto.
721 (fold_builtin_strncat): Ditto.
722 (fold_builtin_strcspn): Ditto.
723 (fold_builtin_fputs): Ditto.
724 (fold_builtin_sprintf): Ditto.
725 (fold_builtin_snprintf): Ditto.
726 (expand_builtin_memory_chk): Ditto.
727 (fold_builtin_memory_chk): Ditto.
728 (fold_builtin_stxcpy_chk): Ditto.
729 (fold_builtin_strncpy_chk): Ditto.
730 (fold_builtin_strcat_chk): Ditto.
731 (fold_builtin_strncat_chk): Ditto.
732 (fold_builtin_sprintf_chk_1): Ditto.
733 (fold_builtin_snprintf_chk_1): Ditto.
734 (fold_builtin_printf): Ditto.
735 (fold_builtin_fprintf): Ditto.
736 (fold_call_stmt): Ditto.
737 (set_builtin_user_assembler_name): Ditto.
738 * tree-emutls.c (emutls_common_1): Ditto.
739 * omp-low.c (scan_omp): Ditto.
740 (lower_rec_input_clauses): Ditto.
741 (lower_reduction_clauses): Ditto.
742 (expand_parallel_call): Ditto.
743 (expand_task_call): Ditto.
744 (maybe_catch_exception): Ditto.
745 (optimize_omp_library_calls): Ditto.
746 (expand_omp_for_generic): Ditto.
747 (expand_omp_for_static_nochunk): Ditto.
748 (expand_omp_for_static_chunk): Ditto.
749 (expand_omp_sections): Ditto.
750 (expand_omp_atomic_fetch_op): Ditto.
751 (expand_omp_atomic_pipeline): Ditto.
752 (expand_omp_atomic_mutex): Ditto.
753 (lower_omp_single_simple): Ditto.
754 (lower_omp_single_copy): Ditto.
755 (lower_omp_master): Ditto.
756 (lower_omp_ordered): Ditto.
757 (lower_omp_critical): Ditto.
758 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
759 * builtins.c (DEF_BUILTIN_STUB): Ditto.
760 (BUILT_IN_NONE): Ditto.
761 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
762 * gimple-low.c (lower_function_body): Ditto.
763 (lower_builtin_setjmp): Ditto.
764 * c-decl.c (merge_decls): Ditto.
765 * tree-eh.c (lower_resx): Ditto.
766 (lower_resx): Ditto.
767 (lower_eh_dispatch): Ditto.
768 * function (gimplify_parameters): Ditto.
769 * c-typeck.c (build_function_call_vec): Ditto.
770 * gimplify.c (build_stack_save_restore): Ditto.
771 (gimplify_vla_decl): Ditto.
772 (gimplify_modify_expr_to_memcpy): Ditto.
773 (gimplify_modify_expr_to_memset): Ditto.
774 (gimplify_variable_sized_compare): Ditto.
775 (gimplify_function_tree): Ditto.
776 * calls.c (emit_call_1): Ditto.
777 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
778 * tree-nested.c (convert_nl_goto_reference): Ditto.
779 (convert_tramp_reference_op): Ditto.
780 (finalize_nesting_tree_1): Ditto.
781 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
782 (tree_ssa_prefetch_arrays): Ditto.
783 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
784 * system.h (built_in_decls): Ditto.
785 (implicit_built_in_decls): Ditto.
786 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
787 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
788 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
789 (ix86_veclibabi_svml): Ditto.
790 (ix86_veclibabi_acml): Ditto.
791 * config/vms/vms.c (vms_patch_builtins): Ditto.
792 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
793 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
794 (rs6000_builtin_vectorized_libmass): Ditto.
795 (rs6000_init_builtins): Ditto.
796 * config/darwin.c (darwin_override_options): Ditto.
797 (darwin_patch_builtin): Ditto.
798 (darwin_rename_builtins): Ditto.
799 * config/pa/pa.c (pa_init_builtins): Ditto.
800
801 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
802
803 * tree.h (copy_ref_info): Expose existing function.
804 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
805 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
806
807 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
808
809 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
810 prototype.
811 (avr_regno_mode_code_ok_for_base_p): New prototype.
812 * config/avr/avr.h (BASE_REG_CLASS): Remove.
813 (REGNO_OK_FOR_BASE_P): Remove.
814 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
815 (REG_OK_FOR_BASE_STRICT_P): Remove.
816 (MODE_CODE_BASE_REG_CLASS): New define.
817 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
818 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
819 (avr_regno_mode_code_ok_for_base_p): New function.
820 (avr_reg_ok_for_addr_p): New static function.
821 (avr_legitimate_address_p): Use it. Beautify.
822
823 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
824
825 PR target/50447
826 * config/avr/avr.md (cc): Add out_plus attribute alternative.
827 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
828 avr_out_plus for all CONST_INT addends.
829 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
830 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
831 CC_OUT_PLUS.
832 (avr_out_plus_1): Change prototype and report effect on cc0.
833 (avr_out_plus): Ditto.
834 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
835
836 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
837
838 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
839 the extra break.
840
841 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
842
843 * doc/invoke.texi: Document new warning.
844 * common.opt (Wvector-operation-performance): Define new warning.
845 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
846 vector operation.
847 (exapnd_vector_parallel): Warn about expanded vector operation.
848 (lower_vec_shuffle): Warn about expanded vector operation.
849 * c-typeck.c (c_build_vec_perm_expr): Store correct location
850 when creating VEC_PERM_EXPR.
851
852 2011-10-11 Richard Guenther <rguenther@suse.de>
853
854 PR tree-optimization/50204
855 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
856 two argument handling from ...
857 (get_continuation_for_phi): ... here. Handle arbitrary number
858 of PHI args.
859
860 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
861
862 PR c++/33067
863 * c-family/c-pretty-print.c (pp_c_floating_constant): Output
864 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
865
866 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
867
868 * modulo-sched.c: Fix comment typo. Mention the possibility
869 of using scheduling windows of II+1 cycles.
870
871 2011-10-11 Tristan Gingold <gingold@adacore.com>
872
873 * doc/invoke.texi (C Dialect Options): Document
874 -fallow-parameterless-variadic-functions.
875 * c-parser.c (c_parser_parms_list_declarator): Handle it.
876
877 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
878
879 * config/avr/avr.c (avr_option_override): Set
880 flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
881
882 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
883
884 PR bootstrap/50665
885 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
886 optab_index to enum direct_optab_index.
887 (vec_perm_optab): Update.
888
889 2011-10-10 Anatoly Sokolov <aesok@post.ru>
890
891 * config/cris/cris.c (cris_preferred_reload_class): New function.
892 (TARGET_PREFERRED_RELOAD_CLASS): Define.
893 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
894
895 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
896
897 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
898 !AVR_HAVE_JMP_CALL.
899 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
900 (*tablejump_enh, *tablejump): Remove insns.
901 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
902 EIJMP for indirect jump. Use LPM Z+ where available.
903
904 2011-10-10 Richard Henderson <rth@redhat.com>
905
906 * doc/md.texi (vec_perm_const): Fix typo in cindex.
907
908 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
909 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
910
911 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
912
913 2011-10-10 Richard Guenther <rguenther@suse.de>
914
915 PR middle-end/50389
916 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
917 mark symbols for renaming. Append the VUSE to all statements
918 that possibly can have one.
919
920 2011-10-10 Richard Guenther <rguenther@suse.de>
921
922 * ipa-split.c (pass_split_functions): Add verification TODOs.
923 (pass_feedback_split_functions): Likewise.
924
925 2011-10-10 Richard Guenther <rguenther@suse.de>
926
927 PR middle-end/50195
928 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
929 only when optimizing.
930
931 2011-10-10 Nick Clifton <nickc@redhat.com>
932
933 PR middle-end/49801
934 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
935 df_get_live_out instead of accessing the bitmaps directly.
936 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
937 df_live_add_problem and df_analyze.
938
939 2011-10-10 Michael Matz <matz@suse.de>
940
941 PR middle-end/50638
942 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
943
944 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
945
946 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
947 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
948 (node_sched_params): Remove first_reg_move and nreg_moves.
949 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
950 (update_node_sched_params): Move up file.
951 (print_node_sched_params): Print the stage. Don't dump info related
952 to first_reg_move and nreg_moves.
953 (set_columns_for_row): New function.
954 (set_columns_for_ps): Move up file and use set_columns_for_row.
955 (schedule_reg_move): New function.
956 (schedule_reg_moves): Call extend_node_sched_params and
957 schedule_reg_move. Extend size of uses bitmap. Initialize
958 num_consecutive_stages. Return false if a move could not be
959 scheduled.
960 (apply_reg_moves): Don't emit moves here.
961 (permute_partial_schedule): Handle register moves.
962 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
963 to the same stage-count test as ddg nodes.
964 (generate_prolog_epilog): Update calls accordingly.
965 (sms_schedule): Allow move-scheduling to add a new first stage.
966
967 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
968
969 * modulo-sched.c (ps_insn): Adjust comment.
970 (ps_reg_move_info): New structure.
971 (partial_schedule): Add reg_moves field.
972 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
973 (node_sched_params): Turn first_reg_move into an identifier.
974 (ps_reg_move): New function.
975 (ps_rtl_insn): Cope with register moves.
976 (ps_first_note): Adjust comment and assert that the instruction
977 isn't a register move.
978 (node_sched_params): Replace with...
979 (node_sched_param_vec): ...this vector.
980 (set_node_sched_params): Adjust accordingly.
981 (print_node_sched_params): Take a partial schedule instead of a ddg.
982 Use ps_rtl_insn and ps_reg_move.
983 (generate_reg_moves): Rename to...
984 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
985 move in the partial schedule, but don't emit it here. Don't perform
986 register substitutions here either.
987 (apply_reg_moves): New function.
988 (duplicate_insns_of_cycles): Use register indices directly,
989 rather than finding instructions using PREV_INSN. Use ps_reg_move.
990 (sms_schedule): Call schedule_reg_moves before committing to
991 a partial schedule. Try the next ii if the schedule fails.
992 Use apply_reg_moves instead of generate_reg_moves. Adjust
993 call to print_node_sched_params. Free node_sched_param_vec
994 instead of node_sched_params.
995 (create_partial_schedule): Initialize reg_moves.
996 (free_partial_schedule): Free reg_moves.
997
998 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
999
1000 * modulo-sched.c (ps_insn): Replace node field with an identifier.
1001 (SCHED_ASAP): Replace with..
1002 (NODE_ASAP): ...this macro.
1003 (SCHED_PARAMS): New macro.
1004 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1005 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1006 (node_sched_params): Remove asap.
1007 (ps_rtl_insn, ps_first_note): New functions.
1008 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
1009 asap values.
1010 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1011 (generate_reg_moves): Pass ids to the SCHED_* macros.
1012 (update_node_sched_params): Take a ps insn identifier rather than
1013 a node as parameter. Use ps_rtl_insn.
1014 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1015 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1016 (optimize_sc): Update for above field and SCHED_* macro changes.
1017 Update calls to try_scheduling_node_in_cycle and
1018 update_node_sched_params.
1019 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1020 macro changes. Use ps_rtl_insn and ps_first_note.
1021 (sms_schedule): Pass ids to the SCHED_* macros.
1022 (get_sched_window): Adjust for above field and SCHED_* macro changes.
1023 Use NODE_ASAP instead of SCHED_ASAP.
1024 (try_scheduling_node_in_cycle): Remove node parameter. Update
1025 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
1026 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1027 (ps_insert_empty_row): Adjust for above field changes.
1028 (compute_split_row): Use ids rather than nodes.
1029 (verify_partial_schedule): Adjust for above field changes.
1030 (print_partial_schedule): Use ps_rtl_insn.
1031 (create_ps_insn): Take an id rather than a node.
1032 (ps_insn_find_column): Adjust for above field changes.
1033 Use ps_rtl_insn.
1034 (ps_insn_advance_column): Adjust for above field changes.
1035 (add_node_to_ps): Remove node parameter. Update call to
1036 create_ps_insn.
1037 (ps_has_conflicts): Use ps_rtl_insn.
1038 (ps_add_node_check_conflicts): Replace node parameter than an id.
1039
1040 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1041
1042 * modulo-sched.c (undo_replace_buff_elem): Delete.
1043 (generate_reg_moves): Don't build and return an undo list.
1044 (free_undo_replace_buff): Delete.
1045 (sms_schedule): Adjust call to generate_reg_moves.
1046 Don't call free_undo_replace_buff.
1047
1048 2011-10-10 Matthias Klose <doko@ubuntu.com>
1049
1050 * common/config/m32c: Remove empty directory.
1051
1052 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1053
1054 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1055
1056 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1057
1058 PR target/50652
1059 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1060 atmega164a to 0x100.
1061
1062 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
1063
1064 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1065 the replacement if the conversion to the LHS type is not useless.
1066
1067 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
1068
1069 PR tree-optimization/50635
1070 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1071 DEF_STMT to the list of statements to be replaced by the
1072 pattern statements.
1073 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1074
1075 2011-10-09 Anatoly Sokolov <aesok@post.ru>
1076
1077 * system.h: Commit forgotten hunk in previous patch.
1078 (OUTPUT_ADDR_CONST_EXTRA): Poison.
1079
1080 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
1081
1082 PR libobjc/50428
1083 * doc/objc.texi (Garbage Collection): Updated example to protect
1084 +initialize against execution in subclasses.
1085
1086 2011-10-07 Richard Henderson <rth@redhat.com>
1087
1088 * doc/extend.texi (__builtin_shuffle): Improve the description to
1089 include the modulus of the selector. Mention OpenCL.
1090 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1091
1092 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1093 * genopinit.c (optabs): Rename vshuffle to vec_perm.
1094 * c-typeck.c (c_build_vec_perm_expr): Rename from
1095 c_build_vec_shuffle_expr. Update for name changes.
1096 * optabs.c (expand_vec_perm_expr_p): Rename from
1097 expand_vec_shuffle_expr_p.
1098 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1099 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1100 (vec_perm_optab): Rename from vshuffle_optab.
1101 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1102 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1103 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1104
1105 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1106 ix86_expand_vshuffle.
1107 * config/i386/i386-protos.h: Update.
1108 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1109 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1110
1111 2011-10-07 Richard Henderson <rth@redhat.com>
1112
1113 * config/i386/predicates.md (avx2_pblendw_operand): New.
1114 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1115 (avx2_pblendw, *avx2_pblendw): New expander and insn.
1116
1117 2011-10-07 Richard Henderson <rth@redhat.com>
1118
1119 * config/i386/i386.c (bdesc_args): Update code for
1120 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
1121 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1122 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1123 * config/i386/sse.md (mode iterator V16): Add V2TI.
1124 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1125 (mode attr ssse3_avx2): Add V2TI.
1126 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1127
1128 2011-10-07 David S. Miller <davem@davemloft.net>
1129
1130 PR 50655
1131 * configure.ac: Add .register directives to VIS3 test.
1132 * configure: Regenerate.
1133
1134 2011-10-07 Richard Henderson <rth@redhat.com>
1135
1136 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1137
1138 2011-10-07 Richard Henderson <rth@redhat.com>
1139
1140 PR 49752
1141 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1142
1143 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
1144
1145 * config/arm/predicates.md (shift_amount_operand): Remove constant
1146 range check.
1147 (shift_operator): Check range of constants for all shift operators.
1148
1149 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1150
1151 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1152 Load GOT pointer for non-pic builds.
1153 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1154 (s390_emit_call): Likewise.
1155
1156 2011-10-07 Tom de Vries <tom@codesourcery.com>
1157
1158 PR middle-end/50527
1159 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1160 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1161 throw.
1162 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1163 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1164 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1165 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1166 * tree-ssa-ccp.c (evaluate_stmt): Set align for
1167 BUILT_IN_ALLOCA_WITH_ALIGN.
1168 (fold_builtin_alloca_for_var): Rename to ...
1169 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1170 BUILT_IN_ALLOCA_WITH_ALIGN argument.
1171 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1172 fold_builtin_alloca_with_align.
1173 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1174 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1175 DEF_BUILTIN_STUB.
1176 * ipa-pure-const.c (special_builtin_state): Handle
1177 BUILT_IN_ALLOCA_WITH_ALIGN.
1178 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1179 (call_may_clobber_ref_p_1): Same.
1180 * function.c (gimplify_parameters): Lower vla to
1181 BUILT_IN_ALLOCA_WITH_ALIGN.
1182 * gimplify.c (gimplify_vla_decl): Same.
1183 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1184 * tree-mudflap.c (mf_xform_statements): Same.
1185 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1186 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1187 * varasm.c (incorporeal_function_p): Same.
1188 * tree-object-size.c (alloc_object_size): Same.
1189 * gimple.c (gimple_build_call_from_tree): Same.
1190
1191 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
1192
1193 * function.c (frame_required_for_rtx): Remove function.
1194 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
1195 changed. Compute a set of mentioned registers and compare against
1196 the new arg rather than calling frame_required_for_rtx.
1197 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1198 reg set. Convert the unconverted_simple_returns mechanism to store
1199 jump insns rather than their basic blocks. Also check the
1200 orig_entry_edge destination for new blocks.
1201
1202 2011-10-07 Jakub Jelinek <jakub@redhat.com>
1203
1204 PR tree-optimization/50650
1205 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1206 call vect_is_simple_cond here, instead fail if cond_expr isn't
1207 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1208 for cond_expr's first operand.
1209 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1210 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1211
1212 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1213
1214 * config/s390/s390.md (DWH, dwh): New mode macros.
1215 ("umulsidi3"): Extend to support "umulditi3" as well.
1216
1217 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
1218 H.J. Lu <hongjiu.lu@intel.com>
1219
1220 PR target/50603
1221 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1222 integer PLUS RTX to a register to improve address combine.
1223
1224 2011-10-06 Richard Henderson <rth@redhat.com>
1225
1226 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1227 parameter; use it to decide whether to merge two notes.
1228 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1229 for the deallocation case as well.
1230
1231 2011-10-06 Anatoly Sokolov <aesok@post.ru>
1232
1233 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1234 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1235 * doc/tm.texi: Regenerate.
1236 * target.def (output_addr_const_extra): Use
1237 hook_bool_FILEptr_rtx_false.
1238 * targhooks.c (default_asm_output_addr_const_extra): Remove.
1239 * targhooks.h (default_asm_output_addr_const_extra): Remove.
1240 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1241 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1242
1243 2011-10-06 David S. Miller <davem@davemloft.net>
1244
1245 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1246 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1247 SI mode 64-bit code gen case explicitly zero-extend and truncate.
1248 (*popcount<mode>_sp64): Split up into...
1249 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1250 SImode case use truncate.
1251 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1252 subtract so the compiler can optimize it.
1253 (SIDI): Remove unused mode iterator.
1254
1255 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1256
1257 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1258 on the orig_entry_edge. Don't account for it in prologue_clobbered.
1259
1260 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1261
1262 PR tree-optimization/50596
1263 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1264 (NUM_PATTERNS): Change to 6.
1265 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1266 function.
1267 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1268 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1269 if it already has one, and don't set STMT_VINFO_VECTYPE in it
1270 if it is already set.
1271 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1272 COND_EXPR in pattern stmts.
1273 (vect_is_simple_cond): No longer static.
1274
1275 2001-10-06 Richard Henderson <rth@redhat.com>
1276
1277 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1278 * config/i386/sse.md (sseshuffint): Remove.
1279 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1280 (VSHUFFLE_AVX2): New mode iterator.
1281 (vshuffle<mode>): Use it.
1282 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1283
1284 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1285 for vector_all_ones_operand.
1286 (ix86_expand_int_vcond): Distinguish between comparison mode
1287 and data mode. Allow them to differ.
1288 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1289
1290 2001-10-06 Richard Henderson <rth@redhat.com>
1291
1292 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1293 mask operand. Tidy the code.
1294
1295 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1296
1297 * tree-vect-patterns.c (vect_pattern_recog_1): Use
1298 vect_recog_func_ptr typedef for the first argument.
1299 (vect_pattern_recog): Rename vect_recog_func_ptr variable
1300 to vect_recog_func, use vect_recog_func_ptr typedef for it.
1301
1302 PR tree-optimization/49279
1303 * tree-ssa-structalias.c (find_func_aliases): Don't handle
1304 CAST_RESTRICT.
1305 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1306 restrict propagation.
1307 * tree-ssa.c (useless_type_conversion_p): Don't return false
1308 if TYPE_RESTRICT differs.
1309
1310 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1311
1312 * function.c (thread_prologue_and_epilogue_insns): Build a vector
1313 of unconverted simple return blocks rather than trying to
1314 recompute them later based on bb_flags bitmap tests.
1315
1316 2011-10-06 Michael Matz <matz@suse.de>
1317
1318 * tree-flow.h (get_var_ann): Don't declare.
1319 * tree-flow-inline.h (get_var_ann): Remove.
1320 (set_is_used): Use var_ann, not get_var_ann.
1321 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1322 * tree-profile.c (gimple_gen_edge_profiler): Call
1323 find_referenced_var_in.
1324 (gimple_gen_interval_profiler): Ditto.
1325 (gimple_gen_pow2_profiler): Ditto.
1326 (gimple_gen_one_value_profiler): Ditto.
1327 (gimple_gen_average_profiler): Ditto.
1328 (gimple_gen_ior_profiler): Ditto.
1329 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1330 (gimple_gen_ic_func_profiler): Call add_referenced_var.
1331 * tree-mudflap.c (execute_mudflap_function_ops): Call
1332 add_referenced_var.
1333
1334 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1335
1336 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1337 don't set SSA_NAME_DEF_STMT that has been already set by
1338 gimple_build_assign_with_ops.
1339 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1340 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1341 Likewise.
1342
1343 * tree.h (avoid_folding_inline_builtin): New prototype.
1344 * builtins.c (avoid_folding_inline_builtin): No longer static.
1345 * gimple-fold.c (gimple_fold_builtin): Give up if
1346 avoid_folding_inline_builtin returns true.
1347
1348 2011-10-06 Richard Guenther <rguenther@suse.de>
1349
1350 * tree-vect-generic.c (vector_element): Look at previous
1351 generated results.
1352
1353 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
1354
1355 PR target/39950
1356 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1357 __powerpc__, __PPC__, __unix__.
1358
1359 2011-10-06 Michael Matz <matz@suse.de>
1360
1361 * i386/i386.opt (recip_mask, recip_mask_explicit,
1362 x_recip_mask_explicit): New variables and cl_target member.
1363 (mrecip=): New option.
1364 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1365 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1366 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1367 TARGET_RECIP_VEC_SQRT): New tests.
1368 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1369 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1370 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1371 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1372 * i386/i386.c (ix86_option_override_internal): Set recip_mask
1373 for -mrecip and -mrecip=options.
1374 (ix86_function_specific_save): Save recip_mask_explicit.
1375 (ix86_function_specific_restore): Restore recip_mask_explicit.
1376
1377 * doc/invoke.texi (ix86 Options): Document the new option.
1378
1379 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1380
1381 PR target/49049
1382 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1383
1384 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
1385
1386 PR target/50305
1387 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1388 output of a previous pass through legitimize_reload_address.
1389 Do not attempt to optimize addresses if the base register is
1390 equivalent to a constant.
1391
1392 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1393
1394 * function.c (thread_prologue_and_epilogue_insns): Mark
1395 last_bb_active as possibly unused. It is unused for targets which
1396 do neither have "return" nor "simple_return" expanders.
1397
1398 2011-10-06 Richard Guenther <rguenther@suse.de>
1399
1400 * fold-const.c (fold_ternary_loc): Also fold non-constant
1401 vector CONSTRUCTORs. Make more efficient.
1402 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1403 (cprop_into_stmt): Don't propagate into virtual operands.
1404 (optimize_stmt): Really dump original statement.
1405
1406 2011-10-06 Nick Clifton <nickc@redhat.com>
1407
1408 * config/rx/rx.md (smin3): Revert previous delta.
1409
1410 2011-10-06 Richard Guenther <rguenther@suse.de>
1411
1412 PR tree-optimization/38884
1413 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1414 reads from aggregate SSA names.
1415
1416 2011-10-05 Jakub Jelinek <jakub@redhat.com>
1417
1418 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1419 argument, truncate it at the beginning instead of allocating there
1420 and freeing at the end.
1421 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1422 pass its address to vect_pattern_recog_1.
1423
1424 2011-10-05 David S. Miller <davem@davemloft.net>
1425
1426 * config/sparc/sparc.opt (POPC): New option.
1427 * doc/invoke.texi: Document it.
1428 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1429 default on Niagara-2 and later.
1430 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1431 * config/sparc/sparc.md (SIDI): New mode iterator.
1432 (ffsdi2): Delete commented out pattern and comments.
1433 (popcount<mode>2, clz<mode>2): New expanders.
1434 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1435 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1436
1437 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1438
1439 PR middle-end/50607
1440 * c-tree.h (c_expr_t): New typedef for struct c_expr.
1441 (C_EXPR_APPEND): New macro.
1442 * c-parser.c (c_parser_get_builtin_args): Preserve
1443 original_tree_code of c_expr structure.
1444 (c_parser_postfix_expression): Adjust to the new function.
1445
1446 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
1447
1448 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
1449 if profiling after the prologue.
1450
1451 2011-10-05 Jakub Jelinek <jakub@redhat.com>
1452
1453 PR tree-optimization/50613
1454 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1455 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1456 and if it is neither that not SSA_NAME, give up.
1457
1458 2011-10-05 Richard Henderson <rth@redhat.com>
1459
1460 * tree-vect-generic.c (vector_element): Never fail. Use
1461 build_zero_cst. Tidy up type references.
1462 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
1463 code duplication. Do update_stmt here ...
1464 (expand_vector_operations_1): ... not here.
1465
1466 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
1467 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
1468 duplication. Handle V2DI without SSE4.1.
1469 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1470 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1471
1472 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
1473
1474 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1475 of "found". Simplify return value calculation.
1476 (distance_agu_use): Ditto.
1477
1478 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
1479
1480 PR bootstrap/50621
1481 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1482 if the function was not shrink-wrapped.
1483 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1484 to an insn.
1485 * function.c (thread_prologue_and_epilogue_insns): Make sure the
1486 shrink_wrapped flag is set even if there is no dump file.
1487
1488 2011-10-05 DJ Delorie <dj@redhat.com>
1489 Nick Clifton <nickc@redhat.com>
1490
1491 * config/rx/rx.opt (mpid): Define.
1492 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1493 (MULTILIB_DIRNAMES): Add pid.
1494 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1495 (rx_num_interrupt_regs): New variable.
1496 (rx_gp_base_regnum): New function. Returns the number of the
1497 small data area register.
1498 (rx_pid_base_regnum): New function. Returns the number of the pid
1499 base register.
1500 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
1501 (rx_pid_data_operand): New function. Returns whether an object is
1502 in the position independent data area.
1503 (rx_legitimize_address): New function. Puts undecided PID
1504 objects in the PID data area.
1505 (rx_is_legitimate_address): Add support for PID operands.
1506 (rx_print_operand_address): Likewise.
1507 (rx_print_operand): Likewise.
1508 (rx_maybe_pidify_operand): New function. Determine if an operand
1509 is suitable for PID addressing.
1510 (rx_gen_move_template): Add PID support.
1511 (rx_conditional_register_usage): Likewise.
1512 (rx_option_override): Initialise rx_num_interrupt_regs.
1513 (rx_is_legitimate_constant): Add support for PID constants.
1514 (TARGET_LEGITIMIZE_ADDRESS): Define.
1515 * config/rx/constraints.md (Rpid): Define.
1516 (Rpda): Define.
1517 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1518 (tablejump): Add PID support.
1519 (mov<>): Likewise.
1520 (mov<>_internal): Likewise.
1521 (addsi3): Convert to an expander. Add PID support.
1522 (pid_addr): New pattern.
1523 * config/rx/rx.h (CPP_SPEC): Define.
1524 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1525 (CASE_VECTOR_PC_RELATIVE): Define.
1526 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1527 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1528 * doc/invoke.texi (RX Options): Document -mpid command line option.
1529
1530 2011-10-05 Richard Guenther <rguenther@suse.de>
1531
1532 PR tree-optimization/38885
1533 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1534 from constants.
1535
1536 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
1537
1538 * doc/invoke.texi (-fshrink-wrap): Document.
1539 * opts.c (default_options_table): Add it.
1540 * common.opt (fshrink-wrap): Add.
1541 * function.c (emit_return_into_block): Remove useless declaration.
1542 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1543 requires_stack_frame_p, gen_return_pattern): New static functions.
1544 (emit_return_into_block): New arg simple_p. All callers changed.
1545 Use gen_return_pattern.
1546 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1547 * config/i386/i386.md (return): Expand into a simple_return.
1548 (simple_return): New expander):
1549 (simple_return_internal, simple_return_internal_long,
1550 simple_return_pop_internal_long, simple_return_indirect_internal):
1551 Renamed from return_internal, return_internal_long,
1552 return_pop_internal_long and return_indirect_internal; changed to use
1553 simple_return.
1554 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1555 simple returns.
1556 (ix86_pad_returns): Likewise.
1557 * function.h (struct rtl_data): Add member shrink_wrapped.
1558 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1559 are not jumps or sibcalls can't be compared.
1560
1561 2011-10-05 Richard Guenther <rguenther@suse.de>
1562
1563 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1564 vector type.
1565 (simplify_unary_expression): Handle BIT_FIELD_REFs.
1566 (try_to_simplify): Handle BIT_FIELD_REFs.
1567
1568 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
1569
1570 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1571 * config/avr/avr.c (avr_out_addto_sp): New function.
1572 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1573 * config/avr/avr.md (adjust_len): Add "addto_sp".
1574 (*movhi_sp): Remove insn.
1575 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1576
1577 2011-10-05 Richard Guenther <rguenther@suse.de>
1578
1579 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1580 with an embedded expression valueize and fold that as well.
1581 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1582 results from gimple_fold_stmt_to_constant_1.
1583
1584 2011-10-05 Nick Clifton <nickc@redhat.com>
1585
1586 * config/rx/rx.md (tablejump): Add missing label.
1587 (adddi3_internal): Mark operand 0 as early-clobbered.
1588 (smaxsi3): Revert previous delta.
1589 (adc_internal): Fix whitespace in generated asm.
1590 (adc_flags): Likewise.
1591
1592 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1593
1594 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1595 with the new widening_optab_handler.
1596
1597 2011-10-05 Richard Guenther <rguenther@suse.de>
1598
1599 PR tree-optimization/50609
1600 * gimple-fold.c (fold_array_ctor_reference): Also handle
1601 vector typed constructors.
1602 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1603 for vector typed constructors.
1604
1605 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
1606
1607 * config/i386/i386.c (ix86_emit_binop): New static function.
1608 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1609 instructions.
1610 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1611
1612 2011-10-04 David S. Miller <davem@davemloft.net>
1613
1614 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1615 UNSPEC_XMUL): New unspecs.
1616 (muldi3_v8plus): Use output_v8plus_mult.
1617 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1618 New VIS 3.0 combiner patterns.
1619 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1620 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1621 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1622 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1623 builtins patterns.
1624 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1625 (output_v8plus_mult): New function.
1626 * config/sparc/sparc-protos.h: Declare it.
1627 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1628 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
1629 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
1630 * doc/extend.texi: Document new builtins.
1631
1632 2011-10-04 Richard Henderson <rth@redhat.com>
1633
1634 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
1635 Avoid save_expr unless two_arguments.
1636
1637 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
1638
1639 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
1640 * config/i386/mingw32.h (CPP_SPEC): Likewise.
1641
1642 2011-10-04 David S. Miller <davem@davemloft.net>
1643
1644 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
1645 under Linux.
1646
1647 2011-10-04 Jakub Jelinek <jakub@redhat.com>
1648
1649 PR tree-optimization/50604
1650 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
1651 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
1652 last argument to memcpy has size_type_node type instead of ssizetype.
1653 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
1654 instead of TREE_TYPE (len) as type for newlen.
1655
1656 PR tree-optimization/50522
1657 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
1658 TYPE_RESTRICT.
1659 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
1660 unconditionally.
1661
1662 * fold-const.c (fold_unary_loc): Don't optimize
1663 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
1664 casting the inner pointer if it isn't TYPE_RESTRICT.
1665 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
1666 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
1667
1668 2011-10-04 Joseph Myers <joseph@codesourcery.com>
1669
1670 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
1671
1672 2011-10-04 Jan Hubicka <jh@suse.cz>
1673
1674 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
1675 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
1676 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
1677 * lto-cgraph.c (order_base): New static var.
1678 (lto_output_node): Stream in order.
1679 (lto_output_varpool_node): Stream out order.
1680 (input_node): Stream in order.
1681 (input_varpool_node): Stream out order.
1682 (input_cgraph_1): Initialize order base; update call of
1683 lto_input_toplevel_asms.
1684
1685 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
1686
1687 PR target/50566
1688 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
1689 prototype.
1690 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
1691 from here...
1692 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
1693 function. Log if avr_log.legitimize_reload_address.
1694
1695 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
1696
1697 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
1698
1699 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1700
1701 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
1702 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
1703
1704 2011-10-03 David S. Miller <davem@davemloft.net>
1705
1706 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
1707 GSR_REG an input operand to UNSPEC instead of a parallel USE.
1708 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
1709 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
1710 Reference GSR_REG in DI mode, simplify convoluted expressions by using
1711 zero_extract.
1712 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
1713
1714 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
1715
1716 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
1717
1718 2011-10-03 Jakub Jelinek <jakub@redhat.com>
1719 Ian Lance Taylor <iant@google.com>
1720
1721 * godump.c (go_output_typedef): Support printing enum values that
1722 don't fit in a signed HOST_WIDE_INT.
1723
1724 2011-10-03 Anatoly Sokolov <aesok@post.ru>
1725
1726 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
1727 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1728 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1729 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
1730
1731 2011-10-03 Anatoly Sokolov <aesok@post.ru>
1732
1733 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
1734 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1735 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1736 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
1737
1738 2011-10-03 Steve Ellcey <sje@cup.hp.com>
1739
1740 PR target/49967
1741 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
1742 (gcc_cv_ld_static_option): Ditto.
1743 (gcc_cv_ld_dynamic_option): Ditto.
1744 * configure: Regenerate.
1745
1746 2011-10-03 David S. Miller <davem@davemloft.net>
1747
1748 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
1749 and 'si' patterns which describe the GSR changes explicitly in the
1750 RTL using zero_extract.
1751 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
1752
1753 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
1754 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
1755
1756 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1757
1758 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
1759 if given expression can be expanded by the target.
1760 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
1761 using target vector instructions.
1762 * optabs.h: New optab vshuffle.
1763 (expand_vec_shuffle_expr_p): New prototype.
1764 (expand_vec_shuffle_expr): New prototype.
1765 (vshuffle_optab): New optab.
1766 * genopinit.c: Adjust to support vecshuffle.
1767 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
1768 * expr.c (expand_expr_real_2): Adjust.
1769 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
1770 recognizing the cases of two and three arguments.
1771 (convert_arguments) (build_binary_op)
1772 (scalar_to_vector) (build_array_ref): Spurious whitespace.
1773 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
1774 * tree.def: New tree code VEC_SHUFFLE_EXPR.
1775 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
1776 * tree-vect-generic.c (vector_element): New function. Returns an
1777 element of the vector at the given position.
1778 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
1779 by the backend or expand an expression piecewise.
1780 (expand_vector_operations_1): Adjusted.
1781 (gate_expand_vector_operations_noop): New gate function.
1782 * Makefile.in (tree-vect-generic.o): New include.
1783 * gimple.c (get_gimple_rhs_num_ops): Adjust.
1784 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
1785 * passes.c: Move veclower down.
1786 * tree-pretty-print.c (dump_generic_node): Recognize
1787 VEC_SHUFFLE_EXPR as valid expression.
1788 * c-parser.c (c_parser_get_builtin_args): Helper function for the
1789 builtins with variable number of arguments.
1790 (c_parser_postfix_expression): Use a new helper function for
1791 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
1792 * tree-ssa-operands: Adjust.
1793 * c-family/c-common.c: New __builtin_shuffle keyword.
1794 * c-family/c-common.h: New __builtin_shuffle keyword.
1795 * gcc/doc/extend.texi: Adjust.
1796
1797 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
1798 between the vector and the type of the mask when shuffling.
1799 (vecshuffle<mode>): New expansion.
1800 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
1801 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
1802 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
1803
1804 2011-10-03 Jakub Jelinek <jakub@redhat.com>
1805
1806 PR tree-optimization/50587
1807 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
1808 arg0 is not a SSA_NAME.
1809
1810 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
1811
1812 * ipa-inline-analysis.c (MAX_TIME): Update comment.
1813
1814 2011-10-02 Richard Henderson <rth@redhat.com>
1815 David S. Miller <davem@davemloft.net>
1816
1817 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
1818 conditional insn type setting, we always emit a shift.
1819 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
1820 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
1821 * config/sparc/predicates.md (const_one_operand): Delete.
1822
1823 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
1824
1825 * invoke.texi (SPARC Options): Refer to GNU/Linux.
1826
1827 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
1828
1829 * config/mips/mips.c (mips_frame_barrier): New function.
1830 (mips_expand_prologue): Call it after allocating stack space.
1831 (mips_deallocate_stack): New function.
1832 (mips_expand_epilogue): Call mips_frame_barrier and
1833 mips_deallocate_stack.
1834
1835 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
1836
1837 PR target/49696
1838 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
1839 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1840 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
1841
1842 2011-10-02 Jan Hubicka <jh@suse.cz>
1843
1844 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
1845
1846 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
1847 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
1848 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
1849 functions are reachable when address is taken.
1850 * tree-sra.c (modify_function): Free dominance info.
1851
1852 2011-10-02 Jan Hubicka <jh@suse.cz>
1853
1854 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
1855
1856 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
1857 (reset_inline_summary): New function.
1858 (compute_inline_parameters, inline_node_removal_hook,
1859 inline_edge_removal_hook): Use it.
1860 (inline_free_summary): Reset holders correctly.
1861 (inline_generate_summary): Free summary before computing it.
1862
1863 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
1864
1865 PR preprocessor/36819
1866 * incpath.c (merge_include_chains): Call free_path on
1867 heads[QUOTE] and tails[QUOTE].
1868
1869 2011-10-02 Jan Hubicka <jh@suse.cz>
1870
1871 PR lto/47247
1872 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
1873 when resolution is already availbale from plugin.
1874 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
1875 * cgraph.c (ld_plugin_symbol_resolution): Add
1876 prevailing_def_ironly_exp.
1877 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
1878 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
1879 externally visible.
1880 * varasm.c (resolution_to_local_definition_p): Add
1881 LDPR_PREVAILING_DEF_IRONLY_EXP.
1882 (resolution_local_p): Likewise.
1883
1884 2011-10-01 David S. Miller <davem@davemloft.net>
1885
1886 * config/sparc/sparc.opt (VIS3): New option.
1887 * doc/invoke.texi: Document it.
1888 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
1889 not capable of such instructions.
1890 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
1891 to 0x300 when TARGET_VIS3.
1892 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
1893 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
1894 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
1895 (V64N8, VASS): New mode iterators.
1896 (vis3_shift, vis3_addsub_ss): New code iterators.
1897 (vbits, vconstr): New mode attributes.
1898 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
1899 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
1900 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
1901 fmean16_vis, fpadd64_vis, fpsub64_vis,
1902 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
1903 VIS 3.0 instruction patterns.
1904 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
1905 default when targetting capable cpus. TARGET_VIS3 implies
1906 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
1907 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
1908 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
1909 is ignored.
1910 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
1911 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
1912 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
1913 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
1914 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
1915 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
1916 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
1917 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
1918 * doc/extend.texi: Document new VIS 3.0 builtins.
1919
1920 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
1921
1922 * ira-color.c (assign_hard_reg): Fix typo.
1923
1924 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
1925
1926 * doc/extend.texi: Add missing ','.
1927
1928 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
1929
1930 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
1931 Enable -fmodulo-sched at -O2 and above.
1932 * config/c6x/c6x.md (doloop_end): New expander.
1933 (mvilc, sploop, spkernel, loop_end): New patterns.
1934 (loop_end with memory destination splitter): New.
1935 * config/c6x/c6x.c: Include "hw-doloop.h".
1936 (enum unitreqs): New.
1937 (unit_req_table): New typedef.
1938 (unit_reqs): New static variable.
1939 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
1940 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
1941 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
1942 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
1943 (struct c6x_sched_context): New member last_scheduled_iter0.
1944 (init_sched_state): Initialize it.
1945 (c6x_variable_issue): Update it.
1946 (sploop_max_uid_iter0): New static variable.
1947 (c6x_sched_reorder_1): Be careful about issuing sploop.
1948 (c6x_reorg): Call c6x_hwlooops before the final schedule.
1949
1950 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
1951
1952 PR target/50566
1953 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
1954 * config/avr/avr.c (avr_address_cost): Use it.
1955 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1956 (avr_log_vadump): Unknown %-codes finish printing.
1957
1958 2011-09-30 Jakub Jelinek <jakub@redhat.com>
1959
1960 PR inline-asm/50571
1961 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
1962 input constraints allow mem and not reg, pass true instead of
1963 false as second argument to maybe_fold_reference.
1964
1965 PR tree-optimization/46309
1966 * fold-const.c (make_range, merge_ranges): Remove prototypes.
1967 (make_range_step): New function.
1968 (make_range): Use it.
1969 * tree.h (make_range_step): New prototypes.
1970 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
1971 * tree-ssa-reassoc.c: Include diagnostic-core.h.
1972 (struct range_entry): New type.
1973 (init_range_entry, range_entry_cmp, update_range_test,
1974 optimize_range_tests): New functions.
1975 (reassociate_bb): Call optimize_range_tests.
1976
1977 2011-09-30 Jakub Jelinek <jakub@redhat.com>
1978 Richard Guenther <rguenther@suse.de>
1979
1980 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
1981 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
1982 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
1983 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
1984 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
1985 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
1986
1987 2011-09-30 Jan Beulich <jbeulich@suse.com>
1988
1989 * lto-cgraph.c (output_cgraph): Remove processing of
1990 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
1991 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
1992 lto_input_toplevel_asms() instead.
1993 * lto-section-in.c (lto_section_name): Add "asm" entry.
1994 * lto-streamer-in.c (lto_input_toplevel_asms): New.
1995 * lto-streamer-out.c (lto_output_toplevel_asms): New.
1996 * lto-streamer.h (LTO_minor_version): Bump.
1997 (enum lto_section_type): Add LTO_section_asm.
1998 (struct lto_asm_header): New.
1999 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2000 * tree-streamer.h (streamer_write_string_cst): Declare.
2001 * tree-streamer-out.c (write_string_cst): Rename to
2002 streamer_write_string_cst and make global. Handle incoming string
2003 being NULL.
2004 (streamer_write_tree_header): Adjust call to renamed function.
2005
2006 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2007
2008 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2009 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2010 modulo_last_stage): New static variables.
2011 (set_modulo_params, discard_delay_pairs_above): New functions.
2012 (struct delay_pair): New member stages.
2013 (htab_i2_traverse, htab_i1_traverse): New static functions.
2014 (record_delay_slot_pair): New arg stages. All callers changed.
2015 Record it.
2016 (pair_delay): Take stages into account.
2017 (add_delay_dependencies): Don't do so for stage pairs.
2018 (struct sched_block_state): New member modulo_epilogue.
2019 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2020 (unschedule_insns_until): Decrease modulo_insns_scheduled.
2021 Set HARD_DEP without using or.
2022 (resolve_dependencies): New static function.
2023 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
2024 If it is true, allow only insns with INSN_EXACT_TICK set.
2025 (schedule_block): Return bool, always true for normal scheduling,
2026 true or false depending on modulo scheduling success otherwise.
2027 Add bookkeeping for modulo scheduling, and call resolve_dependencies
2028 on everything left over after a modulo schedule.
2029 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
2030 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2031 declarations.
2032 (set_modulo_params, discard_delay_pairs_above): Declare.
2033 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2034 * doc/invoke.texi (--param): Document it.
2035
2036 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
2037 New arg modulo_scheduling. All callers changed. Move note handling
2038 code here from schedule_ebbs.
2039 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2040 out of schedule_ebbs.
2041 (schedule_ebbs): Call them. Remove note handling code moved to
2042 schedule_ebb.
2043 * sched-int.h (schedule_ebb, schedule_ebbs_init,
2044 schedule_ebbs_finish): Declare.
2045
2046 2011-09-30 Richard Guenther <rguenther@suse.de>
2047
2048 PR middle-end/50574
2049 * tree-cfg.c (verify_gimple_comparison): Compare component
2050 mode sizes for vector comparisons.
2051
2052 2011-09-30 Revital Eres <revital.eres@linaro.org>
2053
2054 * ddg.c (autoinc_var_is_used_p): New function.
2055 (create_ddg_dep_from_intra_loop_link,
2056 add_cross_iteration_register_deps): Call it.
2057 * ddg.h (autoinc_var_is_used_p): Declare.
2058 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2059 (sms_schedule): Handle instructions with REG_INC.
2060
2061 2011-09-30 Revital Eres <revital.eres@linaro.org>
2062
2063 * modulo-sched.c (generate_reg_moves): Skip instructions that
2064 do not set a register and verify no regmoves are created for
2065 !single_set instructions.
2066
2067 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2068
2069 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2070 insns.
2071
2072 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2073
2074 PR target/50099
2075 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2076 (qhs_zextenddi_op): New.
2077 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2078 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2079 Distinguish between ARM and Thumb2 states.
2080
2081 2011-09-30 David S. Miller <davem@davemloft.net>
2082
2083 * config/sparc/sparc.opt (VIS2): New option.
2084 * doc/invoke.texi: Document it.
2085 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2086 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2087 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2088 (define_attr type): New insn type 'edgen'.
2089 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2090 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2091 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2092 patterns.
2093 * niagara.md: Handle edgen.
2094 * niagara2.md: Likewise.
2095 * ultra1_2.md: Likewise.
2096 * ultra3.md: Likewise.
2097 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2098 to 0x200 when TARGET_VIS2.
2099 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2100 default when targetting capable cpus. TARGET_VIS2 implies
2101 TARGET_VIS, clear and it when TARGET_FPU is disabled.
2102 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2103 (sparc_expand_builtin): Fix predicate indexing when builtin returns
2104 void.
2105 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2106 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2107 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2108 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2109 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2110 * doc/extend.texi: Document new VIS 2.0 builtins.
2111
2112 2011-09-29 Nick Clifton <nickc@redhat.com>
2113 Bernd Schmidt <bernds@codesourcery.com>
2114
2115 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2116 * config/frv/frvend.c: Likewise.
2117 * config/frv/frv.c (frv_function_prologue): Move misplaced
2118 CALL_ARG_LOCATION notes back to their proper locations.
2119
2120 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2121
2122 PR target/50566
2123 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2124 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2125 from avr_rtx_costs.
2126 (avr_legitimate_address_p): Use avr_edump to print log information
2127 filtered by avr_log.
2128 (extra_constraint_Q): Ditto.
2129 (avr_legitimize_address): Ditto.
2130 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
2131 (final_prescan_insn): Use avr_log.rtx_costs as filter.
2132
2133 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
2134
2135 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2136 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2137 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
2138 NEON vector and structure modes to be tied.
2139
2140 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2141
2142 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
2143 forward declaration.
2144 (remove_duplicate_close_phi): Detect and repair creation of
2145 duplicate close-phis for a containing loop.
2146
2147 2011-09-27 Andi Kleen <ak@linux.intel.com>
2148
2149 * gcc.c (get_local_tick). Rename to get_random_number. Read from
2150 /dev/urandom. Add getpid call.
2151 (compare_debug_dump_opt_spec_function): Drop getpid call.
2152
2153 2011-09-26 Andi Kleen <ak@linux.intel.com>
2154
2155 * toplev.c (init_local_tick): Try reading random seed
2156 from /dev/urandom.
2157
2158 2011-09-26 Andi Kleen <ak@linux.intel.com>
2159
2160 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2161 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2162 Handle numerical random seed.
2163 * lto-streamer.h (lto_file_decl_data): Change id to
2164 unsigned HOST_WIDE_INT.
2165 * toplev.c (random_seed): Add.
2166 (init_random_seed): Change for numerical random seed.
2167 (get_random_seed): Return as HOST_WIDE_INT.
2168 (set_random_seed): Crc32 existing string.
2169 * toplev.h (get_random_seed): Change to numercal return.
2170 * tree.c (get_file_function_name): Remove CRC. Handle
2171 numerical random seed.
2172
2173 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2174
2175 PR target/50566
2176 * config.gcc (extra_objs): Add avr-log.o for $target in:
2177 avr-*-rtems*, avr-*-*.
2178 * config/avr/t-avr (avr-log.o): New rule to compile...
2179 * config/avr/avr-log.c: ...this new file.
2180 * config/avr/avr.opt (mlog=): New option.
2181 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2182 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2183 (avr_log_set_avr_log): New prototype.
2184 (avr_log_t): New typedef.
2185 (avr_log): New declaration.
2186 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2187
2188 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2189
2190 * expr.c (do_store_flag): Expand vector comparison by
2191 building an appropriate VEC_COND_EXPR.
2192 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2193 (c_objc_common_truthvalue_conversion): Adjust.
2194 * tree-vect-generic.c (do_compare): Helper function.
2195 (expand_vector_comparison): Check if hardware supports
2196 vector comparison of the given type or expand vector piecewise.
2197 (expand_vector_operation): Treat comparison as binary
2198 operation of vector type.
2199 (expand_vector_operations_1): Adjust.
2200
2201 2011-09-29 Richard Guenther <rguenther@suse.de>
2202
2203 * tree.c (build_opaque_vector_type): Make opaque vectors
2204 variant types of the corresponding non-opaque type. Make
2205 sure to share opaque vector types properly.
2206
2207 2011-09-29 David S. Miller <davem@davemloft.net>
2208
2209 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2210 UNSPEC_ARRAY32): New unspec.
2211 (define_attr type): New type 'array'.
2212 (array{8,16,32}<P:mode>_vis): New patterns.
2213 * config/sparc/ultra1_2.md: Add reservations for 'array'.
2214 * config/sparc/ultra3.md: Likewise.
2215 * config/sparc/niagara.md: Likewise.
2216 * config/sparc/niagara2.md: Likewise.
2217 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2218 array builtins.
2219 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2220 __vis_array32): New.
2221 * doc/extend.texi: Document new VIS builtins.
2222
2223 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2224 (VIS pixel-compare insn): Just use <gcond:name>.
2225
2226 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2227 code iterator used, so just use <code>. There are two mode iterators
2228 so explicitly use <GCM:gcm_name>.
2229
2230 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
2231
2232 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2233 Darwin >= 9.
2234
2235 2011-09-28 David S. Miller <davem@davemloft.net>
2236
2237 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2238 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2239 (UNSPEC_FCMP): New unspec.
2240 (gcond): New code iterator.
2241 (gcond_name): New code attr.
2242 (GCM): New mode iterator.
2243 (gcm_name): New mode attr.
2244 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2245
2246 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
2247
2248 PR target/49486
2249 * config/sh/sh.md (negdi2): Move expansion into split to
2250 allow more combination options. Add T_REG clobber.
2251 (abssi2): New expander.
2252 (*negdi2, *abssi2, *negabssi2): New insns.
2253 (cneg): Change from insn to insn_and_split. Rename to
2254 negsi_cond. Add alternative for non-SH4.
2255
2256 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
2257
2258 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2259 (neon_move_hi_quad_<mode>): Likewise.
2260 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2261
2262 2011-09-28 Nick Clifton <nickc@redhat.com>
2263
2264 * config/rx/predicates.md (rx_minmax_operand): New predicate.
2265 Accepts immediates and a restricted subset of MEMs.
2266 * config/rx/rx.md (int_modes): New iterator.
2267 (smaxsi3, sminsi3): Delete and replace with...
2268 (smax<int_mode>3, smin<int_mode>3): New patterns.
2269 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2270
2271 2011-09-28 Richard Guenther <rguenther@suse.de>
2272
2273 PR middle-end/50460
2274 * fold-const.c (try_move_mult_to_index): Handle &a.array the
2275 same as &a.array[0].
2276
2277 2011-09-28 Kai Tietz <ktietz@redhat.com>
2278
2279 * configure.ac: Add test for new section attribute
2280 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2281 * config.in: Regenerated.
2282 * configure: Regenerated.
2283 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2284 new section flag "e" for excluded sections, if supported.
2285 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2286
2287 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2288
2289 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2290 throughout file.
2291
2292 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2293
2294 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2295 throughout file.
2296
2297 2011-09-27 Sriraman Tallam <tmsriram@google.com>
2298
2299 * output.h (SECTION_EXCLUDE): New macro.
2300 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2301
2302 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2303
2304 * fwprop.c (forward_propagate_and_simplify): After checking
2305 reg/subreg combinations, check whether the modes are the same.
2306
2307 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
2308 Richard Sandiford <rdsandiford@googlemail.com>
2309
2310 * config/mips/mips.c (mips_add_cfa_restore): New function.
2311 (mips16e_save_restore_reg): Use it.
2312 (mips_restore_reg): Likewise. Split double FPRs for
2313 REG_CFA_RESTORE notes.
2314
2315 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2316
2317 PR middle-end/50386
2318 PR middle-end/50326
2319 * tree-sra.c (build_ref_for_model): Use the type of the field as
2320 the type of the COMPONENT_REF.
2321
2322 2011-09-27 Jeff Law <law@redhat.com>
2323
2324 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
2325 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2326 (find_if_case_1): Use the probability of the THEN clause when
2327 determining if speculation is profitable.
2328 (find_if_case_2): Similarly for the ELSE clause.
2329
2330 2011-09-27 Jakub Jelinek <jakub@redhat.com>
2331
2332 * common.opt: Add -foptimize-strlen option.
2333 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2334 (tree-sssa-strlen.o): Add dependencies.
2335 * opts.c (default_options_table): Enable -foptimize-strlen
2336 by default at -O2 if not -Os.
2337 * passes.c (init_optimization_passes): Add pass_strlen
2338 after pass_object_sizes.
2339 * timevar.def (TV_TREE_STRLEN): New timevar.
2340 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2341 * tree-pass.h (pass_strlen): Declare.
2342 * tree-ssa-strlen.c: New file.
2343 * c-decl.c (merge_decls): If compatible stpcpy prototype
2344 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2345
2346 2011-09-27 Tom de Vries <tom@codesourcery.com>
2347
2348 PR middle-end/43864
2349 * tree-ssa-tail-merge.c: New file.
2350 (struct same_succ_def): Define.
2351 (same_succ, const_same_succ): New typedef.
2352 (struct bb_cluster_def): Define.
2353 (bb_cluster, const_bb_cluster): New typedef.
2354 (struct aux_bb_info): Define.
2355 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2356 (gvn_uses_equal): New function.
2357 (same_succ_print, same_succ_print_traverse, update_dep_bb)
2358 (stmt_update_dep_bb, local_def, same_succ_hash)
2359 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2360 (same_succ_reset): New function.
2361 (same_succ_htab, same_succ_edge_flags)
2362 (deleted_bbs, deleted_bb_preds): New var.
2363 (debug_same_succ): New function.
2364 (worklist): New var.
2365 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2366 (init_worklist, delete_worklist, delete_basic_block_same_succ)
2367 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2368 (print_cluster, debug_cluster, update_rep_bb)
2369 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2370 (all_clusters): New var.
2371 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2372 (merge_clusters, set_cluster): New function.
2373 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2374 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2375 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2376 (find_clusters_1, find_clusters): New function.
2377 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2378 (update_bbs): New var.
2379 (apply_clusters): New function.
2380 (update_debug_stmt, update_debug_stmts): New function.
2381 (tail_merge_optimize): New function.
2382 tree-pass.h (tail_merge_optimize): Declare.
2383 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2384 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2385 (tree-ssa-tail-merge.o): New rule.
2386 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2387 default at OPT_LEVELS_2_PLUS.
2388 * tree-ssa-sccvn.c (vn_valueize): Move to ...
2389 * tree-ssa-sccvn.h (vn_valueize): Here.
2390 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2391 * common.opt (ftree-tail-merge): New switch.
2392 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2393 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2394 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2395 (-ftree-tail-merge, max-tail-merge-comparisons)
2396 (max-tail-merge-iterations): New item.
2397
2398 2011-09-27 Jan Hubicka <jh@suse.cz>
2399
2400 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2401
2402 2011-09-27 Jan Hubicka <jh@suse.cz>
2403
2404 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2405 parameters passed by reference; handle loads from non-SSA scalars
2406 and update comments.
2407
2408 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
2409
2410 PR rtl-optimization/50249
2411 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2412 instead of opnum and type. All callers changed. Remove useless
2413 declaration.
2414 Search forward for other reloads of the same type for the same operand
2415 using the same register; if any are found, return false.
2416 (reload_regs_reach_end_p): Same argument changes; all callers changed.
2417
2418 2011-09-27 Andi Kleen <ak@linux.intel.com>
2419 Jan Hubicka <jh@suse.cz>
2420
2421 * doc/invoke.texi (ffat-lto-objects): Document.
2422 * toplev.c (compile_file): Do not output assembly when doing slim lto;
2423 Output __gnu_slim_lto when doing slim lto.
2424 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2425 (cgraph_optimize): Return early when doing slim lto.
2426 * opts.c (finish_options): Complain about lack of linker plugin
2427 when doing slim lto.
2428 * common.opt (ffat-lto-objects): New.
2429
2430 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
2431
2432 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2433 between signed and unsigned.
2434
2435 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
2436
2437 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2438 vectorization.
2439 (vectorizable_type_promotion): Likewise.
2440 (vect_analyze_stmt): Call vectorizable_type_demotion and
2441 vectorizable_type_promotion for basic blocks.
2442 (supportable_widening_operation): Don't assume loop vectorization.
2443 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
2444 basic blocks. Update vectorization factor for basic block
2445 vectorization.
2446 (vect_analyze_slp_instance): Allow multiple types for basic block
2447 vectorization. Recheck unrolling factor after construction of SLP
2448 instance.
2449
2450 2011-09-27 Richard Guenther <rguenther@suse.de>
2451
2452 * tree-object-size.c (compute_object_sizes): Fix dumping of
2453 folded statement.
2454
2455 2011-09-27 Richard Guenther <rguenther@suse.de>
2456
2457 PR tree-optimization/50363
2458 * tree-ssa-pre.c (create_expression_by_pieces): Handle
2459 pointer conversions in POINTER_PLUS_EXPRs properly.
2460
2461 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
2462
2463 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2464 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2465 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2466 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2467 that produce subreg moves. Define using VQX iterators.
2468
2469 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
2470
2471 * config/avr/avr.md (ashrqi3): Split alternative "n"
2472 into its remaining parts C03, C04, C05, C06, C07 and describe
2473 impact in CC by attribute "cc" appropriately.
2474 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2475 by digging RTX.
2476
2477 2011-09-27 Jakub Jelinek <jakub@redhat.com>
2478
2479 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2480 from 3 x MAX_MACHINE_MODE.
2481 (CONSTM1_RTX): Define.
2482 * emit-rtl.c (const_tiny_rtx): Change into array of
2483 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2484 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2485 CONSTM1_RTX.
2486 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2487 MODE_VECTOR_INT modes.
2488 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2489 Optimize if one operand is CONSTM1_RTX.
2490 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2491 into mask | x.
2492
2493 2011-09-26 David S. Miller <davem@davemloft.net>
2494
2495 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2496 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2497 * config/sparc/visintrin.h: Update edge and pixel-compare
2498 intrinsics to return 'long' instead of 'int'.
2499 * doc/extend.texi: Update documentation to match.
2500 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2501 flat, allow any instruction. Otherwise, when V9 allow parallels
2502 which consist only of sets to registers outside of %o0 to %o5.
2503 (sparc_vis_init_builtins): Update VIS builtin types for edge
2504 and pixel-compare.
2505
2506 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2507 is enabled, mark %gsr as global.
2508 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2509 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2510
2511 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2512 which will now define __VIS and __VIS__ when -mvis is enabled.
2513 * config/sparc/t-sparc: Likewise.
2514 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2515 and add t-sparc to tmake_file for all sparc targets.
2516 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2517 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2518
2519 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2520 builtins for VIS vector addition and subtraction.
2521 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2522 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2523 __vis_fpsub32, __vis_fpsub32s): New.
2524 * doc/extend.texi: Document new VIS intrinsics.
2525
2526 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
2527
2528 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2529 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2530 EQ/NE comparisons against +/-1 in the case of unused-after,
2531 non-ld-regs target.
2532
2533 2011-09-26 Jakub Jelinek <jakub@redhat.com>
2534
2535 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2536 gctx.into_ssa after push_gimplify_context.
2537
2538 * gimple.c (gimple_build_call_valist): New function.
2539 * gimple.h (gimple_build_call_valist): New prototype.
2540 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2541 (update_gimple_call): Likewise.
2542 (update_call_from_tree): Use finish_update_gimple_call.
2543 * tree-ssa-propagate.h (update_gimple_call): New prototype.
2544
2545 2011-09-26 Richard Guenther <rguenther@suse.de>
2546
2547 PR tree-optimization/50472
2548 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2549 volatile references.
2550
2551 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
2552
2553 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2554 * target.def: (addr_space_subset_p): Likewise.
2555
2556 2011-09-26 Tom de Vries <tom@codesourcery.com>
2557
2558 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2559 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2560 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2561 of new var.
2562
2563 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
2564
2565 PR target/50465
2566 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2567 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2568 output_reload_insisf.
2569 (adjust_len): Set default to "no".
2570 Remove alternative "yes". Add alternatives: "mov8", "mov16",
2571 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2572 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2573 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2574 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2575 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2576 *lshrsi3_const): Set attribute "adjust_len".
2577 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2578 (output_movsisf): Don't pass insn to output_reload_insisf.
2579 (adjust_insn_length): Handle new alternatives to adjust_len.
2580 Remove handling of ADJUST_LEN_YES. Clean-up code.
2581
2582 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2583
2584 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2585 may_trap_p to detect loads that may trap of fault.
2586
2587 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
2588
2589 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2590 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2591 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
2592 prototype.
2593 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2594 * config/avr/avr.c: Rename output_reload_insisf_1 to
2595 output_reload_in_const.
2596 (avr_popcount_each_byte): Handle SFmode, too.
2597 (output_reload_in_const): Change so it can handle HI loads, too.
2598 Use avr_popcount_each_byte to work out if scratch register must be
2599 created on the fly.
2600 (output_reload_inhi): Rewrite using output_reload_in_const and...
2601 (output_movhi): ...use it to print constants' loads.
2602 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2603
2604 2011-09-25 David S. Miller <davem@davemloft.net>
2605
2606 * config/sparc/constraints.md (C, P, Z): New constraints for
2607 const_doube, const_int, and const_vector "all ones" values.
2608 Make unused constraint letters comment match reality.
2609 * config/sparc/predicates.md (const_all_ones_operand,
2610 register_or_zero_or_all_ones_operand): New predicates.
2611 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2612 as well as zero constants when VIS.
2613 (sparc_legitimate_constant_p): Likewise.
2614 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2615 (movsf_insn): Likewise
2616 (movdi_insn_sp64): Add fone alternative.
2617 (movdf_insn_sp32_v9): Likewise.
2618 (movdf_insn_sp64): Likewise.
2619
2620 * configure.ac: Add feature check to make sure the assembler
2621 supports the FMAF, HPC, and VIS 3.0 instructions found on
2622 Niagara-3 and later cpus.
2623 * configure: Rebuild.
2624 * config.in: Likewise.
2625 * config/sparc/sparc.opt: New option '-mfmaf'.
2626 * config/sparc/sparc.md: Add float fused multiply-add patterns.
2627 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2628 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
2629 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
2630 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
2631 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
2632 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
2633 disabled.
2634 (sparc_rtx_costs): Handle 'FMA'.
2635 * doc/invoke.texi: Document -mfmaf.
2636
2637 2011-09-25 Jakub Jelinek <jakub@redhat.com>
2638
2639 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
2640 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
2641 DECL_BY_REFERENCE parameters.
2642
2643 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2644
2645 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
2646 if there is no outgoing edge.
2647
2648 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
2649 integral types.
2650
2651 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
2652
2653 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
2654 of vect_analyze_bb here.
2655 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
2656
2657 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
2658
2659 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
2660 Allow not simple iv if analyzing basic block.
2661 (create_data_ref): Update call to dr_analyze_innermost.
2662 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
2663 * tree-loop-distribution.c (generate_memset_zero): Likewise.
2664 * tree-predcom.c (find_looparound_phi): Likewise.
2665 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
2666
2667 2011-09-24 David S. Miller <davem@davemloft.net>
2668
2669 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
2670 (SPARC_GSR_REG): Define.
2671 (FIXED_REGISTERS): Mark GSR as fixed.
2672 (CALL_USED_REGISTERS): Mark GSR as call used.
2673 (HARD_REGNO_NREGS): GSR is always 1 register.
2674 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
2675 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
2676 (REGISTER_NAMES): Add "%gsr".
2677 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
2678 (UNSPEC_WRGSR): New unspec.
2679 (GSR_REG): New constant.
2680 (type): Add new insn type 'gsr'.
2681 (fpack16_vis, fpackfix_vis, fpack32_vis,
2682 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
2683 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
2684 rdgsr_v8plus): New expanders and insns.
2685 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
2686 using patterns which show that this is a plus in addition to a
2687 modification of GSR_REG, instead of an unspec.
2688 * config/sparc/ultra1_2.md: Handle 'gsr'.
2689 * config/sparc/ultra3.md: Likewise.
2690 * config/sparc/niagara.md: Likewise.
2691 * config/sparc/niagara2.md: Likewise.
2692 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
2693 end of table.
2694 (sparc_option_override): Make -mvis imply -mv8plus.
2695 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
2696 for %gsr.
2697 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
2698 __builtin_vis_read_gsr.
2699 (sparc_expand_buildin): Handle builtins that take one argument and
2700 return void.
2701 (sparc_fold_builtin): Never fold writes to %gsr.
2702 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
2703 * doc/extend.texi: Document new VIS intrinsics.
2704
2705 2011-09-23 Jan Hubicka <jh@suse.cz>
2706
2707 * ipa-inline-transform.c (inline_call): Add comment.
2708 * ipa-inline.h (inline_param_summary): New structure and vector.
2709 (struct inline_edge_summary): Add param field.
2710 * ipa-inline-analysis.c (CHANGED): New constant.
2711 (add_clause): Handle CHANGED and NOT_CONSTANT.
2712 (predicate_probability): New function.
2713 (dump_condition): Dump CHANGED predicate.
2714 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
2715 of unknown function wide invariant.
2716 (evaluate_conditions_for_edge): Handle change probabilities.
2717 (inline_edge_duplication_hook): Copy param summaries.
2718 (inline_edge_removal_hook): Free param summaries.
2719 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
2720 sizes; dump param summaries.
2721 (will_be_nonconstant_predicate): Use CHANGED predicate.
2722 (record_modified_bb_info): New structure.
2723 (record_modified): New function.
2724 (param_change_prob): New function.
2725 (estimate_function_body_sizes): Compute param summaries.
2726 (estimate_edge_size_and_time): Add probability argument.
2727 (estimate_node_size_and_time): Add inline_param_summary argument;
2728 handle predicate probabilities.
2729 (remap_predicate): Fix formating.
2730 (remap_edge_change_prob): New function.
2731 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
2732 (remap_edge_predicates): ... this one.
2733 (inline_merge_summary): Remap edge summaries; handle predicate
2734 probabilities; remove param summaries after we are done.
2735 (do_estimate_edge_time): Update.
2736 (do_estimate_edge_growth): Update.
2737 (read_inline_edge_summary): Read param info.
2738 (inline_read_summary): Fix formating.
2739 (write_inline_edge_summary): Write param summaries.
2740
2741 2011-09-23 Jakub Jelinek <jakub@redhat.com>
2742
2743 * config/i386/i386.c (ix86_print_operand): Handle %~.
2744 (ix86_print_operand_punct_valid_p): Return true also for '~'.
2745 * config/i386/sse.md (i128): New mode_attr.
2746 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
2747 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
2748 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
2749 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
2750 patterns, use "<sseinsnmode>" for "mode" attribute.
2751 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
2752 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
2753 %~128 in the patterns, use "OI" for "mode" attribute.
2754
2755 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
2756
2757 PR target/50447
2758 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
2759 "tstsi", "compare".
2760 (*cmpqi_sign_extend): Use s8_operand.
2761 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
2762 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
2763 prototypes.
2764 (out_tsthi, out_tstsi): Remove prototypes.
2765 (avr_out_tsthi, avr_out_tstsi): New prototypes.
2766 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
2767 (avr_asm_len): Negative length now sets *plen to -length.
2768 (compare_sign_p): Return bool instead of int.
2769 (compare_diff_p, compare_eq_p): Ditto and make static.
2770 (avr_out_tsthi): New function.
2771 (avr_out_tstsi): New function.
2772 (avr_out_compare): New function.
2773 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
2774 ADJUST_LEN_COMPARE.
2775
2776 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
2777
2778 PR target/50447
2779 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
2780 (addsi3): Rewrite using QI scratch register. Adjust text
2781 peepholes using plus:SI.
2782 (*addsi3_zero_extend.hi): New insn.
2783 (*subsi3_zero_extend.hi): New insn.
2784 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
2785 (*subsi3_zero_extend): Ditto.
2786 (subsi3): Change predicate #2 to register_operand.
2787 * config/avr/avr-protos.h (avr_out_plus): New prototype.
2788 (avr_out_plus_1): New static function.
2789 (avr_out_plus): New function.
2790 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
2791
2792 2011-09-23 Jakub Jelinek <jakub@redhat.com>
2793
2794 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
2795 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
2796
2797 2011-09-23 Ian Lance Taylor <iant@google.com>
2798
2799 * godump.c (go_define): Treat a single character in single quotes,
2800 or a string, as an operand.
2801
2802 2011-09-23 Martin Jambor <mjambor@suse.cz>
2803
2804 * ipa-prop.h (jump_func_type): Updated comments.
2805 (ipa_known_type_data): New type.
2806 (ipa_jump_func): Use it to describe known type jump functions.
2807 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
2808 reflect the new known type jump function contents.
2809 (compute_known_type_jump_func): Likewise.
2810 (combine_known_type_and_ancestor_jfs): Likewise.
2811 (try_make_edge_direct_virtual_call): Likewise.
2812 (ipa_write_jump_function): Likewise.
2813 (ipa_read_jump_function): Likewise.
2814 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
2815 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
2816 (propagate_accross_jump_function): Likewise.
2817
2818 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
2819
2820 PR target/50446
2821 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
2822 (rotlqi3_4): Turn insn into expander.
2823 (*rotlqi3): New insn.
2824 (rotlhi3, rotlsi3): Support rotate left/right by 1.
2825 (*rotlhi2.1, *rotlhi2.15): New insns.
2826 (*rotlsi2.1, *rotlsi2.31): New insns.
2827 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
2828
2829 2011-09-23 Bin Cheng <bin.cheng@arm.com>
2830
2831 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
2832
2833 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2834
2835 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
2836
2837 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2838
2839 * reload.c (find_reloads): Set operand_mode to Pmode for address
2840 operands consisting of just a CONST_INT.
2841
2842 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
2843
2844 PR target/50482
2845 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2846 blendv, force op_true to register if it doesn't satisfy
2847 nonimmediate_operand predicate.
2848
2849 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
2850
2851 PR middle-end/50113
2852 PR middle-end/50061
2853 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
2854 get the locate.where_pad value for register-only arguments.
2855 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
2856 (arm_pad_reg_upward): Handle null types.
2857
2858 2011-09-22 Jan Hubicka <jh@suse.cz>
2859
2860 * ipa-inline-analysis.c: Fix overly long lines.
2861
2862 2011-09-22 Jan Hubicka <jh@suse.cz>
2863
2864 * ipa-inline-transform.c (inline_call): Always update jump functions
2865 after inlining.
2866 * ipa-inline.c (ipa_inline): Likewise; do not call
2867 ipa_create_all_structures_for_iinln.
2868 (ipa_inline): Always free jump functions.
2869 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
2870 (remap_edge_predicates): Fix pasto.
2871 (inline_merge_summary): Remove nlined edge predicate; remove hack.
2872 (inline_analyze_function): Always initialize jump functions.
2873 (inline_generate_summary): Likewise.
2874 (inline_write_summary): Always write jump functions when ipa-cp
2875 is not doing that.
2876 (inline_read_summary): Always read jump functions when ipa-cp
2877 is not doing that.
2878 * ipa-prop.c (iinlining_processed_edges): Remove.
2879 (update_indirect_edges_after_inlining): Do not use
2880 iinlining_processed_edges; instead set param_index to -1.
2881 (propagate_info_to_inlined_callees): Only try to indirect inlining
2882 when asked to do so; update jump functions of indirect calls, too;
2883 remove jump functions of the inlined edge.
2884 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
2885 (ipa_create_all_structures_for_iinln): Remove.
2886 (ipa_free_all_structures_after_iinln): Do not free
2887 iinlining_processed_edges.
2888 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
2889
2890 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
2891
2892 * config/arm/predicates.md (expandable_comparison_operator): New
2893 predicate, extracted from...
2894 (arm_comparison_operator): ...here.
2895 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
2896 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
2897 (movdfcc): Use expandable_comparison_operator.
2898
2899 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
2900
2901 PR target/50447
2902 PR target/50465
2903 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
2904 (avr_popcount_each_byte): New prototype.
2905 * config/avr/avr.c (avr_popcount): New static function.
2906 (avr_popcount_each_byte): New function.
2907 (avr_out_bitop): New function.
2908 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
2909 avr_out_bitop. Cleanup code.
2910 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
2911 (Ca4, Co4, Cx4): New constraints.
2912 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
2913 alternative.
2914 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
2915 (andsi3, iorsi3, xorsi3): Ditto.
2916 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
2917
2918 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
2919
2920 PR tree-optimization/50451
2921 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
2922 constant operands in reduction.
2923 (vect_get_slp_defs): Don't create vector operand for NULL scalar
2924 operand.
2925
2926 2011-09-22 David S. Miller <davem@davemloft.net>
2927
2928 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
2929 fpack16, fpack32, fpackfix as const.
2930
2931 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
2932 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
2933 constants. Use them everywhere.
2934
2935 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
2936
2937 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
2938 Added AND special case. Adapted comments.
2939 (sh_rtx_costs): Added XOR and IOR case.
2940
2941 2011-09-21 Jan Hubicka <jh@suse.cz>
2942
2943 * ipa-inline-analsis.c (compute_inline_parameters): Set
2944 cfun and current_function_decl.
2945
2946 2011-09-21 Jan Hubicka <jh@suse.cz>
2947
2948 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
2949 handled components in parameter of builtin_constant_p.
2950 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
2951
2952 2011-09-21 Jan Hubicka <jh@suse.cz>
2953
2954 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
2955 * ipa-inline.h (estimate_edge_time): Fix pasto.
2956 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
2957
2958 2011-09-21 Jakub Jelinek <jakub@redhat.com>
2959
2960 * config/i386/i386.c (ix86_expand_sse_movcc): Use
2961 blendvps, blendvpd and pblendvb if possible.
2962
2963 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
2964
2965 PR target/50464
2966 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
2967 operand 1 predicate to register_operand and operand 2 predicate
2968 to nonimmediate_operand.
2969 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
2970 xop_pcmov, force op_true to register. Also, force op_false to
2971 register if it doesn't satisfy nonimmediate_operand predicate.
2972
2973 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
2974
2975 * config/i386/bmi2intrin.h (_mulx_u64): New.
2976 (_mulx_u32): Ditto.
2977
2978 2011-09-21 Jan Hubicka <jh@suse.cz>
2979
2980 PR tree-optimization/50433
2981 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
2982 Use get_base_address.
2983
2984 2011-09-21 Jakub Jelinek <jakub@redhat.com>
2985
2986 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
2987 nonimmediate_operand instead of register_operand predicate for operands
2988 1 and 2, force them into registers if expanding them as comparison.
2989 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
2990 V8HImode force into register just operand 1.
2991
2992 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
2993
2994 PR target/45099
2995 * config/avr/avr.c (avr_function_arg_advance): Change error to
2996 warning if a fixed register is needed as function argument.
2997
2998 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
2999
3000 PR target/50449
3001 PR target/50465
3002 * config/avr/avr.md (adjust_len): New insn attribute.
3003 (*reload_insi, *reload_insf): Use it.
3004 (*movsi, *movsf): Use new interface of output_movsisf.
3005 * config/avr/avr-protos.h (output_movsisf): Change prototype.
3006 * config/avr/avr.c (output_movsisf): Ditto.
3007 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3008 lengths of insns *reload_insi, *reload_insf.
3009 (output_reload_insisf_1): New static function.
3010 (output_reload_insisf): Use it.
3011
3012 2011-09-21 David S. Miller <davem@davemloft.net>
3013
3014 * config/sparc/sparc.c (def_builtin): Change from macro into function.
3015 (def_builtin_const): New.
3016 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3017 other than alignaddr and falignaddr.
3018
3019 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3020 UNSPEC_FCMPEQ): New unspec codes.
3021 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3022 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3023 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3024 new pixel compare VIS patterns.
3025 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3026 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3027 __vis_fcmpeq16, __vis_fcmpeq32): New.
3028 * doc/extend.texi: Document new pixel compare VIS intrinsics.
3029
3030 2011-09-21 Tom de Vries <tom@codesourcery.com>
3031
3032 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3033
3034 2011-09-20 David S. Miller <davem@davemloft.net>
3035
3036 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3037 (aligneddrl<P:mode>_vis): New pattern.
3038 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3039 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3040 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3041 alignaddrl insn, and adjust edge operations for updated types.
3042 * config/sparc/visintrin.h: Likewise.
3043 * doc/extend.texi: Make typing in VIS documentation match reality.
3044
3045 2011-09-20 Terry Guo <terry.guo@arm.com>
3046
3047 * config/arm/arm-arches.def: Add armv6s-m.
3048 * config/arm/arm-tables.opt: Regenerate.
3049
3050 2011-09-20 Wei Guozhi <carrot@google.com>
3051
3052 PR rtl-optimization/49452
3053 * postreload.c (reload_combine): Invalidate use information when across
3054 volatile insn.
3055
3056 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3057
3058 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3059 Remove maintenance overhead.
3060 (haifa_sched_init, sched_finish): Update.
3061
3062 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
3063
3064 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3065 to calculate unit, prefix_rep and prefix_data16 attributes.
3066 (*mov<mode>_internal): Ditto for unit attribute.
3067 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3068 (*movv2sf_internal): Ditto.
3069 * config/i386/sse.md (VI1248_256): Remove mode iterator.
3070 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3071 (*avx2_eq<mode>3): Ditto.
3072 (avx2_gt<mode>3): Ditto.
3073
3074 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
3075
3076 * config/i386/i386.md (maxmin): New code iterator.
3077 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3078 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3079 code iterator.
3080 (*avx2_<maxmin:code><mode>3): Macroize isn from
3081 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3082 maxmin code iterator.
3083 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3084 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3085 <umaxmin:code>v16qi3.
3086
3087 2011-09-19 Alan Modra <amodra@gmail.com>
3088 Michael Meissner <meissner@linux.vnet.ibm.com>
3089
3090 PR target/50341
3091 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3092 split the load of the indirect function's TOC from the call to
3093 prevent the compiler from moving the load of the new TOC above
3094 code that references the current function's TOC.
3095 (call_indirect_aix<ptrsize>_internal): Ditto.
3096 (call_indirect_aix<ptrsize>_nor11): Ditto.
3097 (call_indirect_aix<ptrsize>_internal2): Ditto.
3098 (call_value_indirect_aix<ptrsize>): Ditto.
3099 (call_value_indirect_aix<ptrsize>_internal): Ditto.
3100 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3101 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3102
3103 2011-09-19 Jakub Jelinek <jakub@redhat.com>
3104
3105 * config/i386/sse.md (*sse4_1_extractps): Change into
3106 define_insn_and_split, add =x 0 n and =x x n alternatives
3107 and split them after reload.
3108
3109 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3110
3111 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3112
3113 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3114
3115 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3116
3117 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
3118
3119 PR tree-optimization/50413
3120 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3121 a basic block if one of its data-refs can't be analyzed.
3122
3123 2011-09-19 Paul Brook <paul@codesourcery.com>
3124
3125 * config/arm/predicates.md (shift_amount_operand): Check constant
3126 shift count is in range.
3127 (const_shift_operand): Remove.
3128
3129 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
3130 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3131
3132 PR target/50091
3133 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3134 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3135
3136 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
3137
3138 * config/i386/bmiintrin.h: Remove tmp.
3139 * config/i386/tbmintrin.h: Likewise.
3140
3141 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3142
3143 PR tree-optimization/50414
3144 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3145 MIN_EXPR.
3146
3147 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3148
3149 PR tree-optimization/50412
3150 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3151 acceses that require epilogue loop if vectorizing outer loop.
3152
3153 2011-09-17 David S. Miller <davem@davemloft.net>
3154
3155 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3156 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3157 New unspecs.
3158 (define_attr type): New type 'edge'.
3159 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3160 edge32l_vis): New patterns.
3161 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3162 * config/sparc/ultra3.md: Likewise.
3163 * config/sparc/niagara.md: Likewise.
3164 * config/sparc/niagara2.md: Likewise.
3165 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3166 builtins for VIS edge instructions.
3167 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3168 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3169 intrinsics.
3170 (__v8qi, __v4qi): Make unsigned.
3171 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3172 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3173 __vis_fpack32): Fix types.
3174 * doc/extend.texi: Document new 'edge' VIS intrinsics.
3175
3176 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3177 divide costs.
3178 (niagara3_costs): New.
3179 (sparc_option_override): Use it.
3180 * gcc/config/sparc/niagara2.md: Adjust with more accurate
3181 Niagara-3 reservations.
3182
3183 2011-09-17 Jakub Jelinek <jakub@redhat.com>
3184
3185 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3186 (sse2_avx, sseinsnmode): Add V2TI.
3187 (REDUC_SMINMAX_MODE): New mode iterator.
3188 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3189 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3190 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3191 (sse2_lshrv1ti3): Rename to...
3192 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
3193 iterator. Move before umaxmin expanders.
3194 * config/i386/i386.h (VALID_AVX256_REG_MODE,
3195 SSE_REG_MODE_P): Accept V2TImode.
3196 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3197 V16HImode, V8SImode and V4DImode.
3198
3199 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3200 and V4DImode.
3201 (ix86_build_signbit_mask): Likewise.
3202 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
3203 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3204 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3205 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3206 (<code><mode>3) ... this.
3207 (avx2_<code><mode>3 smaxmin expand): Rename to...
3208 (<code><mode>3) ... this.
3209 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3210 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3211 VI8_AVX2 mode iterator.
3212 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3213 VI8_AVX2 mode iterator.
3214 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3215 New expanders.
3216
3217 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
3218
3219 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3220 throughout file.
3221
3222 2011-09-16 David S. Miller <davem@davemloft.net>
3223
3224 * config/sparc/visintrin.h: New file.
3225 * config.gcc: Add it to extra_headers on sparc.
3226
3227 2011-09-16 Jakub Jelinek <jakub@redhat.com>
3228
3229 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3230 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
3231 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3232 reduc_smin_v4sf): Adjust callers.
3233 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3234 New expanders.
3235
3236 * config/i386/sse.md (vec_extract_hi_<mode>,
3237 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3238 vextracti128 instead of vextractf128 for -mavx2 and
3239 integer vectors. For V4DFmode fix up mode attribute.
3240 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3241 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3242 instead of V8SF mode attribute.
3243 (avx2_extracti128): Change into define_expand.
3244 * config/i386/i386.c (ix86_expand_vector_extract): Handle
3245 32-byte vector modes if TARGET_AVX.
3246
3247 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3248
3249 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3250 (umulqi3_highpart, smulqi3_highpart): Ditto.
3251 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3252 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3253 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3254
3255 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3256
3257 PR target/50358
3258 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3259 (*maddqi4, *maddqi4.const): New insns.
3260 (*msubqi4, *msubqi4.const): New insns.
3261 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3262 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
3263 HImode by 1 in the case of multiplying with a CONST_INT.
3264 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3265
3266 2011-09-15 Jan Hubicka <jh@suse.cz>
3267
3268 PR lto/50430
3269 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3270 error_mark_node in the DECL_INITIAL of vtable.
3271
3272 2011-09-15 Diego Novillo <dnovillo@google.com>
3273
3274 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3275 @SYSROOT_CFLAGS_FOR_TARGET@.
3276 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3277 * configure: Regenerate.
3278 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3279 Remove setting of GCC_UNDER_TEST.
3280
3281 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
3282
3283 * config/i386/i386.c (output_fp_compare): Return %v prefixed
3284 instruction mnemonics for TARGET_AVX.
3285
3286 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3287 "type" attribute calculation.
3288 (*movdf_internal): Ditto.
3289 (*movsf_internal): Ditto.
3290
3291 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
3292
3293 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3294
3295 2011-09-15 Jason Merrill <jason@redhat.com>
3296
3297 PR c++/50361
3298 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3299
3300 2011-09-15 Jan Hubicka <jh@suse.cz>
3301
3302 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3303 simplify obviously true clauses.
3304 (and_predicates, or_predicates): Add conditions parameter.
3305 (inline_duplication_hoook): Update.
3306 (mark_modified): New function.
3307 (unmodified_parm): New function.
3308 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3309 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3310 Use unmodified_parm.
3311 (estimate_function_body_sizes): Update.
3312 (remap_predicate): Update.
3313
3314 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
3315
3316 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3317 read-after-read dependencies in basic block SLP.
3318
3319 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3320
3321 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3322 throughout file.
3323
3324 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3325
3326 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3327 throughout file.
3328
3329 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3330
3331 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3332 throughout file.
3333
3334 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3335
3336 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3337 throughout file.
3338 * config/rs6000/constraints.md: Likewise.
3339
3340 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3341
3342 * config/microblaze/microblaze.md: Use match_test rather than
3343 eq/ne symbol_ref throughout file.
3344
3345 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3346
3347 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3348 throughout file.
3349
3350 2011-09-14 Tom de Vries <tom@codesourcery.com>
3351
3352 PR middle-end/50251
3353 * explow.c (emit_stack_restore): Set crtl->need_drap if
3354 stack_restore is emitted.
3355
3356 2011-09-14 Julian Brown <julian@codesourcery.com>
3357
3358 * config/arm/arm.c (arm_override_options): Add unaligned_access
3359 support.
3360 (arm_file_start): Emit attribute for unaligned access as appropriate.
3361 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3362 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3363 (insv, extzv): Add unaligned-access support.
3364 (extv): Change to expander. Likewise.
3365 (extzv_t1, extv_regsi): Add helpers.
3366 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3367 (unaligned_storesi, unaligned_storehi): New.
3368 (*extv_reg): New (previous extv implementation).
3369 * config/arm/arm.opt (munaligned_access): Add option.
3370 * config/arm/constraints.md (Uw): New constraint.
3371 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3372 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3373 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3374 volatile accesses when -fstrict-volatile-bitfields is in effect.
3375 (extract_bit_field_1): Likewise.
3376
3377 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
3378
3379 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3380 a scalar integer before applying integer-only optimisations to
3381 inner arithmetic.
3382
3383 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
3384
3385 * config/mips/mips.c (mips_expand_epilogue): Generate a
3386 simple_return only if the return address is in r31.
3387
3388 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
3389
3390 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3391 NULL for a jump that is a cc0 insn, pick the previous insn for
3392 move_before.
3393
3394 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3395
3396 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3397 throughout file.
3398
3399 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3400
3401 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3402 throughout file.
3403
3404 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3405
3406 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3407 symbol_ref throughout file.
3408
3409 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3410
3411 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3412 throughout file.
3413
3414 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3415
3416 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3417 throughout file.
3418
3419 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3420
3421 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3422 throughout file.
3423 * config/arm/neon.md: Likewise.
3424 * config/arm/vfp.md: Likewise.
3425 * config/arm/thumb2.md: Likewise.
3426 * config/arm/cortex-m4.md: Likewise.
3427
3428 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3429
3430 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3431 define_insn patterns for combine.
3432
3433 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
3434
3435 * reorg.c: Always define make_return_insns.
3436
3437 2011-09-13 Jan Hubicka <jh@suse.cz>
3438
3439 PR other/49533
3440 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3441
3442 2011-09-13 Jan Hubicka <jh@suse.cz>
3443
3444 PR other/49533
3445 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
3446
3447 2011-09-13 Paul Brook <paul@codesourcery.com>
3448
3449 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3450 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3451 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3452 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3453 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3454 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3455 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3456 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3457 enabling unwind tables.
3458 (c6x_debug_unwind_info): New function.
3459 (TARGET_ARM_EABI_UNWINDER): Define.
3460 (TARGET_DEBUG_UNWIND_INFO): Define.
3461 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3462 (TARGET_EXTRA_CFI_SECTION): Remove.
3463 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3464 * ginclude/unwind-arm-common.h: New file.
3465
3466 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
3467
3468 PR target/50358
3469 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3470 * config/avr/avr.md: (extend_s): New code attribute.
3471 (mul_r_d): New code attribute.
3472 (*maddqihi4, *umaddqihi4): New insns.
3473 (*msubqihi4, *umsubqihi4): New insns.
3474 (*usmaddqihi4, *sumaddqihi4): New insns.
3475 (*usmsubqihi4, *susubdqihi4): New insns.
3476 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3477 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3478 (*umsubqihi4.uconst.ashift): New insn-and-split.
3479 (*msubqihi4.sconst.ashift): New insn-and-split.
3480 (*sumaddqihi4.uconst): New insn-and-split.
3481 (*sumsubqihi4.uconst): New insn-and-split.
3482 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3483 PLUS:HI and MINUS:HI.
3484
3485 2011-09-13 Revital Eres <revital.eres@linaro.org>
3486
3487 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3488 (optimize_sc): Adjust call to remove_node_from_ps.
3489 (sms_schedule): Add print info.
3490
3491 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
3492
3493 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3494 flags specially.
3495
3496 2011-09-12 Jakub Jelinek <jakub@redhat.com>
3497
3498 PR bootstrap/50010
3499 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3500 NOTE_INSN_CFI notes, with the exception of
3501 NOTE_INSN_SWITCH_TEXT_SECTIONS.
3502
3503 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
3504 Richard Sandiford <rdsandiford@googlemail.com>
3505
3506 * config/mips/mips.c (mips_epilogue): New structure.
3507 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3508 restoring registers.
3509 (mips_epilogue_emit_cfa_restores): New function.
3510 (mips_epilogue_set_cfa): Likewise.
3511 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
3512 the current CFA register from the stack, redefine the CFA in terms
3513 of the stack pointer.
3514 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
3515 to the epilogue instructions.
3516
3517 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
3518
3519 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3520 argument.
3521 (mips16e_build_save_restore): Update accordingly.
3522
3523 2011-09-12 Jakub Jelinek <jakub@redhat.com>
3524
3525 PR rtl-optimization/50212
3526 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3527 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3528
3529 PR debug/50299
3530 * calls.c (load_register_parameters): Use use_reg_mode instead
3531 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3532 entry.
3533 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3534 for stack CALL_INSN_FUNCTION_USAGE uses.
3535 * expr.h (use_reg_mode): New prototype.
3536 (use_reg): Changed into inline around use_reg_mode.
3537 * expr.c (use_reg): Renamed to...
3538 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
3539 mode to that mode instead of VOIDmode.
3540 * var-tracking.c (prepare_call_arguments): Don't track parameters
3541 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3542 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
3543 EXPR_LIST mode.
3544
3545 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
3546
3547 PR target/43746
3548 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3549 (progmem_section): New Variable.
3550 (avr_asm_init_sections): Initialize it.
3551 (TARGET_ASM_SELECT_SECTION): Define to...
3552 (avr_asm_select_section): ... this new Function.
3553 (avr_replace_prefix): New Function.
3554 (avr_asm_function_rodata_section): Use it.
3555 (avr_insert_attributes): Don't add section attribute for PROGMEM.
3556 (avr_section_type_flags): Use avr_progmem_p instead of section
3557 name to detect if object is in PROGMEM.
3558 (avr_asm_named_section): Set section name prefix for objects in
3559 PROGMEM.
3560
3561 2011-09-12 Jakub Jelinek <jakub@redhat.com>
3562
3563 PR bootstrap/50352
3564 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3565 sprintf format string.
3566
3567 2011-09-12 Richard Guenther <rguenther@suse.de>
3568
3569 PR tree-optimization/50343
3570 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3571 that the reduction is over an SSA name before checking its definition.
3572
3573 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
3574
3575 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3576 throughout file.
3577
3578 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
3579
3580 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3581 throughout file.
3582 * config/mips/sb1.md: Likewise.
3583 * config/mips/predicates.md: Replace (match_test "!...")
3584 with (not (match_test "..."))
3585 * config/mips/constraints.md: Likewise.
3586
3587 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
3588
3589 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3590 * config/arm/arm-tables.opt: Regenerate.
3591 * config/arm/arm-tune.md: Regenerate.
3592 * config/arm/arm.c (arm_file_start): Output .arch directive when
3593 user passes -mcpu=generic-*.
3594 (arm_issue_rate): Add genericv7a support.
3595 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3596 (ASM_CPU_SPEC): New define.
3597 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3598 * config/arm/semi.h (ASM_SPEC): Likewise.
3599 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3600 and -mtune=generic-*.
3601
3602 2011-09-09 Richard Guenther <rguenther@suse.de>
3603
3604 PR tree-optimization/50328
3605 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3606 constant or default-def operand.
3607
3608 2011-09-09 Richard Guenther <rguenther@suse.de>
3609
3610 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3611 last statement.
3612
3613 2011-09-09 Richard Guenther <rguenther@suse.de>
3614
3615 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3616 instead of a statement.
3617 * gimple-fold.c (fold_stmt_inplace): Likewise.
3618 * sese.c (graphite_copy_stmts_from_block): Adjust.
3619 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3620 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3621 fold_stmt.
3622 (forward_propagate_addr_into_variable_array_index): Likewise.
3623 (forward_propagate_addr_expr_1): adjust.
3624 (associate_plusminus): Likewise.
3625 (ssa_forward_propagate_and_combine): Likewise.
3626 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3627 (execute_cse_reciprocals): Likewise.
3628 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
3629
3630 2011-09-09 Nick Clifton <nickc@redhat.com>
3631
3632 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
3633 Return a positive value to indicate that the bits at the
3634 bottom of the register should be cleared.
3635
3636 2011-09-09 Richard Guenther <rguenther@suse.de>
3637
3638 * tree-ssa-operands.c (swap_tree_operands): Always adjust
3639 existing operand positions.
3640
3641 2011-09-09 Richard Guenther <rguenther@suse.de>
3642
3643 PR middle-end/50333
3644 * tree-data-ref.c (split_constant_offset): Do not try to handle
3645 ternary ops.
3646
3647 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
3648
3649 PR tree-optimization/50318
3650 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
3651 typo in use of mult_rhs1 and mult_rhs2.
3652
3653 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
3654
3655 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
3656 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
3657
3658 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
3659
3660 * config/arm/arm.md (push_multi): Emit predicates.
3661 (push_fp_multi): Likewise.
3662 * config/arm/arm.c (vfp_output_fstmd): Likewise.
3663
3664 2011-09-08 Dodji Seketeli <dodji@redhat.com>
3665
3666 PR c++/33255 - Support -Wunused-local-typedefs warning
3667 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
3668 (pushdecl): Use the new record_locally_defined_typedef.
3669 (store_parm_decls): Allocate cfun->language.
3670 (finish_function): Use the new maybe_warn_unused_local_typedefs,
3671 and free cfun->language.
3672 (c_push_function_context): Allocate cfun->language here only if needed.
3673 (c_pop_function_context): Likewise, mark cfun->language
3674 for collection only when it should be done.
3675 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
3676 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
3677 maybe_record_local_typedef_use.
3678 * doc/invoke.texi: Update documentation for
3679 -Wunused-local-typedefs.
3680
3681 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
3682
3683 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
3684 (ix86_avoid_lea_for_add): Likewise.
3685 (ix86_avoid_lea_for_addr): Likewise.
3686 (ix86_split_lea_for_addr): Likewise.
3687
3688 * config/i386/i386.c (LEA_MAX_STALL): New.
3689 (increase_distance): Likewise.
3690 (insn_defines_reg): Likewise.
3691 (insn_uses_reg_mem): Likewise.
3692 (distance_non_agu_define_in_bb): Likewise.
3693 (distance_agu_use_in_bb): Likewise.
3694 (ix86_lea_outperforms): Likewise.
3695 (ix86_ok_to_clobber_flags): Likewise.
3696 (ix86_avoid_lea_for_add): Likewise.
3697 (ix86_avoid_lea_for_addr): Likewise.
3698 (ix86_split_lea_for_addr): Likewise.
3699 (distance_non_agu_define): Search in pred BBs added.
3700 (distance_agu_use): Search in succ BBs added.
3701 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
3702 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
3703 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
3704
3705 * config/i386/i386.md: Split added to transform non destructive
3706 add into move and add.
3707 (lea_1): transformed into insn_and_split to avoid AGU stalls.
3708 (lea<mode>_2): Likewise.
3709
3710 2011-09-08 Martin Jambor <mjambor@suse.cz>
3711
3712 PR tree-optimization/50287
3713 * ipa-split.c (split_function): Do not create SSA names for
3714 non-gimple-registers.
3715
3716 2011-09-08 Richard Guenther <rguenther@suse.de>
3717
3718 PR tree-optimization/19831
3719 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
3720 skip builtins with vdefs that do not really store something.
3721 (propagate_necessity): For calls to free that we can associate
3722 with an allocation function do not mark the freed pointer
3723 definition necessary.
3724 (eliminate_unnecessary_stmts): Remove a call to free if
3725 the associated call to an allocation function is not necessary.
3726
3727 2011-09-08 Richard Guenther <rguenther@suse.de>
3728
3729 PR tree-optimization/19831
3730 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
3731 allocation functions as necessary.
3732
3733 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
3734
3735 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
3736 cut from ...
3737 (darwin_default_min_version): Amended to provide defaults
3738 for the cross directory case.
3739 (darwin_driver_init): call darwin_default_min_version unconditionally.
3740 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
3741 * config/darwin9.h: Likewise.
3742 * config/darwin10.h: Likewise.
3743 * config/rs6000/darwin7.h: Likewise.
3744
3745 2011-09-08 Jakub Jelinek <jakub@redhat.com>
3746
3747 PR target/50310
3748 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
3749 code early if TARGET_AVX.
3750 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
3751
3752 2011-09-07 Jakub Jelinek <jakub@redhat.com>
3753
3754 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
3755 duplicates.
3756
3757 PR target/50310
3758 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
3759 "mode" attribute computation.
3760
3761 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
3762
3763 * regrename.c (struct du_head): Make nregs signed.
3764 (closed_chains): Remove.
3765 (create_new_chain): Return the new chain.
3766 (chain_from_id): New static function.
3767 (dump_def_use_chain): Change argument to be an int, indicating
3768 the first ID to print. All callers changed.
3769 (merge_overlapping_regs): Use chain_from_id. Assert that
3770 chains don't conflict with themselves.
3771 (rename_chains): Take no argument. Iterate over id_to_chain
3772 rather to find chains to rename. Clear tick before the main loop.
3773 (struct incoming_reg_info): New struct.
3774 (struct bb_rename_info): New struct.
3775 (init_rename_info, set_incoming_from_chain, merge_chains): New
3776 static functions.
3777 (regrename_analyze): New static function, broken out of
3778 regrename_optimize. Record and make use of open chain information
3779 at basic block boundaries, and merge chains where possible.
3780 (scan_rtx_reg): Make this_nregs signed. Don't update
3781 closed_chains.
3782 (build_def_use): Return a bool to indicate success. All callers
3783 changed. Don't initialize global data here.
3784 (regrename_optimize): Move most code out of here into
3785 regrename_analyze.
3786 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
3787 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
3788 static inline functions.
3789 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
3790
3791 * bb-reorder.c (insert_section_boundary_note): Don't check
3792 optimize_function_for_speed_p.
3793 (gate_handle_partition_blocks): Do it here instead.
3794 (gate_handle_reorder_blocks): Move preliminary checks here ...
3795 (rest_of_handle_reorder_blocks): ... from here.
3796
3797 2011-09-07 Martin Jambor <mjambor@suse.cz>
3798
3799 PR middle-end/50301
3800 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
3801 function index bounds.
3802 (perhaps_add_new_callers): Likewise.
3803
3804 2011-09-07 Martin Jambor <mjambor@suse.cz>
3805
3806 PR tree-optimization/49911
3807 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
3808 enumerations to the corresponding plain integer type.
3809
3810 2011-09-07 Richard Guenther <rguenther@suse.de>
3811
3812 PR tree-optimization/50319
3813 * tree-if-conv.c (set_bb_predicate): Assert we only set
3814 canonical predicates.
3815 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
3816 around canonical predicates.
3817 (predicate_bbs): Do not re-gimplify already canonical
3818 predicates. Properly unshare them though.
3819 (find_phi_replacement_condition): Simplify.
3820
3821 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
3822
3823 PR target/49030
3824 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
3825 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
3826 reusing the old code from get_arm_condition_code. Return ARM_NV
3827 for invalid comparison codes.
3828 (get_arm_condition_code): Redefine in terms of
3829 maybe_get_arm_condition_code.
3830 * config/arm/predicates.md (arm_comparison_operator): Use
3831 maybe_get_arm_condition_code.
3832
3833 2011-09-07 Richard Guenther <rguenther@suse.de>
3834
3835 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
3836 Canonicalize negated predicates by swapping edges.
3837 (forward_propagate_into_cond): Likewise.
3838
3839 2011-09-07 Richard Guenther <rguenther@suse.de>
3840
3841 PR tree-optimization/50213
3842 * tree-flow.h (simple_iv_increment_p): Declare.
3843 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
3844 POINTER_PLUS_EXPR.
3845 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
3846 not propagate simple IV counter increments.
3847
3848 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
3849 Iain Sandoe <iains@gcc.gnu.org>
3850
3851 * config/rs6000/rs6000.c (compute_save_world_info): Test
3852 cfun->has_nonlocal_label to determine if the out-of-line save
3853 world call may be used.
3854
3855 2011-09-07 Nick Clifton <nickc@redhat.com>
3856
3857 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
3858 label on the parallel part of the insn.
3859
3860 2011-09-07 Jakub Jelinek <jakub@redhat.com>
3861
3862 PR debug/50191
3863 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
3864 avoid_constant_pool_reference first instead of last.
3865
3866 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3867
3868 * doc/configfiles.texi (Configuration Files): Update documentation
3869 about tm_p.h and remove FIXME comment.
3870
3871 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
3872
3873 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
3874 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
3875
3876 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
3877
3878 * config/darwin10.h Remove duplicate LIB_SPEC.
3879
3880 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
3881
3882 PR middle-end/44382
3883 * target.def (reassociation_width): New hook.
3884
3885 * doc/tm.texi.in (reassociation_width): Likewise.
3886
3887 * doc/tm.texi (reassociation_width): Likewise.
3888
3889 * doc/invoke.texi (tree-reassoc-width): New param documented.
3890
3891 * hooks.h (hook_int_uint_mode_1): New default hook.
3892
3893 * hooks.c (hook_int_uint_mode_1): Likewise.
3894
3895 * config/i386/i386.h (ix86_tune_indices): Add
3896 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3897
3898 (TARGET_REASSOC_INT_TO_PARALLEL): New.
3899 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
3900
3901 * config/i386/i386.c (initial_ix86_tune_features): Add
3902 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
3903
3904 (ix86_reassociation_width): New function.
3905
3906 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
3907
3908 * tree-ssa-reassoc.c (get_required_cycles): New function.
3909 (get_reassociation_width): Likewise.
3910 (swap_ops_for_binary_stmt): Likewise.
3911 (rewrite_expr_tree_parallel): Likewise.
3912
3913 (rewrite_expr_tree): Refactored. Part of code moved into
3914 swap_ops_for_binary_stmt.
3915
3916 (reassociate_bb): Now checks reassociation width to be used and
3917 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
3918
3919 2011-09-06 Richard Guenther <rguenther@suse.de>
3920
3921 PR tree-optimization/47025
3922 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
3923 uses nothing.
3924 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
3925 BUILT_IN_FREE.
3926 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
3927 definitely points to.
3928 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3929 BUILT_IN_VA_START doesn't let its va_list argument escape.
3930 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
3931 not make any previous stores necessary.
3932
3933 2011-09-06 Martin Jambor <mjambor@suse.cz>
3934
3935 * ipa-inline.h (struct inline_summary): Move versionable flag...
3936 * cgraph.h (struct cgraph_local_info): ...here
3937 * ipa-cp.c (determine_versionability): Use the new versionable flag.
3938 (determine_versionability): Likewise.
3939 (ipcp_versionable_function_p): Likewise.
3940 (ipcp_generate_summary): Likewise.
3941 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
3942 versionable flag.
3943 (compute_inline_parameters): Do not clear the versionable flag.
3944 (inline_read_section): Do not stream the versionable flag.
3945 (inline_write_summary): Likewise.
3946 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
3947 (input_overwrite_node): Likewise.
3948
3949 2011-09-06 Richard Guenther <rguenther@suse.de>
3950
3951 PR tree-optimization/48149
3952 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
3953 (vn_valueize): Move earlier.
3954 (valueize_expr): Use vn_valueize.
3955 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
3956 operands.
3957 (simplify_unary_expression): Simplify.
3958
3959 2011-09-06 Richard Guenther <rguenther@suse.de>
3960
3961 PR tree-optimization/48317
3962 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
3963 trailing array.
3964 (sizeof_vn_nary_op): New inline function.
3965 (vn_nary_op_lookup_pieces): Adjust.
3966 (vn_nary_op_insert_pieces): Likewise.
3967 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
3968 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
3969 any number of operands.
3970 (vn_nary_length_from_stmt): New function.
3971 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
3972 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
3973 sized temporary.
3974 (vn_nary_op_lookup): Likewise.
3975 (vn_nary_op_lookup_stmt): Likewise.
3976 (vn_nary_op_insert_into): Likewise.
3977 (vn_nary_op_insert_stmt): Likewise.
3978 (visit_use): Handle CONSTRUCTOR as nary.
3979 * tree-ssa-pre.c (phi_translate_1): Adjust.
3980 (create_expression_by_pieces): Likewise.
3981 (compute_avail): Likewise.
3982
3983 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
3984
3985 * config/arm/arm.c (arm_preferred_simd_mode): Check
3986 TARGET_NEON_VECTORIZE_DOUBLE instead of
3987 TARGET_NEON_VECTORIZE_QUAD.
3988 (arm_autovectorize_vector_sizes): Likewise.
3989 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
3990 mask of mvectorize-with-neon-double. Add RejectNegative.
3991 (mvectorize-with-neon-double): New.
3992
3993 2011-09-06 Richard Guenther <rguenther@suse.de>
3994
3995 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
3996
3997 2011-09-06 Tom de Vries <tom@codesourcery.com>
3998
3999 * recog.c (asm_labels_ok): New function.
4000 (check_asm_operands): Use asm_labels_ok.
4001
4002 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
4003
4004 PR target/49606
4005 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4006 (PMODE_INSN): New macro.
4007 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4008 (mips_got_load, mips_expand_synci_loop): Likewise.
4009 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4010 cprestore patterns.
4011 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
4012 copygp_mips16 patterns.
4013 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4014 and use_cprestore patterns.
4015 (mips_override_options): Check for incompatible -mabi and -mlong
4016 combinations.
4017 * config/mips/mips.md (unspec_got<mode>): Rename to...
4018 (unspec_got_<mode>): ...this.
4019 (copygp_mips16): Use the Pmode iterator.
4020 (potential_cprestore, cprestore, use_cprestore): Likewise.
4021 (clear_cache, indirect_jump): Use PMODE_INSN.
4022 (indirect_jump<mode>): Rename to...
4023 (indirect_jump_<mode>): ...this.
4024 (tablejump): Use PMODE_INSN.
4025 (tablejump<mode>): Rename to...
4026 (tablejump_<mode>): ...this.
4027 (exception_receiver): Handle restore_gp_si and restore_gp_di.
4028 (restore_gp): Use the Pmode iterator.
4029 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4030 PMODE_INSN.
4031
4032 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
4033
4034 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4035 Fix the type of the BIT_AND_EXPR.
4036
4037 2011-09-05 David S. Miller <davem@davemloft.net>
4038
4039 * config.host: Add driver-sparc.o and sparc/x-sparc on
4040 native sparc*-*-linux* builds.
4041 * config/sparc/driver-sparc.c: Correct Linux strings.
4042 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4043 * config/sparc/linux64.h: Likewise.
4044 * doc/invoke.texi: Document that Linux also supports
4045 -mcpu=native and -mtune=native on sparc.
4046
4047 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4048 PROCESSOR_NIAGARA4): New.
4049 * config/sparc/sparc.opt: Handle new processor types.
4050 * config/sparc/sparc.md: Add to "cpu" attribute.
4051 * config/sparc/sparc.h (TARGET_CPU_niagara3,
4052 TARGET_CPU_niagara4): New, treat as niagara2.
4053 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4054 * config/sparc/sol2.h: Likewise.
4055 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4056 * config/sparc/sparc.c (sparc_option_override): Add
4057 niagara3 and niagara4 handling.
4058 (sparc32_initialize_trampoline): Likewise.
4059 (sparc64_initialize_trampoline): Likewise.
4060 (sparc_use_sched_lookahead): Likewise.
4061 (sparc_issue_rate): Likewise.
4062 (sparc_register_move_cost): Likewise.
4063 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4064 and niagara4 as appropriate.
4065 * doc/invoke.texi: Document new processor types.
4066 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4067 and --with-tune options.
4068
4069 * config/sparc/sol2-64.h: Move ...
4070 * config/sparc/default-64.h: ... to here. Update comment.
4071 * config.gcc: Update Solaris sparc to use default-64.h, also
4072 prefix this header into the list on sparc64-*-linux.
4073 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4074 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
4075 to MASK_HARD_QUAD.
4076
4077 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4078
4079 PR target/50289
4080 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4081 that contain global register variable.
4082
4083 2011-09-05 Richard Guenther <rguenther@suse.de>
4084
4085 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4086
4087 2011-09-05 Richard Guenther <rguenther@suse.de>
4088
4089 * stor-layout.c (layout_type): Use size_binop for array size
4090 calculations.
4091
4092 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4093
4094 * config/avr/avr.h (progmem_section): Remove Declaration.
4095 * config/avr/avr.c (progmem_section): Make static and rename to
4096 progmem_swtable_section.
4097 (avr_output_addr_vec_elt): No need to switch sections.
4098 (avr_asm_init_sections): Use output_section_asm_op as section
4099 callback for progmem_swtable_section.
4100 (avr_output_progmem_section_asm_op): Remove Function.
4101 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4102 (avr_asm_function_rodata_section): New static Function.
4103 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4104 alignment 2**1 for jump tables.
4105
4106 2011-09-04 Jan Hubicka <jh@suse.cz>
4107
4108 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4109 parameter is SSA name.
4110
4111 2011-09-04 Richard Guenther <rguenther@suse.de>
4112
4113 Revert
4114 2011-08-31 Richard Guenther <rguenther@suse.de>
4115
4116 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4117 special-casing.
4118
4119 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
4120
4121 PR debug/49901
4122 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4123
4124 2011-09-04 Jakub Jelinek <jakub@redhat.com>
4125 Ira Rosen <ira.rosen@linaro.org>
4126
4127 PR tree-optimization/50208
4128 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4129 argument. Check that def_stmt is inside the loop.
4130 (vect_recog_widen_mult_pattern): Update calls to
4131 vect_handle_widen_mult_by_cons.
4132 (vect_operation_fits_smaller_type): Check that def_stmt is
4133 inside the loop.
4134
4135 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
4136
4137 * tree-vectorizer.c (vect_print_dump_info): Print line
4138 number when dumping to a file.
4139 (vectorize_loops): Add new messages to dump file.
4140
4141 2011-09-03 Martin Jambor <mjambor@suse.cz>
4142
4143 * ipa-prop.h (ipa_jump_func_t): New typedef.
4144 (struct ipa_edge_args): Removed field argument_count, field
4145 jump_functions turned into a vector.
4146 (ipa_set_cs_argument_count): Removed.
4147 (ipa_get_cs_argument_count): Updated to work on vectors.
4148 (ipa_get_ith_jump_func): Likewise.
4149 * ipa-prop.c (ipa_count_arguments): Removed.
4150 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4151 jump functions. Update caller.
4152 (compute_pass_through_member_ptrs): Likewise.
4153 (compute_cst_member_ptr_arguments): Likewise.
4154 (ipa_compute_jump_functions_for_edge): Get number of arguments from
4155 the statement, allocate vector.
4156 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4157 (duplicate_ipa_jump_func_array): Removed.
4158 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4159 (ipa_read_node_info): Allocate vector.
4160
4161 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4162
4163 PR middle-end/50232
4164 * config/pa/pa.md (return): Define "return" insn pattern.
4165 (epilogue): Use it when no epilogue is needed.
4166 * config/pa/pa.c (pa_can_use_return_insn): New function.
4167 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4168
4169 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
4170
4171 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4172 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4173 Force at least BITS_PER_UNIT alignment on the new variable.
4174
4175 2011-09-02 Gary Funck <gary@intrepid.com>
4176
4177 * opts.c (print_specific_help): Fix off-by-one compare in
4178 assertion check.
4179 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4180 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4181 Increase by +5 to allow for more languages.
4182 * optc-gen.awk: Generate #if that ensures that the number of
4183 languages is within the implementation-defined limit.
4184
4185 2011-09-02 Michael Matz <matz@suse.de>
4186
4187 PR middle-end/50260
4188 * ipa-split.c (split_function): Call add_referenced_var.
4189
4190 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4191 (cond_if_else_store_replacement_1): Ditto.
4192 * tree-ssa-pre.c (get_representative_for): Ditto.
4193 (create_expression_by_pieces): Ditto.
4194 (insert_into_preds_of_block): Ditto.
4195 * tree-sra.c (create_access_replacement): Ditto.
4196 (get_replaced_param_substitute): Ditto.
4197
4198 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
4199
4200 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4201 automata_options.
4202 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4203 (l1w, s1w, l2w, s2w): Define in the main automaton.
4204 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4205 units.
4206 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4207 (c6x_unit_names): Add the new units.
4208 (c6x_unit_codes): New static array.
4209 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4210 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4211 UNIT_QID_SIDE_OFFSET): New macros.
4212 (RESERVATION_S2): Adjust value.
4213 (c6x_option_override): Compute c6x_unit_codes.
4214 (assign_reservations): Take the unit_mask of the last instruction
4215 into account. Detect floating point reservations by looking for
4216 the new units. Don't assign reservations if the field is already
4217 nonzero.
4218 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4219 (init_sched_state): Initialize it.
4220 (c6x_clear_sched_context): Free it.
4221 (insn_set_clock): Clear reservation.
4222 (prev_cycle_state): New static variable.
4223 (c6x_init_sched_context): Save it.
4224 (c6x_sched_init): Allocate space for it and clear it.
4225 (c6x_sched_dfa_pre_cycle_insn): New static function.
4226 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4227 (c6x_variable_issue): Only record units in the unit_mask that
4228 were not set at the start of the cycle.
4229 (c6x_variable_issue): Compute and store the unit_mask from the
4230 current state.
4231 (reorg_split_calls): Ensure the new information remains correct.
4232 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4233 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4234 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4235 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4236 Add special reservations.
4237 * config/c6x/c6x-sched.md: Regenerate.
4238
4239 2011-09-02 Martin Jambor <mjambor@suse.cz>
4240
4241 * ipa-prop.h (ipa_node_params): Removed fields
4242 called_with_var_arguments and node_versionable.
4243 (ipa_set_called_with_variable_arg): Removed.
4244 (ipa_is_called_with_var_arguments): Likewise.
4245 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4246 (determine_versionability): Do not check for type attributes and va
4247 builtins. Record versionability into inline summary.
4248 (initialize_node_lattices): Do not check
4249 ipa_is_called_with_var_arguments.
4250 (propagate_constants_accross_call): Likewise, ignore arguments we do
4251 not have PARM_DECLs for, set variable flag for parameters that were
4252 not passed a value.
4253 (create_specialized_node): Dump info that we cannot change signature.
4254 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4255 number of arguments.
4256 (ipa_make_edge_direct_to_target): Likewise.
4257 (ipa_update_after_lto_read): Likewise.
4258 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4259 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4260 they were remapped.
4261
4262 2011-09-02 Richard Guenther <rguenther@suse.de>
4263
4264 PR tree-optimization/27460
4265 PR middle-end/29269
4266 * doc/md.texi (vcond): Document.
4267 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4268 optab with two modes.
4269 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4270 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4271 (vcond_optab): Adjust.
4272 (vcondu_optab): Likewise.
4273 (expand_vec_cond_expr_p): Adjust prototype.
4274 * optabs.c (get_vcond_icode): Adjust.
4275 (expand_vec_cond_expr_p): Likewise.
4276 (expand_vec_cond_expr): Likewise.
4277 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4278 vector type.
4279 (vectorizable_condition): Allow differing types for comparison
4280 and result.
4281 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4282 for the comparison.
4283 * config/i386/sse.md (vcond<mode>): Split to
4284 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4285 vcond<V_128:mode><VI124_128:mode> and
4286 vcondu<V_128:mode><VI124_128:mode>.
4287 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4288 (vconduv2di): Likewise.
4289 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4290 (vcondu<mode>): Likewise.
4291 * config/ia64/vect.md (vcond<mode>): Likewise.
4292 (vcondu<mode>): Likewise.
4293 (vcondv2sf): Likewise.
4294 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4295 * config/rs6000/paired.md (vcondv2sf): Likewise.
4296 * config/rs6000/vector.md (vcond<mode>): Likewise.
4297 (vcondu<mode>): Likewise.
4298 * config/spu/spu.md (vcond<mode>): Likewise.
4299 (vcondu<mode>): Likewise.
4300
4301 2011-09-02 Richard Guenther <rguenther@suse.de>
4302
4303 * pretty-print.h (pp_unsigned_wide_integer): New.
4304 * tree-pretty-print.c (dump_generic_node): Print unsigned
4305 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4306
4307 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
4308
4309 PR target/49987
4310 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4311 valid CONST_VECTOR operands.
4312 (rs6000_expand_vector_init): Likewise.
4313
4314 2011-09-02 Martin Jambor <mjambor@suse.cz>
4315
4316 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4317 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4318 BINFO_VTABLE. Parameter delta removed, all callers updated.
4319 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4320 BINFO_VTABLE.
4321 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4322 all calls.
4323 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4324 handling of thunk_delta.
4325 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4326 (devirtualization_time_bonus): Do not handle thunk deltas.
4327 (ipcp_discover_new_direct_edges): Likewise.
4328 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4329 (try_make_edge_direct_simple_call): Likewise.
4330 (try_make_edge_direct_virtual_call): Likewise.
4331 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4332 parameter set as unused.
4333 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4334 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4335 parameter set as unused.
4336 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4337 (input_edge_opt_summary): Likewise.
4338 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4339 BINFO_VIRTUALS at all.
4340 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4341
4342 2011-09-02 Richard Guenther <rguenther@suse.de>
4343
4344 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4345 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4346
4347 2011-08-31 Richard Guenther <rguenther@suse.de>
4348
4349 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4350 handling here, from ...
4351 (expand_expr_real_1): ... here.
4352 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4353 and VEC_COND_EXPR.
4354 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4355 a GIMPLE_TERNARY_RHS.
4356 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4357 and VEC_COND_EXPR here ...
4358 (verify_gimple_assign_single): ... not here.
4359 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4360 * tree-object-size.c (cond_expr_object_size): Adjust.
4361 (collect_object_sizes_for): Likewise.
4362 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4363 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4364 (ssa_forward_propagate_and_combine): Adjust.
4365 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4366 as ternary.
4367 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4368 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4369 * tree-vect-stmt.c (vectorizable_condition): Likewise.
4370 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4371 (extract_range_from_assignment): Likewise.
4372
4373 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4374
4375 * config/i386/i386.md: Use (match_test ...) for attribute tests.
4376 * config/i386/mmx.md: Likewise.
4377 * config/i386/sse.md: Likewise.
4378 * config/i386/predicates.md (call_insn_operand): Use
4379 (not (match_test "...")) instead of (match_test "!...")
4380 * config/i386/constraints.md (w): Likewise.
4381
4382 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4383
4384 * doc/md.texi: Describe the use of match_tests in attribute tests.
4385 * rtl.def (MATCH_TEST): Update commentary.
4386 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4387 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4388
4389 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4390
4391 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4392 (attr_string): Use copy_md_ptr_loc.
4393
4394 2011-08-31 Martin Jambor <mjambor@suse.cz>
4395
4396 PR middle-end/49886
4397 * ipa-inline-analysis.c (compute_inline_parameters): Set
4398 can_change_signature of noes with typde attributes.
4399 * ipa-split.c (split_function): Do not skip any arguments if
4400 can_change_signature is set.
4401
4402 2011-08-31 Martin Jambor <mjambor@suse.cz>
4403
4404 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4405 check removed.
4406
4407 2011-08-31 Richard Guenther <rguenther@suse.de>
4408
4409 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4410 special-casing.
4411
4412 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
4413
4414 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4415
4416 2011-08-31 Tom de Vries <tom@codesourcery.com>
4417
4418 PR middle-end/43513
4419 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4420 * tree-ssa-ccp.c (params.h): Include.
4421 (fold_builtin_alloca_for_var): New function.
4422 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4423
4424 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
4425
4426 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4427 Handle FMA option.
4428
4429 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
4430
4431 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4432 b3 and b4 unsigned.
4433
4434 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
4435
4436 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4437 when code is SET.
4438
4439 2011-08-30 Richard Guenther <rguenther@suse.de>
4440
4441 PR middle-end/48571
4442 * gimple.h (maybe_fold_offset_to_address): Remove.
4443 (maybe_fold_offset_to_reference): Likewise.
4444 (maybe_fold_stmt_addition): Likewise.
4445 (may_propagate_address_into_dereference): Likewise.
4446 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
4447 array references.
4448 * gimple-fold.c (canonicalize_constructor_val): Likewise.
4449 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4450 addresses instead.
4451 (may_propagate_address_into_dereference): Remove.
4452 (maybe_fold_offset_to_array_ref): Likewise.
4453 (maybe_fold_offset_to_reference): Likewise.
4454 (maybe_fold_offset_to_address): Likewise.
4455 (maybe_fold_stmt_addition): Likewise.
4456 (fold_gimple_assign): Do not reconstruct array references but
4457 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4458 MEM_REF addresses.
4459 (gimple_fold_stmt_to_constant_1): Likewise.
4460 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4461 * gimplify.c (gimplify_conversion): Likewise.
4462 (gimplify_expr): Likewise.
4463
4464 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
4465
4466 * config/i386/fmaintrin.h: New.
4467 * config.gcc: Add fmaintrin.h.
4468 * config/i386/i386.c
4469 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4470 <IX86_BUILTIN_VFMADDSD3>: Likewise.
4471 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4472 (*fmai_fmadd_<mode>): Likewise.
4473 (*fmai_fmsub_<mode>): Likewise.
4474 (*fmai_fnmadd_<mode>): Likewise.
4475 (*fmai_fnmsub_<mode>): Likewise.
4476 * config/i386/immintrin.h: Add fmaintrin.h.
4477
4478 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
4479
4480 * genautomata.c (NO_COMB_OPTION): New macro.
4481 (no_comb_flag): New static variable.
4482 (gen_automata_option): Handle NO_COMB_OPTION.
4483 (comb_vect_p): False if no_comb_flag.
4484 (add_vect): Move computation of min/max values. Return early if
4485 no_comb_flag.
4486 * doc/md.texi (automata_option): Document no-comb-vect.
4487
4488 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4489 "__x86.get_pc_thunk".
4490
4491 * bb-reorder.c (insert_section_boundary_note): Only do it if
4492 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4493
4494 2011-08-30 Christian Bruel <christian.bruel@st.com>
4495
4496 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4497 flag_profile_use.
4498
4499 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4500
4501 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4502 to off. Document switch.
4503 * doc/invoke.texi (-msave-toc-indirect): Ditto.
4504
4505 2011-08-29 Jakub Jelinek <jakub@redhat.com>
4506
4507 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4508 conditionals and comments inside macro arguments.
4509
4510 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
4511 Richard Guenther <rguenther@suse.de>
4512
4513 * tree.h (constant_boolean_node): Adjust prototype.
4514 * fold-const.c (fold_convert_loc): Move aggregate conversion
4515 leeway down.
4516 (constant_boolean_node): Make value parameter boolean, add
4517 vector type handling.
4518 (fold_unary_loc): Use constant_boolean_node.
4519 (fold_binary_loc): Preserve types properly when folding
4520 COMPLEX_EXPR <__real x, __imag x>.
4521 * gimplify.c (gimplify_expr): Handle vector comparison.
4522 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4523 comparison.
4524 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4525 comparisons.
4526
4527 2011-08-29 Jakub Jelinek <jakub@redhat.com>
4528
4529 PR middle-end/48722
4530 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4531 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4532 (verify_rtl_sharing): Likewise and verify_rtx_sharing
4533 in there too.
4534 (unshare_all_rtl_in_chain): For CALL_INSNs
4535 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4536
4537 2011-08-29 Richard Guenther <rguenther@suse.de>
4538
4539 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4540 on the built ADDR_EXPR.
4541
4542 2011-08-29 Jakub Jelinek <jakub@redhat.com>
4543
4544 PR debug/50215
4545 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4546 before adding ENTRY_VALUE to val->locs.
4547
4548 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
4549
4550 PR bootstrap/50218
4551 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4552 comp.
4553
4554 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
4555
4556 * doc/rtl.texi (simple_return): Document.
4557 (parallel, PATTERN): Here too.
4558 * doc/md.texi (return): Mention it's allowed to expand to simple_return
4559 in some cases.
4560 (simple_return): Document standard pattern.
4561 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4562 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4563 * reorg.c (function_return_label, function_simple_return_label):
4564 New static variables, replacing...
4565 (end_of_function_label): ... this.
4566 (simplejump_or_return_p): New static function.
4567 (optimize_skip, steal_delay_list_from_fallthrough,
4568 fill_slots_from_thread): Use it.
4569 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
4570 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4571 (find_end_label): Take a new arg which is one of the two return
4572 rtxs. Depending on which, set either function_return_label or
4573 function_simple_return_label. All callers changed.
4574 (make_return_insns): Make both kinds.
4575 (dbr_schedule): Adjust for two kinds of end labels.
4576 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4577 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4578 (gen_expand, gen_split): Use ANY_RETURN_P.
4579 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4580 * rtl.def (SIMPLE_RETURN): New code.
4581 * ifcvt.c (find_if_case_1): Be more careful about
4582 redirecting jumps to the EXIT_BLOCK.
4583 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4584 returnjump_p_1): Handle SIMPLE_RETURNs.
4585 * print-rtl.c (print_rtx): Likewise.
4586 * rtl.c (copy_rtx): Likewise.
4587 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4588 * combine.c (simplify_set): Likewise.
4589 * resource.c (find_dead_or_set_registers, mark_set_resources):
4590 Likewise.
4591 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4592 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4593 (init_emit_regs): Initialize simple_return_rtx.
4594 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4595 force_nonfallthru_and_redirect.
4596 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4597 (GR_SIMPLE_RETURN): New enum value.
4598 (simple_return_rtx): New macro.
4599 * basic-block.h (force_nonfallthru_and_redirect): Adjust
4600 declaration.
4601 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4602 argument. All callers changed. Be careful about what kinds of
4603 returnjumps to generate.
4604 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4605 ix86_pad_short_function): Likewise.
4606 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4607 of return.
4608 * config/mips/mips.md (any_return): New code_iterator.
4609 (optab): Add cases for return and simple_return.
4610 (return): Expand to a simple_return.
4611 (simple_return): New pattern.
4612 (*<optab>, *<optab>_internal for any_return): New patterns.
4613 (return_internal): Remove.
4614 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4615 a simple_return_internal.
4616
4617 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
4618
4619 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4620 (vec_extract_lo_<mode>): Prevent both operands in memory.
4621 (vec_extract_lo_v16hi): Ditto.
4622 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4623
4624 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
4625
4626 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4627 (*sse2_mulv4si3): Ditto.
4628 (mulv2di3): Ditto.
4629 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
4630 notes to REG_EQUAL.
4631
4632 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
4633
4634 PR target/50202
4635 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
4636 when all outputs are unused.
4637 (sse4_2_pcmpistr): Ditto.
4638
4639 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
4640
4641 * config/i386/i386.md (round<mode>2): New expander.
4642 * config/i386/i386.c (enum ix86_builtins): Add
4643 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
4644 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
4645 descriptions.
4646 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
4647 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
4648
4649 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
4650
4651 PR middle-end/50083
4652 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
4653 only when TARGET_C99_FUNCTIONS.
4654 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
4655 <BUILT_IN_RINT{,F,L}>: Ditto.
4656
4657 2011-08-26 Michael Matz <matz@suse.de>
4658 Jakub Jelinek <jakub@redhat.com>
4659
4660 PR lto/50165
4661 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
4662 don't call strlen twice, use memcpy.
4663
4664 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
4665
4666 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
4667 * config/i386/bmiintrin.h: Likewise.
4668 * config/i386/lzcntintrin.h: Likewise.
4669
4670 * config/i386/immintrin.h: Include <lzcntintrin.h>,
4671 <bmiintrin.h> and <bmi2intrin.h>.
4672
4673 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4674
4675 PR target/50166
4676 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
4677 * configure: Regenerate.
4678
4679 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4680
4681 PR c/50179
4682 * c-typeck.c (c_process_expr_stmt): Skip over nops and
4683 call mark_exp_read even if exprv is ADDR_EXPR.
4684
4685 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
4686
4687 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
4688 to df_set_dead_notes_for_mw.
4689
4690 2011-08-26 Richard Guenther <rguenther@suse.de>
4691
4692 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
4693
4694 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
4695 Tom de Vries <tom@codesourcery.com>
4696
4697 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
4698 (struct ivopts_data): Add loop_single_exit_p field.
4699 (niter_for_exit): Change parameter desc_p into return value. Return
4700 desc if desc->may_be_zero. Free desc if unused.
4701 (niter_for_single_dom_exit): Change return type.
4702 (find_induction_variables): Handle changed return type of
4703 niter_for_single_dom_exit. Dump may_be_zero.
4704 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
4705 (set_use_iv_cost): Add and handle comp parameter.
4706 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
4707 comp argument to set_use_iv_cost.
4708 (strip_wrap_conserving_type_conversions, expr_equal_p)
4709 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
4710 (may_eliminate_iv): Add comp parameter. Handle new return type of
4711 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
4712 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
4713 and may_eliminate_iv.
4714 (rewrite_use_compare): Move call to iv_elimination_compare to ...
4715 (may_eliminate_iv): Here.
4716 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
4717
4718 2011-08-26 Tom de Vries <tom@codesourcery.com>
4719
4720 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
4721 accessing TREE_TYPE.
4722
4723 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
4724
4725 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
4726 (*ior_scc_scc_cmp): Likewise
4727 (*and_scc_scc): Likewise.
4728 (*and_scc_scc_cmp): Likewise.
4729 (*and_scc_scc_nodom): Likewise.
4730 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
4731
4732 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4733
4734 * rtlanal.c (nonzero_bits1): Handle CLRSB.
4735
4736 2011-08-26 Richard Guenther <rguenther@suse.de>
4737
4738 * expr.c (string_constant): Handle &MEM_REF.
4739
4740 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
4741
4742 * config/arm/arm.c (struct four_ints): New type.
4743 (count_insns_for_constant): Delete function.
4744 (find_best_start): Delete function.
4745 (optimal_immediate_sequence): New function.
4746 (optimal_immediate_sequence_1): New function.
4747 (arm_gen_constant): Move constant splitting code to
4748 optimal_immediate_sequence.
4749 Rewrite constant negation/invertion code.
4750
4751 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
4752
4753 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
4754 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
4755 Remove prototype. Remove static function type.
4756 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
4757 Add arch attribute.
4758 * config/arm/constraints.md (Pj, PJ): New constraints.
4759
4760 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4761
4762 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
4763 ("cortex_a9_multiply_long"): New and use above. Handle all
4764 long multiply cases.
4765 ("cortex_a9_multiply"): Handle smmul and smmulr.
4766 ("cortex_a9_mac"): Handle smmla.
4767
4768 2011-08-25 Richard Henderson <rth@redhat.com>
4769
4770 PR 50132
4771 PR 49864
4772 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
4773 non-constant stack adjutment.
4774 * expr.c (find_args_size_adjust): Break out from ...
4775 (fixup_args_size_notes): ... here.
4776 * rtl.h (find_args_size_adjust): Declare.
4777
4778 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
4779
4780 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
4781 sse4 and sse4_noavx.
4782 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
4783 (*pushdf_rex64): Change Y2 register constraint to x.
4784 (*movdf_internal_rex64): Ditto.
4785 (*zero_extendsidi2_rex64): Ditto.
4786 (*movdi_internal): Change Y2 register constraint to x
4787 and update "isa" attribute.
4788 (*pushdf): Ditto.
4789 (*movdf internal): Ditto.
4790 (zero_extendsidi2_1): Ditto.
4791 (*truncdfdf_mixed): Ditto.
4792 (*truncxfdf2_mixed): Ditto.
4793 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
4794 register constraint to x.
4795 (*movv2sf_internal_rex64): Ditto.
4796 (*mov<mode>_internal): Change Y2 register constraint to x
4797 and add "isa" attribute.
4798 (*movv2sf_internal): Ditto.
4799 (*vec_extractv2si_1): Ditto.
4800 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
4801 constraints to x and update "isa" attribute.
4802 (*vec_interleave_highv2df): Change Y3 registerconstraint
4803 to x and update "isa" attribute.
4804 (*vec_interleave_lowv2df): Ditto.
4805 (*vec_concatv2df): Change Y2 register constraint to x and
4806 update "isa" attribute.
4807 (sse2_loadld): Ditto.
4808 (*vec_extractv2di_1): Ditto.
4809 (*vec_dupv4si): Ditto.
4810 (*vec_dupv2di): Ditto.
4811 (*vec_concatv4si): Ditto.
4812 (vec_concatv2di): Ditto.
4813 * config/i386/constraints.md (Y2): Remove.
4814 (Y3): Ditto.
4815 (Y4): Ditto.
4816
4817 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
4818
4819 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
4820 dump_def_use_chain): Don't declare.
4821 (mark_conflict, create_new_chain): Move before users.
4822 (regrename_optimize): Move to near end of file.
4823
4824 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4825
4826 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
4827 (secondary_input_reload_class): Remove Prototype.
4828 * config/avr/avr.c (byte_immediate_operand): Remove Function.
4829 * config/avr/avr.md (setmemhi): Use u8_operand.
4830 (strlenhi): Use const0_rtx for comparison.
4831 * config/avr/avr.h (avr_reg_order): Remove Declaration.
4832
4833 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4834
4835 * config/avr/avr.c (reg_class_tab): Make local to
4836 avr_regno_reg_class. Return smallest register class available.
4837
4838 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4839
4840 * config/avr/avr.c (STR_PREFIX_P): New Define.
4841 (avr_asm_declare_function_name): Use it.
4842 (avr_asm_named_section): Use it.
4843 (avr_section_type_flags): Use it.
4844
4845 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
4846
4847 * doc/md.texi (automata_option): Document collapse-ndfa.
4848 * genautomata.c (COLLAPSE_OPTION): New macro.
4849 (collapse_flag): New static variable.
4850 (struct description): New member normal_decls_num.
4851 (struct automaton): New members advance_ainsn and collapse_ainsn.
4852 (gen_automata_option): Check for COLLAPSE_OPTION.
4853 (collapse_ndfa_insn_decl): New static variable.
4854 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
4855 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
4856 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
4857 necessary. Use normal_decls_num rather than decls_num, remove
4858 test for special decls.
4859 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
4860 (make_automaton); Likewise. Use the new advance_cycle_insn member
4861 of struct automaton.
4862 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
4863 is set.
4864 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
4865 transition. Create the necessary transitions for it.
4866 (create_ainsns): Return void. Take an automaton_t argument, and
4867 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
4868 callers changed.
4869 (COLLAPSE_NDFA_VALUE_NAME): New macro.
4870 (output_tables): Output code to define it.
4871 (output_internal_insn_code_evaluation): Output code to accept
4872 const0_rtx as collapse-ndfa transition.
4873 (output_default_latencies, output_print_reservation_func,
4874 output_print_description): Reorganize loops to use normal_decls_num
4875 as loop bound; remove special case for advance_cycle_insn_decl.
4876 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
4877 (check_automata_insn_issues): Check for collapse_ainsn.
4878 (expand_automate): Allocate sufficient space. Initialize
4879 normal_decls_num.
4880
4881 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
4882
4883 * config/avr/avr.md: Fix indentation from r177991.
4884
4885 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
4886
4887 * regrename.c (struct du_head): Remove member terminated.
4888 (create_new_chain): Don't initialize it.
4889 (scan_rtx_reg): Don't set or test it, test the open_chains_set
4890 bitmap instead.
4891 (tick, this_tick): New global variables, moved out of
4892 regrename_optimize.
4893 (current_id, open_chains, closed_chains, open_chains_set,
4894 live_in_chains, live_hard_regs): Reorder declarations.
4895 (dump_def_use_chain): Move function earlier in the file.
4896 (rename_chains): New static function, broken out of
4897 regrename_optimize.
4898 (regrename_optimize): Use it. Remove #if 0'ed code.
4899
4900 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4901
4902 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
4903
4904 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
4905
4906 PR target/50172
4907 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
4908
4909 2011-08-24 Richard Guenther <rguenther@suse.de>
4910
4911 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
4912 ref in the basic-block case. Move stripping array-refs
4913 to the place we create an access-function for it. Remove
4914 bogus stripping down a MEM_REF to its base.
4915
4916 2011-08-24 Richard Guenther <rguenther@suse.de>
4917
4918 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
4919 with -fno-strict-overflow.
4920
4921 2011-08-24 Richard Guenther <rguenther@suse.de>
4922
4923 * tree-vectorizer.c (vect_print_dump_info): Avoid the
4924 file and location clutter when dumping to dump files.
4925
4926 2011-08-24 Simon Baldwin <simonb@google.com>
4927
4928 * gengtype-state.c (write_state): Remove timestamped header line.
4929
4930 2011-08-24 Joseph Myers <joseph@codesourcery.com>
4931
4932 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
4933 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
4934 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
4935 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
4936 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
4937 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
4938 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
4939 rules.
4940 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
4941
4942 2011-08-24 Joseph Myers <joseph@codesourcery.com>
4943
4944 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
4945
4946 2011-08-24 Richard Guenther <rguenther@suse.de>
4947
4948 PR tree-optimization/50067
4949 * tree-data-ref.c (dr_analyze_indices): Do not add an access
4950 function for a MEM_REF base that has no evolution in the loop
4951 nest or that is not analyzable.
4952
4953 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
4954
4955 * ira.c (ira_init_register_move_cost): Check small subclasses
4956 through ira_reg_class_max_nregs and ira_available_class_regs.
4957
4958 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
4959
4960 * config/i386/constraints.md (Yp): New register constraint.
4961 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
4962 Yp register constraint.
4963 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
4964 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
4965 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
4966
4967 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
4968
4969 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
4970
4971 2011-08-23 Mark Heffernan <meheff@google.com>
4972
4973 PR middle-end/38509
4974 * common.opt (Wfree-nonheap-object): New option.
4975 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
4976 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
4977 to warning.
4978 (expand_builtin): Make warning conditional.
4979
4980 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
4981
4982 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
4983 (length_immediate): Handle imulx, ishiftx and rotatex.
4984 (imm_disp): Ditto.
4985 (isa): Add bmi2.
4986 (enabled): Handle bmi2.
4987 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
4988 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
4989 (*bmi2_umulditi3_1): New insn pattern.
4990 (*bmi2_umulsidi3_1): Ditto.
4991 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
4992 (*bmi2_ashl<mode>3_1): New insn pattern.
4993 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
4994 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
4995 (*bmi2_ashlsi3_1_zext): New insn pattern.
4996 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
4997 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
4998 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
4999 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5000 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5001 flags dependency.
5002 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5003 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5004 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5005 flags dependency.
5006 (*bmi2_rorx<mode>3_1): New insn pattern.
5007 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5008 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5009 (*rotatert<mode>3_1 splitter): Ditto.
5010 (*bmi2_rorxsi3_1_zext): New insn pattern.
5011 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5012 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5013 (*rotatertsi3_1_zext splitter): Ditto.
5014
5015 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5016
5017 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5018 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5019 (ix86_handle_option): Handle OPT_mbmi2 case.
5020 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5021 (x86_64-*-*): Likewise.
5022 * config/i386/bmi2intrin.h: New file.
5023 * config/i386/cpuid.h (bit_BMI2): New.
5024 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5025 BMI2 feature.
5026 * config/i386/i386-c.c (ix86_target_macros_internal):
5027 Conditionally define __BMI2__.
5028 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5029 Handle BMI2 option.
5030 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5031 (print_reg): New code.
5032 (ix86_print_operand): Likewise.
5033 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5034 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5035 IX86_BUILTIN_PEXT64.
5036 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5037 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5038 IX86_BUILTIN_PEXT64.
5039 * config/i386/i386.h (TARGET_BMI2): New.
5040 * config/i386/i386.md (UNSPEC_PDEP): New.
5041 (UNSPEC_PEXT): Likewise.
5042 (*bmi2_bzhi_<mode>3): Likewise.
5043 (*bmi2_pdep_<mode>3): Likewise.
5044 (*bmi2_pext_<mode>3): Likewise.
5045 * config/i386/i386.opt (mbmi2): New.
5046 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5047 is defined.
5048 * doc/extend.texi: Document BMI2 built-in functions.
5049 * doc/invoke.texi: Document -mbmi2.
5050
5051 2011-08-23 Jakub Jelinek <jakub@redhat.com>
5052
5053 PR middle-end/50161
5054 * simplify-rtx.c (simplify_const_unary_operation): If
5055 op is CONST_INT, don't look at op_mode, but use instead mode.
5056 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5057 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5058 operation and TRUNCATE/ZERO_EXTEND if needed.
5059 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5060 Document that operand mode must be same as operation mode,
5061 or VOIDmode.
5062 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5063 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5064 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5065 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5066 use the mode of operand for the operation and add truncate
5067 or zero_extend around if needed.
5068 * config/c6x/c6x.md (ctzdi2): Likewise.
5069 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5070
5071 2011-08-12 Michael Matz <matz@suse.de>
5072
5073 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5074 (gimple_expand_cfg): Merge alignment info for coalesced pointer
5075 SSA names.
5076
5077 2011-08-23 Richard Guenther <rguenther@suse.de>
5078
5079 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5080 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5081 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5082 from ...
5083 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5084 (mem_refs_may_alias_p): Adjust.
5085 * tree-data-ref.h (dr_may_alias_p): Adjust.
5086 * tree-data-ref.c: Include tree-affine.h.
5087 (dr_analyze_indices): Do nothing for the non-loop case.
5088 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
5089 more cases in the non-loop case.
5090 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5091 calls to dr_may_alias_p.
5092 (write_alias_graph_to_ascii_ecc): Likewise.
5093 (write_alias_graph_to_ascii_dot): Likewise.
5094 (build_alias_set_optimal_p): Likewise.
5095
5096 2011-08-23 Richard Guenther <rguenther@suse.de>
5097
5098 PR tree-optimization/50162
5099 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5100
5101 2011-08-23 Richard Guenther <rguenther@suse.de>
5102
5103 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5104 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5105 (create_data_ref): Also dump access functions for the created data-ref.
5106
5107 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
5108 Kirill Yukhin <kirill.yukhin@intel.com>
5109
5110 PR target/50155
5111 * config/i386/sse.md (VI_AVX2): New.
5112 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5113 (*<plusminus_insn><mode>3): Ditto.
5114 (<sse2_avx2>_andnot<mode>3): Ditto.
5115 (*andnot<mode>3): Fix order of cond operands.
5116 Add asserts for correct TARGET_xxx.
5117 (*<any_logic:code><mode>3): Ditto.
5118
5119 2011-08-22 Anatoly Sokolov <aesok@post.ru>
5120
5121 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5122 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5123 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5124 regclass argument type to reg_class_t. Change 'max' and 'v' vars
5125 and return types to unsigned char. Use reg_class_contents instead
5126 of class_contents.
5127 (TARGET_CLASS_MAX_NREGS): Define.
5128
5129 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
5130
5131 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5132 to make computed_jump_p return true.
5133
5134 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5135
5136 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5137 (PICFLAG_FOR_TARGET): Substitute.
5138 * aclocal.m4: Regenerate.
5139 * configure: Regenerate.
5140
5141 2011-08-22 Dodji Seketeli <dodji@redhat.com>
5142
5143 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5144 after reading in the pch.
5145
5146 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
5147
5148 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5149 * configure: Regenerated.
5150
5151 2011-08-22 Jakub Jelinek <jakub@redhat.com>
5152
5153 PR tree-optimization/50133
5154 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5155 from stmt instead of some statement around gsi.
5156
5157 PR middle-end/50141
5158 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5159 innerdecl is a VAR_DECL.
5160
5161 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
5162
5163 * config/i386/avx2intrin.h: New file.
5164 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5165 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5166 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5167 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5168 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5169 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5170 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5171 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5172 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5173 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5174 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5175 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5176 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5177 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5178 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5179 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5180 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5181 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5182 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5183 VOID_FTYPE_PV8SI_V8SI_V8SI,
5184 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5185 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5186 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5187 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5188 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5189 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5190 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5191 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5192 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5193 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5194 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5195 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5196 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5197 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5198 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5199 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5200 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5201 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5202 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5203 V4DI_FTYPE_V4DI_INT_CONVERT,
5204 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5205 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5206 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5207 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5208 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5209 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5210 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5211 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5212 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5213 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5214 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5215 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5216 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5217 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5218 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5219 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5220 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5221 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5222 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5223 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5224 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5225 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5226 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5227 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5228 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5229 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5230 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5231 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5232 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5233 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5234 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5235 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5236 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5237 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5238 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5239 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5240 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5241 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5242 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5243 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5244 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5245 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5246 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5247 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5248 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5249 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5250 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5251 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5252 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5253 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5254 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5255 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5256 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5257 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5258 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5259 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5260 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5261 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5262 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5263 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5264 IX86_BUILTIN_VBROADCASTSS_PS256,
5265 IX86_BUILTIN_VBROADCASTSD_PD256,
5266 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5267 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5268 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5269 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5270 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5271 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5272 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5273 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5274 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5275 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5276 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5277 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5278 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5279 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5280 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5281 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5282 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5283 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5284 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5285 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5286 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5287 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5288 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5289 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5290 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5291 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5292 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5293 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5294 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5295 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5296 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5297 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
5298 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5299 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5300 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5301 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5302 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5303 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5304 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5305 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5306 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5307 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5308 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5309 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5310 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5311 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5312 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5313 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5314 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5315 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5316 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5317 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5318 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5319 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5320 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5321 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5322 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5323 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5324 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5325 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5326 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5327 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5328 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5329 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5330 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5331 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5332 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5333 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5334 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5335 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5336 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5337 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5338 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5339 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5340 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5341 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5342 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5343 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5344 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5345 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5346 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5347 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5348 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5349 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5350 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5351 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5352 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5353 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5354 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5355 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5356 IX86_BUILTIN_VBROADCASTSD_PD256,
5357 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5358 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5359 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5360 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5361 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5362 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5363 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5364 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5365 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5366 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5367 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5368 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5369 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5370 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5371 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5372 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5373 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5374 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5375 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5376 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5377 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5378 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5379 IX86_BUILTIN_GATHERDIV8SI.
5380 (ix86_preferred_simd_mode): Support AVX2 modes.
5381 (ix86_expand_args_builtin): Support AVX2 builtins.
5382 (ix86_expand_special_args_builtin): Likewise.
5383 (ix86_expand_builtin): Likewise.
5384 * config/i386/i386.md (UNSPEC_VPERMSI): New.
5385 (UNSPEC_VPERMDF): Likewise.
5386 (UNSPEC_VPERMSF): Likewise.
5387 (UNSPEC_VPERMDI): Likewise.
5388 (UNSPEC_VPERMTI): Likewise.
5389 (UNSPEC_GATHER): Likewise.
5390 (ssemodesuffix): Extend.
5391 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5392 is defined.
5393 * config/i386/predicates.md (const1248_operand): New.
5394 * config/i386/sse.md (VI1_AVX2): New mode iterator.
5395 (VI2_AVX2): Likewise.
5396 (VI4_AVX2): Likewise.
5397 (VI8_AVX2): Likewise.
5398 (VIMAX_AVX2): Likewise.
5399 (SSESCALARMODE): Likewise.
5400 (VI12_AVX2): Likewise.
5401 (VI24_AVX2): Likewise.
5402 (VI124_AVX2): Likewise.
5403 (VI248_AVX2): Likewise.
5404 (VI48_AVX2): Likewise.
5405 (VI4SD_AVX2): Likewise.
5406 (V48_AVX2): Likewise.
5407 (AVX256MODE2P): Likewise.
5408 (AVXMODE48P_DI): Likewise.
5409 (sse2_avx2): New mode attribute.
5410 (ssse3_avx2): Likewise.
5411 (sse4_1_avx2): Likewise.
5412 (avx_avx2): Likewise.
5413 (ssebytemode): Likewise.
5414 (AVXTOSSEMODE): Likewise.
5415 (AVXMODE48P_DI): Likewise.
5416 (gthrfirstp): Likewise.
5417 (gthrlastp): Likewise.
5418 (lshift): New code_iterator
5419 (lshift): New code attribute.
5420 (lshift): Likewise.
5421 (ssescalarmodesuffix): Update.
5422 (sseunpackmode): Likewise.
5423 (ssepackmode): Likewise.
5424 (avx2_vec_dupv4sf): New insn pattern.
5425 (avx2_vec_dupv8sf): Likewise.
5426 (avx2_interleave_highv4di): Likewise.
5427 (avx2_interleave_lowv4di): Likewise.
5428 (avx2_umulv4siv4di3): Likewise
5429 (*avx2_umulv4siv4di3): Likewise
5430 (avx2_pmaddwd): Likewise.
5431 (*avx2_pmaddwd): Likewise.
5432 (avx2_lshrqv4di3): Likewise.
5433 (avx2_lshlqv4di3): Likewise.
5434 (avx2_lshl<mode>3): Likewise.
5435 (avx2_<umaxmin:code><mode>3): Likewise.
5436 (*avx2_<umaxmin:code><mode>3): Likewise.
5437 (avx2_<smaxmin:code><mode>3): Likewise.
5438 (*avx2_<smaxmin:code><mode>3): Likewise.
5439 (avx2_eq<mode>3): Likewise.
5440 (*avx2_eq<mode>3): Likewise.
5441 (avx2_gt<mode>3): Likewise.
5442 (avx2_interleave_highv32qi): New.
5443 (avx2_interleave_lowv32qi): Likewise.
5444 (avx2_interleave_highv16hi): Likewise.
5445 (avx2_interleave_lowv16hi): Likewise.
5446 (avx2_interleave_highv8si): Likewise.
5447 (avx2_interleave_lowv8si): Likewise.
5448 (avx2_pshufd): Likewise.
5449 (avx2_pshufd_1): Likewise.
5450 (avx2_pshuflwv3): Likewise.
5451 (avx2_pshuflw_1): Likewise.
5452 (avx2_pshufhwv3): Likewise.
5453 (avx2_pshufhw_1): Likewise.
5454 (avx2_uavgv32qi3): Likewise.
5455 (*avx2_uavgv32qi3): Likewise.
5456 (avx2_uavgv16hi3): Likewise.
5457 (*avx2_uavgv16hi3): Likewise.
5458 (avx2_pmovmskb): Likewise.
5459 (avx2_phaddwv16hi3): Likewise.
5460 (avx2_phadddv8si3): Likewise.
5461 (avx2_phaddswv16hi3): Likewise.
5462 (avx2_phsubwv16hi3): Likewise.
5463 (avx2_phsubdv8si3): Likewise.
5464 (avx2_phsubswv16hi3): Likewise.
5465 (avx2_pmaddubsw256): Likewise.
5466 (avx2_umulhrswv16hi3): Likewise.
5467 (*avx2_umulhrswv16hi3): Likewise.
5468 (avx2_packusdw): Likewise.
5469 (avx2_pblendd<mode>): Likewise.
5470 (avx2_<code>v16qiv16hi2): Likewise.
5471 (avx2_<code>v8qiv8si2): Likewise.
5472 (avx2_<code>v8hiv8si2): Likewise.
5473 (avx2_<code>v4qiv4di2): Likewise.
5474 (avx2_<code>v4hiv4di2): Likewise.
5475 (avx2_<code>v4siv4di2): Likewise.
5476 (avx2_pbroadcast<mode>): Likewise.
5477 (avx2_permvarv8si): Likewise.
5478 (avx2_permv4df): Likewise.
5479 (avx2_permvarv8sf): Likewise.
5480 (avx2_permv4di): Likewise.
5481 (avx2_permv2ti): Likewise.
5482 (avx2_vec_dupv4df): Likewise.
5483 (avx2_vbroadcasti128_<mode>): Likewise.
5484 (avx2_vec_set_lo_v4di): Likewise.
5485 (avx2_vec_set_hi_v4di): Likewise.
5486 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5487 (avx2_extracti128): Likewise.
5488 (avx2_inserti128): Likewise.
5489 (avx2_ashrvv8si): Likewise.
5490 (avx2_ashrvv4si): Likewise.
5491 (avx2_<lshift>vv8si): Likewise.
5492 (avx2_<lshift>v<mode>): Likewise.
5493 (avx2_<lshift>vv2di): Likewise.
5494 (avx2_gathersi<mode>): Likewise.
5495 (*avx2_gathersi<mode>): Likewise.
5496 (avx2_gatherdi<mode>): Likewise.
5497 (*avx2_gatherdi<mode>): Likewise.
5498 (avx2_gatherdi<mode>256): Likewise.
5499 (*avx2_gatherdi<mode>256): Likewise.
5500 (<plusminus_insn><mode>3): Use VI mode iterator.
5501 (*<plusminus_insn><mode>3): Use VI mode iterator.
5502 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5503 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
5504 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5505 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
5506 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
5507 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
5508 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5509 Use VI2_AVX2 mode iterator.
5510 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5511 Use VI2_AVX2 mode iterator.
5512 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
5513 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
5514 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5515 Use VI4_AVX2 mode iterator.
5516 (ashr<mode>3): Use VI24_AVX2 mode iterator.
5517 (lshr<mode>3): Use VI248_AVX2 mode iterator.
5518 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5519 Use VIMAX_AVX2 mode iterator.
5520 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5521 Use VI mode iterator.
5522 (*andnot<mode>3): Update for AVX2.
5523 (*<any_logic:code><mode>3): Likewise.
5524 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5525 Use VI1_AVX mode iterator.
5526 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
5527 Use VI2_AVX mode iterator.
5528 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5529 Use VI1_AVX mode iterator.
5530 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5531 Use VI8_AVX2 mode iterator.
5532 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5533 Use VI1_AVX2 mode iterator.
5534 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5535 Use VI124_AVX2 mode iterator.
5536 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5537 Use SSESCALARMODE mode iterator.
5538 (abs<mode>2): Use VI124_AVX2 mode iterator.
5539 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5540 Use VI8_AVX2 mode iterator.
5541 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5542 Use VI1_AVX2 mode iterator.
5543 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5544 Use VI1_AVX2 mode iterator.
5545 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5546 Use VI2_AVX2 mode iterator.
5547 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5548 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5549 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5550 avx_maskstore<ssemodesuffix><avxsizesuffix>.
5551 Use V48_AVX2 mode iterator.
5552 * doc/extend.texi: Document AVX2 built-in functions.
5553 * doc/invoke.texi: Document -mavx2.
5554
5555 2011-08-22 Matthias Klose <doko@debian.org>
5556
5557 Revert:
5558 2011-07-11 Arthur Loiret <aloiret@debian.org>
5559 Matthias Klose <doko@debian.org>
5560 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5561 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5562 convention.
5563 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5564
5565 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
5566
5567 PR bootstrap/50146
5568 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5569 to #ifndef HONOR_REG_ALLOC_ORDER block.
5570
5571 2011-08-21 Richard Henderson <rth@redhat.com>
5572
5573 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5574 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5575 * resource.c (next_insn_no_annul): Likewise.
5576 (mark_set_resources): Likewise.
5577 * reorg.c (delete_from_delay_slot): Likewise.
5578 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5579 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5580
5581 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
5582
5583 * config/i386/i386.md (any_div): Remove.
5584 (sgnprefix): Update for removal.
5585 (u): Ditto.
5586
5587 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
5588
5589 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5590 for ira_reg_class_max_nregs. Increase pressure by 1.
5591 (mark_pseudo_regno_subword_dead): Use allocno class
5592 for ira_reg_class_max_nregs.
5593
5594 2011-08-20 Richard Henderson <rth@redhat.com>
5595
5596 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5597 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5598 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5599 config/c6x/ltf.c: Adjust include path for soft-fp.
5600
5601 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
5602
5603 PR other/46770
5604 * config.gcc (tm_file): Add initfini-array.h if
5605 .init_arrary/.fini_array are supported.
5606
5607 * crtstuff.c: Don't generate .ctors nor .dtors sections if
5608 USE_INITFINI_ARRAY is defined.
5609
5610 * output.h (default_elf_init_array_asm_out_constructor): New.
5611 (default_elf_fini_array_asm_out_destructor): Likewise.
5612 * varasm.c (elf_init_array_section): Likewise.
5613 (elf_fini_array_section): Likewise.
5614 (get_elf_initfini_array_priority_section): Likewise.
5615 (default_elf_init_array_asm_out_constructor): Likewise.
5616 (default_elf_fini_array_asm_out_destructor): Likewise.
5617
5618 * config/initfini-array.h: New.
5619
5620 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
5621
5622 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5623 OK for ST_REGS and FP_REGS before taking those classes into account.
5624
5625 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
5626
5627 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5628 before checking for annulled branches.
5629
5630 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
5631
5632 * config/i386/i386.c (ix86_binary_operator_ok): Use
5633 satisfies_constraint_L.
5634
5635 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
5636 Michael Matz <matz@suse.de>
5637
5638 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
5639 trunc (a + copysign (nextafter (0.5, 0.0), a)).
5640
5641 2011-08-20 Anatoly Sokolov <aesok@post.ru>
5642
5643 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5644 * doc/tm.texi: Regenerate.
5645 * targhooks.c (default_preferred_output_reload_class): Don't use
5646 PREFERRED_OUTPUT_RELOAD_CLASS macro.
5647 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
5648
5649 2011-08-20 Jakub Jelinek <jakub@redhat.com>
5650
5651 PR tree-optimization/48739
5652 * tree-ssa.c: Include cfgloop.h.
5653 (execute_update_addresses_taken): When updating ssa, if in loop closed
5654 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
5655 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
5656
5657 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
5658
5659 PR rtl-optimization/49936
5660 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5661 for calculation of max register move costs.
5662
5663 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5664
5665 * c-parser.c (c_parser_postfix_expression): Convert operands of
5666 __builtin_complex to their semantic types.
5667
5668 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
5669
5670 PR middle-end/49721
5671 * explow.c (convert_memory_address_addr_space): Also permute the
5672 conversion and addition of constant for zero-extend.
5673
5674 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5675
5676 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
5677 * doc/extend.texi (__builtin_complex): Document.
5678
5679 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5680
5681 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
5682 beyond conversions.
5683 (convert_mult_to_widen): Convert constant inputs to the right type.
5684 (convert_plusminus_to_widen): Don't automatically reject inputs that
5685 are not an SSA_NAME.
5686 Convert constant inputs to the right type.
5687
5688 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5689
5690 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
5691 to the correct type.
5692
5693 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5694
5695 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
5696 unsigned inputs of different modes.
5697 (convert_plusminus_to_widen): Likewise.
5698
5699 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5700
5701 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
5702 'type'.
5703 Use 'type' from caller, not inferred from 'rhs'.
5704 Don't reject non-conversion statements. Do return lhs in this case.
5705 (is_widening_mult_p): Add new argument 'type'.
5706 Use 'type' from caller, not inferred from 'stmt'.
5707 Pass type to is_widening_mult_rhs_p.
5708 (convert_mult_to_widen): Pass type to is_widening_mult_p.
5709 (convert_plusminus_to_widen): Likewise.
5710
5711 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5712
5713 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
5714 Ensure the the larger type is the first operand.
5715
5716 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5717
5718 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
5719 unsupported unsigned multiplies to signed.
5720 (convert_plusminus_to_widen): Likewise.
5721
5722 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5723
5724 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
5725 conversion statement separating multiply-and-accumulate.
5726
5727 2011-08-19 Richard Guenther <rguenther@suse.de>
5728
5729 PR tree-optimization/50067
5730 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
5731 offset only if we accounted for it.
5732
5733 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5734
5735 * config/arm/arm.md (maddhidi4): Remove '*' from name.
5736 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
5737 * optabs.c (find_widening_optab_handler_and_mode): New function.
5738 (expand_widen_pattern_expr): Use find_widening_optab_handler.
5739 (expand_binop_directly): Likewise.
5740 (expand_binop): Likewise.
5741 * optabs.h (find_widening_optab_handler): New macro define.
5742 (find_widening_optab_handler_and_mode): New prototype.
5743 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
5744 type precision rules.
5745 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
5746 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
5747 (is_widening_mult_rhs_p): Allow widening by more than one mode.
5748 Explicitly disallow mis-matched input types.
5749 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
5750 input types to fit the new handler.
5751 (convert_plusminus_to_widen): Likewise.
5752
5753 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
5754
5755 * expr.c (expand_expr_real_2): Use widening_optab_handler.
5756 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
5757 (gen_insn): $N now means $a must be wider than $b, not consecutive.
5758 * optabs.c (widened_mode): New function.
5759 (expand_widen_pattern_expr): Use widening_optab_handler.
5760 (expand_binop_directly): Likewise.
5761 (expand_binop): Likewise.
5762 * optabs.h (widening_optab_handlers): New struct.
5763 (optab_d): New member, 'widening'.
5764 (widening_optab_handler): New function.
5765 (set_widening_optab_handler): New function.
5766 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
5767 widening_optab_handler.
5768 (convert_plusminus_to_widen): Likewise.
5769
5770 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5771
5772 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
5773 pedantic.
5774 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
5775 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
5776
5777 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5778
5779 * opth-gen.awk: Do not declare target save/restore structures and
5780 functions if IN_RTS defined.
5781
5782 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5783
5784 PR target/49437
5785 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
5786 when stack was realigned in interrupt handler prologue.
5787
5788 2011-08-18 Joseph Myers <joseph@codesourcery.com>
5789
5790 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
5791 (quals_from_declspecs): Assert _Noreturn not present.
5792 (grokdeclarator): Handle _Noreturn.
5793 (build_null_declspecs): Initialize noreturn_p.
5794 (declspecs_add_scspec): Handle RID_NORETURN.
5795 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
5796 (c_parser_attributes): Handle RID_NORETURN.
5797 * c-tree.h (struct c_declspecs): Add noreturn_p.
5798 * ginclude/stdnoreturn.h: New.
5799 * Makefile.in (USER_H): Add stdnoreturn.h.
5800
5801 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
5802
5803 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
5804 (OPTION_MASK_ISA_AVX_UNSET): Update.
5805 (OPTION_MASK_ISA_AVX2_UNSET): New.
5806 (ix86_handle_option): Handle OPT_mavx2 case.
5807 * config/i386/cpuid.h (bit_AVX2): New.
5808 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5809 AVX2 feature.
5810 * config/i386/i386-c.c (ix86_target_macros_internal):
5811 Conditionally define __AVX2__.
5812 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
5813 Define "core-avx2" processor alias. Handle avx2 option.
5814 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
5815 * config/i386/i386.h (TARGET_AVX2): New.
5816 * config/i386/i386.opt (mavx2): New.
5817 * doc/invoke.texi: Document -mavx2.
5818
5819 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
5820
5821 PR rtl-optimization/49890
5822 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
5823 subclasses of class which is superset of a pressure class.
5824
5825 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
5826 Igor Zamyatin <igor.zamyatin@intel.com>
5827
5828 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
5829 with HOST_WIDE_INT for isa_flag.
5830 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
5831 isa variables.
5832
5833 * config/i386/i386.c (ix86_target_string): Replace int with
5834 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
5835 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
5836 (pta_flags): Removed.
5837 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
5838 (pta): Use HOST_WIDE_INT on flags.
5839 (builtin_isa): Use HOST_WIDE_INT on isa.
5840 (ix86_add_new_builtins): Likewise.
5841 (def_builtin): Use HOST_WIDE_INT on mask.
5842 (def_builtin_const): Likewise.
5843 (builtin_description): Likewise.
5844
5845 * config/i386/i386.opt (ix86_isa_flags): Replace int with
5846 HOST_WIDE_INT.
5847 (ix86_isa_flags_explicit): Likewise.
5848 (x_ix86_isa_flags_explicit): Likewise.
5849
5850 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
5851
5852 PR rtl-optimization/50107
5853 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
5854 (ira_hard_reg_in_set_p): New.
5855
5856 * ira-color.c (calculate_saved_nregs): New.
5857 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
5858 hard regs.
5859 (allocno_reload_assign, fast_allocation): Use
5860 ira_hard_reg_set_intersection_p instead of
5861 ira_hard_reg_not_in_set_p.
5862
5863 * ira.c (setup_reg_renumber): Use
5864 ira_hard_reg_set_intersection_p instead of
5865 ira_hard_reg_not_in_set_p.
5866 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
5867 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
5868
5869 * ira-costs.c (ira_tune_allocno_costs): Use
5870 ira_hard_reg_set_intersection_p instead of
5871 ira_hard_reg_not_in_set_p.
5872
5873 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
5874 Igor Zamyatin <igor.zamyatin@intel.com>
5875
5876 * hwint.h (HOST_WIDE_INT_1): New.
5877
5878 * opt-functions.awk (switch_bit_fields): Initialize the
5879 host_wide_int field.
5880 (host_wide_int_var_name): New.
5881 (var_type_struct): Check and return HOST_WIDE_INT.
5882
5883 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
5884
5885 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
5886
5887 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
5888 check masks for HOST_WIDE_INT.
5889
5890 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
5891 (option_enabled): Likewise.
5892 (get_option_state): Likewise.
5893
5894 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
5895 to HOST_WIDE_INT.
5896
5897 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5898 Marc Glisse <marc.glisse@normalesup.org>
5899
5900 PR libstdc++-v3/1773
5901 * target.def (decl_mangling_context): New C++ hook.
5902 * doc/tm.texi: Regenerate.
5903 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
5904 * config/sol2-protos.h: Group by source file.
5905 (solaris_cxx_decl_mangling_context): Declare.
5906 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
5907 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
5908 Use $<.
5909 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
5910 Add sol2-stubs.o to extra_objs.
5911
5912 2011-08-18 Jakub Jelinek <jakub@redhat.com>
5913
5914 PR target/50009
5915 * stor-layout.c (update_alignment_for_field): Don't ICE on
5916 packed flexible array members if ms_bitfield_layout_p.
5917
5918 PR target/50092
5919 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
5920 on the result before returning it.
5921
5922 PR debug/50017
5923 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
5924 is a debug stmt, use location of the first non-debug stmt after it.
5925
5926 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
5927
5928 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
5929 (arm_size_rtx_costs): Likewise.
5930
5931 2011-08-18 Richard Guenther <rguenther@suse.de>
5932
5933 * tree.h (tree_int_cst_msb): Remove.
5934 * tree.c (tree_int_cst_msb): Likewise.
5935 (tree_int_cst_sign_bit): Move from ...
5936 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
5937
5938 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
5939
5940 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
5941 * doc/tm.texi: Regenerate.
5942 * target.def (rtx_costs): Add an opno parameter.
5943 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5944 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5945 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
5946 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
5947 * cse.c (COST_IN): Add an opno parameter.
5948 (notreg_cost): Likewise. Update call to rtx_cost.
5949 (COST, fold_rtx): Update accordingly.
5950 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
5951 * expmed.c (emit_store_flag): Likewise.
5952 * optabs.c (avoid_expensive_constant): Add an opno parameter.
5953 Update call to rtx_cost.
5954 (expand_binop_directly, expand_binop): Likewise.
5955 (expand_twoval_binop, prepare_cmp_insn): Likewise.
5956 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
5957 (set_src_cost, get_full_set_src_cost): Update accordingly.
5958 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
5959 to target hook.
5960 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
5961 (default_adress_cost): Update calls to rtx_cost.
5962
5963 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
5964 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
5965 (arm_rtx_costs): Add an opno parameter.
5966 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
5967 adjust any recursive rtx-cost calls.
5968 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
5969 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5970 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5971 * config/cris/cris.c (cris_rtx_costs): Likewise.
5972 * config/frv/frv.c (frv_rtx_costs): Likewise.
5973 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5974 * config/i386/i386.c (ix86_rtx_costs): Likewise.
5975 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5976 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5977 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5978 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5979 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5980 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5981 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5982 * config/mep/mep.c (mep_rtx_cost): Likewise.
5983 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5984 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
5985 (mips_zero_extend_cost): Add an opno parameter.
5986 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5987 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
5988 to rtx_cost.
5989 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
5990 rtx-cost calls.
5991 * config/pa/pa.c (hppa_rtx_costs): Likewise.
5992 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5993 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
5994 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5995 (rs6000_debug_rtx_costs): Likewise.
5996 * config/s390/s390.c (s390_rtx_costs): Likewise.
5997 * config/score/score-protos.h (score_rtx_costs): Likewise.
5998 * config/score/score.c (score_rtx_costs): Likewise.
5999 * config/sh/sh.c (andcosts): Update call to rtx_cost.
6000 (sh_rtx_costs): Add an opno parameter.
6001 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6002 * config/spu/spu.c (spu_rtx_costs): Likewise.
6003 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6004 * config/v850/v850.c (v850_rtx_costs): Likewise.
6005 * config/vax/vax.c (vax_rtx_costs): Likewise.
6006 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6007
6008 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6009
6010 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6011 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6012 rtx_cost.
6013 * calls.c (precompute_register_parameters): Likewise.
6014 * combine.c (expand_compound_operation, make_extraction): Likewise.
6015 (force_to_mode, distribute_and_simplify_rtx): Likewise.
6016 * dse.c (find_shift_sequence): Likewise.
6017 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6018 * expr.c (compress_float_constant): Likewise.
6019 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6020 * gcse.c (want_to_gcse_p): Likewise.
6021 * ifcvt.c (noce_try_sign_mask): Likewise.
6022 * loop-doloop.c (doloop_optimize): Likewise.
6023 * loop-invariant.c (create_new_invariant): Likewise.
6024 * optabs.c (avoid_expensive_constant): Likewise.
6025 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6026 (try_replace_in_use, reload_cse_move2add): Likewise.
6027 * reload1.c (calculate_elim_costs_all_insns): Likewise.
6028 (note_reg_elim_costly): Likewise.
6029 * rtlanal.c (insn_rtx_cost): Likewise.
6030 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6031 * stmt.c (lshift_cheap_p): Likewise.
6032 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6033 * config/avr/avr.c (final_prescan_insn): Likewise.
6034 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6035 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6036
6037 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6038
6039 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6040 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6041 * cfgloopanal.c (seq_cost): Likewise.
6042 * loop-invariant.c (create_new_invariant): Likewise.
6043 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6044 (reload_cse_move2add): Use get_full_set_rtx_cost.
6045
6046 2011-08-18 Richard Guenther <rguenther@suse.de>
6047
6048 * expr.c (get_inner_reference): Fix typo in last change.
6049
6050 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
6051 Joseph Myers <joseph@codesourcery.com>
6052
6053 PR tree-optimization/49963
6054 * hwint.c (absu_hwi): Define.
6055 * hwint.h (absu_hwi): Declare.
6056 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6057 of abs_hwi.
6058 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6059 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6060
6061 2011-08-18 Richard Guenther <rguenther@suse.de>
6062
6063 * expr.c (get_inner_reference): Sign-extend the constant
6064 twos-complement offset before doing arbitrary precision
6065 arithmetic on it.
6066 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6067 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6068 to get_constraint_for_ptr_offset.
6069
6070 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
6071
6072 PR target/50068
6073 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6074
6075 2011-08-17 Richard Guenther <rguenther@suse.de>
6076
6077 * tree.h (convert_to_ptrofftype_loc): New function.
6078 (convert_to_ptrofftype): Define.
6079 * builtins.c (expand_builtin_bzero): Use size_type_node.
6080 (fold_builtin_bzero): Likewise.
6081 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6082 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6083 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6084 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6085 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6086 * fold-const.c (build_range_check): Negate using the original type.
6087 (fold_unary_loc): Use fold_build_pointer_plus_loc.
6088 * gimple-fold.c (gimple_adjust_this_by_delta): Use
6089 convert_to_ptrofftype.
6090 * gimplify.c (gimplify_self_mod_expr): Likewise.
6091 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6092 (graphite_create_new_loop_guard): Likewise.
6093 * graphite-sese-to-poly.c (my_long_long): Remove.
6094 (scop_ivs_can_be_represented): Adjust.
6095 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6096 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6097 * tree-loop-distribution.c (build_size_arg_loc): Use
6098 size_type_node.
6099 (generate_memset_zero): Simplify.
6100 * tree-mudflap.c: Use fold_convert, not convert.
6101 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6102 its own type.
6103 (determine_offset): Likewise for DR_STEP.
6104 (valid_initializer_p): Likewise.
6105 * tree-profile.c (prepare_instrumented_value): Convert the pointer
6106 to an integer type of same size.
6107 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6108 to sizetype without need.
6109 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6110 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6111 * tree-ssa-loop-manip.c (create_iv): Likewise.
6112 (determine_exit_conditions): Adjust comment.
6113 * tree-ssa-pre.c (create_expression_by_pieces): Use
6114 convert_to_ptrofftype.
6115 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6116 * varasm.c (array_size_for_constructor): Compute using double_ints.
6117
6118 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6119
6120 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6121 when generating an integer result where possible. Short-cut
6122 comparison against 0 also for QImode.
6123
6124 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6125
6126 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6127 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6128 prototype.
6129 * config/spu/spu.c (spu_legitimize_reload_address): New function.
6130 (spu_legitimate_address_p): Do not check displacement if the base
6131 is an eliminable stack register.
6132
6133 2011-08-16 Anatoly Sokolov <aesok@post.ru>
6134
6135 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6136 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6137 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6138 m32c_preferred_output_reload_class): Remove.
6139 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6140 Change rclass argument and return types to reg_class_t. Use
6141 reg_class_subset_p instead of class_sizes.
6142 (m32c_preferred_output_reload_class): Make static. Change rclass
6143 argument and return types to reg_class_t.
6144 (TARGET_PREFERRED_RELOAD_CLASS,
6145 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6146
6147 2011-08-16 Kai Tietz <ktietz@redhat.com>
6148
6149 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6150
6151 2011-08-16 Richard GUenther <rguenther@suse.de>
6152
6153 PR tree-optimization/50082
6154 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6155 warnings here, instead of ...
6156 (ssa_forward_propagate_and_combine): ... here.
6157 (forward_propagate_into_comparison_1): Adjust.
6158 (forward_propagate_into_comparison): Likewise.
6159 (forward_propagate_into_gimple_cond): Likewise.
6160 (forward_propagate_into_cond): Likewise.
6161
6162 2011-08-16 Andreas Schwab <schwab@redhat.com>
6163
6164 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6165 instead of ggc_alloc_zone_vec_rtvec_def.
6166
6167 2011-08-16 Richard Guenther <rguenther@suse.de>
6168
6169 * tree.h (ptrofftype_p): New helper function.
6170 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6171 offset verification.
6172 (verify_gimple_assign_binary): Likewise.
6173 * tree.c (build2_stat): Likewise.
6174 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6175 (reset_evolution_in_loop): Likewise.
6176 * tree-chrec.h (build_polynomial_chrec): Likewise.
6177
6178 2011-08-16 Liang Wang <lwang1@marvell.com>
6179
6180 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6181 ggc_alloc_zone_vec_rtvec_def.
6182
6183 2011-08-16 Richard Guenther <rguenther@suse.de>
6184
6185 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6186 helper factored out from ...
6187 (extract_range_from_binary_expr_1): ... here. Re-structure
6188 to not glob handling too different tree codes.
6189
6190 2011-08-15 Richard Henderson <rth@redhat.com>
6191
6192 PR middle-end/50006
6193 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6194 setting out to include allocate_stack named pattern as well.
6195 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6196 * stmt.c (expand_stack_restore): Likewise.
6197
6198 2011-08-15 Richard Guenther <rguenther@suse.de>
6199
6200 PR middle-end/50082
6201 * fold-const.c (maybe_canonicalize_comparison_1): Properly
6202 convert the modified operand to the other operand type.
6203 (fold_comparison): Call maybe_canonicalize_comparison_1 with
6204 useless conversions stripped from comparison operands.
6205
6206 2011-08-15 Richard Guenther <rguenther@suse.de>
6207
6208 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6209 (extract_range_from_unary_expr_1): Restructure.
6210
6211 2011-08-15 Richard Guenther <rguenther@suse.de>
6212
6213 PR tree-optimization/50058
6214 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6215 copy matching.
6216
6217 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6218
6219 PR target/50022
6220 * config/arm/arm.c (output_move_double): Add 2 parameters
6221 to count the number of insns emitted and whether to emit or not.
6222 Use the flag to decide when to emit and count number of instructions
6223 that will be emitted.
6224 Handle case where output_move_double might be called for calculating
6225 lengths with an invalid constant.
6226 (arm_count_output_move_double_insns): Define.
6227 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6228 (output_move_double): Adjust prototype.
6229 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6230 output_move_double.
6231 ("*movdi_vfp_cortexa8"): Likewise and add attribute
6232 for ce_count.
6233 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6234 ("*movdf_soft_insn"): Likewise.
6235 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6236 ("*cirrus_thumb2_movdi"): Likewise.
6237 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6238 ("*cirrus_movdf_hard_insn"): Likewise.
6239 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6240 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6241 ("mov<mode>_internal VMMX"): Likewise.
6242 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6243
6244 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
6245
6246 * config/i386/i386.c (ix86_expand_round_sse4): New function.
6247 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6248 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6249 for TARGET_ROUND.
6250
6251 (rint<mode>2): Simplify TARGET_ROUND check.
6252 (floor<mode>2): Ditto.
6253 (ceil<mode>2): Ditto.
6254 (btrunc<mode>2): Ditto.
6255
6256 2011-08-14 Anatoly Sokolov <aesok@post.ru>
6257
6258 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6259 as mmix_preferred_output_reload_class.
6260
6261 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
6262
6263 * PR target/49903
6264 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6265 (branch_unspec): New insn.
6266 (branch): Beauty farm.
6267 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
6268 to be IF_THEN_ELSE.
6269 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6270 New static functions.
6271 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
6272 Use CONST_INT_P. Beauty.
6273
6274 2011-08-12 Richard Henderson <rth@redhat.com>
6275
6276 PR rtl-opt/49994
6277 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6278 * sched-deps.c (init_deps): Clear it.
6279 (deps_analyze_insn): Consume it.
6280 (sched_analyze_insn): Fill it.
6281
6282 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6283
6284 PR target/48328
6285 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6286 for tbh instructions.
6287
6288 2011-08-12 Diego Novillo <dnovillo@google.com>
6289
6290 * data-streamer.h (streamer_write_zero): Rename from output_zero.
6291 (streamer_write_uhwi): Rename from lto_output_uleb128.
6292 (streamer_write_hwi): Rename from output_sleb128.
6293 (streamer_write_string): Rename from lto_output_string.
6294 (streamer_string_index): Rename from lto_string_index.
6295 (streamer_write_string_with_length): Rename from
6296 lto_output_string_with_length.
6297 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6298 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6299 (streamer_read_string): Rename from lto_input_string.
6300 (streamer_read_indexed_string): Rename from input_string_internal.
6301 (streamer_read_uhwi): Rename from lto_input_uleb128.
6302 (streamer_read_hwi): Rename from lto_input_sleb128.
6303 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6304 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6305 (streamer_write_enum): Rename from lto_output_enum.
6306 (streamer_read_enum): Rename from lto_input_enum.
6307 (streamer_write_record_start): Rename from output_record_start.
6308 (streamer_read_record_start): Rename from input_record_start.
6309 (streamer_write_bitpack): Rename from lto_output_bitpack.
6310 (streamer_read_bitpack): Rename from lto_input_bitpack.
6311 (streamer_write_char_stream): Rename from lto_output_1_stream.
6312 (streamer_read_uchar): Rename from lto_input_1_unsigned.
6313 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6314 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6315 (streamer_read_string_cst): Rename from input_string_cst.
6316 (streamer_read_chain): Rename from lto_input_chain.
6317 (streamer_alloc_tree): Rename from lto_materialize_tree.
6318 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6319 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6320 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6321 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6322 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6323 (streamer_write_chain): Rename from lto_output_chain.
6324 (streamer_write_tree_header): Rename from lto_output_tree_header.
6325 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6326 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6327 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6328 (streamer_write_builtin): Rename from lto_output_builtin_tree.
6329 (streamer_check_handled_ts_structures): Rename from
6330 check_handled_ts_structures.
6331 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6332 (streamer_tree_cache_insert_at): Rename from
6333 lto_streamer_cache_insert_at.
6334 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6335 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6336 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6337 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6338 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6339 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6340 (write_identifier): Rename from output_identifier.
6341 (write_ts_common_tree_pointers): Rename from
6342 lto_output_ts_common_tree_pointers.
6343 (write_ts_vector_tree_pointers): Rename from
6344 lto_output_ts_vector_tree_pointers.
6345 (write_ts_complex_tree_pointers): Rename from
6346 lto_output_ts_complex_tree_pointers.
6347 (write_ts_decl_minimal_tree_pointers): Rename from
6348 lto_output_ts_decl_minimal_tree_pointers.
6349 (write_ts_decl_common_tree_pointers): Rename from
6350 lto_output_ts_decl_common_tree_pointers.
6351 (write_ts_decl_non_common_tree_pointers): Rename from
6352 lto_output_ts_decl_non_common_tree_pointers.
6353 (write_ts_decl_with_vis_tree_pointers): Rename from
6354 lto_output_ts_decl_with_vis_tree_pointers.
6355 (write_ts_field_decl_tree_pointers): Rename from
6356 lto_output_ts_field_decl_tree_pointers.
6357 (write_ts_function_decl_tree_pointers): Rename from
6358 lto_output_ts_function_decl_tree_pointers.
6359 (write_ts_type_common_tree_pointers): Rename from
6360 lto_output_ts_type_common_tree_pointers.
6361 (write_ts_type_non_common_tree_pointers): Rename from
6362 lto_output_ts_type_non_common_tree_pointers.
6363 (write_ts_list_tree_pointers): Rename from
6364 lto_output_ts_list_tree_pointers.
6365 (write_ts_vec_tree_pointers): Rename from
6366 lto_output_ts_vec_tree_pointers.
6367 (write_ts_exp_tree_pointers): Rename from
6368 lto_output_ts_exp_tree_pointers.
6369 (write_ts_block_tree_pointers): Rename from
6370 lto_output_ts_block_tree_pointers.
6371 (write_ts_binfo_tree_pointers): Rename from
6372 lto_output_ts_binfo_tree_pointers.
6373 (write_ts_constructor_tree_pointers): Rename from
6374 lto_output_ts_constructor_tree_pointers.
6375 (write_ts_target_option): Rename from lto_output_ts_target_option.
6376 (write_ts_translation_unit_decl_tree_pointers): Rename from
6377 lto_output_ts_translation_unit_decl_tree_pointers.
6378 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6379 Rename from lto_streamer_cache_add_to_node_array.
6380 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6381 (record_common_node): Rename from lto_record_common_node.
6382
6383 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6384 declarations.
6385 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6386 function.
6387 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6388 unused function.
6389 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6390 (ipa-reference.o): Likewise.
6391 * lto-section-out.c: Include data-streamer.h.
6392 * ipa-reference.c: Include data-streamer.h.
6393
6394 2011-08-12 Nick Clifton <nickc@redhat.com>
6395
6396 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6397 * doc/md.texi (cmpstrn): Note that the comparison stops if both
6398 fetched bytes are zero.
6399 (cmpstr): Likewise.
6400 (cmpmem): Note that the comparison does not stop if both of the
6401 fetched bytes are zero.
6402
6403 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
6404
6405 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6406 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6407 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6408 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6409 to integer_type_node.
6410 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6411 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6412 * builtins.c (expand_builtin_in): Ditto.
6413 (mathfn_built_in_1): Ditto.
6414 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6415 BUILT_IN_IFLOOR.
6416 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6417 BUILT_IN_IROUND.
6418 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6419 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6420 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6421
6422 2011-08-12 Richard Guenther <rguenther@suse.de>
6423
6424 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6425
6426 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
6427
6428 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6429
6430 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
6431
6432 * config/arm/arm.c (get_label_padding): New function.
6433 (create_fix_barrier, arm_reorg): Use it.
6434
6435 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
6436
6437 PR target/49781
6438 * config/i386/i386.md (*lea_5_zext): New.
6439 (*lea_6_zext): Ditto.
6440 * config/i386/predicates.md (const_32bit_mask): New predicate.
6441 (lea_address_operand): Reject AND.
6442 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6443 const_32bit_mask immediate.
6444 (ix86_print_operand_address): Handle AND.
6445 (memory_address_length): Ditto.
6446
6447 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
6448 Brian Hackett <bhackett1024@gmail.com>
6449
6450 * plugin.def: Add event for finish_decl.
6451 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6452 * c-decl.c (finish_decl): Invoke callbacks on above event.
6453 * doc/plugins.texi: Document above event.
6454
6455 2011-08-11 Richard Guenther <rguenther@suse.de>
6456
6457 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6458 lookups, make looking through aggregate copies stronger.
6459
6460 2011-08-11 Richard Henderson <rth@redhat.com>
6461
6462 PR bootstrap/50018
6463 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6464
6465 2011-08-11 Richard Guenther <rguenther@suse.de>
6466
6467 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6468 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6469 (vrp_visit_stmt): Likewise.
6470
6471 2011-08-11 Richard Guenther <rguenther@suse.de>
6472
6473 PR middle-end/50040
6474 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6475 load of the other piece with TREE_NO_WARNING.
6476 * tree-flow.h (warn_uninit): Adjust prototype.
6477 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6478 the base variable and the expression that is used separately.
6479 Properly query all TREE_NO_WARNING flags.
6480 (struct walk_data): Remove.
6481 (warn_uninitialized_var): Likewise.
6482 (warn_uninitialized_vars): Do not walk gimple pieces but simply
6483 look at all SSA uses of the statement. Handle unused memory
6484 separately.
6485 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6486
6487 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
6488
6489 * config/rx/rx.md (movsicc): Allow register to register transfers.
6490 (*movsicc): Likewise.
6491 (*stcc): Restrict this pattern to EQ and NE compares.
6492 (*stcc_reg): New pattern. Works for any comparison but only for
6493 register transfers.
6494
6495 2011-08-11 Diego Novillo <dnovillo@google.com>
6496
6497 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6498 Call stream_write_tree instead of output_record_start.
6499 (lto_output_ts_binfo_tree_pointers): Likewise.
6500
6501 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6502 Convert it to a macro.
6503 (stream_read_tree): Likewise.
6504
6505 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6506 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6507
6508 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6509 and tree_read_bitfields.
6510 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6511 (lto_write_tree): Call it.
6512 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6513 * streamer-hooks.h (struct streamer_hooks): Remove fields
6514 name, is_streamable and alloc_tree. Update all users.
6515 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6516 (lto_materialize_tree): ... here.
6517 Handle CALL_EXPR codes.
6518 Remove call to lto_streamer_cache_append.
6519 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6520 * tree-streamer.h (tree_read_bitfields): Declare.
6521
6522 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6523 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6524 * tree-streamer.h (stream_read_tree): New. Replace all calls
6525 to lto_input_tree with it.
6526 (stream_write_tree): New. Replace all calls to lto_output_tree,
6527 lto_output_tree_ref and lto_output_tree_or_ref with it.
6528 * lto-streamer-in.c (lto_read_tree): Inline code from
6529 lto_streamer_read_tree.
6530 (lto_input_tree): Move from tree-streamer-in.c.
6531 * lto-streamer-out.c (lto_output_tree_ref): Make static.
6532 Remove handling of NULL values for EXPR.
6533 Do not handle EXPRs that are not indexable.
6534 (lto_write_tree): Move from tree-streamer-out.c.
6535 Inline lto_streamer_write_tree.
6536 (lto_output_tree): Move from tree-streamer-out.c.
6537 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6538 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6539 (lto_preload_common_nodes): Likewise.
6540 Remove assertions and adjustments for nodes
6541 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6542 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6543 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6544 * lto-streamer.h (lto_input_tree): Declare.
6545 (lto_output_tree_ref): Remove.
6546 * streamer-hooks.h (struct streamer_hooks): Remove fields
6547 preload_common_nodes, indexable_with_decls_p,
6548 pack_value_fields, unpack_value_fields and output_tree_header.
6549 Update all users.
6550 * tree-streamer-in.c (lto_materialize_tree): Make extern.
6551 (lto_input_tree_pointers): Likewise.
6552 (lto_read_tree): Move to lto-streamer-in.c.
6553 (lto_input_integer_cst): Make extern.
6554 (lto_get_pickled_tree): Likewise.
6555 (lto_get_builtin_tree): Likewise.
6556 (lto_input_tree): Move to lto-streamer-in.c.
6557 * tree-streamer-out.c (pack_value_fields): Make extern.
6558 (lto_output_tree_or_ref): Remove. Replace all callers with
6559 calls to stream_write_tree.
6560 (lto_output_builtin_tree): Make extern.
6561 (lto_streamer_write_tree): Inline into lto_write_tree.
6562 (lto_output_tree_pointers): Make extern.
6563 (lto_output_tree_header): Likewise.
6564 (lto_output_integer_cst): Likewise.
6565 (lto_write_tree): Move to lto-streamer-out.c.
6566 (lto_output_tree): Likewise.
6567 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6568 (preload_common_nodes): Likewise.
6569 (lto_streamer_cache_create): Call it.
6570 * tree-streamer.h: Include streamer-hooks.h.
6571 (stream_write_tree): New.
6572 (stream_read_tree): New.
6573 (lto_input_tree): Remove.
6574 (lto_materialize_tree): Declare.
6575 (lto_input_tree_pointers): Declare.
6576 (lto_get_pickled_tree): Declare.
6577 (lto_get_builtin_tree): Declare.
6578 (lto_input_integer_cst): Declare.
6579 (lto_output_tree_header): Declare.
6580 (pack_value_fields): Declare.
6581 (lto_output_tree_pointers): Declare.
6582 (lto_output_integer_cst): Declare.
6583 (lto_output_builtin_tree): Declare.
6584
6585 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6586
6587 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6588 only if producer writes to the register given by regno.
6589
6590 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6591 Alexander Monakov <amonakov@ispras.ru>
6592
6593 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6594 (sched_get_condition_with_rev_uncached): ... this. Factor out
6595 condition caching logic into ...
6596 (sched_get_condition_with_rev): ... this. Reimplement. Do not
6597 attempt to use cache for instructions with zero luid.
6598 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6599 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6600
6601 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6602
6603 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6604 get_seqno_for_a_jump. Update the caller.
6605 (get_seqno_by_succs): New. Use it ...
6606 (get_seqno_for_a_jump): ... here to find a seqno if looking at
6607 predecessors was not sufficient.
6608 (get_seqno_by_preds): Include head in iteration range, exclude insn.
6609
6610 2011-08-11 Dmitry Melnik <dm@ispras.ru>
6611
6612 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6613
6614 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6615
6616 * sel-sched-ir.h (register_unavailable_p): Declare.
6617 * sel-sched-ir.c (register_unavailable_p): New. Use it...
6618 (set_unavailable_target_for_expr): ... here to properly test
6619 availability of a register.
6620 (speculate_expr): Ditto.
6621 * sel-sched.c (substitute_reg_in_expr): Ditto.
6622 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6623
6624 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
6625
6626 * sel-sched.c (verify_target_availability): Fix usage of
6627 hard_regno_nregs.
6628
6629 2011-08-11 Dmitry Melnik <dm@ispras.ru>
6630
6631 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
6632 recognized by cannot_copy_insn_p hook and volatile instructions.
6633
6634 2011-08-11 Dmitry Melnik <dm@ispras.ru>
6635
6636 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
6637
6638 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
6639
6640 * doc/md.texi (define_bypass): Say that the instruction names can
6641 be filename-style globs.
6642 * Makefile.in (FNMATCH_H): Define.
6643 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
6644 * genattrtab.c: Include fnmatch.h.
6645 (bypass_list): Change field name from "insn" to "pattern".
6646 (gen_bypass_1): Update accordingly.
6647 (process_bypasses): Use fnmatch to check for matches between
6648 insn reservations and define_bypasses.
6649 * genautomata.c: Include fnmatch.h.
6650 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
6651 and out_pattern respectively.
6652 (gen_bypass, insert_bypass): Update accordingly.
6653 (for_each_matching_insn, process_bypass_2, process_bypass_1)
6654 (process_bypass): New functions.
6655 (process_decls): Use process_bypass. Update after field name changes.
6656
6657 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
6658
6659 PR target/49687
6660 * config/avr/avr.md (smulqi3_highpart): New insn.
6661 (umulqi3_highpart): New insn.
6662 (*subqi3.ashiftrt7): New insn.
6663 (smulhi3_highpart): New expander.
6664 (umulhi3_highpart): Nex expander.
6665 (*smulhi3_highpart_call): New insn.
6666 (*umulhi3_highpart_call): New insn.
6667 (extend_u): New code attribute.
6668 (extend_prefix): Rename code attribute to extend_su.
6669 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
6670 widening QI/HI multiply.
6671
6672 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
6673
6674 PR tree-optimization/50039
6675 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
6676 that DEF_STMT has a stmt_vec_info.
6677
6678 2011-08-10 Richard Guenther <rguenther@suse.de>
6679
6680 * tree.h (can_trust_pointer_alignment): Remove.
6681 * builtins.c (can_trust_pointer_alignment): Remove.
6682
6683 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6684
6685 * c-typeck.c (scalar_to_vector): New function. Try scalar to
6686 vector conversion.
6687 (stv_conv): New enum for scalar_to_vector return type.
6688 (build_binary_op): Adjust.
6689 * doc/extend.texi: Description of scalar to vector expansion.
6690
6691 2011-08-10 Richard Guenther <rguenther@suse.de>
6692
6693 * tree.h (get_pointer_alignment): Remove max-align argument.
6694 (get_object_alignment): Likewise.
6695 * builtins.c (get_object_alignment_1): Adjust.
6696 (get_object_alignment): Remove max-align argument.
6697 (get_pointer_alignment): Likewise.
6698 (expand_builtin_strlen): Adjust.
6699 (expand_builtin_memcpy): Likewise.
6700 (expand_builtin_mempcpy_args): Likewise.
6701 (expand_builtin_strncpy): Likewise.
6702 (expand_builtin_memset_args): Likewise.
6703 (expand_builtin_memcmp): Likewise.
6704 (expand_builtin_strcmp): Likewise.
6705 (expand_builtin_strncmp): Likewise.
6706 (get_builtin_sync_mem): Likewise.
6707 (fold_builtin_memset): Likewise.
6708 (fold_builtin_memory_op): Likewise.
6709 (expand_builtin_memory_chk): Likewise.
6710 * emit-rtl.c (get_mem_align_offset): Likewise.
6711 (set_mem_attributes_minus_bitpos): Likewise.
6712 * expr.c (expand_assignment): Likewise.
6713 (expand_expr_real_1): Likewise.
6714 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
6715 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6716 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
6717 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
6718 * value-prof.c (gimple_stringops_transform): Likewise.
6719
6720 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
6721
6722 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
6723 * doc/tm.texi: Regenerate.
6724
6725 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
6726
6727 PR target/29560
6728 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
6729 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
6730 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
6731 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
6732 shift target is unused.
6733
6734 2011-08-10 Richard Guenther <rguenther@suse.de>
6735
6736 PR tree-optimization/49937
6737 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
6738 using get_object_alignment_1.
6739
6740 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
6741
6742 * config/i386/i386.c (ix86_emit_i387_round): New function.
6743 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
6744 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
6745 Use ix86_emit_i387_round to expand round function for i387 math.
6746 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
6747 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
6748
6749 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6750
6751 * config/sync.c: Move to ../libgcc.
6752 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
6753 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
6754 Remove.
6755
6756 2011-08-09 Anatoly Sokolov <aesok@post.ru>
6757
6758 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
6759 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
6760 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
6761 Change 'from' and 'to' arguments type to reg_class_t.
6762 (TARGET_REGISTER_MOVE_COST): Define.
6763
6764 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
6765
6766 PR target/50026
6767 Revert:
6768 PR rtl-optimization/49990
6769 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6770 ignore classes which can not change mode.
6771 (find_costs_and_classes): Ditto.
6772
6773 2011-08-09 Richard Guenther <rguenther@suse.de>
6774
6775 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
6776 information for ranges with only negative values.
6777 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
6778 BIT_AND_EXPR handling to handle ranges with negative values.
6779
6780 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
6781
6782 * config/i386/i386.c: Remove traling spaces.
6783 * config/i386/sse.md: Likewise.
6784 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
6785 (*fma_fmsub_<mode>): Likewise.
6786 (*fma_fnmadd_<mode>): Likewise.
6787 (*fma_fnmsub_<mode>): Likewise.
6788
6789 2011-08-09 Nick Clifton <nickc@redhat.com>
6790
6791 * config/rx/rx.md: Disable extender peepholes at -O3.
6792
6793 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
6794
6795 PR target/49781
6796 * config/i386/i386.md (reload_noff_load): New.
6797 (reload_noff_store): Ditto.
6798 * config/i386/i386.c (ix86_secondary_reload): Use
6799 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
6800 double-word moves from/to non-offsetable addresses instead of
6801 generating XMM temporary.
6802
6803 2011-08-09 Anatoly Sokolov <aesok@post.ru>
6804
6805 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6806
6807 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
6808
6809 PR tree-optimization/50014
6810 * tree-vect-loop.c (vectorizable_reduction): Get def type before
6811 calling vect_get_vec_def_for_stmt_copy ().
6812
6813 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
6814
6815 PR rtl-optimization/49990
6816 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
6817 ignore classes which can not change mode.
6818 (find_costs_and_classes): Ditto.
6819
6820 2011-08-08 Richard Henderson <rth@redhat.com>
6821
6822 PR middle-end/49990
6823 * config/i386/i386.c (ix86_expand_prologue): Call
6824 for SEH target gen_prologue_use instead of gen_blockage
6825 at prologue's end.
6826
6827 2011-08-08 Martin Jambor <mjambor@suse.cz>
6828
6829 PR middle-end/49923
6830 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
6831 memory alignment.
6832
6833 2011-08-08 Diego Novillo <dnovillo@google.com>
6834
6835 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
6836 (DATA_STREAMER_H): New.
6837 (GIMPLE_STREAMER_H): New.
6838 (TREE_STREAMER_H): New.
6839 (STREAMER_HOOKS_H): New.
6840 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
6841 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
6842 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
6843 (data-streamer.o): New.
6844 (data-streamer-in.o): New.
6845 (data-streamer-out.o): New.
6846 (gimple-streamer-in.o): New.
6847 (gimple-streamer-out.o): New.
6848 (streamer-hooks.o): New.
6849 (tree-streamer.o): New.
6850 (tree-streamer-in.o): New.
6851 (tree-streamer-out.o): New.
6852 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6853 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
6854 GIMPLE_STREAMER_H and TREE_STREAMER_H.
6855 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
6856 GIMPLE_STREAMER_H and TREE_STREAMER_H.
6857 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
6858 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
6859 (ipa-inline-analysis.o): Likewise.
6860 (ipa-pure-const.o): Likewise.
6861 * data-streamer-in.c: New.
6862 * data-streamer-out.c: New.
6863 * data-streamer.c: New.
6864 * data-streamer.h: New.
6865 * gimple-streamer-in.c: New.
6866 * gimple-streamer-out.c: New.
6867 * gimple-streamer.h: New.
6868 * ipa-inline-analysis.c: Include data-streamer.h.
6869 * ipa-prop.c: Include data-streamer.h.
6870 * ipa-pure-const.c: Include data-streamer.h.
6871 * lto-cgraph.c: Include data-streamer.h.
6872 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
6873 (lto_input_widest_uint_uleb128): Likewise.
6874 (lto_input_sleb128): Likewise.
6875 (bp_unpack_var_len_unsigned): Likewise.
6876 (bp_unpack_var_len_int): Likewise.
6877 * lto-section-out.c (lto_output_uleb128_stream): Move to
6878 data-streamer-out.c.
6879 (lto_output_widest_uint_uleb128_stream): Likewise.
6880 (lto_output_sleb128_stream): Likewise.
6881 (bp_pack_var_len_unsigned): Likewise.
6882 (bp_pack_var_len_int): Likewise.
6883 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
6884 (struct string_slot): Remove. Update all users.
6885 (lto_tag_check_set): Make extern.
6886 (lto_tag_check_range): Move to lto-streamer.h.
6887 (lto_tag_check): Likewise.
6888 (hash_string_slot_node): Remove. Update all users.
6889 (eq_string_slot_node): Remove. Update all users.
6890 (string_for_index): Move to data-streamer-in.c
6891 (input_string_internal): Likewise.
6892 (input_string_cst): Move to tree-streamer-in.c.
6893 (input_identifier): Likewise.
6894 (lto_input_string): Move to data-streamer-in.c
6895 (input_record_start): Move to data-streamer.h
6896 (canon_file_name): Use new definition of struct string_slot
6897 from data-streamer.h. Set S_SLOT.LEN.
6898 (lto_input_location): Make extern.
6899 (lto_input_chain): Move to tree-streamer-in.c.
6900 (lto_init_eh): Make extern.
6901 (input_phi): Move to gimple-streamer-in.c.
6902 (input_gimple_stmt): Likewise.
6903 (input_bb): Likewise.
6904 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
6905 (unpack_ts_real_cst_value_fields): Likewise.
6906 (unpack_ts_fixed_cst_value_fields): Likewise.
6907 (unpack_ts_decl_common_value_fields): Likewise.
6908 (unpack_ts_decl_wrtl_value_fields): Likewise.
6909 (unpack_ts_decl_with_vis_value_fields): Likewise.
6910 (unpack_ts_function_decl_value_fields): Likewise.
6911 (unpack_ts_type_common_value_fields): Likewise.
6912 (unpack_ts_block_value_fields): Likewise.
6913 (unpack_ts_translation_unit_decl_value_fields): Likewise.
6914 (unpack_value_fields): Likewise.
6915 (lto_materialize_tree): Likewise.
6916 (lto_input_ts_common_tree_pointers): Likewise.
6917 (lto_input_ts_vector_tree_pointers): Likewise.
6918 (lto_input_ts_complex_tree_pointers): Likewise.
6919 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
6920 (lto_input_ts_decl_common_tree_pointers): Likewise.
6921 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
6922 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
6923 (lto_input_ts_field_decl_tree_pointers): Likewise.
6924 (lto_input_ts_function_decl_tree_pointers): Likewise.
6925 (lto_input_ts_type_common_tree_pointers): Likewise.
6926 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6927 (lto_input_ts_list_tree_pointers): Likewise.
6928 (lto_input_ts_vec_tree_pointers): Likewise.
6929 (lto_input_ts_exp_tree_pointers): Likewise.
6930 (lto_input_ts_block_tree_pointers): Likewise.
6931 (lto_input_ts_binfo_tree_pointers): Likewise.
6932 (lto_input_ts_constructor_tree_pointers): Likewise.
6933 (lto_input_ts_target_option): Likewise.
6934 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
6935 (lto_input_tree_pointers): Likewise.
6936 (lto_get_pickled_tree): Likewise.
6937 (lto_get_builtin_tree): Likewise.
6938 (lto_read_tree): Likewise.
6939 (lto_input_integer_cst): Likewise.
6940 (lto_input_tree): Likewise.
6941 * lto-streamer-out.c: Include data-streamer.h,
6942 gimple-streamer.h and streamer-hooks.h.
6943 (struct string_slot): Move to data-streamer.h.
6944 (hash_string_slot_node): Likewise.
6945 (eq_string_slot_node): Likewise.
6946 (lto_string_index): Move to data-streamer-out.c.
6947 (lto_output_string_with_length): Likewise.
6948 (lto_output_string): Likewise.
6949 (output_string_cst): Move to tree-streamer-out.c.
6950 (output_identifier): Likewise.
6951 (output_zero): Move to data-streamer-out.c
6952 (output_uleb128): Likewise.
6953 (output_sleb128): Likewise.
6954 (output_record_start): Move to data-streamer.h
6955 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
6956 (pack_ts_real_cst_value_fields): Likewise.
6957 (pack_ts_fixed_cst_value_fields): Likewise.
6958 (pack_ts_decl_common_value_fields): Likewise.
6959 (pack_ts_decl_wrtl_value_fields): Likewise.
6960 (pack_ts_decl_with_vis_value_fields): Likewise.
6961 (pack_ts_function_decl_value_fields): Likewise.
6962 (pack_ts_type_common_value_fields): Likewise.
6963 (pack_ts_block_value_fields): Likewise.
6964 (pack_ts_translation_unit_decl_value_fields): Likewise.
6965 (pack_value_fields): Likewise.
6966 (lto_output_chain): Likewise.
6967 (lto_output_ts_common_tree_pointers): Likewise.
6968 (lto_output_ts_vector_tree_pointers): Likewise.
6969 (lto_output_ts_complex_tree_pointers): Likewise.
6970 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
6971 (lto_output_ts_decl_common_tree_pointers): Likewise.
6972 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
6973 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
6974 (lto_output_ts_field_decl_tree_pointers): Likewise.
6975 (lto_output_ts_function_decl_tree_pointers): Likewise.
6976 (lto_output_ts_type_common_tree_pointers): Likewise.
6977 (lto_output_ts_type_non_common_tree_pointers): Likewise.
6978 (lto_output_ts_list_tree_pointers): Likewise.
6979 (lto_output_ts_vec_tree_pointers): Likewise.
6980 (lto_output_ts_exp_tree_pointers): Likewise.
6981 (lto_output_ts_block_tree_pointers): Likewise.
6982 (lto_output_ts_binfo_tree_pointers): Likewise.
6983 (lto_output_ts_constructor_tree_pointers): Likewise.
6984 (lto_output_ts_target_option): Likewise.
6985 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
6986 (lto_output_tree_pointers): Likewise.
6987 (lto_output_tree_header): Likewise.
6988 (lto_output_builtin_tree): Likewise.
6989 (lto_write_tree): Likewise.
6990 (lto_output_integer_cst): Likewise.
6991 (lto_output_tree): Likewise.
6992 (output_phi): Move to gimple-streamer-out.c.
6993 (output_gimple_stmt): Likewise.
6994 (output_bb): Likewise.
6995 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
6996 (streamer_hooks): Move to streamer-hooks.c.
6997 (check_handled_ts_structures): Move to tree-streamer.c
6998 (lto_streamer_cache_add_to_node_array): Likewise.
6999 (lto_streamer_cache_insert_1): Likewise.
7000 (lto_streamer_cache_insert): Likewise.
7001 (lto_streamer_cache_insert_at): Likewise.
7002 (lto_streamer_cache_append): Likewise.
7003 (lto_streamer_cache_lookup): Likewise.
7004 (lto_streamer_cache_get): Likewise.
7005 (lto_record_common_node): Likewise.
7006 (lto_preload_common_nodes): Likewise.
7007 (lto_streamer_cache_create): Likewise.
7008 (lto_streamer_cache_delete): Likewise.
7009 (streamer_hooks_init): Move to streamer-hooks.c.
7010 * lto-streamer.h: Include diagnostic.h
7011 (struct output_block, struct lto_input_block,
7012 struct data_in, struct bitpack_d): Remove forward declarations.
7013 (struct bitpack_d): Move to data-streamer.h.
7014 (struct lto_streamer_cache_d): Move to tree-streamer.h.
7015 (struct streamer_hooks): Move to streamer-hooks.h.
7016 (bp_pack_var_len_unsigned): Move to data-streamer.h.
7017 (bp_pack_var_len_int): Likewise.
7018 (bp_unpack_var_len_unsigned): Likewise.
7019 (bp_unpack_var_len_int): Likewise.
7020 (lto_input_location): Declare.
7021 (lto_tag_check_set): Declare.
7022 (lto_init_eh): Declare.
7023 (lto_output_tree_ref): Declare.
7024 (lto_output_location): Declare.
7025 (bitpack_create): Move to data-streamer.h.
7026 (bp_pack_value): Likewise.
7027 (lto_output_bitpack): Likewise.
7028 (lto_input_bitpack): Likewise.
7029 (bp_unpack_value): Likewise.
7030 (lto_output_1_stream): Likewise.
7031 (lto_input_1_unsigned): Likewise.
7032 (lto_output_int_in_range): Likewise.
7033 (lto_input_int_in_range): Likewise.
7034 (bp_pack_int_in_range): Likewise.
7035 (bp_unpack_int_in_range): Likewise.
7036 (lto_output_enum): Likewise.
7037 (lto_input_enum): Likewise.
7038 (bp_pack_enum): Likewise.
7039 (bp_unpack_enum): Likewise.
7040 * streamer-hooks.c: New.
7041 * streamer-hooks.h: New.
7042 * tree-streamer-in.c: New.
7043 * tree-streamer-out.c: New.
7044 * tree-streamer.c: New.
7045 * tree-streamer.h: New.
7046
7047 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7048
7049 * gthr-posix95.h: Remove.
7050 * gthr.h [_PTHREADS95]: Remove.
7051 * configure.ac (enable_threads): Remove posix95.
7052 * configure: Regenerate.
7053 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7054
7055 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
7056
7057 PR target/49781
7058 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7059 SImode addresses.
7060 (ix86_print_operand_address): Handle zero-extended addresses.
7061 (memory_address_length): Add length of addr32 prefix for
7062 zero-extended addresses.
7063 (ix86_secondary_reload): Handle moves to/from double-word general
7064 registers from/to zero-extended addresses.
7065 * config/i386/predicates.md (lea_address_operand): Reject
7066 zero-extended operands.
7067
7068 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
7069
7070 PR other/48007
7071 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7072
7073 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7074 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7075
7076 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7077 (_Unwind_Context_Reg_Val): Likewise.
7078 (_Unwind_Get_Unwind_Word): Likewise.
7079 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7080 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7081 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7082 for EXTENDED_CONTEXT_BIT.
7083 (__frame_state_for): Likewise.
7084 (uw_init_context_1): Likewise.
7085 (_Unwind_GetGR): Updated.
7086 (_Unwind_SetGR): Likewise.
7087 (_Unwind_GetGRPtr): Likewise.
7088 (_Unwind_SetGRPtr): Likewise.
7089 (_Unwind_SetGRValue): Likewise.
7090 (_Unwind_GRByValue): Likewise.
7091 (uw_install_context_1): Likewise.
7092
7093 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7094 ASSUME_EXTENDED_UNWIND_CONTEXT.
7095 * doc/tm.texi: Regenerated.
7096
7097 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7098
7099 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7100
7101 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7102
7103 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7104 Linux/GNU-specific.
7105 (DEC Alpha Options, -mtune): Likewise.
7106 (MIPS Options, -march): native is supported on IRIX.
7107
7108 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7109
7110 * config/sparc/driver-sparc.c: New file.
7111 * config/sparc/x-sparc: New file.
7112 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7113 * config/sparc/sparc.opt (native): New value for enum processor_type.
7114 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7115 * config/sparc/sparc.c (sparc_option_override): Abort if
7116 PROCESSOR_NATIVE gets here.
7117 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7118 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7119 DRIVER_SELF_SPECS): Define.
7120 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7121 (SPARC Options, -mtune): Likewise.
7122 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7123 Substitute result.
7124 * configure: Regenerate.
7125 * Makefile.in (EXTRA_GCC_LIBS): Set.
7126 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7127 (cpp$(exeext)): Likewise.
7128
7129 2011-08-08 Richard Guenther <rguenther@suse.de>
7130
7131 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7132 split out from ...
7133 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
7134 by composition.
7135
7136 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
7137
7138 PR tree-optimization/50005
7139 * ipa-inline-analysis (remap_predicate): Add cast to
7140 silence signed/unsigned comparison warning.
7141
7142 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7143
7144 * modulo-sched.c (get_sched_window): Use a table for the debug output.
7145 Print the current ii.
7146 (sms_schedule_by_order): Reduce whitespace in dump line.
7147
7148 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7149
7150 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7151 and one loop for successors. Fix upper bound of memory range.
7152
7153 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7154
7155 PR target/50001
7156 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7157 (TARGET_INSTANTIATE_DECLS): New define.
7158
7159 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
7160 Mikael Morin <mikael.morin@sfr.fr>
7161
7162 * Makefile.in (INCLUDES_FOR_TARGET): New.
7163 (LIBGCC2_CFLAGS): Use it.
7164 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7165
7166 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7167
7168 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7169 frame->save_regs_using_mov calculation.
7170
7171 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7172
7173 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7174 * config/i386/sse.md (castmode): New mode attribute.
7175 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7176 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7177
7178 2011-08-05 Jan Hubicka <jh@suse.cz>
7179
7180 PR middle-end/49494
7181 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7182
7183 2011-08-05 Jan Hubicka <jh@suse.cz>
7184
7185 PR middle-end/49500
7186 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7187 handle aliases.
7188 (create_emultls_var):New function.
7189 (ipa_lower_emutls): Handle aliases correctly.
7190
7191 2011-08-05 Jan Hubicka <jh@suse.cz>
7192
7193 PR middle-end/49735
7194 * ipa-inline.c (recursive_inlining): Look through aliases.
7195
7196 2011-08-05 Jason Merrill <jason@redhat.com>
7197
7198 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7199 declarations to beginning of function.
7200
7201 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
7202
7203 PR rtl-optimization/49900
7204 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7205 ensure basic blocks stay in the same order.
7206
7207 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
7208
7209 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7210 store_bit_field.
7211 (s390_expand_atomic): Same.
7212
7213 2011-08-05 Richard Henderson <rth@redhat.com>
7214
7215 PR rtl-opt/49977
7216 * dwarf2cfi.c (scan_insn_after): Split out of ...
7217 (scan_trace): ... here. Correctly place notes wrt sequences.
7218
7219 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
7220 Richard Henderson <rth@redhat.com>
7221
7222 PR rtl-opt/49982
7223 * expr.c (fixup_args_size_notes): Look through no-op moves.
7224
7225 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7226
7227 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7228 of "m" for operand 0. Add type and mode attribute.
7229 (*pushxf_nointeger"): Use "<" constraint for operand 0.
7230 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
7231 constraint instead of "o" for opreand 1.
7232 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
7233 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7234 operand 0, alternative 4.
7235 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7236
7237 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7238
7239 * config/i386/predicates.md (lea_address_operand): Rename from
7240 no_seg_address_operand.
7241 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7242 (*lea_1_zext): Ditto.
7243 (*lea_2): Ditto.
7244 (*lea_2_zext): Ditto.
7245
7246 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7247
7248 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7249 parts.base and parts.index.
7250 * config/i386/predicates.md (aligned_operand): Ditto.
7251 (cmpxchg8b_pic_memory_operand): Ditto.
7252
7253 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7254
7255 * config/soft-fp: Move to ../libgcc.
7256 * Makefile.in (SFP_MACHINE): Remove.
7257 (libgcc-support): Remove $(SFP_MACHINE) dependency.
7258 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7259 * config/arm/t-arm-softfp: Move to
7260 ../libgcc/config/arm/t-softfp.
7261 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7262 * config/c6x/t-c6x-softfp: Remove.
7263 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7264 * config/i386/t-fprules-softfp: Move to
7265 ../libgcc/config/t-softfp-tf.
7266 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7267 * config/ia64/t-fprules-softfp: Remove.
7268 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7269 * config/lm32/t-fprules-softfp: Remove.
7270 * config/moxie/sfp-machine.h: Remove.
7271 * config/moxie/t-moxie-softfp: Remove.
7272 * config/rs6000/darwin-ldouble-format: Move to
7273 ../libgcc/config/rs6000/ibm-ldouble-format.
7274 * config/rs6000/darwin-ldouble.c: Move to
7275 ../libgcc/config/rs6000/ibm-ldouble.c
7276 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7277 * config/rs6000/libgcc-ppc64.ver: Likewise.
7278 * config/rs6000/sfp-machine.h: Likewise.
7279 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7280 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7281 (LIB2FUNCS_EXTRA): Remove.
7282 (TARGET_LIBGCC2_CFLAGS): Remove.
7283 * config/rs6000/t-aix52: Likewise
7284 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7285 $(srcdir)/config/rs6000/darwin-ldouble.c.
7286 (SHLIB_MAPFILES): Remove.
7287 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7288 $(srcdir)/config/rs6000/darwin-ldouble.c.
7289 * config/rs6000/t-fprules-softfp: Move to
7290 ../libgcc/config/t-softfp-sfdf.
7291 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7292 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7293 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7294 $(srcdir)/config/rs6000/darwin-ldouble.c.
7295 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7296 * config/score/t-score-softfp: Remove.
7297 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7298 soft-fp/t-softfp from tmake_file.
7299 (arm*-*-uclinux*): Likewise.
7300 (arm*-*-ecos-elf): Likewise.
7301 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7302 (arm*-*-rtems*): Likewise.
7303 (arm*-*-elf): Likewise.
7304 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7305 tmake_file.
7306 (moxie-*-uclinux*): Likewise.
7307 (moxie-*-rtems*): Likewise.
7308 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7309 tmake_file.
7310 (lm32-*-rtems*): Likewise.
7311 (lm32-*-uclinux*): Likewise.
7312 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7313 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7314 (powerpc-*-linux*, powerpc64-*-linux*): Remove
7315 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7316 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7317 tmake_file.
7318 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7319 tmake_file.
7320 (tic6x-*-uclinux): Likewise.
7321 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7322 soft-fp/t-softfp from tmake_file.
7323 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7324 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7325 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7326 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7327 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7328
7329 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7330
7331 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7332 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7333 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7334 TPBIT, TPBIT_FUNCS.
7335 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7336 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7337 Remove.
7338 * config/arm/t-vxworks: Likewise.
7339 * config/arm/t-wince-pe: Likewise.
7340 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7341 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7342 * config/bfin/t-bfin-elf: Likewise.
7343 * config/bfin/t-bfin-linux: Likewise.
7344 * config/bfin/t-bfin-uclinux: Likewise.
7345 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7346 Remove.
7347 * config/fr30/t-fr30: Likewise.
7348 * config/frv/t-frv: Likewise.
7349 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7350 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7351 * config/m32c/t-m32c: Likewise.
7352 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7353 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7354 * config/mcore/t-mcore: Likewise.
7355 * config/mep/t-mep: Likewise.
7356 * config/microblaze/t-microblaze: Likewise.
7357 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7358 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7359 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7360 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7361 * config/mn10300/t-linux: Remove.
7362 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7363 * config/pdp11/t-pdp11: Likewise.
7364 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7365 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7366 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7367 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7368 * config/rs6000/t-aix52: Likewise.
7369 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7370 $(srcdir)/config/rs6000/ppc64-fp.c.
7371 * config/rs6000/t-fprules-fpbit: Remove.
7372 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7373 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7374 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7375 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7376 * config/sparc/t-elf: Likewise.
7377 * config/sparc/t-leon: Likewise.
7378 * config/sparc/t-leon3: Likewise.
7379 * config/spu/t-spu-elf: Likewise.
7380 (DPBIT_FUNCS): Remove.
7381 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7382 * config/v850/t-v850: Likewise.
7383 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7384 (avr-*-*): Likewise.
7385 (h8300-*-rtems*): Set libgcc_tm_file.
7386 (h8300-*-elf*): Likewise.
7387 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7388 tmake_file.
7389 (powerpc-*-eabisim*): Likewise.
7390 (powerpc-*-elf*): Likewise.
7391 (powerpc-*-eabialtivec*): Likewise.
7392 (powerpc-xilinx-eabi*): Likewise.
7393 (powerpc-*-eabi*): Likewise.
7394 (powerpc-*-rtems*): Likewise.
7395 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7396 (powerpcle-*-elf*): Likewise.
7397 (powerpcle-*-eabisim*): Likewise.
7398 (powerpcle-*-eabi*): Likewise.
7399 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7400 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7401 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7402 Remove.
7403
7404 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7405
7406 * Makefile.in (UNWIND_H): Remove.
7407 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7408 ../libgcc/Makefile.in.
7409 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7410 (LIBUNWINDDEP): Remove.
7411 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7412 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7413 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7414 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7415 Don't copy $(UNWIND_H).
7416 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7417 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7418 * aclocal.m4: Regenerate.
7419 * configure: Regenerate.
7420 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7421 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7422 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7423 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7424 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7425 * config/arm/libunwind.S, config/arm/pr-support.c,
7426 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7427 ../libgcc/config/arm.
7428 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7429 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7430 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7431 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7432 ($(T)frvend$(objext)): Likewise.
7433 * config/ia64/t-glibc (LIB2ADDEH): Remove.
7434 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7435 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7436 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7437 ../libgcc/config/ia64.
7438 * config/ia64/t-hpux (LIB2ADDEH): Remove.
7439 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7440 * config/ia64/t-vms (LIB2ADDEH): Remove.
7441 * config/ia64/vms.h (UNW_IVMS_MODE,
7442 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7443 * config/picochip/t-picochip (LIB2ADDEH): Remove.
7444 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
7445 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
7446 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
7447 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
7448 $(srcdir)/../libgcc to refer to unwinder sources.
7449 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7450 * config/t-darwin (LIB2ADDEH): Remove.
7451 * config/t-freebsd (LIB2ADDEH): Remove.
7452 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7453 * config/t-libunwind-elf: Move to ../libgcc/config.
7454 * config/t-linux (LIB2ADDEH): Remove.
7455 * config/t-sol2 (LIB2ADDEH): Remove.
7456 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7457 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7458
7459 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
7460
7461 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7462
7463 * doc/invoke.texi: Document core-avx-i.
7464
7465 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7466
7467 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7468
7469 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
7470
7471 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7472 result of multiple results reduction when extracting the final
7473 value using scalar code.
7474
7475 2011-08-05 Richard Guenther <rguenther@suse.de>
7476
7477 PR tree-optimization/49984
7478 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7479
7480 2011-08-05 Richard Guenther <rguenther@suse.de>
7481
7482 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7483 return true for constant integer ranges.
7484 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7485 BIT_IOR_EXPR handling.
7486
7487 2011-08-04 Kai Tietz <ktietz@redhat.com>
7488
7489 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7490 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7491
7492 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
7493
7494 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7495 pattern def statement, and its access macro.
7496 (NUM_PATTERNS): Set to 5.
7497 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7498 pattern def statement.
7499 (vect_transform_loop): Likewise.
7500 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7501 function vect_recog_over_widening_pattern ().
7502 (vect_operation_fits_smaller_type): New function.
7503 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7504 Likewise.
7505 (vect_pattern_recog_1): Move the code that marks pattern
7506 statements to vect_mark_pattern_stmts (), and call it. Update
7507 documentation.
7508 * tree-vect-stmts.c (vect_supportable_shift): New function.
7509 (vect_analyze_stmt): Handle pattern def statement.
7510 (new_stmt_vec_info): Initialize pattern def statement.
7511
7512 2011-08-04 Richard Henderson <rth@redhat.com>
7513
7514 PR target/49964
7515 * config/i386/i386.c (ix86_expand_call): Don't create nested
7516 PARALLELs for TARGET_VZEROUPPER.
7517 (ix86_split_call_vzeroupper): Fix extraction of the original call.
7518 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7519 recognize nested PARALLELs.
7520 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7521 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7522 *sibcall_value_pop_vzeroupper): Likewise.
7523
7524 2011-08-04 Richard Henderson <rth@redhat.com>
7525
7526 PR middle-end/49968
7527 * calls.c (expand_call): Use fixup_args_size_notes for
7528 emit_stack_restore.
7529 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7530 in non-standard modes.
7531
7532 2011-08-04 Jakub Jelinek <jakub@redhat.com>
7533
7534 * gcc.c (self_spec): New variable.
7535 (static_specs): Add self_spec.
7536 (main): Call do_self_spec on "self_spec" specs after reading
7537 user specs files. Move compare_debug handling right after that.
7538
7539 2011-08-04 Richard Guenther <rguenther@suse.de>
7540
7541 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7542 (value_range_nonnegative_p): New function.
7543 (ssa_name_nonnegative_p): Use it.
7544 (value_range_constant_singleton): New function.
7545 (op_with_constant_singleton_value_range): Use it.
7546 (extract_range_from_binary_expr_1): New function, split out from ...
7547 (extract_range_from_binary_expr): ... this. Remove fallback
7548 constant folding done here.
7549
7550 2011-08-04 Richard Guenther <rguenther@suse.de>
7551
7552 PR tree-optimization/49806
7553 * tree-vrp.c (op_with_boolean_value_range_p): New function.
7554 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
7555 a new statement for a final conversion to bool.
7556
7557 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
7558
7559 * gengtype-state.c: Include "bconfig.h" if
7560 GENERATOR_FILE is defined, "config.h" otherwise.
7561 * gengtype.c: Likewise.
7562 * gengtype-lex.l: Likewise.
7563 * gengtype-parse.c: Likewise.
7564 * Makefile.in (gengtype-lex.o-warn): New variable.
7565 (plugin_resourcesdir): Likewise.
7566 (plugin_bindir): Likewise.
7567 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7568 (MOSTLYCLEANFILES): Add gengtype$(exeext).
7569 (native): Depend on gengtype$(exeext) is $enable_plugin
7570 is set to "yes".
7571 (gtype.state): Depend on s-gtype. Use temporary file.
7572 (gengtype-lex.o): New rule.
7573 (gengtype-parse.o): Likewise.
7574 (gengtype-state.o): Likewise.
7575 (gengtype$(exeext)): Likewise.
7576 (install-gengtype): Likewise.
7577 (gengtype.o): Likewise.
7578 (build/gengtype.o): Depend on version.h.
7579 (build/gengtype-state): Depend on double-int.h, version.h,
7580 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7581 (install-plugin): Depend on install-gengtype.
7582
7583 2011-08-04 Jakub Jelinek <jakub@redhat.com>
7584
7585 PR middle-end/49905
7586 * tree.h (init_attributes): New prototype.
7587 * attribs.c (init_attributes): No longer static.
7588
7589 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7590
7591 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7592 maybe_suffix.
7593
7594 2011-08-03 David Li <davidxl@google.com>
7595
7596 * tree-optimize.c (execute_fixup_cfg): Fix up entry
7597 outgoing edge counts after inlining.
7598
7599 2011-08-03 David Li <davidxl@google.com>
7600
7601 * profile.c (compute_branch_probabilities): Compute
7602 function frequency after profile annotation.
7603
7604 2011-08-04 Alan Modra <amodra@gmail.com>
7605
7606 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7607 use_backchain_to_restore_sp initialisation.
7608 (rs6000_legitimate_offset_address_p): Simplify offset test.
7609
7610 2011-08-03 Richard Henderson <rth@redhat.com>
7611
7612 * config/spu/spu.md: Use define_c_enum instead of define_constants.
7613 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7614 (UNSPECV_NOP): New.
7615
7616 2011-08-03 Richard Henderson <rth@redhat.com>
7617
7618 PR target/34888
7619 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7620
7621 2011-08-03 Jakub Jelinek <jakub@redhat.com>
7622
7623 PR tree-optimization/49948
7624 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7625
7626 2011-08-03 Anatoly Sokolov <aesok@post.ru>
7627
7628 * config/m32c/m32c.c (class_sizes): Remove.
7629 (reduce_class): Change arguments and return type to reg_class_t.
7630 Change type cc var to HARD_REG_SET. Change type best var to
7631 reg_class_t. Change type best_size var to unsigned int. Remove
7632 initialization class_sizes var. Use reg_class_size array instead
7633 of class_sizes. Use reg_class_contents array instead
7634 of class_contents.
7635
7636 2011-08-03 Richard Guenther <rguenther@suse.de>
7637
7638 PR middle-end/49958
7639 * fold-const.c (fold_binary_loc): Only associate
7640 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
7641 overflow wraps.
7642
7643 2011-08-03 Alan Modra <amodra@gmail.com>
7644
7645 PR rtl-optimization/49941
7646 * jump.c (mark_jump_label): Comment.
7647 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
7648 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
7649 (mark_used_flags): Don't mark RETURN.
7650
7651 2011-08-03 Richard Guenther <rguenther@suse.de>
7652
7653 PR tree-optimization/49938
7654 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
7655 deal with a POLYNOMIAL_CHREC.
7656
7657 2011-08-03 Revital Eres <revital.eres@linaro.org>
7658
7659 * modulo-sched.c (calculate_stage_count,
7660 calculate_must_precede_follow, get_sched_window,
7661 try_scheduling_node_in_cycle, remove_node_from_ps): Add
7662 declaration.
7663 (update_node_sched_params, set_must_precede_follow, optimize_sc):
7664 New functions.
7665 (reset_sched_times): Call update_node_sched_params.
7666 (sms_schedule): Call optimize_sc.
7667 (get_sched_window): Change function arguments.
7668 (sms_schedule_by_order): Update call to get_sched_window.
7669 Call set_must_precede_follow.
7670 (calculate_stage_count): Add function argument.
7671
7672 2011-08-02 Richard Henderson <rth@redhat.com>
7673
7674 PR target/49864
7675 PR target/49879
7676 * reg-notes.def (REG_ARGS_SIZE): New.
7677 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
7678 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
7679 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
7680 different stack levels.
7681 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
7682 (maybe_move_args_size_note): New.
7683 (combine_stack_adjustments_for_block): Use it.
7684 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
7685 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
7686 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
7687 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
7688 (cur_cfa): New.
7689 (queued_args_size): Remove.
7690 (add_cfi_args_size): Assert size is non-negative.
7691 (stack_adjust_offset, dwarf2out_args_size): Remove.
7692 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
7693 (notice_args_size, notice_eh_throw): New.
7694 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
7695 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7696 (dwarf2out_frame_debug_cfa_offset): Likewise.
7697 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
7698 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
7699 (change_cfi_row): Don't emit args_size.
7700 (maybe_record_trace_start_abnormal): Split out from ...
7701 (maybe_record_trace_start): Here. Set args_size_undefined.
7702 (create_trace_edges): Update to match.
7703 (scan_trace): Handle REG_ARGS_SIZE.
7704 (connect_traces): Connect args_size between EH insns.
7705 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
7706 * explow.c (suppress_reg_args_size): New.
7707 (adjust_stack_1): Split out from ...
7708 (adjust_stack): ... here.
7709 (anti_adjust_stack): Use it.
7710 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
7711 * expr.c (mem_autoinc_base): New.
7712 (fixup_args_size_notes): New.
7713 (emit_single_push_insn_1): Rename from emit_single_push_insn.
7714 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
7715 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
7716 * reload1.c (reload_as_needed): Likewise.
7717 * rtl.h (fixup_args_size_notes): Declare.
7718
7719 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
7720
7721 PR bootstrap/49914
7722 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
7723 of abs.
7724 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
7725 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
7726
7727 2011-08-02 Richard Henderson <rth@redhat.com>
7728
7729 * config/h8300/h8300.c (push, pop): Return the insn.
7730 (h8300_swap_into_er6): Generate correct unwind info.
7731 (h8300_swap_out_of_er6): Likewise.
7732 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
7733 complex cfa expression.
7734 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
7735
7736 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
7737
7738 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7739
7740 2011-08-02 Richard Henderson <rth@redhat.com>
7741
7742 PR target/49878
7743 * config/h8300/h8300.c (h8300_move_ok): New.
7744 * config/h8300/h8300-protos.h: Declare it.
7745 * config/h8300/h8300.md (P): New mode iterator.
7746 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
7747 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
7748 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
7749 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
7750 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
7751 and pushqi1_h8300hs_normal; use PRE_MODIFY and
7752 register_no_sp_elim_operand.
7753 (*pushhi1_h8300hs_<P>): Similarly.
7754 (pushqi1, pushhi1, pushhi1_h8300): Remove.
7755 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
7756
7757 2011-08-02 Richard Henderson <rth@redhat.com>
7758
7759 PR target/49881
7760 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
7761
7762 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7763
7764 * c-parser.c (enum c_parser_prec): New enum, moved from within
7765 c_parser_binary_expression.
7766 (c_parser_binary_expression): Add PREC argument. Stop parsing
7767 if operator has lower or equal precedence than PREC.
7768 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
7769 callers.
7770 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
7771 Adjust c_finish_omp_atomic caller.
7772 (c_parser_omp_taskyield): New function.
7773 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
7774 (c_parser_omp_clause_name): Handle final and mergeable clauses.
7775 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
7776 functions.
7777 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
7778 and PRAGMA_OMP_CLAUSE_MERGEABLE.
7779 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
7780 (c_parser_omp_clause_reduction): Handle min and max.
7781 * c-typeck.c (c_finish_omp_clauses): Don't complain about
7782 const qualified predetermined vars in firstprivate clause.
7783 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7784 Handle MIN_EXPR and MAX_EXPR.
7785 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
7786 and OMP_CLAUSE_MERGEABLE.
7787 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
7788 and OMP_ATOMIC_CAPTURE_NEW.
7789 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
7790 OMP_CLAUSE_MERGEABLE.
7791 (omp_clause_code_name): Likewise.
7792 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7793 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
7794 and OMP_CLAUSE_MERGEABLE.
7795 (OMP_CLAUSE_FINAL_EXPR): Define.
7796 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
7797 OMP_CLAUSE_MERGEABLE.
7798 (expand_task_call): Likewise.
7799 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
7800 (expand_omp_atomic_fetch_op): Handle cases where old or new
7801 value is needed afterwards.
7802 (expand_omp_atomic): Call expand_omp_atomic_load resp.
7803 expand_omp_atomic_store.
7804 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
7805 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
7806 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
7807 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7808 * tree-nested.c (convert_nonlocal_omp_clauses,
7809 convert_local_omp_clauses): Likewise.
7810 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
7811 OMP_ATOMIC_CAPTURE_NEW): New.
7812 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
7813 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
7814 New inlines.
7815 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
7816 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
7817 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
7818
7819 2011-08-02 Kai Tietz <ktietz@redhat.com>
7820
7821 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
7822 boolean-type.
7823 (ssa_forward_propagate_and_combine): Interprete result of
7824 forward_propagate_comparison.
7825 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
7826 boolean-typed operands for comparisons.
7827
7828 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
7829
7830 * config/avr/libgcc.S: Gather related function in the
7831 same input section.
7832 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7833 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
7834 references.
7835 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
7836 __udivmodsi4, __divmodsi4, __prologue_saves__,
7837 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
7838 __do_copy_data, __do_clear_bss, __do_global_ctors,
7839 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
7840
7841 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
7842
7843 PR target/47766
7844 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
7845 (stack_protect_test): The pattern compares ptr_mode value.
7846
7847 2011-08-02 Alan Modra <amodra@gmail.com>
7848
7849 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
7850 note for save_LR_around_toc_setup sequence.
7851
7852 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
7853
7854 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
7855
7856 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
7857 Joseph Myers <joseph@codesourcery.com>
7858
7859 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
7860 * hwint.c: Include diagnostic-core.h.
7861 (abs_hwi): New.
7862 (gcd): Moved here...
7863 (pos_mul_hwi): New.
7864 (mul_hwi): New.
7865 (least_common_multiple): Moved here...
7866 * hwint.h (gcd): ... from here.
7867 (least_common_multiple): ... from here.
7868 (HOST_WIDE_INT_MIN): New.
7869 (HOST_WIDE_INT_MAX): New.
7870 (abs_hwi): Declared.
7871 (gcd): Declared.
7872 (pos_mul_hwi): Declared.
7873 (mul_hwi): Declared.
7874 (least_common_multiple): Declared.
7875 * omega.c (check_pos_mul): Removed.
7876 (check_mul): Removed.
7877 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
7878 mul_hwi instead of check_mul.
7879
7880 2011-08-01 Richard Henderson <rth@redhat.com>
7881
7882 PR target/49881
7883 * config/avr/avr.h (PUSH_ROUNDING): New.
7884 * config/avr/avr.md (pushqi1): Rename from *pushqi.
7885 (*pushhi, *pushsi, *pushsf): Remove.
7886 (MPUSH): New mode iterator.
7887 (push<MPUSH>1): New expander.
7888
7889 2011-08-01 Anatoly Sokolov <aesok@post.ru>
7890
7891 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
7892 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
7893 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
7894 mmix_preferred_output_reload_class): Remove.
7895 * config/mmix/mmix.c (mmix_preferred_reload_class,
7896 mmix_preferred_output_reload_class): Make static. Change rclass
7897 argument and return type to reg_class_t.
7898 (TARGET_PREFERRED_RELOAD_CLASS,
7899 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7900
7901 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
7902
7903 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
7904 handling.
7905
7906 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
7907
7908 PR target/47766
7909 * config/i386/i386.md (PTR): New.
7910 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
7911 (stack_protect_test): Likewise.
7912 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
7913 (stack_tls_protect_set_<mode>): Likewise.
7914 (stack_tls_protect_test_<mode>): Likewise.
7915
7916 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
7917
7918 PR target/49927
7919 * config/i386/i386.c (ix86_address_subreg_operand): New.
7920 (ix86_decompose_address): Use ix86_address_subreg_operand.
7921 (ix86_legitimate_address_p): Do not assert that subregs satisfy
7922 register_no_elim_operand in DImode.
7923
7924 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
7925
7926 PR tree-optimization/49926
7927 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
7928 in a chain doesn't have uses both inside and outside the loop.
7929
7930 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
7931
7932 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
7933 * config/avr/avr-devices.c (avr_mcu_types): Use it.
7934 * config/avr/avr-mcus.def (AVR_MCU): Use it.
7935 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
7936 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
7937 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
7938 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
7939 to detect if XJMP must not be skipped.
7940
7941 2011-08-02 Alan Modra <amodra@gmail.com>
7942
7943 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
7944 Delete.
7945 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
7946 (rs6000_emit_prologue): Don't prematurely return when
7947 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
7948 save_toc_in_prologue case.
7949 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
7950 calls_alloca.
7951
7952 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
7953
7954 * config/avr/avr-devices.c: Delete SVN property svn:executable.
7955 * config/avr/predicates.md: Ditto.
7956 * config/avr/driver-avr.c: Ditto.
7957 * config/avr/genopt.sh: Set SVN property svn:executable to *.
7958
7959 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
7960
7961 * calls.c (emit_library_call_value_1): Declare size only if
7962 BLOCK_REG_PADDING is defined.
7963
7964 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
7965
7966 PR target/49547
7967 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
7968 (x86_64-*-*): Likewise.
7969 * config/i386/i386.opt (mlzcnt): New.
7970 * config/i386/abmintrin.h: File removed.
7971 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
7972 * config/i386/lzcntintrin.h: ... here. New file.
7973 (__lzcnt): Rename to ...
7974 (__lzcnt32): ... this.
7975 * config/i386/bmiintrin.h (head): Update copyright year.
7976 (__lzcnt_u16): Removed.
7977 (__lzcnt_u32): Likewise.
7978 (__lzcnt_u64): Likewise.
7979 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
7980 is defined, remove abmintrin.h.
7981 * config/i386/cpuid.h (bit_LZCNT): New.
7982 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7983 LZCNT feature.
7984 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7985 __LZCNT__ if needed.
7986 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
7987 (ix86_option_override_internal): Handle LZCNT option.
7988 (ix86_valid_target_attribute_inner_p): Likewise.
7989 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
7990 * config/i386/i386.h (TARGET_LZCNT): New.
7991 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
7992 * config/i386/i386.md (clz<mode>2): Update insn constraint.
7993 (clz<mode>2_lzcnt): Likewise.
7994 * doc/invoke.texi: Mention -mlzcnt option.
7995 * doc/extend.texi: Likewise.
7996
7997 2011-08-01 Julian Brown <julian@codesourcery.com>
7998
7999 * configure.ac (fixed-point): Add ARM support.
8000 * configure: Regenerate.
8001 * config/arm/arm.c (arm_fixed_mode_set): New struct.
8002 (arm_set_fixed_optab_libfunc): New.
8003 (arm_set_fixed_conv_libfunc): New.
8004 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8005 ARM-specific names.
8006 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8007 return values in SImode.
8008 (arm_return_in_msb): Return fixed-point types in the msb.
8009 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8010 upwards.
8011 (arm_scalar_mode_supported_p): Support fixed-point modes.
8012 (arm_vector_mode_supported_p): Support vector fixed-point modes.
8013 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8014 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8015 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8016 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8017 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8018 New mode iterators.
8019 (qaddsub_suf): New mode attribute.
8020 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8021 vector modes.
8022 * config/arm/predicates.md (sat_shift_operator): New predicate.
8023 * config/arm/arm-fixed.md: New.
8024 * config/arm/arm.md: Include arm-fixed.md.
8025 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8026
8027 2011-08-01 Julian Brown <julian@codesourcery.com>
8028
8029 * calls.c (emit_library_call_value_1): Support padding for libcall
8030 arguments and return values.
8031 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8032 downwards in big-endian mode.
8033
8034 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8035
8036 PR debug/49887
8037 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8038 * config/sol2-protos.h: Likewise.
8039 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8040 solaris_code_end.
8041 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8042 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8043 solaris_file_end.
8044 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8045
8046 2011-08-01 Julian Brown <julian@codesourcery.com>
8047
8048 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8049
8050 2011-08-01 Julian Brown <julian@codesourcery.com>
8051
8052 * final.c (output_addr_const): Print fixed-point constants as
8053 decimal not hex.
8054
8055 2011-08-01 Richard Guenther <rguenther@suse.de>
8056
8057 * stor-layout.c (initialize_sizetypes): Properly sign-extend
8058 bitsiztype TYPE_MAX_VALUE.
8059
8060 2011-08-01 Julian Brown <julian@codesourcery.com>
8061
8062 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8063 comparison helpers.
8064
8065 2011-07-31 Richard Henderson <rth@redhat.com>
8066
8067 * config/h8300/crti.asm: Add flags to .section directive.
8068 * config/h8300/crtn.asm: Likewise.
8069
8070 2011-07-31 Richard Henderson <rth@redhat.com>
8071
8072 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8073 * tree.c (build_common_tree_nodes): Likewise.
8074
8075 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8076
8077 PR target/49880
8078 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8079 (divsi3_i1): Likewise.
8080
8081 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8082
8083 PR tree-optimization/49749
8084 * tree-ssa-reassoc.c (get_rank): New forward declaration.
8085 (PHI_LOOP_BIAS): New macro.
8086 (phi_rank): New function.
8087 (loop_carried_phi): Likewise.
8088 (propagate_rank): Likewise.
8089 (get_rank): Add calls to phi_rank and propagate_rank.
8090
8091 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
8092
8093 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8094 of TARGET_64BIT.
8095 (PTRDIFF_TYPE): Likewise.
8096
8097 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
8098
8099 PR target/49920
8100 * config/i386/i386.md (strset): Do not expand strset_singleop
8101 when %eax or $edi are fixed.
8102 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8103 (*strsetsi_1): Ditto.
8104 (*strsethi_1): Ditto.
8105 (*strsetqi_1): Ditto.
8106 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8107 (*rep_stossi): Ditto.
8108 (*rep_stosqi): Ditto.
8109 (*strlenqi_1): Ditto.
8110 (cmpstrnsi): Also fail when %ecx is fixed.
8111 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8112 (*cmpstrnqi_1): Ditto.
8113 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8114 (*strmovsi_1): Ditto.
8115 (*strmovhi_1): Ditto.
8116 (*strmovqi_1): Ditto.
8117 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8118 (*rep_movsi): Ditto.
8119 (*rep_movqi): Ditto.
8120
8121 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
8122
8123 PR target/47908
8124 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8125 Disable instruction scheduling for non-ColdFire targets.
8126 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8127
8128 2011-07-31 Revital Eres <revital.eres@linaro.org>
8129
8130 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8131 of anti-dep edge from a branch.
8132 (add_cross_iteration_register_deps): Create anti-dep edge from
8133 a branch.
8134
8135 2011-07-31 Revital Eres <revital.eres@linaro.org>
8136
8137 * modulo-sched.c: Change comment.
8138 (reset_sched_times): Fix print message.
8139 (print_partial_schedule): Add print info.
8140
8141 2011-07-31 Tom de Vries <tom@codesourcery.com>
8142
8143 PR middle-end/43513
8144 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8145 get_object_alignment and TYPE_ALIGN.
8146
8147 2011-07-30 Tom de Vries <tom@codesourcery.com>
8148
8149 PR middle-end/43513
8150 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8151 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8152
8153 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8154
8155 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8156 <sys/sbd.h>.
8157 (cpu_types): New array.
8158 (cputype): New function.
8159 (host_detect_local_cpu): Only define buf, f if !__sgi__.
8160 Use scaninvent instead of /proc/cpuinfo if __sgi__.
8161 * config.host: Also use driver-native.o, mips/x-native on
8162 mips-sgi-irix*.
8163 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8164 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8165 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8166
8167 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8168
8169 PR middle-end/49897
8170 PR middle-end/49898
8171 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8172 in nested parallel and outer is a gimple_reg, mark it as addressable
8173 and set its bit in task_shared_vars bitmap too.
8174
8175 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8176
8177 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8178
8179 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8180
8181 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8182 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8183 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8184 AMASK_LOCKPFTCHOK): Define.
8185 (host_detect_local_cpu): Remove buf, f, cpu_names.
8186 Define cpu_types, implver, amask.
8187 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8188 native CPU.
8189 * config.host: Also use driver-alpha.o, alpha/x-alpha on
8190 alpha*-dec-osf*.
8191 * config/alpha/osf5.h [__alpha__ || __alpha]
8192 (host_detect_local_cpu): Declare.
8193 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8194 (DRIVER_SELF_SPECS): Define.
8195
8196 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8197
8198 PR target/47715
8199 * config/i386/i386.md (*load_tp_x32): New.
8200 (*load_tp_x32_zext): Ditto.
8201 (*add_tp_x32): Ditto.
8202 (*add_tp_x32_zext): Ditto.
8203 (*load_tp_<mode>): Disable for TARGET_X32 targets.
8204 (*add_tp_<mode>): Ditto.
8205 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8206 ptr_mode and convert to Pmode if needed.
8207
8208 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8209
8210 PR target/49687
8211 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8212 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8213 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8214 Add X to register footprint: Clobber r26/r27.
8215
8216 2011-07-29 Richard Guenther <rguenther@suse.de>
8217
8218 * builtins.c (fold_builtin_signbit): Build the comparison
8219 with a proper type.
8220
8221 2011-07-29 Richard Guenther <rguenther@suse.de>
8222
8223 PR tree-optimization/49893
8224 * tree-predcom.c (suitable_reference_p): Volatile references
8225 are not suitable.
8226
8227 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8228
8229 PR target/49313
8230 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8231 (__ctzsi2): Result for 0 may be undefined.
8232 (__ctzhi2): Result for 0 may be undefined.
8233 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8234 (__popcountsi2): Ditto. And don't clobber r26.
8235 (__popcountdi2): Ditto. And don't clobber r27.
8236 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8237 (parityhi2): New expand.
8238 (paritysi2): New expand.
8239 (popcounthi2): New expand.
8240 (popcountsi2): New expand.
8241 (clzhi2): New expand.
8242 (clzsi2): New expand.
8243 (ctzhi2): New expand.
8244 (ctzsi2): New expand.
8245 (ffshi2): New expand.
8246 (ffssi2): New expand.
8247 (copysignsf3): New insn.
8248 (bswapsi2): New expand.
8249 (*parityhi2.libgcc): New insn.
8250 (*parityqihi2.libgcc): New insn.
8251 (*paritysihi2.libgcc): New insn.
8252 (*popcounthi2.libgcc): New insn.
8253 (*popcountsi2.libgcc): New insn.
8254 (*popcountqi2.libgcc): New insn.
8255 (*popcountqihi2.libgcc): New insn-and-split.
8256 (*clzhi2.libgcc): New insn.
8257 (*clzsihi2.libgcc): New insn.
8258 (*ctzhi2.libgcc): New insn.
8259 (*ctzsihi2.libgcc): New insn.
8260 (*ffshi2.libgcc): New insn.
8261 (*ffssihi2.libgcc): New insn.
8262 (*bswapsi2.libgcc): New insn.
8263
8264 2011-07-29 Richard Guenther <rguenther@suse.de>
8265
8266 * tree-vrp.c (get_value_range): Only set parameter default
8267 definitions to varying, leave others at undefined.
8268 (extract_range_from_binary_expr): Fix undefined handling.
8269 (vrp_visit_phi_node): Handle merged undefined state.
8270
8271 2011-07-29 Wei Guozhi <carrot@google.com>
8272
8273 PR rtl-optimization/49799
8274 * combine.c (make_compound_operation): Check if the bit field is valid
8275 before change it to bit field extraction.
8276
8277 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
8278
8279 PR rtl-optimization/49891
8280 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8281 newly created returnjumps.
8282
8283 2011-07-28 DJ Delorie <dj@redhat.com>
8284
8285 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8286 local frame in a naked function, and produce a suitable error for
8287 that specific case.
8288
8289 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8290 registers to be reloaded in HI classes when the target is HI.
8291
8292 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8293
8294 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8295 bound_one, bound_two.
8296
8297 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8298
8299 PR middle-end/48648
8300 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8301 CLAST assignments.
8302 (translate_clast): Same.
8303 (translate_clast_assignment): New.
8304
8305 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8306
8307 PR tree-optimization/49876
8308 * sese.c (rename_uses): Do not return false on gloog_error: set
8309 the new_expr to integer_zero_node and continue code generation.
8310 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8311
8312 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8313
8314 PR debug/49846
8315 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8316 arguments also check if they aren't initialized with a MODE_INT
8317 mode of the same size.
8318
8319 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
8320
8321 * expr.c (get_bit_range): Handle *MEM_REF's.
8322
8323 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
8324
8325 * rtlanal.c (tablejump_p): False for returns.
8326 * reorg.c (first_active_target_insn): New static function.
8327 (find_end_label): Set JUMP_LABEL for a new returnjump.
8328 (optimize_skip, get_jump_flags, rare_destination,
8329 mostly_true_jump, get_branch_condition,
8330 steal_delay_list_from_target, own_thread_p,
8331 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8332 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8333 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8334 * jump.c (delete_related_insns): Likewise.
8335 (jump_to_label_p): New function.
8336 (redirect_target): New static function.
8337 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
8338 (redirect_jump_1): Assert that the new label is nonnull.
8339 (redirect_jump): Likewise.
8340 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8341 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8342 exit block.
8343 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
8344 changed. Ensure that the right label is passed to redirect_jump.
8345 * function.c (emit_return_into_block,
8346 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8347 ret_rtx in their JUMP_LABEL.
8348 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8349 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8350 pass ret_rtx as label.
8351 * cfglayout.c (fixup_reorder_chain): Use
8352 force_nonfallthru_and_redirect rather than force_nonfallthru.
8353 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8354 * rtl.h (ANY_RETURN_P): New macro.
8355 (jump_to_label_p): Declare.
8356 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8357 JUMP_LABELs.
8358 (mark_target_live_regs): Likewise.
8359 * basic-block.h (force_nonfallthru_and_redirect): Declare.
8360 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8361 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8362 alpha_tablejump_best_label): Remove functions.
8363 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8364 alpha_tablejump_best_label): Remove declarations.
8365 * config/sh/sh.c (barrier_align, split_branches): Adjust for
8366 ret_rtx in JUMP_LABELs.
8367 * config/arm/arm.c (is_jump_table): Likewise.
8368
8369 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8370
8371 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8372 special predicate. Remove explicit mode checks.
8373
8374 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8375
8376 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8377 DW_AT_data_member_location containing just DW_OP_plus_uconst.
8378
8379 PR debug/49871
8380 * dwarf2out.c (size_of_die, value_format, output_die): Use
8381 DW_FORM_udata instead of DW_FORM_data[48] for
8382 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8383
8384 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8385
8386 * config/i386/i386.md (*tls_global_dynamic_64): Update
8387 length attribute.
8388
8389 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8390
8391 PR target/47715
8392 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8393 tls_symbolic_operand check. Update code sequence for TARGET_X32.
8394 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8395 (tls_dynamic_gnu2_64): Ditto.
8396 (*tls_dynamic_gnu2_lea_64): Ditto.
8397 (*tls_dynamic_gnu2_call_64): Ditto.
8398 (*tls_dynamic_gnu2_combine_64): Ditto.
8399
8400 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8401
8402 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8403
8404 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8405
8406 PR target/47364
8407 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8408
8409 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8410
8411 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8412 before the core constraints. Adjust attributes.
8413 ("*thumb2_movdf_vfp"): Likewise.
8414
8415 2011-07-28 Kai Tietz <ktietz@redhat.com>
8416
8417 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8418 (simplify_truth_ops_using_ranges): Likewise.
8419 (build_assert_expr_for): Likewise.
8420 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8421 and handle BIT_NOT_EXPR for truth-operation.
8422
8423 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
8424
8425 PR target/49313
8426 Undo r176835 from trunk
8427 2011-07-27 Georg-Johann Lay
8428
8429 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
8430
8431 PR target/49687
8432 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8433 Add _muluhisi3, _mulshisi3, _usmulhisi3.
8434 * config/avr/libgcc.S (__mulsi3): Rewrite.
8435 (__mulhisi3): Rewrite.
8436 (__umulhisi3): Rewrite.
8437 (__usmulhisi3): New.
8438 (__muluhisi3): New.
8439 (__mulshisi3): New.
8440 (__mulohisi3): New.
8441 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8442 declare.
8443 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
8444 (pseudo_register_or_const_int_operand): New.
8445 (combine_pseudo_register_operand): New.
8446 (u16_operand): New.
8447 (s16_operand): New.
8448 (o16_operand): New.
8449 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8450 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8451 (any_extend, any_extend2): New code iterators.
8452 (extend_prefix): New code attribute.
8453 (mulsi3): Rewrite. Turn insn to expander.
8454 (mulhisi3): Ditto.
8455 (umulhisi3): Ditto.
8456 (usmulhisi3): New expander.
8457 (*mulsi3): New insn-and-split.
8458 (mulu<mode>si3): New insn-and-split.
8459 (muls<mode>si3): New insn-and-split.
8460 (mulohisi3): New insn-and-split.
8461 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8462 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8463 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8464 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8465 insn-and-split.
8466 (*mulsi3_call): Rewrite.
8467 (*mulhisi3_call): Rewrite.
8468 (*umulhisi3_call): Rewrite.
8469 (*usmulhisi3_call): New insn.
8470 (*muluhisi3_call): New insn.
8471 (*mulshisi3_call): New insn.
8472 (*mulohisi3_call): New insn.
8473 (extendqihi2): Use combine_pseudo_register_operand as predicate
8474 for operand 1.
8475 (extendqisi2): Ditto.
8476 (zero_extendqihi2): Ditto.
8477 (zero_extendqisi2): Ditto.
8478 (zero_extendhisi2): Ditto.
8479 (extendhisi2): Ditto. Don't early-clobber operand 0.
8480
8481 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8482
8483 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8484
8485 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
8486
8487 PR tree-optimization/49471
8488 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8489 iv only when the largest type is unsigned. Do not call
8490 lang_hooks.types.type_for_size.
8491
8492 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
8493
8494 PR middle-end/45450
8495 * graphite-poly.c (apply_poly_transforms): Disable legality check
8496 after an openscop read.
8497
8498 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
8499
8500 PR middle-end/47691
8501 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8502 copy_bb_and_scalar_dependences.
8503 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
8504 (graphite_copy_stmts_from_block): Update call to rename_uses.
8505 (copy_bb_and_scalar_dependences): Update call to
8506 graphite_copy_stmts_from_block.
8507 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8508
8509 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
8510
8511 PR target/49313
8512 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8513 (__ctzsi2): Result for 0 may be undefined.
8514 (__ctzhi2): Result for 0 may be undefined.
8515 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8516 (__popcountsi2): Ditto. And don't clobber r26.
8517 (__popcountdi2): Ditto. And don't clobber r27.
8518 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8519 (parityhi2): New expand.
8520 (paritysi2): New expand.
8521 (popcounthi2): New expand.
8522 (popcountsi2): New expand.
8523 (clzhi2): New expand.
8524 (clzsi2): New expand.
8525 (ctzhi2): New expand.
8526 (ctzsi2): New expand.
8527 (ffshi2): New expand.
8528 (ffssi2): New expand.
8529 (copysignsf3): New insn.
8530 (bswapsi2): New expand.
8531 (*parityhi2.libgcc): New insn.
8532 (*parityqihi2.libgcc): New insn.
8533 (*paritysihi2.libgcc): New insn.
8534 (*popcounthi2.libgcc): New insn.
8535 (*popcountsi2.libgcc): New insn.
8536 (*popcountqi2.libgcc): New insn.
8537 (*popcountqihi2.libgcc): New insn-and-split.
8538 (*clzhi2.libgcc): New insn.
8539 (*clzsihi2.libgcc): New insn.
8540 (*ctzhi2.libgcc): New insn.
8541 (*ctzsihi2.libgcc): New insn.
8542 (*ffshi2.libgcc): New insn.
8543 (*ffssihi2.libgcc): New insn.
8544 (*bswapsi2.libgcc): New insn.
8545
8546 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
8547
8548 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8549 the mode of symbolic_opreand RTXes.
8550
8551 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
8552
8553 * config/i386/predicates.md (x86_64_movabs_operand): Return false
8554 for pic_32bit_operand RTXes.
8555 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8556 in DImode.
8557
8558 2011-07-27 Kai Tietz <ktietz@redhat.com>
8559
8560 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8561 for 32-bit, too.
8562 (ix86_handle_abi_attribute): Allow function attributes
8563 ms_abi/sysv_abi in 32-bit mode, too.
8564 * doc/extend.texi: Adjust attribute documentation.
8565
8566 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8567 expression handling.
8568 (and_var_with_comparison_1): Likewise.
8569
8570 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
8571
8572 * params.h (ALLOW_STORE_DATA_RACES): New.
8573 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8574 * Makefile.in (expr.o): Depend on PARAMS_H.
8575 * machmode.h (get_best_mode): Add argument.
8576 * fold-const.c (optimize_bit_field_compare): Add argument to
8577 get_best_mode.
8578 (fold_truthop): Same.
8579 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8580 * expr.c (emit_group_store): Same.
8581 (copy_blkmode_from_reg): Same.
8582 (write_complex_part): Same.
8583 (optimize_bitfield_assignment_op): Add argument.
8584 Add argument to get_best_mode.
8585 (get_bit_range): New.
8586 (expand_assignment): Calculate maxbits and pass it down accordingly.
8587 (store_field): New argument.
8588 (expand_expr_real_2): New argument to store_field. Include params.h.
8589 * expr.h (store_bit_field): New argument.
8590 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8591 into account maxbits.
8592 * calls.c (store_unaligned_arguments_into_pseudos): New argument
8593 to store_bit_field.
8594 * expmed.c (store_bit_field_1): New argument. Use it.
8595 (store_bit_field): Same.
8596 (store_fixed_bit_field): Same.
8597 (store_split_bit_field): Same.
8598 (extract_bit_field_1): Pass new argument to get_best_mode.
8599 (extract_bit_field): Same.
8600 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8601 * doc/invoke.texi: Document parameter allow-store-data-races.
8602
8603 2011-07-27 Jakub Jelinek <jakub@redhat.com>
8604
8605 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8606
8607 2011-07-27 Kai Tietz <ktietz@redhat.com>
8608
8609 * tree-vrp.c (extract_range_from_binary_expr): Remove
8610 TRUTH-binary cases and add new bitwise-cases.
8611 (extract_range_from_assignment): Likewise.
8612 (register_edge_assert_for_1): Likeiwise.
8613 (register_edge_assert_for): Likewise.
8614 (simplify_truth_ops_using_ranges): Likewise.
8615 (simplify_stmt_using_ranges): Likewise.
8616
8617 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
8618
8619 PR target/47372
8620 * config/i386/i386.c (ix86_delegitimize_address): Call
8621 simplify_gen_subreg for PIC with mode of x only if modes of
8622 x and orig_x are different.
8623
8624 2011-07-26 Jakub Jelinek <jakub@redhat.com>
8625
8626 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8627 to GC allocated copy of the string.
8628 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
8629 before .debug_line, not after it.
8630
8631 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8632
8633 PR middle-end/47046
8634 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
8635 evolution_function_is_affine_p on CHREC_RIGHT.
8636
8637 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8638
8639 * tree-data-ref.c (max_stmt_executions_tree): Do not call
8640 lang_hooks.types.type_for_size.
8641
8642 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8643
8644 PR middle-end/47653
8645 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
8646 loops using wrapping semantics.
8647
8648 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
8649
8650 PR middle-end/48805
8651 * tree-scalar-evolution.c (instantiate_scev_r): Return
8652 chrec_dont_know for ADDR_EXPR.
8653
8654 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
8655 H.J. Lu <hongjiu.lu@intel.com>
8656
8657 PR target/47369
8658 PR target/49853
8659 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
8660 if legitimize_tls_address returned operand in wrong mode. Allow
8661 SImode and DImode symbolic operand for PIC. Call convert_to_mode
8662 if legitimize_pic_address returned operand in wrong mode.
8663
8664 2011-07-26 Martin Jambor <mjambor@suse.cz>
8665
8666 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
8667 return false for invariants.
8668
8669 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
8670
8671 * config/i386/i386.md (add->lea splitter): Implement using SWI
8672 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
8673 (add->lea zext splitter): Change operand 2 predicate to
8674 x86_64_nonmemory_operand.
8675
8676 2011-07-26 Richard Guenther <rguenther@suse.de>
8677
8678 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
8679 frequency makes everything hot.
8680
8681 2011-07-26 Richard Guenther <rguenther@suse.de>
8682
8683 PR tree-optimization/49840
8684 * tree-vrp.c (range_fits_type_p): Properly handle full
8685 double-int precision.
8686
8687 2011-07-26 Martin Jambor <mjambor@suse.cz>
8688
8689 PR bootstrap/49786
8690 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
8691 counts.
8692 (update_specialized_profile): Likewise.
8693
8694 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
8695 H.J. Lu <hongjiu.lu@intel.com>
8696
8697 PR target/47381
8698 PR target/49832
8699 PR target/49833
8700 * config/i386/i386.md (i): Change SImode attribute to "e".
8701 (g): Change SImode attribute to "rme".
8702 (di): Change SImode attribute to "nF".
8703 (general_operand): Change SImode attribute to x86_64_general_operand.
8704 (general_szext_operand): Change SImode attribute to
8705 x86_64_szext_general_operand.
8706 (immediate_operand): Change SImode attribute to
8707 x86_64_immediate_operand.
8708 (nonmemory_operand): Change SImode attribute to
8709 x86_64_nonmemory_operand.
8710 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
8711 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
8712 (*lea_1): Use SWI48 mode iterator.
8713 (*lea_1_zext): New insn pattern.
8714 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
8715 (*bt<mode>): Ditto.
8716 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
8717 Update operand constraints.
8718 (addsi_1_zext): Ditto.
8719 (*add<mode>2): Ditto.
8720 (*addsi_3_zext): Ditto.
8721 (*subsi_1_zext): Ditto.
8722 (*subsi_2_zext): Ditto.
8723 (*subsi_3_zext): Ditto.
8724 (*addsi3_carry_zext): Ditto.
8725 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
8726 (*mulsi3_1_zext): Ditto.
8727 (*andsi_1): Ditto.
8728 (*andsi_1_zext): Ditto.
8729 (*andsi_2_zext): Ditto.
8730 (*<any_or:code>si_1_zext): Ditto.
8731 (*<any_or:code>si_2_zext): Ditto.
8732 (*test<mode>_1): Use <general_operand> predicate for operand 1.
8733 (*and<mode>_2): Ditto.
8734 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
8735 (add->lea splitter): Check operand modes in insn constraint. Extend
8736 operands less than SImode wide to SImode.
8737 (add->lea zext splitter): Do not extend input operands to DImode.
8738 (*lea_general_1): Handle only QImode and HImode operands.
8739 (*lea_general_2): Ditto.
8740 (*lea_general_3): Ditto.
8741 (*lea_general_1_zext): Remove.
8742 (*lea_general_2_zext): Ditto.
8743 (*lea_general_3_zext): Ditto.
8744 (*lea_general_4): Check operand modes in insn constraint. Extend
8745 operands less than SImode wide to SImode.
8746 (ashift->lea splitter): Ditto.
8747 * config/i386/i386.c (ix86_print_operand_address): Print address
8748 registers with 'q' modifier on 64bit targets.
8749 * config/i386/predicates.md (pic_32bit_opreand): Define as special
8750 predicate. Reject non-SI and non-DI modes.
8751
8752 2011-07-25 Andrew Pinski <apinski@cavium.com>
8753
8754 PR tree-opt/49671
8755 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
8756 TREE_THIS_NOTRAP into the inner most MEM_REF.
8757 Always copy TREE_THIS_VOLATILE.
8758 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
8759 arguments are not volatile references.
8760
8761 2011-07-25 Richard Henderson <rth@redhat.com>
8762
8763 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
8764 * final.c (final_scan_insn): Don't test for it.
8765 (rest_of_clean_state): Likewise.
8766
8767 2011-07-25 Richard Henderson <rth@redhat.com>
8768
8769 PR debug/49841
8770 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
8771 (emit_frame_save): Likewise.
8772 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
8773 insn onto a dummy blockage insn after the join label.
8774
8775 2011-07-25 Richard Henderson <rth@redhat.com>
8776
8777 * dwarf2cfi.c (dw_trace_info): Add ID member.
8778 (get_trace_index): Remove. Change users to use ID member.
8779 (before_next_cfi_note): New.
8780 (connect_traces): Remove unreachable traces before the main loop.
8781 Look across one trace and generate remember/restore_state if needed.
8782
8783 2011-07-25 Richard Henderson <rth@redhat.com>
8784
8785 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
8786
8787 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
8788
8789 * genattr.c (write_upcase, gen_attr <enum definition writing>):
8790 Move to ...
8791 * genattr-common.c ... here.
8792 (main): Call gen_attr.
8793 * optc-gen.awk: Make generated program include insn-attr-common.h .
8794 * Makefile.in (oprions.o): Depend on insn-attr-common.h
8795
8796 2011-07-25 Anatoly Sokolov <aesok@post.ru>
8797
8798 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8799 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8800 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
8801 m32c_print_operand, m32c_print_operand_address): Remove.
8802 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
8803 Change return type to bool. Change argument type to bool.
8804 (m32c_print_operand, m32c_print_operand_address): Make static.
8805 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8806 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8807
8808 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8809
8810 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8811 attributes): Document mmap.
8812
8813 2011-07-25 Anatoly Sokolov <aesok@post.ru>
8814
8815 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8816 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
8817 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
8818 mmix_print_operand, mmix_print_operand_address): Remove.
8819 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
8820 Change return type to bool. Change argument type to bool.
8821 (mmix_print_operand, mmix_print_operand_address): Make static.
8822 (mmix_intval, mmix_output_condition): Change 'x' argument type
8823 to const_rtx.
8824 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
8825 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8826
8827 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
8828
8829 PR target/39386
8830 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
8831 shift counter for x << x and x >> x shifts.
8832
8833 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8834
8835 PR target/47124
8836 * config.gcc: Reject *-*-solaris2 configuration.
8837
8838 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
8839
8840 PR tree-optimization/49809
8841 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
8842 gimple_get_lhs instead of gimple_assign_lhs.
8843
8844 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8845
8846 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
8847
8848 2011-07-25 Richard Guenther <rguenther@suse.de>
8849
8850 PR tree-optimization/49822
8851 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8852 more. Make sure to preserve stmts with side-effects. Properly
8853 handle virtual defs, follow a longer def chain.
8854
8855 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
8856
8857 PR plugins/45348
8858 PR plugins/48425
8859 PR plugins/46577
8860 * Makefile.in: Do not flatten c-family directory when installing
8861 plugin headers.
8862
8863 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
8864
8865 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
8866 original nodes if we are dealing with virtual clones.
8867
8868 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
8869
8870 * common/config/c6x/c6x-common.c: New file.
8871
8872 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
8873
8874 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
8875
8876 2011-07-25 Richard Guenther <rguenther@suse.de>
8877
8878 PR tree-optimization/49715
8879 * tree-vrp.c: Include expr.h and optabs.h.
8880 (range_fits_type_): New function.
8881 (simplify_float_conversion_using_ranges): Likewise.
8882 (simplify_stmt_using_ranges): Call it.
8883 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
8884 * optabs.c (can_float_p): Export.
8885 * optabs.h (can_float_p): Declare.
8886
8887 2011-07-25 Richard Guenther <rguenther@suse.de>
8888
8889 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
8890 (get_value_range): For out-of-range SSA names or names created
8891 after propagation return a read-only varying range.
8892 (dump_all_value_ranges): Adjust.
8893 (vrp_initialize): Likewise.
8894 (vrp_finalize): Likewise.
8895
8896 2011-07-24 Richard Henderson <rth@redhat.com>
8897
8898 PR debug/49831
8899 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
8900 them entirely.
8901
8902 2011-07-24 Richard Henderson <rth@redhat.com>
8903
8904 PR debug/49825
8905 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
8906 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
8907
8908 2011-07-24 Richard Henderson <rth@redhat.com>
8909
8910 PR debug/49827
8911 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
8912
8913 2011-07-24 Richard Henderson <rth@redhat.com>
8914
8915 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
8916 Zero args_size for abnormal edges. Adjust all callers.
8917
8918 2011-07-24 Richard Henderson <rth@redhat.com>
8919
8920 PR debug/49825
8921 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
8922
8923 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
8924
8925 PR bootstrap/49835
8926 * collect2.c (demangle_flag): Removed.
8927
8928 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
8929
8930 * configure.ac (demangler_in_ld): Default to yes.
8931 * configure: Regenerated.
8932 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
8933 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
8934 --no-demangle options straight through to ld. When
8935 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
8936 way that has the intended effect on Windows.
8937
8938 2011-07-23 Richard Henderson <rth@redhat.com>
8939
8940 * dwarf2cfi.c: Include basic-block.h.
8941 (dw_label_info): Remove.
8942 (trace_work_list, trace_index): New.
8943 (remember_row, emit_cfa_remember): Remove.
8944 (dw_trace_info_hash, dw_trace_info_eq): New.
8945 (get_trace_index, get_trace_info): New.
8946 (save_point_p): New.
8947 (free_cfi_row): Remove.
8948 (add_cfi): Do not emit DW_CFA_remember_state.
8949 (cfa_row_equal_p): New.
8950 (barrier_args_size): Remove.
8951 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
8952 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
8953 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
8954 (dwarf2out_cfi_begin_epilogue): Remove.
8955 (dwarf2out_frame_debug_restore_state): Remove.
8956 (connect_traces, create_pseudo_cfg): New.
8957 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
8958 * Makefile.in (dwarf2cfi.o): Update.
8959
8960 2011-07-23 Richard Henderson <rth@redhat.com>
8961
8962 * dwarf2cfi.c (dw_trace_info): New.
8963 (dw_label_info): New.
8964 (cie_return_save): New.
8965 (cur_trace): New.
8966 (queued_args_size): Rename from args_size. Update all users.
8967 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
8968 (def_cfa_1): Use cur_trace instead of cfa_*.
8969 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
8970 (clobbers_queued_reg_save, reg_saved_in): Likewise.
8971 (dwarf2out_frame_debug_expr): Likewise.
8972 (create_cie_data): Split out from ...
8973 (execute_dwarf2_frame): ... here. Initialize cur_trace.
8974
8975 2011-07-23 Richard Henderson <rth@redhat.com>
8976
8977 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
8978 Update all users to match.
8979 (execute_dwarf2_frame): Free reg_saved_in_data.
8980
8981 2011-07-23 Richard Henderson <rth@redhat.com>
8982
8983 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
8984 (queued_reg_saves): Don't GTY. Change to a VEC.
8985 (queue_reg_save): Update to match.
8986 (dwarf2out_flush_queued_reg_saves): Likewise.
8987 (clobbers_queued_reg_save): Likewise.
8988 (reg_saved_in): Likewise.
8989 (execute_dwarf2_frame): Free queued_reg_saves.
8990
8991 2011-07-23 Richard Henderson <rth@redhat.com>
8992
8993 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
8994
8995 2011-07-23 Richard Henderson <rth@redhat.com>
8996
8997 * dwarf2cfi.c (add_cfi_args_size): Split out from...
8998 (dwarf2out_args_size): ... here.
8999 (add_cfi_restore): Split out from ...
9000 (dwarf2out_frame_debug_cfa_restore): ... here.
9001 (def_cfa_0): Split out from ...
9002 (def_cfa_1): ... here.
9003 (cfi_oprnd_equal_p, cfi_equal_p): New.
9004 (change_cfi_row): New.
9005 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9006 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9007 (output_cfis): Remove.
9008 * dwarf2out.c (output_fde): Simplify output_cfi loop.
9009 (dwarf2out_switch_text_section): Don't call output_cfis.
9010 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9011 * dwarf2out.h: Update decls.
9012 (enum dw_val_class): Add dw_val_class_none.
9013
9014 2011-07-23 Richard Henderson <rth@redhat.com>
9015
9016 * dwarf2cfi.c (update_row_reg_save): New.
9017 (dwarf2out_frame_debug_cfa_expression): Use it.
9018 (dwarf2out_frame_debug_cfa_restore): Likewise.
9019 (reg_save): Likewise. Do not emit DW_CFA_same_value.
9020
9021 2011-07-23 Richard Henderson <rth@redhat.com>
9022
9023 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
9024
9025 2011-07-23 Richard Henderson <rth@redhat.com>
9026
9027 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9028 (cie_cfi_row): New.
9029 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9030 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9031 (cur_row, remember_row): New.
9032 (def_cfa_1): Use cur_row instead of the old_* variables.
9033 (dwarf2out_frame_debug_restore_state): Similarly.
9034 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9035 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9036 (dwarf2out_frame_debug_adjust_cfa): Likewise.
9037 (dwarf2out_frame_debug_cfa_offset): Likewise.
9038 (dwarf2out_frame_debug_expr): Likewise.
9039 (execute_dwarf2_frame): Set up cur_row.
9040 * dwarf2out.h (struct cfa_loc): Mark for GTY.
9041
9042 2011-07-23 Richard Henderson <rth@redhat.com>
9043
9044 * basic-block.h (EDGE_PRESERVE): New.
9045 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9046 * bb-reorder.c: Include except.h.
9047 (fix_up_crossing_landing_pad): New.
9048 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9049 landing pads in the right partition. Duplicate as necessary.
9050 (partition_hot_cold_basic_blocks): Fix up DF info after
9051 duplicating landing pads.
9052 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9053 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9054 is set properly. Validate that EH edges are not CROSSING.
9055 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9056 (dw2_build_landing_pads): ... here.
9057 (convert_to_eh_region_ranges): Remove code to fixup crossing
9058 landing pads.
9059 * except.h (expand_dw2_landing_pad_for_region): Declare.
9060 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9061
9062 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
9063
9064 PR target/49816
9065 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9066
9067 2011-07-22 Jason Merrill <jason@redhat.com>
9068
9069 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9070
9071 2011-07-22 Richard Henderson <rth@redhat.com>
9072
9073 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9074
9075 2011-07-22 Richard Henderson <rth@redhat.com>
9076
9077 * jump.c (maybe_propagate_label_ref): Split out of...
9078 (mark_all_labels): ... here. Do not attempt label_ref
9079 propagation while in cfglayout mode.
9080
9081 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9082
9083 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9084 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9085 (dwarf_attr_name): Handle DW_AT_GNU_macros.
9086 (dwarf2out_define): If the vector is empty and
9087 lineno is 0, emit a dummy entry first.
9088 (dwarf2out_undef): Likewise. Remove redundant semicolon.
9089 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9090 optimize_macinfo_range): New functions.
9091 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
9092 mergeable, optimize longer strings using
9093 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9094 optimize longer sequences of define/undef ops from headers
9095 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
9096 emit a section headers.
9097 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9098 and macinfo_section_label to DEBUG_MACRO_SECTION
9099 resp. DEBUG_MACRO_SECTION_LABEL.
9100 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9101 instead of DW_AT_macro_info.
9102
9103 PR other/32998
9104 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9105 options.
9106 * dwarf2out.c: Include opts.h.
9107 (dchar_p): New typedef. Define heap VEC for it.
9108 (producer_string): New variable.
9109 (gen_producer_string): New function.
9110 (gen_compile_unit_die): Use it.
9111 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9112 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9113 * doc/invoke.texi: Document -grecord-gcc-switches and
9114 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9115 to -frecord-gcc-switches description.
9116
9117 2011-07-22 Jason Merrill <jason@redhat.com>
9118
9119 PR c++/30112
9120 * c-decl.c (c_linkage_bindings): Define.
9121
9122 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
9123
9124 PR debug/49815
9125 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9126
9127 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
9128
9129 * config/i386/i386.c (ix86_option_override_internal): Disallow
9130 MS ABI in x32 mode.
9131 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9132 only for TARGET_LP64.
9133 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9134
9135 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9136
9137 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9138 avoid warnings when GCC is built with a C++ compiler.
9139
9140 2011-07-22 Martin Jambor <mjambor@suse.cz>
9141
9142 PR lto/49796
9143 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9144 if decl node is in another partition, call cgraph_get_node only once.
9145
9146 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
9147
9148 * config.gcc (x86_64-*-linux*): Set
9149 default_gnu_indirect_function to yes.
9150
9151 2011-07-22 Richard Guenther <rguenther@suse.de>
9152
9153 PR tree-optimization/45819
9154 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9155 preserve volatile and notrap flags.
9156
9157 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9158 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9159
9160 PR bootstrap/49794
9161 * configure.ac: Test AM_ICONV with CXX.
9162 * configure: Regenerate.
9163 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9164
9165 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9166
9167 PR bootstrap/49797
9168 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9169 (set_cloog_options): Use it.
9170
9171 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9172
9173 PR c++/49756
9174 * gcc.c (main): Call stack_limit_increase (64MB).
9175 * toplev.c (toplev_main): Likewise.
9176
9177 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9178
9179 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9180 instead of force_reg.
9181
9182 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9183
9184 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9185 needed and use force_reg after convert.
9186 (ix86_expand_call): Likewise.
9187 (ix86_expand_special_args_builtin): Likewise.
9188 (ix86_expand_builtin): Likewise.
9189
9190 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9191
9192 PR middle-end/47654
9193 PR middle-end/49649
9194 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9195 in parameter. Initialize v1 and v2 based on the values returned
9196 by clast_name_to_lb_ub.
9197 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9198 values.
9199 (type_for_clast_bin): Same.
9200 (type_for_clast_expr): Same.
9201 (type_for_clast_eq): Update calls to type_for_clast_expr.
9202 (type_for_clast_for): Same.
9203 (build_iv_mapping): Same.
9204 * graphite-ppl.h (value_min): New.
9205
9206 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9207
9208 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9209 types whenever possible.
9210
9211 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9212
9213 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9214 and ub fields.
9215 (new_clast_name_index): Add lb and ub parameters.
9216 (free_clast_name_index): New.
9217 (clast_name_to_lb_ub): New.
9218 (save_clast_name_index): Add lb and ub parameters.
9219 (compute_bounds_for_param): New.
9220 (type_for_level): Removed.
9221 (type_for_clast_for): Removed level parameter. Do not call
9222 type_for_level.
9223 (graphite_create_new_loop): Store the lb and ub for the clast_name
9224 of the iterator of the loop that has been generated.
9225 (graphite_create_new_loop_guard): Remove parameter level.
9226 (create_params_index): Store the lb and ub of each parameter.
9227 (gloog): Use free_clast_name_index. Pass to create_params_index
9228 the current scop.
9229
9230 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9231
9232 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9233 (max_precision_type): Inline max_signed_precision_type.
9234 (type_for_clast_red): Use max_precision_type.
9235 (type_for_clast_bin): Same.
9236 (type_for_clast_for): Same.
9237
9238 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9239
9240 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9241 type_for_interval.
9242 (gcc_type_for_value): Renamed type_for_value.
9243 (gcc_type_for_clast_term): Renamed type_for_clast_term.
9244 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9245 (gcc_type_for_clast_red): Renamed type_for_clast_red.
9246 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9247 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9248 (graphite_translate_clast_equation): Update calls.
9249 (compute_type_for_level): Renamed type_for_level.
9250 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9251 (build_iv_mapping): Update calls.
9252 (graphite_create_new_loop_guard): Same.
9253
9254 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9255
9256 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9257 comment.
9258
9259 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9260
9261 * graphite-clast-to-gimple.c (struct ivs_params): New.
9262 (clast_name_to_gcc): Use ivs_params to pass around parameters.
9263 (clast_to_gcc_expression): Same.
9264 (clast_to_gcc_expression_red): Same.
9265 (gcc_type_for_clast_term): Same.
9266 (gcc_type_for_clast_expr): Same.
9267 (gcc_type_for_clast_red): Same.
9268 (gcc_type_for_clast_bin): Same.
9269 (gcc_type_for_clast_eq): Same.
9270 (graphite_translate_clast_equation): Same.
9271 (graphite_create_guard_cond_expr): Same.
9272 (graphite_create_new_guard): Same.
9273 (graphite_create_new_loop): Same.
9274 (build_iv_mapping): Same.
9275 (translate_clast_user): Same.
9276 (graphite_create_new_loop_guard): Same.
9277 (translate_clast): Same.
9278 (translate_clast_for_loop): Same.
9279 (translate_clast_for): Same.
9280 (translate_clast_guard): Same.
9281 (initialize_cloog_names): Fix typo.
9282 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9283
9284 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9285
9286 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9287 (new_clast_name_index): Add level parameter.
9288 (clast_name_to_level): New.
9289 (save_clast_name_index): Add level parameter.
9290 (newivs_to_depth_to_newiv): Removed.
9291 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9292 (graphite_create_new_loop): Add level parameter. Pass level to
9293 save_clast_name_index.
9294 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9295 (create_params_index): Pass level to save_clast_name_index.
9296
9297 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9298
9299 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9300 recompute type, lb, and ub. Get them from...
9301 (graphite_create_new_loop_guard): ...here. Pass in parameter
9302 pointers to type, lb, and ub.
9303 (translate_clast_for_loop): Update function calls.
9304 (translate_clast_for): Same.
9305
9306 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9307
9308 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9309 psct_dynamic_dim.
9310 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9311 (gcc_type_for_iv_of_clast_loop): Update use of level.
9312 (gloog): Start counting nesting level from 0.
9313 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9314 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9315 psct_dynamic_dim on level.
9316
9317 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9318
9319 * config/i386/i386.c (ix86_legitimize_address): Convert to
9320 Pmode if needed.
9321
9322 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9323
9324 * config/i386/i386.c (function_value_64): Always return pointers
9325 in Pmode.
9326 (ix86_promote_function_mode): New.
9327 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9328
9329 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9330
9331 PR tree-optimization/49749
9332 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9333 remove no-longer-used maxrank variable.
9334
9335 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
9336
9337 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9338
9339 2011-07-21 Jason Merrill <jason@redhat.com>
9340
9341 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9342 * recog.h (struct insn_data_d): Check it instead of
9343 HAVE_DESIGNATED_INITIALIZERS.
9344 * genoutput.c (output_insn_data): Likewise.
9345
9346 2011-07-21 Richard Guenther <rguenther@suse.de>
9347
9348 PR tree-optimization/49770
9349 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9350 valueized any operand. Renamed from ...
9351 (valueize_refs): ... this. New wrapper around valueize_refs_1.
9352 (valueize_shared_reference_ops_from_ref): Return whether we
9353 valueized any operand.
9354 (vn_reference_lookup): Only when we valueized any operand
9355 use the valueized reference for alias analysis. Do not preserve
9356 the original reference tree in this case.
9357
9358 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
9359
9360 * config/i386/i386.c (ix86_decompose_address): Reject all but
9361 register operands and subregs of DImode hard registers in index.
9362
9363 2011-07-21 Kai Tietz <ktietz@redhat.com>
9364
9365 * fold-const.c (fold_unary_loc): Preserve indirect
9366 comparison cast to none-boolean type.
9367 * tree-ssa.c (useless_type_conversion_p): Preserve cast
9368 from/to boolean-type.
9369 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9370 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9371 * tree-cfg.c (verify_gimple_comparison): Check result
9372 type of comparison expression.
9373 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9374 of condition result and disallow type-cast sinking into comparison.
9375
9376 2011-07-21 Richard Guenther <rguenther@suse.de>
9377
9378 * tree-ssa-forwprop.c (combine_conversions): Return whether
9379 we have to run cfg-cleanup. Properly remove dead stmts.
9380 (ssa_forward_propagate_and_combine): Adjust.
9381
9382 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
9383
9384 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9385
9386 2011-07-21 Kai Tietz <ktietz@redhat.com>
9387
9388 * tree-ssa-propagate.c (substitute_and_fold): Use
9389 do_dce flag to deside, if BB's statements are scanned
9390 in last to first, or first to last order.
9391
9392 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
9393
9394 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9395
9396 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
9397 Uros Bizjak <ubizjak@gmail.com>
9398 Richard Henderson <rth@redhat.com>
9399
9400 * config/i386/constraints.md (w): New.
9401
9402 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9403 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9404
9405 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9406 instead of TARGET_64BIT.
9407
9408 * config/i386/i386.md (indirect_jump): Replace
9409 nonimmediate_operand with indirect_branch_operand.
9410 (*indirect_jump): Likewise. Replace constraint "m" with "w".
9411 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9412 Convert operand 0 to Pmode for x32 if not PIC.
9413 (*tablejump_1): Replace nonimmediate_operand with
9414 indirect_branch_operand. Replace constraint "m" with "w".
9415 (*call_vzeroupper): Replace constraint "m" with "w".
9416 (*call): Likewise.
9417 (*call_rex64_ms_sysv_vzeroupper): Likewise.
9418 (*call_rex64_ms_sysv): Likewise.
9419 (*call_value_vzeroupper): Likewise.
9420 (*call_value): Likewise.
9421 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9422 (*call_value_rex64_ms_sysv): Likewise.
9423 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9424
9425 * config/i386/predicates.md (indirect_branch_operand): New.
9426 (call_insn_operand): Support x32.
9427
9428 2011-07-20 Michael Eager <eager@eagercon.com>
9429
9430 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9431
9432 2011-07-20 Richard Henderson <rth@redhat.com>
9433
9434 * cfg.c (dump_bb_info): Dump basic_block->flags.
9435 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9436
9437 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
9438
9439 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9440 of DImode hard registers in index.
9441 (ix86_legitimate_address_p): Allow subregs of base and index to span
9442 more than a word. Assert that subregs of base and index satisfy
9443 register_no_elim_operand predicates. Reject addresses where
9444 base and index have different modes.
9445
9446 2011-07-20 Robert Millan <rmh@gnu.org>
9447
9448 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
9449
9450 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9451
9452 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9453 removing now-unnecessary assignment.
9454
9455 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9456
9457 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9458 memory address space to the type's address space.
9459
9460 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
9461
9462 PR target/36467
9463 PR target/49687
9464 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9465 and expand appropriately if there is a CONST_INT in operand2.
9466 (usmulqihi3): New insn.
9467 (*sumulqihi3): New insn.
9468 (*osmulqihi3): New insn.
9469 (*oumulqihi3): New insn.
9470 (*muluqihi3.uconst): New insn_and_split.
9471 (*muluqihi3.sconst): New insn_and_split.
9472 (*mulsqihi3.sconst): New insn_and_split.
9473 (*mulsqihi3.uconst): New insn_and_split.
9474 (*mulsqihi3.oconst): New insn_and_split.
9475 (*ashifthi3.signx.const): New insn_and_split.
9476 (*ashifthi3.signx.const7): New insn_and_split.
9477 (*ashifthi3.zerox.const): New insn_and_split.
9478 (mulsqihi3): New insn.
9479 (muluqihi3): New insn.
9480 (muloqihi3): New insn.
9481 * config/avr/predicates.md (const_2_to_7_operand): New.
9482 (const_2_to_6_operand): New.
9483 (u8_operand): New.
9484 (s8_operand): New.
9485 (o8_operand): New.
9486 (s9_operand): New.
9487 (register_or_s9_operand): New.
9488
9489 2011-07-20 Kai Tietz <ktietz@redhat.com>
9490
9491 * builtins.c (fold_builtin_expect): See through the cast
9492 from truthvalue_type_node to long.
9493
9494 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9495
9496 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9497 where we can use them from the standard and altivec instruction
9498 sets, instead of always using the 3 operand VSX forms that require
9499 the destination to overlap one of the inputs.
9500 (vsx_fms*): Ditto.
9501 (vsx_fnma*): Ditto.
9502 (vsx_fnms*): Ditto.
9503
9504 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9505 for DF types.
9506 (fmsdf4_fpr): Ditto.
9507 (nfmadf4_fpr): Ditto.
9508 (nfmsdf4_fpr): Ditto.
9509
9510 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
9511
9512 * genrecog.c (make_insn_sequence): Correct position numbering
9513 when filtering out match_scratch and match_dup.
9514
9515 2011-07-20 Richard Guenther <rguenther@suse.de>
9516
9517 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9518 against already removed statements.
9519 (forward_propagate_into_comparison): Remove dead defining stmts.
9520 (forward_propagate_into_gimple_cond): Likewise.
9521 (forward_propagate_into_cond): Simplify.
9522 (ssa_forward_propagate_and_combine): Handle changed cfg from
9523 forward_propagate_into_comparison.
9524 * tree-ssa-phiopt.c (conditional_replacement): Use proper
9525 locations for newly built statements.
9526
9527 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
9528
9529 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9530
9531 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9532
9533 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9534 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9535
9536 2011-07-20 Richard Guenther <rguenther@suse.de>
9537
9538 PR middle-end/18908
9539 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9540 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9541 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
9542
9543 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
9544
9545 * config/frv/frv.c (frv_register_move_cost): Define explicitly
9546 costs for subclasses of GR_REGS.
9547
9548 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
9549
9550 PR target/49780
9551 * config/i386/predicates.md (no_seg_addres_operand): No more special.
9552 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9553 of DImode hard registers in base.
9554 (ix86_legitimate_address_p): Allow SImode and DImode base and index
9555 registers.
9556
9557 2011-07-20 Richard Guenther <rguenther@suse.de>
9558
9559 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9560 (unify_nodes): Deal with that.
9561 (solve_graph): Likewise.
9562
9563 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
9564
9565 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9566 canonicalize left operand from ZERO_EXTEND to AND.
9567
9568 2011-07-20 Anatoly Sokolov <aesok@post.ru>
9569
9570 * target.def (class_max_nregs): New hook.
9571 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9572 * doc/tm.texi: Regenerate.
9573 * targhooks.c (default_class_max_nregs): New function.
9574 * targhooks.h (default_class_max_nregs): Declare.
9575 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9576 x_ira_reg_class_min_nregs arrays to unsigned char.
9577 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9578 hook instead of CLASS_MAX_NREGS macro.
9579 * reginfo.c (restore_register_info): Ditto.
9580 * ira-conflicts.c (process_regs_for_copy): Use
9581 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9582 Change type rclass and aclass vars to reg_class_t.
9583 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9584 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9585 reg_class_t.
9586 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9587 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9588
9589 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9590 * config/i386/i386.c (ix86_class_max_nregs): New function.
9591 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9592 instead of CLASS_MAX_NREGS macro.
9593 (TARGET_CLASS_MAX_NREGS): Define.
9594 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9595 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9596 * config/avr/avr.c (class_max_nregs): Remove function.
9597 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9598 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9599 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9600 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9601 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9602 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9603 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9604 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9605 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9606 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9607 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9608 * config/score/score.h (CLASS_MAX_NREGS): Remove.
9609 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9610 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9611 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9612
9613 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
9614
9615 * cif-code.def (OVERWRITABLE): Fix typo and move around.
9616 (TARGET_OPTIMIZATION_MISMATCH): Delete.
9617 (EH_PERSONALITY): Fix typo.
9618 (NON_CALL_EXCEPTIONS): Fix message.
9619 (OPTIMIZATION_MISMATCH): Adjust message.
9620 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9621
9622 2011-07-19 Ian Lance Taylor <iant@google.com>
9623
9624 * doc/install.texi (Configuration): Document
9625 --enable-build-poststage1-with-cxx.
9626
9627 2011-07-19 Robert Millan <rmh@gnu.org>
9628
9629 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
9630 (GLIBC_DYNAMIC_LINKER): Remove.
9631
9632 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
9633 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9634 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9635 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
9636 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
9637 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
9638
9639 * config/mips/linux.h: Remove everything except for ...
9640 (GLIBC_DYNAMIC_LINKER): ... this macro.
9641
9642 * config/mips/linux64.h: Remove everything except for ...
9643 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9644 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9645 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
9646 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
9647 (GNU_USER_LINK_EMULATIONN32): New macros.
9648
9649 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
9650 Use the new headers.
9651
9652 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9653
9654 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
9655 Add offset_known_p and size_known_p fields.
9656 (MEM_OFFSET_KNOWN_P): Update accordingly.
9657 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
9658 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
9659 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
9660 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
9661 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
9662 (init_emit_regs): Likewise.
9663
9664 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9665
9666 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
9667 (MEM_OFFSET): Change from returning an rtx to returning a
9668 HOST_WIDE_INT.
9669 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
9670 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
9671 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9672 (clear_mem_offset): Declare.
9673 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
9674 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
9675 MEM_OFFSET to get a HOST_WIDE_INT offset.
9676 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
9677 (adjust_offset_for_component_ref): Take a bool "known_p"
9678 parameter and a HOST_WIDE_INT "offset" parameter.
9679 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
9680 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
9681 than an rtx. Use clear_mem_offset to clear the offset.
9682 * cfgcleanup.c (merge_memattrs): Likewise.
9683 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
9684 * function.c (assign_parm_find_stack_rtl): Likewise.
9685 (assign_parm_setup_stack): Likewise.
9686 * print-rtl.c (print_rtx): Likewise.
9687 * reload.c (find_reloads_subreg_address): Likewise.
9688 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9689 * var-tracking.c (INT_MEM_OFFSET): Likewise.
9690 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9691 (get_mem_align_offset): Likewise.
9692 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9693 (clear_mem_offset): New function.
9694 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
9695 offset rather than an rtx. Assume both the expressio and offset
9696 are available.
9697 (r10k_needs_protection_p_1): Update accordingly, checking the
9698 expression and offset availability here instead.
9699
9700 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9701
9702 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
9703 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
9704 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
9705 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
9706 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9707 (clear_mem_size): Declare.
9708 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9709 (clear_mem_size): New function.
9710 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
9711 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
9712 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
9713 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
9714 to clear the size.
9715 (nonoverlapping_memrefs_p): Likewise.
9716 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
9717 (expand_builtin_init_trampoline): Likewise.
9718 * calls.c (compute_argument_addresses): Likewise.
9719 * cfgcleanup.c (merge_memattrs): Likewise.
9720 * dce.c (find_call_stack_args): Likewise.
9721 * dse.c (record_store, scan_insn): Likewise.
9722 * dwarf2out.c (dw_sra_loc_expr): Likewise.
9723 * expr.c (emit_block_move_hints): Likewise.
9724 * function.c (assign_parm_find_stack_rtl): Likewise.
9725 * print-rtl.c (print_rtx): Likewise.
9726 * reload.c (find_reloads_subreg_address): Likewise.
9727 * rtlanal.c (may_trap_p_1): Likewise.
9728 * var-tracking.c (track_expr_p): Likewise.
9729 * varasm.c (assemble_trampoline_template): Likewise.
9730 * config/arm/arm.c (arm_print_operand): Likewise.
9731 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
9732 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
9733 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
9734 (expand_constant_setmem_prologue): Likewise.
9735 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
9736 * config/rs6000/rs6000.c (expand_block_move): Likewise.
9737 (adjacent_mem_locations): Likewise.
9738 * config/s390/s390.c (s390_expand_setmem): Likewise.
9739 (s390_expand_insv): Likewise.
9740 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
9741 (*extendqi<mode>2_short_displ): Likewise.
9742 * config/sh/sh.c (expand_block_move): Likewise.
9743 * config/sh/sh.md (extv, extzv): Likewise.
9744
9745 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9746
9747 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
9748 (mem_attrs_htab_eq): ...here.
9749 (find_mem_attrs): Replace with...
9750 (set_mem_attrs): ...this function. Take a mem_attrs structure
9751 rather than individual fields.
9752 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9753 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9754 (set_mem_size, change_address, adjust_address_1, offset_address)
9755 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9756 Update accordingly.
9757
9758 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9759
9760 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
9761 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
9762 Provide a dummy definition of MEM_ADDR_SPACE for generators.
9763 (target_rtl): Add x_mode_mem_attrs.
9764 (mode_mem_attrs): New macro.
9765 (get_mem_attrs): New function.
9766 * emit-rtl.c (get_mem_attrs): Rename to...
9767 (find_mem_attrs): ...this.
9768 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
9769 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
9770 (set_mem_size, change_address, adjust_address_1, offset_address)
9771 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
9772 Update accordingly.
9773 (init_emit_regs): Initialize mode_mem_attrs.
9774
9775 2011-07-19 Richard Guenther <rguenther@suse.de>
9776
9777 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
9778 TRUTH_*_EXPR handling.
9779 * tree-ssa-operands.c (get_expr_operands): Likewise.
9780 * tree-ssa-pre.c (fully_constant_expression): Likewise.
9781 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
9782 Likewise.
9783 (is_and_or_or): Likewise.
9784 (is_norm_cond_subset_of): Likewise.
9785
9786 2011-07-19 Richard Guenther <rguenther@suse.de>
9787
9788 * tree.h (fold_build_pointer_plus_loc): New helper function.
9789 (fold_build_pointer_plus_hwi_loc): Likewise.
9790 (fold_build_pointer_plus): Define.
9791 (fold_build_pointer_plus_hwi): Likewise.
9792 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
9793 (fold_builtin_memory_op): Likewise.
9794 (fold_builtin_stpcpy): Likewise.
9795 (fold_builtin_memchr): Likewise.
9796 (fold_builtin_strstr): Likewise.
9797 (fold_builtin_strchr): Likewise.
9798 (fold_builtin_strrchr): Likewise.
9799 (fold_builtin_strpbrk): Likewise.
9800 (fold_builtin_strcat): Likewise.
9801 (expand_builtin_memory_chk): Likewise.
9802 (fold_builtin_memory_chk): Likewise.
9803 * c-typeck.c (build_unary_op): Likewise.
9804 * cgraphunit.c (thunk_adjust): Likewise.
9805 * fold-const.c (build_range_check): Likewise.
9806 (fold_binary_loc): Likewise.
9807 * omp-low.c (extract_omp_for_data): Likewise.
9808 (expand_omp_for_generic): Likewise.
9809 (expand_omp_for_static_nochunk): Likewise.
9810 (expand_omp_for_static_chunk): Likewise.
9811 * tree-affine.c (add_elt_to_tree): Likewise.
9812 * tree-data-ref.c (split_constant_offset_1): Likewise.
9813 * tree-loop-distribution.c (generate_memset_zero): Likewise.
9814 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
9815 * tree-predcom.c (ref_at_iteration): Likewise.
9816 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
9817 (add_to_parts): Likewise.
9818 (create_mem_ref): Likewise.
9819 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9820 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
9821 (number_of_iterations_le): Likewise.
9822 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
9823 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
9824 (vect_create_addr_base_for_vector_ref): Likewise.
9825 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
9826 (vect_create_cond_for_alias_checks): Likewise.
9827 * tree-vrp.c (extract_range_from_assert): Likewise.
9828 * config/alpha/alpha.c (alpha_va_start): Likewise.
9829 (alpha_gimplify_va_arg_1): Likewise.
9830 * config/i386/i386.c (ix86_va_start): Likewise.
9831 (ix86_gimplify_va_arg): Likewise.
9832 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
9833 * config/mep/mep.c (mep_expand_va_start): Likewise.
9834 (mep_gimplify_va_arg_expr): Likewise.
9835 * config/mips/mips.c (mips_va_start): Likewise.
9836 (mips_gimplify_va_arg_expr): Likewise.
9837 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9838 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
9839 (rs6000_gimplify_va_arg): Likewise.
9840 * config/s390/s390.c (s390_va_start): Likewise.
9841 (s390_gimplify_va_arg): Likewise.
9842 * config/sh/sh.c (sh_va_start): Likewise.
9843 (sh_gimplify_va_arg_expr): Likewise.
9844 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
9845 * config/spu/spu.c (spu_va_start): Likewise.
9846 (spu_gimplify_va_arg_expr): Likewise.
9847 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
9848 Likewise.
9849 (xstormy16_gimplify_va_arg_expr): Likewise.
9850 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
9851 (xtensa_gimplify_va_arg_expr): Likewise.
9852
9853 2011-07-19 Richard Guenther <rguenther@suse.de>
9854
9855 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
9856 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
9857 handling.
9858
9859 PR middle-end/18908
9860 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
9861 result of BIT_*_EXPR to bitfield precision.
9862
9863 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
9864
9865 PR tree-optimization/49742
9866 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
9867 as a potential write.
9868
9869 2011-07-19 Richard Guenther <rguenther@suse.de>
9870
9871 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
9872 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
9873 (forward_propagate_comparison): Simplify, remove obsolete code.
9874
9875 2011-07-19 Richard Guenther <rguenther@suse.de>
9876
9877 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
9878 BIT_XOR_EXPR, same as the RTL expander does.
9879 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
9880 (verify_gimple_assign_unary): Likewise.
9881 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
9882 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
9883 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
9884
9885 2011-07-19 Jakub Jelinek <jakub@redhat.com>
9886
9887 PR tree-optimization/49768
9888 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
9889 if offset is smaller than bitoffset, but offset+size is bigger
9890 than bitoffset.
9891
9892 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
9893
9894 PR tree-optimization/49771
9895 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
9896 zero step, set segment length to the size of the data-ref's type.
9897
9898 2011-07-18 Martin Jambor <mjambor@suse.cz>
9899
9900 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
9901 comments.
9902 (ipcp_values_pool): Declare.
9903 (ipcp_sources_pool): Likewise.
9904 (ipcp_lattice): Changed to forward declaration.
9905 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
9906 cannot_devirtualize.
9907 (ipa_node_params): New fields descriptors, lattices, known_vals,
9908 clone_for_all_contexts and node dead, removed fields params and
9909 count_scale.
9910 (ipa_set_param_count): Removed.
9911 (ipa_get_param_count): Made to work with descriptors vector.
9912 (ipa_get_param): Updated.
9913 (ipa_param_cannot_devirtualize_p): Removed.
9914 (ipa_param_types_vec_empty): Likewise.
9915 (ipa_set_param_used): New function.
9916 (ipa_get_param_used): Updated to use descriptors vector.
9917 (ipa_func_list): Removed.
9918 (ipa_init_func_list): Removed declaration.
9919 (ipa_push_func_to_list_1): Likewise.
9920 (ipa_pop_func_from_list): Likewise.
9921 (ipa_push_func_to_list): Removed.
9922 (ipa_lattice_from_jfunc): Remove declaration.
9923 (ipa_get_jf_pass_through_result): Declare.
9924 (ipa_get_jf_ancestor_result): Likewise.
9925 (ipa_value_from_jfunc): Likewise.
9926 (ipa_get_lattice): Update.
9927 (ipa_lat_is_single_const): New function.
9928 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
9929 (ipa_init_func_list): Likewise.
9930 (ipa_pop_func_from_list): Likewise.
9931 (ipa_get_param_decl_index): Fix coding style.
9932 (count_formal_params): Removed.
9933 (count_formal_params_1): Renamed to count_formal_params.
9934 (ipa_populate_param_decls): Update to use descriptors vector.
9935 (ipa_initialize_node_params): Likewise.
9936 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
9937 (ipa_analyze_params_uses): Likewise.
9938 (ipa_free_node_params_substructures): Likewise and free also lattices
9939 and known values.
9940 (duplicate_array): Removed.
9941 (ipa_edge_duplication_hook): Add the new edge to the list of edge
9942 clones.
9943 (ipa_node_duplication_hook): Update to use new lattices.
9944 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
9945 (ipa_free_all_structures_after_iinln): Likewise.
9946 (ipa_write_node_info): Update to use new lattices.
9947 (ipa_read_node_info): Likewise.
9948 (ipa_get_jf_pass_through_result): New function.
9949 (ipa_get_jf_ancestor_result): Likewise.
9950 (ipa_value_from_jfunc): Likewise.
9951 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
9952 * ipa-cp.c: Reimplemented.
9953 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
9954 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
9955 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
9956 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
9957 * doc/invoke.texi (devirt-type-list-size): Removed description.
9958 (ipa-cp-value-list-size): Added description.
9959
9960 2011-07-18 Richard Henderson <rth@redhat.com>
9961
9962 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
9963 before calling create_basic_block.
9964
9965 2011-07-18 Jakub Jelinek <jakub@redhat.com>
9966
9967 PR middle-end/49675
9968 * tree.c (build_common_builtin_nodes): Register
9969 __builtin_return_address, __cyg_profile_func_enter
9970 and __cyg_profile_func_exit.
9971
9972 2011-07-18 Richard Henderson <rth@redhat.com>
9973
9974 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
9975 (add_labels_and_missing_jumps): ... here.
9976 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
9977
9978 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
9979
9980 PR target/47744
9981 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9982 of DImode hard registers in PLUS address chains.
9983
9984 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9985
9986 PR bootstrap/49769
9987 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
9988 (alpha*-*-freebsd*): Likewise.
9989 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9990 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9991 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
9992 crtprec80.o, crtfastmath.o to extra_parts for all targets.
9993 (ia64*-*-elf*): Remove extra_parts.
9994 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
9995 (sparc64-*-linux*): Likewise.
9996 (sparc64-*-freebsd*): Likewise.
9997
9998 Revert:
9999 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10000 (ia64*-*-linux*): Likewise.
10001 (mips64*-*-linux*): Likewise.
10002 (mips*-*-linux*): Likewise.
10003
10004 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
10005
10006 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10007
10008 2011-07-18 Richard Guenther <rguenther@suse.de>
10009
10010 * gimplify.c (gimplify_expr): Use input_location, not saved_location
10011 when building new trees.
10012
10013 2011-07-18 Richard Guenther <rguenther@suse.de>
10014
10015 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10016 expansion result to bitfield precision if required.
10017
10018 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10019
10020 * config.gcc (i[3456x]86-*-netware*): Remove.
10021
10022 * gthr-nks.h: Remove.
10023 * configure.ac (enable_threads): Remove nks.
10024 * configure: Regenerate.
10025
10026 * config/i386/i386.c (ix86_encode_section_info): Remove netware
10027 reference.
10028 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10029 <netware.h> reference.
10030
10031 * config/i386/netware-libgcc.c,
10032 gcc/config/i386/netware-libgcc.def,
10033 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10034 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10035 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10036 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10037
10038 * doc/extend.texi (Function Attributes,
10039 callee_pop_aggregate_return): Remove i?86-netware reference.
10040 * doc/install.texi (Configuration, --enable-threads): Remove nks.
10041
10042 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10043
10044 PR target/49746
10045 Revert:
10046 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10047
10048 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10049 patterns.
10050
10051 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
10052
10053 PR middle-end/49732
10054 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10055
10056 2011-07-16 Matthias Klose <doko@ubuntu.com>
10057
10058 * doc/install.texi: Document --enable-static-libjava.
10059
10060 2011-07-15 Richard Henderson <rth@redhat.com>
10061
10062 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10063 Replace all three arguments by returning a VEC of edges.
10064 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10065 pointers and counts.
10066 (fix_edges_for_rarely_executed_code): Merge ...
10067 (rest_of_handle_partition_blocks): ... into...
10068 (partition_hot_cold_basic_blocks): ... here. Return todo items if
10069 any work was performed.
10070 (pass_partition_blocks): Clear todo_flags_finish.
10071
10072 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
10073 Jakub Jelinek <jakub@redhat.com>
10074 Jonathan Wakely <jwakely.gcc@gmail.com>
10075
10076 PR libstdc++/49745
10077 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10078 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10079
10080 2011-07-15 Jason Merrill <jason@redhat.com>
10081
10082 PR testsuite/49741
10083 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10084 rather than --tool_opts.
10085
10086 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
10087
10088 * doc/plugins.texi (Building GCC plugins): gengtype needs its
10089 corresponding gtype.state.
10090
10091 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10092
10093 PR target/49723
10094 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10095
10096 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10097
10098 PR target/48220
10099 * doc/md.texi (Standard Names): Document window_save.
10100 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10101 expand_debug_expr and expand_debug_source_expr. If the target has
10102 a window_save instruction, adjust the ENTRY_VALUE_EXP.
10103 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10104 SSA_NAME_VAR is a parameter.
10105 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10106 * var-tracking.c (parm_reg_t): New type and associated vector type.
10107 (windowed_parm_regs): New variable.
10108 (adjust_insn): If the target has a window_save instruction and this
10109 is the instruction, make its effect on parameter registers explicit.
10110 (next_non_note_insn_var_location): New function.
10111 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10112 (vt_add_function_parameter): If the target has a window_save insn,
10113 adjust the incoming RTL and record that in windowed_parm_regs.
10114 (vt_finalize): Free windowed_parm_regs.
10115
10116 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
10117
10118 * doc/invoke.texi (C6X Options): New section.
10119 * doc/md.texi (TI C6X family): New section.
10120 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10121 tic6x-*-uclinux.
10122 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10123 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10124 Provide C6X definitions.
10125 * config/c6x/c6x.md: New file.
10126 * config/c6x/constraints.md: New file.
10127 * config/c6x/predicates.md: New file.
10128 * config/c6x/c6x-sched.md.in: New file.
10129 * config/c6x/c6x-sched.md: New file.
10130 * config/c6x/gensched.sh: New file.
10131 * config/c6x/c6x-mult.md.in: New file.
10132 * config/c6x/genmult.sh: New file.
10133 * config/c6x/c6x-mult.md: New file.
10134 * config/c6x/sync.md: New file.
10135 * config/c6x/c6x-protos.h: New file.
10136 * config/c6x/sfp-machine.h: New file.
10137 * config/c6x/c6x.c: New file.
10138 * config/c6x/c6x.h: New file.
10139 * config/c6x/crti.s: New file.
10140 * config/c6x/crtn.s: New file.
10141 * config/c6x/lib1funcs.asm: New file.
10142 * config/c6x/c6x-modes.def: New file.
10143 * config/c6x/genopt.sh: New file.
10144 * config/c6x/c6x.opt: New file.
10145 * config/c6x/c6x-tables.opt: New file.
10146 * config/c6x/c6x-opts.h: New file.
10147 * config/c6x/c6x-isas.def: New file.
10148 * config/c6x/elf.h: New file.
10149 * config/c6x/elf-common.h: New file.
10150 * config/c6x/uclinux-elf.h: New file.
10151 * config/c6x/t-c6x: New file.
10152 * config/c6x/t-c6x-elf: New file.
10153 * config/c6x/t-c6x-uclinux: New file.
10154 * config/c6x/t-c6x-softfp: New file.
10155 * config/c6x/gtd.c: New file.
10156 * config/c6x/gtf.c: New file.
10157 * config/c6x/ltd.c: New file.
10158 * config/c6x/ltf.c: New file.
10159 * config/c6x/ged.c: New file.
10160 * config/c6x/gef.c: New file.
10161 * config/c6x/led.c: New file.
10162 * config/c6x/lef.c: New file.
10163 * config/c6x/eqd.c: New file.
10164 * config/c6x/eqf.c: New file.
10165 * config/c6x/libgcc-c6xeabi.ver: New file.
10166
10167 Revert
10168 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
10169 PR rtl-optimization/11320
10170 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10171 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10172 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10173 current_sched_info->compute_jump_reg_dependencies. Record which
10174 registers are used and which registers are set by the jump.
10175 Clear deps->reg_conditional_sets after a barrier.
10176 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10177 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10178 (init_deps): Initialize reg_conditional_sets.
10179 (free_deps): Clear reg_conditional_sets.
10180 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10181 Mark registers live on entry of the fallthrough block and conditionally
10182 set as set by the jump. Mark registers live on entry of non-fallthrough
10183 blocks as used by the jump.
10184 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10185 Mark new parameters as unused.
10186
10187 2011-07-14 Andrew Pinski <pinskia@gmail.com>
10188
10189 PR tree-opt/49309
10190 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10191 Use fold_build2_loc instead of build2.
10192 Use the correct type for the new tree.
10193
10194 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10195
10196 PR rtl-optimization/11320
10197 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10198 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10199
10200 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10201
10202 PR target/49487
10203 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10204 of REG.
10205 (*rotw<mode>): Use const_int_operand for operand2.
10206 Use match_scatch for operand3.
10207 (*rotb<mode>): Ditto
10208 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10209
10210 2011-07-14 Richard Guenther <rguenther@suse.de>
10211
10212 PR tree-optimization/49651
10213 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10214 handle dereferences with subvariables.
10215
10216 2011-07-14 Richard Guenther <rguenther@suse.de>
10217
10218 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10219 (fold_stmt_1): Do it here directly on gimple and as a first thing.
10220
10221 2011-07-14 Richard Guenther <rguenther@suse.de>
10222
10223 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10224 not bool_var when folding bool_var != 1 or bool_var == 0.
10225
10226 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10227
10228 * haifa-sched.c (schedule_insns): Remove outdated comment.
10229 (schedule_block): When computing a known value for TODO_SPEC,
10230 just set it rather than using logical operations.
10231 (try_ready): Likewise. Use a local variable rather than a
10232 pointer to TODO_SPEC. Reorder an if statement to move the
10233 easy case to the then block.
10234 * sched-deps.c (dep_spec_p): New static function.
10235 (update_dep): Use it to decide whether to call
10236 change_spec_dep_to_hard.
10237 (get_back_and_forw_lists): Use it.
10238 (sd_resolve_dep): Likewise.
10239 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10240 (haifa_note_mem_dep): Likewise.
10241 (check_dep): Likewise.
10242 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10243 (sched_free_deps): Free in two passes.
10244
10245 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
10246
10247 PR middle-end/49736
10248 * expr.c (all_zeros_p): Undo bogus part of last change.
10249
10250 2011-07-14 Matthias Klose <doko@ubuntu.com>
10251
10252 * doc/extend.texi (optimize attribute): Fix typo.
10253
10254 2011-07-14 Richard Guenther <rguenther@suse.de>
10255
10256 * gimplify.c (gimplify_expr): Only do required conversions.
10257
10258 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10259
10260 PR target/43746
10261 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10262 i.e. use default_elf_select_section.
10263 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10264 (READONLY_DATA_SECTION_ASM_OP): Remove.
10265 (TARGET_ASM_NAMED_SECTION): Move from here...
10266 * config/avr/avr.c: ...to here.
10267 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10268 (avr_asm_named_section): Make static.
10269
10270 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10271
10272 PR bootstrap/49739
10273 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10274 and crtfastmath.o for Linux/x86.
10275
10276 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10277
10278 * haifa-sched.c: Include "hashtab.h"
10279 (sched_no_dce): New global variable.
10280 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10281 SHADOW_P): New macros.
10282 (last_clock_var, cycle_issued_insns): Move declarations.
10283 (must_backtrack): New static variable.
10284 (struct delay_pair): New structure.
10285 (delay_htab, delay_htab_i2): New static variables.
10286 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10287 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10288 functions.
10289 (dep_cost_1): If delay pairs exist, try to look up the insns and
10290 use the correct pair delay if we find them.
10291 (rank-for_schedule): Tweak priority for insns that must be scheduled
10292 soon to avoid backtracking.
10293 (queue_insn): Detect conditions which force backtracking.
10294 (ready_add): Likewise.
10295 (struct sched_block_state): Add member shadows_only_p.
10296 (struct haifa_save_data): New structure.
10297 (backtrack_queue): New static variable.
10298 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10299 unschedule_insns_until, restore_last_backtrack_point,
10300 free_topmost_backtrack_point, free_backtrack_queue,
10301 estimate_insn_tick, estimate_shadow_tick): New functions.
10302 (prune_ready_list): New arg shadows_only_p. All callers changed.
10303 If true, remove everything that isn't SHADOW_P. Look up delay
10304 pairs and estimate ticks to avoid scheduling the first insn too early.
10305 (verify_shadows): New function.
10306 (schedule_block): Add machinery to enable backtracking.
10307 (sched_init): Take sched_no_dce into account when setting
10308 DF_LR_RUN_DCE.
10309 (free_delay_pairs): New function.
10310 (init_h_i_d): Initialize INSN_EXACT_TICK.
10311 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10312 * sched-deps.c (sd_unresolve_dep): New function.
10313 * sched-int. (struct haifa_sched_info): New fields save_state
10314 and restore_state.
10315 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10316 feeds_backtrack_insn and shadow_p.
10317 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10318 (sched_no_dce): Declare variable.
10319 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10320 sd_unresolve_dep): Declare functions.
10321 * modulo-sched.c (sms_sched_info): Clear the two new fields.
10322 * sched-rgn.c (rgn_const_sched_info): Likewise.
10323 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10324 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10325 (ebb_sched_info): Add them for the two new fields.
10326 (add_deps_for_risky_insns): Call add_delay_dependencies.
10327
10328 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10329
10330 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10331 Rename -mr11.
10332 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10333 (rs6000_call_indirect_aix): Ditto.
10334 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10335 (call_indirect_aix<ptrsize>_internal): Ditto.
10336 (call_indirect_aix<ptrsize>_nor11): Ditto.
10337 (call_indirect_aix<ptrsize>_internal2): Ditto.
10338 (call_value_indirect_aix<ptrsize>): Ditto.
10339 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10340 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10341 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10342 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10343
10344 2011-07-13 Jason Merrill <jason@redhat.com>
10345
10346 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10347
10348 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10349
10350 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10351 * config/spu/spu.md ("clrsb<mode>2"): New expander.
10352
10353 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
10354
10355 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10356 * configure: Regenerate.
10357
10358 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10359
10360 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10361 (asm_file_start): Remove.
10362 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10363 free_bb_for_insn around code that modifies insns before
10364 restarting df analysis.
10365
10366 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10367
10368 PR target/49541
10369 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
10370 (LINK_SPEC): ... here.
10371
10372 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10373
10374 * haifa-sched.c (struct sched_block_state): New.
10375 (schedule_block): Move some local variables into such a structure.
10376
10377 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10378
10379 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10380 * config/i386/t-crtpc: Remove.
10381 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10382 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10383 tmake_file.
10384 (x86_64-*-darwin*): Likewise.
10385 (i[34567]86-*-linux*): Likewise.
10386 (x86_64-*-linux*): Likewise.
10387
10388 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10389 Handle -mpc32, -mpc64, -mpc80.
10390
10391 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10392
10393 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10394 * config/alpha/t-crtfm: Remove.
10395 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10396 * config/i386/t-crtfm: Remove.
10397 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10398 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10399 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10400 * config/sparc/t-crtfm: Remove.
10401
10402 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10403 (alpha*-*-freebsd*): Likewise.
10404 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10405 (x86_64-*-darwin*): Likewise.
10406 (i[34567]86-*-linux*): Likewise.
10407 (x86_64-*-linux*): Likewise.
10408 (x86_64-*-mingw*): Likewise.
10409 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10410 (ia64*-*-freebsd*): Likewise.
10411 (ia64*-*-linux*): Likewise.
10412 (mips64*-*-linux*): Likewise.
10413 (mips*-*-linux*): Likewise.
10414 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10415 (sparc64-*-linux*): Likewise.
10416 (sparc64-*-freebsd*): Likewise.
10417
10418 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10419
10420 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10421 * config/darwin-crt3.c: Move to ../libgcc/config.
10422 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10423 ($(T)crt3$(objext)): Remove.
10424 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10425 ($(T)crt2$(objext)): Remove.
10426 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10427 (powerpc64-*-darwin*): Likewise.
10428
10429 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
10430
10431 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10432
10433 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10434 (addsi_1_zext): This.
10435
10436 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10437
10438 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10439 * doc/tm.texi: Regenerate.
10440 * target.def (mergeable_rodata_prefix): New defhookpod.
10441 * varasm.c (mergeable_string_section, mergeable_constant_section):
10442 Use it. Allocate name with alloca.
10443
10444 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
10445
10446 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
10447
10448 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
10449
10450 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10451 overlap check.
10452
10453 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
10454
10455 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
10456 (count_type_elements): Delete.
10457 (complete_ctor_at_level_p): Declare.
10458 * expr.c (flexible_array_member_p): New function, split out from...
10459 (count_type_elements): ...here. Make static. Replace allow_flexarr
10460 parameter with for_ctor_p. When for_ctor_p is true, return the
10461 number of elements that should appear in the top-level constructor,
10462 otherwise return an estimate of the number of scalars.
10463 (categorize_ctor_elements): Replace p_must_clear with p_complete.
10464 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
10465 (complete_ctor_at_level_p): New function, borrowing union logic
10466 from old categorize_ctor_elements_1.
10467 (mostly_zeros_p): Return true if the constructor is not complete.
10468 (all_zeros_p): Update call to categorize_ctor_elements.
10469 * gimplify.c (gimplify_init_constructor): Update call to
10470 categorize_ctor_elements. Don't call count_type_elements.
10471 Unconditionally prevent clearing for variable-sized types,
10472 otherwise rely on categorize_ctor_elements to detect
10473 incomplete initializers.
10474
10475 2011-07-13 Richard Guenther <rguenther@suse.de>
10476
10477 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10478 the final type is integral.
10479
10480 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10481
10482 * sched-int.h (struct _dep): Add member cost.
10483 (DEP_COST, UNKNOWN_DEP_COST): New macros.
10484 * sched-deps.c (init_dep_1): Initialize DEP_COST.
10485 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10486 (sched_change_pattern): Reset it for dependent insns.
10487
10488 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10489
10490 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10491 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10492 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10493 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10494 (CRT0_S, MCRT0_S): Remove.
10495 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10496 Remove.
10497 (s-crt0): Remove.
10498 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10499
10500 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
10501
10502 * cse.c (insert_with_costs): Put semi-colon after empty loop body
10503 on the next line.
10504 * emit-rtl.c (push_to_sequence): Likewise.
10505 * haifa-sched.c (max_issue): Likewise.
10506 * matrix-reorg.c (add_allocation_site): Likewise.
10507 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10508 * reload.c (alternative_allows_const_pool_ref): Likewise.
10509 * sched-rgn.c (rgn_add_block): Likewise.
10510 (rgn_fix_recovery_cfg): Likewise.
10511 * tree.c (attribute_list_contained): Likewise.
10512
10513 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
10514
10515 * config/i386/i386.c: Tidy processor feature bitmasks.
10516 (m_P4_NOCONA): New.
10517
10518 2011-07-12 Andrew Pinski <pinskia@gmail.com>
10519
10520 PR rtl-opt/49474
10521 * cprop.c (find_implicit_sets): Correct the condition.
10522
10523 2011-07-12 Richard Henderson <rth@redhat.com>
10524
10525 PR target/49713
10526 * dwarf2out.h (dwarf_frame_regnum): Remove.
10527 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
10528 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
10529 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10530 (execute_dwarf2_frame): Initialize them.
10531 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10532 users of the macros with the variables.
10533 (expand_builtin_dwarf_sp_column): Revert last change.
10534 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
10535 result of DWARF_FRAME_REGNUM into a local variable.
10536
10537 2011-07-12 Richard Henderson <rth@redhat.com>
10538
10539 PR target/49714
10540 * config/i386/i386.c (x86_output_mi_thunk): Use
10541 machopic_indirect_call_target instead of machopic_indirection_name
10542 directly.
10543
10544 2011-07-12 Laurent GUERBY <laurent@guerby.net>
10545 Eric Botcazou <ebotcazou@adacore.com>
10546
10547 * prefix.h: Wrap up in extern "C" block.
10548
10549 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
10550
10551 AMD bdver2 Enablement
10552 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10553 (case ${target}): Add bdver2.
10554 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10555 -march=native recognize bdver2 processors.
10556 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10557 bdver2 def_and_undef
10558 * config/i386/i386.c (struct processor_costs bdver2_cost): New
10559 bdver2 cost table.
10560 (m_BDVER2): New definition.
10561 (m_AMD_MULTIPLE): Includes m_BDVER2.
10562 (initial_ix86_tune_features): Add bdver2 tuning.
10563 (processor_target_table): Add bdver2 entry.
10564 (static const char *const cpu_names): Add bdver2 entry.
10565 (ix86_option_override_internal): Add bdver2 instruction sets.
10566 (ix86_issue_rate): Add bdver2.
10567 (ix86_adjust_cost): Add bdver2.
10568 (has_dispatch): Add bdver2.
10569 * config/i386/i386.h (TARGET_BDVER2): New definition.
10570 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10571 (enum processor_type): Add PROCESSOR_BDVER2.
10572 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10573 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10574 description.
10575
10576 2011-07-12 Richard Henderson <rth@redhat.com>
10577
10578 PR target/49714
10579 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10580 destination address in memory on some paths.
10581
10582 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
10583
10584 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10585 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10586 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10587 * function.c (locate_and_pad_parm): Take it into account.
10588 * target.def (function_arg_round_boundary): New hook.
10589 * targhooks.c (default_function_arg_round_boundary): New function.
10590 * targhooks.h (default_function_arg_round_boundary): Declare.
10591 * doc/tm.texi: Regenerate.
10592
10593 2011-07-12 Richard Guenther <rguenther@suse.de>
10594
10595 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10596 Do not perform no-op changes.
10597
10598 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
10599
10600 * config/arm/predicates.md (neon_struct_operand): Make a normal
10601 predicate.
10602 (neon_struct_or_register_operand): New predicate.
10603 * config/arm/neon.md (movmisalign<mode>): Replace predicates
10604 with neon_struct_or_register_operand.
10605 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10606 neon_struct_operand instead of memory_operand.
10607
10608 2011-07-12 Martin Jambor <mjambor@suse.cz>
10609
10610 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10611 * cgraph.c (cgraph_get_node_or_alias): Removed.
10612 (change_decl_assembler_name): Changed all calls to
10613 cgraph_get_node_or_alias to a call to cgraph_get_node.
10614 (cgraph_make_decl_local): Likewise.
10615 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10616 * varasm.c (default_binds_local_p_1): Likewise.
10617 (decl_binds_to_current_def_p): Likewise.
10618
10619 2011-07-12 Jakub Jelinek <jakub@redhat.com>
10620
10621 PR tree-optimization/49712
10622 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10623
10624 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
10625
10626 * genautomata.c (add_arc): Return void. All callers changed.
10627 (make_automaton): Remove dead code.
10628
10629 2011-07-11 Richard Henderson <rth@redhat.com>
10630
10631 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
10632 (DW_FRAME_POINTER_REGNUM): New.
10633 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
10634 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
10635 (dwf_regno): New.
10636 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
10637 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
10638 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
10639 Use it.
10640 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
10641 * dwarf2out.h (dwarf_frame_regnum): New.
10642 (struct cfa_loc): Document the domain of the reg member.
10643
10644 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
10645
10646 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
10647 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
10648
10649 2011-07-11 Jakub Jelinek <jakub@redhat.com>
10650
10651 PR debug/49676
10652 * dwarf2out.c (int_shift_loc_descriptor): New function.
10653 (int_loc_descriptor): If shorter, emit i as
10654 (i >> shift), shift, DW_OP_shl for suitable shift value.
10655 Similarly, try to optimize large negative values using
10656 DW_OP_neg of a positive value if shorter.
10657 (size_of_int_shift_loc_descriptor): New function.
10658 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
10659 changes.
10660 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
10661 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
10662 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
10663 is shorter.
10664 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
10665 addend as added DW_OP_plus if it is shorter.
10666
10667 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10668
10669 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
10670 (DTORS_SECTION_ASM_OP): Define.
10671
10672 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10673
10674 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
10675 * config/t-dfprules: Move to ../libgcc/config.
10676 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10677 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10678 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
10679 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
10680 Likewise.
10681 (i[34567]86-*-cygwin*): Likewise.
10682 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
10683 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
10684 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
10685 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
10686 D64PBIT_FUNCS, D128PBIT_FUNCS.
10687
10688 2011-07-11 Richard Guenther <rguenther@suse.de>
10689
10690 * tree-vrp.c (simplify_conversion_using_ranges): Manually
10691 translate the source value-range through the conversion chain.
10692
10693 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
10694
10695 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
10696
10697 2011-07-11 Arthur Loiret <aloiret@debian.org>
10698
10699 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
10700 a bi-arch compiler defaulting to 31-bit. In this case:
10701 (tmake_file): Add s390/t-linux64.
10702 * doc/install.texi: Add s390-linux to the list of targets supporting
10703 --enable-targets=all.
10704
10705 2011-07-11 Arthur Loiret <aloiret@debian.org>
10706 Matthias Klose <doko@debian.org>
10707
10708 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
10709 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
10710 (tm_file): Add mips/linux64.h.
10711 (tmake_file): Add mips/t-linux64.
10712 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10713 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
10714 instead of hardcoded mabi=n32.
10715 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10716 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10717 convention.
10718
10719 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10720
10721 * passes.c (init_optimization_passes): Add invariant motion pass
10722 after induction variable optimization.
10723
10724 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
10725
10726 PR target/39633
10727 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
10728 offsets 1..5 set cc0 in a usable way.
10729
10730 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
10731
10732 * tree.h (call_expr_arg): Remove.
10733 (call_expr_argp): Likewise.
10734
10735 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
10736
10737 * config/sparc/sparc.md (save_register_window_1): Rename to...
10738 (window_save): ...this.
10739 * config/sparc/sparc.c (emit_save_register_window): Rename to...
10740 (emit_window_save): ...this.
10741 (sparc_expand_prologue): Adjust to above renaming.
10742
10743 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
10744
10745 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
10746 of movabs for x32.
10747
10748 2011-07-10 Richard Henderson <rth@redhat.com>
10749
10750 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
10751 run final, instead of emitting text directly.
10752
10753 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
10754
10755 * config/i386/i386.c (ix86_option_override_internal): Turn on
10756 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
10757 small PIC models for TARGET_X32.
10758
10759 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
10760
10761 PR target/49684
10762 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
10763 $(LIBGCC2_CFLAGS).
10764
10765 PR bootstrap/49680
10766 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
10767 stray notes and debug insns by using prev_nonnote_nondebug_insn
10768 instead of PREV_INSN.
10769
10770 2011-07-09 Richard Henderson <rth@redhat.com>
10771
10772 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
10773 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
10774 * dwarf2out.c: ... here.
10775 (output_all_cfis): Remove.
10776 (dwarf2out_switch_text_section): Use output_cfis directly.
10777 (size_of_locs): Export.
10778 (output_loc_sequence, output_loc_sequence_raw): Export.
10779 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
10780 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
10781 output_cfa_loc_raw): Move to ...
10782 * dwarfcfi.c: ... here.
10783 * dwarf2out.h: Update decls.
10784
10785 2011-07-09 Richard Henderson <rth@redhat.com>
10786
10787 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
10788 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
10789 * dwarf2cfi.c: ... here.
10790 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
10791 (DWARF_ROUND, DWARF_CIE_ID): Remove.
10792 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
10793 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
10794 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
10795
10796 2011-07-09 Richard Henderson <rth@redhat.com>
10797
10798 * dwarf2cfi.c (cie_return_save): New.
10799 (queue_reg_save): Use compare_reg_or_pc.
10800 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
10801 (dwarf2out_frame_debug_expr): Likewise.
10802 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
10803 (initial_return_save): Likewise.
10804 (execute_dwarf2_frame): Save and restore initial return save from
10805 the cie to the fde.
10806 * config/mips/mips.c (mips_frame_set): Remove special case for
10807 DWARF_FRAME_RETURN_COLUMN.
10808
10809 2011-07-09 Richard Henderson <rth@redhat.com>
10810
10811 * dwarf2cfi.c (lookup_cfa): Remove.
10812 (execute_dwarf2_frame): Assert queues are empty on entry.
10813 Setup initial cfa directly, not via lookup_cfa.
10814 Don't clear args_size state here.
10815
10816 2011-07-09 Richard Henderson <rth@redhat.com>
10817
10818 * dwarf2cfi.c (add_cfi_vec): New.
10819 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
10820 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
10821 (execute_dwarf2_frame): Set add_cfi_vec.
10822
10823 2011-07-09 Richard Henderson <rth@redhat.com>
10824
10825 * defaults.h (ASM_COMMENT_START): Move here...
10826 * dwarf2asm.c: ... from here.
10827 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
10828 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
10829 * varasm.c: Likewise.
10830
10831 2011-07-09 Richard Henderson <rth@redhat.com>
10832
10833 PR debug/49686
10834 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
10835 (create_cfi_notes): ... do it here instead.
10836
10837 2011-07-09 Jakub Jelinek <jakub@redhat.com>
10838
10839 PR debug/49676
10840 * dwarf2out.c (size_of_int_loc_descriptor): New function.
10841 (address_of_int_loc_descriptor): Use it.
10842 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
10843
10844 2011-07-09 Richard Henderson <rth@redhat.com>
10845
10846 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
10847 (prologue, epilogue): New.
10848 (return, *rts): New.
10849 (blockage, setd, seti): New.
10850 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10851 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
10852 (pdp11_saved_regno): New.
10853 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
10854 generate rtl instead of text.
10855 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
10856 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
10857 * config/pdp11/pdp11-protos.h: Update.
10858
10859 2011-07-09 Richard Henderson <rth@redhat.com>
10860
10861 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
10862 try to insert an rtl prologue here.
10863 (rs6000_output_function_epilogue): Similarly.
10864 * config/rs6000/rs6000.md (prologue): Emit a barrier to
10865 satisfy !TARGET_SCHED_PROLOG.
10866 (epilogue, sibcall_epilogue): Likewise.
10867
10868 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
10869
10870 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
10871 (FP_REG_P): Delete.
10872 (IN_OR_GLOBAL_P): Likewise.
10873
10874 2011-07-08 Jason Merrill <jason@redhat.com>
10875
10876 PR c++/45437
10877 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
10878 compound assignment.
10879
10880 * cgraph.c (cgraph_add_to_same_comdat_group): New.
10881 * cgraph.h: Declare it.
10882 * ipa.c (function_and_variable_visibility): Make sure thunks
10883 have the right visibility.
10884
10885 2011-07-08 Richard Henderson <rth@redhat.com>
10886
10887 PR bootstrap/49680
10888 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
10889 any tablejump vector.
10890
10891 PR bootstrap/49680
10892 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
10893 end of the prologue.
10894
10895 2011-07-08 Jakub Jelinek <jakub@redhat.com>
10896
10897 PR target/49621
10898 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
10899 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
10900 * config/rs6000/vector.md (vector_select_<mode>,
10901 vector_select_<mode>_uns): Change second operand of NE to
10902 CONST0_RTX (<MODE>mode) instead of const0_rtx.
10903 * config/rs6000/altivec.md (*altivec_vsel<mode>,
10904 *altivec_vsel<mode>_uns): Expect second operand of NE to be
10905 zero_constant of the corresponding vector mode.
10906 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
10907 Likewise.
10908
10909 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
10910
10911 * graphite-dependences.c (build_alias_set_powerset): Remove
10912 continue from loop, add one more assert.
10913
10914 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
10915
10916 PR target/46779
10917 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
10918 In particular, allow 8-bit values in r28 and r29.
10919 (avr_hard_regno_scratch_ok): Disallow any register that might be
10920 part of the frame pointer.
10921 (avr_hard_regno_rename_ok): Same.
10922 (avr_legitimate_address_p): Don't allow SUBREGs.
10923
10924 2011-07-08 Julian Brown <julian@codesourcery.com>
10925
10926 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
10927 big-endian mode.
10928 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
10929 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
10930 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
10931 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
10932 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
10933 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
10934 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
10935 registers in big-endian mode.
10936
10937 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
10938
10939 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
10940 in terms of another.
10941 (write_attr_value): Write a cast if necessary.
10942
10943 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
10944 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
10945 (REG_WORDS_BIG_ENDIAN): Document.
10946 * doc/tm.texi: Regenerate.
10947 * reload.c (operands_match_p): Take it into account.
10948 (reload_adjust_reg_for_mode): Likewise.
10949 * rtlanal.c (subreg_get_info): Likewise.
10950
10951 2011-07-08 Richard Guenther <rguenther@suse.de>
10952
10953 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
10954 folding.
10955
10956 2011-07-08 Kai Tietz <ktietz@redhat.com>
10957
10958 * fold-const.c (fold_truth_andor): Factored out truth_andor
10959 label from fold_binary as function.
10960 (fold_binary_loc): Replace truth_andor lable
10961 by function fold_truth_andor.
10962
10963 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
10964
10965 PR middle-end/49519
10966 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
10967 check if address is stored in register. If so - give up.
10968 (check_sibcall_argument_overlap_1): Do not perform check of
10969 overlapping when it is call to address.
10970
10971 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
10972
10973 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
10974 of magic '31'.
10975
10976 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
10977
10978 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
10979 GET_MODE_BITSIZE where appropriate.
10980 (widen_leading, expand_parity, expand_ctz, expand_ffs,
10981 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
10982 expand_float, expand_fix): Likewise.
10983 * expr.c (convert_move, convert_modes, expand_expr_real_2,
10984 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10985 * stor-layout.c (get_mode_bounds): Likewise.
10986 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
10987 Likewise.
10988 * convert.c (convert_to_integer): Likewise.
10989 * expmed.c (expand_shift_1): Likewise.
10990
10991 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
10992 a bitsize.
10993
10994 * optabs.c (expand_binop): Tighten conditions for doubleword
10995 expansions.
10996 (widen_bswap): Assert that mode bitsize and precision are the same.
10997 * stor-layout.c (get_best_mode): Skip modes that have lower
10998 precision than bitsize.
10999 * recog.c (simplify_while_replacing): Assert that bitsize and
11000 precision are the same.
11001
11002 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11003
11004 * Makefile.in (LIBGCOV): Remove.
11005 (libgcc.mvars): Remove LIBGCOV.
11006 * libgov.c: Move to ../libgcc.
11007
11008 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11009
11010 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11011
11012 2011-07-08 Martin Jambor <mjambor@suse.cz>
11013
11014 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11015 is too big for total scalarization.
11016
11017 2011-07-07 Richard Henderson <rth@redhat.com>
11018
11019 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11020 (DBX_DEBUGGING_INFO): Undef.
11021
11022 2011-07-07 Richard Henderson <rth@redhat.com>
11023
11024 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
11025 Handle some opcodes specially for debugging.
11026 * print-rtl.c: Include dwarf2out.h
11027 (print_rtx): Handle NOTE_INSN_CFI.
11028 * Makefile.in (print-rtl.o): Update.
11029
11030 2011-07-07 Richard Henderson <rth@redhat.com>
11031
11032 * tree-pass.h (pass_dwarf2_frame): Declare.
11033 * passes.c (init_optimization_passes): Add it.
11034 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11035 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11036 make static, do not call add_cfis_to_fde.
11037 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11038 dwarf2out_frame_init): Merge into...
11039 (execute_dwarf2_frame): ... here. New function.
11040 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
11041 saved_do_cfi_asm to a tri-state variable.
11042 (gate_dwarf2_frame, pass_dwarf2_frame): New.
11043 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11044 if it has yet to be done. Don't call dwarf2cfi_function_init.
11045 * dwarf2out.h, debug.h: Update decls.
11046 * final.c (final_start_function): Don't call
11047 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11048 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11049 * toplev.c (lang_dependent_init): Likewise.
11050
11051 2011-07-07 Richard Henderson <rth@redhat.com>
11052
11053 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11054 FDE_TABLE_INCREMENT): Replace with...
11055 (fde_vec): ... this, a new vector.
11056 (current_fde): Remove. Replace all users with cfun->fde.
11057 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11058 (size_of_aranges, dwarf2out_finish): Likewise.
11059 (dwarf2out_alloc_current_fde): Break out from ...
11060 (dwarf2out_begin_prologue): ... here.
11061 (dwarf2out_frame_init): Remove.
11062 * dwarf2cfi.c: Update all users of current_fde.
11063 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11064 * dwarf2out.h: Update decls.
11065 (dw_fde_node): Add fde_index member.
11066 * function.h (struct function): Add fde member.
11067
11068 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11069 Richard Henderson <rth@redhat.com>
11070
11071 * dwarf2cfi.c (add_cfi): Remove.
11072 (dwarf2out_cfi_label): Remove force argument. Only generate the
11073 label name.
11074 (add_fde_cfi): Simplify the different code paths.
11075 (add_cie_cfi): New.
11076 (old_cfa, old_cfa_remember): New.
11077 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11078 (last_reg_save_label): Remove.
11079 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11080 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11081 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11082 dwarf2out_frame_debug_cfa_expression,
11083 dwarf2out_frame_debug_cfa_restore,
11084 dwarf2out_frame_debug_cfa_window_save,
11085 dwarf2out_frame_debug_expr): Remove label parameter.
11086 (cfi_label_required_p, add_cfis_to_fde): New.
11087 (dwarf2out_frame_debug_after_prologue): New.
11088 (dwarf2cfi_frame_init): Initialize old_cfa.
11089 (dwarf2out_frame_debug_restore_state): Likewise.
11090 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11091 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11092 * final.c (final_start_function): Call
11093 dwarf2out_frame_debug_after_prologue.
11094
11095 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11096 Richard Henderson <rth@redhat.com>
11097
11098 * dwarf2cfi.c (cfi_insn): New.
11099 (dwarf2out_cfi_label): Don't emit cfi label here.
11100 (add_fde_cfi): Create a NOTE_INSN_CFI.
11101 (dwarf2out_frame_debug): Setup cfi_insn.
11102 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11103 (dwarf2out_cfi_begin_epilogue): Make static.
11104 (dwarf2out_frame_debug_restore_state): Make static.
11105 * dwarf2out.c (output_cfi_directive): Make static.
11106 (dwarf2out_emit_cfi): New.
11107 * dwarf2out.h: Update.
11108 * final.c (final): Remove CFI notes.
11109 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11110 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11111 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11112 * insn-notes.def (NOTE_INSN_CFI): New.
11113 (NOTE_INSN_CFI_LABEL): New.
11114 * rtl.h (union rtunion_def): Add rt_cfi member.
11115 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11116
11117 2011-07-07 Richard Henderson <rth@redhat.com>
11118
11119 * dwarf2cfi.c: New file.
11120 * Makefile.in (OBJS): Add it.
11121 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11122 * gengtype.c (open_base_files): Include dwarf2out.h.
11123 * coretypes.h (enum var_init_status): Move from ...
11124 * rtl.h: ... here.
11125 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11126 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11127 expand_builtin_dwarf_sp_column, init_return_column_size,
11128 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11129 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11130 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11131 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11132 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11133 compute_barrier_args_size, dwarf2out_args_size,
11134 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11135 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11136 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11137 queue_reg_save, dwarf2out_flush_queued_reg_saves,
11138 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11139 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11140 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11141 dwarf2out_frame_debug_cfa_expression,
11142 dwarf2out_frame_debug_cfa_restore,
11143 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11144 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11145 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11146 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11147 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11148 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11149 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11150 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11151 dw_loc_descr_node): Move to dwarf2out.h.
11152 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11153 mem_loc_descriptor): Export.
11154 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
11155 (dwarf2out_frame_init): Extract CIE generation code to
11156 dwarf2cfi_frame_init.
11157
11158 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
11159
11160 PR target/49660
11161 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11162 MASK_V8PLUS, remove commented out flag and reorder.
11163
11164 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11165
11166 PR c/49644
11167 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11168 one non-complex and one complex argument, call c_save_expr on both
11169 operands.
11170
11171 2011-07-07 Martin Jambor <mjambor@suse.cz>
11172
11173 PR middle-end/49495
11174 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11175 (verify_cgraph_node): Some functinality moved to
11176 verify_edge_corresponds_to_fndecl, call it.
11177
11178 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11179
11180 * config.gcc (*local*): Remove.
11181 * doc/install-old.texi: Don't mention local configurations.
11182
11183 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11184
11185 PR debug/49522
11186 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11187 referencing debug insns that have been reset.
11188 (dead_debug_insert_before): Don't assert reg is non-NULL,
11189 instead return immediately if it is NULL.
11190
11191 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11192
11193 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11194
11195 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11196
11197 * hw-doloop.c: New file.
11198 * hw-doloop.h: New file.
11199 * Makefile.in (OBJS): Add hw-doloop.o.
11200 (hw-doloop.o): New rule.
11201 ($(obj_out_file)): Add hw-doloop.h dependency.
11202 * config/bfin/bfin.c: Include "hw-doloop.h".
11203 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11204 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11205 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
11206 type changed to hwloop_info. Return bool, true if the loop was
11207 successfully optimized. Remove code that was moved to
11208 hw-doloop.c, and adjust other parts.
11209 (hwloop_fail): New static function, containing parts that used
11210 to be in bfin_optimize_loop.
11211 (bfin_discover_loop, bfin_discover_loops, free_loops,
11212 bfin_reorder_loops): Remove.
11213 (hwloop_pattern_reg): New static function.
11214 (bfin_doloop_hooks): New variable.
11215 (bfin_reorg_loops): Remove most code, call reorg_loops.
11216 * config/bfin/bfin.md (doloop_end splitter): Also enable if
11217 loop counter is a memory_operand.
11218
11219 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
11220
11221 * config.gcc: Support --with-multilib-list for x86 Linux targets.
11222
11223 * configure.ac: Mention x86-64 for --with-multilib-list.
11224 * configure: Regenerated.
11225
11226 * config/i386/gnu-user64.h (SPEC_64): Support x32.
11227 (SPEC_32): Likewise.
11228 (ASM_SPEC): Likewise.
11229 (LINK_SPEC): Likewise.
11230 (TARGET_THREAD_SSP_OFFSET): Likewise.
11231 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11232 (SPEC_X32): New.
11233
11234 * config/i386/i386.h (TARGET_X32): New.
11235 (TARGET_LP64): New.
11236 (LONG_TYPE_SIZE): Likewise.
11237 (POINTER_SIZE): Likewise.
11238 (POINTERS_EXTEND_UNSIGNED): Likewise.
11239 (OPT_ARCH64): Support x32.
11240 (OPT_ARCH32): Likewise.
11241
11242 * config/i386/i386.opt (mx32): New.
11243
11244 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11245 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11246 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11247 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11248
11249 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11250 (BIONIC_DYNAMIC_LINKERX32): Likewise.
11251 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11252
11253 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11254
11255 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11256
11257 * doc/invoke.texi: Document -mx32.
11258
11259 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11260
11261 * doc/invoke.texi (mwords-little-endian): Deprecate.
11262 * config/arm/arm.opt (mwords-little-endian): Likewise.
11263 * config/arm/arm.c (arm_option_override): Warn about the deprecation
11264 of -mwords-little-endian.
11265
11266 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11267
11268 * reload1.c (choose_reload_regs): Use mode sizes to check whether
11269 an old reload register completely defines the required value.
11270
11271 2011-07-07 Richard Guenther <rguenther@suse.de>
11272
11273 * fold-const.c (fold_unary_loc): Do not strip sign-changes
11274 for NEGATE_EXPR.
11275
11276 2011-07-07 Richard Guenther <rguenther@suse.de>
11277
11278 * tree-vrp.c (simplify_conversion_using_ranges): New function.
11279 (simplify_stmt_using_ranges): Call it.
11280
11281 2011-07-07 Kai Tietz <ktietz@redhat.com>
11282
11283 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11284 (lookup_logical_inverted_value): Likewise.
11285 (simplify_bitwise_binary_1): Likewise.
11286 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11287
11288 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11289
11290 * gcc.c (%[Spec]): Don't document.
11291 (struct spec_list): Update comment.
11292 (do_spec_1): Don't handle %[Spec].
11293 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11294
11295 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11296
11297 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11298 default based on TARGET_ASM_NAMED_SECTION.
11299 * common/common-target.def (have_named_sections): Default to true.
11300 * common/config/default-common.c: Don't include tm.h.
11301 * common/config/picochip/picochip-common.c
11302 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11303 * common/config/m32c/m32c-common.c: Remove.
11304 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11305 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11306 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11307 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11308 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11309 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11310 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11311
11312 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11313
11314 PR middle-end/49640
11315 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11316 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11317
11318 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11319
11320 PR libmudflap/49550
11321 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11322
11323 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11324
11325 PR target/39150
11326 * configure.ac (gcc_cv_as_hidden): Also accept
11327 x86_64-*-solaris2.1[0-9]*.
11328 (gcc_cv_as_cfi_directive): Likewise.
11329 (gcc_cv_as_comdat_group_group): Likewise.
11330 (set_have_as_tls): Likewise.
11331 * configure: Regenerate.
11332 * config.gcc (i[34567]86-*-solaris2*): Also handle
11333 x86_64-*-solaris2.1[0-9]*.
11334 * config.host (i[34567]86-*-solaris2*): Likewise.
11335 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11336 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11337 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11338 (TARGET_LD_EMULATION): Use it.
11339 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11340 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11341 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11342 (ASM_CPU64_DEFAULT_SPEC): Define.
11343 (ASM_CPU_SPEC): Use %(asm_cpu_default).
11344 (ASM_SPEC): Redefine.
11345 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11346 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11347 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11348 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11349 configuration.
11350 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11351
11352 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11353
11354 * config/sol2.h (ASM_SPEC): Split into ...
11355 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11356 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11357 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11358 (ASM_SPEC): Use ASM_SPEC_BASE.
11359 * config/sparc/sol2.h (ASM_SPEC): Redefine.
11360
11361 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
11362
11363 * config/avr/avr.md (*reload_insi): Change predicate #1 to
11364 const_int_operand. Ditto for peep2 producing this insn.
11365 Add argument to output_reload_insisf call.
11366 (*movsi,*movsf): Add argument to output_movsisf call.
11367 (*reload_insf): New insn and new peep2 to produce it.
11368 * config/avr/avr-protos.h (output_movsisf): Change prototype.
11369 (output_reload_insisf): Change prototype.
11370 * config/avr/avr.c (avr_asm_len): New function.
11371 (output_reload_insisf): Rewrite.
11372 (output_movsisf): Change prototype. output_reload_insisf for
11373 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
11374 (adjust_insn_length): Add argument to output_movsisf and
11375 output_reload_insisf call.
11376
11377 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11378
11379 * emit-rtl.c (paradoxical_subreg_p): New function.
11380 * rtl.h (paradoxical_subreg_p): Declare.
11381 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11382 apply_distributive_law, simplify_comparison, simplify_set): Use it.
11383 * cse.c (record_jump_cond, cse_insn): Likewise.
11384 * expr.c (force_operand): Likewise.
11385 * rtlanal.c (num_sign_bit_copies1): Likewise.
11386 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11387 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11388 (push_reload): Use precision to check for paradoxical subregs.
11389 * expmed.c (extract_bit_field_1): Likewise.
11390
11391 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11392 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11393 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11394 simplify_set, simplify_logical, expand_compound_operation,
11395 make_extraction, force_to_mode, if_then_else_cond, extended_count,
11396 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11397 record_value_for_reg): Likewise.
11398 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11399 * simplify-rtx. c (simplify_unary_operation_1,
11400 simplify_binary_operation_1, simplify_const_relational_operation):
11401 Likewise.
11402
11403 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11404 instead of GET_MODE_BITSIZE where appropriate.
11405 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11406 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11407 init_num_sign_bit_copies_in_rep): Likewise.
11408 * cse.c (fold_rtx, cse_insn): Likewise.
11409 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11410 * simplify-rtx.c (simplify_unary_operation_1,
11411 simplify_const_unary_operation, simplify_binary_operation_1,
11412 simplify_const_binary_operation, simplify_ternary_operation,
11413 simplify_const_relational_operation, simplify_subreg): Likewise.
11414 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11415 simplify_if_then_else, simplify_set, expand_compound_operation,
11416 expand_field_assignment, make_extraction, if_then_else_cond,
11417 make_compound_operation, force_to_mode, make_field_assignment,
11418 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11419 extended_count, try_widen_shift_mode, simplify_shift_const_1,
11420 simplify_comparison, record_promoted_value, simplify_compare_const,
11421 record_dead_and_set_regs_1): Likewise.
11422
11423 Revert:
11424 * simplify-rtx.c (simplify_const_binary_operation): Use the
11425 shift_truncation_mask hook instead of performing modulo by width.
11426 Compare against mode precision, not bitsize.
11427 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11428 Use shift_truncation_mask instead of constructing the value manually.
11429
11430 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11431
11432 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11433 declaration.
11434 (rs6000_save_toc_in_prologue_p): Ditto.
11435
11436 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11437 up the static chain (r11) during indirect function calls.
11438 (-msave-toc-indirect): New undocumented debug switch.
11439
11440 * config/rs6000/rs6000.c (struct machine_function): Add
11441 save_toc_in_prologue field to note whether the prologue needs to
11442 save the TOC value in the reserved stack location.
11443 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
11444 to save the TOC in the prologue, do so.
11445 (rs6000_trampoline_init): Don't allow creating AIX style
11446 trampolines if -mno-r11 is in effect.
11447 (rs6000_call_indirect_aix): New function to create AIX style
11448 indirect calls, adding support for -mno-r11 to suppress loading
11449 the static chain, and saving the TOC in the prologue instead of
11450 the call body.
11451 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11452 TOC in the prologue.
11453
11454 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11455 register numbers.
11456 (TOC_REGNUM): Ditto.
11457 (STATIC_CHAIN_REGNUM): Ditto.
11458 (ARG_POINTER_REGNUM): Ditto.
11459 (SFP_REGNO): Delete, unused.
11460 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11461 function descriptor offsets.
11462 (TOC_SAVE_OFFSET_64BIT): Ditto.
11463 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11464 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11465 (AIX_FUNC_DESC_SC_32BIT): Ditto.
11466 (AIX_FUNC_DESC_SC_64BIT): Ditto.
11467 (ptrload): New mode attribute for the appropriate load of a pointer.
11468 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11469 (call_indirect_aix64): Ditto.
11470 (call_value_indirect_aix32): Ditto.
11471 (call_value_indirect_aix64): Ditto.
11472 (call_indirect_nonlocal_aix32_internal): Ditto.
11473 (call_indirect_nonlocal_aix32): Ditto.
11474 (call_indirect_nonlocal_aix64_internal): Ditto.
11475 (call_indirect_nonlocal_aix64): Ditto.
11476 (call): Rewrite AIX indirect function calls. Add support for
11477 eliminating the static chain, and for moving the save of the TOC
11478 to the function prologue.
11479 (call_value): Ditto.
11480 (call_indirect_aix<ptrsize>): Ditto.
11481 (call_indirect_aix<ptrsize>_internal): Ditto.
11482 (call_indirect_aix<ptrsize>_internal2): Ditto.
11483 (call_indirect_aix<ptrsize>_nor11): Ditto.
11484 (call_value_indirect_aix<ptrsize>): Ditto.
11485 (call_value_indirect_aix<ptrsize>_internal): Ditto.
11486 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11487 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11488 (call_nonlocal_aix32): Relocate in the rs6000.md file.
11489 (call_nonlocal_aix64): Ditto.
11490
11491 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11492 -mno-r11 documentation.
11493
11494 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11495
11496 PR other/49658
11497 * doc/extend.texi (Compound Literals): Fix typo.
11498
11499 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
11500
11501 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11502
11503 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
11504
11505 * configure.ac (plugin-version.h): Generate
11506 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11507 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11508 macros.
11509
11510 * configure: Regenerate.
11511
11512 * doc/plugins.texi (Building GCC plugins): Mention
11513 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11514
11515 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
11516
11517 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11518 * combine.c (make_extraction, gen_lowpart_or_truncate,
11519 apply_distributive_law, simplify_comparison,
11520 reg_truncated_to_mode, record_truncated_value): Use it.
11521 * cse.c (notreg_cost): Likewise.
11522 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11523 * expr.c (convert_move, convert_modes): Likewise.
11524 * optabs.c (expand_binop, expand_unop): Likewise.
11525 * postreload.c (move2add_last_label): Likewise.
11526 * regmove.c (optimize_reg_copy_3): Likewise.
11527 * rtlhooks.c (gen_lowpart_general): Likewise.
11528 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11529
11530 2011-07-06 Joseph Myers <joseph@codesourcery.com>
11531
11532 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11533
11534 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
11535
11536 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11537 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11538 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11539 (simplify_const_unary_operation, simplify_binary_operation_1,
11540 simplify_const_binary_operation, simplify_const_relational_operation):
11541 Use them. Use GET_MODE_MASK for masking and sign-extensions.
11542 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11543 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11544 simplify_shift_const_1, simplify_comparison): Likewise.
11545 * expr.c (convert_modes): Likewise.
11546 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11547 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11548 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11549
11550 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11551
11552 2011-07-06 Richard Guenther <rguenther@suse.de>
11553
11554 PR tree-optimization/49645
11555 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11556 register variables.
11557 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11558 in type qualification here ...
11559 (copy_reference_ops_from_ref): ... not here.
11560 (vn_reference_lookup_3): ... or here.
11561 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11562 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11563
11564 2011-07-06 Ian Lance Taylor <iant@google.com>
11565
11566 * doc/install.texi (Configuration): It's
11567 --enable-gnu-indirect-function, not --enable-indirect-function.
11568
11569 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
11570
11571 * simplify-rtx.c (simplify_const_binary_operation): Use the
11572 shift_truncation_mask hook instead of performing modulo by width.
11573 Compare against mode precision, not bitsize.
11574 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11575 Use shift_truncation_mask instead of constructing the value manually.
11576
11577 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
11578
11579 PR middle-end/47383
11580 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11581 address computation and convert to address_mode if needed.
11582
11583 2011-07-06 Richard Guenther <rguenther@suse.de>
11584
11585 * tree.c (build_common_tree_nodes_2): Merge with
11586 build_common_tree_nodes.
11587 * tree.h (build_common_tree_nodes): Adjust prototype.
11588 (build_common_tree_nodes_2): Remove.
11589 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11590 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11591
11592 2011-07-05 Jakub Jelinek <jakub@redhat.com>
11593
11594 PR tree-optimization/49618
11595 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11596 t recurse on the decl.
11597 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11598 return true if expr isn't known to be defined in current
11599 TU or some other LTO partition.
11600
11601 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11602
11603 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11604 override CASE_VALUES_THRESHOLD.
11605
11606 * stmt.c (toplevel): Include params.h.
11607 (case_values_threshold): Use the --param case-values-threshold
11608 value if non-zero, otherwise use machine dependent value.
11609 (expand_case): Use case_values_threshold.
11610
11611 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11612
11613 * doc/invoke.texi (--param case-values-threshold): Document.
11614
11615 2011-07-05 Richard Henderson <rth@redhat.com>
11616
11617 * dwarf2out.c (dwarf2out_cfi_label): Make static.
11618 (dwarf2out_flush_queued_reg_saves): Make static.
11619 (dwarf2out_reg_save): Remove.
11620 (dwarf2out_return_save): Remove.
11621 (dwarf2out_return_reg): Remove.
11622 (dwarf2out_reg_save_reg): Remove.
11623 (dwarf2out_def_cfa): Merge into ...
11624 (dwarf2out_frame_init): ... here.
11625 * dwarf2out.h, tree.h: Remove declarations as necessary.
11626
11627 2011-07-05 Richard Henderson <rth@redhat.com>
11628
11629 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
11630 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11631 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
11632 the alloc insn.
11633
11634 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
11635 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
11636 (process_epilogue): Don't call dwarf2out_def_cfa.
11637
11638 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
11639 indicate the return address save.
11640 (process_cfa_register): Likewise.
11641
11642 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
11643 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
11644
11645 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
11646 for ar.pfs save at alloc insn.
11647
11648 2011-07-05 Richard Henderson <rth@redhat.com>
11649
11650 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
11651 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11652 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
11653 stack pointer save.
11654 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
11655 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
11656 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
11657 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
11658
11659 2011-07-05 Richard Henderson <rth@redhat.com>
11660
11661 * config/vax/vax.md (define_c_enum unspecv): New. Define the
11662 VUNSPEC_* constants here instead of via define_constants.
11663 (VUNSPEC_PEM): New constant.
11664 (procedure_entry_mask): New insn.
11665 (prologue): New expander.
11666 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
11667 (vax_expand_prologue): Rename from vax_output_function_prologue;
11668 emit rtl instead of text.
11669 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11670 (print_operand): Add 'x' prefix.
11671
11672 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
11673
11674 PR middle-end/47715
11675 * calls.c (precompute_register_parameters): Promote the function
11676 argument before checking non-legitimate constant.
11677
11678 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11679
11680 PR tree-optimization/47654
11681 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
11682 (lst_do_strip_mine_loop): Return an int.
11683 (lst_do_strip_mine): Same.
11684 (scop_do_strip_mine): Same.
11685 (scop_do_block): Loop blocking should strip-mine at least two loops.
11686 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
11687 (scop_do_interchange): Same.
11688 * graphite-poly.h (scop_do_interchange): Update declaration.
11689 (scop_do_strip_mine): Same.
11690
11691 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11692
11693 * graphite-clast-to-gimple.c (precision_for_value): Removed.
11694 (precision_for_interval): Removed.
11695 (gcc_type_for_interval): Use mpz_sizeinbase.
11696
11697 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11698
11699 * graphite-ppl.h (value_max): Correct computation of max.
11700
11701 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
11702
11703 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
11704
11705 2011-07-05 Richard Guenther <rguenther@suse.de>
11706
11707 * c-decl.c (c_init_decl_processing): Defer building common
11708 tree nodes to c_common_nodes_and_builtins.
11709
11710 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
11711
11712 PR tree-optimization/49580
11713 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
11714 the loop's number of iterations.
11715 * tree-parloops.c (transform_to_exit_first_loop): Add the
11716 handling of the loop's number of iterations before the call
11717 to gimple_duplicate_sese_tail.
11718 Insert the stmt caclculating the new rhs of the loop's
11719 condition stmt to the preheader instead of iters_bb.
11720
11721 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
11722
11723 PR rtl-optimization/47449
11724 * fwprop.c (forward_propagate_subreg): Don't propagate hard
11725 register nor zero/sign extended hard register.
11726
11727 2011-07-05 Richard Guenther <rguenther@suse.de>
11728
11729 PR tree-optimization/49518
11730 PR tree-optimization/49628
11731 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
11732 irrelevant and invariant data-references.
11733 (vect_analyze_data_ref_access): For invariant loads clear the
11734 group association.
11735
11736 2011-07-04 Jakub Jelinek <jakub@redhat.com>
11737
11738 PR rtl-optimization/49619
11739 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
11740 pass VOIDmode as op0_mode to recursive call, and return temp even
11741 when different from tor, just if it is not IOR of the original
11742 PLUS arguments.
11743
11744 PR rtl-optimization/49472
11745 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
11746 negating MULT, negate the second operand instead of first.
11747 (simplify_binary_operation_1) <case MULT>: If one operand is
11748 a NEG and the other is MULT, don't attempt to optimize by negation
11749 of the MULT operand if it only moves the NEG operation around.
11750
11751 PR debug/49602
11752 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
11753 get_current_def return value if it can't be trusted to be
11754 the current value of the variable in the current bb.
11755
11756 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
11757
11758 PR target/49600
11759 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
11760 general register to memory for !TARGET_INTER_UNIT_MOVES.
11761
11762 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
11763
11764 PR target/44643
11765 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
11766 instead of TREE_READONLY.
11767
11768 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
11769
11770 * doc/extend.texi (AVR Built-in Functions): Update documentation
11771 of __builtin_avr_fmul*.
11772 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
11773 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
11774 * config/avr/avr.md (fmul): Rename to fmul_insn.
11775 (fmuls): Rename to fmuls_insn.
11776 (fmulsu): Rename to fmulsu_insn.
11777 (fmul,fmuls,fmulsu): New expander.
11778 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
11779 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
11780 * config/avr/libgcc.S (__fmul): New function.
11781 (__fmuls): New function.
11782 (__fmulsu,__fmulsu_exit): New function.
11783
11784 2011-07-04 Richard Guenther <rguenther@suse.de>
11785
11786 PR tree-optimization/49615
11787 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
11788 basic-block index check.
11789
11790 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
11791
11792 * longlong.h (count_leading_zeros, count_trailing_zeros,
11793 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
11794 resp. 64.
11795
11796 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
11797
11798 PR tree-optimization/49610
11799 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
11800 a basic block.
11801
11802 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
11803 Olivier Hainque <hainque@adacore.com>
11804 Nicolas Setton <setton@adacore.com>
11805
11806 * tree.h (TYPE_ARTIFICIAL): New flag.
11807 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
11808 the DIE of the type if it is artificial.
11809 (gen_array_type_die): Likewise.
11810 (gen_enumeration_type_die): Likewise.
11811 (gen_struct_or_union_type_die): Likewise.
11812 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
11813 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
11814
11815 2011-07-01 Jakub Jelinek <jakub@redhat.com>
11816
11817 * tree-object-size.c (pass_through_call): Handle
11818 BUILT_IN_ASSUME_ALIGNED.
11819
11820 2011-07-01 Martin Jambor <mjambor@suse.cz>
11821
11822 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
11823
11824 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
11825
11826 PR middle-end/48016
11827 * explow.c (update_nonlocal_goto_save_area): Use proper mode
11828 for stack save area.
11829 * function.c (expand_function_start): Likewise.
11830
11831 2011-07-01 Richard Guenther <rguenther@suse.de>
11832
11833 PR middle-end/49596
11834 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
11835 may have unknown refs.
11836
11837 2011-07-01 Kai Tietz <ktietz@redhat.com>
11838
11839 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
11840
11841 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11842
11843 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
11844 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
11845 (Specific, mips-sgi-irix6): Likewise.
11846
11847 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11848
11849 PR libmudflap/49549
11850 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
11851
11852 2011-07-01 Jakub Jelinek <jakub@redhat.com>
11853
11854 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
11855 [idx]= and [idx1 ... idx2]= before initializers if needed for
11856 array initializers.
11857
11858 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
11859
11860 * config.gcc (score-*-elf): Remove score7.o.
11861 * config/score/t-score-elf: Likewise.
11862 * config/score/score.c: Merge score7 to score.c and
11863 remove forwarding functions.
11864 * config/score/score7.c: Deleted.
11865 * config/score/score7.h: Deleted.
11866
11867 2011-07-01 Richard Guenther <rguenther@suse.de>
11868
11869 PR tree-optimization/49603
11870 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
11871
11872 2011-06-30 Martin Jambor <mjambor@suse.cz>
11873
11874 * tree-sra.c (struct access): Rename total_scalarization to
11875 grp_total_scalarization
11876 (completely_scalarize_var): New function.
11877 (sort_and_splice_var_accesses): Set total_scalarization in the
11878 representative access.
11879 (analyze_access_subtree): Propagate total scalarization accross the
11880 tree, no holes in totally scalarized trees, simplify coverage
11881 computation.
11882 (analyze_all_variable_accesses): Call completely_scalarize_var instead
11883 of completely_scalarize_record.
11884
11885 2011-06-30 Richard Henderson <rth@redhat.com>
11886
11887 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
11888 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
11889 * config/i386/i386.c: Don't include dwarf2out.h.
11890 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
11891 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
11892 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
11893 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
11894 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
11895
11896 2011-06-30 Richard Henderson <rth@redhat.com>
11897
11898 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
11899 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11900 * final.c (final_scan_insn): Look for it, and invoke
11901 dwarf2out_frame_debug before the insn if found.
11902
11903 2011-06-30 Richard Henderson <rth@redhat.com>
11904
11905 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
11906 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
11907
11908 2011-06-30 Richard Henderson <rth@redhat.com>
11909
11910 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
11911 Define a vector of this type.
11912 (regs_saved_in_regs): Use a VEC.
11913 (num_regs_saved_in_regs): Remove.
11914 (compare_reg_or_pc): New.
11915 (record_reg_saved_in_reg): Split out from...
11916 (dwarf2out_flush_queued_reg_saves): ... here.
11917 (clobbers_queued_reg_save): Update for VEC.
11918 (reg_saved_in): Likewise.
11919 (dwarf2out_frame_debug_init): Likewise.
11920 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
11921 (dwarf2out_frame_debug_cfa_register): Likewise.
11922
11923 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
11924
11925 PR tree-optimization/49572
11926 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
11927 type of the RHS instead of that of the LHS for the expression type.
11928
11929 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
11930
11931 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
11932 unconditionally.
11933
11934 2011-06-30 Richard Guenther <rguenther@suse.de>
11935
11936 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
11937 * tree-ssa-structalias.c (create_variable_info_for): Do not
11938 add initial constraints for non-var-decls. Properly handle
11939 globals in other ltrans partitions.
11940 (intra_create_variable_infos): Manually create constraints for
11941 the fake no-alias parameter.
11942 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
11943 and assert there are no clones.
11944
11945 2011-06-30 Richard Guenther <rguenther@suse.de>
11946
11947 PR tree-optimization/46787
11948 * tree-data-ref.c (dr_address_invariant_p): Remove.
11949 (find_data_references_in_stmt): Invariant accesses are ok now.
11950 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
11951 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11952 invariant loads.
11953
11954 2011-06-30 Martin Jambor <mjambor@suse.cz>
11955
11956 PR tree-optimization/49094
11957 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
11958 (build_accesses_from_assign): Use it.
11959
11960 2011-06-30 Jakub Jelinek <jakub@redhat.com>
11961
11962 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11963 handling of BUILT_IN_ASSUME_ALIGNED.
11964
11965 PR debug/49364
11966 * dwarf2out.c (output_abbrev_section): Don't return early
11967 if abbrev_die_table_in_use is 1.
11968 (dwarf2out_finish): Instead don't call output_abbrev_section
11969 nor emit abbrev_section_label in that case.
11970
11971 2011-06-30 Nick Clifton <nickc@redhat.com>
11972
11973 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
11974 for the V850E.
11975
11976 2011-06-30 Jakub Jelinek <jakub@redhat.com>
11977
11978 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
11979 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
11980
11981 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
11982
11983 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
11984 both pattern and original statements if necessary.
11985 (vect_transform_loop): Likewise.
11986 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
11987 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
11988 Mark the pattern statement only if the original statement doesn't
11989 have its own uses.
11990 (process_use): Call vect_mark_relevant with additional parameter.
11991 (vect_mark_stmts_to_be_vectorized): Likewise.
11992 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
11993 (vect_analyze_stmt): Handle both pattern and original statements
11994 if necessary.
11995 (vect_transform_stmt): Don't store vectorized pattern statement
11996 in the original statement.
11997 (vect_is_simple_use_1): Use related pattern statement only if the
11998 original statement is irrelevant.
11999 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12000
12001 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
12002
12003 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12004 option.
12005 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12006 entry.
12007 (TARGET_AVX128_OPTIMAL): New definition.
12008 * config/i386/i386.c (initial_ix86_tune_features): Initialize
12009 X86_TUNE_AVX128_OPTIMAL entry.
12010 (ix86_option_override_internal): Enable the generation
12011 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12012 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12013 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12014
12015 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
12016
12017 PR tree-optimization/49539
12018 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12019 names by means of stmt_references_abnormal_ssa_name.
12020 (associate_plusminus): Call can_propagate_from before propagating
12021 from definition statements.
12022 (ssa_forward_propagate_and_combine): Remove superfluous newline.
12023
12024 2011-06-29 Richard Guenther <rguenther@suse.de>
12025
12026 * doc/invoke.texi: Document -scev dump modifier.
12027 * tree-pass.h (TDF_SCEV): New dump flag.
12028 * tree-dump.c (dump_option_value_in): Add scev.
12029 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12030 * tree-scalar-evolution.c: Likewise.
12031
12032 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
12033
12034 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12035 (cxa_type_match): Correct declaration.
12036 (__gnu_unwind_pr_common): Reconstruct additional indirection
12037 when __cxa_type_match returns succeeded_with_ptr_to_base.
12038
12039 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12040
12041 PR rtl-optimization/49114
12042 * reload.c (struct replacement): Remove SUBREG_LOC member.
12043 (push_reload): Do not set it.
12044 (push_replacement): Likewise.
12045 (subst_reload): Remove dead code.
12046 (copy_replacements): Remove assertion.
12047 (copy_replacements_1): Do not handle SUBREG_LOC.
12048 (move_replacements): Likewise.
12049 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
12050 Detect subregs via recursive descent instead of via SUBREG_LOC.
12051
12052 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12053
12054 * config/avr/avr.c (avr_encode_section_info): Dispatch to
12055 default_encode_section_info.
12056
12057 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
12058
12059 PR tree-optimization/49545
12060 * builtins.c (get_object_alignment_1): Update function comment.
12061 Do not use DECL_ALIGN for functions, but test
12062 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12063 * fold-const.c (get_pointer_modulus_and_residue): Don't check
12064 for functions here.
12065 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12066
12067 2011-06-29 Jakub Jelinek <jakub@redhat.com>
12068
12069 PR debug/49567
12070 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12071 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12072
12073 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12074
12075 PR target/34734
12076 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12077 about uninitialized data attributed 'progmem' from here...
12078 (avr_encode_section_info): ...to this new function.
12079 (TARGET_ENCODE_SECTION_INFO): New define.
12080 (avr_section_type_flags): For data in ".progmem.data", remove
12081 section flag SECTION_WRITE.
12082
12083 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12084
12085 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12086 _xmulhisi3_exit.
12087 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12088 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
12089 (__umulhisi3): Ditto.
12090 * config/avr/avr.md (mulhisi3): New insn expender.
12091 (umulhisi3): New insn expender.
12092 (*mulhisi3_call): New insn.
12093 (*umulhisi3_call): New insn.
12094
12095 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12096
12097 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12098
12099 2011-06-28 Richard Henderson <rth@redhat.com>
12100
12101 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
12102 all code and arguments that handled pushes. Update all callers.
12103
12104 2011-06-28 Richard Henderson <rth@redhat.com>
12105
12106 * config/arm/arm.c (arm_output_function_prologue): Don't call
12107 thumb1_output_function_prologue.
12108 (arm_expand_prologue): Avoid dead store.
12109 (number_of_first_bit_set): Use ctz_hwi.
12110 (thumb1_emit_multi_reg_push): New.
12111 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12112 to emit the entire prologue as rtl.
12113 (thumb1_output_interwork): Split out from
12114 thumb1_output_function_prologue.
12115 (thumb1_output_function_prologue): Remove.
12116 (arm_attr_length_push_multi): Handle thumb1.
12117 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12118 (prologue_thumb1_interwork): New.
12119 (*push_multi): Allow thumb1; use push_mult_memory_operand.
12120 * config/arm/predicates.md (push_mult_memory_operand): New.
12121
12122 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12123
12124 * config/sparc/sync.md (*stbar): Delete.
12125 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12126
12127 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12128
12129 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12130
12131 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12132
12133 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12134 (TARGET_64BIT_DEFAULT): Define.
12135 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12136 of tm_file.
12137 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12138
12139 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12140
12141 * common.opt (in_lto_p): New Variable entry.
12142 * flags.h (in_lto_p): Move to common.opt.
12143 * gcc.c: Include params.h.
12144 (set_option_handlers): Also use common_handle_option and
12145 target_handle_option.
12146 (main): Call global_init_params, finish_params and init_options_struct.
12147 * opts.c (debug_type_names): Move from toplev.c.
12148 (print_filtered_help): Access quiet_flag through opts pointer.
12149 (common_handle_option): Return early in the driver for some options.
12150 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12151 opts pointer.
12152 * toplev.c (in_lto_p): Move to common.opt.
12153 (debug_type_names): Move to opts.c.
12154 * Makefile.in (OBJS): Remove opts.o.
12155 (OBJS-libcommon-target): Add opts.o.
12156 (gcc.o): Update dependencies.
12157
12158 2011-06-28 Kai Tietz <ktietz@redhat.com>
12159
12160 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12161
12162 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12163
12164 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12165 with '=' constraint modifier.
12166 (*divdf3_vfp): Likewise.
12167 ("*mulsf3_vfp"): Likewise.
12168 ("*muldf3_vfp"): Likewise.
12169 ("*mulsf3negsf_vfp"): Likewise.
12170 ("*muldf3negdf_vfp"): Likewise.
12171
12172 2011-06-28 Nick Clifton <nickc@redhat.com>
12173
12174 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12175 relaxation when performing an incremental link.
12176
12177 2011-06-28 Kai Tietz <ktietz@redhat.com>
12178
12179 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12180 within BB from last to first.
12181
12182 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12183
12184 * genattr-common.c: New. Based on genattr.c.
12185 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12186 (MOSTLYCLEANFILES): Add insn-attr-common.h.
12187 (opts.o): Update dependencies.
12188 (.PRECIOUS): Add insn-attr-common.h.
12189 (simple_rtl_generated_h): Add insn-attr-common.h.
12190 (build/genattr-common.o): New.
12191 (genprogrtl): Add attr-common.
12192 * genattr.c (main): Include insn-attr-common.h. Don't generate
12193 definitions of DELAY_SLOTS or INSN_SCHEDULING.
12194 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12195
12196 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
12197
12198 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12199 avr-*-* and avr-*-rtems* targets.
12200
12201 * config/avr/elf.h: New file.
12202 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12203 (TARGET_ASM_SELECT_SECTION): Define.
12204 (INIT_SECTION_ASM_OP): Undefine.
12205 (FINI_SECTION_ASM_OP): Undefine.
12206 (READONLY_DATA_SECTION_ASM_OP): Undefine.
12207 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12208 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12209 * config/avr/avr.h:
12210 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12211 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12212 (MAX_OFILE_ALIGNMENT): Move to elf.h.
12213 (STRING_LIMIT): Move to elf.h.
12214 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12215 (ASM_DECLARE_OBJECT_NAME): Remove.
12216 (ESCAPES): Remove.
12217 (ASM_OUTPUT_SKIP): Remove.
12218 (DWARF2_DEBUGGING_INFO): Remove.
12219 (OBJECT_FORMAT_ELF): Remove.
12220 (USER_LABEL_PREFIX): Remove.
12221 (ASM_OUTPUT_EXTERNAL): Remove.
12222 (ASM_OUTPUT_ASCII): Remove.
12223 (TYPE_ASM_OP): Remove.
12224 (SIZE_ASM_OP): Remove.
12225 (WEAK_ASM_OP): Remove.
12226 (STRING_ASM_OP): Remove.
12227 (SET_ASM_OP): Remove.
12228 (ASM_WEAKEN_LABEL): Remove.
12229 (TYPE_OPERAND_FMT): Remove.
12230 (ASM_DECLARE_FUNCTION_SIZE): Remove.
12231 (ASM_FINISH_DECLARE_OBJECT): Remove.
12232 (NO_DOLLAR_IN_LABEL): Remove.
12233 (ASM_GENERATE_INTERNAL_LABEL): Remove.
12234 (ASM_OUTPUT_CASE_LABEL): Remove.
12235 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12236 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12237 (gas_output_ascii): Remove.
12238 (gas_output_limited_string): Remove.
12239 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12240 * config/avr/avr-protos.h
12241 (gas_output_ascii): Remove prototye.
12242 (gas_output_limited_string): Remove prototype.
12243
12244 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
12245
12246 PR target/48637
12247 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
12248 asm operands.
12249
12250 2011-06-27 Jan Hubicka <jh@suse.cz>
12251
12252 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12253 node instead of references in node.
12254
12255 2011-06-27 Richard Henderson <rth@redhat.com>
12256
12257 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12258 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12259 inside ifdef.
12260
12261 2011-06-27 Jakub Jelinek <jakub@redhat.com>
12262
12263 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12264
12265 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12266 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12267 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12268 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12269 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12270 (evaluate_stmt, execute_fold_all_builtins): Handle
12271 BUILT_IN_ASSUME_ALIGNED.
12272 * tree-ssa-dce.c (propagate_necessity): Likewise.
12273 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12274 call_may_clobber_ref_p_1): Likewise.
12275 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12276 (expand_builtin_assume_aligned): New function.
12277 * doc/extend.texi (__builtin_assume_aligned): Document.
12278
12279 PR debug/49544
12280 * cselib.c (promote_debug_loc): If cselib_preserve_constants
12281 and l has two DEBUG_INSN owned locs instead of just one, adjust
12282 the second location's setting_insn too.
12283
12284 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12285
12286 PR libmudflap/38738
12287 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12288
12289 2011-06-27 Nick Clifton <nickc@redhat.com>
12290
12291 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12292 bit position of highest bit set into a count of the high zero bits.
12293
12294 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12295
12296 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12297
12298 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12299
12300 PR lto/48492
12301 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12302 to a NULL parent.
12303
12304 2011-06-27 Richard Guenther <rguenther@suse.de>
12305
12306 PR tree-optimization/49394
12307 * passes.c (execute_one_pass): Restore current_pass after
12308 applying IPA transforms.
12309
12310 2011-06-27 Kai Tietz <ktietz@redhat.com>
12311
12312 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12313 out of type precision after operation.
12314 (find_bswap): Take for limit value the integer auto-promotion
12315 into account.
12316
12317 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12318
12319 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12320 forward scan as well.
12321
12322 2011-06-27 Tristan Gingold <gingold@adacore.com>
12323
12324 PR target/44241
12325 * config/vms/vms-protos.h: New file.
12326 * config/vms/vms-crtlmap.map: New file.
12327 * config/vms/vms.c: New file.
12328 * config/vms/make-crtlmap.awk: New file.
12329 * config/vms/vms-crtl.h: File removed.
12330 * config/vms/vms-crtl-64.h: File removed.
12331 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12332 * config/alpha/vms64.h: Do not include vms-crtl-64.h
12333 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12334 clear some builtins on VMS. Calls vms_patch_builtins.
12335 (avms_asm_output_external): Remove.
12336 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12337 (struct crtl_name_spec): Remove
12338 (DO_CTRL_NAMES): Remove.
12339 * config/ia64/vms.h (struct crtl_name_spec): Remove
12340 (DO_CTRL_NAMES): Remove.
12341 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12342 clear some builtins on VMS. Calls vms_patch_builtins.
12343 (ia64_asm_output_external): Remove DO_CRTL_NAME.
12344 * config/ia64/vms64.h: Do not include vms-crtl-64.h
12345 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12346
12347 2011-06-27 Tristan Gingold <gingold@adacore.com>
12348
12349 * config/alpha/alpha.c (alpha_end_function): Always generate .end
12350 directive on VMS.
12351
12352 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12353
12354 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12355 the function receives nonlocal gotos.
12356
12357 2011-06-27 Richard Guenther <rguenther@suse.de>
12358
12359 PR tree-optimization/49536
12360 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12361 For non-scalar inner types use a scalar type according to
12362 the scalar inner mode.
12363
12364 2011-06-27 Richard Guenther <rguenther@suse.de>
12365
12366 PR tree-optimization/49365
12367 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12368
12369 2011-06-27 Richard Guenther <rguenther@suse.de>
12370
12371 PR tree-optimization/49169
12372 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12373 the alignment of function decls.
12374
12375 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
12376
12377 PR target/47997
12378 * config/darwin.c (darwin_mergeable_string_section): Place string
12379 constants in '.cstring' rather than '.const' when CF/NSStrings are
12380 active.
12381
12382 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
12383
12384 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12385 (emit_save_register_window): Likewise.
12386 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12387 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
12388 Swap back %o7/%i7 in register naming.
12389
12390 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
12391
12392 PR driver/49371
12393 * config/darwin.c (darwin_override_options): Improve warning when
12394 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12395 is given with fpie/fPIE.
12396 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12397 * config/darwin9.h (PIE_SPEC): New.
12398
12399 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12400
12401 * timevar.c (timevar_print): Increase width for display of timevar
12402 name.
12403
12404 2011-06-24 Jakub Jelinek <jakub@redhat.com>
12405
12406 PR c++/46400
12407 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12408 instead of TYPE_CHAIN for chain_next for types.
12409
12410 2011-06-24 Richard Henderson <rth@redhat.com>
12411
12412 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12413 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12414 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12415 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12416 (sparc_flat_expand_prologue): Emit individual instructions
12417 instead of one of the above.
12418
12419 2011-06-24 Easwaran Raman <eraman@google.com>
12420
12421 PR rtl-optimization/49429
12422 PR target/49454
12423 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
12424 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12425 used to copy y into x.
12426 * calls.c (initialize_argument_information): Mark
12427 an argument addressable if it is passed by invisible reference.
12428 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
12429 if it is passed by reference.
12430
12431 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
12432
12433 PR rtl-optimization/49504
12434 * rtlanal.c (nonzero_bits1): Properly handle addition or
12435 subtraction of a pointer in Pmode if pointers extend unsigned.
12436 (num_sign_bit_copies1): Likewise.
12437
12438 2011-06-24 Martin Jambor <mjambor@suse.cz>
12439
12440 PR tree-optimizations/49516
12441 * tree-sra.c (sra_modify_assign): Choose the safe path for
12442 aggregate copies if we also did scalar replacements.
12443
12444 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12445
12446 PR target/49335
12447 * config/arm/predicates.md (add_operator): New.
12448 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
12449
12450 2011-06-24 Andi Kleen <ak@linux.intel.com>
12451
12452 * tree-sra.c (type_internals_preclude_sra_p): Add msg
12453 parameter. Split up ifs and report reason in *msg.
12454 (reject): Add.
12455 (find_var_candiate): Add msg variable.
12456 Split up ifs and report reason to reject.
12457 (find_param_candidates): Add msg variable.
12458 Pass msg to type_internals_preclude_sra_p.
12459
12460 2011-06-23 Jeff Law <law@redhat.com>
12461
12462 PR middle-end/48770
12463 * reload.h (reload): Change to return a bool.
12464 * ira.c (ira): If requested by reload, run a fast DCE pass after
12465 reload has completed. Fix comment typo.
12466 * reload1.c (need_dce): New file scoped static.
12467 (reload): Set reload_completed here. Return whether or not a DCE
12468 pass after reload is needed.
12469 (delete_dead_insn): Set need_dce as needed.
12470
12471 PR middle-end/49465
12472 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12473 to detect threading through joiner block. If there was already
12474 an edge to the new target, then do not change the PHI nodes.
12475
12476 2011-06-23 Jakub Jelinek <jakub@redhat.com>
12477
12478 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12479 get_pointer_alignment to see if base isn't sufficiently aligned.
12480
12481 2011-06-23 Jan Hubicka <jh@suse.cz>
12482
12483 PR tree-optimize/49373
12484 * tree-pass.h (all_late_ipa_passes): Declare.
12485 * cgraphunit.c (init_lowered_empty_function): Fix properties.
12486 (cgraph_optimize): Execute late passes; remove unreachable funcions
12487 after materialization.
12488 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12489 LTOing.
12490 * passes.c (all_late_ipa_passes): Declare.
12491 (dump_passes, register_pass): Handle late ipa passes.
12492 (init_optimization_passes): Move ipa_pta to late passes; schedule
12493 fixup_cfg at beggining of all_passes.
12494 (apply_ipa_transforms): New function.
12495 (execute_one_pass): When doing simple ipa pass, apply all transforms.
12496
12497 2011-06-23 Joseph Myers <joseph@codesourcery.com>
12498
12499 * params.c: Include common/common-target.h. Don't include tm.h.
12500 (lang_independent_params): Move from toplev.c.
12501 (global_init_params): New.
12502 * params.h (global_init_params): Declare.
12503 * target.def (default_params): Move to common-target.def.
12504 * toplev.c (lang_independent_options): Remove.
12505 (lang_independent_params): Move to params.c.
12506 (general_init): Use global_init_params.
12507 * common/common-target.def (option_default_params): Move from
12508 target.def.
12509 * common/config/ia64/ia64-common.c: Include params.h.
12510 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12511 from ia64.c.
12512 * common/config/rs6000/rs6000-common.c: Include params.h.
12513 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12514 from rs6000.c.
12515 * common/config/sh/sh-common.c: Include params.h.
12516 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12517 from sh.c.
12518 * common/config/spu/spu-common.c: Include params.h.
12519 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12520 from spu.c.
12521 * config/ia64/ia64.c (ia64_option_default_params,
12522 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12523 * config/rs6000/rs6000.c (rs6000_option_default_params,
12524 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12525 * config/sh/sh.c (sh_option_default_params,
12526 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12527 * config/spu/spu.c (spu_option_default_params,
12528 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12529 * Makefile.in (OBJS): Remove params.o.
12530 (OBJS-libcommon-target): Add params.o.
12531 (params.o, $(common_out_object_file)): Update dependencies.
12532 * doc/tm.texi: Regenerate.
12533
12534 2011-06-23 Alan Modra <amodra@gmail.com>
12535
12536 PR bootstrap/49383
12537 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12538 invocation for 2011-06-09 changes.
12539
12540 2011-06-22 Jakub Jelinek <jakub@redhat.com>
12541
12542 PR libgomp/49490
12543 * omp-low.c (expand_omp_for_static_nochunk): Only
12544 use n ceil/ nthreads size for the first n % nthreads threads in the
12545 team instead of all threads except for the last few ones which
12546 get less work or none at all.
12547
12548 PR debug/49496
12549 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12550 uses.
12551
12552 2011-06-22 Richard Guenther <rguenther@suse.de>
12553
12554 PR tree-optimization/49493
12555 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12556 Refer to the alias target of variables.
12557 (associate_varinfo_to_alias_1): Remove.
12558 (ipa_pta_execute): Do not associate aliases with anything.
12559 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12560 (cgraph_function_node): Likewise.
12561 (cgraph_function_or_thunk_node): Likewise.
12562 (varpool_variable_node): Likewise.
12563
12564 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
12565
12566 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12567 * config.gcc (arm*-*-linux*): Default to gnu tls.
12568 (arm*-*-*): Add --with-tls option.
12569 (all_defaults): Add 'tls'.
12570
12571 2011-06-22 Richard Henderson <rth@redhat.com>
12572
12573 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12574 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12575 (dwarf2out_frame_debug_cfa_window_save): Rename from
12576 dwarf2out_window_save; make static.
12577 * tree.h (dwarf2out_window_save): Don't declare.
12578
12579 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12580 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12581 (emit_save_register_window): Rename from gen_save_register_window;
12582 emit the insn and add REG_CFA_* notes.
12583 (sparc_expand_prologue): Update to match.
12584 * config/sparc/sparc.md (save_register_window_1): Simplify from
12585 save_register_window<P:mode>.
12586
12587 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
12588
12589 PR target/49497
12590 * config/i386/i386.md (*lea_general_2): Always allow SImode.
12591 (*lea_general_2_zext): Likewise.
12592 (imul to lea peepholes): Use const359_operand and check
12593 TARGET_PARTIAL_REG_STALL.
12594
12595 * config/i386/predicates.md (const359_operand): New.
12596
12597 2011-06-22 Michael Matz <matz@suse.de>
12598
12599 * cgraphunit.c (assemble_thunk): Use correct return type.
12600
12601 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
12602 Dmitry Melnik <dm@ispras.ru>
12603
12604 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12605 (neon_output_shift_immediate): Ditto.
12606 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12607 prototype.
12608 (neon_output_shift_immediate): Ditto.
12609 * config/arm/neon.md (vashl<mode>3): Modified constraint.
12610 (vashr<mode>3_imm): New insn pattern.
12611 (vlshr<mode>3_imm): Ditto.
12612 (vashr<mode>3): Modified constraint.
12613 (vlshr<mode>3): Ditto.
12614 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12615 predicate.
12616 (imm_for_neon_rshift_operand): Ditto.
12617 (imm_lshift_or_reg_neon): Ditto.
12618 (imm_rshift_or_reg_neon): Ditto.
12619
12620 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12621
12622 2011-06-22 Jakub Jelinek <jakub@redhat.com>
12623
12624 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12625 builtin calls even if likelyvalue is not CONSTANT.
12626 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12627 Return get_value_for_expr of first operand
12628 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
12629 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12630 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
12631 their non-checking counterparts.
12632 (call_may_clobber_ref_p_1): Likewise.
12633 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
12634 like their non-checking counterparts.
12635 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12636 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
12637 like their non-checking counterparts.
12638 (find_func_clobbers): Likewise.
12639 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
12640 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
12641
12642 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
12643 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
12644 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
12645 of base type reference as argument.
12646 (resolve_addr_in_expr): Likewise. Fix keep computation.
12647 (convert_descriptor_to_signed): Renamed to...
12648 (convert_descriptor_to_mode): ... this. For wider types convert to
12649 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
12650 (typed_binop): New function.
12651 (scompare_loc_descriptor, ucompare_loc_descriptor,
12652 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
12653 default to unsigned type instead of signed.
12654
12655 PR debug/47858
12656 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
12657 (gimple_build_debug_source_bind_stat): New prototype.
12658 (gimple_build_debug_source_bind): Define.
12659 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
12660 gimple_debug_source_bind_get_value,
12661 gimple_debug_source_bind_get_value_ptr,
12662 gimple_debug_source_bind_set_var,
12663 gimple_debug_source_bind_set_value): New inlines.
12664 * gimple.c (gimple_build_debug_source_bind_stat): New function.
12665 * gimple-pretty-print.c (dump_gimple_debug): Handle
12666 GIMPLE_DEBUG_SOURCE_BIND.
12667 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
12668 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12669 * tree-parloops.c (eliminate_local_variables,
12670 separate_decls_in_region): Likewise.
12671 (separate_decls_in_region_debug): Renamed from
12672 separate_decls_in_region_debug_bind. Handle
12673 gimple_debug_source_bind_p.
12674 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
12675 prototypes.
12676 (DECL_HAS_DEBUG_ARGS_P): Define.
12677 (struct tree_function_decl): Add has_debug_args_flag field.
12678 * tree.c (debug_args_for_decl): New variable.
12679 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
12680 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
12681 (rewrite_debug_stmt_uses): New function.
12682 (rewrite_stmt): Use it to rewrite debug stmt uses.
12683 * rtl.def (DEBUG_PARAMETER_REF): New.
12684 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
12685 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
12686 DEBUG_PARAMETER_REF.
12687 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
12688 * print-rtl.c (print_rtx): Likewise.
12689 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
12690 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
12691 debug stmts in the first bb.
12692 * tree-inline.c (remap_ssa_name): If remapping default def
12693 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
12694 a source bind debug stmt.
12695 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
12696 (maybe_move_debug_stmts_to_successors): Likewise.
12697 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
12698 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
12699 debug args vector from old_decl to new_decl.
12700 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
12701 or modified parameters, add debug bind stmts before call
12702 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
12703 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
12704 on DECL_DEBUG_EXPRs from debug args vector.
12705 (expand_debug_source_expr): New function.
12706 (expand_debug_locations): Use it for source bind insns.
12707 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
12708 * var-tracking.c (prepare_call_arguments): Add debug args
12709 to call_arguments if any.
12710 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
12711 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
12712 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
12713 (get_ref_die_offset, parameter_ref_descriptor): New functions.
12714 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
12715 (gen_subprogram_die): Handle parameters identified by
12716 DEBUG_PARAMETER_REF.
12717
12718 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
12719
12720 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
12721 * doc/install.texi (Configuration): Document --with-tls.
12722 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
12723 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
12724 (arm_tls_descseq_addr): New.
12725 (legitimize_tls_address): Add tlsdesc support.
12726 (arm_cannot_copy_insn_p): Check for tlscall.
12727 (arm_emit_tls_decoration): Likewise.
12728 * config/arm/arm.h (TARGET_GNU2_TLS): New.
12729 (OPTION_DEFAULT_SPECS): Add with-tls support.
12730 * config/arm/arm.md (R1_REGNUM): Define.
12731 (tlscall): New.
12732 * config/arm/arm.opt (tls_type): New enumeration type and values.
12733 (mtls-dialect): New switch.
12734 * config/arm/arm-opts.h (enum tls_type): New.
12735
12736 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
12737
12738 * attribs.c (register_attribute): Added assert to check that all
12739 attribute specs are registered with a name that is not empty and
12740 does not start with '_'.
12741 (decl_attributes): Avoid the lookup of the "naked" attribute spec
12742 if the function has no attributes.
12743 * tree.c (is_attribute_with_length_p): Removed.
12744 (is_attribute_p): Removed.
12745 (private_is_attribute_p): New.
12746 (private_lookup_attribute): New.
12747 (lookup_attribute): Removed.
12748 (lookup_ident_attribute): New.
12749 (remove_attribute): Require the first argument to be in the form
12750 'text', not '__text__'. Updated asserts.
12751 (merge_attributes): Use lookup_ident_attributes instead of
12752 lookup_attribute.
12753 (merge_dllimport_decl_attributes): Use remove_attribute.
12754 (attribute_list_contained): Likewise.
12755 (attribute_list_equal): Immediately return 1 if the arguments are
12756 identical pointers.
12757 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
12758 'int'. Require the first argument to be in the form 'text', not
12759 '__text__'. Require the second argument to be an identifier.
12760 (lookup_attribute): Made inline. Require the first argument to be
12761 in the form 'text', not '__text__'.
12762 (private_is_attribute_p, private_lookup_attribute): New.
12763 Updated comments.
12764
12765 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
12766
12767 * builtins.c: Add sync_ or SYNC__ to builtin names.
12768 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
12769 * omp-low.c: Add sync_ or SYNC__ to builtin names.
12770
12771 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
12772
12773 PR target/33049
12774 * config/avr/avr.md (extzv): New expander.
12775 (*extzv): New insn.
12776 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
12777 * config/avr/constraints.md (C04): New constraint.
12778 * doc/md.texi (Machine Constraints): Document it.
12779
12780 2011-06-21 Jakub Jelinek <jakub@redhat.com>
12781
12782 PR middle-end/49489
12783 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
12784 unsignedp argument instead of 1 for clrsb_optab.
12785 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
12786 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
12787 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
12788 * optabs.c (widen_leading): Call widen_operand and expand_unop
12789 with 0 as unsignedp argument instead of 1 for clrsb_optab.
12790 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
12791
12792 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
12793
12794 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
12795
12796 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
12797
12798 * gensupport.c (add_define_attr): New static function.
12799 (is_predicable): Allow multi-alternative lists for the "predicable"
12800 attribute.
12801 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
12802 (process_one_cond_exec): Call alter_attrs_for_insn.
12803 * doc/md.texi (Defining Attributes): Mention some standard names.
12804 (Conditional Execution): Update documentation for "predicable".
12805
12806 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
12807 __builtin_clrsbll): Document.
12808 * doc/rtl.texi (clrsb): New entry.
12809 * optabs.c (widen_leading): Renamed from widen_clz. New argument
12810 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
12811 (expand_unop): Handle clrsb_optab.
12812 (init_optabs): Initialize it.
12813 * optabs.h (enum optab_index): New entry OTI_clrsb.
12814 (clrsb_optab): Define.
12815 * genopinit.c (optabs): Add an entry for it.
12816 * builtins.c (expand_builtin): Handle clrsb builtin functions.
12817 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
12818 BUILT_IN_CLRSBLL): New.
12819 * rtl.def (CLRSB): New code.
12820 * dwarf2out.c (mem_loc_descriptor): Handle it.
12821 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12822 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
12823 and popcount.
12824 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
12825 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
12826 (__ctzDI2): Move declaration.
12827 * config/bfin/bfin.md (clrsbsi2): New expander.
12828 (signbitssi2): Use the CLRSB rtx.
12829 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
12830 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
12831
12832 2011-06-21 Richard Guenther <rguenther@suse.de>
12833
12834 * ipa-inline-transform.c (inline_transform): Fix previous change.
12835
12836 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
12837
12838 PR tree-optimization/49478
12839 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
12840 with constant operand.
12841
12842 2011-06-21 Richard Guenther <rguenther@suse.de>
12843
12844 * ipa-inline-transform.c (inline_transform): Fix typo.
12845
12846 2011-06-21 Richard Guenther <rguenther@suse.de>
12847
12848 PR tree-optimization/49483
12849 * tree-vect-stmts.c (vectorizable_assignment): Also handle
12850 VIEW_CONVERT_EXPR conversions.
12851
12852 2011-06-21 Joseph Myers <joseph@codesourcery.com>
12853
12854 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
12855 * config/avr/avr-tables.opt: New file (generated).
12856 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
12857 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
12858 avr-mcus.def.
12859 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
12860 (avr_option_override): Don't process -mmcu= argument here. Set
12861 avr_current_device using avr_mcu_index.
12862 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
12863 * config/avr/avr.opt (mmcu=): Use Enum.
12864 * config/avr/t-avr (avr-devices.o): Update dependencies.
12865 ($(srcdir)/config/avr/avr-tables.opt): New.
12866 * target.def (help): Remove.
12867 * doc/tm.texi.in (TARGET_HELP): Remove.
12868 * doc/tm.texi: Regenerate.
12869 * opts.c: Don't include target.h.
12870 (common_handle_option): Don't call targetm.help.
12871 * system.h (TARGET_HELP): Poison.
12872 * Makefile.in (opts.o): Update dependencies.
12873
12874 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12875
12876 * config/usegld.h: New file.
12877 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
12878 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
12879 (LIB_SPEC): Likewise. Search /lib.
12880 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
12881 (RDYNAMIC_SPEC): Handle GNU ld.
12882 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
12883 Define.
12884 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
12885 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
12886 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
12887 (STACK_CHECK_STATIC_BUILTIN): Define.
12888 * config/sol2.opt (compat-bsd): Remove.
12889 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
12890 * config/sol2-bi.h: New file.
12891 * config/sol2-gld.h: Remove.
12892 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
12893 (NO_DBX_BNSYM_ENSYM): Remove.
12894 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12895 (STACK_CHECK_STATIC_BUILTIN): Remove.
12896 Test USE_GLD instead of TARGET_GNU_LD.
12897 * config/i386/sol2-10.h: Rename to ...
12898 * config/i386/sol2-bi.h .. this.
12899 (SUBTARGET_EXTRA_SPECS): Redefine.
12900 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
12901 (MULTILIB_DEFAULTS): Remove.
12902 (DEFAULT_ARCH32_P): Define.
12903 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
12904 (ARCH64_SUBDIR): Define.
12905 Test USE_GLD instead of TARGET_GNU_LD.
12906 (I386_EMULATION): Rename to ...
12907 (ARCH32_EMULATION): ... this.
12908 (X86_64_EMULATION): Rename to ...
12909 (ARCH64_EMULATION): ... this.
12910 (TARGET_LD_EMULATION): Remove.
12911 (LINK_ARCH_SPEC): Remove.
12912 * config/i386/sol2-gas.h: Remove.
12913 * config/i386/t-sol2-10: Rename to ...
12914 * config/i386/t-sol2-64: ... this.
12915 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
12916 (AS_SPARC64_FLAG): Define.
12917 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
12918 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
12919 depending on TARGET_CPU_DEFAULT.
12920 (CPP_CPU_SPEC): Redefine.
12921 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
12922 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
12923 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
12924 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
12925 ASM_ARCH_DEFAULT_SPEC): Redefine.
12926 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12927 LINK_ARCH_DEFAULT_SPEC.
12928 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
12929 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
12930 (ARCH64_SUBDIR): Define.
12931 (LINK_ARCH64_SPEC): Redefine.
12932 (CC1_SPEC): Redefine.
12933 (OPTION_DEFAULT_SPECS): Redefine.
12934 (MULTILIB_DEFAULTS): Define.
12935 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
12936 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
12937 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
12938 (NO_DBX_BNSYM_ENSYM): Remove.
12939 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
12940 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
12941 (TARGET_ASM_NAMED_SECTION): Likewise.
12942 (STACK_CHECK_STATIC_BUILTIN): Remove.
12943 * config/sparc/sol2-bi.h: Remove.
12944 * config/sparc/sol2-gas-bi.h: Remove.
12945 * config/sparc/sol2-gas.h: Remove.
12946 * config/sparc/sol2-gld-bi.h: Remove.
12947 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
12948 common parts ...
12949 (*-*-solaris2*): ... here.
12950
12951 2011-06-21 Christian Bruel <christian.bruel@st.com>
12952
12953 PR other/43564
12954 * ipa-inline.c (can_inline_edge_p): Check
12955 !DECL_DISREGARD_INLINE_LIMITS.
12956
12957 2011-06-21 Christian Bruel <christian.bruel@st.com>
12958
12959 PR middle-end/49139
12960 * cgraphunit.c (process_function_and_variable_attributes): warn when
12961 always_inline functions that are not inline.
12962 * ipa-inline-transform.c (inline_transform): Always call
12963 optimize_inline.
12964 * tree-inline.c (tree_inlinable_function_p): Use error instead
12965 of sorry.
12966 (expand_call_inline): Likewise.
12967
12968 2011-06-21 Jakub Jelinek <jakub@redhat.com>
12969
12970 * Makefile.in (dg_target_exps): Set.
12971 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
12972 instead of 7, try to divide it more evenly.
12973
12974 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
12975
12976 PR target/49089
12977 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
12978 (avx256_split_unaligned_store): New definition.
12979 (ix86_option_override_internal): Enable avx256 unaligned load/store
12980 splitting only when avx256_split_unaligned_load/store is set.
12981
12982 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
12983
12984 * regrename.c (scan_rtx_reg): Handle the case where we write to an
12985 open chain in a smaller mode without failing the entire block.
12986
12987 2011-06-21 Alan Modra <amodra@gmail.com>
12988
12989 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
12990 CONST high part large-toc address.
12991 (rs6000_tls_referenced_p): Make static.
12992 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
12993
12994 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12995
12996 PR target/49385
12997 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
12998 one of the operands is a register.
12999
13000 2011-06-20 Kai Tietz <ktietz@redhat.com>
13001
13002 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13003 operations in combination with binary and.
13004
13005 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
13006
13007 * regrename.c (do_replace): Don't update notes.
13008
13009 2011-06-20 Alan Modra <amodra@gmail.com>
13010
13011 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13012 of toc-relative address in CONST.
13013 (rs6000_delegitimize_address): Recognize changed address.
13014 (rs6000_legitimize_reload_address): Likewise.
13015 (rs6000_emit_move): Don't force these constants to memory.
13016 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13017 toc-relative address in CONST.
13018 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13019 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13020
13021 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
13022
13023 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13024 (count_trailing_zeros): Likewise.
13025
13026 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
13027
13028 PR other/49325
13029 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13030 .init_array can be used with .ctors on targets.
13031 * configure: Regenerated.
13032
13033 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13034
13035 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13036 if the element type is volatile.
13037
13038 2011-06-18 Jan Hubicka <jh@suse.cz>
13039
13040 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13041 extra name aliases.
13042 (lto_symtab_resolve_can_prevail_p): Likewise.
13043 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13044 * cgraphbuild.c (record_reference): Remove extra body alias code.
13045 (mark_load): Likewise.
13046 (mark_store): Likewise.
13047 * cgraph.h (varpool_node): Remove extra_name filed;
13048 add alias_of and extraname_alias.
13049 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13050 (varpool_alias_aliased_node): New inline function.
13051 (varpool_variable_node): New function.
13052 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13053 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13054 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13055 (input_varpool_node): Likewise.
13056 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13057 (varpool_externally_visible_p): Remove extra body alias code.
13058 (function_and_variable_visibility): Likewise.
13059 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13060 (ipa_pta_execute): Use it.
13061 * varpool.c (varpool_remove_node): Remove extra name alias code.
13062 (varpool_mark_needed_node): Likewise.
13063 (varpool_analyze_pending_decls): Analyze aliases.
13064 (assemble_aliases): New functoin.
13065 (varpool_assemble_decl): Use it.
13066 (varpool_create_variable_alias): New function.
13067 (varpool_extra_name_alias): Rewrite.
13068 (varpool_for_node_and_aliases): New function.
13069
13070 2011-06-18 Jakub Jelinek <jakub@redhat.com>
13071
13072 PR target/49411
13073 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13074 last_arg_constant and last argument doesn't match its predicate,
13075 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13076 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13077 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13078 spelling of error message.
13079 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13080 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13081 const_0_to_255_operand instead of const_int_operand.
13082
13083 Revert:
13084 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13085
13086 * config/i386/sse.md (blendbits): Remove mode attribute.
13087 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13088 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13089 Check integer value of operand 3 in insn constraint.
13090
13091 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
13092
13093 PR rtl-optimization/48542
13094 * reload.c (find_equiv_reg): Stop looking when finding a
13095 setjmp-type call.
13096 * reload1.c (reload_as_needed): Invalidate all reload
13097 registers when crossing a setjmp-type call.
13098
13099 2011-06-16 Jeff Law <law@redhat.com>
13100
13101 * tree-ssa-threadupdate.c (struct redirection_data): New field
13102 intermediate_edge.
13103 (THREAD_TARGET2): Define.
13104 (redirection_data_eq): Also check that the intermediate edge is equal.
13105 (lookup_redirection_data): Drop useless argument. Extract the
13106 outgoing_edge and intermediate edge from E. Callers updated.
13107 (copy_phi_args, update_destination_phis): New functions.
13108 (fix_duplicate_block_edges): Likewise.
13109 (create_edge_and_update_destination_phis): Duplicate all the edges
13110 hung off e->aux. Use copy_phi_args.
13111 (create_duplicates): Use fix_duplicate_block_edges.
13112 (fixup_template_block): Likewise.
13113 (redirect_edges): If necessary, redirect the joiner block's incoming
13114 edge to the duplicate of the joiner block.
13115 (thread_block): Don't muck up loops when threading through a joiner
13116 block.
13117 (thread_through_loop_header): Handle threading through a joiner block.
13118 (mark_threaded_blocks, register_jump_thread): Likewise.
13119 * tree-flow.h (register_jump_thread): Add new argument. Callers
13120 updated.
13121 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13122 (thread_across_edge): Handle threading through a joiner block.
13123
13124 2011-06-16 Martin Jambor <mjambor@suse.cz>
13125
13126 PR tree-optimization/49343
13127 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13128 calculate offset, provide 2nd operand for the new COMPONENT_REF.
13129
13130 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
13131
13132 * config/darwin-protos.h (machopic_select_rtx_section): Move to
13133 inside RTX_CODE ifdef.
13134
13135 2011-06-16 Tom de Vries <tom@codesourcery.com>
13136
13137 PR target/45098
13138 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13139 Disallow NULL pointer for pointer arithmetic.
13140
13141 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13142
13143 PR target/49398
13144 Revert.
13145 2011-06-10 Wei Guozhi <carrot@google.com>
13146
13147 PR target/45335
13148 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13149 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13150 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13151 related peephole2.
13152 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13153 related peephole2.
13154 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13155 (arm_legitimate_ldrd_p): New prototype.
13156 (arm_output_ldrd): New prototype.
13157 * config/arm/arm.c (arm_check_ldrd_operands): New function.
13158 (arm_legitimate_ldrd_p): New function.
13159 (arm_output_ldrd): New function.
13160
13161 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
13162
13163 PR middle-end/46500
13164 * doc/tm.texi.in: Update Copyright date.
13165 * doc/tm.texi: Regenerate.
13166 * targhooks.c (default_setup_incoming_varargs): Replace
13167 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13168 (default_pretend_outgoing_varargs_named): Likewise.
13169 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13170 (hook_callee_copies_named): Likewise.
13171 (default_function_arg_advance): Likewise.
13172 (default_function_arg): Likewise.
13173 (default_function_incoming_arg): Likewise.
13174 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13175 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13176 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13177 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13178 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13179 * targhooks.h (default_setup_incoming_varargs): Likewise.
13180 (default_pretend_outgoing_varargs_named): Likewise.
13181 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13182 (hook_callee_copies_named): Likewise.
13183 (default_function_arg_advance): Likewise.
13184 (default_function_arg): Likewise.
13185 (default_function_incoming_arg): Likewise.
13186 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13187 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13188 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13189 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13190 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13191 * target.def (pass_by_reference): Likewise.
13192 (setup_incoming_varargs, strict_argument_naming): Likewise.
13193 (pretend_outgoing_varargs_named, callee_copies): Likewise.
13194 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13195 (function_incoming_arg): Likewise.
13196 * target.h: Don't include "tm.h" .
13197 (cumulative_args_t): New typedef.
13198 [GCC_TM_H] (get_cumulative_args): New static inline function.
13199 [GCC_TM_H] (pack_cumulative_args): Likewise.
13200 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13201 argument type with cumulative_args_t.
13202 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13203 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13204 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13205 (frv_arg_partial_bytes, frv_function_arg): Likewise.
13206 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13207 (frv_function_arg_1): Likewise.
13208 * config/s390/s390.c (s390_pass_by_reference): Likewise.
13209 (s390_function_arg_advance, s390_function_arg): Likewise.
13210 * config/m32c/m32c.c (m32c_function_arg): Likewise.
13211 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13212 (m32c_strict_argument_naming): Likewise.
13213 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13214 (spu_function_arg_advance): Likewise.
13215 (spu_setup_incoming_varargs): Likewise. Make static.
13216 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13217 Remove prototype.
13218 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13219 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13220 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13221 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13222 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13223 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13224 (mep_pass_by_reference, mep_function_arg): Likewise.
13225 (mep_function_arg_advance): Likewise.
13226 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13227 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13228 (m32r_function_arg, m32r_function_arg_advance): Likewise.
13229 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13230 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13231 (ix86_function_arg, ix86_pass_by_reference): Likewise.
13232 (ix86_setup_incoming_varargs): Likewise.
13233 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13234 (sh_strict_argument_naming): Likewise.
13235 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13236 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13237 (sh_function_arg_advance, sh_function_arg): Likewise.
13238 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13239 (pdp11_function_arg_advance): Likewise.
13240 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13241 Likewise.
13242 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13243 * config/avr/avr.c (avr_function_arg): Likewise.
13244 (avr_function_arg_advance): Likewise.
13245 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13246 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13247 (xtensa_function_arg_1): Likewise.
13248 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13249 Likewise.
13250 (xstormy16_function_arg): Likewise.
13251 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13252 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13253 (fr30_function_arg_advance): Likewise.
13254 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13255 (lm32_function_arg, lm32_function_arg_advance): Likewise.
13256 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13257 (moxie_function_arg, moxie_function_arg_advance): Likewise.
13258 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13259 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13260 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13261 (cris_function_arg, cris_function_incoming_arg): Likewise.
13262 (cris_function_arg_advance, cris_function_arg_1): Likewise.
13263 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13264 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13265 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13266 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13267 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13268 (mn10300_arg_partial_bytes): Likewise.
13269 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13270 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13271 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13272 (ia64_function_arg_1): Likewise.
13273 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13274 (m68k_function_arg): Likewise.
13275 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13276 (rs6000_function_arg, setup_incoming_varargs): Likewise.
13277 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13278 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13279 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13280 (picochip_arg_advance): Likewise.
13281 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13282 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13283 (mcore_function_arg_advance): Likewise.
13284 * config/score/score.c (score_pass_by_reference): Likewise.
13285 (score_function_arg_advance): Likewise.
13286 (score_arg_partial_bytes): Likewise. Make static.
13287 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13288 * config/arm/arm.c (arm_arg_partial_bytes): Replace
13289 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13290 (arm_function_arg, arm_function_arg_advance): Likewise.
13291 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13292 * config/pa/pa.c (pa_pass_by_reference): Likewise.
13293 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13294 (pa_function_arg): Likewise.
13295 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13296 (mips_function_arg, mips_function_arg_advance): Likewise.
13297 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13298 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13299 * config/vax/vax.c (vax_function_arg): Likewise.
13300 (vax_function_arg_advance): Likewise.
13301 * config/h8300/h8300.c (h8300_function_arg): Likewise.
13302 (h8300_function_arg_advance): Likewise.
13303 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13304 (v850_strict_argument_naming, v850_function_arg): Likewise.
13305 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13306 (v850_setup_incoming_varargs): Likewise.
13307 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13308 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13309 (mmix_function_arg, mmix_pass_by_reference): Likewise.
13310 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13311 with const void *.
13312 * config/bfin/bfin.c (setup_incoming_varargs): Replace
13313 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13314 (bfin_function_arg_advance, bfin_function_arg): Likewise.
13315 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13316 * calls.c (emit_call_1): Change type of args_so_far to
13317 cumulative_args_t. Changed all callers.
13318 (initialize_argument_information): Likewise.
13319 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13320 * dse.c (get_call_args): Likewise.
13321 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13322 * function.c (pass_by_reference, reference_callee_copied): Likewise.
13323 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13324 New member args_so_far_v. Changed all users.
13325 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13326 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13327 * config/mips/mips.c (mips_output_args_xfer): Likewise.
13328 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13329 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13330 * config/microblaze/microblaze.c (microblaze_expand_prologue):
13331 Likewise.
13332 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13333 m32r_pass_by_reference.
13334
13335 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
13336
13337 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13338 argument to be a VEC of statements.
13339 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13340 assert that pattern statements have to have their vector type set.
13341 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13342 Change the first argument to be a VEC of statements. Update
13343 documentation.
13344 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13345 (vect_handle_widen_mult_by_const): New function.
13346 (vect_recog_widen_mult_pattern): Change the first argument to be a
13347 VEC of statements. Update documentation. Check that the constant is
13348 INTEGER_CST. Support multiplication by a constant that fits an
13349 intermediate type - call vect_handle_widen_mult_by_const.
13350 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13351 call. Handle additional pattern statements if necessary.
13352
13353 2011-06-16 Nick Clifton <nickc@redhat.com>
13354
13355 PR target/49427
13356 * config.gcc: Set cpu_type to v850 for any V850 architecture.
13357 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13358 md_file, extra_modes, out_file and extra_options are these are all
13359 deduced from cpu_type.
13360
13361 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13362
13363 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13364 truncation mask to 63.
13365
13366 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13367
13368 PR target/49313
13369 PR target/29524
13370 * longlong.h: Add AVR support:
13371 (count_leading_zeros): New macro.
13372 (count_trailing_zeros): New macro.
13373 (COUNT_LEADING_ZEROS_0): New macro.
13374 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13375 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13376 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13377 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13378 (LIB2FUNCS_EXCLUDE): Add _clz.
13379 * config/avr/libgcc.S (XCALL): Move up in file.
13380 (XJMP): New C Macro.
13381 (DEFUN): New asm macro.
13382 (ENDF): New asm macro.
13383 (__ffssi2): New function.
13384 (__ffshi2): New function.
13385 (__loop_ffsqi2): New function.
13386 (__ctzsi2): New function.
13387 (__ctzhi2): New function.
13388 (__clzdi2): New function.
13389 (__clzsi2): New function.
13390 (__clzhi2): New function.
13391 (__paritydi2): New function.
13392 (__paritysi2): New function.
13393 (__parityhi2): New function.
13394 (__parityqi2): New function.
13395 (__popcounthi2): New function.
13396 (__popcountsi2): New function.
13397 (__popcountdi2): New function.
13398 (__popcountqi2): New function.
13399 (__bswapsi2): New function.
13400 (__bswapdi2): New function.
13401 (__ashldi3): New function.
13402 (__ashrdi3): New function.
13403 (__lshrdi3): New function.
13404 Fix suspicous lines.
13405
13406 2011-06-16 Richard Guenther <rguenther@suse.de>
13407
13408 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13409 the same as x != 0.
13410 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13411 to (bool) X & 1.
13412 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13413 equality compares against zero for the lower bit.
13414
13415 2011-06-16 Jakub Jelinek <jakub@redhat.com>
13416
13417 PR tree-optimization/49419
13418 * tree-vrp.c (execute_vrp): Call init_range_assertions
13419 before estimate_numbers_of_iterations, call
13420 free_number_of_iterations_estimates before calling
13421 remove_range_assertions.
13422
13423 2011-06-16 Revital Eres <revital.eres@linaro.org>
13424
13425 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13426 (struct partial_schedule): Add rows_length field.
13427 (verify_partial_schedule): Check rows_length.
13428 (ps_insert_empty_row): Handle rows_length.
13429 (create_partial_schedule): Likewise.
13430 (free_partial_schedule): Likewise.
13431 (reset_partial_schedule): Likewise.
13432 (create_ps_insn): Remove rest_count argument.
13433 (remove_node_from_ps): Update rows_length.
13434 (add_node_to_ps): Update rows_length and call create_ps_insn
13435 without passing row_rest_count.
13436 (rotate_partial_schedule): Update rows_length.
13437
13438 2011-06-16 Revital Eres <revital.eres@linaro.org>
13439
13440 * ddg.c (add_intra_loop_mem_dep): New function.
13441 (build_intra_loop_deps): Call it.
13442
13443 2011-06-13 Jeff Law <law@redhat.com>
13444
13445 * df-problems.c (df_lr_local_compute): Manually CSE
13446 PIC_OFFSET_TABLE_REGNUM.
13447 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
13448 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
13449
13450 2011-06-13 Jan Hubicka <jh@suse.cz>
13451
13452 * cgraphunit.c (handle_alias_pairs): New function.
13453 (cgraph_finalize_compilation_unit): Use it.
13454 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13455 as externally visible.
13456
13457 2011-06-15 Richard Guenther <rguenther@suse.de>
13458
13459 * expr.c (expand_expr_real_2): Reduce all integral types to
13460 bitfield precision.
13461 (expand_expr_real_1): Likewise.
13462
13463 2011-06-15 Martin Jambor <mjambor@suse.cz>
13464
13465 PR tree-optimization/48613
13466 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13467 ipa_node_params_vector is NULL.
13468
13469 2011-06-15 Jakub Jelinek <jakub@redhat.com>
13470
13471 PR debug/49382
13472 * dwarf2out.c (dw_loc_list_node): Add force field.
13473 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13474 location in the list, even if it is modified before first real insn.
13475 (output_loc_list): Emit empty ranges with force flag set.
13476 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13477
13478 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
13479
13480 PR target/49349
13481 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13482 (fence_to_rewind). Use it to notice when bookkeeping will be placed
13483 above a fence. Update comments.
13484 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13485 placed just above it. Do not allow NULL place_to_insert.
13486
13487 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
13488
13489 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13490 (slpeel_tree_peel_loop_to_edge): Don't call
13491 remove_dead_stmts_from_loop.
13492 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13493 remove irrelevant pattern statements. For irrelevant statements
13494 check if it is the last statement of a detected pattern, use
13495 corresponding pattern statement instead.
13496 (destroy_loop_vec_info): No need to remove pattern statements,
13497 only free stmt_vec_info.
13498 (vect_transform_loop): For irrelevant statements check if it is
13499 the last statement of a detected pattern, use corresponding
13500 pattern statement instead.
13501 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13502 pattern statements. Set basic block for the new statement.
13503 (vect_pattern_recog): Update documentation.
13504 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13505 operands of pattern statements.
13506 (vectorizable_call): Fix printing. In case of a pattern statement
13507 use the lhs of the original statement when creating a dummy
13508 statement to replace the original call.
13509 (vect_analyze_stmt): For irrelevant statements check if it is
13510 the last statement of a detected pattern, use corresponding
13511 pattern statement instead.
13512 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13513 statements use gsi of the original statement.
13514
13515 2011-06-14 Joseph Myers <joseph@codesourcery.com>
13516
13517 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13518 common/common-target-def.h.
13519 * target.def (default_target_flags, handle_option,
13520 supports_split_stack, optimization_table, init_struct,
13521 except_unwind_info, unwind_tables_default, have_named_sections):
13522 Move to common/common-target.def.
13523 * target.h (enum opt_levels, struct default_options): Move to
13524 common/common-target.h.
13525 * targhooks.c (default_except_unwind_info,
13526 dwarf2_except_unwind_info, sjlj_except_unwind_info,
13527 default_target_handle_option, empty_optimization_table): Move to
13528 common/common-targhooks.c.
13529 * targhooks.h (default_except_unwind_info,
13530 dwarf2_except_unwind_info, sjlj_except_unwind_info,
13531 default_target_handle_option, empty_optimization_table): Move to
13532 common/common-targhooks.h.
13533 * common/common-target-def.h: Include common/common-targhooks.h.
13534 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13535 defined.
13536 * common/common-target.def (handle_option, option_init_struct,
13537 option_optimization_table, default_target_flags,
13538 except_unwind_info, supports_split_stack, unwind_tables_default,
13539 have_named_sections): Move from target.def.
13540 (HOOK_PREFIX): Undefine at end of file.
13541 * common/common-target.h: Include input.h.
13542 (enum opt_levels, struct default_options): Move from target.h.
13543 * common/common-targhooks.c, common/common-targhooks.h: New.
13544 * config.gcc (target_has_targetm_common): Default to yes.
13545 (moxie*): Set target_has_targetm_common=no.
13546 (hppa*-*-*): Don't set target_has_targetm_common=yes.
13547 * doc/tm.texi: Regenerate.
13548 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13549 (C_TARGET_DEF_H): Add common/common-targhooks.h.
13550 (GCC_OBJS): Remove vec.o.
13551 (OBJS): Remove hooks.o and vec.o.
13552 (OBJS-libcommon-target): Add vec.o, hooks.o and
13553 common/common-targhooks.o.
13554 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13555 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13556 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13557 cfglayout.o, $(out_object_file), $(common_out_object_file)):
13558 Update dependencies.
13559 (common/common-targhooks.o): New.
13560 * common/config/default-common.c: Include tm.h. Add FIXME comment.
13561 * common/config/pa/pa-common.c: Include more headers. Take
13562 copyright dates from pa.c.
13563 (pa_option_optimization_table, pa_handle_option,
13564 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13565 TARGET_HANDLE_OPTION): Move from pa.c.
13566 * common/config/alpha/alpha-common.c,
13567 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13568 common/config/bfin/bfin-common.c,
13569 common/config/cris/cris-common.c,
13570 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13571 common/config/h8300/h8300-common.c,
13572 common/config/i386/i386-common.c,
13573 common/config/ia64/ia64-common.c,
13574 common/config/iq2000/iq2000-common.c,
13575 common/config/lm32/lm32-common.c,
13576 common/config/m32c/m32c-common.c,
13577 common/config/m32r/m32r-common.c,
13578 common/config/m68k/m68k-common.c,
13579 common/config/mcore/mcore-common.c,
13580 common/config/mep/mep-common.c,
13581 common/config/microblaze/microblaze-common.c,
13582 common/config/mips/mips-common.c,
13583 common/config/mmix/mmix-common.c,
13584 common/config/mn10300/mn10300-common.c,
13585 common/config/pdp11/pdp11-common.c,
13586 common/config/picochip/picochip-common.c,
13587 common/config/rs6000/rs6000-common.c,
13588 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13589 common/config/score/score-common.c, common/config/sh/sh-common.c,
13590 common/config/sparc/sparc-common.c,
13591 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13592 common/config/vax/vax-common.c,
13593 common/config/xstormy16/xstormy16-common.c,
13594 common/config/xtensa/xtensa-common.c: New.
13595 * config/alpha/alpha.c: Include common/common-target.h.
13596 (alpha_option_optimization_table, alpha_handle_option,
13597 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13598 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13599 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13600 * config/arm/arm.c (arm_option_optimization_table,
13601 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13602 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13603 arm-common.c.
13604 * config/avr/avr.c (avr_option_optimization_table,
13605 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13606 to avr-common.c.
13607 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13608 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13609 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13610 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13611 * config/cris/cris.c (cris_option_optimization_table,
13612 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13613 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13614 cris-common.c.
13615 * config/fr30/fr30.c (fr30_option_optimization_table,
13616 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13617 to fr30-common.c.
13618 * config/frv/frv.c (frv_option_optimization_table,
13619 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13620 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13621 * config/h8300/h8300.c (h8300_option_optimization_table,
13622 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13623 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13624 * config/i386/i386-protos.h (ix86_handle_option): Declare.
13625 * config/i386/i386.c: Include common/common-target.h.
13626 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13627 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13628 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
13629 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
13630 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
13631 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
13632 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
13633 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
13634 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
13635 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
13636 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
13637 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
13638 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
13639 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
13640 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
13641 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
13642 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
13643 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
13644 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
13645 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
13646 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
13647 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
13648 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
13649 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
13650 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
13651 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
13652 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
13653 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
13654 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
13655 ix86_option_optimization_table, ix86_option_init_struct,
13656 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
13657 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13658 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
13659 i386-common.c.
13660 * config/i386/t-i386 (i386.o): Update dependencies.
13661 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
13662 * config/ia64/ia64.c (ia64_option_optimization_table,
13663 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13664 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13665 ia64_handle_option): Move to ia64-common.c.
13666 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
13667 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
13668 * config/lm32/lm32.c (lm32_option_optimization_table,
13669 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13670 to lm32-common.c.
13671 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
13672 m32c-common.c.
13673 * config/m32r/m32r.c (m32r_option_optimization_table,
13674 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13675 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13676 m32r_handle_option): Move to m32r-common.c.
13677 (m32r_memory_move_cost): Remove comment referring to
13678 TARGET_HANDLE_OPTION.
13679 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
13680 Move to m68k-common.c.
13681 * config/mcore/mcore.c (mcore_option_optimization_table,
13682 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13683 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
13684 * config/mep/mep.c (mep_option_optimization_table,
13685 mep_handle_option, TARGET_HANDLE_OPTION,
13686 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
13687 Move to mep-common.c.
13688 * config/microblaze/microblaze.c
13689 (microblaze_option_optimization_table,
13690 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13691 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
13692 * config/mips/mips.c (mips_handle_option,
13693 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13694 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
13695 mips-common.c.
13696 * config/mmix/mmix.c (mmix_option_optimization_table,
13697 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13698 Move to mmix-common.c.
13699 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
13700 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
13701 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13702 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
13703 * config/pa/pa.c: Include common/common-target.h.
13704 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13705 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13706 pa_handle_option): Move to pa-common.c.
13707 (pa_option_override): Use targetm_common.except_unwind_info.
13708 (pa_asm_output_mi_thunk, pa_function_section): Use
13709 targetm_common.have_named_sections.
13710 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
13711 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13712 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13713 pdp11_handle_option, pdp11_option_init_struct): Move to
13714 pdp11-common.c.
13715 * config/picochip/picochip.c (picochip_option_optimization_table,
13716 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
13717 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
13718 * config/rs6000/rs6000.c: Include common/common-target.h.
13719 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
13720 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
13721 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
13722 rs6000_handle_option): Move to rs6000-common.c.
13723 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13724 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
13725 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13726 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
13727 * config/s390/s390.c (processor_flags_table,
13728 s390_option_optimization_table, s390_option_init_struct,
13729 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
13730 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13731 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
13732 * config/s390/s390.h (processor_flags_table): Declare.
13733 * config/score/score.c (score_option_optimization_table,
13734 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13735 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
13736 score_handle_option): Move to score-common.c.
13737 * config/sh/sh.c (sh_option_optimization_table,
13738 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13739 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13740 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
13741 * config/sparc/sparc.c: Include common/common-target.h.
13742 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13743 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
13744 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
13745 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
13746 spu_option_init_struct): Move to spu-common.c.
13747 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
13748 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
13749 * config/v850/v850.c (small_memory_physical_max,
13750 v850_handle_memory_optionn v850_handle_option,
13751 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
13752 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
13753 v850-common.c.
13754 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
13755 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
13756 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13757 Move to xtensa-common.c.
13758 * cfglayout.c: Include common/common-target.h.
13759 (fixup_reorder_chain): Use targetm_common.have_named_sections.
13760 * cfgrtl.c: Include common/common-target.h.
13761 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
13762 targetm_common.have_named_sections.
13763 * dbxout.c: Include common/common-target.h.
13764 (dbxout_function_end): Use targetm_common.have_named_sections.
13765 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
13766 targetm_common.except_unwind_info.
13767 * dwarf2out.c: Include common/common-target.h.
13768 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
13769 dwarf2out_begin_prologue, dwarf2out_frame_init,
13770 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
13771 targetm_common.except_unwind_info.
13772 * except.c: Include common/common-target.h.
13773 (init_eh, finish_eh_generation,
13774 output_one_function_exception_table): Use
13775 targetm_common.except_unwind_info.
13776 (switch_to_exception_section): Use targetm_common.have_named_sections.
13777 * explow.c: Include common/common-target.h.
13778 * expr.c: Include common/common-target.h.
13779 (build_personality_function): Use targetm_common.except_unwind_info.
13780 * function.c: Include common/common-target.h.
13781 (expand_function_end): Use targetm_common.except_unwind_info.
13782 * haifa-sched.c: Include common/common-target.h.
13783 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
13784 * lto-opts.c: Include common/common-target.h instead of target.h.
13785 (lto_reissue_options): Use targetm_common.handle_option.
13786 * opts.c: Include common/common-target.h.
13787 (target_handle_option): Use targetm_common.handle_option.
13788 (init_options_struct): Update comment referring to
13789 targetm.target_option.optimization. Use
13790 targetm_common.default_target_flags,
13791 targetm_common.unwind_tables_default and
13792 targetm_common.option_init_struct.
13793 (default_options_optimization): Use
13794 targetm_common.option_optimization_table.
13795 (finish_options): Use targetm_common.except_unwind_info,
13796 targetm_common.unwind_tables_default,
13797 targetm_common.have_named_sections and
13798 targetm_common.supports_split_stack.
13799 * toplev.c: Include common/common-target.h.
13800 (process_options): Use targetm_common.have_named_sections.
13801 * tree-tailcall.c: Include common/common-target.h.
13802 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
13803 * tree.c: Include common/common-target.h.
13804 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
13805 * varasm.c: Include common/common-target.h.
13806 (resolve_unique_section, hot_function_section,
13807 default_function_section): Use targetm_common.have_named_sections.
13808
13809 2011-06-14 Easwaran Raman <eraman@google.com>
13810
13811 PR rtl-optimization/44194
13812 * dse.c: Include tree-flow.h
13813 (insn_info): Add new field non_frame_wild_read.
13814 (group_info): Add new fields escaped_n and escaped_p.
13815 (kill_on_calls): New variable.
13816 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
13817 (dse_step0): Initialize kill_on_calls.
13818 (can_escape): New function.
13819 (set_usage_bits): Add additional parameter; record information
13820 about escaped locations.
13821 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
13822 (dse_step2_nospill): Set kill_on_calls based on
13823 group->escaped_n and group->escaped_n.
13824 (add_wild_read): Refactor into...
13825 (reset_active_stores): ... New function, and
13826 (free_read_records): ... New function.
13827 (add_non_frame_wild_read): New function.
13828 (scan_insn): Call add_non_frame_wild_read on non-const calls.
13829 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
13830 (dse_step5_nospill): Call scan_reads_nospill for instructions
13831 marked as non_frame_wild_read.
13832 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
13833
13834 2011-06-14 Joseph Myers <joseph@codesourcery.com>
13835
13836 * common/common-target-def.h, common/common-target.def,
13837 common/common-target.h, common/config/default-common.c,
13838 common/config/pa/pa-common.c: New files.
13839 * Makefile.in (common_out_file, common_out_object_file,
13840 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
13841 (OBJS-libcommon-target): Include $(common_out_object_file).
13842 (prefix.o): Update dependencies.
13843 ($(common_out_object_file), common/common-target-hooks-def.h,
13844 s-common-target-hooks-def-h): New.
13845 (s-tm-texi): Also check timestamp on common-target.def.
13846 (build/genhooks.o): Update dependencies.
13847 * config.gcc (common_out_file, target_has_targetm_common): Define.
13848 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
13849 TARGET_ALWAYS_STRIP_DOTDOT.
13850 * configure.ac (common_out_object_file): Define.
13851 (common_out_file, common_out_object_file): Substitute.
13852 (common): Create directory.
13853 * configure: Regenerate.
13854 * doc/tm.texi.in (targetm_common): Document.
13855 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
13856 * doc/tm.texi: Regenerate.
13857 * genhooks.c (hook_array): Also include common/common-target.def.
13858 * prefix.c (tm.h): Don't include.
13859 (common/common-target.h): Include.
13860 (ALWAYS_STRIP_DOTDOT): Don't define.
13861 (update_path): Use targetm_common.always_strip_dotdot instead of
13862 ALWAYS_STRIP_DOTDOT.
13863 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
13864
13865 2011-06-14 David Li <davidxl@google.com>
13866
13867 * passes.c (execute_function_todo): Remove TODO_dump_func.
13868 (execute_one_pass): Remove TODO_dump_func.
13869 (execute_function_dump): New function.
13870 * tree-vrp.c: Remove TODO_dump_func.
13871 * regrename.c: Remove TODO_dump_func.
13872 * fwprop.c: Remove TODO_dump_func.
13873 * tree-into-ssa.c: Remove TODO_dump_func.
13874 * tree-complex.c: Remove TODO_dump_func.
13875 * tracer.c: Remove TODO_dump_func.
13876 * tree-loop-distribution.c: Remove TODO_dump_func.
13877 * postreload-gcse.c: Remove TODO_dump_func.
13878 * postreload.c: Remove TODO_dump_func.
13879 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
13880 * tree-tailcall.c: Remove TODO_dump_func.
13881 * ipa-cp.c: Remove TODO_dump_func.
13882 * final.c: Remove TODO_dump_func.
13883 * tree-emutls.c: Remove TODO_dump_func.
13884 * omp-low.c: Remove TODO_dump_func.
13885 * tree-ssa-dse.c: Remove TODO_dump_func.
13886 * tree-ssa-uncprop.c: Remove TODO_dump_func.
13887 * auto-inc-dec.c: Remove TODO_dump_func.
13888 * reorg.c: Remove TODO_dump_func.
13889 * tree-ssa-copyrename.c: Remove TODO_dump_func.
13890 * tree-ssa-ccp.c: Remove TODO_dump_func.
13891 * compare-elim.c: Remove TODO_dump_func.
13892 * mode-switching.c: Remove TODO_dump_func.
13893 * modulo-sched.c: Remove TODO_dump_func.
13894 * tree-call-cdce.c: Remove TODO_dump_func.
13895 * cse.c: Remove TODO_dump_func.
13896 * web.c: Remove TODO_dump_func.
13897 * tree-stdarg.c: Remove TODO_dump_func.
13898 * lto-streamer-out.c: Remove TODO_dump_func.
13899 * tree-ssa-math-opts.c: Remove TODO_dump_func.
13900 * tree-ssa-dom.c: Remove TODO_dump_func.
13901 * tree-nrv.c: Remove TODO_dump_func.
13902 * loop-init.c: Remove TODO_dump_func.
13903 * gimple-low.c: Remove TODO_dump_func.
13904 * ipa-inline.c: Remove TODO_dump_func.
13905 * tree-ssa-sink.c: Remove TODO_dump_func.
13906 * jump.c: Remove TODO_dump_func.
13907 * ifcvt.c: Remove TODO_dump_func.
13908 * tree-ssa-loop.c: Remove TODO_dump_func.
13909 * recog.c: Remove TODO_dump_func.
13910 * dse.c: Remove TODO_dump_func.
13911 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
13912 * matrix-reorg.c: Remove TODO_dump_func.
13913 * tree-eh.c: Remove TODO_dump_func.
13914 * regmove.c: Remove TODO_dump_func.
13915 * function.c: Remove TODO_dump_func.
13916 * tree-vectorizer.c: Remove TODO_dump_func.
13917 * ipa-split.c: Remove TODO_dump_func.
13918 * gcse.c: Remove TODO_dump_func.
13919 * tree-if-conv.c: Remove TODO_dump_func.
13920 * init-regs.c: Remove TODO_dump_func.
13921 * tree-ssa-phiopt.c: Remove TODO_dump_func.
13922 * implicit-zee.c: Remove TODO_dump_func.
13923 * lower-subreg.c: Remove TODO_dump_func.
13924 * bt-load.c: Remove TODO_dump_func.
13925 * tree-dfa.c: Remove TODO_dump_func.
13926 * except.c: Remove TODO_dump_func.
13927 * emit-rtl.c: Remove TODO_dump_func.
13928 * store-motion.c: Remove TODO_dump_func.
13929 * cfgexpand.c: Remove TODO_dump_func.
13930 * tree-cfgcleanup.c: Remove TODO_dump_func.
13931 * cfgcleanup.c: Remove TODO_dump_func.
13932 * tree-ssa-pre.c: Remove TODO_dump_func.
13933 * tree-sra.c: Remove TODO_dump_func.
13934 * tree-mudflap.c: Remove TODO_dump_func.
13935 * tree-ssa-copy.c: Remove TODO_dump_func.
13936 * cfglayout.c: Remove TODO_dump_func.
13937 * tree-ssa-forwprop.c: Remove TODO_dump_func.
13938 * tree-ssa-dce.c: Remove TODO_dump_func.
13939 * ira.c: Remove TODO_dump_func.
13940 * tree-ssa.c: Remove TODO_dump_func.
13941 * integrate.c: Remove TODO_dump_func.
13942 * tree-optimize.c: Remove TODO_dump_func.
13943 * tree-ssa-phiprop.c: Remove TODO_dump_func.
13944 * tree-object-size.c: Remove TODO_dump_func.
13945 * combine.c: Remove TODO_dump_func.
13946 * bb-reorder.c: Remove TODO_dump_func.
13947 * cprop.c: Remove TODO_dump_func.
13948 * var-tracking.c: Remove TODO_dump_func.
13949 * tree-profile.c: Remove TODO_dump_func.
13950 * tree-vect-generic.c: Remove TODO_dump_func.
13951 * reg-stack.c: Remove TODO_dump_func.
13952 * sched-rgn.c: Remove TODO_dump_func.
13953 * tree-ssa-structalias.c: Remove TODO_dump_func.
13954 * tree-switch-conversion.c: Remove TODO_dump_func.
13955 * tree-cfg.c: Remove TODO_dump_func.
13956 * tree-ssa-reassoc.c: Remove TODO_dump_func.
13957 * combine-stack-adj.c: Remove TODO_dump_func.
13958 * dce.c: Remove TODO_dump_func.
13959 * tree-ssanames.c: Remove TODO_dump_func.
13960 * regcprop.c: Remove TODO_dump_func.
13961
13962 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
13963
13964 PR middle-end/47364
13965 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
13966 and properly handle result not in Pmode.
13967
13968 2011-06-14 Robert Millan <rmh@gnu.org>
13969
13970 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
13971 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
13972 `config/linux.h'.
13973
13974 * config/i386/kfreebsd-gnu64.h: New file.
13975 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
13976 with `i386/kfreebsd-gnu64.h'.
13977
13978 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
13979 (GNU_USER_LINK_EMULATION64): New macros.
13980 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
13981 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
13982 of hardcoding `elf_i386' and `elf_x86_64'.
13983
13984 2011-06-14 Nick Clifton <nickc@redhat.com>
13985
13986 PR target/49403
13987 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
13988
13989 PR target/49402
13990 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
13991
13992 2011-06-14 Jakub Jelinek <jakub@redhat.com>
13993
13994 PR fortran/49103
13995 * tree.h (DECL_NONSHAREABLE): Define.
13996 (struct tree_decl_common): Change decl_common_unused to
13997 decl_nonshareable_flag.
13998 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
13999 Ignore vars with DECL_NONSHAREABLE bit set.
14000 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14001 on stores to automatic aggregate vars.
14002
14003 PR rtl-optimization/49390
14004 Revert:
14005 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
14006
14007 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14008 MEM_ALIAS_SET.
14009
14010 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
14011 Tom de Vries <tom@codesourcery.com>
14012
14013 PR target/45098
14014 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14015 Document changed semantics.
14016 (max_stmt_executions, max_stmt_executions_int): Declare.
14017 * tree-data-ref.c (estimated_loop_iterations)
14018 (estimated_loop_iterations_int): Move functions...
14019 * tree-ssa-loop-niter.c (estimated_loop_iterations)
14020 (estimated_loop_iterations_int): here.
14021 (record_estimate): Change nb_iterations_upper_bound and
14022 nb_iterations_estimate semantics.
14023 (max_stmt_executions, max_stmt_executions_int): New function.
14024 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14025 (max_stmt_executions_tree): this.
14026 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14027 estimated_loop_iterations_tree.
14028 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14029 max_stmt_executions_int instead of estimated_loop_iterations_int.
14030 * predict.c (predict_loops): Idem.
14031 * tree-parloops.c (parallelize_loops): Idem.
14032 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14033 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14034 (init_omega_for_ddr_1): Idem.
14035 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14036 (loop_prefetch_arrays): Idem
14037 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14038 max_stmt_executions instead of estimated_loop_iterations.
14039 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14040 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14041 instead of nb_iterations_upper_bound.
14042
14043 2011-06-13 Jan Hubicka <jh@suse.cz>
14044
14045 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14046
14047 2011-06-14 Richard Henderson <rth@redhat.com>
14048
14049 PR debug/48459
14050 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14051 (based_loc_descr): Assert it's true.
14052 (compute_frame_pointer_to_fb_displacement): Set it, rather than
14053 aborting immediately.
14054
14055 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
14056 Mingfeng Wu <mingfeng@faraday-tech.com>
14057
14058 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14059
14060 2011-06-13 Jan Hubicka <jh@suse.cz>
14061
14062 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14063
14064 2011-06-13 Jan Hubicka <jh@suse.cz>
14065
14066 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14067 similarly to DECL_COMDAT.
14068 * cgraphunit.c (cgraph_analyze_function): Likewise.
14069 * ipa.c (function_and_variable_visibility): Likewise.
14070
14071 2011-06-13 Jan Hubicka <jh@suse.cz>
14072
14073 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14074 BINFO_VIRTUALS when streaming for ltrans unit.
14075
14076 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
14077
14078 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14079 (movdi_internal64): Same.
14080
14081 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
14082
14083 PR target/44618
14084 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14085 a set of similar patterns, where the MATCH_OPERAND for the function
14086 argument is replaced with individual references to hardware registers.
14087 (save_fpregs_<mode>): Ditto
14088 (restore_gpregs_<mode>): Ditto
14089 (return_and_restore_gpregs_<mode>): Ditto
14090 (return_and_restore_fpregs_<mode>): Ditto
14091 (return_and_restore_fpregs_aix_<mode>): Ditto
14092
14093 2011-06-13 Jan Hubicka <jh@suse.cz>
14094
14095 * ipa-utils.c (postorder_stack): New structure.
14096 (ipa_reverse_postorder): Handle aliases.
14097
14098 2011-06-13 Jan Hubicka <jh@suse.cz>
14099
14100 * ipa-inline.c (reset_edge_caches): Walk aliases.
14101 (update_caller_keys): Do not test inlinability of aliases.
14102 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14103 (do_estimate_growth): Fix typo.
14104
14105 2011-06-13 Jan Hubicka <jh@suse.cz>
14106
14107 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14108 (can_remove_node_now_p): ... here; handle same comdat groups.
14109 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14110 (inline_call): Update use of can_remove_node_now_p.
14111
14112 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14113
14114 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14115 condition to disallow non-identical memory locations.
14116 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14117 preference to bit manipulation instructions.
14118
14119 2011-06-13 Jan Hubicka <jh@suse.cz>
14120
14121 * cgraph.c (cgraph_for_node_thunks_and_aliases,
14122 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14123 (nonremovable_p): New function.
14124 (cgraph_can_remove_if_no_direct_calls_p): New function.
14125 (used_from_object_file_p): New functoin.
14126 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14127 references from aliases.
14128 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14129 * ipa-inline.c (check_caller_edge): New function.
14130 (want_inline_function_called_once_p): Use it; accept aliases called
14131 once, too.
14132 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14133
14134 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14135
14136 PR target/48454
14137 * config/arm/neon.md (vec_pack_trunc): Set the lengths
14138 correctly for the case with Quad vectors.
14139
14140 2011-06-13 Jakub Jelinek <jakub@redhat.com>
14141 Ira Rosen <ira.rosen@linaro.org>
14142
14143 PR tree-optimization/49352
14144 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14145 all, make sure loop_use_stmt after the loop is a def stmt of a used
14146 SSA_NAME that is the only one defined inside of the loop. Don't
14147 check for COND_EXPR and GIMPLE_BINARY_RHS.
14148 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14149 check_reduction is true.
14150
14151 2011-06-11 Jan Hubicka <jh@suse.cz>
14152
14153 PR middle-end/49373
14154 * ipa.c (cgraph_externally_visible_p): Check resolution info.
14155
14156 2011-06-11 Jan Hubicka <jh@suse.cz>
14157
14158 PR middle-end/48836
14159 * ipa-inline-transform.c: Include tree-pass.h
14160 (inline_transform): Set TODO_update_ssa_only_virtuals.
14161 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14162
14163 2011-06-11 Jan Hubicka <jh@suse.cz>
14164
14165 PR middle-end/49378
14166 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14167 aliases and thunks.
14168
14169 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
14170
14171 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14172 Take number of iterations to peel into account for equally frequent
14173 misalignment values.
14174
14175 2011-06-11 Jan Hubicka <jh@suse.cz>
14176
14177 * lto-streamer-out.c (produce_symtab): Stream out the newly
14178 represented aliases.
14179
14180 2011-06-11 Jan Hubicka <jh@suse.cz>
14181
14182 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14183 varying args.
14184 (ipa_update_after_lto_read): Likewise.
14185 (ipa_write_node_info): Do not sream call_with_var_arguments.
14186 (ipa_read_node_info): Likewise.
14187
14188 2011-06-11 Jan Hubicka <jh@suse.cz>
14189
14190 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14191
14192 2011-06-11 Jan Hubicka <jh@suse.cz>
14193
14194 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14195 (lto_symtab_resolve_can_prevail_p): Likewise.
14196 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14197 * cgraph.c (same_body_aliases_done): New global var.
14198 (cgraph_same_body_alias_1): Rename to ...
14199 (cgraph_create_function_alias): ... this one; reorg to new
14200 representation.
14201 (cgraph_same_body_alias): Use cgraph_create_function_alias;
14202 record references when asked to.
14203 (cgraph_add_thunk): Fix formating.
14204 (cgraph_get_node): Kill same body alias code.
14205 (cgraph_node_for_asm): Likewise.
14206 (cgraph_remove_same_body_alias): Remove.
14207 (cgraph_remove_node): Kill same body alias code.
14208 (cgraph_mark_address_taken_node): Mark also the aliased function
14209 as having address taken.
14210 (dump_cgraph_node): Dump same body aliases.
14211 (cgraph_for_node_thunks_and_aliases): Update for new alias
14212 representation.
14213 (cgraph_for_node_and_aliases): Likewise.
14214 * cgraph.h (same_body): Kll pointer.
14215 (same_body_alias): Update comment.
14216 (same_body_aliases_done): Declare.
14217 (cgraph_remove_same_body_alias): Remove declaration.
14218 (cgraph_create_function_alias): Declare.
14219 (cgraph_process_same_body_aliases): Declare.
14220 (cgraph_function_with_gimple_body_p): Check for alias.
14221 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14222 (cgraph_alias_aliased_node): New function.
14223 (cgraph_function_node): Update for new aliases.
14224 (cgraph_function_or_thunk_node): Likewise.
14225 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14226 (inline_call): Remove dead aliases.
14227 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14228 name hack for same body aliases.
14229 (clone_of_p): Look through aliases.
14230 (verify_cgraph_node): Verify aliases.
14231 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14232 (cgraph_process_same_body_aliases): New function.
14233 (process_function_and_variable_attributes): Disable weakref warning on
14234 alias.
14235 (cgraph_analyze_functions): Handle aliases.
14236 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14237 (assemble_thunks): Rename to ...
14238 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14239 (cgraph_expand_function): Remove alias output code.
14240 (cgraph_output_in_order): Skip aliases.
14241 (cgraph_preserve_function_body_p): Aliases don't need preserving.
14242 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14243 (ipa_record_reference): Do not assert on alias references.
14244 (ipa_ref_has_aliases_p): New function.
14245 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14246 (ipa_ref_has_aliases_p): Declare.
14247 * lto-cgraph.c (lto_output_node): Handle aliases.
14248 (input_node): Likewise.
14249 * lto-streamer-out.c (lto_output): Skip aliases.
14250 (produce_symtab): Kill same_body_alias code.
14251 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14252 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14253 * ipa-inline.c (update_caller_keys): Walk aliases.
14254 (inline_small_functions): Fix thinko in previous patch.
14255 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14256 (function_and_variable_visibility): Do not walk same body aliases.
14257 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14258 (ipa_pta_execute): Use it.
14259
14260 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14261
14262 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14263 (*vec_dupv2df): Rename from vec_dupv2df.
14264 (vec_dupv2df): New expander.
14265
14266 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14267
14268 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14269
14270 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14271
14272 * config/i386/i386.md: Use default value in "isa" attribute.
14273 * config/i386/sse.md: Ditto.
14274 * config/i386/mmx.md: Ditto.
14275
14276 2011-06-10 Wei Guozhi <carrot@google.com>
14277
14278 PR target/45335
14279 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14280 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14281 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14282 related peephole2.
14283 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14284 related peephole2.
14285 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14286 (arm_legitimate_ldrd_p): New prototype.
14287 (arm_output_ldrd): New prototype.
14288 * config/arm/arm.c (arm_check_ldrd_operands): New function.
14289 (arm_legitimate_ldrd_p): New function.
14290 (arm_output_ldrd): New function.
14291
14292 2011-06-10 David Li <davidxl@google.com>
14293
14294 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14295 * passes.c (passr_eq): New function.
14296 (create_pass_tab): New function.
14297 (pass_traverse): New function.
14298 (dump_one_pass): New function.
14299 (dump_pass_list): New function.
14300 (dump_passes): New function.
14301
14302 2011-06-10 Jan Hubicka <jh@suse.cz>
14303
14304 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14305 setting the nothrow flag.
14306 * ipa-reference.c (propagate): Skip aliases.
14307 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14308 (propagate_nothrow): Skip aliases; do not update cgraph.
14309 (local_pure_const): Do not update cgraph.
14310 * tree-profile.c (tree_profiling): Do fixup_cfg.
14311
14312 2011-06-10 Jan Hubicka <jh@suse.cz>
14313
14314 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14315 (cgraph_local_node_p): ... here; handle aliases.
14316 (has_addr_references_p): Break out from ...;
14317 (cgraph_remove_unreachable_nodes) ... here.
14318
14319 2011-06-10 Jan Hubicka <jh@suse.cz>
14320
14321 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14322 * common.opt (flag_inline_functions_called_once): Do not
14323 initialize to 1.
14324
14325 2011-06-10 Jan Hubicka <jh@suse.cz>
14326
14327 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14328 (ipcp_initialize_node_lattices): Do not deal with aliases;
14329 Do not try to propagate through thunks.
14330 (ipcp_change_tops_to_bottom): Do not deal with aliases.
14331
14332 2011-06-10 Jan Hubicka <jh@suse.cz>
14333
14334 * ipa-prop.c (ipa_write_node_info): Stream jump functions
14335 for indirect calls.
14336 (ipa_read_node_info): Likewise.
14337
14338 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14339
14340 PR lto/49302
14341 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14342 (build_and_insert_call): Likewise.
14343 (build_and_insert_ref): New.
14344 (gimple_expand_builtin_pow): Minor cleanup.
14345 (gimple_expand_builtin_cabs): New.
14346 (execute_cse_sincos): Add case for BUILT_IN_CABS.
14347
14348 2011-06-10 Jan Hubicka <jh@suse.cz>
14349
14350 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14351 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14352 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14353 (ipcp_propagate_stage): Skip aliases when propagating.
14354 (ipcp_need_redirect_p): Skip aliases.
14355 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14356 collect_callers_of_node.
14357 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14358 for aliases.
14359 (ipa_compute_jump_functions): Look through aliases.
14360
14361 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14362
14363 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14364
14365 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14366
14367 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14368 Adjust comments.
14369 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14370
14371 2011-06-10 Jan Hubicka <jh@suse.cz>
14372
14373 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14374 Update call of gimple_get_virt_method_for_binfo.
14375 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14376 refuse_thunks parameter.
14377 (gimple_fold_call): Update.
14378 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14379
14380 2011-06-10 Jan Hubicka <jh@suse.cz>
14381
14382 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14383 (not_all_callers_have_enough_arguments_p): ... this one; turn into
14384 worker for cgraph_for_node_and_aliases.
14385 (convert_callers_for_node): Break out from ...
14386 (convert_callers): ... here.
14387 (modify_function): Use collect_callers_of_node.
14388 (ipa_early_sra): Use cgraph_for_node_and_aliases.
14389
14390 2011-06-10 Richard Guenther <rguenther@suse.de>
14391
14392 PR tree-optimization/49361
14393 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14394 when not already in gimple form.
14395
14396 2011-06-10 Richard Guenther <rguenther@suse.de>
14397
14398 PR bootstrap/49344
14399 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14400 FOR_EACH_PHI_OR_STMT_USE.
14401
14402 2011-06-10 Jan Hubicka <jh@suse.cz>
14403
14404 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14405 (clone_inlined_nodes): ... here.
14406 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14407 to real destination prior inlining.
14408 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14409 can_early_inline_edge_p, want_early_inline_function_p,
14410 want_early_inline_function_p, want_inline_small_function_p,
14411 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14412 edge_badness, update_all_callee_keys, lookup_recursive_calls,
14413 add_new_edges_to_heap, inline_small_functions, flatten_function,
14414 inline_always_inline_functions, early_inline_small_functions): Use
14415 cgraph_function_or_thunk_node.
14416 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14417 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14418 (do_estimate_edge_growth_1): Break out from ...
14419 (do_estimate_growth) ... here; walk aliases.
14420 (inline_generate_summary): Skip aliases.
14421
14422 2011-06-10 Richard Guenther <rguenther@suse.de>
14423
14424 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14425 forward when combining, visit inserted stmts when a stmt was changed.
14426
14427 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
14428
14429 * tree.h (error_operand_p): Add.
14430 * dbxout.c (dbxout_type_fields): Use the latter.
14431 * c-decl.c (add_stmt): Likewise.
14432 * gimplify.c (omp_add_variable, omp_notice_variable,
14433 gimplify_scan_omp_clauses): Likewise.
14434
14435 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
14436
14437 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14438 when a value is actually passed in regs.
14439
14440 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
14441 Laurent Rougé <laurent.rouge@menta.fr>
14442
14443 * doc/invoke.texi (SPARC options): Add -mflat.
14444 * config/sparc/sparc.opt: Likewise.
14445 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
14446 (sparc_flat_expand_prologue): Declare.
14447 (sparc_flat_expand_epilogue): Likewise.
14448 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
14449 (CPP_ENDIAN_SPEC): Replace with...
14450 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
14451 (CPP_SPEC): Adjust to above change.
14452 (EXTRA_SPECS): Likewise.
14453 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14454 (INCOMING_REGNO): Likewise.
14455 (OUTGOING_REGNO): Likewise.
14456 (LOCAL_REGNO): Likewise.
14457 (SETUP_FRAME_ADDRESSES): Likewise.
14458 (FIXED_REGISTERS): Set 0 for %fp.
14459 (CALL_USED_REGISTERS): Likewise.
14460 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14461 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14462 (RETURN_ADDR_REGNUM): Define.
14463 (RETURN_ADDR_RTX): Use it.
14464 (INCOMING_RETURN_ADDR_REGNUM): Define.
14465 (INCOMING_RETURN_ADDR_RTX): Use it.
14466 (DWARF_FRAME_RETURN_COLUMN): Likewise.
14467 (EH_RETURN_REGNUM): Define.
14468 (EH_RETURN_STACKADJ_RTX): Use it.
14469 (EH_RETURN_HANDLER_RTX): Delete.
14470 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14471 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14472 Delete.
14473 (struct machine_function): Add frame_size, apparent_frame_size,
14474 frame_base_reg, frame_base_offset, n_global_fp_regs and
14475 save_local_in_regs_p fields.
14476 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14477 sparc_frame_base_offset, sparc_n_global_fp_regs,
14478 sparc_save_local_in_regs_p): New macros.
14479 (sparc_option_override): Error out if -fcall-saved-REG is specified
14480 for Out registers.
14481 (eligible_for_restore_insn): Fix formatting.
14482 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
14483 (eligible_for_sibcall_delay): Likewise.
14484 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14485 (sparc_legitimate_address_p): Adjust to above change.
14486 (save_global_or_fp_reg_p): New predicate.
14487 (return_addr_reg_needed_p): Likewise.
14488 (save_local_or_in_reg_p): Likewise.
14489 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
14490 (SORR_SAVE, SORR_RESTORE): Delete.
14491 (sorr_pred_t): New typedef.
14492 (sorr_act_t): New enum.
14493 (save_or_restore_regs): Rename to...
14494 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
14495 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14496 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
14497 mechanism. Add CFI information for double-word saves in 32-bit mode.
14498 (emit_adjust_base_to_offset): New function extracted from...
14499 (emit_save_or_restore_regs): ...this. Rename the rest to...
14500 (emit_save_or_restore_regs_global_fp_regs): ...this.
14501 (emit_save_or_restore_regs_local_in_regs): New function.
14502 (gen_create_flat_frame_[123]): New functions.
14503 (sparc_expand_prologue): Use SIZE local variable. Adjust.
14504 (sparc_flat_expand_prologue): New function.
14505 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14506 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
14507 (sparc_flat_expand_epilogue): New function.
14508 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14509 (output_return): Likewise.
14510 (output_sibcall): Likewise.
14511 (sparc_output_mi_thunk): Likewise.
14512 (sparc_frame_pointer_required): Likewise.
14513 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14514 function optimization.
14515 * config/sparc/sparc.md (flat): New attribute.
14516 (prologue): Add TARGET_FLAT handling.
14517 (save_register_window): Disable if TARGET_FLAT.
14518 (create_flat_frame_[123]): New patterns.
14519 (epilogue): Add TARGET_FLAT handling.
14520 (sibcall_epilogue): Likewise.
14521 (eh_return): New expander.
14522 (eh_return_internal): New insn and splitter.
14523 (return_internal): Add TARGET_FLAT handling.
14524 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14525 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14526 (nonlocal_goto): Add TARGET_FLAT handling.
14527 * config/sparc/t-elf: Add -mflat multilib.
14528 * config/sparc/t-leon: Likewise.
14529
14530 2011-06-10 Jan Hubicka <jh@suse.cz>
14531
14532 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14533 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14534 (self_recursive_p): Use cgraph_function_node.
14535 (propagate_pure_const): Likewise.
14536 (propagate_nothrow): Likewise.
14537 * ipa-reference.c (ipa_reference_get_not_read_global): Use
14538 cgraph_function_node.
14539 (propagate_bits): Likewise.
14540 (propagate): Likewise.
14541
14542 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14543 Richard Earnshaw <rearnsha@arm.com>
14544
14545 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14546 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14547 (*thumb2_movdi_vfp): Delete.
14548 (*arm_movdi_vfp_cortexa8): Delete.
14549 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14550 (*movdi_vfp_cortexa8): Likewise.
14551
14552 2011-06-10 Richard Guenther <rguenther@suse.de>
14553
14554 * stor-layout.c (initialize_sizetypes): Give names to all
14555 sizetype kinds.
14556
14557 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
14558
14559 PR tree-optimization/49318
14560 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14561 irrelevant pattern statements.
14562
14563 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14564
14565 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14566
14567 PR bootstrap/49354
14568 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14569 to last assignment.
14570
14571 2011-06-09 Jan Hubicka <jh@suse.cz>
14572
14573 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14574 do not recompute reachable flag.
14575 (cgraph_finalize_function, cgraph_analyze_functions): Set
14576 redefined_extern_inline here.
14577
14578 2011-06-09 Jan Hubicka <jh@suse.cz>
14579
14580 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14581 (cgraph_only_called_directly_p): ... this one; bring offline.
14582 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14583 varpool_used_from_object_file_p): Drop names from the declaratoin.
14584 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14585 collect_callers_of_node): New.
14586 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14587 (cgraph_edge_recursive_p): Use cgraph_function_node.
14588 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14589 (cgraph_node_cannot_be_local_p_1): Break out from ...
14590 (cgraph_node_can_be_local_p): ... here; walk aliases.
14591 (cgraph_for_node_thunks_and_aliases): New function.
14592 (cgraph_for_node_and_aliases): New function.
14593 (cgraph_make_node_local_1): Break out from ...
14594 (cgraph_make_node_local) ... here; use
14595 cgraph_for_node_thunks_and_aliases.
14596 (cgraph_set_nothrow_flag_1): Break out from ...
14597 (cgraph_set_nothrow_flag) ... here;
14598 use cgraph_for_node_thunks_and_aliases.
14599 (cgraph_set_const_flag_1): Break out from ...
14600 (cgraph_set_const_flag) ... here;
14601 use cgraph_for_node_thunks_and_aliases.
14602 (cgraph_set_pure_flag_1): Break out from ...
14603 (cgraph_set_pure_flag) ... here;
14604 use cgraph_for_node_thunks_and_aliases.
14605 (cgraph_propagate_frequency_1): Break out from ...
14606 (cgraph_propagate_frequency) ... here; use
14607 cgraph_for_node_thunks_and_aliases.
14608 (cgraph_used_from_object_file_p): Do not care about aliases.
14609 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14610 New functions.
14611 (collect_callers_of_node_1, collect_callers_of_node): New functions.
14612
14613 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14614
14615 PR rtl-optimization/49154
14616 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14617 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14618 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14619 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14620 * config/cris/cris.h (cris_register_move_cost): Remove
14621 !TARGET_V32 code. Tweak comments.
14622
14623 2011-06-09 Jan Hubicka <jh@suse.cz>
14624
14625 * cgraphbuild.c (record_eh_tables): Mark personality function as having
14626 address taken.
14627
14628 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14629
14630 PR rtl-optimization/49154
14631 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
14632 is a matching slot in the hashtable, assign it to classes_ptr.
14633
14634 PR rtl-optimization/49154
14635 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
14636 register classes.
14637 * doc/tm.texi: Regenerate.
14638
14639 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
14640
14641 PR target/49307
14642 * config/sh/sh.md (UNSPEC_CHKADD): New.
14643 (chk_guard_add): New define_insn_and_split.
14644 (symGOT_load): Use chk_guard_add instead of blockage.
14645
14646 2011-06-09 Kai Tietz <ktietz@redhat.com>
14647
14648 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
14649
14650 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
14651
14652 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
14653
14654 2011-06-09 Wei Guozhi <carrot@google.com>
14655
14656 PR target/46975
14657 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
14658 (peephole2 for conditional move): Generate 16 bit instructions.
14659
14660 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
14661
14662 * config/i386/i386.md (*movdi_internal_rex64): Merge
14663 alternatives 6 and 8.
14664
14665 2011-06-09 David Li <davidxl@google.com>
14666
14667 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14668 * passes.c (passr_eq): New function.
14669 (create_pass_tab): New function.
14670 (pass_traverse): New function.
14671 (dump_one_pass): New function.
14672 (dump_pass_list): New function.
14673 (dump_passes): New function.
14674
14675 2011-06-09 David Li <davidxl@google.com>
14676
14677 * tree-complex.c (tree_lower_complex): Gate cleanup.
14678 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
14679 (execute_optimize_stdarg): Ditto.
14680 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
14681 (execute_cleanup_eh_1): Ditto.
14682 (execute_cleanup_eh): Ditto.
14683 * gcse.c (gate_rtl_pre): Ditto.
14684 (execute_rtl_pre): Ditto.
14685 * except.c (finish_eh_generation): Ditto.
14686 (convert_to_eh_region_ranges): Ditto.
14687 * cprop.c (one_cprop_pass): Ditto.
14688
14689 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
14690
14691 PR target/48673
14692 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
14693 in all basic blocks.
14694
14695 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14696
14697 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
14698 (HAVE_ENABLE_EXECUTE_STACK): Define.
14699 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
14700 (HAVE_ENABLE_EXECUTE_STACK): Define.
14701 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
14702 (HAVE_ENABLE_EXECUTE_STACK): Define.
14703 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
14704 (ENABLE_EXECUTE_STACK): Remove.
14705 (HAVE_ENABLE_EXECUTE_STACK): Define.
14706 [IN_LIBGCC2]: Don't include <windows.h>.
14707 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14708 (HAVE_ENABLE_EXECUTE_STACK): Define.
14709 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
14710 (HAVE_ENABLE_EXECUTE_STACK): Define.
14711 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
14712 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
14713 (HAVE_ENABLE_EXECUTE_STACK): Define.
14714 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
14715 (HAVE_ENABLE_EXECUTE_STACK): Define.
14716 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
14717 (HAVE_ENABLE_EXECUTE_STACK): Define.
14718 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14719 (HAVE_ENABLE_EXECUTE_STACK): Define.
14720 * config/alpha/alpha.c (alpha_trampoline_init): Test
14721 HAVE_ENABLE_EXECUTE_STACK.
14722 * config/i386/i386.c (ix86_trampoline_init): Likewise.
14723 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14724 (sparc64_initialize_trampoline): Likewise.
14725 * libgcc2.c [L_enable_execute_stack]: Remove.
14726 * system.h (ENABLE_EXECUTE_STACK): Poison.
14727 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
14728 * doc/tm.texi: Regenerate.
14729 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
14730
14731 2011-06-09 Jakub Jelinek <jakub@redhat.com>
14732
14733 PR middle-end/49308
14734 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
14735 variable. After resetting and rescanning insn continue with previous
14736 statement.
14737
14738 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14739
14740 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
14741 (gcc_cv_ld_hidden): Likewise.
14742 * configure: Regenerate.
14743 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
14744 (ix86_stack_protect_fail): Mark unused.
14745 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
14746 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
14747 [TARGET_MACHO]: Don't define.
14748 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
14749 (TARGET_STACK_PROTECT_FAIL): Likewise.
14750 (rs6000_stack_protect_fail): Mark unused.
14751 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
14752 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
14753
14754 2011-06-08 Andi Kleen <ak@linux.intel.com>
14755
14756 * varasm.c (get_section): Print location of other conflict
14757 for section conflicts.
14758
14759 2011-06-08 Andi Kleen <ak@linux.intel.com>
14760
14761 * config/i386/driver-i386.c (host_detect_local_cpu):
14762 Add model 0x2d Intel CPU.
14763
14764 2011-06-08 Andi Kleen <ak@linux.intel.com>
14765
14766 * reginfo.c (global_regs_decl): Add.
14767 (globalize_reg): Add decl parameter. Compute location. Pass location
14768 to warnings and add inform. Store decl in global_regs_decl.
14769 * rtl.h (globalize_reg): Update prototype.
14770 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
14771
14772 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
14773
14774 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
14775
14776 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14777
14778 PR target/49305
14779 * config/sh/predicates.md (general_movsrc_operand): Check
14780 mode for memory with indexed address for QI and HImode.
14781 (general_movdst_operand): Likewise.
14782
14783 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
14784
14785 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
14786
14787 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
14788
14789 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
14790 (num_ssa_operands): Likewise.
14791 (op_iter_init_phiuse): Forward-declare.
14792 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
14793
14794 2011-06-08 Nick Clifton <nickc@redhat.com>
14795
14796 * doc/invoke.texi (ARM Options): Update description of
14797 -mthumb-interwork.
14798
14799 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
14800
14801 * config/i386/driver-i386.c (host_detect_local_cpu): Support
14802 unknown Intel family 0x6 CPUs.
14803
14804 2011-06-08 Martin Jambor <mjambor@suse.cz>
14805
14806 * tree-sra.c (mark_rw_status): Removed.
14807 (analyze_access_subtree): New parameter parent instead of
14808 mark_read and mark_write, propagate from that.
14809
14810 2011-06-08 Julian Brown <julian@codesourcery.com>
14811
14812 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
14813 for double-precision helper functions in hard-float mode if only
14814 single-precision arithmetic is supported in hardware.
14815
14816 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
14817
14818 PR rtl-optimization/49303
14819 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
14820 code_motion_path_driver returned 0 or 1.
14821 (sel_region_finish): Clear h_d_i_d.
14822
14823 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14824
14825 * config/sh/sh.c (prepare_move_operands): Set pic register
14826 appropriately for global and local dynamic tls models even
14827 if flag_pic is unset.
14828
14829 2011-06-07 Jason Merrill <jason@redhat.com>
14830
14831 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
14832
14833 2011-06-07 Xinliang David Li <davidxl@google.com>
14834 * passes.c (enable_disable_pass): Handle assembler name.
14835 (is_pass_explicitly_enabled_or_disabled): Ditto.
14836
14837 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14838
14839 PR tree-optimization/48497
14840 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
14841
14842 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14843
14844 PR tree-optimization/46728
14845 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
14846 to use gimple_val_nonnegative_real_p.
14847 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
14848 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
14849
14850 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
14851
14852 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
14853
14854 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
14855
14856 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
14857 constant vectors.
14858
14859 2011-06-07 Richard Guenther <rguenther@suse.de>
14860
14861 * stor-layout.c (initialize_sizetypes): Initialize all
14862 sizetypes based on target definitions.
14863 (set_sizetype): Remove.
14864 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
14865 * tree.h (set_sizetype): Remove.
14866
14867 2011-06-07 Nick Clifton <nickc@redhat.com>
14868
14869 * config.gcc: Unify V850 architecture options and add support for
14870 newer V850 architectures.
14871 * config/v850/t-v850e: Delete.
14872
14873 2011-06-07 Richard Guenther <rguenther@suse.de>
14874
14875 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
14876 Call set_sizetype from here.
14877
14878 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
14879
14880 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
14881 (*maddhisi4tb, *maddhisi4tt): New define_insns.
14882
14883 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
14884 Andrew Stubbs <ams@codesourcery.com>
14885
14886 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
14887 multiplies.
14888 * doc/md.texi (Canonicalization of Instructions): Document widening
14889 multiply canonicalization.
14890
14891 2011-06-07 Jakub Jelinek <jakub@redhat.com>
14892
14893 PR gcov-profile/49299
14894 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
14895
14896 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
14897
14898 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
14899 a pointer.
14900 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
14901 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
14902 vect_recog_pow_pattern): Likewise.
14903 (vect_pattern_recog_1): Remove declaration.
14904 (widened_name_p): Remove declaration. Add new argument to specify
14905 whether to check that both types are either signed or unsigned.
14906 (vect_recog_widen_mult_pattern): Update documentation. Handle
14907 unsigned patterns and multiplication by constants.
14908 (vect_pattern_recog_1): Update vect_recog_func references. Use
14909 statement information from the statement returned from pattern
14910 detection functions.
14911 (vect_pattern_recog): Update vect_recog_func reference.
14912 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
14913 multiplication by a constant use the type of the other operand.
14914
14915 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
14916
14917 PR rtl-optimization/49145
14918 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
14919
14920 2011-06-06 Jakub Jelinek <jakub@redhat.com>
14921
14922 PR debug/49262
14923 * dwarf2out.c (native_encode_initializer): Decrement count in each
14924 iteration.
14925
14926 PR debug/49294
14927 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
14928 non-MODE_INT modes.
14929
14930 PR c++/49264
14931 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
14932 if stmt folded into nothing.
14933 * tree-inline.c (fold_marked_statements): If a builtin at the end of
14934 a bb folded into nothing, just update cgraph edges and move to next bb.
14935 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
14936 to be NULL. Don't compute count and frequency if new_call is NULL.
14937
14938 2011-06-04 Diego Novillo <dnovillo@google.com>
14939
14940 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
14941 (cgraph.o): Likewise.
14942 (cgraphunit.o): Likewise.
14943 * cgraphunit.c: Include lto-streamer.h
14944 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
14945 if LTO is enabled.
14946 * lto-streamer-in.c (unpack_value_fields): Call
14947 streamer_hooks.unpack_value_fields if set.
14948 (lto_materialize_tree): For unhandled nodes, first try to
14949 call lto_streamer_hooks.alloc_tree, if it exists.
14950 (lto_input_ts_decl_common_tree_pointers): Move reading of
14951 DECL_INITIAL to lto_streamer_read_tree.
14952 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
14953 (lto_streamer_read_tree): New.
14954 (lto_reader_init): Rename from lto_init_reader.
14955 Move initialization code to lto/lto.c.
14956 * lto-streamer-out.c (pack_value_fields): Call
14957 streamer_hooks.pack_value_fields if set.
14958 (lto_output_tree_ref): For tree nodes that are not normally indexable,
14959 call streamer_hooks.indexable_with_decls_p before giving up.
14960 (lto_output_ts_decl_common_tree_pointers): Move handling
14961 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
14962 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
14963 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
14964 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
14965 (lto_streamer_write_tree): New.
14966 (lto_output): Call lto_streamer_init directly.
14967 (lto_writer_init): Remove.
14968 * lto-streamer.c (streamer_hooks): New.
14969 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
14970 instead of lto_preload_common_nodes.
14971 (lto_is_streamable): Move from lto-streamer.h
14972 (lto_streamer_hooks_init): New.
14973 (streamer_hooks): New.
14974 (streamer_hooks_init): New.
14975 * lto-streamer.h (struct output_block): Forward declare.
14976 (struct lto_input_block): Likewise.
14977 (struct data_in): Likewise.
14978 (struct bitpack_d): Likewise.
14979 (struct streamer_hooks): Declare.
14980 (streamer_hooks): Declare.
14981 (lto_streamer_hooks_init): Declare.
14982 (lto_streamer_write_tree): Declare.
14983 (lto_streamer_read_tree): Declare.
14984 (streamer_hooks_init): Declare.
14985 (lto_is_streamable): Move to lto-streamer.c
14986
14987 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14988
14989 * longlong.h (smul_ppmm): The resulting register pair contains the
14990 higher order word first.
14991
14992 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14993
14994 PR tree-optimization/46728
14995 * builtins.c (powi_table): Remove.
14996 (powi_lookup_cost): Remove.
14997 (powi_cost): Remove.
14998 (expand_powi_1): Remove.
14999 (expand_powi): Remove.
15000 (expand_builtin_pow_root): Remove.
15001 (expand_builtin_pow): Remove.
15002 (expand_builtin_powi): Eliminate handling of constant exponent.
15003 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15004
15005 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15006
15007 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15008
15009 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15010
15011 * dce.c (reset_unmarked_insns_debug_uses): New.
15012 (delete_unmarked_insns): Skip debug insns.
15013 (prescan_insns_for_dce): Likewise.
15014 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15015 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15016 active reg can be found.
15017 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
15018 (convert_regs_1): Use it.
15019
15020 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15021
15022 * tree-pretty-print.c (dump_function_header): Add flags.
15023 Don't dump decl_uid with nouid.
15024 * tree-pretty-print.h (dump_function_header): Adjust.
15025 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15026 * passes.c (pass_init_dump_file): Pass dump_flags on.
15027 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15028
15029 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15030
15031 PR bootstrap/49270
15032 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15033
15034 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
15035
15036 PR tree-optimization/49243
15037 * calls.c (setjmp_call_p): Also check if fndecl has the
15038 returns_twice attribute.
15039
15040 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15041
15042 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15043 -ffast-math etc.
15044
15045 2011-06-06 Richard Henderson <rth@redhat.com>
15046 Georg-Johann Lay <avr@gjlay.de>
15047
15048 PR target/42210
15049 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15050 New predicates.
15051 * config/avr/avr.md ("insv"): New insn expander.
15052 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15053 "*insv.not.io", "*insv.reg"): New insns.
15054
15055 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
15056
15057 PR target/49285
15058 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15059 to nonimmediate_operand from memory_operand for the operand that is to
15060 be forced to memory by the expander. Lose the constraints.
15061
15062 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
15063
15064 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15065 EH return when delayed branches are disabled.
15066
15067 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
15068
15069 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15070 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
15071 calculation.
15072 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15073 Simplify MODE_V1DF and MODE_V2SF handling.
15074 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15075 Simplify MODE_SF handling.
15076
15077 2011-06-04 Jan Hubicka <jh@suse.cz>
15078
15079 PR tree-optimization/48893
15080 PR tree-optimization/49091
15081 PR tree-optimization/49179
15082 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15083 Bounds check.
15084
15085 2011-06-04 Jan Hubicka <jh@suse.cz>
15086
15087 PR lto/48954
15088 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15089 bitmaps.
15090
15091 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
15092
15093 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15094
15095 2011-06-04 Jakub Jelinek <jakub@redhat.com>
15096
15097 PR target/49281
15098 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15099 to be strictly smaller than 1 << shiftcount.
15100
15101 2011-06-04 Jan Hubicka <jh@suse.cz>
15102
15103 PR tree-optimize/48929
15104 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15105 of empty predicate.
15106
15107 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
15108
15109 PR debug/48333
15110 * calls.c (emit_call_1): Prefer the __builtin declaration of
15111 builtin functions.
15112
15113 2011-06-03 Diego Novillo <dnovillo@google.com>
15114
15115 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15116 (lto_input_tree_pointers): Likewise.
15117 * lto-streamer-out.c (pack_value_fields): Likewise.
15118 (lto_output_tree_pointers): Likewise.
15119 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15120 and OPTIMIZATION_NODE.
15121
15122 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15123
15124 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15125 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15126 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15127 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15128 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15129 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15130 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15131 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15132 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15133 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15134 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15135 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15136 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15137 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15138 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15139 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15140 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15141 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15142 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15143 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15144 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15145 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15146 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15147 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15148 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15149 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15150 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15151 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15152 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15153 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15154 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15155 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15156 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15157 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15158 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15159 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15160 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15161 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15162 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15163 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15164 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15165 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15166 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15167 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15168 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15169 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15170 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15171 * system.h (MD_UNWIND_SUPPORT): Poison.
15172 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15173 * doc/tm.texi: Regenerate.
15174 * unwind-dw2.c: Include md-unwind-support.h instead of
15175 MD_UNWIND_SUPPORT.
15176 * config/ia64/unwind-ia64.c: Likewise.
15177 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15178
15179 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
15180
15181 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15182
15183 2011-06-03 Richard Henderson <rth@redhat.com>
15184 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15185
15186 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15187 (sigill_hdlr): Correct insn, insn size.
15188 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15189
15190 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15191
15192 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15193 t-slibgcc-dummy.
15194 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15195 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15196 * config/mips/t-iris: Remove.
15197 * config/mips/t-irix6: New file.
15198 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15199
15200 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15201
15202 * Makefile.in (LIB2ADDEHDEP): Remove.
15203 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15204 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15205 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15206 * config/t-darwin (LIB2ADDEHDEP): Remove.
15207 * config/t-freebsd (LIB2ADDEHDEP): Remove.
15208 * config/t-linux (LIB2ADDEHDEP): Remove.
15209
15210 2011-06-03 Diego Novillo <dnovillo@google.com>
15211
15212 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15213 (lto_register_var_decl_in_symtab): Likewise.
15214 (lto_register_function_decl_in_symtab): Likewise.
15215 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15216 logic to uniquify_nodes.
15217
15218 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15219
15220 * config/alpha/t-osf5: Remove.
15221 * config/alpha/t-osf-pthread: Remove.
15222 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15223 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15224
15225 2011-06-03 Julian Brown <julian@codesourcery.com>
15226
15227 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15228 (strongarm1110): Use strongarm tuning.
15229 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15230 * config/arm/arm.c (arm_strongarm_tune): New.
15231 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15232 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15233 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15234 setting, using previous defaults or 1 for Cortex-A5.
15235 (arm_option_override): Set max_insns_skipped from current tuning.
15236
15237 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
15238
15239 * doc/install.texi (Options specification): Document --with-specs.
15240
15241 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15242
15243 * config/arm/neon.md (orndi3_neon): Actually split it.
15244
15245 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15246
15247 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15248 * var-tracking.c (reverse_op): Limite recurse depth to 5.
15249
15250 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15251
15252 PR debug/47590
15253 * target.def (delay_sched2, delay_vartrack): New.
15254 * doc/tm.texi.in: Update.
15255 * doc/tm.texi: Rebuild.
15256 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15257 * var-tracking.c (gate_handle_var_tracking): Likewise.
15258 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15259 (bfin_flag_var_tracking): Drop.
15260 (output_file_start): Don't save and override flag_var_tracking.
15261 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15262 (bfin_reorg): Test original variables.
15263 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15264 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15265 (ia64_flag_var_tracking): Drop.
15266 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15267 (ia64_file_start): Don't save and override flag_var_tracking.
15268 (ia64_override_options_after_change): Ditto
15269 flag_schedule_insns_after_reload.
15270 (ia64_reorg): Test original variables.
15271 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15272 (picochip_flag_var_tracking): Drop.
15273 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15274 (picochip_option_override): Don't save and override
15275 flag_schedule_insns_after_reload.
15276 (picochip_asm_file_start): Ditto flag_var_tracking.
15277 (picochip_reorg): Test original variables.
15278 * config/spu/spu.c (spu_flag_var_tracking): Drop.
15279 (TARGET_DELAY_VARTRACK): Define.
15280 (spu_var_tracking): New.
15281 (spu_machine_dependent_reorg): Call it.
15282 (asm_file_start): Don't save and override flag_var_tracking.
15283
15284 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
15285
15286 PR target/49163
15287 * config/sh/predicates.md (general_movsrc_operand): Return 0
15288 for memory and memory subreg of which address is an invalid
15289 indexed address for QI and HImode.
15290 (general_movdst_operand): Likewise.
15291
15292 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15293
15294 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15295 edges only, when there is a non-local label in the function.
15296 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15297
15298 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15299
15300 * config/i386/constraints.md (Y3): New register constraint.
15301 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15302 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15303 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15304 *sse2_interleave_lowv2df.
15305
15306 2011-06-02 Julian Brown <julian@codesourcery.com>
15307
15308 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15309 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15310 (arm_cortex_a5_tune): New.
15311
15312 2011-06-02 Julian Brown <julian@codesourcery.com>
15313
15314 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15315 * config/arm/arm.c (arm_default_branch_cost): New.
15316 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15317 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15318 (arm_fa726_tune): Set branch_cost field using
15319 arm_default_branch_cost.
15320 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15321 current_tune structure.
15322 * dojump.c (tm_p.h): Include file.
15323
15324 2011-06-02 Julian Brown <julian@codesourcery.com>
15325
15326 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15327 tuning.
15328 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15329 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15330 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15331 field.
15332 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15333 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15334 (arm_fa726te_tune): Add prefer_constant_pool setting.
15335 (arm_v6t2_tune, arm_cortex_tune): New.
15336 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15337 prefer_constant_pool setting.
15338
15339 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15340
15341 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15342 switch statement.
15343 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15344 (*movdf_internal) <case 6,7,8>: Ditto.
15345
15346 * config/i386/constraints.md (Y4): New register constraint.
15347 * config/i386/sse.md (vec_set<mode>_0): Merge with
15348 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15349 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15350 *vec_extractv2di_1_sse.
15351 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15352 and *vec_concatv2di_rex64_sse.
15353
15354 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
15355
15356 PR target/48807
15357 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15358 of cgraph_local_info for null before attempting to use it.
15359
15360 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15361
15362 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15363 (current_function_dynamic_alloc_count): Delete.
15364 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15365 (expand_builtin_nonlocal_goto): Remove obsolete comment.
15366 (expand_builtin_update_setjmp_buf): Remove dead code.
15367 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15368 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15369 support.
15370 * function.c (instantiate_virtual_regs): Likewise.
15371 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15372 for a block with a single abnormal incoming edge.
15373 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15374 (SETJMP_VIA_SAVE_AREA): Delete.
15375 * config/sparc/sparc-protos.h (load_got_register): Declare.
15376 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15377 (load_got_register): Make global.
15378 (sparc_frame_pointer_required): Add 'static'.
15379 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
15380 (sparc_builtin_setjmp_frame_value): New function.
15381 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15382 (save_stack_nonlocal): New expander.
15383 (restore_stack_nonlocal): Likewise.
15384 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15385 (nonlocal_goto_internal): New insn.
15386 (goto_handler_and_restore): Delete.
15387 (builtin_setjmp_setup): Likewise.
15388 (do_builtin_setjmp_setup): Likewise.
15389 (setjmp): Likewise.
15390 (builtin_setjmp_receiver): New expander.
15391
15392 2011-06-01 David Li <davidxl@google.com>
15393
15394 PR middle-end/49261
15395 * tree-pretty-print.c (dump_function_header): Format cleanup.
15396
15397 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
15398
15399 PR target/49238
15400 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15401 needed when original operands are used for msw_skip comparison.
15402
15403 2011-06-01 Jakub Jelinek <jakub@redhat.com>
15404
15405 PR debug/49250
15406 * var-tracking.c (add_uses, add_stores): Don't call
15407 cselib_subst_to_values on ENTRY_VALUE.
15408
15409 2011-06-01 Diego Novillo <dnovillo@google.com>
15410
15411 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15412 output_record_start with LTO_null instead of output_zero.
15413 (lto_output_ts_binfo_tree_pointers): Likewise.
15414 (lto_output_tree): Likewise.
15415 (output_eh_try_list): Likewise.
15416 (output_eh_region): Likewise.
15417 (output_eh_lp): Likewise.
15418 (output_eh_regions): Likewise.
15419 (output_bb): Likewise.
15420 (output_function): Likewise.
15421 (output_unreferenced_globals): Likewise.
15422 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15423 instead of NUM_TREE_CODES.
15424 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15425 (lto_output_int_in_range): Change << to >> when shifting VAL.
15426
15427 2011-06-01 Diego Novillo <dnovillo@google.com>
15428
15429 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15430 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15431
15432 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
15433
15434 PR target/45074
15435 * optabs.h (valid_multiword_target_p): Declare.
15436 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15437 doing multi-word operations.
15438 * optabs.c (expand_binop): Likewise.
15439 (expand_doubleword_bswap): Likewise.
15440 (expand_absneg_bit): Likewise.
15441 (expand_unop): Likewise.
15442 (expand_copysign_bit): Likewise.
15443 (multiword_target_p): New function.
15444
15445 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
15446
15447 PR rtl-optimization/48830
15448 PR rtl-optimization/48808
15449 PR rtl-optimization/48792
15450 * reload.c (push_reload): Check contains_reg_of_mode.
15451 * reload1.c (strip_paradoxical_subreg): New function.
15452 (gen_reload_chain_without_interm_reg_p): Use it to handle
15453 paradoxical subregs.
15454 (emit_output_reload_insns, gen_reload): Likewise.
15455
15456 2011-06-01 David Li <davidxl@google.com>
15457
15458 * predict.c : Change pass name
15459 * ipa.c: Ditto.
15460 * dce.c: Ditto.
15461 * tree-profile.c: Ditto.
15462 * except.c: Ditto.
15463
15464 2011-06-01 David Li <davidxl@google.com>
15465
15466 * tree-pretty-print.c (dump_function_header): New function.
15467 * final.c (rest_of_clean_state): Use header dumper.
15468 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15469 * passes.c (pass_init_dump_file): Use header dumper.
15470
15471 2011-06-01 Jakub Jelinek <jakub@redhat.com>
15472
15473 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15474 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15475 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15476 New functions.
15477 (mem_loc_descriptor): Use them.
15478
15479 * var-tracking.c (create_entry_value): New function.
15480 (vt_add_function_parameter): Use it.
15481
15482 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15483
15484 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15485 Include <signal.h>, <ucontext.h>.
15486 (sigill_caught): Define.
15487 (sigill_hdlr): New function.
15488 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15489 insns can be executed.
15490 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15491 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15492
15493 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15494
15495 * config/t-slibgcc-darwin: Move to ...
15496 * config/t-slibgcc-dummy: ... this. Clarify comments.
15497 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15498 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15499 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15500 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
15501 Remove i386/t-crtstuff from tmake_file.
15502 (i[34567]86-*-solaris2*): Remove t-svr4,
15503 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15504 t-slibgcc-dummy.
15505 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15506 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15507 sparc/t-crtfm from tmake_file.
15508 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15509 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15510 Remove extra_parts.
15511 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15512 * config/i386/t-nwld (SHLIB_LINK): Remove.
15513 * config/i386/t-rtems-i386: Rename to ...
15514 * config/i386/t-rtems: ... this.
15515 ($(T)crti.o, $(T)crtn.o): Remove.
15516 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15517 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15518 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15519 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15520 EXTRA_MULTILIB_PARTS): Remove.
15521 * config/sparc/t-sol2-64: Likewise.
15522 * config/sparc/t-sol2: Remove.
15523 * config/sparc/t-crtin: Remove.
15524 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15525 * config/i386/gmon-sol2.c: Remove.
15526 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15527 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15528 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15529 * config/i386/sol2-gc1.asm: Remove.
15530 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15531 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15532 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15533 * config/t-slibgcc-sld: Remove.
15534
15535 2011-06-01 Jakub Jelinek <jakub@redhat.com>
15536
15537 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15538 base_type_for_mode with op_mode instead of mode.
15539
15540 2011-06-01 Paul Brook <paul@cpodesourcery.com>
15541
15542 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
15543 Cortex-A15.
15544 * config/arm/arm-tune.md: Regenerate.
15545 * config/arm/arm-tables.opt: Regenerate.
15546 * config/arm/arm.c (FL_DIV): Rename...
15547 (FL_THUMB_DIV): ... to this.
15548 (FL_ARM_DIV): Define.
15549 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15550 (arm_arch_hwdiv): Remove.
15551 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15552 (arm_issue_rate): Add cortexr5.
15553 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15554 __ARM_ARCH_EXT_IDIV__.
15555 (TARGET_IDIV): Define.
15556 (arm_arch_hwdiv): Remove.
15557 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15558 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15559 (divsi3, udivsi3): New patterns.
15560 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15561 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15562
15563 2011-06-01 Martin Jambor <mjambor@suse.cz>
15564
15565 * ipa-utils.c (ipa_dfs_info): New field scc_no.
15566 * ipa-utils.c (searchc): Set scc_no.
15567
15568 2011-06-01 Martin Jambor <mjambor@suse.cz>
15569
15570 * ipa-utils.c (searchc_env): New field allow_overwritable.
15571 (searchc): do not ignore edges to overwritable nodes if indicated
15572 by env->allow_overwritable.
15573 (ipa_reduced_postorder): Set env.allow_overwritable.
15574
15575 2011-06-01 Richard Guenther <rguenther@suse.de>
15576
15577 * tree.c (free_lang_data): Do not reset boolean_type_node nor
15578 char_type_node.
15579 * lto-streamer.c (lto_record_common_node): Take node pointer,
15580 do not register types.
15581 (lto_preload_common_nodes): Explicitly skip preloading nodes
15582 that differ between frontends.
15583
15584 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
15585
15586 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15587 NON_FLOAT_REGS.
15588
15589 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
15590
15591 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15592 parameter value for dump. Dump cost on outermost call only.
15593 (rs6000_memory_move_cost): Dump cost on outermost call only.
15594
15595 2011-05-31 Jakub Jelinek <jakub@redhat.com>
15596
15597 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15598 DW_OP_GNU_convert ops.
15599
15600 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15601 cselib_preserve_constants.
15602 (cselib_lookup_1): If cselib_preserve_constants,
15603 a new VALUE is being created for REG and there is a VALUE for the
15604 same register in wider mode, add another loc with lowpart SUBREG of
15605 the wider VALUE.
15606 (cselib_subst_to_values): Handle ENTRY_VALUE.
15607 * var-tracking.c (replace_expr_with_values): Return NULL for
15608 ENTRY_VALUE too.
15609 * dwarf2out.c (convert_descriptor_to_signed): New function.
15610 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15611 instead of two shifts.
15612 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15613 the right mode if needed.
15614 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15615 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15616 convert_descriptor_to_signed.
15617 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15618 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15619
15620 PR target/48688
15621 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15622
15623 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
15624
15625 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15626 of X87MODEI12 and SWI48x instead of SSEMODEI24.
15627 (SWI248x): New mode iterator, rename from X87MODEI.
15628 (X87MODEI): Remove mode iterator.
15629 (X87MODEI12): Ditto.
15630 (SSEMODEI24): Ditto.
15631
15632 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15633
15634 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
15635 * doc/invoke.texi: Document max-vartrack-expr-depth.
15636 * var-tracking.c (EXPR_DEPTH): New.
15637 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
15638
15639 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15640
15641 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
15642 * config/i386/sse.md: Add n to negated FMA pattern names.
15643
15644 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15645
15646 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
15647
15648 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
15649
15650 * gengtype-state.c (read_state_params_structs): Initialize previous.
15651
15652 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
15653
15654 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
15655 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
15656
15657 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
15658
15659 * config/i386/i386.md (*movtf_internal): Avoid allocating general
15660 registers. Penalize F*r->o alternative to prevent partial memory
15661 stalls. Slightly penalize *roF->*r alternative. Generate SSE
15662 CONST_DOUBLE immediates when optimizing function for size. Do not move
15663 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15664 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
15665 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
15666 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
15667 alternatives.
15668 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
15669
15670 (fp_register_operand splitters): Use fp_register_operand
15671 constraint. Do not use FP_REG_P in insn condition.
15672 (any_fp_register_operand splitters): Use any_fp_register_operand
15673 constraint. Do not use ANY_FP_REG_P in insn condition.
15674
15675 2011-05-31 Jan Hubicka <jh@suse.cz>
15676
15677 * cgraph.h (cgraph_inline_failed_t): Give enum a name
15678 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
15679 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
15680 (lto_output_edge): Use output_enum and var_len_unsigned.
15681 (lto_output_varpool_node): Likewise.
15682 (input_overwrite_node): Do not take resolution parameter;
15683 extract it from a bitpack.
15684 (input_node): Do not read resolution; use input_enum and
15685 var_len_unsigned.
15686 (input_varpool_node): Likewise.
15687 (input_edge): Likewise.
15688 (input_cgraph_1): Likewise.
15689
15690 2011-05-31 Richard Guenther <rguenther@suse.de>
15691
15692 * gimple.c (gimple_register_canonical_type): Do not register
15693 any types via gimple_register_type.
15694
15695 2011-05-31 Jan Hubicka <jh@suse.cz>
15696
15697 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
15698 of thunks.
15699
15700 2011-05-31 Jakub Jelinek <jakub@redhat.com>
15701
15702 PR rtl-optimization/49235
15703 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
15704 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
15705
15706 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
15707
15708 PR tree-optimization/49093
15709 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
15710 data references.
15711
15712 2011-05-31 Dodji Seketeli <dodji@redhat.com>
15713
15714 PR debug/49047
15715 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
15716 for concrete functions containing the code of cloned functions.
15717
15718 2011-05-31 Richard Guenther <rguenther@suse.de>
15719
15720 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
15721 to ...
15722 (forward_propagate_into_comparison_1): ... this.
15723 (forward_propagate_comparison): Rename to ...
15724 (forward_propagate_into_comparison): ... this. Split out
15725 real forward propagation code to ...
15726 (forward_propagate_comparison): ... this.
15727 (forward_propagate_into_gimple_cond): Remove looping.
15728 (forward_propagate_into_cond): Likewise.
15729 (simplify_not_neg_expr): Return whether we have done something.
15730 (simplify_gimple_switch): Likewise.
15731 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
15732 (ssa_forward_propagate_and_combine): ... this. Re-structure
15733 to do a forward forward-propagation walk on BBs and a backward
15734 stmt combining walk on BBs. Consistently re-scan changed statements.
15735 (pass_forwprop): Adjust.
15736
15737 2011-05-30 Ian Lance Taylor <iant@google.com>
15738
15739 * godump.c (go_format_type): Correct length of name added to
15740 obstack for anonymous field.
15741
15742 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
15743
15744 PR target/49186
15745 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
15746 part of the second operand is 0.
15747
15748 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
15749
15750 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
15751 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
15752 to memory for !TARGET_MEMORY_MISMATCH_STALL.
15753 (*movdf_internal_rex64): Do not penalize F->r alternative.
15754 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
15755 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
15756 when optimizing function for size. Do not move CONST_DOUBLEs
15757 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15758 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
15759 SUBREGs. Do not check for MEM_P operands in the insn condition,
15760 check for ANY_FP_REGNO_P instead.
15761 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
15762 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
15763 function for speed.
15764 * config/i386/i386.c (ix86_option_override_internal): Do not
15765 set TARGET_INTEGER_DFMODE_MOVES here.
15766
15767 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
15768
15769 PR target/49168
15770 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
15771
15772 2011-05-30 Jakub Jelinek <jakub@redhat.com>
15773
15774 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
15775 DW_TAG_rvalue_reference_type even for
15776 -gdwarf-4 -fno-debug-types-section.
15777
15778 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15779
15780 PR tree-optimization/46728
15781 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
15782 (build_and_insert_binop): New.
15783 (gimple_expand_builtin_pow): Reorder args for
15784 build_and_insert_call; use build_and_insert_binop; add more
15785 optimizations for fractional exponents.
15786
15787 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
15788
15789 PR bootstrap/49190
15790
15791 Revert:
15792 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
15793
15794 * tree.h (struct tree_identifier): Inherit from tree_typed, not
15795 tree_common.
15796 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15797 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15798 TS_BASE instead of TS_COMMON.
15799 * varasm.c (assemble_name): Remove assert.
15800
15801 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
15802
15803 * config.gcc: Keep obselete list sorted.
15804
15805 2011-05-30 Jakub Jelinek <jakub@redhat.com>
15806 Eric Botcazou <ebotcazou@adacore.com>
15807
15808 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
15809 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
15810 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
15811 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
15812 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
15813
15814 2011-05-30 Richard Guenther <rguenther@suse.de>
15815
15816 * gimple.c (gimple_types_compatible_p_1): Compare record
15817 and union type members properly.
15818
15819 2011-05-30 Richard Guenther <rguenther@suse.de>
15820
15821 PR tree-optimization/49210
15822 * ipa-split.c (split_function): Care for the case where the call
15823 result is not trivially convertible to the result holding variable.
15824
15825 2011-05-30 Richard Guenther <rguenther@suse.de>
15826
15827 PR tree-optimization/49218
15828 * tree-vrp.c (adjust_range_with_scev): Properly check whether
15829 overflow occured.
15830
15831 2011-05-30 Richard Guenther <rguenther@suse.de>
15832
15833 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
15834 New function split out from ...
15835 (forward_propagate_into_gimple_cond): ... here. Adjust.
15836 (forward_propagate_into_cond): Likewise.
15837 (forward_propagate_comparison): Also propagate into
15838 comparisons on assignment RHS. Change return value to
15839 behave similar to forward_propagate_into_cond.
15840 (tree_ssa_forward_propagate_single_use_vars): Handle
15841 strict-overflow warnings properly for forward_propagate_comparison.
15842
15843 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15844
15845 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
15846 from plugin linker.
15847 * configure: Regenerate.
15848
15849 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
15850
15851 PR tree-optimization/49199
15852 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
15853 non-reduction operands are either defined in the loop or by induction.
15854
15855 2011-05-29 Xinliang David Li <davidxl@google.com>
15856
15857 * opts-global.c (handle_common_deferred_options): Handle new options.
15858 * passes.c (register_one_dump_file): Call register_pass_name.
15859 (execute_one_pass): Check explicit enable/disable flag.
15860 (passr_hash): New function.
15861 (passr_eq): Ditto.
15862 (register_pass_name): Ditto.
15863 (get_pass_by_name): Ditto.
15864 (pass_hash): Ditto.
15865 (pass_eq): Ditto.
15866 (enable_pass): Ditto.
15867 (disable_pass): Ditto.
15868 (is_pass_explicitly_enabled_or_disabled): Ditto.
15869
15870 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
15871
15872 * config/i386/i386.md (*movoi_internal_avx): Use
15873 standard_sse_constant_opcode for alternative 0.
15874 (*movti_internal_sse): Ditto.
15875 (*movti_internal_rex64): Use standard_sse_constant_opcode for
15876 alternative 2.
15877 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
15878 sselog1 type moves.
15879 (*movsi_internal): Ditto.
15880 (*movdi_internal): Ditto. Add ssecvt type moves.
15881
15882 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
15883
15884 PR target/48830
15885 * rtlanal.c (simplify_subreg_regno): Adjust comment.
15886
15887 2011-05-29 Jakub Jelinek <jakub@redhat.com>
15888
15889 PR rtl-optimization/49095
15890 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
15891 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
15892
15893 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
15894
15895 PR target/43995
15896 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
15897 recurse_p argument. Only follow register copies if it is set,
15898 and prevent mips_find_pic_call_symbol from recursing.
15899 (mips_find_pic_call_symbol): Add a recurse_p argument.
15900 Pass it to mips_pic_call_symbol_from_set.
15901 (mips_annotate_pic_calls): Update accordingly.
15902
15903 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
15904
15905 * emit-rtl.c (try_split): Use a loop to search for
15906 NOTE_INSN_CALL_ARG_LOCATIONs.
15907
15908 2011-05-29 Richard Guenther <rguenther@suse.de>
15909
15910 PR tree-optimization/49217
15911 * ipa-pure-const.c (propagate_pure_const): Fix typos.
15912
15913 2011-05-28 Jan Hubicka <jh@suse.cz>
15914
15915 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
15916 length.
15917 (string_slot_free): Remove
15918 (create_output_block): Initialize obstack.
15919 (destroy_output_block): Free obstack.
15920 (lto_string_index): Add PERSISTENT parameter; do not duplicate
15921 the string unless it needs to be added into the hash.
15922 (lto_output_string_with_length): Add persistent attribute;
15923 handle NULL strings.
15924 (lto_output_string): Add PERSISTENT parameter.
15925 (output_string_cst, output_identifier): Simplify.
15926 (lto_output_location_bitpack): Update.
15927 (lto_output_builtin_tree): Update.
15928 * lto-streamer.h (struct output_block): Add obstack.
15929 (lto_output_string, lto_output_string_with_length): Remove
15930 declarations; functions are static now.
15931
15932 2011-05-28 Jan Hubicka <jh@suse.cz>
15933
15934 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
15935 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
15936 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
15937 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
15938 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
15939 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
15940 unpack_ts_decl_with_vis_value_fields,
15941 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
15942 lto_get_builtin_tree): Use enum and variable length i/o.
15943 * basic-block.h (profile_status_d): Add PROFILE_LAST.
15944 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
15945 New functions.
15946 (bp_pack_enum, bp_unpack_enum): New macros.
15947
15948 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15949
15950 * genrecog.c: Remove redundant forward declarations.
15951
15952 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15953
15954 * config.gcc: Deprecate mips*-*-openbsd*.
15955
15956 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15957
15958 PR bootstrap/49195
15959 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
15960 for match_op_dup.
15961
15962 2011-05-27 Andrew Pinski <pinskia@gmail.com>
15963
15964 PR middle-end/48981
15965 * gengtype.c (vec_prefix_type): New function.
15966 (note_def_vec): Use vec_prefix_type and change the length
15967 attribute to be based on the prefix.
15968 * vec.c: Include coretypes.h before vec.h.
15969 (struct vec_prefix): Remove.
15970 (vec_gc_p_reserve): Change the offsetof to sizeof.
15971 (vec_gc_p_reserve_exact): Likewise.
15972 (vec_heap_p_reserve): Likewise.
15973 (vec_heap_p_reserve_exact): Likewise.
15974 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
15975 (vec_stack_p_reserve): Change the offsetof to sizeof.
15976 (vec_stack_p_reserve_exact): Likewise.
15977 * vec.h (struct vec_prefix): New struct definition.
15978 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
15979 (VEC_T_GTY(T,B)): Likewise.
15980 (DEF_VEC_FUNC_P(T)): Use prefix field.
15981 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
15982 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
15983
15984 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15985
15986 PR tree-optimization/46728
15987 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
15988 (powi_as_mults): Add gimple_set_location.
15989 (build_and_insert_call): New.
15990 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
15991 0.5, 0.25, 0.75, 1./3., or 1./6.
15992
15993 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
15994
15995 * doc/contrib.texi: Update copyright years.
15996 (Contributors): Add Zdenek Sojka.
15997
15998 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
15999
16000 * c-decl.c (c_push_function_context): Copy the current statement
16001 list stack.
16002 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16003 (finish_struct): Call building_stmt_list_p instead of checking
16004 cur_stmt_list.
16005 * c-parser.c (c_parser_postfix_expression): Likewise.
16006 * c-typeck.c (c_end_compound_stmt): Likewise.
16007 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16008 * tree-iterator.c (stmt_list_cache): Change to a VEC.
16009 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16010 (free_stmt_list): Likewise.
16011 * tree.h (struct tree_statement_list): Include typed_tree instead
16012 of tree_common.
16013 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16014 as TS_TYPED instead of TS_COMMON.
16015
16016 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16017 Uros Bizjak <ubizjak@gmail.com>
16018
16019 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16020 (HAVE_AS_IX86_TLSGDPTL): Define.
16021 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16022 (HAVE_AS_IX86_TLSLDMPLT): Define.
16023 * configure: Regenerate.
16024 * config.in: Regenerate.
16025 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16026 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16027 TARGET_SUN_TLS, use @tlsgdplt or @plt.
16028 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16029 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16030 @tlsldmplt or @plt.
16031 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16032
16033 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
16034
16035 * sched-int.h (struct _haifa_deps_insn_data): New members cond
16036 and reverse_cond.
16037 (INSN_COND, INSN_REVERSE_COND): New macros.
16038 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16039 once.
16040 (sched_get_condition_with_rev): Cache the results, and look them up
16041 if possible.
16042 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16043 are clobbered by the current insn.
16044 * target.def (exposed_pipline): New sched data hook.
16045 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16046 * doc/tm.texi: Regenerate.
16047
16048 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16049
16050 PR tree-optimization/49170
16051 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
16052 sincos or cexp.
16053
16054 2011-05-27 Richard Guenther <rguenther@suse.de>
16055
16056 PR middle-end/49189
16057 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16058 of comparisons.
16059
16060 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
16061
16062 * haifa-sched.c (sched_scan_info): Remove.
16063 (schedule_block): Call sched_extend_luids rather than sched_init_luids
16064 with NULL args.
16065 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16066 Remove functions.
16067 (sched_scan): Remove.
16068 (sched_extend_luids): Renamed from luids_extend_insn and no longer
16069 static. All callers changed.
16070 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16071 static. All callers changed.
16072 (sched_init_luids): Remove all arguments except the first. All
16073 callers changed. Don't use sched_scan.
16074 (haifa_init_h_i_d): Likewise.
16075 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16076 manually rather than using sched_init_luids. Likewise with
16077 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16078 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16079 rather than sched_init_luids with NULL args.
16080 * sel-sched-ir.c (new_insns): Remove variable.
16081 (sched_scan): New static function, previously in haifa-sched.c. Remove
16082 all arguments but the first two; all callers changed.
16083 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16084 rather than sched_init_luids.
16085 (sel_init_bbs): Remove second argument. All callers changed.
16086 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16087 with NULL arguments.
16088 (create_insn_rtx_from_pattern): Likewise.
16089 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16090 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16091 (sched_init_insn_luid, sched_extend_luids): Declare.
16092 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16093 declarations.
16094
16095 2011-05-27 Richard Guenther <rguenther@suse.de>
16096
16097 PR middle-end/49177
16098 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16099 A CMP B ? (T) true : (T) false for non-integral types T again.
16100
16101 2011-05-27 Jan Hubicka <jh@suse.cz>
16102
16103 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16104 so 0 means NULL string.
16105 (lto_output_string_with_length): ... here.
16106 (lto_output_string, output_string_cst, output_identifier): Update
16107 handling of NULL strings.
16108 (lto_output_location_bitpack): New function.
16109 (lto_output_location): Use it.
16110 (lto_output_tree_ref): Use output_record_start.
16111 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16112 len values.
16113 * lto-streamer-in.c (string_for_index): Break out from ...; offset
16114 values by 1.
16115 (input_string_internal): ... here;
16116 (input_string_cst, input_identifier, lto_input_string): Update handling
16117 of NULL strings.
16118 (lto_input_location_bitpack): New function
16119 (lto_input_location): Use it.
16120 (unpack_ts_type_common_value_fields): Pack align & alias in var len
16121 values.
16122 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16123 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16124 (bp_pack_value): Sanity check the value range.
16125 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16126 New functions.
16127 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16128 New functions.
16129
16130 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
16131
16132 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16133 call_arg_location instructions down the floor.
16134
16135 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
16136
16137 PR rtl-optimization/49154
16138 * ira.c (setup_pressure_classes): Process class without sublcasses
16139 as a candidate for pressure classes.
16140
16141 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
16142
16143 PR rtl-optimization/48575
16144 * genrecog.c (position_type): New enum.
16145 (position): New structure.
16146 (decision): Use position structure instead of a string.
16147 (root_pos, peep2_insn_pos_list): New variables.
16148 (next_position, compare_positions): New functions.
16149 (new_decision): Use position structures instead of strings.
16150 (maybe_both_true): Likewise.
16151 (change_state): Likewise.
16152 (write_tree): Likewise.
16153 (make_insn_sequence): Likewise.
16154
16155 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16156
16157 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16158 TS_BASE instead of TS_COMMON.
16159 (find_decls_types_r): Check for TS_TYPED structure before looking at
16160 TREE_TYPE.
16161 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16162 Add chain field.
16163 (BLOCK_CHAIN): Use new chain field.
16164
16165 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
16166
16167 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16168 moves expensive on Power7 also.
16169
16170 2011-05-26 Richard Guenther <rguenther@suse.de>
16171
16172 * fold-const.c (fold_unary_loc): Remove bogus code.
16173
16174 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16175
16176 * tree.h (struct tree_identifier): Inherit from tree_typed, not
16177 tree_common.
16178 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16179 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16180 TS_BASE instead of TS_COMMON.
16181 * varasm.c (assemble_name): Remove assert.
16182
16183 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16184
16185 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16186 substituted first.
16187 * libgcc-std.ver: Delete file.
16188
16189 2011-05-26 Richard Guenther <rguenther@suse.de>
16190
16191 PR tree-optimization/48702
16192 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16193 only when we know the base address is within bounds.
16194 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16195 assume the base address of TARGET_MEM_REFs is in bounds.
16196
16197 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16198
16199 PR target/49099
16200 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16201 declaration in TARGET_SOLARIS.
16202
16203 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
16204
16205 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16206 The instruction is then expanded explicitly.
16207 (supported_compare): Callable instruction.
16208 (compare): Likewise.
16209
16210 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16211
16212 PR c++/49165
16213 * gimplify.c (shortcut_cond_r): Don't special case
16214 COND_EXPRs if they have void type on one of their arms.
16215
16216 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16217
16218 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16219 to reduce duplication, and to achieve a slightly more logical order
16220 of operations.
16221
16222 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16223
16224 PR tree-optimization/49161
16225 * tree-vrp.c (struct case_info): New type.
16226 (compare_case_labels): Sort case_info structs instead of
16227 trees, and not primarily by CASE_LABEL uids but by
16228 label_for_block indexes.
16229 (find_switch_asserts): Put case labels into struct case_info
16230 array instead of TREE_VEC, adjust sorting, compare label_for_block
16231 values instead of CASE_LABELs.
16232
16233 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16234
16235 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16236 ("orndi3_neon"): Likewise.
16237 ("bic<mode>3_neon"): Likewise.
16238
16239 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
16240
16241 PR tree-optimization/49038
16242 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16243 Ensure at least one epilogue iteration if required by data
16244 accesses with gaps.
16245 * tree-vectorizer.h (struct _loop_vec_info): Add new field
16246 to mark loops that require peeling for gaps.
16247 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16248 (vect_get_known_peeling_cost): Take peeling for gaps into
16249 account.
16250 (vect_transform_loop): Generate epilogue if required by data
16251 access with gaps.
16252 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16253 loop as requiring an epilogue if there are gaps in the end of
16254 the strided group.
16255
16256 2011-05-25 Ian Lance Taylor <iant@google.com>
16257
16258 * godump.c (go_format_type): Output the first field with a usable
16259 Go type, if any.
16260
16261 2011-05-25 Ian Lance Taylor <iant@google.com>
16262
16263 * godump.c (go_format_type): Check for invalid type names, pointer
16264 target types, and struct field types.
16265
16266 2011-05-25 Jason Merrill <jason@redhat.com>
16267
16268 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16269
16270 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
16271
16272 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16273
16274 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16275
16276 * config/i386/i386.md (*movqi_extv_1)): Put back
16277 "register_operand" check in "type" calculation.
16278 (*movqi_extzv_2): Likewise.
16279
16280 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16281
16282 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16283
16284 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16285
16286 PR bootstrap/49160
16287 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16288 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16289 __divxc3, __divtc3): Wrap definitions in #ifndef.
16290
16291 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16292
16293 PR target/49142
16294 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16295 "register_operand" check and replace q_regs_operand with
16296 QIreg_operand in "type" calculation.
16297 (*movqi_extv_1): Likewise.
16298 (*movqi_extzv_2_rex64): Likewise.
16299 (*movqi_extzv_2): Likewise.
16300
16301 * config/i386/predicates.md (QIreg_operand): New.
16302
16303 2011-05-25 Richard Guenther <rguenther@suse.de>
16304
16305 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16306 type-based offset disambiguation, streamline MEM_REF and
16307 TARGET_MEM_REF handling.
16308
16309 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16310
16311 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16312 (bdesc_special_args): Add pause intrinsic.
16313
16314 * config/i386/i386.md (UNSPEC_PAUSE): New.
16315 (pause): Likewise.
16316 (*pause): Likewise.
16317 * config/i386/ia32intrin.h (__pause): Likewise.
16318
16319 * doc/extend.texi (X86 Built-in Functions): Add documentation for
16320 pause intrinsic.
16321
16322 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16323
16324 PR tree-optimization/46728
16325 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16326 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16327
16328 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
16329
16330 * tree.h (struct tree_exp): Inherit from struct tree_typed.
16331 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16332 instead of TS_COMMON.
16333
16334 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16335
16336 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16337 LIBGCC2_GNU_PREFIX is defined.
16338 (__N): New macro.
16339 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16340 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16341 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16342 __clz_tab): Define using __N.
16343 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16344 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16345 * target.def (libfunc_gnu_prefix): New hook.
16346 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16347 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16348 * doc/tm.texi: Regenerate.
16349 * system.h (LIBGCC2_GNU_PREFIX): Poison.
16350 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16351 account.
16352 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16353 (init_optabs): Likewise for the bswap libfuncs.
16354 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16355 and divide.
16356 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16357 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16358 * libgcc-std.ver: Remove.
16359 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16360 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16361 libgcc-std.ver.
16362 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16363 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16364 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16365 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16366 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16367 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16368 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16369 * config/fixed-bit.h (FIXED_OP): Define differently depending on
16370 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16371 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16372
16373 2011-05-25 Jan Hubicka <jh@suse.cz>
16374
16375 * lto-streamer-out.c (output_record_start): Use lto_output_enum
16376 (lto_output_tree): Use output_record_start.
16377 * lto-streamer-in.c (input_record_start): Use lto_input_enum
16378 (lto_get_pickled_tree): Use input_record_start.
16379 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16380 (lto_value_range_error): New function.
16381 * lto-streamer.h (lto_value_range_error): Declare.
16382 (lto_output_int_in_range, lto_input_int_in_range): New functions.
16383 (lto_output_enum, lto_input_enum): New macros.
16384
16385 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
16386
16387 * common.opt (flag_stack_usage_info): New variable.
16388 (-Wstack-usage): New option.
16389 * doc/invoke.texi (Warning options): Document -Wstack-usage.
16390 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16391 <OPT_fstack_usage>: Likewise.
16392 * toplev.c (output_stack_usage): Handle -Wstack-usage.
16393 * calls.c (expand_call): Test flag_stack_usage_info variable instead
16394 of flag_stack_usage.
16395 (emit_library_call_value_1): Likewise.
16396 * explow.c (allocate_dynamic_stack_space): Likewise.
16397 * function.c (instantiate_virtual_regs ): Likewise.
16398 (prepare_function_start): Likewise.
16399 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16400 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16401 * config/arm/arm.c (arm_expand_prologue): Likewise.
16402 (thumb1_expand_prologue): Likewise.
16403 * config/avr/avr.c (expand_prologue): Likewise.
16404 * config/i386/i386.c (ix86_expand_prologue): Likewise.
16405 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16406 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16407 * config/mips/mips.c (mips_expand_prologue): Likewise.
16408 * config/pa/pa.c (hppa_expand_prologue): Likewise.
16409 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16410 * config/s390/s390.c (s390_emit_prologue): Likewise.
16411 * config/sh/sh.c (sh_expand_prologue): Likewise.
16412 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16413 * config/spu/spu.c (spu_expand_prologue): Likewise.
16414
16415 2011-05-25 Richard Guenther <rguenther@suse.de>
16416
16417 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16418 (gimple_canonical_types_compatible_p): Likewise.
16419
16420 2011-05-25 Jan Hubicka <jh@suse.cz>
16421
16422 PR middle-end/49062
16423 * ipa.c (function_and_variable_visibility): Only add to same
16424 comdat group list if DECL_ONE_ONLY.
16425
16426 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
16427
16428 PR rtl-optimization/49014
16429 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16430
16431 2011-05-25 Jakub Jelinek <jakub@redhat.com>
16432
16433 PR target/49128
16434 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16435
16436 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
16437
16438 PR rtl-optimization/48757
16439 * ira-build.c (loop_with_eh_edge_p): Rename to
16440 loop_with_complex_edge_p, check edges on complexity, make function
16441 conditional.
16442 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16443 conditional.
16444
16445 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
16446
16447 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
16448 force flag_ira_share_save_slots to 0.
16449
16450 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
16451
16452 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16453 (vt_initialize): Set PROLOGUE_BB unconditionally.
16454 Add block comment about CFA_BASE_RTX machinery.
16455 Reset FP_CFA_OFFSET to -1 on all invalid paths.
16456 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16457
16458 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
16459
16460 PR objc/48187
16461 * c-parser.c (c_parser_objc_class_instance_variables): More robust
16462 parsing of syntax error in ObjC instance variable lists. In
16463 particular, avoid an infinite loop if there is a stray ']'.
16464 Updated error message.
16465
16466 2011-05-24 Ian Lance Taylor <iant@google.com>
16467
16468 * godump.c (go_define): Don't accept a string immediately after
16469 another operand.
16470
16471 2011-05-24 Ian Lance Taylor <iant@google.com>
16472
16473 * godump.c (struct godump_container): Add invalid_hash field.
16474 (go_format_type): Return false if type is found in invalid_hash.
16475 (go_output_typedef): Add invalid type to invalid_hash.
16476 (go_finish): Create and delete invalid_hash.
16477
16478 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16479
16480 PR tree-optimization/46728
16481 * tree-ssa-math-opts.c (powi_table): New.
16482 (powi_lookup_cost): New.
16483 (powi_cost): New.
16484 (powi_as_mults_1): New.
16485 (powi_as_mults): New.
16486 (gimple_expand_builtin_powi): New.
16487 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16488 (gate_cse_sincos): Remove sincos/cexp restriction.
16489
16490 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16491
16492 PR target/3746
16493 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16494 mips-tdump native.
16495 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16496 * mips-tdump.c: Likewise.
16497
16498 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
16499
16500 PR target/49128
16501 * config/i386/driver-i386.c (host_detect_local_cpu): Always
16502 add -mno-XXX. Handle FMA.
16503
16504 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
16505
16506 PR rtl-optimization/48633
16507 * ira-build.c (loop_with_eh_edge_p): New function.
16508 (mark_loops_for_removal): Use it.
16509
16510 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
16511
16512 PR rtl-optimization/48971
16513 * ira.c (setup_pressure_classes): Don't check register move cost
16514 for classes with one registers. Don't add pressure class if there
16515 is a pressure class with the same available hard registers.
16516 Check contains_reg_of_mode. Fix a typo in collecting
16517 temp_hard_regset. Ignore hard registers not belonging to a class.
16518
16519 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
16520
16521 PR target/49133
16522 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16523
16524 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
16525 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16526
16527 PR gcov-profile/48845
16528 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16529
16530 2011-05-24 Richard Guenther <rguenther@suse.de>
16531
16532 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16533 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16534 (gimple_types_compatible_p_1): Adjust.
16535 (iterative_hash_canonical_type): Do not bother about complete vs.
16536 incomplete types.
16537 (gimple_canonical_types_compatible_p): Likewise.
16538
16539 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16540
16541 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16542
16543 2011-05-24 Richard Guenther <rguenther@suse.de>
16544
16545 PR bootstrap/49078
16546 * gimple.c (gimple_register_canonical_type): Revert
16547 previous change.
16548 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16549 does not for a tree for the case where it matters. Cache
16550 pointer-type alias-sets.
16551
16552 2011-05-24 Joseph Myers <joseph@codesourcery.com>
16553
16554 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16555 (OBJS): Remove options.o, opts-common.o and prefix.o.
16556 (OBJS-libcommon-target): New.
16557 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16558 (BACKEND): Include libcommon-target.a.
16559 (MOSTLYCLEANFILES): Include libcommon-target.a.
16560 (libcommon-target.a): New.
16561 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16562 prefix.o.
16563
16564 2011-05-23 Joseph Myers <joseph@codesourcery.com>
16565
16566 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
16567 parts of output shared with the driver.
16568 * optc-gen.awk: Don't generate parts of output not shared with the
16569 driver.
16570 * opth-gen.awk: Remove GCC_DRIVER conditionals.
16571 * doc/options.texi (SourcerInclude): Mention options-save.c.
16572 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16573 (OBJS): Add options-save.o.
16574 (options-save.c, options-save.o): New.
16575 (options.o): Update dependencies.
16576 (gcc-options.o): Remove.
16577 (mostlyclean): Remove options-save.c.
16578
16579 2011-05-23 Jakub Jelinek <jakub@redhat.com>
16580
16581 PR debug/49032
16582 * dbxout.c: Include cgraph.h.
16583 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16584 and without value expr, return NULL if no varpool node exists for
16585 it or if it is not needed.
16586 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16587
16588 PR c/49120
16589 * c-decl.c (start_decl): Convert expr to void_type_node.
16590
16591 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
16592
16593 PR rtl-optimization/48826
16594 * emit-rtl.c (try_split): When splitting a call that is followed
16595 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16596
16597 2011-05-23 Jakub Jelinek <jakub@redhat.com>
16598
16599 * cfgexpand.c (expand_debug_expr): For unused non-addressable
16600 parameters passed in memory prefer using DECL_INCOMING_RTL over
16601 the pseudos it will be copied into.
16602
16603 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
16604
16605 PR target/47315
16606 * config/i386/i386.c (ix86_option_override_internal): Save the
16607 initial options after checking vzeroupper.
16608
16609 2011-05-23 David Li <davidxl@google.com>
16610
16611 PR tree-optimization/48988
16612 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16613 Initialize has_valid_pred for each pred chain.
16614
16615 2011-05-23 Richard Guenther <rguenther@suse.de>
16616
16617 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16618 (iterative_hash_gimple_type): Always hash type names.
16619
16620 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
16621
16622 * c-typeck.c (build_function_call_vec): Tweak call to
16623 check_function_arguments.
16624
16625 2011-05-23 Richard Guenther <rguenther@suse.de>
16626
16627 PR tree-optimization/49115
16628 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
16629 is not necessarily carried out, do not claim it kills the ref.
16630 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
16631
16632 2011-05-23 Richard Guenther <rguenther@suse.de>
16633
16634 PR middle-end/15419
16635 * builtins.c (fold_builtin_memory_op): Be less restrictive about
16636 what pointer types we accept for folding.
16637
16638 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16639
16640 * gthr-gnat.c: Remove.
16641 * gthr-gnat.h: Remove.
16642 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
16643 * config/t-freebsd (LIB2ADDEH): Likewise.
16644 * config/t-linux (LIB2ADDEH): Likewise.
16645 * config/t-sol2 (LIB2ADDEH): Likewise.
16646 * config/ia64/t-vms (LIB2ADDEH): Likewise.
16647 * configure.ac (target_thread_file): Remove gnat handling.
16648 * configure: Regenerate.
16649 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
16650
16651 2011-05-23 Tristan Gingold <gingold@adacore.com>
16652 Eric Botcazou <ebotcazou@adacore.com>
16653
16654 * gcov.c (create_file_names): If no object directory is specified,
16655 keep the directory of the file.
16656
16657 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16658
16659 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
16660 * configure: Regenerate.
16661
16662 2011-05-23 Jakub Jelinek <jakub@redhat.com>
16663
16664 PR middle-end/48973
16665 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
16666 failed and the comparison has a single bit signed type, use
16667 constm1_rtx instead of const1_rtx for true value.
16668 (do_store_flag): If ops->type is single bit signed type, disable
16669 signel bit test optimization and pass -1 instead of 1 as last
16670 parameter to emit_store_flag_force.
16671
16672 2011-05-23 Tom de Vries <tom@codesourcery.com>
16673
16674 PR target/45098
16675 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
16676 function.
16677 (infer_loop_bounds_from_undefined): Use new function.
16678
16679 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
16680
16681 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
16682 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
16683 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
16684 and -O0 otherwise.
16685 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
16686
16687 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
16688
16689 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
16690 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
16691 returns true.
16692
16693 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
16694
16695 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
16696
16697 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
16698
16699 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
16700 UNSPEC_MOVE_PIC pattern.
16701
16702 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
16703
16704 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
16705 (sparc-*-rtems*): Likewise.
16706 (sparc64-*-elf*): Likewise.
16707 (sparc64-*-rtems*): Likewise.
16708 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
16709 * config/sparc/t-crtin: New file.
16710 * config/sparc/t-sol2 (crti.o): Delete rule.
16711 (crtn.o): Likewise.
16712 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
16713 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
16714 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
16715 (ENDFILE_SPEC): Add crtn.o.
16716
16717 2011-05-22 Tom de Vries <tom@codesourcery.com>
16718
16719 PR middle-end/48689
16720 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
16721 CODE_CONTAINS_STRUCT (TS_COMMON).
16722
16723 2011-05-22 Jakub Jelinek <jakub@redhat.com>
16724
16725 PR middle-end/49029
16726 * expmed.c (extract_fixed_bit_field): Test whether target can be used
16727 only after deciding which mode to use.
16728
16729 2011-05-22 Tom de Vries <tom@codesourcery.com>
16730
16731 PR target/45098
16732 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
16733 for call to get_shiftadd_cost.
16734
16735 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
16736
16737 PR target/49104
16738 * config/i386/cpuid.h (bit_MMXEXT): New define.
16739
16740 2011-05-22 Nick Clifton <nickc@redhat.com>
16741
16742 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
16743 initialisation of non-existant args[2] element. Use args[] array
16744 not arg[] array to pass arguments to build_function_type_list.
16745
16746 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
16747
16748 PR tree-optimization/49087
16749 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
16750
16751 2011-05-21 Jason Merrill <jason@redhat.com>
16752
16753 PR c++/49092
16754 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
16755 static storage duration.
16756
16757 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
16758
16759 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
16760 frame pointer.
16761
16762 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
16763
16764 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
16765 false if there are call-saved registers here...
16766 (sparc_can_use_return_insn_p): ...but here instead.
16767 (save_or_restore_regs): Fix thinko.
16768 (sparc_expand_prologue): Use current_function_is_leaf.
16769 (sparc_frame_pointer_required): Likewise.
16770
16771 2011-05-21 Nick Clifton <nickc@redhat.com>
16772
16773 PR target/49098
16774 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
16775
16776 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
16777
16778 * gengtype.c (walk_type): Implemented "atomic" GTY option.
16779 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
16780
16781 2011-05-21 Joseph Myers <joseph@codesourcery.com>
16782
16783 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
16784 * optc-gen.awk: Move common code to opt-read.awk.
16785 * opth-gen.awk: Likewise.
16786 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
16787
16788 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
16789
16790 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
16791
16792 2011-05-20 Tom de Vries <tom@codesourcery.com>
16793
16794 PR target/45098
16795 * tree-ssa-loop-ivopts.c: Include expmed.h.
16796 (get_shiftadd_cost): New function.
16797 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
16798
16799 2011-05-20 Jakub Jelinek <jakub@redhat.com>
16800
16801 PR bootstrap/49086
16802 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
16803 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
16804
16805 2011-05-20 Joseph Myers <joseph@codesourcery.com>
16806
16807 * Makefile.in: Update comment referring to $(OBJS-common).
16808
16809 2011-05-20 Ian Lance Taylor <iant@google.com>
16810
16811 * godump.c (go_output_typedef): Put enum constants in the macro
16812 hash table to avoid duplicate Go const definitions.
16813
16814 2011-05-20 Joseph Myers <joseph@codesourcery.com>
16815
16816 * Makefile.in (LIBDEPS): Add libcommon.a.
16817 (LIBS): Likewise.
16818 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
16819 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
16820 pretty-print.o and version.o.
16821 (OBJS-libcommon): New.
16822 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
16823 (BACKEND): Add libcommon.a.
16824 (MOSTLYCLEANFILES): Likewise.
16825 (libcommon.a): New.
16826 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
16827 (cpp$(exeext)): Likewise.
16828 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
16829 pretty-print.o and input.o.
16830 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
16831 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
16832 (errors.o): Remove.
16833 (mips-tfile): Don't explicitly use version.o.
16834 (mips-tdump): Likewise.
16835 (gcov.o): Depend on $(DIAGNOSTIC_H).
16836 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
16837 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
16838 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
16839 * gcov-dump.c: Include intl.h and diagnostic.h.
16840 (main): Initialize diagnostics.
16841 * gcov.c: Include diagnostic.h.
16842 (fnotice): Remove.
16843 (main): Initialize diagnostics.
16844 * lto-wrapper.c: Include diagnostic.h.
16845 (main): Initialize diagnostics.
16846
16847 2011-05-20 Michael Matz <matz@suse.de>
16848
16849 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
16850
16851 2011-05-20 Michael Matz <matz@suse.de>
16852 Richard Guenther <rguenther@suse.de>
16853
16854 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
16855 use lto_streamer_cache_append directly instead of returning a VEC.
16856 (preload_common_node): Remove.
16857 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
16858 track seen nodes.
16859 (lto_streamer_cache_create): Call lto_preload_common_nodes.
16860
16861 2011-05-20 Richard Guenther <rguenther@suse.de>
16862
16863 PR tree-optimization/49079
16864 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
16865 MEM_REFs correctly for the trailing array access detection.
16866 Special case constants the same way as decls for overall size
16867 constraining.
16868
16869 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
16870
16871 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
16872 argument expansion.
16873
16874 2011-05-20 Jakub Jelinek <jakub@redhat.com>
16875
16876 PR tree-optimization/49073
16877 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
16878 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
16879 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
16880
16881 2011-05-20 Richard Guenther <rguenther@suse.de>
16882
16883 PR middle-end/48849
16884 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
16885 of pointer types the same way the middle-end does.
16886
16887 2011-05-20 Richard Guenther <rguenther@suse.de>
16888
16889 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
16890 or pointer-to chains. Delay all fixup to uniquify_nodes.
16891
16892 2011-05-19 Quentin Neill <quentin.neill@amd.com>
16893
16894 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
16895 (fma4_fmaddsub): Likewise
16896
16897 2011-05-19 Jan Hubicka <jh@suse.cz>
16898
16899 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
16900 (GIMPLE_TYPE_PAIR_SIZE): New macro.
16901 (type_pair_cache): New static var.
16902 (lookup_type_pair): Use fixed sized custom hash; make inline.
16903 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
16904 calls of lookup_type_pair.
16905 (print_gimple_types_stats): Remove cache stats.
16906 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
16907 and gtc_ob.
16908
16909 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
16910
16911 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
16912 when TARGET_RDRND is active.
16913 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
16914 Generate dummy SImode target register when target is NULL.
16915
16916 2011-05-19 Joseph Myers <joseph@codesourcery.com>
16917
16918 * config/arm/arm-fpus.def: New.
16919 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
16920 arm-fpus.def.
16921 * config/arm/arm-tables.opt: Regenerate.
16922 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
16923 (arm_option_override): Don't decode FPU name to string here.
16924 * config/arm/arm.opt (mfpu=): Use Enum.
16925 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
16926 Update dependencies.
16927
16928 2011-05-19 Joseph Myers <joseph@codesourcery.com>
16929
16930 * collect2.c: Include diagnostic.h.
16931 (fatal_perror, fatal, error, fancy_abort): Remove.
16932 (main): Set progname. Call xmalloc_set_program_name and
16933 diagnostic_initialize.
16934 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
16935 scan_libraries, resolve_lib_name): Call fatal_error instead of
16936 fatal and fatal_perror.
16937 * collect2.h (error, fatal, fatal_perror): Don't declare.
16938 * tlink.c: Include diagnostic-core.h.
16939 (recompile_files): Call fatal_error instead of fatal_perror.
16940 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
16941 pretty-print.o and input.o.
16942 (collect2.o, tlink.o): Update dependencies.
16943
16944 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16945
16946 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
16947
16948 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16949
16950 PR target/40483
16951 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
16952 COMDAT group syntax, both SPARC and x86 variants.
16953 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
16954 * configure: Regenerate.
16955 * config/sol2.h (TARGET_SOLARIS): Define.
16956 (PUSHSECTION_FORMAT): Remove.
16957 (SECTION_NAME_FORMAT): Define.
16958 * config/sol2.c: Include hashtab.h.
16959 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
16960 expansion, using SECTION_NAME_FORMAT.
16961 (solaris_comdat_htab): New variable.
16962 (struct comdat_entry): Define.
16963 (comdat_hash): New function.
16964 (comdat_eq): New function.
16965 (solaris_elf_asm_comdat_section): New function.
16966 (solaris_define_comdat_signature): New function.
16967 (solaris_code_end): New function.
16968 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
16969 (solaris_code_end): Declare.
16970 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
16971 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
16972 solaris_code_end.
16973 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
16974 Remove ATTRIBUTE_UNUSED.
16975 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
16976 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
16977 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
16978 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
16979 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
16980 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
16981 (PUSHSECTION_FORMAT): Remove.
16982 (SECTION_NAME_FORMAT): Redefine.
16983
16984 2011-05-19 Kai Tietz <ktietz@redhat.com>
16985
16986 * tree-cfg.c (verify_gimple_assign_binary): Barf on
16987 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
16988 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
16989
16990 2011-05-19 Anatoly Sokolov <aesok@post.ru>
16991 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16992
16993 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
16994
16995 2011-05-19 Richard Guenther <rguenther@suse.de>
16996
16997 PR middle-end/48985
16998 * tree-object-size.c (addr_object_size): If the pointed-to
16999 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17000
17001 2011-05-19 Richard Guenther <rguenther@suse.de>
17002
17003 * gimple.c (gimple_types_compatible_p_1): Compare names of
17004 the types themselves.
17005 (iterative_hash_gimple_type): And hash them that way.
17006 (gimple_register_type_1): If we register a main variant properly
17007 initialize the leader to ourselves.
17008
17009 2011-05-19 Tom de Vries <tom@codesourcery.com>
17010
17011 PR target/45098
17012 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17013 get_loop_invariant_expr_id.
17014 (get_loop_invariant_expr_id): Use get_expr_id.
17015 (parm_decl_cost): New function.
17016 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17017 Improve bound cost estimation. Use different inv_expr_id for elim and
17018 express cases.
17019
17020 2011-05-19 Tom de Vries <tom@codesourcery.com>
17021
17022 PR target/45098
17023 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17024 cost_base.cost == 0.
17025
17026 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
17027
17028 PR target/49002
17029 * config/i386/sse.md
17030 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17031 load cast.
17032
17033 2011-05-18 Jakub Jelinek <jakub@redhat.com>
17034
17035 PR tree-optimization/49039
17036 * tree-vrp.c (extract_range_from_binary_expr): For
17037 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17038 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17039
17040 2011-05-18 Tom de Vries <tom@codesourcery.com>
17041
17042 PR target/45098
17043 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17044
17045 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
17046
17047 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17048 (*tls_global_dynamic_64): Ditto.
17049 (*tls_local_dynamic_base_32_gnu): Ditto.
17050 (*tls_local_dynamic_base_64): Ditto.
17051 (tls_initial_exec_64_sun): Ditto.
17052
17053 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
17054
17055 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17056 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17057 bf592-none.
17058 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17059 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17060 * config/bfin/bfin.c (bfin_cpus): Add bf592.
17061 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17062 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17063 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17064 * config/bfin/elf.h (LIB_SPEC): Add bf592.
17065
17066 2011-05-18 Joseph Myers <joseph@codesourcery.com>
17067
17068 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17069 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17070 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17071 target_thread_pointer, arm_structure_size_boundary, struct
17072 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17073 struct abi_name, arm_all_abis): Remove.
17074 (arm_option_override) Don't process most enumerated option values here.
17075 Don't process target_fpe_name here. Work with integer not string for
17076 structure size boundary; use separate diagnostics for each case.
17077 * config/arm/arm.h (enum float_abi_type, enum
17078 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17079 to arm-opts.h.
17080 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17081 arm_structure_size_boundary): Remove.
17082 * config/arm/arm.opt (mabi=): Use Enum and Init.
17083 (arm_abi_type): New Enum and EnumValue entries.
17084 (mfloat-abi=): Use Enum and Init.
17085 (float_abi_type): New Enum and EnumValue entries.
17086 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17087 (mfp16-format=): Use Enum and Init.
17088 (arm_fp16_format_type): New Enum and EnumValue entries.
17089 (mstructure-size-boundary=): Use UInteger and Init.
17090 (mtp=): Use Enum and Init.
17091 (arm_tp_type): New Enum and EnumValue entries.
17092
17093 2011-05-18 Richard Guenther <rguenther@suse.de>
17094
17095 PR tree-optimization/49018
17096 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17097 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17098 gimple_has_side_effects.
17099
17100 2011-05-18 Richard Guenther <rguenther@suse.de>
17101
17102 * gimple.c (gimple_register_type_1): New function, split out from ...
17103 (gimple_register_type): ... here. Avoid infinite recursion.
17104
17105 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17106
17107 PR tree-optimization/41881
17108 * tree-vectorizer.h (struct _loop_vec_info): Add new field
17109 reduction_chains along with a macro for its access.
17110 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17111 (destroy_loop_vec_info): Free reduction chains.
17112 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17113 (vect_is_slp_reduction): New function.
17114 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17115 (vect_create_epilog_for_reduction): Support SLP reduction chains.
17116 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17117 definition types for reduction chains.
17118 (vect_supported_load_permutation_p): Don't allow permutations for
17119 reduction chains.
17120 (vect_analyze_slp_instance): Support reduction chains.
17121 (vect_analyze_slp): Try to build SLP instance from reduction chains.
17122 (vect_get_constant_vectors): Handle reduction chains.
17123 (vect_schedule_slp_instance): Mark the first statement of the
17124 reduction chain as reduction.
17125
17126 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17127
17128 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17129 names for group elements access.
17130 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17131 reduction chains as well. Remove data reference and interleaving
17132 related words from the fields names.
17133 * tree-vect-loop.c (vect_transform_loop): Use new names for group
17134 elements access.
17135 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17136 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17137 vect_update_interleaving_chain, vect_same_range_drs,
17138 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17139 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17140 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17141 vect_analyze_group_access, vect_analyze_data_ref_access,
17142 vect_create_data_ref_ptr, vect_transform_strided_load,
17143 vect_record_strided_load_vectors): Likewise.
17144 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17145 vect_model_load_cost, vectorizable_store, vectorizable_load,
17146 vect_remove_stores, new_stmt_vec_info): Likewise.
17147 * tree-vect-slp.c (vect_build_slp_tree,
17148 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17149
17150 2011-05-18 Richard Guenther <rguenther@suse.de>
17151
17152 PR middle-end/48989
17153 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17154 operand verification.
17155 (verify_gimple_assign_binary): Likewise.
17156 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17157 to non-1-precision BOOLEAN_TYPEs.
17158
17159 2011-05-18 Tom de Vries <tom@codesourcery.com>
17160
17161 PR target/45098
17162 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17163
17164 2011-05-18 Jakub Jelinek <jakub@redhat.com>
17165
17166 PR tree-optimization/49000
17167 * tree-ssa.c (execute_update_addresses_taken): Call
17168 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
17169 be rewritten and decl has been marked for renaming, reset
17170 the debug stmt.
17171
17172 2011-05-17 Joseph Myers <joseph@codesourcery.com>
17173
17174 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17175 enum_opts_set when testing if attributes have set -mfpmath=.
17176
17177 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17178
17179 * config/mips/mips.c (mips_handle_option): Remove unused variable.
17180
17181 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17182
17183 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17184 info->entry with 0
17185 * tree-inline.c (maybe_inline_call_in_expr): Initialize
17186 id.transform_lang_insert_block with NULL.
17187
17188 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17189
17190 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17191 (output_fp_compare): Change args 3 and 4 to bool.
17192 (ix86_expand_call): Change arg 6 to bool.
17193 (ix86_attr_length_immediate_default): Change arg 2 to bool.
17194 (ix86_attr_length_vex_default): Change arg 3 to bool.
17195 * config/i386/i386.md: Update all uses.
17196 * config/i386/i386.c: Ditto.
17197 (ix86_flags_dependent): Change return type to bool.
17198
17199 2011-05-17 Richard Guenther <rguenther@suse.de>
17200
17201 * gimple.c (type_hash_pair_compare): Fix comparison.
17202
17203 2011-05-17 Richard Guenther <rguenther@suse.de>
17204
17205 * gimple.c (iterative_hash_gimple_type): Simplify singleton
17206 case some more, fix final hash value of the non-singleton case.
17207
17208 2011-05-17 Richard Guenther <rguenther@suse.de>
17209
17210 PR bootstrap/49013
17211 Revert
17212 2011-05-16 Richard Guenther <rguenther@suse.de>
17213
17214 * gimple.c (gimple_types_compatible_p_1): Use names of the
17215 type itself, not its main variant.
17216 (iterative_hash_gimple_type): Likewise.
17217
17218 2011-05-17 Richard Guenther <rguenther@suse.de>
17219
17220 * gimple.c (gimple_register_canonical_type): Use the main-variant
17221 leader for computing the canonical type.
17222
17223 2011-05-17 Nick Clifton <nickc@redhat.com>
17224
17225 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17226 moves.
17227
17228 * config/rx/rx.md: Add peephole to remove redundant extensions
17229 after loads.
17230 (bitset_in_memory): Use rx_restricted_mem_operand.
17231 (bitinvert_in_memory): Likewise.
17232 (bitclr_in_memory): Likewise.
17233
17234 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
17235 Nick Clifton <nickc@redhat.com>
17236
17237 * config/rx/rx.md: Add peepholes to match a register move followed
17238 by a comparison of the moved register. Replace these with an
17239 addition of zero that does both actions in one instruction.
17240
17241 2011-05-17 Jakub Jelinek <jakub@redhat.com>
17242
17243 PR target/48986
17244 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17245 predicate to allow CONST_INT.
17246 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17247
17248 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17249
17250 * opts-common.c (opt_enum_arg_to_value): New.
17251 * opts.h (opt_enum_arg_to_value): Declare.
17252 * config/i386/i386.opt (fpmath): Remove.
17253 (mfpmath=): Use Enum, Init and Save.
17254 (fpmath_unit): New Enum and EnumValue entries.
17255 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17256 name for function fpmath state.
17257 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17258 * config/i386/i386.c: Include diagnostic.h.
17259 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17260 (ix86_target_string): Take enum fpmath_unit value instead of string.
17261 (ix86_debug_options): Update call to ix86_target_string.
17262 (ix86_option_override_internal): Don't process fpmath strings here.
17263 (x86_function_specific_save, ix86_function_specific_restore):
17264 Don't handle fpmath state specially.
17265 (ix86_function_specific_print): Pass fpmath state to
17266 ix86_target_string instead of printing in this function.
17267 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17268 Handle enum attributes.
17269 (IX86_ATTR_ENUM, ix86_opt_enum): New.
17270 (ix86_valid_target_attribute_tree): Update option_strings
17271 handling. Handle fpmath as enum option.
17272 (ix86_can_inline_p): Update field names for function fpmath state.
17273 (ix86_expand_builtin): Update call to ix86_target_string.
17274 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17275 (ix86_fpmath): Remove.
17276 * config/i386/t-i386 (i386.o): Update dependencies.
17277
17278 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17279
17280 PR preprocessor/48677
17281 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17282 from decoded_options[0], not from itself.
17283
17284 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
17285
17286 * config/i386/constraints.md (z): New constraint.
17287 * config/i386/i386.c (c): New mode attribute.
17288 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17289 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17290 constraint for operand 0.
17291 (*call_vzeroupper): Ditto.
17292 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
17293 (*call_rex64_ms_sysv_vzeroupper): Ditto.
17294 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17295 Use "lzm" constraint for operand 0.
17296 (*call_pop_vzeroupper): Ditto.
17297 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17298 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
17299 constraint for operand 0.
17300 (*sibcall_vzeroupper): Ditto.
17301 (*sibcall_rex64_ms_sysv): Ditto.
17302 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17303 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17304 *sibcall_pop_1. Use "Uz" constraint for operand 0.
17305 (*sibcall_pop_vzeroupper): Ditto.
17306 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17307 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17308 mode iterator. Use "<c>zm" constraint for operand 1.
17309 (*call_value_vzeroupper): Ditto.
17310 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
17311 for operand 1.
17312 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17313 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17314 *call_value_pop_1. Use "lzm" constraint for operand 1.
17315 (*call_value_pop_vzeroupper): Ditto.
17316 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17317 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17318 mode iterator. Use "Uz" constraint for operand 1.
17319 (*sibcall_value_vzeroupper): Ditto.
17320 (*sibcall_value_rex64_ms_sysv): Ditto.
17321 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17322 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
17323 constraint for operand 1.
17324 (*sibcall_value_pop_vzeroupper): Ditto.
17325 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17326 and "z" constraint for operand 2.
17327 (*tls_global_dynamic_32_gnu): Ditto.
17328 (*tls_local_dynamic_base_32_gnu): Ditto.
17329 (*tls_local_dynamic_base_64): Ditto.
17330 (*tls_local_dynamic_32_once): Ditto.
17331 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17332 Update all callers.
17333 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17334
17335 2011-05-16 Richard Guenther <rguenther@suse.de>
17336
17337 * gimple.c (gimple_types_compatible_p_1): Use names of the
17338 type itself, not its main variant.
17339 (iterative_hash_gimple_type): Likewise.
17340
17341 2011-05-16 Richard Guenther <rguenther@suse.de>
17342
17343 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17344 always visit pointer target and function result and argument types.
17345
17346 2011-05-16 Jason Merrill <jason@redhat.com>
17347
17348 PR c++/48999
17349 * tree-inline.c (copy_statement_list): Put back recursion.
17350
17351 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17352
17353 PR target/27663
17354 PR target/41076
17355 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17356 * config/avr/avr.md ("*ior<mode>qi.byte0",
17357 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17358
17359 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17360
17361 PR target/45099
17362 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17363 register is needed for a function argument.
17364
17365 2011-05-16 Richard Guenther <rguenther@suse.de>
17366
17367 * gimple.c (struct type_hash_pair): New type.
17368 (type_hash_pair_compare): New function.
17369 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17370
17371 2011-05-16 Revital Eres <revital.eres@linaro.org>
17372
17373 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17374
17375 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17376
17377 * config/i386/i386.md (floating point move splitters): Fix
17378 usage of standard_80387_constant_p.
17379 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17380
17381 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17382
17383 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17384
17385 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
17386
17387 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17388 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17389 (tree_ssa_lim_finalize): Likewise.
17390
17391 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
17392
17393 * config/i386/constraint.md (Yd, Yx): New register constraints.
17394 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
17395 Yd conditional register constraint.
17396 (*movtf_internal): Use standard_sse_constant_opcode.
17397 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
17398 Yx conditional register constraint.
17399 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
17400 Yd conditional register constraint. Use standard_sse_constant_p to
17401 check for valid SSE constants and call standard_sse_constant_opcode to
17402 output SSE insn.
17403 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17404 constants and call standard_sse_constant_opcode to output SSE insn.
17405 * config/i386/i386.c (ix86_option_ovverride_internal): Set
17406 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
17407 optimize_size is set.
17408 (standard_sse_constant_opcode): Output conditional AVX insn templates.
17409
17410 2011-05-14 Tobias Burnus <burnus@net-b.de>
17411
17412 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17413
17414 2011-05-13 Martin Jambor <mjambor@suse.cz>
17415
17416 * ipa-prop.c (ipa_cst_from_jfunc): New function.
17417 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17418 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17419 (evaluate_conditions_for_ipcp_clone): Removed.
17420 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17421 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17422 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17423
17424 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
17425
17426 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17427 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17428 lieu of MAY_HAVE_DEBUG_STMTS.
17429 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17430 debug statements if !MAY_HAVE_DEBUG_STMTS.
17431
17432 2011-05-13 Martin Thuresson <martint@google.com>
17433
17434 PR gcov-profile/47793
17435 * libgcov.c (gcov_exit): Support relative profile paths.
17436 * doc/invoke.texi (-fprofile-dir): Update for above change.
17437
17438 2011-05-13 Richard Guenther <rguenther@suse.de>
17439
17440 * gimple.c (gimple_canonical_types_compatible_p): Do not use
17441 type-pair caching, do not compare hashes.
17442
17443 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
17444
17445 PR middle-end/48965
17446 * tree-cfg.c (edge_to_cases_cleanup): Return true.
17447 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
17448
17449 2011-05-13 Kai Tietz <ktietz@redhat.com>
17450
17451 * gimplify.c (gimplify_expr): Make sure operand is boolified.
17452 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17453 compatible type for TRUTH_NOT_EXPR.
17454
17455 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
17456
17457 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17458 (ix86_hard_regno_mode_ok): Change return value to bool. Use
17459 can_create_pseudo_p ().
17460
17461 2011-05-13 Richard Guenther <rguenther@suse.de>
17462
17463 PR lto/48978
17464 * gimple.c (iterative_hash_gimple_type): Revert change in
17465 pointer target and function result and argument hashing.
17466
17467 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
17468
17469 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17470 (*movxf_internal_nointeger): Ditto.
17471 (*movdf_internal_rex64): Ditto.
17472 (*movdf_internal): Ditto.
17473 (*movdf_internal_nointeger): Ditto.
17474 (*movsf_internal): Ditto.
17475 (sincos splitters): Use can_create_pseudo ().
17476
17477 2011-05-13 Joseph Myers <joseph@codesourcery.com>
17478
17479 * config/i386/i386-opts.h: New.
17480 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17481 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17482 ix86_section_threshold): Remove.
17483 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
17484 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17485 OPT_mbranch_cost_.
17486 (ix86_option_override_internal): Don't decode strings for options
17487 other than -march=, -mtune= and -mfpmath=. Don't allow for
17488 __attribute__ uses in remaining diagnostics for options with
17489 string arguments. Don't check for integer arguments being negative.
17490 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17491 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17492 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17493 ix86_branch_cost, ix86_section_threshold): Remove.
17494 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17495 HeaderInclude.
17496 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17497 but not Var.
17498 (masm=): Use Enum and Init.
17499 (asm_dialect): New Enum and EnumValue entries.
17500 (mbranch-cost=): Use UInteger.
17501 (mlarge-data-threshold=): Use UInteger and Init.
17502 (mcmodel=): Use Enum and Init.
17503 (cmodel): New Enum and EnumValue entries.
17504 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17505 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17506 mregparm=): Use UInteger.
17507 (mstringop-strategy=): Use Enum and Init.
17508 (stringop_alg): New Enum and EnumValue entries.
17509 (mtls-dialect=): Use Enum and Init.
17510 (tls_dialect): New Enum and EnumValue entries.
17511 (mabi=): Use Enum and Init.
17512 (calling_abi): New Enum and EnumValue entries.
17513 (mveclibabi=): Use Enum and Init.
17514 (ix86_veclibabi): New Enum and EnumValue entries.
17515
17516 2011-05-13 Nick Clifton <nickc@redhat.com>
17517
17518 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17519 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17520
17521 2011-05-13 Kai Tietz <ktietz@redhat.com>
17522
17523 PR middle-end/48984
17524 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17525 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17526 (gimple_boolify): Check for cast for boolean_type_node instead for
17527 BOOLEAN_TYPE.
17528
17529 2011-05-13 Richard Guenther <rguenther@suse.de>
17530
17531 PR tree-optimization/48172
17532 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17533 multiplying by number of iterations for equal step.
17534 (vect_create_cond_for_alias_checks): Likewise.
17535
17536 2011-05-13 Andreas Schwab <schwab@redhat.com>
17537
17538 * configure.ac: Use AS_HELP_STRING throughout.
17539 * configure: Regenerate.
17540
17541 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
17542
17543 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17544 (ix86_emit_restore_regs_using_mov): Likewise.
17545 (ix86_emit_restore_sse_regs_using_mov): Likewise.
17546
17547 2011-05-12 Anatoly Sokolov <aesok@post.ru>
17548
17549 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17550 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17551 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17552 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17553 RTX_OK_FOR_OLO10_P): ...here.
17554 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17555 SYMBOLIC_CONST.
17556
17557 2011-05-12 Kai Tietz <ktietz@redhat.com>
17558
17559 * gimplify.c (gimple_boolify): Re-boolify expression
17560 arguments even if expression type is of kind BOOLEAN_TYPE.
17561 (gimplify_boolean_expr): Removed.
17562 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17563 and XOR. Additional take care that we keep expression's type.
17564 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17565 of TRUTH_AND|OR|XOR_EXPR.
17566
17567 2011-05-12 Jakub Jelinek <jakub@redhat.com>
17568
17569 PR tree-optimization/48975
17570 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17571 on all bbs here and free and clear ifc_bbs at the end.
17572
17573 2011-05-12 Richard Guenther <rguenther@suse.de>
17574
17575 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17576 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
17577 until after simple checks.
17578 (gimple_types_compatible_p): Likewise.
17579 (iterative_hash_gimple_type): Always hash pointer targets
17580 and function return and argument types.
17581 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17582 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
17583 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17584 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
17585 completely in the simple compare section.
17586 (gimple_register_canonical_type): Query the cache again after
17587 registering.
17588
17589 2011-05-12 Richard Guenther <rguenther@suse.de>
17590
17591 PR tree-optimization/48172
17592 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17593 the number of iterations from the segment size calculation.
17594 (vect_create_cond_for_alias_checks): Adjust.
17595
17596 2011-05-12 Jakub Jelinek <jakub@redhat.com>
17597
17598 PR debug/48967
17599 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17600 if validate_subreg fails.
17601
17602 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
17603
17604 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17605 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17606 early.
17607
17608 2011-05-12 DJ Delorie <dj@redhat.com>
17609
17610 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17611 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17612 created builtin into rx_builtins array.
17613 (rx_builtin_decl): New function.
17614 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
17615
17616 2011-05-12 DJ Delorie <dj@redhat.com>
17617 Nick Clifton <nickc@redhat.com>
17618
17619 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17620 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17621 (rx_is_legitimate_address): Add pre-decrement and post-increment
17622 addressing in HImode and QImode. Fix test for out of range
17623 REG+INT addressing.
17624 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17625 (rx_align_for_label): Test label before extracting its usage count.
17626 (rx_adjust_insn_lengths): Fix selection of insn codes.
17627 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17628
17629 2011-05-11 Jason Merrill <jason@redhat.com>
17630
17631 * tree.c (type_hash_canon): Use struct tree_type_non_common.
17632
17633 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
17634
17635 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
17636 reindent the subsequent block.
17637
17638 2011-05-11 Satoru Takabayashi <satorux@google.com>
17639 Paul Pluzhnikov <ppluzhnikov@google.com>
17640
17641 * doc/install.texi (Configuration): Document --with-linker-hash-style.
17642 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
17643 * config.in: Add LINKER_HASH_STYLE.
17644 * configure.ac: Add --with-linker-hash-style.
17645 * configure: Regenerate.
17646
17647 2011-05-11 Richard Guenther <rguenther@suse.de>
17648
17649 PR middle-end/48964
17650 * gimple.c (iterative_hash_canonical_type): Fix typo.
17651
17652 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
17653
17654 * config/i386/i386.c (legitimize_tls_address)
17655 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17656 expanders directly for TARGET_GNU2_TLS. Determine pic and
17657 __tls_get_addr symbol reference here. Update call to
17658 gen_tls_global_dynamic_{32,64} for added arguments.
17659 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17660 expanders directly for TARGET_GNU2_TLS. Determine
17661 __tls_get_addr symbol reference here. Update call to
17662 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
17663 unique UNSPEC REG_EQUIV to libcall block.
17664 (ix86_tls_get_addr): Declare static.
17665 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
17666 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
17667 Do not determine pic and __tls_get_addr symbol reference here. Do not
17668 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
17669 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
17670 (tls_global_dynamic_64): Add operand 2. Do not determine
17671 __tls_get_addr symbol reference here. Do not call
17672 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
17673 (tls_local_dynamic_base64): Ditto for operand 1.
17674
17675 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
17676
17677 * function.c (expand_function_start): Initialize stack_check_probe_note
17678 only if the generic stack checking mechanism is used.
17679
17680 2011-05-11 Richard Guenther <rguenther@suse.de>
17681
17682 PR tree-optimization/15256
17683 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
17684 (A & B) | C, combine (A op CST1) op CST2.
17685 (tree_ssa_forward_propagate_single_use_vars): Only bother to
17686 visit assigns that have uses.
17687
17688 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
17689
17690 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
17691 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
17692 (unpack_ts_type_common_value_fields): ...this. Update comment.
17693 (unpack_value_fields): Adjust for renaming.
17694 (lto_input_ts_type_tree_pointers): Split into...
17695 (lto_input_ts_type_common_tree_pointer): ...this and...
17696 (lto_input_ts_type_non_common_tree_pointers): ...this.
17697 (lto_input_tree_pointers): Adjust for above split.
17698 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
17699 (pack_ts_type_common_value_fields): ...this. Update comment.
17700 (lto_output_ts_type_tree_pointers): Split into...
17701 (lto_output_ts_type_common_tree_pointers): ...this and...
17702 (lto_output_ts_type_non_common_tree_pointers): ...this.
17703 (lto_output_tree_pointers): Adjust for above split.
17704 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
17705 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
17706 * stor-layout.c (vector_type_mode): Adjust location of mode field.
17707 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
17708 Define.
17709 (struct tree_type): Split into...
17710 (struct tree_type_common: ...this and...
17711 (struct tree_type_with_lang_specific): ...this and...
17712 (struct tree_type_non_common): ...this. Adjust accessor macros
17713 accordingly.
17714 (TYPE_VALUES_RAW): Define.
17715 (union tree_node): Update for above changes.
17716 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
17717 TS_TYPE_NON_COMMON.
17718 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
17719 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
17720 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
17721 * treestructu.def (TS_TYPE): Remove.
17722 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
17723 Define.
17724
17725 2011-05-11 Jakub Jelinek <jakub@redhat.com>
17726
17727 PR debug/48159
17728 * tree-ssa.c (reset_debug_uses): New function.
17729 * tree-flow.h (reset_debug_uses): New prototype.
17730 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
17731 * tree-loop-distribution.c (generate_loops_for_partition): Call
17732 reset_debug_uses on the stmts that will be removed. Keep around
17733 all debug stmts, don't count them as bits in partition bitmap.
17734 (generate_builtin): Don't count debug stmts or labels as bits in
17735 partition bitmap.
17736
17737 2011-05-11 Richard Guenther <rguenther@suse.de>
17738
17739 * gimple.c (gimple_type_hash_1): Merge with ...
17740 (gimple_type_hash): ... this.
17741 (gtc_visit): Remove mode parameter and simplify accordingly.
17742 (gimple_types_compatible_p_1): Likewise.
17743 (gimple_types_compatible_p): Likewise.
17744 (iterative_hash_gimple_type): Likewise.
17745 (visit): Likewise.
17746 (gimple_type_eq): Adjust.
17747
17748 2011-05-11 Revital Eres <revital.eres@linaro.org>
17749
17750 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
17751 enters the branch create an anti edge in the opposite direction
17752 to prevent the creation of reg-moves.
17753 * modulo-sched.c: Adjust comment to reflect the fact we are
17754 scheduling closing branch.
17755 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
17756 (stage_count): New field in struct partial_schedule.
17757 (calculate_stage_count): New function.
17758 (normalize_sched_times): Rename to reset_sched_times and handle
17759 incrementing the sched time of the nodes by a constant value
17760 passed as parameter.
17761 (duplicate_insns_of_cycles): Skip closing branch.
17762 (sms_schedule_by_order): Schedule closing branch.
17763 (ps_insn_find_column): Handle closing branch.
17764 (sms_schedule): Call reset_sched_times and adjust the code to
17765 support scheduling of the closing branch.
17766 (ps_insert_empty_row): Update calls to normalize_sched_times
17767 and rotate_partial_schedule functions.
17768
17769 2011-05-11 Richard Guenther <rguenther@suse.de>
17770
17771 PR middle-end/48953
17772 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
17773
17774 2011-05-11 Joseph Myers <joseph@codesourcery.com>
17775
17776 * opts.c (finish_options): Move warning settings from process_options.
17777 * toplev.c (process_options): Move warning settings to finish_options.
17778
17779 2011-05-11 Richard Guenther <rguenther@suse.de>
17780
17781 PR tree-optimization/18041
17782 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
17783 (simplify_bitwise_binary): ... this. Handle operand conversions
17784 by applying them to the result instead.
17785 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
17786
17787 2011-05-11 Richard Guenther <rguenther@suse.de>
17788
17789 * gimple.c (gimple_canonical_types_compatible_p): Split out
17790 from gimple_types_compatible_p and friends. Do not recurse
17791 to pointed-to types.
17792 (gimple_canonical_type_eq): Use it.
17793 (iterative_hash_canonical_type): Split out from
17794 iterative_hash_gimple_type and friends. Do not recurse
17795 to pointed-to types.
17796 (gimple_canonical_type_hash): Use it, allocate the hash here.
17797
17798 2011-05-11 Revital Eres <revital.eres@linaro.org>
17799
17800 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
17801 recognizing doloop.
17802
17803 2011-05-11 Revital Eres <revital.eres@linaro.org>
17804
17805 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
17806 instead of PREV_INSN.
17807
17808 2011-05-11 Revital Eres <revital.eres@linaro.org>
17809
17810 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
17811 * loop-doloop.c (doloop_condition_get): Likewise.
17812 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
17813 (doloop_end): New.
17814 * config/arm/arm.md (*addsi3_compare0): Remove "*".
17815
17816 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
17817
17818 * tree.def (CASE_LABEL_EXPR): Add an operand.
17819 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
17820
17821 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17822
17823 * c-decl.c (c_override_global_bindings_to_false): Remove.
17824 (global_bindings_p): Don't check
17825 c_override_global_bindings_to_false.
17826 * c-tree.h (c_override_global_bindings_to_false): Remove.
17827 * c-typeck.c (composite_type): Don't set
17828 c_override_global_bindings_to_false.
17829
17830 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
17831
17832 PR target/48857, 48495
17833 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
17834 (VSX_MODE): Ditto.
17835 (VSX_MOVE_MODE): Ditto.
17836 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
17837 VSX vector types. Add V2DImode.
17838 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
17839 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
17840 (MODES_TIEABLE_P): Ditto.
17841
17842 * config/rs6000/rs6000.c (rs6000_emit_move): Use
17843 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
17844 VSX_VECTOR_MODE.
17845 (init_cumulative_args): Ditto.
17846 (rs6000_function_arg_boundary): Ditto.
17847 (rs6000_function_arg_advance_1): Ditto.
17848 (rs6000_function_arg): Ditto.
17849 (rs6000_function_ok_for_sibcall): Ditto.
17850 (emit_frame_save): Ditto.
17851 (rs6000_function_value): Ditto.
17852 (rs6000_libcall_value): Ditto.
17853
17854 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17855
17856 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17857 i386/darwin-lib.h to $libgcc_tm_file.
17858 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
17859
17860 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17861
17862 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
17863
17864 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17865
17866 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
17867 * config/rs6000/rs6000-tables.opt: New file (generated).
17868 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
17869 rs6000/rs6000-tables.opt to extra_options.
17870 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
17871 * config/rs6000/rs6000.c (rs6000_select): Remove.
17872 (processor_target_table): Move contents to rs6000-cpus.def.
17873 (darwin_rs6000_override_options): Check
17874 global_options_set.x_rs6000_cpu_index instead of
17875 rs6000_select[1].string.
17876 (rs6000_option_override_internal): Likewise.
17877 (rs6000_handle_option): Don't assert that global structures are in
17878 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
17879 (rs6000_default_cpu): New variable.
17880 (rs6000_file_start): Set it instead of local default_cpu. Check
17881 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
17882 global_options_set.x_rs6000_tune_index instead of rs6000_select.
17883 (rs6000_darwin_file_start): Check rs6000_default_cpu and
17884 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
17885 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
17886 rs6000_select): Remove.
17887 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
17888 Remove.
17889 (mcpu=, mtune=): Use Var, Init, Enum and Save.
17890 * config/rs6000/t-rs6000
17891 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
17892 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17893 global_options_set.x_rs6000_cpu_index instead of
17894 rs6000_select[1].string.
17895 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
17896 global_options_set.x_rs6000_cpu_index instead of
17897 rs6000_select[1].string.
17898
17899 2011-05-10 Joseph Myers <joseph@codesourcery.com>
17900
17901 * config.gcc (libgcc_tm_file): Define instead of including files
17902 from ../../libgcc/config/ in tm_file.
17903 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
17904 * configure: Regenerate.
17905 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
17906 libgcc_tm.h, cs-libgcc_tm.h): New.
17907 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
17908 (clean): Remove libgcc_tm.h.
17909 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
17910 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
17911 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
17912
17913 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
17914
17915 PR target/48896
17916 * config/avr/avr.c (avr_ret_register): Return unsigned int
17917 instead of int.
17918 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
17919 it to avr_libcall_value.
17920 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
17921 expand_expr.
17922 (avr_expand_binop_builtin): Ditto.
17923 (avr_expand_unop_builtin): Ditto.
17924
17925 2011-05-10 DJ Delorie <dj@redhat.com>
17926
17927 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
17928 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
17929 * config/rx/rx.c (rx_align_for_label): Add label and
17930 uses_threshold parameters. Do not align when the label is not
17931 used enough.
17932 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
17933
17934 2011-05-10 Richard Guenther <rguenther@suse.de>
17935
17936 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
17937 a series of conversions and apply foldings similar to what
17938 fold-const does.
17939 (tree_ssa_forward_propagate_single_use_vars): Call it.
17940
17941 2011-05-10 Jakub Jelinek <jakub@redhat.com>
17942
17943 PR tree-optimization/48611
17944 PR tree-optimization/48794
17945 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
17946 referenced from RESX or EH_DISPATCH arguments.
17947
17948 PR debug/48928
17949 * dfp.c (decimal_to_decnumber): Handle conversion from
17950 dconst{1,2,m1,half}.
17951
17952 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17953
17954 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
17955 for !flag_prefer_avx128.
17956 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
17957
17958 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
17959
17960 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
17961 (fold_ternary_loc): Use expr_location_or.
17962
17963 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
17964
17965 PR debug/48853
17966 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
17967 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
17968 Pmode and mem_mode is not VOIDmode.
17969
17970 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
17971
17972 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
17973 TYPE_QUAL_RESTRICT): Convert to enum.
17974
17975 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17976
17977 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
17978 (const_pow2_1_to_8_operand): Ditto.
17979 (const_pow2_1_to_128_operand): Ditto.
17980 (const_pow2_1_to_32768_operand): Ditto.
17981 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
17982 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
17983 in insn constraint to check integer value of operand 3.
17984 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
17985
17986 (PINSR_MODE): New mode iterator.
17987 (sse2p4_1): New mode attribute.
17988 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
17989 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
17990 iterator. Use const_int_operand instead of
17991 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
17992 exact_log2 in insn constraint to check integer value of operand 3.
17993
17994 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17995
17996 * config/i386/sse.md (blendbits): Remove mode attribute.
17997 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
17998 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
17999 Check integer value of operand 3 in insn constraint.
18000
18001 2011-05-09 Richard Guenther <rguenther@suse.de>
18002
18003 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18004 for diagnostics.
18005 (lto_symtab_merge): Likewise. Do not register types here.
18006 (lto_symtab_merge_decls_2): Likewise.
18007 (lto_symtab_merge_decls_1): Likewise.
18008 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18009 * gimple.c (enum gtc_mode): Declare.
18010 (gimple_types_compatible_p): Make static.
18011
18012 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18013
18014 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18015 temporary register to match Pmode.
18016
18017 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18018
18019 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18020 and *vec_concatv4si_1_avx.
18021
18022 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18023
18024 PR rtl-optimization/48927
18025 * ira-conflicts.c (commutative_constraint_p): Use
18026 recog_data.alternative_enabled_p to disable alternatives where
18027 "enabled" attribute is false.
18028 (get_dup_num): Ditto.
18029 * ira-lives.c (single_reg_class): Ditto.
18030 (ira_implicitly_set_insn_hard_regs): Ditto.
18031
18032 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
18033
18034 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18035 (dataflow_set_preserve_mem_locs): Likewise.
18036
18037 2011-05-09 Philipp Thomas <pth@suse.de>
18038
18039 * config/mep/mep.c (mep_validate_vliw): Syntax description
18040 should not be translated.
18041
18042 2011-05-09 Joseph Myers <joseph@codesourcery.com>
18043
18044 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18045 * config/mips/mips-tables.opt: New file (generated).
18046 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18047 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18048 MIPS_ARCH_OPTION_NATIVE): Define.
18049 * config/mips/mips.c (mips_cpu_info_table): Move contents to
18050 mips-cpus.def.
18051 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18052 mips_parse_cpu): Remove.
18053 (mips_cpu_info_from_opt, mips_default_arch): New.
18054 (mips_handle_option): Don't assert that global structures are in
18055 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18056 (mips_option_override): Use new variables and functions to set
18057 state of these options. Use strcmp to check for individual CPU names.
18058 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18059 definition.
18060 * config/mips/mips.opt (march=): Use ToLower and Enum.
18061 (mips): Use ToLower, Enum and Var.
18062 (mtune=): Use ToLower and Enum.
18063 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18064
18065 2011-05-08 Jan Hubicka <jh@suse.cz>
18066
18067 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18068 Arrange type pairs to be UID ordered.
18069 (gimple_lookup_type_leader): Make inline.
18070
18071 2011-05-09 Nick Clifton <nickc@redhat.com>
18072
18073 PR target/48899
18074 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18075 PROCESSOR_DEFAULT.
18076
18077 PR target/48897
18078 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18079 variable 's'.
18080
18081 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
18082
18083 * combine.c (simplify_comparison): Abstract out parts into...
18084 (simplify_compare_const): ... new function.
18085 (try_combine): Generalize parallel arithmetic/compare combining
18086 to call simplify_compare_const() and CANONICALIZE_COMPARE().
18087
18088 2011-05-08 Jan Hubicka <jh@suse.cz>
18089
18090 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18091 (cgraph_create_virtual_clone): Call hooks once virtual clone
18092 is finished.
18093 * cgraph.h (cgraph_clone_node): Update prototype.
18094 * ipa-cp.c (ipcp_estimate_growth): Use
18095 estimate_ipcp_clone_size_and_time.
18096 * ipa-inline-transform.c (clone_inlined_nodes): Update.
18097 * lto-cgraph.c (input_node): Update.
18098 * ipa-inline.c (recursive_inlining): Update.
18099 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18100 (evaluate_conditions_for_known_args): Break out from ...
18101 (evaluate_conditions_for_edge): ... here.
18102 (evaluate_conditions_for_ipcp_clone): New function.
18103 (inline_node_duplication_hook): Update clone summary based
18104 on parameter map.
18105 (estimate_callee_size_and_time): Rename to ...
18106 (estimate_node_size_and_time): take NODE instead of EDGE;
18107 take POSSIBLE_TRUTHS as argument.
18108 (estimate_callee_size_and_time): Update.
18109 (estimate_ipcp_clone_size_and_time): New function.
18110 (do_estimate_edge_time): Update.
18111
18112 2011-05-08 Richard Guenther <rguenther@suse.de>
18113
18114 PR middle-end/48908
18115 PR middle-end/48905
18116 * expmed.c (expand_shift_1): Compute adjusted constant shift
18117 amount manually.
18118
18119 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18120
18121 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18122
18123 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18124
18125 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18126
18127 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
18128
18129 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18130
18131 2011-05-07 Jan Hubicka <jh@suse.cz>
18132
18133 * ipa-inline-transform.c (inline_call): Account when program size
18134 decreases.
18135 * ipa-inline.c (relative_time_benefit): New function.
18136 (edge_badness): Reorganize to be power 2 based; fix thinko when
18137 computing badness for negative growth; update comments to match
18138 reality; better dumps.
18139
18140 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
18141
18142 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18143 type to bool and adjust comment.
18144 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18145 (fold_mathfn_compare): Remove calls to global_bindings_p.
18146 (fold_inf_compare): Likewise.
18147 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18148 * c-tree.h (global_bindings_p): Adjust prototype.
18149 * c-decl.c (global_bindings_p): Return bool and simplify.
18150
18151 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
18152
18153 PR tree-optimization/48837
18154 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18155 when accumulator transformation is performed.
18156
18157 2011-05-06 Jan Hubicka <jh@suse.cz>
18158
18159 * i386.h (ix86_tune_indices): Add
18160 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18161 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18162 * i386.c (initial_ix86_tune_features): Add
18163 X86_SOFTARE_PREFETCHING_BENEFICIAL.
18164 (software_prefetching_beneficial_p): Remove predicate.
18165 (ix86_option_override_internal): Use new macro.
18166
18167 2011-05-06 Jan Hubicka <jh@suse.cz>
18168
18169 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18170
18171 2011-05-06 Jan Hubicka <jh@suse.cz>
18172
18173 * cgraph.c (cgraph_add_thunk): Create real function node instead
18174 of alias node; finalize it and mark needed/reachale; arrange visibility
18175 to be right and add it into the corresponding same comdat group list.
18176 (dump_cgraph_node): Dump thunks.
18177 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18178 cgraph_function_with_gimple_body_p,
18179 cgraph_first_function_with_gimple_body,
18180 cgraph_next_function_with_gimple_body): New functions.
18181 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18182 New macros.
18183 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18184 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18185 * cgraphunit.c (cgraph_finalize_function): Only look into possible
18186 devirtualization when optimizing.
18187 (verify_cgraph_node): Verify thunks.
18188 (cgraph_analyze_function): Analyze thunks.
18189 (cgraph_mark_functions_to_output): Output thunks only in combination
18190 with function they are assigned to.
18191 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18192 alias into normal node.
18193 (assemble_thunks): New functoin.
18194 (cgraph_expand_function): Use it.
18195 * lto-cgraph.c (lto_output_node): Stream thunks.
18196 (input_overwrite_node): Stream in thunks.
18197 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18198 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18199 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18200 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18201 (inline_analyze_function): Do not care about thunk jump functions.
18202 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18203 * ipa-prop.c (ipa_prop_write_jump_functions): Use
18204 cgraph_function_with_gimple_body_p.
18205 * passes.c (do_per_function_toporder): Use
18206 cgraph_function_with_gimple_body_p.
18207 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18208 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18209 (function_called_by_processed_nodes_p): Likewise.
18210
18211 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18212
18213 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18214 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18215 entries.
18216 (mabi=): Replace with separate entries for mabi=altivec,
18217 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18218 mabi=ieeelongdouble and mabi=ibmlongdouble.
18219 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18220 check for -mabi=spe without SPE ABI support here.
18221 (rs6000_handle_option): Replace OPT_mabi_ handling with
18222 OPT_mabi_altivec and OPT_mabi_spe handling.
18223
18224 2011-05-06 Cary Coutant <ccoutant@google.com>
18225
18226 * dwarf2out.c (contains_subprogram_definition): New function.
18227 (should_move_die_to_comdat): Call it.
18228
18229 2011-05-06 Jeff Law <law@redhat.com>
18230
18231 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18232 remove_ctrl_stmt_and_useless_edges.
18233 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18234 (fixup_template_block, thread_single_edge): Likewise.
18235 (mark_threaded_blocks): Use THREAD_TARGET.
18236
18237 2011-05-06 Alan Modra <amodra@gmail.com>
18238
18239 PR target/48900
18240 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18241 const0_rtx as the arg to the dummy __tls_get_addr libcall.
18242
18243 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18244
18245 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18246 constraint modifier to "r".
18247
18248 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18249
18250 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18251 fall through for OPT_mcmodel_.
18252
18253 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18254
18255 * config/s390/s390.c (s390_asm_trampoline_template): Comment
18256 instruction sizes.
18257 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18258
18259 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18260
18261 PR target/47930
18262 * config/arm/arm.opt (marm): Document it.
18263 (mthumb): Reject negative variant.
18264
18265 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18266
18267 PR target/48898
18268 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18269 Fix typo in "ccvt" variable name.
18270
18271 2011-05-06 Tristan Gingold <gingold@adacore.com>
18272
18273 PR target/48895
18274 * config/vms/vms-ar.c (main): Remove cwd variable.
18275
18276 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18277
18278 PR debug/48902
18279 * var-tracking.c (prepare_call_arguments): Move else before #endif.
18280
18281 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
18282
18283 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18284 * gimplify.c (gimplify_switch_expr): Likewise.
18285 * omp-low.c (expand_omp_sections): Likewise.
18286 * tree-eh.c (lower_try_finally_switch): Likewise.
18287 (lower_eh_dispatch): Likewise.
18288 * tree.h (build_case_label): Declare.
18289 * tree.c (build_case_label): Define.
18290
18291 2011-05-05 Jason Merrill <jason@redhat.com>
18292
18293 PR c++/40975
18294 * tree-inline.c (copy_tree_r): Use copy_statement_list.
18295 (copy_statement_list): Don't recurse.
18296 * stor-layout.c (copy_self_referential_tree_r): Don't allow
18297 STATEMENT_LIST.
18298
18299 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18300
18301 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18302 through from -mfpu= handling.
18303 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18304
18305 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
18306
18307 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18308 POST_MODIFY.
18309
18310 2011-05-05 Steve Ellcey <sje@cup.hp.com>
18311
18312 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18313 for 11.31.
18314 (hppa[12]*-*-hpux11*): Ditto.
18315 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18316 * config/ia64/hpux-unix2003.h: New.
18317 * config/pa/pa-hpux1131.opt: New.
18318 * config/pa/pa-hpux1131.h: New.
18319 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18320 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18321 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18322
18323 2011-05-05 Jakub Jelinek <jakub@redhat.com>
18324
18325 PR debug/48853
18326 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18327 instead of mode as 3rd argument to recursive call.
18328 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18329 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18330 VOIDmode.
18331 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18332 don't give up if mode is Pmode and mem_mode is not VOIDmode.
18333 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18334 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18335
18336 2011-05-05 Julian Brown <julian@codesourcery.com>
18337
18338 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18339 parenthesis in D-register case.
18340
18341 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18342
18343 * opt-functions.awk (var_type_struct): Handle Enum options.
18344 * optc-gen.awk: Don't check range of variables of character type.
18345 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18346 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18347 rs6000_sdata_name, rs6000_explicit_options): Remove.
18348 (rs6000_option_override_internal): Check for -malign-power here.
18349 Use global_options_set instead of rs6000_explicit_options.
18350 (rs6000_parse_fpu_option): Remove.
18351 (rs6000_handle_option): Access variables via opts and opts_set
18352 pointers. Use error_at and warning_at. Add fall-through
18353 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18354 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18355 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18356 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18357 here. Don't use rs6000_parse_fpu_option.
18358 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18359 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18360 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18361 (mrecip=): Use Var.
18362 (mspe): Use Var and Save.
18363 (mtraceback=): Use Enum and Var.
18364 (rs6000_traceback_type): New Enum and EnumValue entries.
18365 (mfloat-gprs=): Use Enum, Var and Save.
18366 (rs6000_float_gprs): New Enum and EnumValue entries.
18367 (mlong-double-): use Var and Save.
18368 (msched-costly-dep=, minsert-sched-nops=): Use Var.
18369 (malign-): Use Enum and Var.
18370 (rs6000_alignment_flags): New Enum and EnumValue entries.
18371 (mfpu=): Use Enum.
18372 (fpu_type_t): New Enum and EnumValue entries.
18373 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18374 global_options_set instead of rs6000_explicit_options.
18375 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18376 global_options_set instead of rs6000_explicit_options.
18377 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18378 global_options_set instead of rs6000_explicit_options.
18379 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18380 global_options_set instead of rs6000_explicit_options.
18381 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18382 global_options_set instead of rs6000_explicit_options.
18383 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18384 global_options_set instead of rs6000_explicit_options.
18385 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18386 definition.
18387 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18388 global_options_set instead of rs6000_explicit_options.
18389 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18390 (rs6000_cmodel): New Enum and EnumValue entries.
18391 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18392 global_options_set instead of rs6000_explicit_options.
18393 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18394 (mtls-size=): Use Enum and Var.
18395 (rs6000_tls_size): New Enum and EnumValue entries.
18396
18397 2011-05-05 Michael Matz <matz@suse.de>
18398
18399 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18400 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18401 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18402 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18403 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18404 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18405 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18406 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18407 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18408 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18409 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18410 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18411 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18412 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18413 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18414 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18415
18416 2011-05-05 Richard Guenther <rguenther@suse.de>
18417
18418 * expmed.c (expand_variable_shift): Rename to ...
18419 (expand_shift_1): ... this. Take an expanded shift amount.
18420 For rotates recurse directly not building trees for the shift amount.
18421 (expand_variable_shift): Wrap around expand_shift_1.
18422 (expand_shift): Adjust.
18423
18424 2011-05-05 Jakub Jelinek <jakub@redhat.com>
18425
18426 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18427
18428 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
18429
18430 * tree.h (get_pending_sizes): Remove prototype.
18431 (put_pending_size): Likewise.
18432 (put_pending_sizes): Likewise.
18433 * stor-layout.c (pending_sizes): Delete.
18434 (get_pending_sizes): Likewise.
18435 (put_pending_size): Likewise.
18436 (put_pending_sizes): Likewise.
18437 (variable_size): Do not call put_pending_size and tidy up.
18438 * function.h (struct function): Remove dont_save_pending_sizes_p.
18439 * lto-streamer-in.c (input_function): Do not stream it.
18440 * lto-streamer-out.c (output_function): Likewise.
18441 * tree-inline.c (initialize_cfun): Do not copy it.
18442 * c-decl.c (store_parm_decls): Do not set it.
18443 * omp-low.c (create_task_copyfn): Likewise.
18444 * tree-optimize.c (tree_rest_of_compilation): Likewise.
18445
18446 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
18447
18448 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
18449 conditions.
18450 (*movdf_internal): Ditto.
18451 (*movdf_internal_nointeger): Ditto.
18452 (*movsf_internal): Ditto.
18453
18454 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18455
18456 * c-decl.c (finish_decl): Don't call get_pending_sizes.
18457 (grokparm): Add parameter expr. Pass it to grokdeclarator.
18458 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
18459 (c_variable_size): Remove.
18460 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
18461 call put_pending_sizes.
18462 (get_parm_info): Add parameter expr. Use it to set
18463 arg_info->pending_sizes.
18464 (store_parm_decls): Use arg_info->pending_sizes instead or calling
18465 get_pending_sizes.
18466 * c-parser.c (c_parser_parms_declarator): Update call to
18467 c_parser_parms_list_declarator.
18468 (c_parser_parms_list_declarator): Take parameter expr. Update
18469 call to push_parm_decl. Update recursive call. Don't call
18470 get_pending_sizes. Update calls to get_parm_info.
18471 (c_parser_objc_method_definition): Update calls to
18472 c_parser_objc_method_decl and objc_start_method_definition.
18473 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18474 (c_parser_objc_method_decl): Add parameter expr. Update call to
18475 grokparm.
18476 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18477 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18478 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18479
18480 2011-05-05 Michael Hope <michael.hope@linaro.org>
18481
18482 PR pch/45979
18483 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18484 __ARM_EABI__ hosts.
18485
18486 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18487
18488 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18489 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18490 (spu_output_mi_thunk): New function.
18491
18492 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18493
18494 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18495 targetm.asm_out.print_operand.
18496 * config/sol2.c: Include target.h.
18497
18498 2011-05-04 Jan Hubicka <jh@suse.cz>
18499
18500 * ipa-inline.c (reset_edge_caches): New function.
18501 (update_caller_keys): Add check_inlinablity_for; do not
18502 reset edge caches; remove now unnecesary loop.
18503 (update_callee_keys): Add comments; reset node_growth_cache of callee.
18504 (update_all_callee_keys): Likewise.
18505 (inline_small_functions): Sanity check cache; update code
18506 recomputing it.
18507
18508 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
18509
18510 PR rtl-optimization/47612
18511 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18512 as the last insn of the sequence to be moved.
18513
18514 2011-05-04 Tobias Burnus <burnus@net-b.de>
18515
18516 PR fortran/48864
18517 * doc/invoke.texi (Ofast): Document that it
18518 enables Fortran's -fno-protect-parens.
18519
18520 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
18521
18522 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18523
18524 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
18525
18526 * stor-layout.c (variable_size): Do not issue errors.
18527
18528 2011-05-04 Richard Guenther <rguenther@suse.de>
18529
18530 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18531 for array-ref indices.
18532 (tree_coverage_counter_addr): Likewise.
18533 (build_fn_info_type): Use size_int for index types.
18534 (build_gcov_info): Likewise.
18535
18536 2011-05-04 Richard Guenther <rguenther@suse.de>
18537
18538 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18539 to build_int_cst.
18540 * c-typeck.c (really_start_incremental_init): Use bitsize_int
18541 for constructor indices.
18542 (push_init_level): Likewise.
18543
18544 2011-05-04 Richard Guenther <rguenther@suse.de>
18545
18546 * explow.c (promote_mode): Move variable declarations before code.
18547
18548 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
18549
18550 * tree.h (build_function_type_array): Declare.
18551 (build_varargs_function_type_array): Declare.
18552 (build_function_type_vec, build_varargs_function_type_vec): Define.
18553 * tree.c (build_function_type_array_1): New function.
18554 (build_function_type_array): New function.
18555 (build_varargs_function_type_array): New function.
18556
18557 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
18558
18559 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18560 before setting STMT_VINFO_TYPE.
18561
18562 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18563
18564 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18565 instead of spu_pass_by_reference.
18566
18567 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18568
18569 * calls.c (emit_library_call_value_1): Invoke
18570 promote_function_mode hook on libcall arguments.
18571 * explow.c (promote_function_mode, promote_mode): Handle TYPE
18572 argument being NULL.
18573 * targhooks.c (default_promote_function_mode): Lisewise.
18574 * config/s390/s390.c (s390_promote_function_mode): Likewise.
18575 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18576
18577 * doc/tm.texi: Document that TYPE argument might be NULL.
18578
18579 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18580
18581 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18582
18583 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18584
18585 From Bernd Schmidt
18586 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18587
18588 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18589
18590 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18591 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18592 Move ...
18593 * mips-tfile.c: ... here.
18594 Don't include coretypes.h, tm.h, filenames.h.
18595 (saber_stop): Remove definition and all calls.
18596 [__SABER__]: Remove.
18597 (__LINE__): Remove default.
18598 (Size_t, Ptrdiff_t): Remove definitions.
18599 Replace by size_t, ptrdiff_t.
18600 [!MIPS_DEBUGGING_INFO]: Remove.
18601 (SHASH_SIZE, THASH_SIZE): Remove defaults.
18602 (progname): Add const.
18603 (STATIC): Remove.
18604 Replace all uses by static.
18605 (ALIGN_SYMTABLE_OFFSET): Remove default.
18606 * mips-tdump.c: Don't include coretypes.h, tm.h.
18607 Remove !MIPS_IS_STAB guard.
18608 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18609 $(TM_H), filenames.h dependencies.
18610 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18611
18612 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18613
18614 From Jie Zhang
18615 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18616 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18617
18618 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18619
18620 From Bernd Schmidt
18621 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18622 account and save/restore RETS.
18623 (PROFILE_BEFORE_PROLOGUE): Define.
18624 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
18625 the push insn to use predecrement.
18626
18627 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
18628
18629 From Jie Zhang
18630 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
18631
18632 2011-05-04 Nick Clifton <nickc@redhat.com>
18633
18634 * config/mn10300/mn10300.c: Include cfgloop.h.
18635 (DUMP): New macro.
18636 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
18637 Lcc or a FLcc insn into the instruction stream.
18638 (mn10300_block_contains_call): New function. Returns true if the
18639 given basic block contains a CALL insn.
18640 (mn10300_loop_contains_call_insn): New function. Returns true if
18641 the given loop contains a CALL insn.
18642 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
18643 to use the SETLB and Lcc or FLcc insns.
18644 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
18645 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
18646 * config/mn10300/mn10300.opt (msetlb): New option. Used to
18647 disable the SETLB optimization.
18648 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
18649 __SETLB__ or __NO_SETLB__.
18650 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
18651 (movsf_internal): Handle MDR register.
18652 (cmpsi): Make visible.
18653 (setlb): New pattern.
18654 (Lcc): New pattern.
18655 (FLcc): New pattern.
18656
18657 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
18658
18659 PR target/48860
18660 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
18661 for reg<->xmm moves.
18662 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
18663 (vec_concatv2di_rex64_sse): Ditto.
18664 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
18665 (*vec_extractv2di_1_rex64): Ditto.
18666
18667 Revert:
18668 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
18669
18670 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18671 reg<->xmm moves.
18672 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
18673
18674 2011-05-04 Richard Guenther <rguenther@suse.de>
18675
18676 * tree.h (int_const_binop): Remove notrunc argument.
18677 * fold-const.c (int_const_binop): Remove notrunc argument. Always
18678 create integer constants that are properly truncated.
18679 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
18680 (const_binop): Remove zero notrunc argument to int_const_binop.
18681 (size_binop_loc): Likewise.
18682 (fold_div_compare): Likewise.
18683 (maybe_canonicalize_comparison_1): Likewise.
18684 (fold_comparison): Likewise.
18685 (fold_binary_loc): Likewise.
18686 (multiple_of_p): Likewise.
18687 * expr.c (store_constructor): Likewise.
18688 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18689 (maybe_fold_stmt_addition): Likewise.
18690 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
18691 * stor-layout.c (layout_type): Likewise.
18692 * tree-data-ref.c (tree_fold_divides_p): Likewise.
18693 * tree-sra.c (build_ref_for_offset): Likewise.
18694 (build_user_friendly_ref_for_offset): Likewise.
18695 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
18696 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18697 * tree-ssa-loop-niter.c (inverse): Likewise.
18698 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18699 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
18700 * tree-switch-conversion.c (check_range): Likewise.
18701 (build_constructors): Likewise.
18702 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
18703 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
18704 (extract_range_from_assert): Likewise.
18705 (vrp_int_const_binop): Likewise.
18706 (extract_range_from_binary_expr): Likewise.
18707 (extract_range_from_unary_expr): Likewise.
18708 (check_array_ref): Likewise.
18709 (find_case_label_range): Likewise.
18710 (simplify_div_or_mod_using_ranges): Likewise.
18711 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
18712 comparing case labels for merging.
18713
18714 2011-05-03 Mark Wielaard <mjw@redhat.com>
18715
18716 * dwarf2out.c (debug_str_hash_forced): Removed.
18717 (gen_label_for_indirect_string): Removed.
18718 (get_debug_string_label): Removed.
18719 (AT_string_form): Generate label directly.
18720 (output_indirect_string): Test indirect_string_node for
18721 DW_FORM_strp instead of checking label and refcount.
18722 (prune_indirect_string): Removed.
18723 (prune_unused_types): Don't check debug_str_hash_forced or
18724 call prune_indirect_string.
18725
18726 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
18727
18728 PR other/48093
18729 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
18730
18731 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
18732
18733 PR debug/47994
18734 PR debug/47919
18735 * combine.c (try_combine): Skip debug insns at m_split tests.
18736
18737 2011-04-26 Mark Wielaard <mjw@redhat.com>
18738
18739 PR42288
18740 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
18741 when info_section_emitted.
18742
18743 2011-05-03 Joseph Myers <joseph@codesourcery.com>
18744
18745 * config/mips/mips-opts.h: New.
18746 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
18747 to mips-opts.h.
18748 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
18749 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
18750 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
18751 via opts pointer.
18752 * config/mips/mips.h (enum mips_code_readable_setting): Move to
18753 mips-opts.h.
18754 (mips_abi, mips_code_readable): Don't declare.
18755 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
18756 (mabi=): Use Enum and Var.
18757 (mips_abi): New Enum and EnumValue entries.
18758 (mcode-readable=): Use Enum and Var.
18759 (mips_code_readable_setting): New Enum and EnumValue entries.
18760 (mr10k-cache-barrier=): Use Enum and Var.
18761 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
18762
18763 2011-05-03 Jan Hubicka <jh@suse.cz>
18764
18765 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
18766 replace hash by pointer map.
18767 (cgraph_node_set_element_def, cgraph_node_set_element,
18768 const_cgraph_node_set_element, varpool_node_set_element_def,
18769 varpool_node_set_element, const_varpool_node_set_element): Remove.
18770 (free_cgraph_node_set, free_varpool_node_set): New function.
18771 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
18772 * tree-emutls.c: Free varpool node set.
18773 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
18774 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18775 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
18776 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18777 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
18778 Move here from ipa.c; implement using pointer_map
18779 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
18780 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
18781 debug_cgraph_node_set, varpool_node_set_new,
18782 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
18783 dump_varpool_node_set, debug_varpool_node_set):
18784 Move to ipa-uitls.c.
18785 * passes.c (ipa_write_summaries): Update.
18786
18787 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18788
18789 From Mike Frysinger:
18790 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
18791 bf542/bf544/bf547/bf548/bf549.
18792
18793 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
18794
18795 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
18796
18797 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18798
18799 From Bernd Schmidt:
18800 * config/bfin/bfin.md (MOVCC): New mode_macro.
18801 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
18802 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
18803 comments from generated assembly.
18804
18805 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18806
18807 From Bernd Schmidt
18808 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
18809 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
18810 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
18811 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
18812 * config/bfin/lib1funcs.asm (___muldi3): New function.
18813
18814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18815
18816 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
18817 build_function_type_list instead of build_function_type.
18818 Rearrange initialization of `args' to do so.
18819
18820 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18821
18822 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
18823 instead of build_function_type.
18824
18825 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18826
18827 * config/rs6000/rs6000.c (spe_init_builtins): Call
18828 build_function_type_list instead of build_function_type.
18829 (paired_init_builtins, altivec_init_builtins): Likewise.
18830 (builtin_function_type): Likewise.
18831
18832 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18833
18834 * config/sh/sh.c (sh_media_init_builtins): Call
18835 build_function_type_list instead of build_function_type.
18836
18837 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18838
18839 * config/sparc/sparc.c (sparc_file_end): Call
18840 build_function_type_list instead of build_function_type.
18841
18842 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18843
18844 * config/alpha/alpha.c (alpha_init_builtins): Call
18845 build_function_type_list instead of build_function_type.
18846
18847 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18848
18849 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
18850 build_function_type_list instead of build_function_type.
18851
18852 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18853
18854 * config/iq2000/i2000.c (iq2000_init_builtins): Call
18855 build_function_type_list instead of build_function_type.
18856 Delete `endlink' variable.
18857
18858 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18859
18860 * config/avr/avr.c (avr_init_builtins): Call
18861 build_function_type_list instead of build_function_type.
18862
18863 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18864
18865 * config/picochip/picochip.c (picochip_init_builtins): Call
18866 build_function_type_list instead of build_function_type.
18867 Delete `endlink' variable.
18868
18869 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
18870
18871 * config/bfin/bfin.c (bfin_init_builtins): Call
18872 build_function_type_list instead of build_function_type.
18873
18874 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18875
18876 From Bernd Schmidt
18877 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
18878 that's not CONST_INT. Seemingly redundant check is due to PR39768.
18879
18880 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18881
18882 From Jie Zhang:
18883 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
18884 libbffastfp overrides libgcc when -mfast-fp.
18885
18886 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18887
18888 Originally from Bernd Schmidt
18889 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
18890 * config/bfin/bfin.c (override_options): Test it and error if
18891 TARGET_FDPIC.
18892
18893 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
18894
18895 Originally From Bernd Schmidt
18896 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
18897 FD-PIC.
18898
18899 2011-05-03 Jeff Law <law@redhat.com>
18900
18901 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
18902 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
18903 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
18904 than accessing AUX field directly. Free the AUX field before
18905 clearing it.
18906 (thread_block, thread_through_loop_header): Likewise.
18907 (thread_single_edge, mark_threaded_blocks): Likewise.
18908 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
18909 (register_jump_thread): Do not attempt to thread to a NULL edge.
18910
18911 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
18912
18913 * function.c (init_function_start): Call decide_function_section.
18914 * varasm.c (decide_function_section): New function.
18915 (assemble_start_function): When not using
18916 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
18917 or first_function_block_is_cold.
18918 * rtl.h (decide_function_section): Declare.
18919
18920 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
18921 Jakub Jelinek <jakub@redhat.com>
18922
18923 PR target/48774
18924 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
18925 only succeed if req_mode is the same as set_mode.
18926
18927 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
18928
18929 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
18930 * genemit.c (gen_exp): Handle RETURN.
18931 * emit-rtl.c (verify_rtx_sharing): Likewise.
18932 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
18933 * rtl.c (copy_rtx): RETURN is shared.
18934 * rtl.h (enum global_rtl_index): Add GR_RETURN.
18935 (ret_rtx): New.
18936 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
18937 * config/s390/s390.c (s390_emit_epilogue): Likewise.
18938 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
18939 * config/cris/cris.c (cris_expand_return): Likewise.
18940 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
18941 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
18942 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
18943 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
18944 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
18945 Likewise.
18946 * config/v850/v850.c (expand_epilogue): Likewise.
18947 * config/bfin/bfin.c (bfin_expand_call): Likewise.
18948 * config/arm/arm.md (epilogue): Likewise.
18949 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
18950 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
18951 variable to ret_reg.
18952
18953 2011-05-03 Richard Guenther <rguenther@suse.de>
18954
18955 PR lto/48846
18956 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
18957 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
18958 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18959
18960 2011-05-03 Richard Guenther <rguenther@suse.de>
18961
18962 * c-decl.c (grokdeclarator): Instead of looking at
18963 TREE_OVERFLOW check if the constant fits in the index type.
18964
18965 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
18966
18967 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
18968 (vec_store_lanes<mode><mode>): Likewise.
18969
18970 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
18971
18972 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
18973 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
18974 convert_optab_index values.
18975 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
18976 * genopinit.c (optabs): Initialize the new optabs.
18977 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
18978 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
18979 (expand_STORE_LANES): New functions.
18980 * tree.h (build_array_type_nelts): Declare.
18981 * tree.c (build_array_type_nelts): New function.
18982 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
18983 (vect_model_load_cost): Likewise.
18984 (vect_store_lanes_supported, vect_load_lanes_supported)
18985 (vect_record_strided_load_vectors): Declare.
18986 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
18987 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
18988 (vect_transform_strided_load): Split out statement recording into...
18989 (vect_record_strided_load_vectors): ...this new function.
18990 * tree-vect-stmts.c (create_vector_array, read_vector_array)
18991 (write_vector_array, create_array_ref): New functions.
18992 (vect_model_store_cost): Add store_lanes_p argument.
18993 (vect_model_load_cost): Add load_lanes_p argument.
18994 (vectorizable_store): Try to use store-lanes functions for
18995 interleaved stores.
18996 (vectorizable_load): Likewise load-lanes and loads.
18997 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
18998 to vect_model_store_cost.
18999 (vect_build_slp_tree): Likewise vect_model_load_cost.
19000
19001 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
19002
19003 * hooks.h (hook_bool_mode_uhwi_false): Declare.
19004 * hooks.c (hook_bool_mode_uhwi_false): New function.
19005 * target.def (array_mode_supported_p): New hook.
19006 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19007 * doc/tm.texi: Regenerate.
19008 * stor-layout.c (mode_for_array): New function.
19009 (layout_type): Use it.
19010 * config/arm/arm.c (arm_array_mode_supported_p): New function.
19011 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19012
19013 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
19014
19015 PR target/48723
19016 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19017 for -fstack-check if the size to allocate is negative.
19018
19019 2011-05-02 Lawrence Crowl <crowl@google.com>
19020
19021 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19022 (timevar_cond_start): New for starting a timer only when it is not
19023 already running.
19024 (timevar_cond_stop): New for stopping a timer when it was not already
19025 running.
19026
19027 * timevar.c (timevar_stop): Enable start/stop timers to start again.
19028 (timevar_cond_start): New as above.
19029 (timevar_cond_stop): New as above.
19030
19031 * timevar.def: Add start/stop timers for compiler phases,
19032 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19033 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19034 and TV_PHASE_FINALIZE.
19035 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19036 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19037 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19038 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19039 Make unused TV_OVERLOAD into a start/stop timer.
19040
19041 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19042 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19043 to indicate that they are start/stop timers.
19044
19045 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19046 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19047 Move initialization to do_compile.
19048 (do_compile): Add initialization from above.
19049 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19050
19051 * c-decl.c (c_write_global_declarations): Add start/stop of
19052 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19053
19054 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19055 or TV_PARSE_INLINE, as appropriate.
19056 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19057 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19058
19059 2011-05-02 Jason Merrill <jason@redhat.com>
19060
19061 PR c++/40975
19062 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19063
19064 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
19065
19066 PR c/35445
19067 * c-decl.c (finish_decl): Only create a composite if the types are
19068 compatible.
19069
19070 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19071
19072 * config/fr30/fr30-protos.h (Mmode): Don't define.
19073 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
19074 definition where used.
19075 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19076 define. Expand definitions where used.
19077 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19078 Expand definitions where used.
19079 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19080 rx_function_arg, rx_function_arg_advance,
19081 rx_function_arg_boundary): Expand definitions of those macros.
19082 * config/v850/v850-protos.h (Mmode): Don't define. Expand
19083 definition where used.
19084
19085 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19086
19087 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19088 reg<->xmm moves.
19089 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19090 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
19091 with *movv2sf_internal_rex64_avx.
19092 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19093 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19094 Use %v prefix in insn mnemonic to handle TARGET_AVX.
19095 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
19096 "vex" in "prefix" attribute calculation.
19097 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
19098
19099 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
19100
19101 PR target/47951
19102 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19103 inputs match the output.
19104
19105 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
19106
19107 PR target/47955
19108 * config/m68k/m68k.c (m68k_expand_prologue): Set
19109 current_function_static_stack_size.
19110
19111 2011-05-02 Jan Hubicka <jh@suse.cz>
19112
19113 * lto-streamer.c (lto_streamer_cache_insert_1,
19114 lto_streamer_cache_lookup, lto_streamer_cache_create,
19115 lto_streamer_cache_delete): Use pointer map instead of hashtable.
19116 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19117
19118 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19119
19120 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19121 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19122 config/m68k/t-opts: New files.
19123 * config/m68k/m68k-tables.opt: New file (generated).
19124 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19125 extra_options and m68k/t-opts to tmake_file.
19126 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19127 (all_isas): Initialize using m68k-isas.def.
19128 (all_microarchs): Initialize using m68k-microarchs.def.
19129 (m68k_find_selection): Remove.
19130 (m68k_handle_option): Don't assert that global structures are in
19131 use. Use error_at. Access variables via opts pointer. Don't
19132 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
19133 directly for -m68020-40 and -m68020-60.
19134 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19135 m68k_tune_entry here.
19136 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19137 to m68k-opts.h.
19138 (m68k_library_id_string): Remove declaration.
19139 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19140 (m68k_library_id_string): New Variable.
19141 (march=, mcpu=, mtune=): Use Enum and Var.
19142
19143 2011-05-02 Richard Guenther <rguenther@suse.de>
19144
19145 * varasm.c (output_constructor_regular_field): Compute zero-based
19146 index with double-ints. Make sure to ICE instead of producing
19147 wrong code.
19148 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19149 in asserts. Properly use a signed type.
19150
19151 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19152
19153 * config/i386/sse.md (V): New mode iterator.
19154 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
19155 TARGET_SSE2.
19156 (V_256): Rename from AVX256MODE.
19157 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
19158 condition to all users.
19159 (VF1): Ditto.
19160 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
19161 condition to all users.
19162 (VF_128): Make V4SF mode unconditional.
19163 (VF_256): Rename from AVX256MODEF2P.
19164 (VI4F_128): Rename from SSEMODE4S.
19165 (VI8F_128): Rename from SSEMODE2D.
19166 (VI4F_256): Rename from AVX256MODE8P.
19167 (VI8F_256): Rename from AVX256MODE4P.
19168 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19169 (ssescalarmodesuffix): Remove SF and DF modes.
19170 (SSEMODE124): Remove.
19171 (SSEMODE1248): Ditto.
19172 (SSEMODEF2P): Ditto.
19173 (AVXMODEF2P): Ditto.
19174 (AVXMODEFDP): Ditto.
19175 (AVXMODEFSP): Ditto.
19176 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19177 unconditional.
19178 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
19179 unconditional.
19180 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19181 xop_pcmov_<mode>256. Use V mode iterator.
19182
19183 Adjust RTX patterns globally for renamed mode attributes.
19184
19185 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19186
19187 * haifa-sched.c (sched_emit_insn): Emit insn before first
19188 non-scheduled insn. Inform back-end about new insn. Add
19189 new insn to scheduled_insns list.
19190
19191 2011-05-02 Richard Guenther <rguenther@suse.de>
19192
19193 PR tree-optimization/48822
19194 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19195 (process_scc): Indicate which iteration we start.
19196
19197 2011-05-02 Jan Hubicka <jh@suse.cz>
19198
19199 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19200 (lto_section_overrun): New.
19201 * lto-section-out.c (append_block): Rename to ...
19202 (lto_append_block): ... this one; export.
19203 (lto_output_1_stream): Move lto lto-streamer.h
19204 (lto_output_data_stream): Update.
19205 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19206 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19207 functions.
19208
19209 2011-05-02 Richard Guenther <rguenther@suse.de>
19210
19211 * tree.c (tree_code_counts): New global array.
19212 (record_node_allocation_statistics): Count individual tree codes.
19213 (dump_tree_statistics): Dump individual code stats.
19214
19215 2011-05-01 Jan Hubicka <jh@suse.cz>
19216
19217 * ipa-inline.c (caller_growth_limits): Fix thinko when
19218 looking for largest stack frame.
19219 * ipa-inline.h (dump_inline_summary): Declare.
19220 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19221 on stack usage.
19222 (dump_inline_summary): Export.
19223 (debug_inline_summary): Declare as DEBUG_FUNCTION.
19224
19225 2011-05-01 Anatoly Sokolov <aesok@post.ru>
19226
19227 * reginfo.c (memory_move_cost): Change rclass argument type form
19228 'enum reg_class' to reg_class_t.
19229 * reload.h (memory_move_cost): Update prototype.
19230 * postreload.c reload_cse_simplify_set): Change type dclass var to
19231 reg_class_t.
19232 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19233 Update prototype.
19234 (ira_allocate_and_set_costs): Change aclass argument type form
19235 'enum reg_class' to reg_class_t.
19236 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19237 Change aclass argument type to reg_class_t.
19238 (update_conflict_hard_reg_costs): Change type aclass and pref vars
19239 to reg_class_t.
19240 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19241 memory_move_cost call.
19242
19243 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19244 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19245 Change type tmp var to reg_class_t.
19246
19247 2011-04-30 Jan Hubicka <jh@suse.cz>
19248
19249 * ipa-inline.c (can_inline_edge_p): Disregard limits when
19250 inlining into function with flatten attribute.
19251 (want_inline_small_function_p): Be more realistic about inlining
19252 cold calls where callee size grows.
19253
19254 2011-04-30 Jan Hubicka <jh@suse.cz>
19255
19256 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19257 flags.
19258
19259 2011-04-30 Anatoly Sokolov <aesok@post.ru>
19260
19261 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19262 PRINT_OPERAND_PUNCT_VALID_P): Remove.
19263 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19264 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19265 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19266 (print_operand): Rename to...
19267 (sparc_print_operand): ...this. Make static. Adjust
19268 sparc_print_operand function call.
19269 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19270 functions.
19271
19272 2011-04-30 Jan Hubicka <jh@suse.cz>
19273
19274 PR middle-end/48752
19275 * ipa-inline.c (early_inliner): Disable when doing late
19276 addition of function.
19277
19278 2011-04-30 Jakub Jelinek <jakub@redhat.com>
19279
19280 * dwarf2out.c (get_address_mode): New inline.
19281 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19282 if not dwarf_strict emit
19283 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19284 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19285 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
19286 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19287 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19288 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19289 mem_loc_descriptor callers.
19290 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19291 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19292 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19293 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19294 (base_types): New variable.
19295 (get_base_type_offset, calc_base_type_die_sizes,
19296 base_type_for_mode, mark_base_types, base_type_cmp,
19297 move_marked_base_types): New functions.
19298 (calc_die_sizes): Assert that die_offset is 0 or equal to
19299 next_die_offset.
19300 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19301 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
19302 callers. If not dwarf_strict, call mem_loc_descriptor even for
19303 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19304 (gen_subprogram_die): Don't give up on call site parameters
19305 with non-integral or large integral modes. Adjust
19306 mem_loc_descriptor callers.
19307 (prune_unused_types): Call prune_unused_types_mark on base_types
19308 vector entries.
19309 (resolve_addr): Call mark_base_types.
19310 (dwarf2out_finish): Call move_marked_base_types.
19311
19312 PR tree-optimization/48809
19313 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19314 type.
19315 (gen_inbound_check): Don't compute index_expr - range_min in utype
19316 again, instead reuse SSA_NAME initialized in build_arrays.
19317 Remove two useless gsi_for_stmt calls.
19318
19319 2011-04-29 Jeff Law <law@redhat.com>
19320
19321 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19322
19323 2011-04-29 Martin Jambor <mjambor@suse.cz>
19324
19325 * cgraph.h (cgraph_postorder): Remove declaration.
19326 * ipa-utils.h (ipa_free_postorder_info): Declare.
19327 (ipa_reverse_postorder): Likewise.
19328 * cgraphunit.c: Include ipa-utils.h.
19329 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19330 * ipa-inline.c: Include ipa-utils.h.
19331 (ipa_inline): Update call to ipa_reverse_postorder.
19332 * ipa-pure-const.c (propagate_pure_const): Update call to
19333 ipa_reduced_postorder and ipa_print_order. Call
19334 ipa_free_postorder_info to clean up.
19335 (propagate_nothrow): Likewise.
19336 * ipa-reference.c (propagate): Removed a useless call to
19337 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19338 and ipa_print_order. Call ipa_free_postorder_info to clean up.
19339 * ipa.c: Include ipa-utils.h.
19340 (ipa_profile): Update call to ipa_reverse_postorder.
19341 (cgraph_postorder): Moved to...
19342 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19343 (ipa_utils_print_order): Renamed to ipa_print_order.
19344 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19345 comments.
19346 (ipa_free_postorder_info): New function.
19347 * passes.c: Include ipa-utils.h.
19348 (do_per_function_toporder): Update call to ipa_reverse_postorder.
19349 (ipa_write_summaries): Likewise.
19350 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19351 (cgraphunit.o): Likewise.
19352 (ipa.o): Likewise.
19353 (ipa-inline.o): Likewise.
19354
19355 2011-04-29 Jan Hubicka <jh@suse.cz>
19356
19357 * ipa-inline.h (clause_t): Turn into unsigned int.
19358 * ipa-inline-analysis.c (add_clause): Do more simplification.
19359 (and_predicates): Shortcut more cases.
19360 (predicates_equal_p): Move forward; check that clauses are properly
19361 ordered.
19362 (or_predicates): Shortcut more cases.
19363 (edge_execution_predicate): Rewrite as...
19364 (set_cond_stmt_execution_predicate): ... this function; handle
19365 __builtin_constant_p.
19366 (set_switch_stmt_execution_predicate): New .
19367 (compute_bb_predicates): New.
19368 (will_be_nonconstant_predicate): Update TODO.
19369 (estimate_function_body_sizes): Use compute_bb_predicates
19370 and free them later, always try to estimate if stmt is constant.
19371 (estimate_time_after_inlining, estimate_size_after_inlining):
19372 Gracefully handle optimized out edges.
19373 (read_predicate): Fix off by one error.
19374
19375 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
19376
19377 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19378
19379 2011-04-27 Xinliang David Li <davidxl@google.com>
19380
19381 * tree-profile.c (init_ic_make_global_vars): Set
19382 tls attribute on ic vars.
19383 * coverage.c (coverage_end_function): Initialize
19384 function_list with zero.
19385
19386 2011-04-29 Richard Guenther <rguenther@suse.de>
19387
19388 * builtins.c (fold_builtin_classify_type): Use integer_type_node
19389 for the type of the result.
19390 (fold_builtin_isascii): Likewise.
19391 (fold_builtin_toascii): Use integer_type_node where appropriate.
19392 (fold_builtin_logb): Likewise.
19393 (fold_builtin_frexp): Likewise.
19394 (fold_builtin_strstr): Likewise.
19395 (fold_builtin_strpbrk): Likewise.
19396 (fold_builtin_fputs): Likewise.
19397 (fold_builtin_sprintf): Likewise.
19398 (fold_builtin_snprintf): Likewise.
19399 (fold_builtin_printf): Likewise.
19400 (do_mpfr_remquo): Use a proper type for the assigned constant.
19401 (do_mpfr_lgamma_r): Likewise.
19402 * dwarf2out.c (resolve_one_addr): Use size_int.
19403 * except.c (init_eh): Likewise.
19404 (assign_filter_values): Use integer_type_node for filter values.
19405 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19406 indices.
19407 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19408 for EH region numbers.
19409 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19410 for the shift amount.
19411
19412 2011-04-29 Richard Guenther <rguenther@suse.de>
19413
19414 * expr.h (expand_shift): Rename to ...
19415 (expand_variable_shift): ... this.
19416 (expand_shift): Take a constant shift amount.
19417 * expmed.c (expand_shift): Rename to ...
19418 (expand_variable_shift): ... this.
19419 (expand_shift): New wrapper around expand_variable_shift.
19420 * expr.c (convert_move, emit_group_load_1, emit_group_store,
19421 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19422 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19423 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19424 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19425 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19426 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19427 emit_store_flag_1, emit_store_flag): Likewise.
19428 * builtins.c (expand_builtin_signbit): Likewise.
19429 * calls.c (load_register_parameters): Likewise.
19430 * function.c (assign_parm_setup_block): Likewise.
19431 * lower-subreg.c (resolve_shift_zext): Likewise.
19432 * optabs.c (widen_bswap, expand_abs_nojump,
19433 expand_one_cmpl_abs_nojump, expand_float): Likewise.
19434 * spu/spu.c (spu_expand_extv): Likewise.
19435 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19436
19437 2011-04-29 Richard Guenther <rguenther@suse.de>
19438
19439 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19440 for the remapped region number.
19441 * predict.c (build_predict_expr): Use integer_type_node for the
19442 predict kind.
19443 * fold-const.c (fold_binary_loc): Use integer_type_node for
19444 the shift amount. Use a proper type for the PLUS_EXPR operand.
19445
19446 2011-04-29 Michael Matz <matz@suse.de>
19447
19448 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19449 other trees that just builtins.
19450 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19451
19452 2011-04-29 Richard Guenther <rguenther@suse.de>
19453
19454 * tree-nested.c (get_trampoline_type): Use size_int.
19455 (get_nl_goto_field): Likewise.
19456 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19457 for all indexes.
19458 (lower_eh_constructs_2): Likewise.
19459 (lower_resx): Likewise.
19460 (lower_eh_dispatch): Likewise.
19461 * tree-mudflap.c (mf_build_string): Use size_int.
19462 (mudflap_register_call): Use integer_type_node for the flag.
19463 (mudflap_enqueue_constant): Use size_int.
19464 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19465 instead of rebuilding it.
19466
19467 2011-04-29 Richard Guenther <rguenther@suse.de>
19468
19469 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19470 Handle OBJ_TYPE_REF.
19471 (find_func_aliases_for_call): Use it more consistently.
19472
19473 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
19474
19475 * haifa-sched.c (last_nondebug_scheduled_insn): New.
19476 (rank_for_schedule): Use it.
19477 (schedule_block): Set it.
19478
19479 2011-04-28 David Li <davidxl@google.com>
19480
19481 * tree.c (crc32_string): Use crc32_byte.
19482 (crc32_byte): New function.
19483 * tree.h (crc32_byte): New function.
19484 * gcov.c (read_graph_file): Handle new cfg_cksum.
19485 (read_count_file): Ditto.
19486 * profile.c (instrument_values): Ditto.
19487 (get_exec_counts): Ditto.
19488 (read_profile_edge_counts): Ditto.
19489 (compute_branch_probabilities): Ditto.
19490 (compute_value_histograms): Ditto.
19491 (branch_prob): Ditto.
19492 (end_branch_prob): Ditto.
19493 * coverage.c (read_counts_file): Ditto.
19494 (get_coverage_counts): Ditto.
19495 (tree_coverage_counter_addr): Ditto.
19496 (coverage_checksum_string): Ditto.
19497 (coverage_begin_output): Ditto.
19498 (coverage_end_function): Ditto.
19499 (build_fn_info_type): Ditto.
19500 (build_fn_info_value): Ditto.
19501 * libgcov.c (gcov_exit): Ditto.
19502 * gcov-dump.c (tag_function): Ditto.
19503 (compute_checksum): Remove.
19504
19505 2011-04-29 Alan Modra <amodra@gmail.com>
19506
19507 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19508 unspec plus offset. Tidy macho code.
19509
19510 2011-04-29 Martin Jambor <mjambor@suse.cz>
19511
19512 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19513 node instead of a decl. Update all callers.
19514 * cgraph.h: Update declaration.
19515
19516 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
19517
19518 PR tree-optimization/48765
19519 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19520 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19521 to indicate if loop aware SLP is being used. Scan the statements
19522 and update the vectorization factor according to the type of
19523 vectorization before statement analysis.
19524 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19525 pass it to vect_analyze_loop_operations.
19526 (vectorizable_reduction): Set number of copies to 1 in case of pure
19527 SLP statement.
19528 * tree-vect-stmts.c (vectorizable_conversion,
19529 vectorizable_assignment, vectorizable_shift,
19530 vectorizable_operation, vectorizable_type_demotion,
19531 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19532 Likewise.
19533 (vectorizable_condition): Move the check that it is not SLP
19534 vectorization before the number of copies check.
19535 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19536 to vectorize the loop using SLP.
19537
19538 2011-04-28 Jakub Jelinek <jakub@redhat.com>
19539
19540 PR middle-end/48597
19541 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19542 inline asm.
19543
19544 2011-04-28 Joseph Myers <joseph@codesourcery.com>
19545
19546 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19547 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19548 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19549 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19550 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19551 linux*.h headers.
19552 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19553 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19554 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19555 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19556 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19557 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19558 REG_NAME.
19559 * config/i386/linux.h (REG_NAME): Don't define.
19560 * config/i386/linux64.h (REG_NAME): Don't define.
19561 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19562 Undefine before defining.
19563
19564 2011-04-28 Jan Hubicka <jh@suse.cz>
19565
19566 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19567 nonconstant_names array.
19568 (estimate_function_body_sizes): Build nonconstant_names array; handle
19569 BUILT_IN_CONSTANT_P.
19570
19571 2011-04-28 Richard Guenther <rguenther@suse.de>
19572
19573 PR bootstrap/48804
19574 Revert
19575 2011-04-28 Richard Guenther <rguenther@suse.de>
19576
19577 * tree-ssa-structalias.c (solve_constraints): Build succ graph
19578 as late as possible.
19579
19580 2011-04-28 Richard Guenther <rguenther@suse.de>
19581
19582 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19583 (debug_constraint): Do it here.
19584 (dump_constraints): And here.
19585 (rewrite_constraints): And here.
19586 (dump_constraint_edge): Remove.
19587 (dump_constraint_graph): Rewrite to produce DOT output.
19588 (solve_constraints): Build succ graph as late as possible.
19589 Dump constraint graphs before and after solving.
19590
19591 2011-04-28 Richard Guenther <rguenther@suse.de>
19592
19593 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19594 New function split out from ...
19595 (find_func_aliases): ... here. Call it.
19596 (find_func_aliases_for_call): Likewise.
19597
19598 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
19599
19600 * internal-fn.h (internal_fn_name_array): Declare.
19601 (internal_fn_flags_array): Likewise.
19602
19603 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
19604
19605 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
19606 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19607 Move from sse.md.
19608 (ssemodefsuffix): Remove.
19609 (ssevecmodesuffix): New mode attribute.
19610 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19611 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19612 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19613 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19614 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19615 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19616 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19617 ssemodesuffix mode attribute.
19618 (float splitters): Use ssevecmodesuffix mode attribute.
19619 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19620 (sseinsmode): Rename from avxvecmode.
19621 (avxsizesuffix): Rename from avxmodesuffix.
19622 (sseintvecmode): Rename from avxpermvecmode.
19623 (ssedoublevecmode): Rename from ssedoublesizemode.
19624 (ssehalfvecmode): Rename from avxhalfvecmode.
19625 (ssescalarmode): Rename from avxscalarmode.
19626 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19627 templates for ssemodesuffix mode attribute.
19628 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
19629 mode attribute.
19630
19631 Adjust RTX patterns globally for renamed mode attributes.
19632
19633 2011-04-27 Jan Hubcika <jh@suse.cz>
19634
19635 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
19636 * ipa-inline-analysis.c: Include alloc-pool.h.
19637 (edge_predicate_pool): New.
19638 (trye_predicate_p): New function
19639 (false_predicate_p): New function.
19640 (add_clause): Sanity check that false clauses are "optimized";
19641 never add clauses to predicate that is already known to be false.
19642 (and_predicate): Use flase_predicate_p.
19643 (evaulate_predicate): Rename to ...
19644 (evaluate_predicate): ... this one; update all callers; assert
19645 that false is not listed among possible truths.
19646 (dump_predicate): Use true_predicate_p.
19647 (account_size_time): Use false_predicate_p.
19648 (evaulate_conditions_for_edge): Rename to ...
19649 (evaluate_conditions_for_edge) ... this one.
19650 (edge_set_predicate): New function.
19651 (inline_edge_duplication_hook): Duplicate edge predicates.
19652 (inline_edge_removal_hook): Free edge predicates.
19653 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
19654 (dump_inline_summary): Update.
19655 (estimate_function_body_sizes): Set edge predicates.
19656 (estimate_calls_size_and_time): Handle predicates.
19657 (estimate_callee_size_and_time): Update.
19658 (remap_predicate): Add toplev_predicate; update comment.
19659 (remap_edge_predicates): New function.
19660 (inline_merge_summary): Compute toplev predicate; update.
19661 (read_predicate): New function.
19662 (read_inline_edge_summary): Use it.
19663 (inline_read_section): Likewise.
19664 (write_predicate): New function.
19665 (write_inline_edge_summary): Use it.
19666 (inline_write_summary): Likewise.
19667 (inline_free_summary): Free alloc pool and edge summary vec.
19668
19669 2011-04-27 Richard Guenther <rguenther@suse.de>
19670
19671 * tree-ssa-structalias.c (changed_count): Remove.
19672 (changed): Use a bitmap.
19673 (unify_nodes): Adjust.
19674 (do_sd_constraint): Likewise.
19675 (do_ds_constraint): Likewise.
19676 (do_complex_constraint): Likewise.
19677 (solve_graph): Likewise.
19678
19679 2011-04-27 Jan Hubicka <jh@suse.cz>
19680
19681 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
19682
19683 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
19684
19685 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
19686 (avx_vperm2f128_*_operand): Ditto.
19687 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
19688 Use avx_vpermilp_parallel in insn condition.
19689 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
19690 Use avx_vperm2f128_parallel in insn condition.
19691
19692 2011-04-27 Richard Guenther <rguenther@suse.de>
19693
19694 * Makefile.in (tree-ssa-structalias.o): Remove
19695 gt-tree-ssa-structalias.h dependency.
19696 (GTFILES): Remove tree-ssa-structalias.c.
19697 * tree.c (allocate_decl_uid): New function.
19698 (make_node_stat): Use it.
19699 (copy_node_stat): Likewise.
19700 * tree.h (allocate_decl_uid): Declare.
19701 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
19702 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
19703 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
19704 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
19705 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
19706 (struct heapvar_map): Likewise.
19707 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
19708 heapvar_insert): Likewise.
19709 (make_heapvar_for): Rename to ...
19710 (make_heapvar): ... this. Simplify.
19711 (fake_var_decl_obstack): New global var.
19712 (build_fake_var_decl): New function.
19713 (make_constraint_from_heapvar): Adjust.
19714 (handle_lhs_call): Likewise.
19715 (create_function_info_for): Likewise.
19716 (intra_create_variable_infos): Likewise.
19717 (init_alias_vars): Allocate fake_var_decl_obstack.
19718 (init_alias_heapvars, delete_alias_heapvars): Remove.
19719 (compute_points_to_sets): Do not call init_alias_heapvars.
19720 (ipa_pta_execute): Likewise.
19721 (delete_points_to_sets): Free fake_var_decl_obstack.
19722
19723 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19724
19725 * config/spu/divmovti4.c (union qword_UTItype): New data type.
19726 (si_from_UTItype, si_to_UTItype): New functions.
19727 (__udivmodti4): Use them to implement type-punning.
19728 * config/spu/multi3.c (union qword_TItype): New data type.
19729 (si_from_TItype, si_to_TItype): New functions.
19730 (__multi3): Use them to implement type-punning.
19731
19732 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19733
19734 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
19735
19736 2011-04-27 Jan Hubicka <jh@suse.cz>
19737
19738 * ipa-prop.c (function_insertion_hook_holder): New holder.
19739 (ipa_add_new_function): New function.
19740 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
19741 Register/deregister holder.
19742
19743 2011-04-27 Richard Guenther <rguenther@suse.de>
19744
19745 PR tree-optimization/48772
19746 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
19747
19748 2011-04-27 Richard Guenther <rguenther@suse.de>
19749
19750 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
19751 TARGET_MEM_REF handling.
19752
19753 2011-04-27 Nick Clifton <nickc@redhat.com>
19754
19755 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
19756 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
19757 (REG_CLASS_NAMES): Likewise.
19758 (REG_CLASS_CONTENTS): Likewise.
19759 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
19760 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
19761 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
19762 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
19763 (EVEN_REGS): New macro. Alias for QUAD_REGS.
19764 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
19765 duplicate register classes.
19766 (frv_class_likely_spilled_p): Likewise.
19767 (frv_register_move_cost): Likewise.
19768
19769 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
19770 end of the regno_reg_class array.
19771
19772 2011-04-27 Jakub Jelinek <jakub@redhat.com>
19773
19774 PR c/48742
19775 * c-typeck.c (build_binary_op): Don't wrap arguments if
19776 int_operands is true.
19777
19778 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
19779
19780 PR target/48767
19781 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
19782 targetm.calls.must_pass_in_stack for void type.
19783
19784 2011-04-26 Jan Hubicka <jh@suse.cz>
19785
19786 * cgraphbuild.c (build_cgraph_edges): Update call
19787 of cgraph_create_edge and cgraph_create_indirect_edge.
19788 * cgraph.c (cgraph_create_edge_including_clones,
19789 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
19790 cgraph_update_edges_for_call_stmt_node): Do not take nest
19791 argument; do not initialize call_stmt_size/time.
19792 (dump_cgraph_node): Do not dump nest.
19793 (cgraph_clone_edge): Do not take loop_nest argument;
19794 do not propagate it; do not clone call_stmt_size/time.
19795 (cgraph_clone_node): Likewise.
19796 (cgraph_create_virtual_clone): Update.
19797 * cgraph.h (struct cgraph_edge): Remove
19798 call_stmt_size/call_stmt_time/loop_nest.
19799 (cgraph_create_edge, cgraph_create_indirect_edge,
19800 cgraph_create_edge_including_clones, cgraph_clone_node): Update
19801 prototype.
19802 * tree-emutls.c (gen_emutls_addr): Update.
19803 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
19804 loop_nest; handle indirect calls, too.
19805 (clone_inlined_nodes): Do not care about updating inline summaries.
19806 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
19807 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
19808 stream call_stmt_size/call_stmt_time/loop_nest.
19809 * ipa-inline.c (edge_badness): Update.
19810 (ipa_inline): dump summaries after inlining.
19811 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
19812 New.
19813 (inline_edge_summary): New function.
19814 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
19815 (inline_edge_removal_hook): Handle edge summaries.
19816 (inline_edge_duplication_hook): New hook.
19817 (inline_summary_alloc): Alloc hooks.
19818 (initialize_growth_caches): Do not register removal hooks.
19819 (free_growth_caches); Do not free removal hook.
19820 (dump_inline_edge_summary): New function.
19821 (dump_inline_summary): Use it.
19822 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
19823 (inline_update_callee_summaries): New function.
19824 (inline_merge_summary): Use it.
19825 (do_estimate_edge_time, do_estimate_edge_growth): Update.
19826 (read_inline_edge_summary): New function.
19827 (inline_read_section): Use it.
19828 (write_inline_edge_summary): New function.
19829 (inline_write_summary): Use it.
19830 (inline_free_summary): Free edge new holders.
19831 * tree-inline.c (copy_bb): Update.
19832
19833 2011-04-26 Jason Merrill <jason@redhat.com>
19834
19835 * tree-eh.c (lower_try_finally_switch): Create the label along with
19836 the CASE_LABEL_EXPR.
19837
19838 2011-04-26 David S. Miller <davem@davemloft.net>
19839 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19840
19841 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
19842 * configure: Regenerate.
19843
19844 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19845
19846 PR target/48258
19847 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
19848 reduction.
19849 (VEC_reduc): New code iterator and splitters for vector reduction.
19850 (VEC_reduc_name): Ditto.
19851 (VEC_reduc_rtx): Ditto.
19852 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
19853 (reduc_<VEC_reduc_name>_v4sf): Ditto.
19854
19855 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19856 support for extracting SF on VSX.
19857
19858 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
19859 generating xscvspdp.
19860 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
19861 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
19862 double add, minimum, maximum vector reduction.
19863 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
19864 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
19865 optimize double vector reduction.
19866 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
19867
19868 2011-04-26 Joseph Myers <joseph@codesourcery.com>
19869
19870 * config/fr30/fr30.h (inhibit_libc): Don't define.
19871 * config/m32r/m32r-protos.h: Correct comment.
19872 * config/v850/v850.h (GHS_default_section_names,
19873 GHS_current_section_names): Use tree, not union tree_node *.
19874
19875 2011-04-26 Xinliang David Li <davidxl@google.com>
19876
19877 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
19878 * c-family/c-opts.c (c_common_handle_option): Set
19879 warn_maybe_uninitialized.
19880 * opts.c (common_handle_option): Ditto.
19881 * common.opt: New option.
19882 * tree-ssa.c (warn_uninit): Add one more parameter.
19883 (warn_uninitialized_var): Pass warning code.
19884 * tree-flow.h: Interface change.
19885
19886 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19887
19888 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
19889 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
19890 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
19891
19892 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19893
19894 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
19895 * config/mips/mips.opt (mmips-tfile): Remove.
19896
19897 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
19898 mips-tdump reference to ...
19899 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
19900 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
19901 reference by Tru64 UNIX.
19902
19903 2011-04-26 Jakub Jelinek <jakub@redhat.com>
19904
19905 PR debug/48768
19906 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
19907 is error_mark_node, set value to NULL.
19908
19909 PR tree-optimization/48734
19910 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
19911 if return value from maybe_fold_*_comparsions isn't something
19912 the code is prepared to handle.
19913
19914 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
19915
19916 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
19917 mode check.
19918 (ext_QIreg_nomode_operands): Remove.
19919 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
19920 (*andsi_1): Ditto.
19921 (*andhi_1): Ditto.
19922
19923 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
19924
19925 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
19926
19927 2011-04-26 Richard Guenther <rguenther@suse.de>
19928
19929 * c-typeck.c (build_unary_op): Do not expand array-refs via
19930 pointer arithmetic. Only adjust qualifiers for function types.
19931
19932 2011-04-26 Richard Guenther <rguenther@suse.de>
19933
19934 PR middle-end/48694
19935 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
19936 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
19937 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
19938 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
19939
19940 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
19941
19942 * doc/extend.texi: Document __underlying_type.
19943
19944 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
19945
19946 * config/rs6000/titan.md (automata_option "progress"): Remove.
19947
19948 2011-04-25 Jeff Law <law@redhat.com>
19949
19950 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
19951
19952 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
19953
19954 * system.h (ENUM_BITFIELD): Remove.
19955
19956 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
19957 Eric Botcazou <ebotcazou@adacore.com>
19958
19959 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
19960 for STORE_FLAG_VALUE==-1 case.
19961
19962 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
19963
19964 PR target/43804
19965 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
19966 LEGITIMATE_PIC_OPERAND_P.
19967
19968 2011-04-24 Jan Hubicka <jh@suse.cz>
19969
19970 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
19971 WPA hack.
19972 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
19973 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
19974 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
19975 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
19976 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
19977 Sanity check predicate length.
19978 (remap_predicate): Likewise; sanity check jump functions.
19979 (inline_read_section, inline_write_summary): Sanity check
19980 predicate length.
19981
19982 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
19983
19984 PR other/48748
19985 * doc/extend.texi (Type Traits): Document __is_standard_layout,
19986 __is_literal_type, and __is_trivial; update throughout about
19987 possibly cv-qualified void types.
19988
19989 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
19990
19991 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
19992 testsuite and make it version agnostic.
19993
19994 2011-04-22 Jan Hubicka <jh@suse.cz>
19995
19996 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
19997
19998 2011-04-23 Jakub Jelinek <jakub@redhat.com>
19999
20000 PR c/48685
20001 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20002 to VOID_TYPE even around MODIFY_EXPR.
20003
20004 2011-04-22 Mike Stump <mikestump@comcast.net>
20005
20006 * gensupport.c (read_md_rtx): Fix typo in comment.
20007 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20008 comment.
20009
20010 2011-04-22 Jan Hubicka <jh@suse.cz>
20011
20012 * gengtype.c (open_base_files): Add ipa-inline.h include.
20013 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20014 ipa-prop.c; update all uses.
20015 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20016 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20017 merge summary of inlined function into former caller.
20018 * ipa-inline.c (max_benefit): Remove.
20019 (edge_badness): Compensate for removal of benefits.
20020 (update_caller_keys): Use
20021 reset_node_growth_cache/reset_edge_growth_cache.
20022 (update_callee_keys): Likewise.
20023 (update_all_callee_keys): Likewise.
20024 (inline_small_functions): Do not collect max_benefit; do not reset
20025 estimated_growth; call free_growth_caches and initialize_growth_caches.
20026 * ipa-inline.h (struct condition, type clause_t, struct predicate,
20027 struct size_time_entry): New structures.
20028 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20029 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20030 and estimated_growth.
20031 (edge_growth_cache_entry): New structure.
20032 (node_growth_cache, edge_growth_cache): New global vars.
20033 (estimate_growth): Turn into inline.
20034 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20035 initialize_growth_caches, free_growth_caches): Declare.
20036 (estimate_edge_growth): Rewrite.
20037 (estimate_edge_time): Implement as inline cache lookup.
20038 (reset_node_growth_cache, reset_edge_growth_cache): New inline
20039 functions.
20040 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20041 (NUM_CONDITIONS): New constant.
20042 (predicate_conditions): New enum.
20043 (IS_NOT_CONSTANT): New constant.
20044 (edge_removal_hook_holder): New var.
20045 (node_growth_cache, edge_growth_cache): New global vars.
20046 (true_predicate, single_cond_predicate, false_predicate,
20047 not_inlined_predicate, add_condition, add_clause, and_predicates,
20048 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20049 dump_clause, dump_predicate, account_size_time,
20050 evaulate_conditions_for_edge): New functions.
20051 (inline_summary_alloc): Move to heap.
20052 (inline_node_removal_hook): Clear condition and entry vectors.
20053 (inline_edge_removal_hook): New function.
20054 (initialize_growth_caches, free_growth_caches): New function.
20055 (dump_inline_summary): Update.
20056 (edge_execution_predicate): New function.
20057 (will_be_nonconstant_predicate): New function.
20058 (estimate_function_body_sizes): Compute BB and constantness predicates.
20059 (compute_inline_parameters): Do not clear estimated_growth.
20060 (estimate_edge_size_and_time): New function.
20061 (estimate_calls_size_and_time): New function.
20062 (estimate_callee_size_and_time): New function.
20063 (remap_predicate): New function.
20064 (inline_merge_summary): New function.
20065 (do_estimate_edge_time): New function based on...
20066 (estimate_edge_time): ... this one.
20067 (do_estimate_edge_growth): New function.
20068 (do_estimate_growth): New function based on....
20069 (estimate_growth): ... this one.
20070 (inline_analyze_function): Analyze after deciding on jump functions.
20071 (inline_read_section): New function.
20072 (inline_read_summary): Use it.
20073 (inline_write_summary): Write all the new data.
20074 * ipa-prop.c (ipa_get_param_decl_index): Export.
20075 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20076 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20077 Declare.
20078 (ipa_get_lattice): Move here from ipa-cp.c
20079 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20080 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20081 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20082 cgraph_edge_inlinable_p): Remove.
20083 * cgraphunit.c: Include ipainline.h
20084 (cgraph_process_new_functions): Update call of
20085 compute_inline_parameters.
20086
20087 2011-04-22 Richard Guenther <rguenther@suse.de>
20088
20089 * tree.c (build_int_cst): Properly create canonicalized integer
20090 constants.
20091 (build_int_cst_type): Remove scary comments.
20092
20093 2011-04-22 Xinliang David Li <davidxl@google.com>
20094
20095 * toplev.c (process_options): Enable -Werror=coverage-mismatch
20096 by default when -Wno-error is not specified.
20097 * opts-global.c (decode_options): Remove call to
20098 control_warning_options.
20099
20100 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20101
20102 PR tree-optimization/48717
20103 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20104 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20105
20106 2011-04-22 Joseph Myers <joseph@codesourcery.com>
20107
20108 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
20109 definition where used.
20110
20111 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20112
20113 PR c/48716
20114 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20115 TREE_STATIC variables declared inside of some OpenMP construct.
20116
20117 2011-04-22 Martin Jambor <mjambor@suse.cz>
20118
20119 PR middle-end/48585
20120 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20121
20122 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
20123
20124 PR c/36750
20125 * c-typeck.c (pop_init_level): Do not warn about initializing
20126 with ` = {0}'.
20127
20128 2011-04-22 Alan Modra <amodra@gmail.com>
20129
20130 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20131 when returning call_cookie.
20132 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20133 pointers, to functions with no more vector args than the current
20134 function, and some non-local calls for ABI_V4.
20135 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20136 sibcall_nonlocal_aix64): Combine to ..
20137 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
20138 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20139 (sibcall_value_nonlocal_aix<mode>): ..likewise.
20140 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20141 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
20142 operand.
20143 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20144 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20145 sibcall_value_symbolic_64): Delete.
20146
20147 2011-04-21 Xinliang David Li <davidxl@google.com>
20148
20149 * cgraph.h: Remove pid.
20150 * cgraph.c: Remove pid.
20151 * value-prof.c (init_node_map): New function.
20152 (del_node_map): New function.
20153 (find_func_by_funcdef_no): New function.
20154 (gimple_ic_transform): Call new function.
20155 * cgraphunit.c (cgraph_finalize_function): Remove pid.
20156 * function.c (get_last_funcdef_no): New function.
20157 * function.h (get_last_funcdef_no): New function.
20158 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20159 to libgcov function.
20160 (tree-profiling): Call node map init and delete function.
20161
20162 2011-04-21 Ian Lance Taylor <iant@google.com>
20163
20164 * godump.c (go_format_type): Use exported Go name for anonymous
20165 field name.
20166
20167 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20168
20169 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20170 Call builtin_function_type_list instead of builtin_function_type.
20171 (UNARY, BINARY, TRINARY, QUAD): Likewise.
20172
20173 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20174
20175 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20176 build_function_type_list instead of build_function_type.
20177 Delete variable `endlink'.
20178
20179 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20180
20181 * config/s390/s390.c (s390_init_builtins): Call
20182 build_function_type_list instead of build_function_type.
20183
20184 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20185
20186 * config/ia64/ia64.c (ia64_init_builtins): Call
20187 build_function_type_list instead of builtin_function_type.
20188
20189 2011-04-21 Easwaran Raman <eraman@google.com>
20190
20191 * cfgexpand.c (stack_var): Remove OFFSET...
20192 (add_stack_var): ...and its reference here...
20193 (expand_stack_vars): ...and here.
20194 (stack_var_cmp): Sort by descending order of size.
20195 (partition_stack_vars): Change heuristic.
20196 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20197 (dump_stack_var_partition): Add newline after each partition.
20198
20199 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
20200 Jeff Law <law@redhat.com>
20201
20202 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20203 * gengtype.c (matching_file_name_substitute): Likewise.
20204
20205 2011-04-21 Richard Guenther <rguenther@suse.de>
20206
20207 PR lto/48703
20208 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20209
20210 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
20211
20212 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20213
20214 2011-04-21 Richard Guenther <rguenther@suse.de>
20215
20216 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20217 file name.
20218
20219 2011-04-21 Richard Guenther <rguenther@suse.de>
20220
20221 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20222 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20223 Use DECL_P, not SSA_VAR_P.
20224 (ptr_derefs_may_alias_p): Likewise.
20225 (ptr_deref_may_alias_ref_p_1): Likewise.
20226 (decl_refs_may_alias_p): Likewise.
20227 (refs_may_alias_p_1): Likewise.
20228 (ref_maybe_used_by_call_p_1): Likewise.
20229 (call_may_clobber_ref_p_1): Likewise.
20230 (indirect_ref_may_alias_decl_p): Assume indirect refrences
20231 are either MEM_REF or TARGET_MEM_REF.
20232 (indirect_refs_may_alias_p): Likewise.
20233 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20234 for MEM_EXPR of indirect calls.
20235
20236 2011-04-21 Tristan Gingold <gingold@adacore.com>
20237
20238 * vmsdbgout.c (write_srccorr): Compute file length from the string.
20239 (dst_file_info_struct): Remove flen field.
20240 (lookup_filename): Remove code that set flen field.
20241
20242 2011-04-21 Tristan Gingold <gingold@adacore.com>
20243
20244 * config/ia64/ia64.c (ia64_start_function): Add a guard.
20245
20246 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
20247
20248 PR target/48708
20249 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20250 vec_extract and vec_concat for non-SSE4_1 targets.
20251
20252 2011-04-21 Richard Guenther <rguenther@suse.de>
20253
20254 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20255 return statements.
20256
20257 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20258
20259 * config/i386/cygming.h (union tree_node, TREE): Don't define or
20260 undefine.
20261 (FILE): Don't undefine.
20262
20263 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20264
20265 * config/alpha/alpha.c (struct machine_function): Use rtx, not
20266 struct rtx_def *.
20267 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20268 struct rtx_def *.
20269 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20270 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20271 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20272 rtx_def *.
20273 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
20274 definitions where used.
20275 * config/microblaze/microblaze.h (struct microblaze_args): Use
20276 rtx, not struct rtx_def *.
20277 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20278 rtx_def *.
20279 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20280 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20281 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20282 not struct rtx_def *.
20283 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20284 struct rtx_def *.
20285 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20286 rtx_def *.
20287 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20288
20289 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20290
20291 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20292 operand_equal_p to compare DR_BASE_ADDRESSes.
20293 (vect_check_interleaving): Likewise.
20294
20295 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20296
20297 PR target/46329
20298 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20299 for all Neon struct constants.
20300
20301 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20302
20303 * target.def (legitimate_constant_p): New hook.
20304 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20305 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20306 * doc/tm.texi: Regenerate.
20307 * hooks.h (hook_bool_mode_rtx_true): Declare.
20308 * hooks.c (hook_bool_mode_rtx_true): Define.
20309 * system.h (LEGITIMATE_CONSTANT_P): Poison.
20310 * calls.c (precompute_register_parameters): Replace uses of
20311 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20312 (emit_library_call_value_1): Likewise.
20313 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20314 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20315 * ira-costs.c (scan_one_insn): Likewise.
20316 * recog.c (general_operand, immediate_operand): Likewise.
20317 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20318 * reload1.c (init_eliminable_invariants): Likewise.
20319
20320 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20321 mode argument.
20322 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20323 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20324 argument.
20325 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20326 * config/alpha/predicates.md (input_operand): Update call to
20327 alpha_legitimate_constant_p.
20328
20329 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20330 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20331 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20332 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20333 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20334 (arm_legitimate_constant_p): New functions.
20335 (arm_cannot_force_const_mem): Make static.
20336
20337 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20338
20339 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20340 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20341 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20342 instead of bfin_legitimate_constant_p.
20343 (bfin_legitimate_constant_p): Make static. Add a mode argument.
20344 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20345
20346 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20347
20348 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20349
20350 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20351 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20352 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20353 (frv_legitimate_constant_p): Make static. Add a mode argument.
20354
20355 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20356 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20357 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20358
20359 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20360 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20361 * config/i386/i386.c (legitimate_constant_p): Rename to...
20362 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
20363 argument.
20364 (ix86_cannot_force_const_mem): Update accordingly.
20365 (ix86_legitimate_address_p): Likewise.
20366 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20367 * config/i386/i386.md: Update commentary.
20368
20369 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20370 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20371 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20372 (ia64_legitimate_constant_p): Make static. Add a mode argument.
20373
20374 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20375
20376 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20377 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20378 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20379 (lm32_legitimate_constant_p): Make static. Add a mode argument.
20380
20381 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20382 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20383 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20384
20385 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20386 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20387 (m32r_legitimate_constant_p): New function.
20388
20389 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20390 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20391 LEGITIMATE_CONSTANT_P.
20392 (LEGITIMATE_CONSTANT_P): Delete.
20393 * config/m68k/m68k.c (m68k_expand_prologue): Call
20394 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20395 (m68k_legitimate_constant_p): New function.
20396 * config/m68k/m68k.md: Update comments.
20397
20398 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20399 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20400 (mcore_legitimate_constant_p): New function.
20401
20402 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20403 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20404 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20405 Add a mode argument.
20406 (mep_legitimate_address): Update accordingly.
20407 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20408
20409 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20410 Delete.
20411 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20412 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20413 static. Check OP's mode for VOIDmode.
20414 (microblaze_legitimate_constant_p): New function.
20415 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20416
20417 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20418 * config/mips/mips.c (mips_legitimate_constant_p): New function.
20419 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20420 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20421 * config/mips/predicates.md: Update comments.
20422
20423 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20424 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20425 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20426 (mmix_legitimate_constant_p): Make static, return a bool, and take
20427 a mode argument.
20428 (mmix_print_operand_address): Update accordingly.
20429
20430 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20431 Delete.
20432 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20433 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20434 static. Add a mode argument.
20435 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20436
20437 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20438
20439 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20440 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20441 (pa_legitimate_constant_p): New function.
20442
20443 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
20444
20445 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
20446 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20447 (pdp11_legitimate_constant_p): New function.
20448
20449 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20450 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20451 (rs6000_legitimate_constant_p): New function.
20452
20453 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20454 (rx_legitimate_constant_p): ...this.
20455 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20456 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20457 (rx_legitimate_constant_p): ...this.
20458 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20459 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20460
20461 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20462 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20463 * config/s390/s390.c (legitimate_constant_p): Rename to...
20464 (s390_legitimate_constant_p): ...this. Make static, return a bool,
20465 and add a mode argument.
20466 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20467
20468 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20469
20470 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20471 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20472 (sh_legitimate_constant_p): New function.
20473
20474 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20475 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20476 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20477 (legitimate_constant_p): Rename to...
20478 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
20479 argument.
20480 (constant_address_p): Update accordingly.
20481
20482 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20483 argument and return a bool.
20484 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20485 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20486 (spu_legitimate_constant_p): Add a mode argument and return a bool.
20487 (spu_rtx_costs): Update accordingly.
20488 * config/spu/predicates.md (vec_imm_operand): Likewise.
20489
20490 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20491
20492 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20493 * config/v850/v850.c (v850_legitimate_constant_p): New function.
20494 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20495
20496 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20497 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20498 * config/vax/vax.c (legitimate_constant_p): Likewise.
20499
20500 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20501 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20502 (xtensa_legitimate_constant_p): New function.
20503
20504 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20505
20506 * target.def (cannot_force_const_mem): Add a mode argument.
20507 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20508 * doc/tm.texi: Regenerate.
20509 * hooks.h (hook_bool_mode_rtx_false): Declare.
20510 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20511 (hook_bool_mode_const_rtx_true): Likewise.
20512 (hook_bool_mode_rtx_false): New function.
20513 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20514 to be non-VOID. Update call to cannot_force_const_mem.
20515 (find_reloads): Update accordingly.
20516 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20517 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20518 argument.
20519 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20520 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20521 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20522 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20523 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20524 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20525 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20526 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20527 (m68k_cannot_force_const_mem): ...this new function.
20528 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20529 argument.
20530 (mips_const_insns, mips_legitimize_const_move): Update calls.
20531 (mips_secondary_reload_class): Likewise.
20532 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20533 (pa_cannot_force_const_mem): ...this new function.
20534 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20535 (rs6000_cannot_force_const_mem): ...this new function.
20536 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20537 argument.
20538 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20539 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20540 to...
20541 (xtensa_cannot_force_const_mem): ...this new function.
20542
20543 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
20544
20545 * config/mips/mips.c (mips16_build_function_stub): Call
20546 build_function_type_list instead of build_function_type.
20547 (mips16_build_call_stub): Likewise.
20548
20549 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
20550
20551 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20552 instead of build_function_type.
20553
20554 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
20555
20556 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20557 instead of build_function_type.
20558
20559 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
20560
20561 PR target/48678
20562 * config/i386/i386.md (insv): Change operand 0 constraint to
20563 "register_operand". Change operand 1 and 2 constraint to
20564 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
20565 * config/i386/sse.md (sse4_1_pinsrb): Export.
20566 (sse2_pinsrw): Ditto.
20567 (sse4_1_pinsrd): Ditto.
20568 (sse4_1_pinsrq): Ditto.
20569 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20570 * config/i386/i386.c (ix86_expand_pinsr): New.
20571
20572 2011-04-20 Easwaran Raman <eraman@google.com>
20573
20574 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20575 containing union type only with -fstrict-aliasing.
20576
20577 2011-04-20 Jim Meyering <meyering@redhat.com>
20578
20579 Remove useless if-before-free tests.
20580 * calls.c (expand_call, save_area): Likewise.
20581 * cfgcleanup.c (try_forward_edges): Likewise.
20582 * collect2.c (collect_execute): Likewise.
20583 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20584 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20585 * coverage.c (coverage_checksum_string): Likewise.
20586 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20587 * cselib.c (cselib_init): Likewise.
20588 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20589 (df_set_clean_cfg): Likewise.
20590 * function.c (free_after_compilation): Likewise.
20591 * gcc.c (do_spec_1, main): Likewise.
20592 * gcov.c (create_file_names): Likewise.
20593 * gensupport.c (identify_predicable_attribute): Likewise.
20594 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20595 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20596 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20597 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20598 * ipa-pure-const.c (local_pure_const): Likewise.
20599 * ipa-reference.c (propagate): Likewise.
20600 * ira-costs.c (free_ira_costs): Likewise.
20601 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20602 * matrix-reorg.c (mat_free): Likewise.
20603 * prefix.c (get_key_value): Likewise.
20604 * profile.c (compute_value_histograms): Likewise.
20605 * reload1.c (free_reg_equiv): Likewise.
20606 * sched-deps.c (free_deps): Likewise.
20607 * sel-sched-ir.c (fence_clear): Likewise.
20608 * sese.c (set_rename, if_region_set_false_region): Likewise.
20609 * tree-data-ref.c (free_rdg): Likewise.
20610 * tree-eh.c (lower_try_finally): Likewise.
20611 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20612 * tree-ssa-live.c (delete_var_map): Likewise.
20613 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20614 * tree-ssa-pre.c (phi_trans_add): Likewise.
20615
20616 2011-04-20 Jakub Jelinek <jakub@redhat.com>
20617
20618 PR tree-optimization/48611
20619 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20620 beyond ERT_MUST_NOT_THROW region.
20621
20622 2011-04-20 Catherine Moore <clm@codesourcery.com>
20623
20624 * config/mips/mips.opt (mfix-24k): New.
20625 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20626 * config/mips/mips.md (length): Increase by 4 for stores if
20627 fixing 24K errata.
20628 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
20629 all noreorder if fixing 24K errata.
20630 * doc/invoke.texi: Document mfix-24k.
20631
20632 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
20633
20634 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
20635 quad-word modes, reduce to 9-bit index range when above 1016 limit.
20636
20637 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
20638
20639 * config/arm/arm.c (arm_gen_constant): Move movw support ....
20640 (const_ok_for_op): ... to here.
20641
20642 2011-04-20 Kai Tietz <ktietz@redhat.com>
20643
20644 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
20645 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
20646
20647 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
20648
20649 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
20650
20651 2011-04-20 Richard Guenther <rguenther@suse.de>
20652
20653 PR tree-optimization/47892
20654 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
20655 are if-convertible.
20656
20657 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
20658
20659 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
20660
20661 2011-04-20 Tristan Gingold <gingold@adacore.com>
20662
20663 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
20664
20665 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
20666
20667 PR target/18145
20668
20669 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
20670 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
20671 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
20672 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
20673 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
20674
20675 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
20676 New prototype.
20677
20678 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
20679 (avr_asm_named_section, avr_asm_output_aligned_common,
20680 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
20681 New functions to update...
20682 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
20683 (avr_asm_init_sections): Overwrite section callbacks for
20684 data_section, bss_section.
20685 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
20686 from here to...
20687 (avr_file_end): ...here.
20688
20689 2011-04-20 Richard Guenther <rguenther@suse.de>
20690
20691 PR middle-end/48695
20692 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
20693 objects and types here. Adjust for their offset before comparing.
20694
20695 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
20696
20697 * tree-vect-stmts.c (vectorizable_store): Only chain one related
20698 statement per copy.
20699
20700 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
20701
20702 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
20703 (GIMPLE_H): Include $(INTERNAL_FN_H).
20704 (OBJS-common): Add internal-fn.o.
20705 (internal-fn.o): New rule.
20706 * internal-fn.def: New file.
20707 * internal-fn.h: Likewise.
20708 * internal-fn.c: Likewise.
20709 * gimple.h: Include internal-fn.h.
20710 (GF_CALL_INTERNAL): New gf_mask.
20711 (gimple_statement_call): Put fntype into a union with a new
20712 internal_fn field.
20713 (gimple_build_call_internal): Declare.
20714 (gimple_build_call_internal_vec): Likewise.
20715 (gimple_call_same_target_p): Likewise.
20716 (gimple_call_internal_p): New function.
20717 (gimple_call_internal_fn): Likewise.
20718 (gimple_call_fntype): Return null for internal calls.
20719 (gimple_call_set_fntype): Assert that the function is not internal.
20720 (gimple_call_set_fn): Likewise.
20721 (gimple_call_set_fndecl): Likewise.
20722 (gimple_call_set_internal_fn): New function.
20723 (gimple_call_addr_fndecl): Handle null functions.
20724 (gimple_call_return_type): Likewise null types.
20725 * gimple.c (gimple_build_call_internal_1): New function.
20726 (gimple_build_call_internal): Likewise.
20727 (gimple_build_call_internal_vec): Likewise.
20728 (gimple_call_same_target_p): Likewise.
20729 (gimple_call_flags): Handle calls to internal functions.
20730 (gimple_call_fnspec): New function.
20731 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
20732 (gimple_has_side_effects): Handle null functions.
20733 (gimple_rhs_has_side_effects): Likewise.
20734 (gimple_call_copy_skip_args): Handle calls to internal functions.
20735 * cfgexpand.c (expand_call_stmt): Likewise.
20736 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
20737 * gimple-fold.c (gimple_fold_call): Handle null functions.
20738 (gimple_fold_stmt_to_constant_1): Don't fold
20739 calls to internal functions.
20740 * gimple-low.c (gimple_check_call_args): Handle calls to internal
20741 functions.
20742 * gimple-pretty-print.c (dump_gimple_call): Likewise.
20743 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
20744 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
20745 (do_warn_unused_result): Likewise.
20746 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
20747 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
20748 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
20749 the target of a call.
20750 (initialize_hash_element): Update accordingly.
20751 (hashable_expr_equal_p): Use gimple_call_same_target_p.
20752 (iterative_hash_hashable_expr): Handle calls to internal functions.
20753 (print_expr_hash_elt): Likewise.
20754 * tree-ssa-pre.c (can_value_number_call): Likewise.
20755 (eliminate): Handle null functions.
20756 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
20757 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
20758 (find_func_aliases): Likewise.
20759 * value-prof.c (gimple_ic_transform): Likewise.
20760 (gimple_indirect_call_to_profile): Likewise.
20761 * lto-streamer-in.c (input_gimple_stmt): Likewise.
20762 * lto-streamer-out.c (output_gimple_stmt): Likewise.
20763
20764 2011-04-19 Jan Hubicka <jh@suse.cz>
20765
20766 * ipa-inline-transform.c (save_inline_function_body): Add comments.
20767 * ipa-inline.c (inline_small_functions): Compute summaries first,
20768 populate heap later.
20769
20770 2011-04-19 Jan Hubicka <jh@suse.cz>
20771
20772 * cgraph.h (save_inline_function_body): Remove.
20773 * ipa-inline-transform.c: New file, broke out of...
20774 * ipa-inline.c: ... this one; Update toplevel comment.
20775 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
20776 make global.
20777 (update_noncloned_frequencies): Move to ipa-inline-transform.c
20778 (cgraph_mark_inline_edge): Rename to inline_call; move to
20779 ipa-inline-transform.c.
20780 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
20781 move to ipa-inline-transform.c
20782 (recursive_inlining, inline_small_functions, flatten_function,
20783 ipa_inline, inline_always_inline_functions,
20784 early_inline_small_functions): Update.
20785 (inline_transform): Move to ipa-inline-transform.c.
20786 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
20787 Declare.
20788 * Makefile.in (ipa-inline-transform.o): New file.
20789 * cgraphunit.c (save_inline_function_body): Move to
20790 ipa-inline-transform.c
20791
20792 2011-04-19 DJ Delorie <dj@redhat.com>
20793
20794 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
20795 registers if we already know there aren't any.
20796 (m32c_emit_epilogue): Don't emit a barrier here.
20797 (m32c_emit_eh_epilogue): Likewise.
20798 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
20799 operands at expand time.
20800 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
20801 int" wchar type.
20802 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
20803 duplicates. Provide aliases instead.
20804 * config/m32c/prologue.md (eh_return): Emit a barrier here.
20805 (eh_epilogue): Add a "(return)" here as a hint to other parts of
20806 the compiler.
20807
20808 2011-04-19 Anatoly Sokolov <aesok@post.ru>
20809
20810 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
20811 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
20812 (general_or_i64_p, sparc_register_move_cost): New function.
20813
20814 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20815
20816 * doc/install.texi (Configuration, --enable-threads): Remove mach.
20817 Add lynx, mipssde. Sort table.
20818
20819 2011-04-19 Xinliang David Li <davidxl@google.com>
20820
20821 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
20822 not negative.
20823
20824 2011-04-19 Jakub Jelinek <jakub@redhat.com>
20825
20826 PR target/48678
20827 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
20828 is a SUBREG with non-MODE_INT mode inside of it.
20829
20830 2011-04-19 Martin Jambor <mjambor@suse.cz>
20831
20832 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
20833 also according to actual contants.
20834 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
20835 (gimple_fold_call): Use it.
20836 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
20837
20838 2011-04-19 Martin Jambor <mjambor@suse.cz>
20839
20840 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
20841 non-pointer assignments.
20842
20843 2011-04-19 Martin Jambor <mjambor@suse.cz>
20844
20845 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
20846 account anc_offset and otr_type from the indirect edge info.
20847 * ipa-prop.c (get_ancestor_addr_info): New function.
20848 (compute_complex_ancestor_jump_func): Assignment analysis moved to
20849 get_ancestor_addr_info, call it.
20850 (ipa_note_param_call): Do not initialize information about polymorphic
20851 calls, return the indirect call graph edge. Remove the last
20852 parameter, adjust all callers.
20853 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
20854 parameters. Initialize polymorphic information in the indirect edge.
20855
20856 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
20857
20858 PR lto/48148
20859 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
20860 the types if they have different enumeration identifiers.
20861
20862 2011-04-19 Jan Hubicka <jh@suse.cz>
20863
20864 * cgraph.h (cgraph_optimize_for_size_p): Declare.
20865 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
20866 * predict.c (cgraph_optimize_for_size_p): Break out from ...
20867 (optimize_function_for_size_p) ... here.
20868
20869 2011-04-19 Richard Guenther <rguenther@suse.de>
20870
20871 PR lto/48207
20872 * tree.c (free_lang_data): Do not reset the decl-assembler-name
20873 langhook.
20874
20875 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
20876
20877 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
20878 if DECL_NO_INLINE_WARNING_P is set on the function.
20879
20880 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
20881
20882 PR fortran/47976
20883 * reload1.c (inc_for_reload): Return void. All callers changed.
20884 (emit_input_reload_insns): Don't try to delete previous output
20885 reloads to a register, or record spill_reg_store for autoincs.
20886
20887 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
20888
20889 * gengtype.h: Updated copyright year.
20890 (struct input_file_st): Add inpisplugin field.
20891 (type_fileloc): New function.
20892 * gengtype.c
20893 (write_typed_struct_alloc_def): Add gcc_assert.
20894 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
20895 (write_typed_alloc_defns): Don't output for plugin files.
20896 (input_file_by_name): Clear inpisplugin field.
20897 (main): Set inpisplugin field for plugin files.
20898
20899 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
20900
20901 * gengtype-state.c (string_eq): New.
20902 (read_state): Use string_eq instead of strcmp when creating the
20903 state_ident_tab.
20904
20905 2011-04-19 Wei Guozhi <carrot@google.com>
20906
20907 PR target/47855
20908 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
20909 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
20910 linkage.
20911 * config/arm/constraints.md (Uu): New constraint.
20912 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
20913
20914 2011-04-19 Tristan Gingold <gingold@adacore.com>
20915
20916 * config.gcc (-*-*-*vms): Added.
20917 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
20918 definitions moved.
20919 * config/vms/vms-ld.c: New file.
20920 * config/vms/vms-ar.c: New file.
20921 * config/vms/t-vmsnative: New file.
20922
20923 2011-04-18 Xinliang David Li <davidxl@google.com>
20924
20925 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
20926
20927 2011-04-18 Jakub Jelinek <jakub@redhat.com>
20928
20929 PR middle-end/48661
20930 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
20931 if TREE_TYPE (v) is non-NULL.
20932
20933 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
20934 gimple_get_virt_mehtod_for_binfo.
20935 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
20936 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
20937 callers.
20938 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20939
20940 2011-04-18 Michael Matz <matz@suse.de>
20941 Steve Ellcey <sje@cup.hp.com>
20942
20943 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
20944 use its mode as source mode if it isn't VOIDmode.
20945
20946 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
20947
20948 * doc/passes.texi: Fill crossref nodes.
20949
20950 2011-04-18 Jim Meyering <meyering@redhat.com>
20951
20952 Fix doubled-word typos in comments and strings
20953 * config/alpha/vms-unwind.h: s/for for/for/
20954 * config/arm/unwind-arm.h: Likewise.
20955 * config/microblaze/microblaze.c: Likewise.
20956 * config/sh/constraints.md: s/in in/in/
20957 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
20958
20959 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
20960
20961 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
20962 (AVX_FLOAT_MODE_P): Ditto.
20963 (AVX128_VEC_FLOAT_MODE_P): Ditto.
20964 (AVX256_VEC_FLOAT_MODE_P): Ditto.
20965 (AVX_VEC_FLOAT_MODE_P): Ditto.
20966 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
20967 (UNSPEC_MASKSTORE): Ditto.
20968 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
20969 Merge from <sse>_movmsk<ssemodesuffix> and
20970 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
20971 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
20972 iterator.
20973 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
20974 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
20975 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
20976
20977 2011-04-18 Jan Hubicka <jh@suse.cz>
20978
20979 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
20980
20981 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
20982 (want_inline_function_called_once_p): Break out the logic from
20983 ipa_inline.
20984 (edge_badness): Ensure that profile is not misupdated.
20985 (lookup_recursive_calls): Prioritize by call frequencies.
20986 (inline_small_functions): Move program size estimates here;
20987 actually process whole queue even when unit growth has been
20988 met. (to properly compute inline_failed reasons and for the
20989 case unit size decrease.) Revisit comments on recursive inlining.
20990 (ipa_inline): Remove unit summary code; first inline hot calls
20991 of functions called once, cold calls next.
20992 (order, nnodes): Remove unused variables.
20993 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
20994 (GTFILES): Remove ipa-inline.c
20995 * sel-sched.c (fill_insns): Silence uninitialized var warning.
20996
20997 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
20998
20999 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21000
21001 2011-04-18 Jie Zhang <jie@codesourcery.com>
21002 Richard Earnshaw <rearnsha@arm.com>
21003
21004 * arm.c (neon_builtin_type_bits): Remove.
21005 (typedef enum neon_builtin_mode): New.
21006 (T_MAX): Don't define.
21007 (typedef enum neon_builtin_datum): Remove bits, codes[],
21008 num_vars and base_fcode. Add mode, code and fcode.
21009 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21010 VAR10): Change accordingly.
21011 (neon_builtin_data[]): Change accordingly
21012 (arm_init_neon_builtins): Change accordingly.
21013 (neon_builtin_compare): Remove.
21014 (locate_neon_builtin_icode): Remove.
21015 (arm_expand_neon_builtin): Change accordingly.
21016
21017 * arm.h (enum arm_builtins): Move to ...
21018 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21019
21020 * arm.c (arm_builtin_decl): Declare.
21021 (TARGET_BUILTIN_DECL): Define.
21022 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21023 (arm_builtin_decls[]): New.
21024 (arm_init_neon_builtins): Store builtin declarations in
21025 arm_builtin_decls[].
21026 (arm_init_tls_builtins): Likewise.
21027 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
21028 (arm_builtin_decl): New.
21029
21030 2011-04-18 Richard Guenther <rguenther@suse.de>
21031
21032 * tree.c (upper_bound_in_type): Build properly canonicalized
21033 INTEGER_CSTs.
21034 (lower_bound_in_type): Likewise.
21035
21036 2011-04-18 Richard Guenther <rguenther@suse.de>
21037
21038 * gimple.h (gimple_call_addr_fndecl): New function.
21039 (gimple_call_fndecl): Use it.
21040 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21041 for direct calls.
21042 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21043 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21044
21045 2011-04-18 Richard Guenther <rguenther@suse.de>
21046
21047 PR middle-end/48650
21048 * tree.c (build_string): STRING_CST is now derived from tree_typed.
21049
21050 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
21051
21052 PR lto/48492
21053 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21054 DECL_IN_CONSTANT_POOL without RTL.
21055
21056 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
21057 Ira Rosen <ira.rosen@linaro.org>
21058
21059 PR target/48252
21060 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21061 to match neon_vzip/vuzp/vtrn_internal.
21062 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21063 outputs explicitly dependent on both inputs.
21064 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21065
21066 2011-04-18 Jakub Jelinek <jakub@redhat.com>
21067
21068 PR tree-optimization/48616
21069 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21070 whether the shift is by scalar or vector based on whether all SLP
21071 scalar stmts have the same rhs.
21072
21073 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
21074
21075 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21076 memory operands.
21077
21078 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
21079
21080 PR target/43700
21081 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21082 registers.
21083
21084 2011-04-17 Jan Hubicka <jh@suse.cz>
21085
21086 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21087 * cgrpahunit.c (cgraph_finalize_function): Do not set
21088 finalized_by_frontend.
21089 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21090 finalized_by_frontend.
21091
21092 2011-04-17 Jan Hubicka <jh@suse.cz>
21093
21094 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21095 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21096 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21097 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21098 method.
21099 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21100 gimple-fold.c
21101 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21102
21103 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
21104
21105 PR lto/48538
21106 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21107 is non-null before accessing it.
21108 (input_cgraph): Remove trailing spaces.
21109
21110 2011-04-17 Revital Eres <revital.eres@linaro.org>
21111
21112 * params.def (sms-min-sc): New param flag.
21113 * modulo-sched.c (sms_schedule): Use it.
21114 * doc/invoke.texi (sms-min-sc): Document it.
21115
21116 2011-04-17 Jan Hubicka <jh@suse.cz>
21117
21118 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21119 present, also set gimple_call_set_cannot_inline.
21120 * ipa-inline.c: Update toplevel comment.
21121 (MAX_TIME): Remove.
21122 (cgraph_clone_inlined_nodes): Fix linebreaks.
21123 (cgraph_check_inline_limits): Restructure to ...
21124 (caller_growth_limits): ... this one; be more tolerant
21125 on growth in nested inline chains; add explanatory comment;
21126 fix stack accounting thinko introduced by previous patch.
21127 (cgraph_default_inline_p): Remove.
21128 (report_inline_failed_reason): New function.
21129 (can_inline_edge_p): New function.
21130 (can_early_inline_edge_p): New function.
21131 (leaf_node_p): Move upwards in file.
21132 (want_early_inline_function_p): New function.
21133 (want_inline_small_function_p): New function.
21134 (want_inline_self_recursive_call_p): New function.
21135 (cgraph_edge_badness): Rename to ...
21136 (edge_badness) ... this one; fix linebreaks.
21137 (update_edge_key): Update call of edge_baddness; add
21138 detailed dump about queue updates.
21139 (update_caller_keys): Use can_inline_edge_p and
21140 want_inline_small_function_p.
21141 (cgraph_decide_recursive_inlining): Rename to...
21142 (recursive_inlining): Use can_inline_edge_p and
21143 want_inline_self_recursive_call_p; simplify and remove no longer
21144 valid FIXME.
21145 (cgraph_set_inline_failed): Remove.
21146 (add_new_edges_to_heap): Use can_inline_edge_p and
21147 want_inline_small_function_p.
21148 (cgraph_decide_inlining_of_small_functions): Rename to ...
21149 (inline_small_functions): ... this one; cleanup; use
21150 can/want predicates; cleanup debug ouput; work edges till fibheap
21151 is exhausted and do not stop once unit growth is reached; remove
21152 later loop processing remaining edges.
21153 (cgraph_flatten): Rename to ...
21154 (flatten_function): ... this one; use can_inline_edge_p
21155 and can_early_inline_edge_p predicates.
21156 (cgraph_decide_inlining): Rename to ...
21157 (ipa_inline): ... this one; remove unreachable nodes before
21158 inlining functions called once; simplify the pass.
21159 (cgraph_perform_always_inlining): Rename to ...
21160 (inline_always_inline_functions): ... this one; use
21161 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21162 (cgraph_decide_inlining_incrementally): Rename to ...
21163 (early_inline_small_functions): ... this one; simplify
21164 using new predicates; cleanup; make dumps prettier.
21165 (cgraph_early_inlining): Rename to ...
21166 (early_inliner): newer inline regular functions into always-inlines;
21167 fix updating of call stmt summaries.
21168 (pass_early_inline): Update for new names.
21169 (inline_transform): Fix formating.
21170 (gate_cgraph_decide_inlining): Rename to ...
21171 (pass_ipa_inline): ... this one.
21172 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21173 * ipa-inline-analysis.c (dump_inline_summary): Update.
21174 (compute_inline_parameters): Do not compute disregard_inline_limits;
21175 look for mismatching arguments.
21176 (estimate_growth): Fix handlig of non-trivial self recursion.
21177 (inline_read_summary): Do not read info->disregard_inline_limits.
21178 (inline_write_summary): Do not write info->disregard_inline_limits.
21179 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21180 and move all checks into can_inline_edge_p predicate; re-enable code
21181 comparing optimization levels.
21182 (expand_call_inline): Do not test inline_forbidden_into_p.
21183 * Makefile.in (ipa-inline.o): Update arguments.
21184
21185 2011-04-17 Revital Eres <revital.eres@linaro.org>
21186
21187 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21188
21189 2011-04-17 Revital Eres <revital.eres@linaro.org>
21190
21191 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21192
21193 2011-04-17 Michael Matz <matz@suse.de>
21194
21195 PR tree-optimization/48622
21196 PR lto/48645
21197 * ipa-inline-analysis.c (inline_read_summary): Read size/time
21198 in same order as they're written.
21199
21200 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21201
21202 * config/pa/predicates.md: Reorganize and simplify predicates.
21203 Eliminate duplicate code checks.
21204 (arith_operand): Rename to arith14_operand
21205 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21206 * config/pa/pa.md: Use renamed operands.
21207 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21208 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21209 arith11_operand, adddi3_operand, indexed_memory_operand,
21210 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21211 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21212 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21213 move_dest_operand, move_src_operand, prefetch_cc_operand,
21214 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21215 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21216 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21217 div_operand, int5_operand, movb_comparison_operator,
21218 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21219 arith_double_operand, ireg_operand, lhs_lshift_operand,
21220 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21221 integer_store_memory_operand): Likewise.
21222 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21223 (integer_store_memory_operand, read_only_operand,
21224 function_label_operand, borx_reg_operand,
21225 non_hard_reg_operand): Likewise.
21226 (eq_neq_comparison_operator): Delete unused operator.
21227 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21228 function_label_operand.
21229 (emit_move_sequence): Likewise.
21230
21231 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21232
21233 * config/i386/sse.md (sseunpackmode): New mode attribute.
21234 (ssepackmode): Ditto.
21235 (vec_pack_trunc_<mode>): Macroize expander from
21236 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21237 (vec_unpacks_lo_<mode>): Macroize expander from
21238 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21239 (vec_unpacks_hi_<mode>): Macroize expander from
21240 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21241 (vec_unpacku_lo_<mode>): Macroize expander from
21242 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21243 (vec_unpacku_hi_<mode>): Macroize expander from
21244 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21245 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21246 ix86_expand_sse4_unpack.
21247 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21248
21249 2011-04-16 Jan Hubicka <jh@suse.cz>
21250
21251 * cgraphbuild.c: Include ipa-inline.h.
21252 (reset_inline_failed): Use initialize_inline_failed.
21253 * cgraph.c: Include ipa-inline.h.
21254 (cgraph_create_node_1): Do not initialize estimated_growth.
21255 (initialize_inline_failed): More to ipa-inline-analysis.c
21256 (dump_cgraph_node): Do not dump inline flags.
21257 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21258 and disregard_inline_limits flags.
21259 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21260 time, size, estimated_growth.
21261 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21262 Update.
21263 * cgraphunit.c (cgraph_decide_is_function_needed): Use
21264 DECL_DISREGARD_INLINE_LIMITS.
21265 (cgraph_analyze_function): Do not initialize
21266 node->local.disregard_inline_limits.
21267 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21268 inlinable, versionable and disregard_inline_limits.
21269 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21270 cgraph_check_inline_limits, cgraph_default_inline_p,
21271 cgraph_edge_badness, update_caller_keys, update_callee_keys,
21272 add_new_edges_to_heap): Update.
21273 (cgraph_decide_inlining_of_small_function): Update; set
21274 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21275 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21276 cgraph_decide_inlining_incrementally): Update.
21277 * ipa-inline.h (inline_summary): Add inlinable, versionable,
21278 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21279 time, size and estimated_growth parameters.
21280 (estimate_edge_growth): Update.
21281 (initialize_inline_failed): Declare.
21282 * ipa-split.c: Include ipa-inline.h
21283 (execute_split_functions): Update.
21284 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21285 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21286 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21287 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21288 estimated_growth to INT_MIN.
21289 (inline_node_duplication_hook): Likewise.
21290 (dump_inline_summary): Dump new fields.
21291 (compute_inline_parameters): Update.
21292 (estimate_edge_time, estimate_time_after_inlining,
21293 estimate_size_after_inlining, estimate_growth, inline_read_summary,
21294 inline_write_summary):
21295 (initialize_inline_failed): Move here from cgraph.c.
21296 * tree-sra.c: Include ipa-inline.h.
21297 (ipa_sra_preliminary_function_checks): Update.
21298 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21299 ipa-inline.h.
21300
21301 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21302
21303 * config/i386/sse.md (V16): New mode iterator.
21304 (VI1, VI8): Ditto.
21305 (AVXMODEQI, AVXMODEDI): Remove.
21306 (sse2, sse3): New mode attribute.
21307 (mov<mode>): Use V16 mode iterator.
21308 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21309 (push<mode>1): Use V16 mode iterator.
21310 (movmisalign<mode>): Ditto.
21311 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21312 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21313 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21314 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21315 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21316 avx_movdqu<avxmodesuffix>.
21317 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21318 *avx_movdqu<avxmodesuffix>.
21319 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21320 avx_lddqu<avxmodesuffix>.
21321 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21322 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21323 avx_movnt<AVXMODEDI:mode>.
21324 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21325 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21326
21327 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
21328
21329 PR target/48629
21330 * haifa-sched.c (prune_ready_list, schedule_block): Use
21331 sched_pressure_p rather than flag_sched_pressure.
21332
21333 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
21334
21335 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21336 cgraph_get_node instead of cgraph_get_create_node.
21337
21338 2011-04-15 Jakub Jelinek <jakub@redhat.com>
21339
21340 * cfgexpand.c (expand_debug_expr): Use
21341 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21342
21343 2011-04-15 Michael Matz <matz@suse.de>
21344
21345 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21346 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21347 * function.c (gimplify_parameters): Ditto.
21348 * gimplify.c (gimplify_vla_decl): Ditto.
21349
21350 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21351 (gimple_call_set_alloca_for_var): New inline function.
21352 (gimple_call_alloca_for_var_p): Ditto.
21353 * gimple.c (gimple_build_call_from_tree): Remember
21354 CALL_ALLOCA_FOR_VAR_P state.
21355 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21356
21357 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21358 calls if they were for VLA objects.
21359
21360 2011-04-15 Martin Jambor <mjambor@suse.cz>
21361
21362 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21363 of ADR_EXPRs.
21364
21365 2011-04-15 Martin Jambor <mjambor@suse.cz>
21366
21367 PR middle-end/48601
21368 * tree-emutls.c (lower_emutls_function_body): Call
21369 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
21370 result is non-NULL.
21371
21372 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
21373
21374 * c-decl.c (detect_field_duplicates): Call
21375 objc_detect_field_duplicates instead of objc_get_interface_ivars.
21376
21377 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
21378
21379 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21380 * gimple.c (gimple_asm_clobbers_memory_p): Define.
21381 * ipa-pure-const.c (check_stmt): Call it.
21382 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21383
21384 2011-04-15 Richard Guenther <rguenther@suse.de>
21385
21386 PR tree-optimization/48290
21387 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21388 Properly decide inhibiting propagation based on the valueized
21389 operand. Do loop-closed SSA form preserving here ...
21390 (init_copy_prop): ... not here.
21391
21392 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
21393
21394 PR target/48612
21395 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21396 (*ieee_smax<mode>3): Likewise.
21397
21398 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21399
21400 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21401 Replace match_operand with match_dup for the third operand in
21402 these expanders.
21403
21404 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
21405
21406 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21407 to track processing of conditionals. Update all callers.
21408 (try_combine, simplify_if_then_else): Update.
21409
21410 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
21411
21412 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21413 -fsched-pressure.
21414
21415 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
21416
21417 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21418 instead of match_operand for operand 3.
21419
21420 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
21421
21422 * recog.h (insn_operand_data): Add an "allows_mem" field.
21423 * genoutput.c (output_operand_data): Initialize it.
21424 * optabs.c (maybe_legitimize_operand_same_code): New function.
21425 (maybe_legitimize_operand): Use it when matching the original
21426 op->value.
21427
21428 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
21429
21430 * gimplify.c: Fix issues in comments throughout.
21431 (voidify_wrapper_expr): Fix long line.
21432 (build_stack_save_restore): Likewise.
21433 (gimplify_loop_expr): Likewise.
21434 (gimplify_compound_lval): Likewise.
21435 (gimplify_init_ctor_eval): Likewise.
21436 (gimplify_modify_expr_rhs): Likewise.
21437 (omp_notice_threadprivate_variable): Likewise.
21438
21439 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
21440
21441 * cfgexpand.c (expand_call_stmt): Convert the function type to the
21442 original one if this is not a builtin function.
21443
21444 2011-04-14 Jakub Jelinek <jakub@redhat.com>
21445
21446 PR target/48605
21447 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21448 offset it as needed based on top 2 bits in operands[3], change
21449 MEM mode to SFmode and mask those 2 bits away from operands[3].
21450
21451 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
21452
21453 * c-parser.c (c_parser_objc_protocol_definition): Updated for
21454 change from objc_declare_protocols() to objc_declare_protocol().
21455
21456 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
21457
21458 * config/i386/sse.md (sse4_1): New mode attribute.
21459 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21460 avx_blend<ssemodesuffix><avxmodesuffix> and
21461 sse4_1_blend<ssemodesuffix> using VF mode iterator.
21462 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21463 avx_blendv<ssemodesuffix><avxmodesuffix> and
21464 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21465 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21466 avx_dp<ssemodesuffix><avxmodesuffix> and
21467 sse4_1_dp<ssemodesuffix> using VF mode iterator.
21468 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21469 (sse4_1_packusdw): Merge with *avx_packusdw.
21470 (sse4_1_pblendvb): Merge with *avx_pblendvb.
21471 (sse4_1_pblendw): Merge with *avx_pblendw.
21472 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21473 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21474 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21475 VF mode iterator.
21476 (sse4_1_round<ssescalarmodesuffix>): Merge with
21477 *avx_round<ssescalarmodesuffix>.
21478 (aesenc): Merge with *avx_aesenc.
21479 (aesenclast): Merge with *avx_aesenclast.
21480 (aesdec): Merge with *avx_aesdec.
21481 (aesdeclast): Merge with *avx_aesdeclast.
21482 (pclmulqdq): Merge with *pclmulqdq.
21483 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21484 New predicate.
21485 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21486
21487 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
21488
21489 PR middle-end/48608
21490 * cfgexpand.c (get_decl_align_unit): Renamed to ...
21491 (align_local_variable): This. Update DECL_ALIGN.
21492 (add_stack_var): Updated.
21493 (expand_one_stack_var): Likewise.
21494
21495 2011-04-14 Richard Guenther <rguenther@suse.de>
21496
21497 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21498 Remove.
21499 (dse_initialize_block_local_data, dse_leave_block,
21500 record_voperand_set, get_stmt_uid): Likewise.
21501 (dse_possible_dead_store_p): Allow any kind of killing stmt.
21502 (dse_optimize_stmt): Remove voperand set handling code.
21503 Simplify and improve to handle any kind of killing stmt.
21504 (dse_record_phi): Remove.
21505 (dse_enter_block): Simplify.
21506 (tree_ssa_dse): Likewise.
21507 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21508
21509 2011-04-14 Jan Hubicka <jh@suse.cz>
21510
21511 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21512 * cgraph.h (struct inline_summary): Move to ipa-inline.h
21513 (cgraph_local_info): Remove inline_summary.
21514 * ipa-cp.c: Include ipa-inline.h.
21515 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21516 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21517 accesor.
21518 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21519 (input_overwrite_node): Do not set inline summary.
21520 (input_node): Do not stream inline summary.
21521 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21522 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21523 growth; we do not have inline parameters computed for that anyway.
21524 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21525 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21526 (inline_summary_t): New type and VECtor.
21527 (debug_inline_summary, dump_inline_summaries): Declare.
21528 (inline_summary): Use VOCtor.
21529 (estimate_edge_growth): Kill hack computing call stmt size directly.
21530 * lto-section-in.c (lto_section_name): Add inline section.
21531 * ipa-inline-analysis.c: Include lto-streamer.h
21532 (node_removal_hook_holder, node_duplication_hook_holder): New holders
21533 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21534 (inline_summary_vec): Define.
21535 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21536 dump_inline_summaries): New functions.
21537 (estimate_function_body_sizes): Properly compute size/time of outgoing
21538 calls.
21539 (compute_inline_parameters): Alloc inline_summary; do not compute
21540 size/time of incomming calls.
21541 (estimate_edge_time): Avoid missing time summary hack.
21542 (inline_read_summary): Read inline summary info.
21543 (inline_write_summary): Write inline summary info.
21544 (inline_free_summary): Free all hooks and inline summary vector.
21545 * lto-streamer.h: Add LTO_section_inline_summary section.
21546 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21547 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21548
21549 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21550
21551 * tree-vectorizer.h (vect_strided_store_supported): Add a
21552 HOST_WIDE_INT argument.
21553 (vect_strided_load_supported): Likewise.
21554 (vect_permute_store_chain): Return void.
21555 (vect_transform_strided_load): Likewise.
21556 (vect_permute_load_chain): Delete.
21557 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21558 count argument. Check that the count is a power of two.
21559 (vect_strided_load_supported): Likewise.
21560 (vect_permute_store_chain): Return void. Update after above changes.
21561 Assert that the access is supported.
21562 (vect_permute_load_chain): Likewise.
21563 (vect_transform_strided_load): Return void.
21564 * tree-vect-stmts.c (vectorizable_store): Update calls after
21565 above interface changes.
21566 (vectorizable_load): Likewise.
21567 (vect_analyze_stmt): Don't check for strided powers of two here.
21568
21569 2011-04-14 Richard Guenther <rguenther@suse.de>
21570
21571 PR tree-optimization/48590
21572 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21573 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21574 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21575 BUILT_IN_STACK_SAVE.
21576 * tree-ssa-dce.c (propagate_necessity): Handle
21577 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21578
21579 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
21580
21581 * c-parser.c (c_parser_objc_class_declaration): Updated call to
21582 objc_declare_class.
21583
21584 2011-04-14 Richard Guenther <rguenther@suse.de>
21585
21586 * tree.h (get_object_alignment_1): Declare.
21587 * builtins.c (get_object_alignment_1): Split out worker from ...
21588 (get_object_alignment): ... here.
21589 * fold-const.c (get_pointer_modulus_and_residue): Use
21590 get_object_alignment_1.
21591
21592 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21593
21594 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21595 type parameter.
21596 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21597 parameter. Generalise code to handle arrays as well as vectors.
21598 (vect_setup_realignment): Update accordingly.
21599 * tree-vect-stmts.c (vectorizable_store): Likewise.
21600 (vectorizable_load): Likewise.
21601
21602 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21603
21604 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21605 within the per-copy loop.
21606
21607 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21608
21609 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21610 in the dump file.
21611
21612 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
21613
21614 * doc/options.texi (Negative): Explicitly mention that the
21615 Negative chain must be circular.
21616
21617 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
21618
21619 * function.h (block_chainon): Declare.
21620 * function.c (block_chainon): Define.
21621
21622 2011-04-14 Anatoly Sokolov <aesok@post.ru>
21623 Eric Weddington <eric.weddington@atmel.com>
21624 Georg-Johann Lay <avr@gjlay.de>
21625
21626 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21627 New Includes
21628 (avr_init_builtins, avr_expand_builtin,
21629 avr_expand_delay_cycles, avr_expand_unop_builtin,
21630 avr_expand_binop_builtin ): New functions.
21631 (avr_builtin_id): New enum
21632 (struct avr_builtin_description): New struct
21633 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
21634 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
21635
21636 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
21637 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
21638 UNSPECV_DELAY_CYCLES): new enumeration values
21639 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
21640 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
21641 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21642 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
21643 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
21644 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
21645 "fmulsu"): New insns
21646
21647 * config/avr/avr-c.c: fix line endings
21648 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
21649 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
21650 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
21651 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
21652 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
21653
21654 * doc/extend.texi (AVR Built-in Functions): New node
21655 (Target Builtins): Add documentation of AVR
21656 built-in functions.
21657
21658 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
21659
21660 PR target/44643
21661 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
21662 alone. Error if non-const data has attribute progmem.
21663
21664 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21665
21666 * tree.h (struct tree_constructor): Include tree_typed instead of
21667 tree_common.
21668 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
21669 TS_TYPED instead of TS_COMMON.
21670
21671 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
21672
21673 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
21674 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
21675 (sse2_psadbw): Merge with *avx_psadbw.
21676 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
21677 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
21678 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
21679 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
21680 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
21681 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
21682 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
21683 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
21684 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
21685 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
21686 (ssse3_palignrti): Merge with *avx_palignrti.
21687
21688 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21689
21690 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
21691 * tree-ssanames.c (fini_ssanames): VEC_free it.
21692 (make_ssa_name_fn): Update for VECness of free_ssanames.
21693 (release_ssa_name, release_dead_ssa_names): Likewise.
21694 * tree.h (struct tree_ssa_name): Include tree_typed instead of
21695 tree_common.
21696 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
21697 TS_TYPED instead of TS_COMMON.
21698
21699 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21700
21701 * postreload-gcse.c (gcse_after_reload_main): Add calls to
21702 statistics_counter_event.
21703 * tree-ssa-copyrename.c (stats): Define.
21704 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
21705 statistics_counter_event.
21706 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
21707 (bswap_stats, widen_mul_stats): Define.
21708 (insert_reciprocals): Increment rdivs_inserted.
21709 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
21710 rfuncs_inserted. Add calls to statistics_counter_event.
21711 (execute_cse_sincos_1): Increment inserted.
21712 (execute_cse_sincos): Zeroize sincos_stats. Add call to
21713 statistics_counter_event.
21714 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
21715 of bswap_stats. Add calls to statistics_counter_event.
21716 (convert_mult_to_widen): Increment widen_mults_inserted.
21717 (convert_plusminus_to_widen): Increment maccs_inserted.
21718 (convert_mult_to_fma): Increment fmas_inserted.
21719 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
21720 calls to statistics_counter_event.
21721
21722 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
21723
21724 PR rtl-optimization/48455
21725 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
21726 `temp_costs->mem_cost'.
21727
21728 2011-04-13 Jan Hubicka <jh@suse.cz>
21729
21730 * ipa-inline.h: New file.
21731 * ipa-inline-analysis.c: New file. Broken out of ...
21732 * ipa-inline.c: ... this file; update toplevel comment;
21733 include ipa-inline.h
21734 (inline_summary): Move to ipa-inline.h
21735 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
21736 ipa-inline-analysis.c.
21737 (cgraph_estimate_time_after_inlining): Rename to
21738 estiamte_time_after_inlining; move to ipa-inline-analysis.c
21739 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
21740 to estimate_edge_growth.
21741 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
21742 rename to estimate_size_after_inlining.
21743 (cgraph_mark_inline_edge): Update for new naming convention.
21744 (cgraph_check_inline_limits): Likewise.
21745 (cgraph_edge_badness): Likewise.
21746 (cgraph_decide_recursive_inlining): Likewise.
21747 (cgraph_decide_inlining_of_small_functions): Likewise.
21748 (cgraph_decide_inlining_incrementally): Likewise.
21749 (cgraph_estimate_growth): Rename to estimate_growth; move to
21750 ipa-inline-analysis.c.
21751 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
21752 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
21753 (compute_inline_parameters): Likewise.
21754 (compute_inline_parameters_for_current): Likewise.
21755 (pass_inline_parameters): Likewise.
21756 (inline_indirect_intraprocedural_analysis): Likewise.
21757 (analyze_function): Rename to inline_analyze_function; likewise.
21758 (add_new_function): Move to ipa-inline-analysis.c.
21759 (inline_generate_summary): Likewise.
21760 (inline_read_summary): Likewise.
21761 (inline_write_summary): Likewise.
21762 * Makefile.in (ipa-inline-analysis.c): New file.
21763
21764 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21765
21766 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
21767 * configure: Regenerate.
21768
21769 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
21770
21771 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
21772 instead of tree_common.
21773 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
21774 Likewise.
21775 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
21776 TS_TYPED rather than TS_COMMON.
21777 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
21778
21779 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
21780
21781 PR target/45263
21782 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
21783 r20 around calls of __tablejump_elpm__
21784
21785 2011-04-13 Jakub Jelinek <jakub@redhat.com>
21786
21787 PR middle-end/48591
21788 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
21789 NULL.
21790 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
21791
21792 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
21793
21794 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
21795 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
21796 (cfi_vec): New typedef.
21797 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
21798 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
21799 (cie_cfi_vec): New static variable.
21800 (cie_cfi_head): Delete.
21801 (add_cfi): Accept a cfi_vec * as first argument. All callers and
21802 declaration changed. Use vector rather than list operations.
21803 (new_cfi): Don't initialize the dw_cfi_next field.
21804 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
21805 rather than list operations.
21806 (lookup_cfa): Use vector rather than list operations.
21807 (output_cfis): New argument upto. Accept a cfi_vec rather than
21808 a dw_cfi_ref list head as argument. All callers changed.
21809 Iterate over the vector using upto as a maximum index.
21810 (output_all_cfis): New static function.
21811 (output_fde): Use vector rather than list operations. Use the
21812 new upto argument for output_cfis rather than manipulating a
21813 list.
21814 (dwarf2out_begin_prologue): Change initializations to match
21815 new struct members.
21816 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
21817 from the vector length rather than searching for the end of a list.
21818 Use output_all_cfis.
21819 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
21820
21821 2011-04-13 Nick Clifton <nickc@redhat.com>
21822
21823 * config/rx/rx.md (movmemsi): Do not use this pattern when
21824 volatile pointers are involved.
21825
21826 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
21827
21828 * config/i386/sse.md (pinsrbits): Remove.
21829 (sse2_packsswb): Merge with *avx_packsswb.
21830 (sse2_packssdw): Merge with *avx_packssdw.
21831 (sse2_packuswb): Merge with *avx_packuswb.
21832 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
21833 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
21834 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
21835 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
21836 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
21837 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
21838 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
21839 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
21840 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
21841 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
21842 (sse2_loadld): Merge with *avx_loadld.
21843 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
21844 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
21845 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
21846 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
21847 (vec_concatv2di): Merge with *vec_concatv2di_avx.
21848
21849 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
21850
21851 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
21852 calling TREE_CHAIN.
21853 * print-tree.c (print_node): Likewise.
21854 * tree-inline.c (copy_tree_r): Likewise.
21855 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
21856 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
21857 instead of TS_COMMON.
21858 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
21859 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
21860 (copy_node_stat): Zero TREE_CHAIN only if necessary.
21861 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
21862 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
21863 ...and these...
21864 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
21865 * tree.h: ...here.
21866 (TREE_CHAIN): Check for a TS_COMMON structure.
21867 (TREE_TYPE): Check for a TS_TYPED structure.
21868
21869 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
21870
21871 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21872 cgraph_get_create_node instead of cgraph_node.
21873
21874 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
21875
21876 * c-parser.c (c_parser_initelt): Updated call to
21877 objc_build_message_expr.
21878 (c_parser_postfix_expression): Likewise.
21879
21880 2011-04-12 Kai Tietz <ktietz@redhat.com>
21881
21882 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
21883 MASK_MS_BITFIELD_LAYOUT bit.
21884
21885 2011-04-12 Jakub Jelinek <jakub@redhat.com>
21886
21887 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
21888 assert it is always true.
21889 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
21890 moves.
21891
21892 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
21893
21894 * c-parser.c (c_lex_one_token): Rewritten conditional used when
21895 compiling Objective-C to be more efficient.
21896
21897 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
21898
21899 * opts-common.c (decode_cmdline_options_to_array): Remove variable
21900 argv_copied.
21901
21902 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21903
21904 * recog.h, genoutput.c, optabs.c: Revert last patch.
21905
21906 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21907
21908 PR target/48090
21909 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
21910
21911 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21912
21913 * recog.h (insn_operand_data): Add an "allows_mem" field.
21914 * genoutput.c (output_operand_data): Initialize it.
21915 * optabs.c (maybe_legitimize_operand_same_code): New function.
21916 (maybe_legitimize_operand): Use it when matching the original
21917 op->value.
21918
21919 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21920
21921 * genpreds.c (process_define_predicate): Move most processing
21922 to gensupport.c. Continue to validate the expression.
21923 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
21924 (process_define_predicate): Move processing to gensupport.c.
21925 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
21926 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
21927 (compute_predicate_codes): Moved from genrecog.c. Add lineno
21928 argument.
21929 (valid_predicate_name_p): New function, split out from old
21930 genpreds.c:process_define_predicate.
21931 (process_define_predicate): New function, combining code from
21932 old genpreds.c and genrecog.c functions.
21933 (process_rtx): Call it for DEFINE_PREDICATE and
21934 DEFINE_SPECIAL_PREDICATE.
21935
21936 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
21937
21938 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
21939 size of a '%A' memory reference.
21940 (T_DREG, T_QREG): New neon_builtin_type_bits.
21941 (arm_init_neon_builtins): Assert that the load and store operands
21942 are neon_struct_operands.
21943 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
21944 (NEON_ARG_MEMORY): New builtin_arg.
21945 (neon_dereference_pointer): New function.
21946 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
21947 Handle NEON_ARG_MEMORY.
21948 (arm_expand_neon_builtin): Update after above interface changes.
21949 Use NEON_ARG_MEMORY for loads and stores.
21950 * config/arm/predicates.md (neon_struct_operand): New predicate.
21951 * config/arm/iterators.md (V_two_elem): Tweak formatting.
21952 (V_three_elem): Use BLKmode for accesses that have no associated mode.
21953 (V_four_elem): Tweak formatting.
21954 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
21955 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
21956 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
21957 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
21958 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
21959 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
21960 (neon_vst4<mode>): Replace pointer operand with a memory operand.
21961 Use %A in the output template.
21962 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
21963 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
21964 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
21965 the width of the memory access. Remove post-increment.
21966 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
21967
21968 2011-04-12 Nick Clifton <nickc@redhat.com>
21969
21970 * config/v850/v850.c (expand_prologue): Do not use the CALLT
21971 instruction for interrupt handlers if the target is the basic V850
21972 architecture.
21973 (expand_epilogue): Likewise.
21974
21975 2011-04-12 Jakub Jelinek <jakub@redhat.com>
21976
21977 PR rtl-optimization/48549
21978 * combine.c (propagate_for_debug): Also stop after BB_END of
21979 this_basic_block. Process LAST and just stop processing after it.
21980 (combine_instructions): If last_combined_insn has been deleted,
21981 set last_combined_insn to its PREV_INSN.
21982
21983 2011-04-12 Richard Guenther <rguenther@suse.de>
21984
21985 PR tree-optimization/46076
21986 * gimple.h (struct gimple_statement_call): Add fntype field.
21987 (gimple_call_fntype): Adjust.
21988 (gimple_call_set_fntype): New function.
21989 * gimple.c (gimple_build_call_1): Set the call function type.
21990 * gimplify.c (gimplify_call_expr): Preserve the function
21991 type the frontend used for the call.
21992 (gimplify_modify_expr): Likewise.
21993 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
21994 function type.
21995 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
21996 function type.
21997 * tree-ssa.c (useless_type_conversion_p): Function pointer
21998 conversions are useless.
21999
22000 2011-04-12 Martin Jambor <mjambor@suse.cz>
22001
22002 * cgraph.h (cgraph_node): Remove function declaration.
22003 (cgraph_create_node): Declare.
22004 (cgraph_get_create_node): Likewise.
22005 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22006 Updated all callers.
22007 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22008 the decl does not already exist. Call cgraph_get_create_node instead
22009 of cgraph_node.
22010 (cgraph_get_create_node): New function.
22011 (cgraph_same_body_alias): Update comment.
22012 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22013 assert it does not return NULL.
22014 (cgraph_update_edges_for_call_stmt): Likewise.
22015 (cgraph_clone_edge): Likewise.
22016 (cgraph_create_virtual_clone): Likewise.
22017 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22018 instead of cgraph_node.
22019 (cgraph_add_new_function): Call cgraph_create_node or
22020 cgraph_get_create_node instead of cgraph_node.
22021 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22022 instead of cgraph_node.
22023 (record_eh_tables): Likewise.
22024 (mark_address): Likewise.
22025 (mark_load): Likewise.
22026 (build_cgraph_edges): Call cgraph_get_create_node instead
22027 of cgraph_node.
22028 (rebuild_cgraph_edges): Likewise.
22029 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22030 instead of cgraph_node.
22031 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22032 cgraph_node.
22033 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22034 cgraph_create_node instead of cgraph_node.
22035 * c-decl.c (finish_function): Call cgraph_get_create_node instead
22036 of cgraph_node.
22037 * lto-cgraph.c (input_node): Likewise.
22038 * lto-streamer-in.c (input_function): Likewise.
22039 * varasm.c (mark_decl_referenced): Likewise.
22040 (assemble_alias): Likewise.
22041
22042 2011-04-12 Martin Jambor <mjambor@suse.cz>
22043
22044 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22045 instead of cgraph_node and assert it does not return NULL.
22046 * lto-streamer-in.c (lto_read_body): Likewise.
22047 * omp-low.c (new_omp_context): Likewise.
22048 (create_task_copyfn): Likewise.
22049 * tree-emutls.c (lower_emutls_function_body): Likewise.
22050 * matrix-reorg.c (transform_allocation_sites): Likewise.
22051
22052 2011-04-12 Jakub Jelinek <jakub@redhat.com>
22053
22054 PR c/48552
22055 * c-typeck.c (build_asm_expr): Error out on attempts to use
22056 void type outputs or inputs for constraints that allow reg or
22057 don't allow memory.
22058
22059 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
22060 Richard Earnshaw <rearnsha@arm.com>
22061
22062 PR target/48250
22063 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22064 to use sign-magnitude offsets. Reject unsupported unaligned
22065 cases. Add detailed description in comments.
22066 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22067 condition from TARGET_32BIT to TARGET_ARM.
22068
22069 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
22070
22071 * tree.h (struct typed_tree): New.
22072 (struct tree_common): Include it instead of tree_base.
22073 (TREE_TYPE): Update for new location of type field.
22074 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22075 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22076 (union tree_node): Add typed field.
22077 * treestruct.def (TS_TYPED): New.
22078 * lto-streamer.c (check_handled_ts_structures): Handle it.
22079 * tree.c (MARK_TS_TYPED): New macro.
22080 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22081
22082 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
22083
22084 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22085 (force_nonfallthru): Do not alter the loop nest if no basic block
22086 was created.
22087
22088 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22089
22090 * config/i386/sse.md (VI): New mode iterator.
22091 (SSEMODEI): Remove.
22092 (AVX256MODEI): Ditto.
22093 (AVXMODEF4P): Ditto.
22094 (avxvecpsmode): Ditto.
22095 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
22096 (sse2_andnot<mode>3): New expander.
22097 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22098 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
22099 (<any_logic:code><mode>3): Use VI mode iterator.
22100 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22101 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
22102 (*andnottf3): Handle AVX three-operand constraints.
22103 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22104
22105 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22106 Robert Millan <rmh@gnu.org>
22107
22108 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22109 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22110 GNU_USER_DYNAMIC_LINKER64): Define.
22111 (REG_NAME): Don't undefine.
22112 (MD_UNWIND_SUPPORT): Undefine.
22113 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22114 (REG_NAME): Don't undefine.
22115 (MD_UNWIND_SUPPORT): Undefine.
22116 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22117
22118 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22119
22120 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22121 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22122
22123 2011-04-11 Xinliang David Li <davidxl@google.com>
22124
22125 * value-profile.c (check_ic_target): New function.
22126 (gimple_ic_transform): Sanity check indirect call target.
22127 * gimple-low.c (gimple_check_call_args): Interface change.
22128 (gimple_check_call_matching_types): New function.
22129 * tree-inline.c (tree_can_inline_p): Call new function.
22130
22131 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
22132
22133 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22134 tree-pretty-print.h & realmpfr.h.
22135
22136 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
22137
22138 PR middle-end/48464
22139 * ira.c (setup_pressure_classes): Fix typo in loop condition.
22140 (setup_allocno_and_important_classes): Ditto.
22141
22142 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22143
22144 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22145 GNU_USER_DYNAMIC_LINKER.
22146 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22147 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22148 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22149 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22150 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22151 GNU_USER_TARGET_OS_CPP_BUILTINS.
22152 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22153 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22154 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22156 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22157 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22158 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22159 GNU_USER_TARGET_OS_CPP_BUILTINS.
22160 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22161 GNU_USER_DYNAMIC_LINKER.
22162 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22163 GNU_USER_TARGET_OS_CPP_BUILTINS.
22164 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22165 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22166 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22167 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22168 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22169 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22170 GNU_USER_DYNAMIC_LINKER64): Remove.
22171 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22172 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22173 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22174 GNU_USER_DYNAMIC_LINKER.
22175 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22176 GNU_USER_TARGET_OS_CPP_BUILTINS.
22177 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22178 GNU_USER_TARGET_OS_CPP_BUILTINS.
22179 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22180 to GNU_USER_TARGET_OS_CPP_BUILTINS.
22181 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22182 GNU_USER_TARGET_OS_CPP_BUILTINS.
22183 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22184 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22185 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22186 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22187 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22188 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22189 GNU_USER_DYNAMIC_LINKER.
22190 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22191 GNU_USER_TARGET_OS_CPP_BUILTINS.
22192 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22193 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22194 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22195 GNU_USER_DYNAMIC_LINKER.
22196 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22197 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22198 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22199 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22200 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22201 GNU_USER_DYNAMIC_LINKER.
22202 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22203 GNU_USER_DYNAMIC_LINKERN32.
22204 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22205 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
22206 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
22207 GNU_USER_DYNAMIC_LINKER32.
22208 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22209 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22210 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22211 GNU_USER_DYNAMIC_LINKER.
22212 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22213 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22214 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22215 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22216 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22217 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22218 GNU_USER_DYNAMIC_LINKER32.
22219 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22220 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22221 GNU_USER_DYNAMIC_LINKER.
22222 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22223 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22224 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22225 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
22226 GNU_USER_DYNAMIC_LINKER64.
22227 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22228 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22229 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22230 GNU_USER_DYNAMIC_LINKER.
22231 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22232 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22233 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22234 GNU_USER_DYNAMIC_LINKER.
22235 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22236 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22237 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22238 GNU_USER_DYNAMIC_LINKER32.
22239 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22240 GNU_USER_DYNAMIC_LINKER64.
22241 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22242 GNU_USER_DYNAMIC_LINKER64.
22243 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22244 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22245 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22246 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22247 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22248
22249 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22250
22251 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
22252 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22253 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22254 GNU_USER_DYNAMIC_LINKER.
22255 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22256 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
22257 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22258 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22259 GNU_USER_DYNAMIC_LINKER64.
22260 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22261 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22262 GNU_USER_LINK_EMULATION.
22263 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22264 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22265 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22266 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22267 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22268 CPP_SPEC, CC1_SPEC): Remove.
22269 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22270 (GNU_USER_DYNAMIC_LINKER): Define.
22271 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22272 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22273 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22274 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22275 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22276 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22277 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22278 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22279 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22280 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22281 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22282 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22283 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22284 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22285 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22286 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22287 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22288 GNU_USER_DYNAMIC_LINKER.
22289 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22290 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22291 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22292 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22293 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22294 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22295 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22296 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22297 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22298 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22299
22300 2011-04-11 Kai Tietz <ktietz@redhat.com>
22301
22302 PR target/9601
22303 PR target/11772
22304 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22305 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22306 comment.
22307 (ix86_is_msabi_thiscall): Removed.
22308 (ix86_is_type_thiscall): Likewise.
22309 (ix86_get_callcvt): New function.
22310 (ix86_comp_type_attributes): Simplify check.
22311 (ix86_function_regparm): Use ix86_get_callcvt for calling
22312 convention attribute checks.
22313 (ix86_return_pops_args): Likewise.
22314 (ix86_static_chain): Likewise.
22315 (x86_this_parameter): Likewise.
22316 (x86_output_mi_thunk): Likewise.
22317 (ix86_function_type_abi): Optimize check for types without attributes.
22318 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22319 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22320 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22321 by flag-values.
22322 (IX86_BASE_CALLCVT): Helper macro.
22323 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22324 Use ix86_get_callcvt for calling convention attribute checks and avoid
22325 symbol-decoration for stdcall in TARGET_RTD case.
22326 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22327 Likewise.
22328 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22329 for declaration.
22330
22331 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22332
22333 * config/i386/sse.md (VI_128): New mode iterator.
22334 (VI12_128): Rename from SSEMODE12.
22335 (VI14_128): Rename from SSEMODE14.
22336 (VI124_128): New mode iterator.
22337 (VI24_128): Rename from SSEMODE248.
22338 (VI248_128): Rename from SSEMODE248.
22339 (SSEMODE124C8): Remove.
22340 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22341 (*sse2_<plusminus_insn><mode>3): Merge with
22342 *avx_<plusminus_insn><mode>3.
22343 (*mulv8hi3): Merge with *avx_mulv8hi3.
22344 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22345 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22346 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22347 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22348 (ashr<mode>3): Merge with *avx_ashr<mode>3.
22349 (lshr<mode>3): Merge with *avx_lshr<mode>3.
22350 (ashl<mode>3): Merge with *avx_ashl<mode>3.
22351 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22352 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22353 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22354 (*<smaxmin:code>v8hi3): Ditto.
22355 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22356 (*<smaxmin:code>v16qi3): Ditto.
22357 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22358 (*sse2_eq<mode>3): Ditto.
22359 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22360 (*sse2_gt<mode>3): Ditto.
22361 (vcondv2di): Split out of vcond<mode>.
22362 (vconduv2di): Split out of vcondu<mode>.
22363
22364 2011-04-11 Richard Guenther <rguenther@suse.de>
22365
22366 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22367 before calling tree_low_cst.
22368
22369 2011-04-11 Richard Guenther <rguenther@suse.de>
22370
22371 * stor-layout.c (layout_type): Compute all array index size operations
22372 in the original type.
22373 (initialize_sizetypes): Add comment.
22374 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22375
22376 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22377
22378 * common.opt (Tbss=, Tdata=, Ttext=): New options.
22379
22380 2011-04-11 Martin Jambor <mjambor@suse.cz>
22381
22382 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22383 of cgraph_node, handle NULL return value.
22384 (cgraph_global_info): Likewise.
22385 (cgraph_rtl_info): Likewise.
22386 * tree-inline.c (estimate_num_insns): Likewise.
22387 * gimplify.c (unshare_body): Likewise.
22388 (unvisit_body): Likewise.
22389 (gimplify_body): Likewise.
22390 * predict.c (optimize_function_for_size_p): Likewise.
22391 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22392 (call_may_clobber_ref_p_1): Likewise.
22393 * varasm.c (function_section_1): Likewise.
22394 (assemble_start_function): Likewise.
22395
22396 2011-04-11 Martin Jambor <mjambor@suse.cz>
22397
22398 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22399 of cgraph_node.
22400 * final.c (rest_of_clean_state): Likewise.
22401 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22402 * passes.c (pass_init_dump_file): Likewise.
22403 (execute_all_ipa_transforms): Likewise.
22404 (function_called_by_processed_nodes_p): Likewise.
22405 * predict.c (maybe_hot_frequency_p): Likewise.
22406 (probably_never_executed_bb_p): Likewise.
22407 (compute_function_frequency): Likewise.
22408 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22409 (unnest_nesting_tree_1): Likewise.
22410 (lower_nested_functions): Likewise.
22411 * tree-optimize.c (execute_fixup_cfg): Likewise.
22412 (tree_rest_of_compilation): Likewise.
22413 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22414 * tree-sra.c (ipa_early_sra): Likewise.
22415 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22416 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22417 * ipa.c (record_cdtor_fn): Likewise.
22418 * ipa-inline.c (cgraph_early_inlining): Likewise.
22419 (compute_inline_parameters_for_current): Likewise.
22420 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22421 * ipa-pure-const.c (local_pure_const): Likewise.
22422 * ipa-split.c (split_function): Likewise.
22423 (execute_split_functions): Likewise.
22424 * cgraphbuild.c (build_cgraph_edges): Likewise.
22425 (rebuild_cgraph_edges): Likewise.
22426 (cgraph_rebuild_references): Likewise.
22427 (remove_cgraph_callee_edges): Likewise.
22428 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22429 (verify_cgraph_node): Likewise.
22430 (cgraph_analyze_functions): Likewise.
22431 (cgraph_preserve_function_body_p): Likewise.
22432 (save_inline_function_body): Likewise.
22433 (save_inline_function_body): Likewise.
22434 * tree-inline.c (copy_bb): Likewise.
22435 (optimize_inline_calls): Likewise.
22436
22437 2011-04-11 Martin Jambor <mjambor@suse.cz>
22438
22439 PR tree-optimization/48195
22440 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22441 ipa_check_create_edge_args.
22442 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22443 ipa_check_create_edge_args.
22444 * ipa-inline.c (inline_generate_summary): Do not call
22445 ipa_check_create_node_params and ipa_check_create_edge_args.
22446 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
22447 ipa_check_create_edge_args.
22448
22449 2011-04-09 Anatoly Sokolov <aesok@post.ru>
22450
22451 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22452 instead of loop.
22453 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22454 * function.c (record_hard_reg_sets): Likewise.
22455 * ira.c (compute_regs_asm_clobbered): Likewise.
22456 * sched-deps.c (sched_analyze_1): Likewise.
22457 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22458
22459 2011-04-09 Xinliang David Li <davidxl@google.com>
22460
22461 PR tree-optimization/PR48484
22462 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22463 has_valid_pred lazily
22464
22465 2011-04-09 Duncan Sands <baldrick@free.fr>
22466
22467 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22468
22469 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
22470
22471 * combine.c (combine_validate_cost): Adjust comments. Set registered
22472 cost of I0 to zero at the end, if any.
22473
22474 2011-04-08 Xinliang David Li <davidxl@google.com>
22475
22476 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22477 to insane profile data.
22478
22479 2011-04-08 Xinliang David Li <davidxl@google.com>
22480
22481 * ipa-cp.c (ipcp_update_profiling): Correct
22482 negative scale factor due to insane profile data.
22483
22484 2011-04-08 Xinliang David Li <davidxl@google.com>
22485
22486 * final.c (dump_basic_block_info): New function.
22487 (final): Dump basic block.
22488 (final_scan_insn): Remove old dump.
22489
22490 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
22491
22492 PR target/47829
22493 * config.gcc (i386-*-freebsd): Disable unwind table generation for
22494 crtbegin/crtend.
22495
22496 2011-04-08 Michael Matz <matz@suse.de>
22497
22498 PR middle-end/48389
22499 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22500 functions.
22501 (rebuild_jump_labels): Call rebuild_jump_labels_1.
22502 * rtl.h (rebuild_jump_labels_chain): Declare.
22503 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22504 insns inserted on edges.
22505
22506 2011-04-08 Joseph Myers <joseph@codesourcery.com>
22507
22508 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22509 * config/arm/arm-arches.def: New.
22510 * config/arm/arm-opts.h: New.
22511 * config/arm/genopt.sh: New.
22512 * config/arm/arm-tables.opt: New (generated).
22513 * config/arm/arm.c (arm_handle_option, arm_target_help,
22514 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22515 (all_architectures): Get most table contents from arm-arches.def.
22516 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22517 arm_selected_tune here.
22518 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22519 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22520 (march=, mcpu=, mtune=): Use Enum and Var.
22521 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22522 (arm.o): Update dependencies.
22523
22524 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
22525
22526 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22527 of header_file.
22528 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22529 (write_typed_alloc_defns): Likewise.
22530 (main): Calls write_typed_alloc_defns with output_header.
22531
22532 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
22533
22534 PR inline-asm/48435
22535 * ira-color.c (setup_profitable_hard_regs): Add comments.
22536 Don't take prohibited hard regs into account.
22537 (setup_conflict_profitable_regs): Rename to
22538 get_conflict_profitable_regs.
22539 (check_hard_reg_p): Check prohibited hard regs.
22540
22541 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
22542
22543 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22544 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22545 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22546
22547 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22548
22549 PR target/48366
22550 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22551 move from floating point to shift amount register.
22552 (emit_move_sequence): Remove secondary reload support for floating
22553 point to shift amount amount register copies.
22554 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22555 amount register copies.
22556 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22557 register, return false if mode isn't a scalar integer mode.
22558 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22559
22560 2011-04-08 Richard Guenther <rguenther@suse.de>
22561
22562 * gimple.c (gimple_call_flags): Remove kludge.
22563
22564 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22565
22566 * sel-sched.c (sel_region_init): Move call to
22567 sel_setup_region_sched_flags after setup_current_loop_nest.
22568
22569 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
22570
22571 PR rtl-optimization/48272
22572 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22573 init_insn_reg_pressure_info. Adjust a caller.
22574 * sched-int.h (init_insn_reg_pressure_info): Declare.
22575 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22576 when sched-pressure is enabled.
22577
22578 2011-04-08 Richard Guenther <rguenther@suse.de>
22579
22580 * gimple.c (gimple_set_modified): Do not queue calls to
22581 MODIFIED_NORETURN_CALLS here ...
22582 * tree-ssa-operands.c (update_stmt_operands): ... but here.
22583
22584 2011-04-08 Richard Guenther <rguenther@suse.de>
22585
22586 PR lto/48467
22587 * toplev.c (lang_dependent_init): Do not open asm_out_file
22588 in WPA mode, nor perform debug machinery initialization.
22589 (finalize): Do not unlink asm_out_file in WPA mode.
22590
22591 2011-04-08 Richard Guenther <rguenther@suse.de>
22592
22593 * gimple.h (gimple_call_fntype): New function.
22594 (gimple_call_return_type): Use it.
22595 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22596 * gimple-low.c (gimple_check_call_args): Likewise.
22597 * gimple.c (gimple_call_flags): Likewise.
22598 (gimple_call_arg_flags): Likewise.
22599 (gimple_call_return_flags): Likewise.
22600 * tree-cfg.c (verify_gimple_call): Likewise.
22601 (do_warn_unused_result): Likewise.
22602 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22603 * value-prof.c (gimple_ic_transform): Fix fndecl check.
22604
22605 2011-04-08 Dmitry Melnik <dm@ispras.ru>
22606
22607 PR rtl-optimization/48235
22608 * sel-sched.c (code_motion_process_successors): Recompute the last
22609 insn in basic block if control flow changed.
22610 (code_motion_path_driver): Ditto. Recompute the first insn as well.
22611 Update condition for ilist_remove.
22612
22613 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22614
22615 PR rtl-optimization/48302
22616 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22617 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
22618 it to record added preheader blocks.
22619 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
22620 on to sel_add_loop_preheaders.
22621 (sel_region_init): Move call to setup_current_loop_nest after
22622 sel_init_bbs.
22623
22624 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22625
22626 PR target/48273
22627 * cfgloop.h (loop_has_exit_edges): New helper.
22628 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
22629 non-clonable.
22630 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
22631 that have no exit edges.
22632
22633 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
22634
22635 PR rtl-optimization/48442
22636 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
22637 all callers. Adjust assert.
22638
22639 2011-04-08 Jakub Jelinek <jakub@redhat.com>
22640
22641 PR tree-optimization/48377
22642 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
22643 is_packed to true even for types with smaller TYPE_ALIGN than
22644 TYPE_SIZE.
22645
22646 2011-04-08 Richard Guenther <rguenther@suse.de>
22647
22648 PR bootstrap/48513
22649 * doc/tm.texi: Re-generate.
22650
22651 2011-04-08 Wei Guozhi <carrot@google.com>
22652
22653 PR target/47855
22654 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
22655 * config/arm/arm.c (arm_attr_length_push_multi): New function.
22656 * config/arm/arm.md (*push_multi): Change the length computation to
22657 call a C function.
22658
22659 2011-04-08 Anatoly Sokolov <aesok@post.ru>
22660
22661 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
22662 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
22663 * doc/tm.texi: Regenerate.
22664 * system.h (ASM_OUTPUT_BSS): Poison.
22665 * varasm.c (asm_output_bss): Remove function.
22666 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
22667
22668 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
22669 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
22670 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
22671 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22672 Likewise.
22673 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22674 Likewise.
22675 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22676 Likewise.
22677 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
22678
22679 2011-04-07 Joseph Myers <joseph@codesourcery.com>
22680
22681 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
22682 EnumValue lines.
22683
22684 2011-04-07 Joseph Myers <joseph@codesourcery.com>
22685
22686 * config/m68k/m68k.c (m68k_handle_option): Don't handle
22687 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
22688 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
22689 OPT_mcpu32.
22690 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22691 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
22692 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
22693 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
22694 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
22695 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
22696 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22697 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
22698 options. Don't map other m68k options manually. Don't handle
22699 old-style options as canonical.
22700 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22701 * doc/install.texi (m68k-*-*): Document binutils version requirement.
22702
22703 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
22704
22705 * basic-block.h (force_nonfallthru): Move to...
22706 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
22707 (force_nonfallthru): ...here.
22708 * cfghooks.c (force_nonfallthru): New function.
22709 * cfgrtl.c (force_nonfallthru): Rename into...
22710 (rtl_force_nonfallthru): ...this.
22711 (commit_one_edge_insertion): Do not set AUX field.
22712 (commit_edge_insertions): Do not discover new basic blocks.
22713 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
22714 (cfg_layout_rtl_cfg_hooks): Likewise.
22715 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
22716 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
22717 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
22718
22719 2011-04-07 Anatoly Sokolov <aesok@post.ru>
22720
22721 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22722 Remove macros.
22723
22724 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
22725
22726 * config/i386/sse.md: Update copyright year.
22727 (avxcvtvecmode): Remove.
22728 (sse_movhlps): Merge with *avx_movhlps.
22729 (sse_movlhps): Merge with *avx_movlhps.
22730 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
22731 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
22732 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
22733 (sse_loadhps): Merge with *avx_loadhps.
22734 (sse_storelps): Merge with *avx_storelps.
22735 (sse_loadlps): Merge with *avx_loadlps.
22736 (sse_movss): Merge with *avx_movss.
22737 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
22738 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
22739 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
22740 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
22741 (vec_set<mode>_0): Ditto.
22742 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
22743 (sse4_1_insertps): Merge with *avx_insertps.
22744 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
22745 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
22746 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
22747 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
22748 (sse2_storehpd): Merge with *avx_storehpd.
22749 (sse2_loadhpd): Merge with *avx_loadhpd.
22750 (sse2_loadlpd): Merge with *avx_loadlpd.
22751 (sse2_movsd): Merge with *avx_movsd.
22752 (*vec_concatv2df): Merge with *vec_concatv2df.
22753
22754 2011-04-07 Jakub Jelinek <jakub@redhat.com>
22755
22756 PR debug/48343
22757 * combine.c (combine_instructions): Add last_combined_insn,
22758 update it if insn is after it, pass it to all try_combine calls.
22759 (try_combine): Add last_combined_insn parameter, pass it instead of
22760 i3 to propagate_for_debug.
22761
22762 2011-04-07 Nick Clifton <nickc@redhat.com>
22763
22764 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
22765 to handle MDR <-> data register transfers.
22766 (movhi_internal): Likewise.
22767
22768 2011-04-07 Alan Modra <amodra@gmail.com>
22769
22770 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
22771 previous stack info.
22772
22773 2011-04-07 Tom de Vries <tom@codesourcery.com>
22774
22775 PR target/43920
22776 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
22777 flow_find_cross_jump. Swap variables to implement backward replacement.
22778 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
22779
22780 2011-04-07 Tom de Vries <tom@codesourcery.com>
22781
22782 PR target/43920
22783 * cfgcleanup.c (walk_to_nondebug_insn): New function.
22784 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
22785 and bb2.
22786 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
22787 src1 or src2. Redirect edges to the last basic block. Update
22788 frequency and count on multiple basic blocks in case of fallthru.
22789
22790 2011-04-07 Tom de Vries <tom@codesourcery.com>
22791
22792 PR target/43920
22793 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
22794 function.
22795 (old_insns_match_p): Change return type. Replace return false/true
22796 with return dir_none/dir_both. Use can_replace_by.
22797 (flow_find_cross_jump): Add dir_p parameter. Init replacement
22798 direction from dir_p. Register replacement direction in dir, last_dir
22799 and afterlast_dir. Handle new return type of old_insns_match_p using
22800 merge_dir. Return replacement direction in dir_p.
22801 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
22802 return type of old_insns_match_p.
22803 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
22804 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
22805 flow_find_cross_jump.
22806 * basic-block.h (enum replace_direction): New type.
22807 (flow_find_cross_jump): Add parameter to declaration.
22808
22809 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
22810
22811 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
22812 (AVXMODEDCVTPS2DQ): Ditto.
22813 (VEC_FLOAT_MODE): Ditto.
22814 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
22815 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22816 (<any_logic:code><mode>3): Use VF mode iterator.
22817 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
22818 Use VF mode iterator.
22819 (copysign<mode>3): Use VF mode iterator.
22820 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
22821 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
22822 (*<any_logic:code><MODEF:mode>3): Merge with
22823 *avx_<any_logic:code><MODEF:mode>3.
22824 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
22825 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
22826 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
22827 (avx_cvtdq2ps<avxmodesuffix>): Remove.
22828 (sse2_cvtdq2ps): Use %v modifier.
22829 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
22830 (avx_cvtps2dq<avxmodesuffix>): Remove.
22831 (sse2_cvtps2dq): Use %v modifier.
22832 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
22833 (avx_cvttps2dq<avxmodesuffix>): Remove.
22834 (sse2_cvttps2dq): Use %v modifier.
22835 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
22836 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
22837 (sse2_cvtsd2siq): Fix insn template.
22838 (sse2_cvtsd2siq_2): Ditto.
22839 (sse2_cvttsd2siq): Ditto.
22840 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
22841 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
22842
22843 2011-04-06 Joseph Myers <joseph@codesourcery.com>
22844
22845 * gcov-io.c: Use GCC Runtime Library Exception.
22846
22847 2011-04-06 Jakub Jelinek <jakub@redhat.com>
22848
22849 PR debug/48466
22850 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
22851 as base_reg whatever register reg has been eliminated to, instead
22852 of hardcoding STACK_POINTER_REGNUM.
22853
22854 2011-04-06 Joseph Myers <joseph@codesourcery.com>
22855
22856 * doc/tm.texi.in: Document C target hooks as separate from general
22857 target hooks.
22858 * doc/tm.texi: Regenerate.
22859 * genhooks.c (struct hook_desc): Add docname field.
22860 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
22861 docname field.
22862 (hook_array): Include c-target.def.
22863 (emit_documentation): Use docname field in output.
22864 (emit_init_macros): Take docname argument. Only emit definitions
22865 for hooks matching docname.
22866 (main): Expect additional arguments in all cases. Pass argument
22867 to emit_init_macros.
22868 * target.def: Move initial macro definitions and comments to
22869 target-hooks-macros.h.
22870 (gcc_targetcm): Move to c-family/c-target.def.
22871 * target.h (targetcm): Move declaration to c-family/c-target.h.
22872 * targhooks.c (default_handle_c_option): Move to
22873 c-family/c-opts.c.
22874 * targhooks.h (default_handle_c_option): Move declaration to
22875 c-family/c-common.h.
22876 * target-hooks-macros.h: New file.
22877 * config.gcc (target_has_targetcm): Define and use to add to
22878 c_target_objs and cxx_target_objs.
22879 * config/default-c.c: New file.
22880 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
22881 of target.h and target-def.h.
22882 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
22883 (darwin_objc_construct_string, darwin_cfstring_ref_p,
22884 darwin_check_cfstring_format_arg): Make static.
22885 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22886 TARGET_STRING_OBJECT_REF_TYPE_P,
22887 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
22888 * config/darwin-protos.h (darwin_objc_construct_string,
22889 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
22890 declare.
22891 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
22892 TARGET_STRING_OBJECT_REF_TYPE_P,
22893 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
22894 * config/t-darwin (darwin-c.o): Update dependencies.
22895 * system.h (TARGET_HAS_TARGETCM): Poison.
22896 * Makefile.in (TARGET_H): Update.
22897 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
22898 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
22899 (default-c.o): New target.
22900 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
22901 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
22902 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
22903 c-target.def.
22904 (build/genhooks.o): Update dependencies.
22905
22906 2011-04-06 Richard Guenther <rguenther@suse.de>
22907
22908 * ipa-inline.c (enum inlining_mode): Remove.
22909 (cgraph_flatten): Use some other token.
22910 (cgraph_edge_early_inlinable_p): New function, split out from ...
22911 (cgraph_perform_always_inlining): New function, split out from ...
22912 (cgraph_decide_inlining_incrementally): ... here.
22913 (cgraph_mark_inline_edge): Adjust.
22914 (cgraph_early_inlining): Re-structure.
22915 (pass_early_inline): Require SSA form.
22916
22917 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
22918 Julian Brown <julian@codesourcery.com>
22919 Mark Shinwell <shinwell@codesourcery.com>
22920
22921 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
22922 LO_REGS only for Thumb-1.
22923 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
22924 be used in short instructions when optimising for size on Thumb-2.
22925
22926 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
22927
22928 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
22929 associated with user returns to be preserved.
22930
22931 2011-04-06 Tristan Gingold <gingold@adacore.com>
22932
22933 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
22934 symbol_queue_size, DBXOUT_DECR_NESTING,
22935 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
22936 if XCOFF_DEBUGGING_INFO.
22937
22938 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
22939
22940 * config/i386/i386.md (attribute isa): New.
22941 (attribute enabled): New.
22942 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
22943 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
22944 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
22945 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
22946 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
22947 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22948 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
22949 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
22950
22951 * config/i386/sse.md (VF): New mode iterator.
22952 (VF1): Ditto.
22953 (VF2): Ditto.
22954 (VF_128): Ditto.
22955 (SSEMODEF4): Remove.
22956 (attribute sse): Handle V8SF and V4DF modes.
22957 (<absneg:code><mode>2): Use VF mode iterator.
22958 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
22959 mode iterator.
22960 (<plusminus_insn><mode>3): Use VF mode iterator.
22961 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22962 Use VF mode iterator.
22963 (<sse>_vm<plusminus_insn><mode>3): Merge with
22964 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
22965 (mul<mode>3): Use VF mode iterator.
22966 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
22967 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
22968 mode iterator.
22969 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
22970 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
22971 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
22972 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
22973 mode iterator.
22974 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
22975 Use VF1 mode iterator.
22976 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
22977 (sqrt<VF2:mode>2): New expander.
22978 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
22979 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
22980 and sqrtv2df2. Use VF mode iterator.
22981 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
22982 mode iterator.
22983 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
22984 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
22985 Use VF1 mode iterator.
22986 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
22987 (<smaxmin:code><mode>3): Use VF mode iterator.
22988 (*<smaxmin:code><mode>3_finite): Merge with
22989 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
22990 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22991 (<sse>_vm<smaxmin:code><mode>2): Merge with
22992 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
22993 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
22994 mode iterator.
22995 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
22996 mode iterator.
22997 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
22998 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
22999 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23000 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23001 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
23002 VF mode iterator.
23003 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23004 Use VF_128 mode iterator.
23005 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
23006 mode iterator.
23007 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
23008 VF_128 mode iterator.
23009 (vcond<mode>): Use VF mode iterator.
23010 * config/i386/predicates.md (sse_comparison_operator): Merge with
23011 avx_comparison_float_operator. Do not declare as special_predicate.
23012 * config/i386/i386.c (struct builtin_description): Update for renamed
23013 compare patterns.
23014 (ix86_expand_args_builtin): Ditto.
23015 (ix86_expand_sse_compare_mask): Ditto.
23016
23017 2011-04-06 Richard Guenther <rguenther@suse.de>
23018
23019 * tree-inline.c (estimate_num_insns): For calls simply account
23020 for all passed arguments and a used return value.
23021
23022 2011-04-06 Richard Guenther <rguenther@suse.de>
23023
23024 PR tree-optimization/47663
23025 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23026 call_stmt_time fields.
23027 (cgraph_edge_inlinable_p): Declare.
23028 (cgraph_edge_recursive_p): New inline function.
23029 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23030 (cgraph_clone_edge): Copy it.
23031 * ipa-inline.c (cgraph_estimate_edge_time): New function.
23032 Account for call stmt time.
23033 (cgraph_estimate_time_after_inlining): Take edge argument.
23034 (cgraph_estimate_edge_growth): Account call stmt size.
23035 (cgraph_estimate_size_after_inlining): Take edge argument.
23036 (cgraph_mark_inline_edge): Adjust.
23037 (cgraph_check_inline_limits): Likewise.
23038 (cgraph_recursive_inlining_p): Remove.
23039 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23040 (cgraph_decide_recursive_inlining): Take edge argument and
23041 adjust.
23042 (cgraph_decide_inlining_of_small_functions): Do not avoid
23043 diags for recursive inlining here.
23044 (cgraph_flatten): Adjust.
23045 (cgraph_decide_inlining_incrementally): Likewise.
23046 (estimate_function_body_sizes): Remove call cost handling.
23047 (compute_inline_parameters): Initialize caller edge call costs.
23048 (cgraph_estimate_edge_growth): New function.
23049 (cgraph_estimate_growth): Use it.
23050 (cgraph_edge_badness): Likewise.
23051 (cgraph_check_inline_limits): Take an edge argument.
23052 (cgraph_decide_inlining_of_small_functions): Adjust.
23053 (cgraph_decide_inlining): Likewise.
23054 * tree-inline.c (estimate_num_insns): Only account for call
23055 return value if it is used.
23056 (expand_call_inline): Avoid diagnostics on recursive inline
23057 functions here.
23058 * lto-cgraph.c (lto_output_edge): Output edge call costs.
23059 (input_edge): Input edge call costs.
23060
23061 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23062
23063 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23064
23065 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
23066
23067 * doc/invoke.texi (Spec Files): Fix typo.
23068
23069 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
23070
23071 * profile.c (branch_prob): Move declaration of local variable. Remove
23072 obsolete ??? comment. Expand the location explicitly instead of using
23073 the LOCATION_FILE and LOCATION_LINE macros.
23074
23075 2011-04-06 Wei Guozhi <carrot@google.com>
23076
23077 PR target/47855
23078 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23079 (arm_cond_branch): Likewise.
23080 (arm_cond_branch_reversed): Likewise.
23081 (arm_jump): Likewise.
23082 (push_multi): Likewise.
23083 * config/arm/constraints.md (Py): New constraint.
23084
23085 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23086
23087 PR bootstrap/48471
23088 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23089 Move these...
23090 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23091 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23092 #ifdef DBX_DEBUGGING_INFO.
23093
23094 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
23095
23096 PR bootstrap/48403
23097 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23098 if old and new states differ.
23099
23100 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23101
23102 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23103 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23104 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23105 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23106 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23107 mcfv4e): Use Alias.
23108 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23109 ColdFire options to -mcpu= options.
23110
23111 2011-04-05 Jeff Law <law@redhat.com>
23112
23113 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23114 check if BB is a successor of LOOP->header and return
23115 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23116
23117 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23118
23119 * cprop.c (struct reg_use): Remove.
23120 (reg_use_table): Make an array of RTX.
23121 (find_used_regs, constprop_register, local_cprop_pass,
23122 bypass_block): Simplify users of reg_use_table.
23123 (cprop_insn): Likewise. Iterate if copy propagation succeeded
23124 on one of the uses found by find_used_regs.
23125
23126 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23127
23128 PR bootstrap/48469
23129 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23130 declaration.
23131
23132 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23133
23134 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23135 as an rtx.
23136 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23137
23138 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23139
23140 PR middle-end/48441
23141 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23142
23143 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23144
23145 * combine.c: Include obstack.h.
23146 (struct insn_link): Define.
23147 (uid_log_links): Adjust type.
23148 (FOR_EACH_LOG_LINK): New macro.
23149 (insn_link_obstack): Declare.
23150 (alloc_insn_link): Define.
23151 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
23152 type of link variables.
23153 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23154 (try_combine, record_promoted_values, distribute_notes): Likewise.
23155 (distribute_links): Likewise. Tweak prototype.
23156 (clear_log_links): Delete.
23157 (adjust_for_new_dest): Call alloc_insn_link.
23158 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23159
23160 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23161
23162 * gcse.c (modify_mem_list): Convert to an array of VECs.
23163 (canon_modify_mem_list, compute_transp): Tweak formatting.
23164 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
23165 (load_killed_in_block_p): Likewise.
23166 (record_last_mem_set_info): Likewise.
23167 (clear_modify_mem_tables): Likewise.
23168
23169 2011-04-05 Tom de Vries <tom@codesourcery.com>
23170
23171 PR middle-end/48461
23172 * function.c (emit_use_return_register_into_block): Only define if
23173 HAVE_return.
23174
23175 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
23176
23177 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23178
23179 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23180
23181 * config/rx/rx-opts.h: New.
23182 * config/rx/rx.c (rx_cpu_type): Remove.
23183 (rx_handle_option): Don't assert that global structures are in
23184 use. Access variables via opts pointer. Defer most handling of
23185 OPT_mint_register_. Use error_at.
23186 (rx_option_override): Handle deferred OPT_mint_register_ here.
23187 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23188 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23189 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23190 (rx_cpu_types): New Enum and EnumValue entries.
23191 (mint-register=): Use Defer and use Var accordingly.
23192
23193 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23194
23195 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23196 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23197 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23198 Move these...
23199 (debug_free_queue, debug_nesting, symbol_queue_index):
23200 ...and these...
23201 * dbxout.c: ...to here. Make static.
23202
23203 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23204
23205 * gcse.c (modify_pair): Define. Define a VEC of it.
23206 (canon_modify_mem_list): Convert to an array of VECs.
23207 (free_insn_expr_list_list): Delete.
23208 (clear_modify_mem_tables): Call VEC_free instead.
23209 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23210 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23211 (canon_list_insert, compute_transp): Likewise.
23212
23213 2011-04-05 Tom de Vries <tom@codesourcery.com>
23214
23215 PR target/43920
23216 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23217 for size.
23218
23219 2011-04-05 Tom de Vries <tom@codesourcery.com>
23220
23221 PR target/43920
23222 * function.c (emit_use_return_register_into_block): New function.
23223 (thread_prologue_and_epilogue_insns): Use
23224 emit_use_return_register_into_block.
23225
23226 2011-04-05 Tom de Vries <tom@codesourcery.com>
23227
23228 PR target/43920
23229 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23230 insn.
23231
23232 2011-04-05 Tom de Vries <tom@codesourcery.com>
23233
23234 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23235
23236 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
23237
23238 * config/arm/arm.md (define_constants for unspec): Replace with
23239 define_c_enum.
23240 (define_constants for unspecv): Replace with define_c_enum.
23241 * config/arm/neon.md (define_constants for unspec): Replace with
23242 define_c_enum.
23243
23244 2011-04-04 Richard Henderson <rth@redhat.com>
23245
23246 PR bootstrap/48400
23247 * dwarf2out.c (output_line_info): Always emit line info from
23248 at least one section.
23249 (dwarf2out_init): Create text_section_line_info here ...
23250 (set_cur_line_info_table): ... not here.
23251
23252 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
23253
23254 PR target/48380
23255 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23256 not called.
23257
23258 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23259
23260 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
23261
23262 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23263 (expr_equiv_p): Remove.
23264 (insert_set_in_table): Look at <dest, src> pair instead of expr.
23265 (hash_scan_set): Update call to insert_set_in_table.
23266 (dump_hash_table): Dump <dest, src> pair.
23267 (lookup_set): Simplify. Lookup <dest, src> pair.
23268 (compute_transp): Remove, fold heavily simplified code into...
23269 (compute_local_properties): ...here. Expect COMP and TRANSP
23270 unconditionally.
23271 (find_avail_set): Take set directly from struct expr.
23272 (find_bypass-set): Likewise.
23273 (bypass_block): Likewise.
23274 (cprop_insn): Likewise. Remove redundant INSN_P test.
23275
23276 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23277 checks on form of COND from find_implicit_sets to here.
23278 (find_implicit_sets): Cleanup control flow. Split critical edges
23279 if it exposes implicit sets. Allocate/resize implicit_sets as
23280 necessary.
23281 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23282 changed something. Run df_analyze after find_implicit_sets if any
23283 edges were split. Do not allocate implicit_sets here.
23284
23285 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23286 (gcse_obstack): Renamed to cprop_obstack.
23287 (GNEW, GNEWVEC, GNEWVAR): Remove.
23288 (gmalloc): Remove.
23289 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23290 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23291 (gcse_alloc): Likewise, and rename to cprop_alloc.
23292 (alloc_gcse_men, free_gcse_mem): Remove.
23293 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23294 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23295 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23296
23297 * cprop.c (oprs_not_set_p): Remove.
23298 (mark_set, mark_clobber): Remove.
23299 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23300 (reg_not_set_p): New function.
23301 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23302 (cprop_insn): Likewise.
23303 (cprop_jump): Use FOR_EACH_EDGE.
23304
23305 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
23306
23307 PR bootstrap/48403
23308 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23309 (rank_for_schedule): Use scheduled_insns vector instead of
23310 last_scheduled_insn.
23311 (ok_for_early_queue_removal): Likewise.
23312 (queue_to_ready): Search forward in nonscheduled_insns_begin if
23313 we have a dbg_cnt.
23314 (choose_ready): Likewise.
23315 (commit_schedule): Use VEC_iterate.
23316 (schedule_block): Initialize nonscheduled_insns_begin. If we have
23317 a dbg_cnt, use it and ensure the first insn is in the ready list.
23318 (haifa_sched_init): Allocate scheduled_insns.
23319 (sched_extend_ready_list): Don't allocate it; reserve space.
23320 (haifa_sched_finish): Free it.
23321
23322 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23323
23324 * optc-gen.awk: Always remove type from Variable entry before
23325 recording in var_seen.
23326
23327 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
23328
23329 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23330 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23331 call to tidy_fallthru_edges.
23332
23333 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23334
23335 * doc/options.texi (ToLower): Document.
23336 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23337 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23338 * opts.h (cl_option): Add cl_tolower field.
23339 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23340 arguments with lowercase strings.
23341 * config/rx/rx.opt (mcpu=): Add ToLower.
23342 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23343 argument.
23344
23345 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23346
23347 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23348
23349 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23350
23351 * config/vax/vax.c: Include reload.h.
23352
23353 2011-04-04 Anatoly Sokolov <aesok@post.ru>
23354
23355 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23356 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23357 (sparc_preferred_reload_class): New function.
23358
23359 2011-04-04 Jakub Jelinek <jakub@redhat.com>
23360
23361 PR debug/48401
23362 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23363 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23364
23365 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
23366
23367 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23368 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23369
23370 2011-04-03 Anatoly Sokolov <aesok@post.ru>
23371
23372 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23373 (ASM_OUTPUT_ALIGNED_BSS): Define.
23374
23375 2011-04-03 Michael Matz <matz@suse.de>
23376
23377 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23378 and next_slot members.
23379 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23380 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23381 (lto_streamer_cache_append): Declare.
23382 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23383 unsigned index, remove offset parameter, ensure that we append
23384 or update existing entries.
23385 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23386 parameter, update next_slot for append.
23387 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23388 parameter.
23389 (lto_streamer_cache_insert_at): Likewise.
23390 (lto_streamer_cache_append): New function.
23391 (lto_streamer_cache_lookup): Use unsigned index.
23392 (lto_streamer_cache_get): Likewise.
23393 (lto_record_common_node): Don't test tree_node_can_be_shared.
23394 (preload_common_node): Adjust call to lto_streamer_cache_insert.
23395 (lto_streamer_cache_delete): Don't free offsets member.
23396 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23397 (lto_output_string_with_length): Use lto_output_data_stream.
23398 (lto_output_tree_header): Remove ix parameter, don't write it.
23399 (lto_output_builtin_tree): Likewise.
23400 (lto_write_tree): Adjust callers to above, don't track and write
23401 offset, write unsigned index.
23402 (output_unreferenced_globals): Don't emit all global vars.
23403 (write_global_references): Use unsigned indices.
23404 (lto_output_decl_state_refs): Likewise.
23405 (write_symbol): Likewise.
23406 * lto-streamer-in.c (lto_input_chain): Move earlier.
23407 (input_function): Use unsigned index.
23408 (input_alias_pairs): Don't read and then ignore all global vars.
23409 (lto_materialize_tree): Remove ix_p parameter, don't read index,
23410 don't pass it back, use lto_streamer_cache_append.
23411 (lto_register_var_decl_in_symtab): Use unsigned index.
23412 (lto_register_function_decl_in_symtab): Likewise.
23413 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23414 index.
23415 (lto_get_builtin_tree): Don't read index, use
23416 lto_streamer_cache_append.
23417 (lto_read_tree): Adjust call to lto_materialize_tree.
23418
23419 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23420 don't use function calls in arguments to MIN.
23421
23422 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23423 twice.
23424
23425 * gimple.c (gimple_type_leader_entry): Mark deletable.
23426
23427 2011-04-03 Alan Modra <amodra@gmail.com>
23428
23429 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23430
23431 2011-04-03 Michael Matz <matz@suse.de>
23432
23433 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23434 an integer.
23435 * tree.h (tree_decl_non_common.vindex): Adjust comment.
23436
23437 2011-04-03 Michael Matz <matz@suse.de>
23438
23439 * cgraphbuild.c (record_reference): Canonicalize constructor values.
23440 * gimple-fold.c (canonicalize_constructor_val): Accept being called
23441 without function context.
23442 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23443 current_function_decl and cfun.
23444
23445 2011-04-03 Michael Matz <matz@suse.de>
23446
23447 * tree.c (decl_init_priority_insert): Don't create entry for
23448 default priority.
23449 (decl_fini_priority_insert): Ditto.
23450 (fields_compatible_p, find_compatible_field): Remove.
23451 * tree.h (fields_compatible_p, find_compatible_field): Remove.
23452 * gimple.c (gimple_compare_field_offset): Adjust block comment.
23453
23454 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
23455
23456 * combine.c (try_combine): Remove useless local variable.
23457
23458 2011-04-03 Richard Guenther <rguenther@suse.de>
23459 Ira Rosen <ira.rosen@linaro.org>
23460
23461 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23462 non-variable offsets and compare the remaining bases of the two
23463 accesses instead of looking for exact same data-ref.
23464
23465 2011-04-02 Kai Tietz <ktietz@redhat.com>
23466
23467 PR target/48416
23468 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23469
23470 * i386.c (ix86_is_msabi_thiscall): New helper function.
23471 (ix86_is_type_thiscall): New helper function.
23472 (ix86_comp_type_attributes): Handle thiscall for method-functions
23473 special.
23474 (init_cumulative_args): Likewise.
23475 (find_drap_reg): Likewise.
23476 (ix86_static_chain): Likewise.
23477 (x86_this_parameter): Likewise.
23478 (x86_output_mi_thunk): Likewise.
23479
23480 2011-04-01 Olivier Hainque <hainque@adacore.com>
23481 Nicolas Setton <setton@adacore.com>
23482 Eric Botcazou <ebotcazou@adacore.com>
23483
23484 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23485 (add_gnat_descriptive_type_attribute): New function.
23486 (gen_array_type_die): Call it.
23487 (gen_enumeration_type_die): Likewise.
23488 (gen_struct_or_union_type_die): Likewise.
23489 (modified_type_die): Likewise.
23490 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23491 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23492 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23493
23494 2011-04-01 Jakub Jelinek <jakub@redhat.com>
23495
23496 PR bootstrap/48148
23497 * dwarf2out.c (resolve_addr): Don't call force_decl_die
23498 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23499
23500 Revert:
23501 2011-03-17 Richard Guenther <rguenther@suse.de>
23502
23503 PR bootstrap/48148
23504 * lto-cgraph.c (input_overwrite_node): Clear the abstract
23505 origin for decls in other ltrans units.
23506 (input_varpool_node): Likewise.
23507
23508 2011-04-01 Jakub Jelinek <jakub@redhat.com>
23509
23510 PR middle-end/48335
23511 * expr.c (expand_assignment): Handle all possibilities
23512 if TO_RTX is CONCAT.
23513 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23514 (store_split_bit_field): If SUBREG_REG (op0) or
23515 op0 itself has smaller mode than word, return it
23516 for offset 0 and const0_rtx for out-of-bounds stores.
23517 If word is const0_rtx, skip it.
23518
23519 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
23520
23521 * config/h8300/h8300.c (print_operand_address): Rename to...
23522 (h8300_print_operand_address): ...this. Make static. Adjust comments.
23523 Call h8300_print_operand and h8300_print_operand_address instead of
23524 print_operand and print_operand_address. Declare.
23525 (print_operand): Renake to...
23526 (h8300_print_operand): ...this. Make static. Adjust comments.
23527 Call h8300_print_operand instead of print_operand. Declare.
23528 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23529 (h8300_register_move_cost): Likewise.
23530 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23531 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23532 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23533 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23534 * config/h8300/h8300-protos.h (print_operand): Delete.
23535 (print_operand_address): Delete.
23536
23537 2011-04-01 Richard Henderson <rth@redhat.com>
23538
23539 PR 48400
23540 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23541 in strict mode before dwarf4. Re-order tests to early out
23542 before switching sections.
23543
23544 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
23545
23546 * config/h8300/constraints.md: New file.
23547 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
23548 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23549 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23550 * config/h8300/predicates.md (bit_operand): Likewise.
23551 (incdec_operand): Use satisfies_constraint_M and
23552 satisfies_constraint_O. Don't use C code block.
23553 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23554 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23555 (compute_mov_length): Use satisfies_constraint_G.
23556 (fix_bit_operand): Use satisfies_constraint_U.
23557 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23558 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23559 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23560 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23561 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23562 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23563 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23564 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23565 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23566 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23567 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23568 (EXTRA_MEMORY_CONSTRAINT): Delete.
23569
23570 2011-04-01 Andrew Pinski <pinskia@gmail.com>
23571 Michael Meissner <meissner@linux.vnet.ibm.com>
23572
23573 PR target/48262
23574 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23575 operands, as per the specifications.
23576
23577 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23578 (vec_extract_evenv4sf): Ditto.
23579 (vec_extract_evenv8hi): Ditto.
23580 (vec_extract_evenv16qi): Ditto.
23581 (vec_extract_oddv4si): Ditto.
23582
23583 2011-03-31 Mark Wielaard <mjw@redhat.com>
23584
23585 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23586 high_pc attribute if the CU has no associated code. Only output
23587 DW_AT_entry_pc for CU if not generating strict dwarf and
23588 dwarf_version < 4.
23589
23590 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
23591
23592 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23593 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23594 out of ...
23595 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23596 * final.c (final_start_function): Call the new function rather
23597 than using a NULL argument for dwarf2out_frame_debug.
23598
23599 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23600 that contains the prologue.
23601
23602 * haifa-sched.c (queue_insn): New arg REASON. All callers
23603 changed. Print it in debugging output.
23604
23605 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23606
23607 * sched-ebb.c (begin_schedule_ready): Remove second argument.
23608 Split most of the code into...
23609 (begin_move_insn): ... here. New function.
23610 (ebb_sched_info): Add a pointer to it.
23611 * haifa-sched.c (scheduled_insns): New static variable.
23612 (sched_extend_ready_list): Allocate it.
23613 (schedule_block): Use it to record the order of scheduled insns.
23614 Perform RTL changes to move insns only after all scheduling
23615 decisions have been made.
23616 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23617 begin_move_insn field.
23618 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23619 * sched-int.h (struct haifa_sched_info): Remove second argument
23620 from begin_schedule_ready hook. Add new member begin_move_insn.
23621 * sched-rgn.c (begin_schedule_ready): Remove second argument.
23622 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23623
23624 * haifa-sched.c (prune_ready_list): New function, broken out of
23625 schedule_block.
23626 (schedule_block): Use it.
23627
23628 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23629
23630 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
23631
23632 2011-04-01 Kai Tietz <ktietz@redhat.com>
23633
23634 * config.gcc (*-*-mingw*): Allow as option the
23635 posix threading model.
23636 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
23637 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
23638 definition.
23639 (CPP_SPEC): Add pthread/no-pthread handling.
23640 (LIB_SPEC): Likewise.
23641 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
23642 (LIB_SPEC): Likewise.
23643 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
23644 flag to pass -pthread option for shared libgcc build.
23645 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
23646 for shared libgcc build.
23647 * config/i386/t-mingw-pthread: New file.
23648 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
23649 New define to enable use of library pthread by default.
23650 * config/i386/mingw.opt (pthread): New driver option.
23651 (no-pthread): New driver option.
23652 * config/i386/cygming.opt: Make sure trailing empty line is retained.
23653 * config/i386/mingw-w64.opt: Likewise.
23654
23655 2011-04-01 Gary Funck <gary@intrepid.com>
23656
23657 * c-decl.c (grokdeclarator): Fix formatting.
23658
23659 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
23660
23661 * expr.c (emit_block_move_via_movmem): Use n_generator_args
23662 instead of n_operands.
23663 (set_storage_via_setmem): Likewise.
23664 * optabs.c (maybe_gen_insn): Likewise.
23665 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
23666 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
23667 (mips_expand_builtin_direct): Likewise.
23668 * config/spu/spu.c (expand_builtin_args): Likewise.
23669
23670 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
23671
23672 * recog.h (insn_data_d): Add n_generator_args.
23673 * genoutput.c (data): Likewise.
23674 (output_insn_data): Print it.
23675 (max_opno, num_dups): Delete.
23676 (scan_operands): Just fill in "d->operand[...]".
23677 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
23678
23679 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
23680
23681 * gensupport.h (pattern_stats): New structure.
23682 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
23683 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
23684 (max_operand_1, max_operand_vec): Delete.
23685 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
23686
23687 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
23688
23689 * emit-rtl.c (emit_pattern_after_setloc): New function.
23690 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
23691 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
23692 (emit_pattern_after): New function.
23693 (emit_insn_after, emit_jump_insn_after): Call it.
23694 (emit_call_insn_after, emit_debug_insn_after): Likewise.
23695 (emit_pattern_before_setloc): New function.
23696 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
23697 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
23698 Likewise.
23699 (emit_pattern_before): New function.
23700 (emit_insn_before, emit_jump_insn_before): Call it.
23701 (emit_call_insn_before, emit_debug_insn_before): Likewise.
23702
23703 2011-03-31 Richard Henderson <rth@redhat.com>
23704
23705 * dwarf2out.c (dw_separate_line_info_ref): Remove.
23706 (dw_separate_line_info_entry): Remove.
23707 (enum dw_line_info_opcode): New.
23708 (dw_line_info_entry): Use it.
23709 (dw_line_info_table, dw_line_info_table_p): New.
23710 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
23711 (line_info_table, line_info_label_num): Remove.
23712 (line_info_table_in_use): Remove.
23713 (separate_line_info_table): Remove.
23714 (separate_line_info_table_allocated): Remove.
23715 (separate_line_info_table_in_use): Remove.
23716 (LINE_INFO_TABLE_INCREMENT): Remove.
23717 (line_info_label_num): New.
23718 (cur_line_info_table): New.
23719 (text_section_line_info, cold_text_section_line_info): New.
23720 (separate_line_info): New.
23721 (SEPARATE_LINE_CODE_LABEL): Remove.
23722 (print_dwarf_line_table): Remove.
23723 (debug_dwarf): Don't dump it.
23724 (output_one_line_info_table): New.
23725 (output_line_info): Use it.
23726 (new_line_info_table): New.
23727 (set_cur_line_info_table): New.
23728 (dwarf2out_switch_text_section): Use it.
23729 (dwarf2out_begin_function): Likewise.
23730 (push_dw_line_info_entry): New.
23731 (dwarf2out_source_line): Rewrite for new line info tables.
23732 (dwarf2out_init): Remove dead initailizations.
23733
23734 2011-03-31 Joseph Myers <joseph@codesourcery.com>
23735
23736 * opts.h (cl_option): Add comments to fields. Add bit-fields for
23737 various flags.
23738 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
23739 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
23740 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
23741 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
23742 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
23743 * opt-functions.awk (flag_init, switch_bit_fields): New.
23744 (switch_flags): Don't handle flags moved to bit-fields. Don't
23745 generate CL_MISSING_OK or CL_SAVE.
23746 * optc-gen.awk: Update to generate bit-field output as well as
23747 flags field.
23748 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
23749 bit-field instead of CL_REJECT_DRIVER flag.
23750 * opts-common.c (generate_canonical_option,
23751 decode_cmdline_option): Use bit-fields instead of CL_* flags.
23752 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
23753 instead of CL_REJECT_NEGATIVE flag.
23754 * toplev.c (print_switch_values): Use cl_report bit-field instead
23755 of CL_REPORT flag.
23756
23757 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
23758
23759 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
23760 a zero minimum index only if it is redundant.
23761
23762 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
23763
23764 PR rtl-optimization/48381
23765 * ira-color.c (assign_hard_reg): Use hard reg set intersection
23766 instead of ira_class_hard_reg_index for calculating conflicting
23767 hard registers.
23768
23769 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
23770
23771 * cprop.c: Clean up hash table building.
23772 (reg_avail_info): Remove.
23773 (oprs_available_p): Remove.
23774 (record_last_reg_set_info): Remove.
23775 (record_last_set_info): Remove.
23776 (reg_available_p): New function.
23777 (gcse_constant_p): Do not treat unfolded conditions as constants.
23778 (make_set_regs_unavailable): New function.
23779 (hash_scan_set): Simplify with new reg_available_p.
23780 (compute_hash_table_work): Traverse insns stream only once.
23781 Do not compute reg_avail_info. Traverse insns in reverse order.
23782 Record implicit sets after recording explicit sets from the block.
23783
23784 2011-03-31 Michael Matz <matz@suse.de>
23785
23786 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
23787
23788 2011-03-31 Anatoly Sokolov <aesok@post.ru>
23789
23790 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
23791 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
23792 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23793 (h8300_mode_dependent_address_p): New function.
23794 (h8300_get_index): Make static.
23795
23796 2011-03-31 Jeff Law <law@redhat.com>
23797
23798 * reload1.c (elimination_effects): Fix typo in recent change.
23799
23800 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
23801 typo potentially leading to null pointer dereference.
23802
23803 * caller-save.c (new_saved_hard_reg): Eliminate return value.
23804 (setup_save_areas): Corresponding changes to avoid useless
23805 assignments.
23806
23807 * jump.c (reversed_comparison_code_parts): Avoid successive return
23808 statements when REVERSE_CONDITION is defined.
23809
23810 * expr.c (expand_assignment): Avoid useless assignments.
23811 (expand_expr_real_1): Likewise.
23812 (expand_expr_real_2): Avoid useless statements.
23813
23814 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
23815
23816 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23817
23818 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
23819 statements.
23820
23821 * stmt.c (expand_expr_stmt): Avoid useless assignment.
23822
23823 2011-03-31 Joseph Myers <joseph@codesourcery.com>
23824
23825 PR target/47109
23826 * doc/tm.texi.in (TARGET_VERSION): Remove.
23827 * doc/tm.texi: Regenerate.
23828 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
23829 * collect2.c (main): Don't use TARGET_VERSION.
23830 * mips-tdump.c (main): Don't use TARGET_VERSION.
23831 * mips-tfile.c (main): Don't use TARGET_VERSION.
23832 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
23833 * config/rs6000/vxworksae.h: Remove.
23834 * config/alpha/alpha.h (TARGET_VERSION): Remove.
23835 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
23836 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
23837 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
23838 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23839 * config/arm/arm.h (TARGET_VERSION): Remove.
23840 * config/arm/coff.h (TARGET_VERSION): Remove.
23841 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
23842 * config/arm/elf.h (TARGET_VERSION): Remove.
23843 * config/arm/freebsd.h (TARGET_VERSION): Remove.
23844 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
23845 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
23846 * config/arm/pe.h (TARGET_VERSION): Remove.
23847 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
23848 * config/arm/semi.h (TARGET_VERSION): Remove.
23849 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
23850 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
23851 * config/arm/vxworks.h (TARGET_VERSION): Remove.
23852 * config/avr/avr.h (TARGET_VERSION): Remove.
23853 * config/bfin/bfin.h (TARGET_VERSION): Remove.
23854 * config/fr30/fr30.h (TARGET_VERSION): Remove.
23855 * config/frv/frv.h (TARGET_VERSION): Remove.
23856 * config/h8300/h8300.h (TARGET_VERSION): Remove.
23857 * config/i386/cygwin.h (TARGET_VERSION): Remove.
23858 * config/i386/darwin.h (TARGET_VERSION): Remove.
23859 * config/i386/darwin64.h (TARGET_VERSION): Remove.
23860 * config/i386/djgpp.h (TARGET_VERSION): Remove.
23861 * config/i386/freebsd.h (TARGET_VERSION): Remove.
23862 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
23863 * config/i386/gnu.h (TARGET_VERSION): Remove.
23864 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
23865 * config/i386/i386elf.h (TARGET_VERSION): Remove.
23866 * config/i386/linux.h (TARGET_VERSION): Remove.
23867 * config/i386/linux64.h (TARGET_VERSION): Remove.
23868 * config/i386/lynx.h (TARGET_VERSION): Remove.
23869 * config/i386/mingw32.h (TARGET_VERSION): Remove.
23870 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
23871 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
23872 * config/i386/netware.h (TARGET_VERSION): Remove.
23873 * config/i386/nto.h (TARGET_VERSION): Remove.
23874 * config/i386/openbsd.h (TARGET_VERSION): Remove.
23875 * config/i386/vxworks.h (TARGET_VERSION): Remove.
23876 * config/ia64/elf.h (TARGET_VERSION): Remove.
23877 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
23878 * config/ia64/hpux.h (TARGET_VERSION): Remove.
23879 * config/ia64/linux.h (TARGET_VERSION): Remove.
23880 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
23881 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
23882 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23883 * config/lm32/lm32.h (TARGET_VERSION): Remove.
23884 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
23885 * config/m32c/m32c.h (TARGET_VERSION): Remove.
23886 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
23887 * config/m32r/m32r.h (TARGET_VERSION): Remove.
23888 * config/m68k/linux.h (TARGET_VERSION): Remove.
23889 * config/m68k/m68k.h (TARGET_VERSION): Remove.
23890 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
23891 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
23892 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
23893 * config/mep/mep.h (TARGET_VERSION): Remove.
23894 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
23895 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
23896 * config/mips/iris6.h (MACHINE_TYPE): Remove.
23897 * config/mips/linux.h (TARGET_VERSION): Remove.
23898 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
23899 * config/mips/vxworks.h (TARGET_VERSION): Remove.
23900 * config/mmix/mmix.h (TARGET_VERSION): Remove.
23901 * config/mn10300/linux.h (TARGET_VERSION): Remove.
23902 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
23903 * config/pa/pa.h (TARGET_VERSION): Remove.
23904 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
23905 * config/picochip/picochip.h (TARGET_VERSION): Remove.
23906 * config/rs6000/aix.h (TARGET_VERSION): Remove.
23907 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
23908 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
23909 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
23910 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
23911 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
23912 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
23913 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
23914 * config/rs6000/linux.h (TARGET_VERSION): Remove.
23915 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
23916 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
23917 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
23918 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
23919 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
23920 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
23921 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
23922 * config/s390/linux.h (TARGET_VERSION): Remove.
23923 * config/s390/s390.h (TARGET_VERSION): Remove.
23924 * config/s390/tpf.h (TARGET_VERSION): Remove.
23925 * config/score/score.h (TARGET_VERSION): Remove.
23926 * config/sh/linux.h (TARGET_VERSION): Remove.
23927 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
23928 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
23929 * config/sh/sh.h (TARGET_VERSION): Remove.
23930 * config/sh/sh64.h (TARGET_VERSION): Remove.
23931 * config/sh/superh.h (TARGET_VERSION): Remove.
23932 * config/sh/vxworks.h (TARGET_VERSION): Remove.
23933 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
23934 * config/sparc/linux.h (TARGET_VERSION): Remove.
23935 * config/sparc/linux64.h (TARGET_VERSION): Remove.
23936 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
23937 TARGET_NAME32, TARGET_NAME): Remove.
23938 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
23939 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
23940 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
23941 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
23942 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
23943 * config/spu/spu.h (TARGET_VERSION): Remove.
23944 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
23945 * config/v850/v850.h (TARGET_VERSION): Remove.
23946 * config/vax/linux.h (TARGET_VERSION): Remove.
23947 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
23948 * config/xtensa/elf.h (TARGET_VERSION): Remove.
23949 * config/xtensa/linux.h (TARGET_VERSION): Remove.
23950
23951 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
23952
23953 PR target/48142
23954 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
23955 frame-related from frame-unrelated adjustments to the stack pointer.
23956
23957 2011-03-31 Jakub Jelinek <jakub@redhat.com>
23958
23959 * common.opt (fdebug-types-section): Move earlier.
23960 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
23961
23962 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
23963
23964 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
23965 var.
23966
23967 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
23968
23969 * tree.h (CASE_CHAIN): Define.
23970 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
23971 (gimple_redirect_edge_and_branch): Likewise.
23972
23973 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
23974
23975 PR middle-end/48367
23976 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
23977 calculation.
23978
23979 2011-03-30 Jeff Law <law@redhat.com>
23980
23981 * PR bootstrap/48371
23982 * reload1.c (reload): Fix botch in last change.
23983
23984 * reload.h (struct reload): Fix typo introduced in last change.
23985
23986 2011-03-30 Joseph Myers <joseph@codesourcery.com>
23987
23988 * config/arm/arm.opt (mhard-float, msoft-float): Mark
23989 Undocumented. Remove help text.
23990 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
23991 -mhard-float.
23992
23993 2011-03-30 Joseph Myers <joseph@codesourcery.com>
23994
23995 * doc/options.texi (NegativeAlias): Document.
23996 (Alias): Mention NegativeAlias.
23997 * opt-functions.awk: Handle NegativeAlias.
23998 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
23999 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24000 * opts.h (CL_NEGATIVE_ALIAS): Define.
24001 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24002 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24003 OPT_mspe_.
24004 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24005 Alias entries.
24006 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24007 mno-spe and mno-isel instead of mspe=no and -misel=no.
24008
24009 2011-03-29 Mark Wielaard <mjw@redhat.com>
24010
24011 * common.opt (fdebug-types-section): New flag.
24012 * doc/invoke.texi: Document new -fno-debug-types-section flag.
24013 * dwarf2out.c (use_debug_types): New define.
24014 (struct die_struct): Mark die_id with GTY desc use_debug_types.
24015 (print_die): Guard output of type unit signatures using
24016 use_debug_types.
24017 (build_abbrev_table): Replace assert of dwarf_version >= 4
24018 with assert on use_debug_types.
24019 (size_of_die): Likewise.
24020 (unmark_dies): Likewise.
24021 (value_format): Decide AT_ref_external form on use_debug_types.
24022 (output_die): Replace dwarf_version version check guard with
24023 use_debug_types where appropriate.
24024 (modified_type_die): Likewise.
24025 (gen_reference_type_die): Likewise.
24026 (dwarf2out_start_source_file): Likewise.
24027 (dwarf2out_end_source_file): Likewise.
24028 (prune_unused_types_walk_attribs): Likewise.
24029 (dwarf2out_finish): Likewise.
24030
24031 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
24032
24033 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24034
24035 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24036
24037 PR rtl-optimization/48332
24038 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24039 mode of input operand N and modeN to its actual mode.
24040
24041 2011-03-30 Jeff Law <law@redhat.com>
24042
24043 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24044 define accessor macro.
24045 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24046 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24047 (reg_equiv_init): Likewise.
24048 (reg_equivs_size): New variable.
24049 (reg_equiv_init_size): Remove.
24050 (allocate_initial_values): Move prototype to here from....
24051 * integrate.h (allocate_initial_values): Remove prototype.
24052 * integrate.c: Include reload.h.
24053 (allocate_initial_values): Corresponding changes.
24054 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24055 (fix_reg_equiv_init, no_equiv): Corresponding changes.
24056 (update_equiv_regs): Corresponding changes.
24057 (ira): Corresponding changes.
24058 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24059 (push_secondary_reload): Corresponding changes.
24060 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24061 (make_memloc, find_reloads_address): Corresponding changes.
24062 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24063 (find_reloads_address_1): Corresponding changes.
24064 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24065 (refers_to_regno_for_reload_p): Corresponding changes.
24066 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24067 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24068 * reload1.c: Include ggc.h.
24069 (grow_reg_equivs): New function.
24070 (replace_pseudos_in, reload): Corresponding changes.
24071 (calculate_needs_all_insns, alter_regs): Corresponding changes.
24072 (eliminate_regs_1, elimination_effects): Corresponding changes.
24073 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24074 (delete_output_reload): Likewise.
24075 * caller-save.c (mark_referenced_regs): Corresponding changes.
24076 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24077 * frv/predicates.md (frv_load_operand): Corresponding changes.
24078 * microblaze/microblaze.c (double_memory_operand): Corresponding
24079 changes.
24080 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24081 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24082 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24083 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24084 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24085 changes.
24086 * pa/pa.c (emit_move_sequence): Corresponding changes.
24087 * vax/vax.c (nonindexed_address_p): Corresponding changes.
24088
24089 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24090
24091 PR target/47551
24092 * config/arm/arm.c (coproc_secondary_reload_class): Handle
24093 structure modes. Don't check neon_vector_mem_operand for
24094 vector or structure modes.
24095
24096 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24097 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24098
24099 PR target/43590
24100 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24101 operand 1 and reshuffle the operands to match.
24102 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24103
24104 2011-03-30 Christian Schüler <cschueler@gmx.de>
24105
24106 PR driver/48208
24107 * config/c.opt (F): Added 'Driver' to -F option.
24108
24109 PR driver/48260
24110 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24111 handler function.
24112 * config/darwin.opt: Added '-arch' option.
24113
24114 2011-03-30 Nick Clifton <nickc@redhat.com>
24115
24116 * config/rx/rx.md: Add peepholes and patterns to combine
24117 extending loads and simple arithmetic instructions.
24118 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24119 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24120 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24121 modes to use pre-decrement and post-increment addressing.
24122 (rx_is_restricted_memory_address): Add range checking of REG+INT
24123 addresses.
24124 (rx_print_operand): Add support for %Q. Fix handling of %Q.
24125 (rx_memory_move_cost): Adjust cost of stores.
24126 (rx_adjust_insn_length): New function.
24127
24128 2011-03-30 Jakub Jelinek <jakub@redhat.com>
24129
24130 PR c/48305
24131 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24132 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24133 matching arg00/arg01 types.
24134
24135 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
24136
24137 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24138 last_location to UNKNOWN_LOCATION.
24139
24140 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
24141
24142 PR target/48349
24143 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24144 FLOAT_SSE_REGS.
24145
24146 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24147 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24148
24149 PR bootstrap/48337
24150 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24151 Init(PROCESSOR_V7).
24152 (sparc_cpu): Likewise.
24153 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24154 PROCESSOR_V7.
24155
24156 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24157
24158 PR target/48336
24159 PR middle-end/48342
24160 PR rtl-optimization/48345
24161 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24162 hard regs for given mode from profitable regs when doing secondary
24163 allocation.
24164
24165 2011-03-29 Jeff Law <law@redhat.com>
24166
24167 PR bootstrap/48327
24168 * tree-ssa-threadupdate.c (struct redirection_data): Remove
24169 do_not_duplicate field.
24170 (lookup_redirection_data): Corresponding changes.
24171 (create_duplicates): Always create a template block.
24172 (redirect_edges): Remove code which reused the original block
24173 when it was going to become unreachable code.
24174 (thread_block): Don't set do_not_duplicate field.
24175
24176 2011-03-29 Joseph Myers <joseph@codesourcery.com>
24177
24178 * lto-opts.c (register_user_option_p, lto_register_user_option):
24179 Make type argument unsigned.
24180 * lto-streamer.h (lto_register_user_option): Make type argument
24181 unsigned.
24182 * opth-gen.awk: Make CL_* macros unsigned.
24183 * opts-common.c (find_opt): Make lang_mask argument unsigned.
24184 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24185 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24186 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24187 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24188 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24189 (find_opt): Make lang_mask argument unsigned.
24190
24191 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24192
24193 PR rtl-optimization/48331
24194 PR rtl-optimization/48334
24195 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24196 for any used algorithm.
24197
24198 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24199
24200 * ira-conflicts.c (build_object_conflicts): Add unused attribute
24201 to parent_max.
24202
24203 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
24204
24205 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24206 (alpha_option_override): Don't set alpha_sr_alias_set.
24207 (emit_frame_store_1): Use gen_frame_mem rather than calling
24208 set_mem_alias_set.
24209 (alpha_expand_epilogue): Ditto.
24210
24211 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
24212
24213 PR tree-optimization/48290
24214 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24215 vectorization, check that relevant phis in the basic block after
24216 the inner loop are really inner loop's exit phis.
24217
24218 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
24219
24220 PR debug/48190
24221 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24222 (cached_dw_loc_list_def): New structure.
24223 (cached_dw_loc_list): New typedef.
24224 (cached_dw_loc_list_table): New variable.
24225 (cached_dw_loc_list_table_hash): New function.
24226 (cached_dw_loc_list_table_eq): Likewise.
24227 (add_location_or_const_value_attribute): Take a bool cache_p.
24228 Cache the list when the parameter is true.
24229 (gen_formal_parameter_die): Update caller.
24230 (gen_variable_die): Likewise.
24231 (dwarf2out_finish): Likewise.
24232 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24233 while generating debug info for the decl.
24234 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24235 (dwarf2out_init): Initialize cached_dw_loc_list_table.
24236 (resolve_addr): Cache the result of resolving a chain of
24237 location lists.
24238
24239 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
24240
24241 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24242 conflict object hard regset nodes have intersecting hard reg sets.
24243
24244 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24245 after regstat_init_n_sets_and_refs.
24246
24247 * ira.c: Add more comments at the top.
24248 (setup_stack_reg_pressure_class, setup_pressure_classes):
24249 Add comments how we compute the register pressure classes.
24250 (setup_allocno_and_important_classes): Add more comments.
24251 (setup_class_translate_array, reorder_important_classes)
24252 (setup_reg_class_relations): Add comments.
24253
24254 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
24255 start of the file.
24256
24257 * ira-color.c: Add 2011 to the Copyright line.
24258 (assign_hard_reg): Add more comments.
24259 (improve_allocation): Ditto.
24260
24261 * ira-costs.c: Add 2011 to the Copyright line.
24262 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24263 comments.
24264 (setup_regno_cost_classes_by_mode): Ditto.
24265
24266 Initial patches from ira-improv branch:
24267
24268 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
24269
24270 * ira-build.c (ira_create_object): Remove initialization of
24271 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
24272 (ira_create_allocno): Remove initialization of
24273 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24274 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24275 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24276 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24277 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24278 Initialize ALLOCNO_ADD_DATA.
24279 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24280 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24281 ALLOCNO_REG.
24282 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
24283 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24284
24285 * ira.c (ira_reallocate): Remove.
24286 (setup_pressure_classes): Call
24287 ira_init_register_move_cost_if_necessary. Use
24288 ira_register_move_cost instead of ira_get_register_move_cost.
24289 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24290 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24291
24292 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24293 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24294 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24295 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24296 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24297 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24298 Fix formatting.
24299 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24300 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24301 (struct allocno_color_data): New.
24302 (allocno_color_data_t): New typedef.
24303 (allocno_color_data): New definition.
24304 (ALLOCNO_COLOR_DATA): New macro.
24305 (struct object_color_data): New.
24306 (object_color_data_t): New typedef.
24307 (object_color_data): New definition.
24308 (OBJECT_COLOR_DATA): New macro.
24309 (update_copy_costs, calculate_allocno_spill_cost): Call
24310 ira_init_register_move_cost_if_necessary. Use
24311 ira_register_move_cost instead of ira_get_register_move_cost.
24312 (move_spill_restore, update_curr_costs): Ditto.
24313 (allocno_spill_priority): Make it inline.
24314 (color_pass): Allocate and free allocno_color_dat and object_color_data.
24315 (struct coalesce_data, coalesce_data_t): New.
24316 (allocno_coalesce_data): New definition.
24317 (ALLOCNO_COALESCE_DATA): New macro.
24318 (merge_allocnos, coalesced_allocno_conflict_p): Use
24319 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24320 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24321 (coalesce_allocnos): Ditto.
24322 (setup_coalesced_allocno_costs_and_nums): Ditto.
24323 (collect_spilled_coalesced_allocnos): Ditto.
24324 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24325 (setup_slot_coalesced_allocno_live_ranges): Ditto.
24326 (coalesce_spill_slots): Ditto.
24327 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
24328 free allocno_coalesce_data.
24329
24330 * ira-conflicts.c: Fix formatting.
24331 (process_regs_for_copy): Call
24332 ira_init_register_move_cost_if_necessary. Use
24333 ira_register_move_cost instead of ira_get_register_move_cost.
24334 (build_object_conflicts): Optimize.
24335
24336 * ira-costs.c (record_reg_classes): Optimize. Call
24337 ira_init_register_move_cost_if_necessary. Use
24338 ira_register_move_cost, ira_may_move_in_cost, and
24339 ira_may_move_out_cost instead of ira_get_register_move_cost and
24340 ira_get_may_move_cost.
24341 (record_address_regs): Ditto.
24342 (scan_one_insn): Optimize.
24343 (find_costs_and_classes): Optimize.
24344 (process_bb_node_for_hard_reg_moves): Call
24345 ira_init_register_move_cost_if_necessary. Use
24346 ira_register_move_cost instead of ira_get_register_move_cost.
24347
24348 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24349 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24350 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24351 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24352 definitions.
24353 (ira_initiate_emit_data, ira_finish_emit_data)
24354 (create_new_allocno): New functions.
24355 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24356 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24357 Use ira_register_move_cost instead of ira_get_register_move_cost.
24358
24359 * ira-int.h: Fix some comments.
24360 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24361 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24362 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24363 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
24364 add_data.
24365 (struct ira_allocno): Make mode and aclass a bitfield. Move other
24366 bitfield after mode. Make hard_regno a short int. Make
24367 hard_regno short. Remove first_coalesced_allocno and
24368 next_coalesced_allocno. Move mem_optimized_dest_p,
24369 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24370 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
24371 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24372 temp, colorable_p. Add new member add_data.
24373 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24374 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24375 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24376 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24377 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24378 (ALLOCNO_ADD_DATA): New macro.
24379 (ira_emit_data_t): New typedef.
24380 (struct ira_emit_data): New. Move mem_optimized_dest_p,
24381 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24382 from struct ira_allocno.
24383 (ALLOCNO_EMIT_DATA): New macro.
24384 (ira_allocno_emit_data, allocno_emit_reg): New.
24385 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24386 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24387 (OBJECT_ADD_DATA): New macro.
24388 (ira_reallocate): Remove.
24389 (ira_initiate_emit_data, ira_finish_emit_data): New.
24390 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24391 (ira_init_register_move_cost_if_necessary): New.
24392 (ira_object_conflict_iter_next): Merge into
24393 ira_object_conflict_iter_cond.
24394 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24395
24396 * ira-live.c (process_single_reg_class_operands): Call
24397 ira_init_register_move_cost_if_necessary. Use
24398 ira_register_move_cost instead of ira_get_register_move_cost.
24399
24400 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
24401
24402 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24403
24404 * ira-costs.c: Fix formatting.
24405 (cost_classes, cost_classes_num): Remove.
24406 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24407 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24408 (cost_classes_del, cost_classes_htab): New.
24409 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24410 (initiate_regno_cost_classes, setup_cost_classes): New.
24411 (setup_regno_cost_classes_by_aclass): New.
24412 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24413 (record_reg_classes): Use regno_cost_classes instead of
24414 cost_classes. Move checking opposite operand up.
24415 (record_address_regs): Use regno_cost_classes
24416 instead of cost_classes.
24417 (scan_one_insn): Ditto. Use always general register.
24418 (print_allocno_costs): Use regno_cost_classes instead of
24419 cost_classes.
24420 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
24421 (find_costs_and_classes): Set up cost classes for each registers.
24422 Use also their mode for this. Use regno_cost_classes instead of
24423 cost_classes.
24424 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24425 cost_classes.
24426 (free_ira_costs, ira_init_costs): Don't use cost_classes.
24427 (ira_costs, ira_set_pseudo_classes): Call
24428 initiate_regno_cost_classes and finish_regno_cost_classes.
24429
24430 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
24431
24432 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24433
24434 * target.def (ira_cover_classes): Remove.
24435
24436 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24437
24438 * doc/tm.texi.in: Ditto.
24439
24440 * ira-conflicts.c: Remove mentioning cover classes from the file.
24441 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
24442 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
24443
24444 * targhooks.c (default_ira_cover_classes): Remove.
24445
24446 * targhooks.h (default_ira_cover_classes): Ditto.
24447
24448 * haifa-sched.c: Remove mentioning cover classes from the file.
24449 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
24450 ira_pressure_classes and ira_pressure_classes_num instead of
24451 ira_reg_class_cover_size and ira_reg_class_cover. Use
24452 sched_regno_pressure_class instead of sched_regno_cover_class.
24453 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24454 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24455
24456 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
24457 classes from the file.
24458 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24459 (struct object_hard_regs, struct object_hard_regs_node): New.
24460 (struct ira_object): New members profitable_hard_regs,
24461 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24462 (struct ira_allocno): Rename cover_class to aclass. Rename
24463 cover_class_cost and updated_cover_class_cost to class_cost and
24464 updated_class_cost. Remove splay_removed_p and
24465 left_conflict_size. Add new members colorable_p.
24466 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24467 (ALLOCNO_COLORABLE_P): New macro.
24468 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24469 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24470 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24471 (OBJECT_...): Rename parameter C to O.
24472 (OBJECT_PROFITABLE_HARD_REGS): New macro.
24473 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24474 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24475 (struct target_ira_int): New members x_ira_max_memory_move_cost,
24476 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24477 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24478 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24479 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
24480 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
24481 x_ira_reg_class_subunion.
24482 (ira_max_memory_move_cost, ira_max_register_move_cost)
24483 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24484 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24485 (ira_important_class_nums, ira_reg_class_superunion): New macros.
24486 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24487 (ira_reg_class_union): Rename to ira_reg_class_subunion.
24488 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24489 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24490 (ira_tune_allocno_costs_and_cover_classes): Rename to
24491 ira_tune_allocno_costs.
24492 (ira_debug_hard_regs_forest): New.
24493 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24494 (ira_object_conflict_iter_next): Fix comments.
24495 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24496 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24497 cover_class to aclass.
24498 (ira_allocate_and_accumulate_costs): Ditto.
24499 (ira_allocate_and_set_or_copy_costs): Ditto.
24500
24501 * opts.c (decode_options): Remove ira_cover_class check.
24502
24503 * ira-color.c: Remove mentioning cover classes from the file. Use
24504 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24505 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24506 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
24507 (splay-tree.h): Remove include.
24508 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24509 before copy_freq_compare_func.
24510 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24511 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24512 New definitions.
24513 (hard_regs_roots, hard_regs_node_vec): Ditto.
24514 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24515 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24516 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24517 (create_new_object_hard_regs_node): Ditto.
24518 (add_new_object_hard_regs_node_to_forest): Ditto.
24519 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24520 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24521 Ditto.
24522 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24523 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24524 (remove_unused_object_hard_regs_nodes): Ditto.
24525 (enumerate_object_hard_regs_nodes): Ditto.
24526 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24527 (object_hard_regs_subnode_t): Ditto.
24528 (struct object_hard_regs_subnode): Ditto.
24529 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24530 (setup_object_hard_regs_subnode_index): Ditto.
24531 (get_object_hard_regs_subnodes_num): Ditto.
24532 (form_object_hard_regs_nodes_forest): Ditto.
24533 (finish_object_hard_regs_nodes_tree): Ditto.
24534 (finish_object_hard_regs_nodes_forest): Ditto.
24535 (allocnos_have_intersected_live_ranges_p): Rename to
24536 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
24537 (pseudos_have_intersected_live_ranges_p): Rename to
24538 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
24539 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24540 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24541 (update_copy_costs): Remove assert. Skip cost update if the hard
24542 reg does not belong the class.
24543 (assign_hard_reg): Process only profitable hard regs.
24544 (uncolorable_allocnos_num): Make it scalar.
24545 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24546 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24547 and ira_reg_class_max_nregs.
24548 (bucket_allocno_compare_func): Check frequency first.
24549 (sort_bucket): Add compare function as a parameter.
24550 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24551 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24552 (push_allocno_to_stack): Rewrite for checking new allocno
24553 colorability.
24554 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
24555 (push_only_colorable): Pass new parameter to sort_bucket.
24556 (push_allocno_to_spill): Remove.
24557 (allocno_spill_priority_compare): Make it inline and rewrite.
24558 (splay_tree_allocate, splay_tree_free): Remove.
24559 (allocno_spill_sort_compare): New function.
24560 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
24561 build and use splay tree. Choose first allocno in uncolorable
24562 allocno bucket to spill. Remove setting spill cost.
24563 (all_conflicting_hard_regs): Remove.
24564 (setup_allocno_available_regs_num): Check only profitable hard
24565 regs. Print info about hard regs nodes.
24566 (setup_allocno_left_conflicts_size): Remove.
24567 (put_allocno_into_bucket): Don't call
24568 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
24569 (improve_allocation): New.
24570 (color_allocnos): Call setup_profitable_hard_regs,
24571 form_object_hard_regs_nodes_forest, improve_allocation,
24572 finish_object_hard_regs_nodes_forest. Setup spill cost.
24573 (print_loop_title): Use pressure classes.
24574 (color_allocnso): Ditto.
24575 (do_coloring): Remove allocation and freeing splay_tree_node_pool
24576 and allocnos_for_spilling.
24577 (ira_sort_regnos_for_alter_reg): Don't setup members
24578 {first,next}_coalesced_allocno.
24579 (color): Remove allocating and freeing removed_splay_allocno_vec.
24580 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24581 prohibited_class_mode_regs.
24582
24583 * ira-lives.c: Remove mentioning cover classes from the file. Fix
24584 formatting.
24585 (update_allocno_pressure_excess_length): Use pressure classes.
24586 (inc_register_pressure, dec_register_pressure): Check for pressure
24587 class.
24588 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24589 pressure class. Use ira_reg_class_nregs instead of
24590 ira_reg_class_max_nregs.
24591 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24592 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24593 (single_reg_class): Use ira_reg_class_nregs instead of
24594 ira_reg_class_max_nregs.
24595 (process_bb_node_lives): Use pressure classes.
24596
24597 * ira-emit.c: Remove mentioning cover classes from the file. Use
24598 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
24599 (change_loop): Use pressure classes.
24600 (modify_move_list): Call ira_set_allocno_class instead of
24601 ira_set_allocno_cover_class.
24602
24603 * ira-build.c: Remove mentioning cover classes from the file. Use
24604 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24605 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
24606 ALLOCNO_UPDATED_CLASS_COST instead of
24607 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
24608 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24609 (ira_create_allocno): Remove initialization of
24610 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
24611 ALLOCNO_COLORABLE_P.
24612 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24613 Update conflict regs for the objects.
24614 (create_cap_allocno): Remove assert. Don't propagate
24615 ALLOCNO_AVAILABLE_REGS_NUM.
24616 (ira_free_allocno_costs): New function.
24617 (finish_allocno): Change a part of code into call of
24618 ira_free_allocno_costs.
24619 (low_pressure_loop_node_p): Use pressure classes.
24620 (object_range_compare_func): Don't compare classes.
24621 (setup_min_max_conflict_allocno_ids): Ditto.
24622
24623 * loop-invariant.c: Remove mentioning cover classes from the file.
24624 Use ira_pressure_classes and ira_pressure_classes_num instead of
24625 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
24626 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24627 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24628 Use reg_allocno_class instead of reg_cover_class.
24629 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
24630 STACK_REG_COVER_CLASS.
24631 (get_regno_cover_class): Rename to get_regno_pressure_class.
24632 (move_loop_invariants): Initialize and finalize regstat.
24633
24634 * ira.c: Remove mentioning cover classes from the file. Add
24635 comments about coloring without cover classes. Use ALLOCNO_CLASS
24636 instead of ALLOCNO_COVER_CLASS. Fix formatting.
24637 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
24638 setup_class_subset_and_memory_move_costs.
24639 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
24640 (setup_cover_and_important_classes): Rename to
24641 setup_allocno_and_important_classes.
24642 (setup_class_translate_array): New.
24643 (setup_class_translate): Call it for allocno and pressure classes.
24644 (cover_class_order): Rename to allocno_class_order.
24645 (comp_reg_classes_func): Use ira_allocno_class_translate instead
24646 of ira_class_translate.
24647 (reorder_important_classes): Set up ira_important_class_nums.
24648 (setup_reg_class_relations): Set up ira_reg_class_superunion.
24649 (print_class_cover): Rename to print_classes. Add parameter.
24650 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24651 Print pressure classes too.
24652 (find_reg_class_closure): Rename to find_reg_classes. Don't call
24653 setup_reg_subclasses.
24654 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24655 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24656 (setup_prohibited_class_mode_regs): Use
24657 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
24658 (clarify_prohibited_class_mode_regs): New function.
24659 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
24660 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
24661 (ira_init_once): Initialize them.
24662 (free_register_move_costs): Process them.
24663 (ira_init): Move calls of find_reg_classes and
24664 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
24665 Call clarify_prohibited_class_mode_regs.
24666 (ira_no_alloc_reg): Remove.
24667 (too_high_register_pressure_p): Use pressure classes.
24668
24669 * sched-deps.c: Remove mentioning cover classes from the file.
24670 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
24671 ira_pressure_classes and ira_pressure_classes_num instead of
24672 ira_reg_class_cover_size and ira_reg_class_cover.
24673 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
24674 sched_regno_pressure_class instead of sched_regno_cover_class.
24675 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
24676 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24677
24678 * ira.h: Add 2010 to Copyright.
24679 (ira_no_alloc_reg): Remove external.
24680 (struct target_ira): Rename x_ira_hard_regno_cover_class,
24681 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
24682 x_ira_class_translate to x_ira_hard_regno_allocno_class,
24683 x_ira_allocno_classes_num, x_ira_allocno_classes, and
24684 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
24685 x_ira_pressure_classes, x_ira_pressure_class_translate, and
24686 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
24687 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
24688 x_ira_no_alloc_regs.
24689 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24690 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
24691 ira_allocno_classes_num and ira_allocno_classes.
24692 (ira_class_translate): Rename to ira_allocno_class_translate.
24693 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
24694 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
24695 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24696 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
24697 (ira_no_alloc_regs): New.
24698
24699 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
24700 classes from the file. Use ALLOCNO_CLASS instead of
24701 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
24702 ALLOCNO_COVER_CLASS_COST.
24703 (regno_cover_class): Rename to regno_aclass.
24704 (record_reg_classes): Use ira_reg_class_subunion instead of
24705 ira_reg_class_union.
24706 (record_address_regs): Check overflow.
24707 (scan_one_insn): Ditto.
24708 (print_allocno_costs): Print total mem cost fore regional allocation.
24709 (print_pseudo_costs): Use REG_N_REFS.
24710 (find_costs_and_classes): Use classes intersected with them on the
24711 1st pass. Check overflow. Use ira_reg_class_subunion instead of
24712 ira_reg_class_union. Use ira_allocno_class_translate and
24713 regno_aclass instead of ira_class_translate and regno_cover_class.
24714 Modify code for finding regno_aclass. Setup preferred classes for
24715 the next pass.
24716 (setup_allocno_cover_class_and_costs): Rename to
24717 setup_allocno_class_and_costs. Use regno_aclass instead of
24718 regno_cover_class. Use ira_set_allocno_class instead of
24719 ira_set_allocno_cover_class.
24720 (init_costs, finish_costs): Use regno_aclass instead of
24721 regno_cover_class.
24722 (ira_costs): Use setup_allocno_class_and_costs instead of
24723 setup_allocno_cover_class_and_costs.
24724 (ira_tune_allocno_costs_and_cover_classes): Rename to
24725 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
24726 by processing objects. Use ira_reg_class_max_nregs instead of
24727 ira_reg_class_nregs.
24728
24729 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
24730
24731 * sched-int.h: Remove mentioning cover classes from the file.
24732 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
24733
24734 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
24735 classes from the file.
24736 (struct reg_pref): Rename coverclass into allocnoclass.
24737 (reg_cover_class): Rename to reg_allocno_class.
24738
24739 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
24740
24741 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
24742
24743 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
24744
24745 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
24746
24747 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
24748
24749 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
24750
24751 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
24752
24753 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
24754
24755 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
24756
24757 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
24758
24759 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
24760 (i386_ira_cover_classes): Ditto.
24761
24762 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
24763
24764 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
24765
24766 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
24767
24768 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
24769
24770 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
24771
24772 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
24773
24774 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
24775 (mips_ira_cover_classes): Ditto.
24776
24777 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
24778
24779 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
24780
24781 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
24782
24783 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
24784
24785 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
24786
24787 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
24788 (IRA_COVER_CLASSES_VSX): Ditto.
24789
24790 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
24791 (rs6000_ira_cover_classes): Ditto.
24792
24793 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
24794
24795 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
24796
24797 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
24798
24799 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
24800
24801 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
24802
24803 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
24804
24805 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
24806
24807 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
24808
24809 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
24810
24811 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
24812
24813 2011-03-29 Jakub Jelinek <jakub@redhat.com>
24814
24815 PR debug/48253
24816 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
24817 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
24818 dw_fde_unlikely_section_end_label, cold_in_std_section,
24819 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
24820 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
24821 fields.
24822 (output_fde): Use dw_fde_second_{begin,end} if second is
24823 true, otherwise dw_fde_{begin,end}.
24824 (output_call_frame_info): Test dw_fde_second_begin != NULL
24825 instead of dw_fde_switched_sections.
24826 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
24827 fields, initialize new fields. Initialize in_std_section
24828 unconditionally from the first partition.
24829 (dwarf2out_end_epilogue): Don't override dw_fde_end when
24830 dw_fde_second_begin is non-NULL.
24831 (dwarf2out_switch_text_section): Stop initializing removed
24832 dw_fde_struct fields, initialize new fields, initialize
24833 also dw_fde_end here. Set dw_fde_switch_cfi even when
24834 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
24835 (struct var_loc_list_def): Add last_before_switch field.
24836 (arange_table, arange_table_allocated, arange_table_in_use,
24837 ARANGE_TABLE_INCREMENT, add_arange): Removed.
24838 (size_of_aranges): Count !in_std_section and !second_in_std_section
24839 hunks in fdes, instead of looking at arange_table_in_use.
24840 (output_aranges): Add aranges_length argument, don't call
24841 size_of_aranges here. Instead of using aranges_table*
24842 emit ranges for fdes when !in_std_section resp.
24843 !second_in_std_section.
24844 (dw_loc_list): Break ranges crossing section switch.
24845 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
24846 use dw_fde_second_end instead of dw_fde_end as end of last range.
24847 (gen_subprogram_die): Don't call add_arange. Use
24848 dw_fde_{begin,end} for first partition and if switched
24849 section dw_fde_second_{begin,end} for the second.
24850 (var_location_switch_text_section_1,
24851 var_location_switch_text_section): New functions.
24852 (dwarf2out_begin_function): Initialize cold_text_section even
24853 when function_section () isn't text_section.
24854 (prune_unused_types): Don't walk arange_table.
24855 (dwarf2out_finish): Don't needlessly test
24856 flag_reorder_blocks_and_partition when testing cold_text_section_used.
24857 If info_section_emitted, call size_of_aranges and if it indicates
24858 non-empty .debug_aranges, call output_aranges with the computed
24859 size. Stop using removed dw_fde_struct fields, use
24860 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
24861 for second.
24862
24863 PR debug/48203
24864 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
24865 create ENTRY_VALUE if incoming or address of incoming's MEM
24866 is a hard REG.
24867 * dwarf2out.c (mem_loc_descriptor): Don't emit
24868 DW_OP_GNU_entry_value of DW_OP_fbreg.
24869 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
24870 on ENTRY_VALUE is able to find the canonical parameter VALUE.
24871 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
24872 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
24873 ENTRY_VALUE_EXPs.
24874 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
24875 is a REG_P or MEM_P with REG_P address, compute hash directly
24876 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
24877 (preserve_only_constants): Don't clear VALUES forwaring
24878 ENTRY_VALUE to some other VALUE.
24879
24880 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
24881
24882 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
24883 instead of GEN_INT.
24884
24885 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
24886
24887 * cfgexpand.c (expand_gimple_cond): Always set the source location and
24888 block before expanding the statement.
24889 (expand_gimple_stmt_1): Likewise. Set them here...
24890 (expand_gimple_stmt): ...and not here. Tidy.
24891 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
24892 unknown.
24893
24894 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
24895
24896 * Makefile.in: New rule for cprop.o.
24897 * gcse.c: Move constant/copy propagation to cprop.c.
24898 (compute_local_properties): Only handle expression tables.
24899 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
24900 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
24901 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
24902 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
24903 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
24904 compute_cprop_data, find_used_regs, try_replace_reg,
24905 find_avail_set, cprop_jump, constprop_register, cprop_insn,
24906 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
24907 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
24908 find_bypass_set, reg_killed_on_edge, bypass_block,
24909 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
24910 execute_rtl_cprop, pass_rtl_cprop): Move to...
24911 * cprop.c: ...here. New file, constant/copy propagation for RTL
24912 moved from gcse.c to here with minor cleanups in duplicated code.
24913
24914 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
24915
24916 * config/i386/i386.c (flag_opts): Fix a typo in
24917 -mavx256-split-unaligned-store.
24918
24919 2011-03-28 Anatoly Sokolov <aesok@post.ru>
24920
24921 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24922 LIBCALL_VALUE): Remove macros.
24923 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24924 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24925 (h8300_function_value, h8300_libcall_value,
24926 h8300_function_value_regno_p): New functions.
24927
24928 2011-03-28 Anatoly Sokolov <aesok@post.ru>
24929
24930 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
24931
24932 2011-03-28 Jeff Law <law@redhat.com>
24933
24934 * tree-ssa-threadupdate.c (redirect_edges): Call
24935 create_edge_and_update_destination_phis as needed.
24936 (create_edge_and_update_destination_phis): Accept new BB argument.
24937 All callers updated.
24938 (thread_block): Do not update the profile when threading around
24939 intermediate blocks.
24940 (thread_single_edge): Likewise.
24941 (determine_bb_domination_status): If BB is not a successor of the
24942 loop header, return NONDOMINATING.
24943 (register_jump_thread): Note when we register a jump thread around
24944 an intermediate block.
24945 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
24946 (thread_across_edge): Use it.
24947
24948 2011-03-28 Tristan Gingold <gingold@adacore.com>
24949
24950 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
24951 when for_return is 2.
24952
24953 2011-03-28 Jeff Law <law@redhat.com>
24954
24955 * var-tracking.c (canonicalize_values_mark): Delete unused
24956 lhs assignment.
24957 (canonicalize_values_star, set_variable_part): Likewise.
24958 (clobber_variable_part, delete_variable_part): Likewise.
24959
24960 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
24961
24962 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
24963
24964 2011-03-28 Martin Jambor <mjambor@suse.cz>
24965
24966 * tree-inline.c (expand_call_inline): Do not check that destination
24967 node is analyzed.
24968 (optimize_inline_calls): Assert that destination node is analyzed.
24969 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
24970 not call tree_lowering_passes.
24971 * cgraph.h (cgraph_analyze_function): Declare.
24972 * cgraphunit.c (cgraph_analyze_function): Make public.
24973
24974 2011-03-28 Joseph Myers <joseph@codesourcery.com>
24975
24976 * config/sparc/sparc-opts.h: New.
24977 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
24978 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
24979 (sparc_option_override): Store processor_type enumeration rather
24980 than string in cpu_default. Remove name and enumeration from
24981 cpu_table. Directly default -mcpu then default -mtune from -mcpu
24982 without using sparc_select. Use target_flags_explicit instead of
24983 fpu_option_set.
24984 * config/sparc/sparc.h (enum processor_type): Move to
24985 sparc-opts.h.
24986 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
24987 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
24988 HeaderInclude entry.
24989 (mcpu=, mtune=): Use Var and Enum.
24990 (sparc_processor_type): New Enum and EnumValue entries.
24991
24992 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24993 Iain Sandoe <iains@gcc.gnu.org>
24994
24995 PR target/48245
24996 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
24997
24998 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
24999
25000 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25001 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25002 Insert new statements at it in lieu of STMT.
25003 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25004 * tree-vect-stmts.c (vectorizable_store): Likewise.
25005 (vectorizable_load): Likewise.
25006
25007 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
25008
25009 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25010 (divtf3): Ditto.
25011 (multf3): Ditto.
25012 (subtf3): Ditto.
25013
25014 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
25015
25016 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25017 unaligned 256bit load/store.
25018 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25019 (*avx_movdqu<avxmodesuffix>): Likewise.
25020
25021 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25022
25023 PR target/48288
25024 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25025 * config/pa/pa.md (iordi3): Use new predicate in expander.
25026 (iorsi3): Likewise.
25027
25028 2011-03-27 Anatoly Sokolov <aesok@post.ru>
25029
25030 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25031 FUNCTION_VALUE_REGNO_P): Remove macros.
25032 * config/mips/mips-protos.h (mips_function_value): Remove.
25033 * config/mips/mips.c (mips_function_value): Rename to...
25034 (mips_function_value_1): ... this. Make static. Handle receiving
25035 the function type in 'fn_decl_or_type' argument.
25036 (mips_function_value, mips_libcall_value,
25037 mips_function_value_regno_p): New function.
25038 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25039 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25040
25041 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
25042
25043 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25044 and -mavx256-split-unaligned-store.
25045 (ix86_option_override_internal): Split 32-byte AVX unaligned
25046 load/store by default.
25047 (ix86_avx256_split_vector_move_misalign): New.
25048 (ix86_expand_vector_move_misalign): Use it.
25049
25050 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25051 -mavx256-split-unaligned-store.
25052
25053 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25054 256bit load/store. Generate unaligned store on misaligned memory
25055 operand.
25056 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25057 256bit load/store.
25058 (*avx_movdqu<avxmodesuffix>): Likewise.
25059
25060 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25061 -mavx256-split-unaligned-store.
25062
25063 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
25064
25065 PR target/38598
25066 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25067 Update commentary.
25068
25069 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
25070
25071 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25072 opno arguments with an expand_operand. Use create_input_operand.
25073 (mips_prepare_builtin_target): Delete.
25074 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25075 functions.
25076 (mips_expand_builtin_direct): Use create_output_operand and
25077 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
25078 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
25079 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25080
25081 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
25082
25083 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25084 function.
25085 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25086
25087 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
25088
25089 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25090 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
25091 basic blocks and call commit_edge_insertions directly.
25092 (fixup_abnormal_edges): Move from here to...
25093 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
25094 on the edges and return whether some have actually been inserted.
25095 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25096 compensation code.
25097
25098 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
25099
25100 PR rtl-optimization/48144
25101 * sel-sched-ir.c (merge_history_vect): Factor out from ...
25102 (merge_expr_data): ... here.
25103 (av_set_intersect): Rename to av_set_code_motion_filter.
25104 Update all callers. Call merge_history_vect when an expression
25105 is found in both sets.
25106 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25107
25108 2011-03-26 Alan Modra <amodra@gmail.com>
25109
25110 * config/rs6000/predicates.md (word_offset_memref_op): Handle
25111 cmodel medium addresses.
25112 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25113 64-bit gpr loads and stores.
25114 (rs6000_secondary_reload_ppc64): New function.
25115 * config/rs6000/rs6000-protos.h: Declare it.
25116 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25117
25118 2011-03-26 Alan Modra <amodra@gmail.com>
25119
25120 PR target/47487
25121 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25122 GNU Go in traceback table.
25123
25124 2011-03-25 Richard Henderson <rth@redhat.com>
25125
25126 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25127 if there are exactly 6 operands.
25128 (set_storage_via_setmem): Similarly.
25129
25130 2011-03-25 Kai Tietz <ktietz@redhat.com>
25131
25132 * collect2.c (write_c_file_stat): Handle backslash
25133 as right-hand directory separator.
25134 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25135 checking just for slash.
25136 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25137 instead of checking for trailing slash.
25138 * gcc.c (record_temp_file): Use filename_cmp instead
25139 of strcmp.
25140 (do_spec_1): Likewise.
25141 (replace_outfile_spec_function): Likewise.
25142 (is_directory): Use filename_ncmp instead of strncmp.
25143 (print_multilib_info): Likewise.
25144 * gcov.c (find_source): Use filename_cmp instead
25145 instead of strcmp.
25146 (make_gcov_file_name): Fix order of slash/backslash
25147 checks.
25148 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25149 (add_standard_paths): Likewise.
25150 * mips-tfile.c (saber_stop): Handle backslash.
25151 * prefix.c (update_path): Use filename_ncmp instead of
25152 strncmp.
25153 * profile.c (output_location): Use filename_cmp instead
25154 of strcmp.
25155 * read-md.c (handle_toplevel_file): Handle backslash.
25156 * tlink.c (frob_extension): Likewise.
25157 * tree-cfg.c (same_line_p): Use filename_cmp instead of
25158 strcmp.
25159 * tree-dump.c (dequeue_and_dump): Handle backslash.
25160 * tree.c (get_file_function_name): Likewise.
25161 * gengtype.c (read_input_list): Likewise.
25162 (get_file_realbasename): Likewise.
25163 (get_output_file_with_visibility): Use filename_cmp
25164 instead of strcmp.
25165
25166 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
25167
25168 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25169 case to VFPv1.
25170
25171 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25172
25173 * fold-const.c (expr_location_or): New function.
25174 (fold_truth_not_expr): Call it.
25175
25176 2011-03-25 Jeff Law <law@redhat.com>
25177
25178 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25179 va_end.
25180 * c-family/c-common.c (def_fn_type): Likewise.
25181 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
25182 * emit-rtl.c (gen_rtvec): Likewise.
25183 * lto/lto-lang.c (def_fn_type): Likewise.
25184
25185 2011-03-25 Richard Guenther <rguenther@suse.de>
25186
25187 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25188 also generate copies.
25189 (fini_copy_prop): Handle constant values properly.
25190
25191 2011-03-25 Jakub Jelinek <jakub@redhat.com>
25192
25193 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25194 mode size instead of bitsize with DWARF2_ADDR_SIZE.
25195 (hash_loc_operands, compare_loc_operands): Handle
25196 DW_OP_GNU_entry_value.
25197
25198 2011-03-25 Kai Tietz <ktietz@redhat.com>
25199
25200 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25201 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25202 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25203 comment and use macro TARGET_64BIT_MS_ABI instead.
25204 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25205 and change default behavior for 32-bit MS_ABI.
25206 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25207 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25208 32-bit, too.
25209 (ix86_cfun_abi): Likewise.
25210 (ix86_maybe_switch_abi): Adjust comment.
25211 (init_cumulative_args): Check for bit-ness in MS_ABI case.
25212 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25213 instead of checking for SYSV_ABI.
25214 (ix86_nsaved_sseregs): Likewise.
25215 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25216 to 16 bytes.
25217 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25218 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25219 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25220 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25221 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25222
25223 2011-03-25 Richard Guenther <rguenther@suse.de>
25224
25225 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25226 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25227 (verify_gimple): Remove.
25228 * tree-cfg.c (verify_gimple_call): Merge verification
25229 from verify_stmts.
25230 (verify_gimple_phi): Merge verification from verify_stmts.
25231 (verify_gimple_label): New function.
25232 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25233 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25234 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25235 (verify_stmts): Rename to verify_gimple_in_cfg.
25236 (verify_gimple_in_cfg): New function.
25237 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25238 * tree-ssa.c (verify_ssa): Likewise.
25239 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25240
25241 2011-03-25 Richard Guenther <rguenther@suse.de>
25242
25243 * passes.c (init_optimization_passes): Add FRE pass after
25244 early SRA.
25245
25246 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
25247 Andrew Stubbs <ams@codesourcery.com>
25248
25249 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25250 for Cortex-A8.
25251 (arm_movdi_vfp_cortexa8): New pattern.
25252 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25253 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25254 instructions when tuning for Cortex-A8. Set attribute "arch".
25255 * config/arm/arm.md: Move include arm-tune.md up a bit.
25256 (define_attr "arch"): Add "onlya8" and "nota8" values.
25257 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25258
25259 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25260
25261 PR bootstrap/48282
25262 Revert:
25263 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25264
25265 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25266 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25267 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25268 * passes.c (init_optimization_passes): Move
25269 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25270
25271 2011-03-25 Kai Tietz <ktietz@redhat.com>
25272
25273 * c-typeck.c (comptypes_internal): Replace target
25274 hook call of comp_type_attributes by version in tree.c file.
25275 * gimple.c (gimple_types_compatible_p_1): Likewise.
25276 * tree-ssa.c (useless_type_conversion_p): Likewise.
25277 * tree.c (build_type_attribute_qual_variant): Likewise.
25278 (attribute_value_equal): New static helper function.
25279 (comp_type_attributes): New function.
25280 (merge_attributes): Use attribute_value_equal for comparison.
25281 (attribute_list_contained): Likewise.
25282 * tree.h (comp_type_attributes): New prototype.
25283
25284 2011-03-25 Richard Guenther <rguenther@suse.de>
25285
25286 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25287 of complex types at -O0.
25288 (verify_gimple_assign_binary): Likewise.
25289 (verify_gimple_assign_ternary): Likewise.
25290
25291 2011-03-24 Mark Wielaard <mjw@redhat.com>
25292
25293 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25294 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25295
25296 2011-03-24 Mark Wielaard <mjw@redhat.com>
25297
25298 PR debug/48041
25299 * dwarf2out.c (output_abbrev_section): Only write table when
25300 abbrev_die_table_in_use > 1.
25301
25302 2011-02-24 Richard Henderson <rth@redhat.com>
25303
25304 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25305 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25306 (alpha_expand_unaligned_load_words): Use extql.
25307 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25308 (emit_insxl): Handle all modes for consistency.
25309
25310 2011-02-24 Richard Henderson <rth@redhat.com>
25311
25312 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25313 (alpha_expand_unaligned_load): Likewise.
25314 (alpha_expand_unaligned_store): Likewise.
25315 (alpha_expand_unaligned_load_words): Likewise.
25316 (alpha_expand_unaligned_store_words): Likewise.
25317 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25318 (alpha_split_lock_test_and_set_12): Likewise.
25319 (print_operand, alpha_fold_builtin_extxx): Likewise.
25320 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25321 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25322 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25323 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25324 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25325 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25326 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25327 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25328 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25329 (extwl, extll, extql): Similarly.
25330 (inswh, inslh, insqh): Similarly.
25331 (mskbl, mskwl, mskll, mskql): Similarly.
25332 (mskwh, msklh, mskqh): Similarly.
25333
25334 2011-02-24 Richard Henderson <rth@redhat.com>
25335
25336 * config/alpha/alpha.md (attribute isa): Add er, ner.
25337 (attribute enabled): Handle them.
25338 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25339
25340 2011-02-24 Richard Henderson <rth@redhat.com>
25341
25342 * config/alpha/alpha.md (attribute isa): Add vms.
25343 (attribute enabled): Handle it.
25344 (*movsf): Merge *movsf_{nofix,fix,nofp}.
25345 (*movdf): Merge *movdf_{nofix,fix,nofp}.
25346 (*movtf): Rename from *movtf_internal for consistency.
25347 (*movsi): Merge with *movsi_nt_vms.
25348 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25349 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25350 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25351 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25352
25353 2011-02-24 Richard Henderson <rth@redhat.com>
25354
25355 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25356 (extendqisi2, extendhisi2): Likewise.
25357 (extendqidi2): Simplify BWX/non-BWX expansions.
25358 (extendhidi2): Similarly.
25359
25360 2011-02-24 Richard Henderson <rth@redhat.com>
25361
25362 * config/alpha/alpha.md (attribute isa): New.
25363 (attribute enabled): New.
25364 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25365 (zero_extendqisi2, zero_extendqidi2): Similarly.
25366 (zero_extendhisi2, zero_extendhidi2): Similarly.
25367 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25368
25369 2011-02-24 Richard Henderson <rth@redhat.com>
25370
25371 * config/alpha/predicates.md (input_operand): Revert last change;
25372 update comment to mention 32-bit VMS rather than Windows.
25373
25374 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25375
25376 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25377 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25378 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25379 * passes.c (init_optimization_passes): Move
25380 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25381
25382 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25383
25384 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25385
25386 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
25387
25388 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25389 correctly.
25390
25391 2011-03-24 Jakub Jelinek <jakub@redhat.com>
25392
25393 PR debug/48204
25394 * simplify-rtx.c (simplify_const_unary_operation): Call
25395 real_convert when changing mode class with FLOAT_EXTEND.
25396
25397 2011-03-24 Nick Clifton <nickc@redhat.com>
25398
25399 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25400 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25401 * config/rx/rx.c (rx_option_override): Set align_jumps,
25402 align_loops and align_labels if not set by the user.
25403 (rx_align_for_label): New function.
25404 (rx_max_skip_for_label): New function.
25405 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25406 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25407 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25408 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25409 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25410
25411 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
25412
25413 PR rtl-optimization/48263
25414 * optabs.c (expand_binop_directly): Reinstate convert_modes code
25415 and original commutative_p handling. Use maybe_gen_insn.
25416
25417 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25418
25419 * reload.c (find_reloads_subreg_address): Add address_reloaded
25420 parameter and return true there if the full address has been
25421 reloaded.
25422 (find_reloads_toplev): Pass address_reloaded flag.
25423 (find_reloads_address_1): Don't use address_reloaded parameter.
25424
25425 2011-03-24 Jeff Law <law@redhat.com>
25426
25427 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25428 unused variable "ann".
25429 (remove_unused_locals): Likewise.
25430
25431 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25432 statement.
25433
25434 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25435 after it is freed.
25436
25437 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25438
25439 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25440 for invalid symbolic addresses.
25441 (s390_secondary_reload): Don't use s390_check_symref_alignment for
25442 larl operands.
25443
25444 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25445
25446 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
25447 the argument in calls to fold_truth_not_expr.
25448
25449 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25450
25451 * tree.c (record_node_allocation_statistics): New function.
25452 (make_node_stat, copy_node_stat, build_string): Call it.
25453 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25454 (build1_stat, build_omp_clause): Likewise.
25455
25456 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
25457
25458 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25459 last commit.
25460
25461 2011-03-24 Richard Guenther <rguenther@suse.de>
25462
25463 PR tree-optimization/48271
25464 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25465 blocks that still exist.
25466
25467 2011-03-24 Richard Guenther <rguenther@suse.de>
25468
25469 PR tree-optimization/48270
25470 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25471 not free datarefs before ddrs.
25472
25473 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25474
25475 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25476 from the address built for a reference with variable offset.
25477
25478 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
25479
25480 PR target/48237
25481 * config/i386/i386.md (*movdf_internal_rex64): Do not split
25482 alternatives that can be handled with movq or movabsq insn.
25483 (*movdf_internal): Disable for !TARGET_64BIT.
25484 (*movdf_internal_nointeger): Ditto.
25485 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25486
25487 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25488
25489 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25490 (FUNCTION_ARG_ADVANCE): Likewise.
25491 * tm.texi.in: Change references to them to hook references.
25492 * tm.texi: Regenerate.
25493 * targhooks.c (default_function_arg): Eliminate check for target macro.
25494 (default_function_incoming_arg): Likewise.
25495 (default_function_arg_advance): Likewise.
25496 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25497 (function_arg_advance): Likewise.
25498 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25499
25500 2011-03-24 Richard Guenther <rguenther@suse.de>
25501
25502 PR middle-end/48269
25503 * tree-object-size.c (addr_object_size): Do not double-account
25504 for MEM_REF offsets.
25505
25506 2011-03-24 Diego Novillo <dnovillo@google.com>
25507
25508 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25509 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25510 (lto_input_data_block): Move from lto-opts.c. Make extern.
25511 Update all users.
25512 (lto_input_string): Rename from input_string. Make extern.
25513 Update all users.
25514 * lto-streamer-out.c (lto_output_string_with_length): Rename from
25515 output_string_with_length.
25516 Output 0 to indicate a non-NULL string. Update all callers to
25517 not emit 0.
25518 (lto_output_string): Rename from output_string. Make extern.
25519 Update all users.
25520 (lto_output_decl_state_streams): Make extern.
25521 (lto_output_decl_state_refs): Make extern.
25522 * lto-streamer.h (lto_input_string): Declare.
25523 (lto_input_data_block): Declare.
25524 (lto_output_string): Declare.
25525 (lto_output_string_with_length): Declare.
25526 (lto_output_decl_state_streams): Declare.
25527 (lto_output_decl_state_refs): Declare.
25528
25529 2011-03-24 Richard Guenther <rguenther@suse.de>
25530
25531 PR tree-optimization/46562
25532 * tree.c (build_invariant_address): New function.
25533 * tree.h (build_invariant_address): Declare.
25534 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25535 a renamed function moved ...
25536 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25537 Take valueization callback parameter.
25538 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25539 * gimple-fold.h: New file.
25540 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25541 (ccp_fold, fold_const_aggregate_ref,
25542 fold_ctor_reference, fold_nonarray_ctor_reference,
25543 fold_array_ctor_reference, fold_string_cst_ctor_reference,
25544 get_base_constructor): Move ...
25545 * gimple-fold.c: ... here.
25546 (gimple_fold_stmt_to_constant_1): New function
25547 split out from ccp_fold. Take a valueization callback parameter.
25548 Valueize all operands.
25549 (gimple_fold_stmt_to_constant): New wrapper function.
25550 (fold_const_aggregate_ref_1): New function split out from
25551 fold_const_aggregate_ref. Take a valueization callback parameter.
25552 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25553 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25554 invariant POINTER_PLUS_EXPRs to invariant form.
25555 (vn_valueize): New function.
25556 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25557 * tree-vrp.c (vrp_valueize): New function.
25558 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25559 to fold statements to constants.
25560 * tree-ssa-pre.c (eliminate): Properly guard propagation of
25561 function declarations.
25562 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25563 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25564
25565 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
25566
25567 * config/h8300/predicates.md (jump_address_operand): Fix register
25568 mode check.
25569
25570 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
25571
25572 * doc/invoke.texi (max-stores-to-sink): Document.
25573 * params.h (MAX_STORES_TO_SINK): Define.
25574 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25575 if either vectorization or if-conversion is disabled.
25576 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25577 tree-vect-data-refs.c vect_equal_offsets.
25578 (dr_equal_offsets_p): New function.
25579 (find_data_references_in_bb): Remove static.
25580 * tree-data-ref.h (find_data_references_in_bb): Declare.
25581 (dr_equal_offsets_p): Likewise.
25582 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25583 (vect_drs_dependent_in_basic_block): Update calls to
25584 vect_equal_offsets.
25585 (vect_check_interleaving): Likewise.
25586 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25587 (cond_if_else_store_replacement): Rename to...
25588 (cond_if_else_store_replacement_1): ... this. Change arguments and
25589 documentation.
25590 (cond_if_else_store_replacement): New function.
25591 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25592 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25593
25594 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
25595
25596 PR target/46934
25597 * config/arm/arm.md (casesi): Use the gen_int_mode() function
25598 to subtract lower bound instead of GEN_INT().
25599
25600 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
25601
25602 PR other/48179
25603 PR other/48221
25604 PR other/48234
25605 * doc/extend.texi (Alignment): Move section to match order in TOC.
25606 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25607 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25608
25609 2011-03-23 Jeff Law <law@redhat.com>
25610
25611 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25612 before removing the edge.
25613
25614 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25615 it may have been freed by redirect_branch_edge or
25616 redirect_edge_succ_nodup.
25617
25618 2011-03-23 Richard Guenther <rguenther@suse.de>
25619
25620 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25621 (check_va_list_escapes): Likewise.
25622 (check_all_va_list_escapes): Likewise.
25623
25624 2011-03-23 Richard Guenther <rguenther@suse.de>
25625
25626 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25627 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25628 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25629 (alias.o): Likewise.
25630 (ipa-type-escape.o): Remove.
25631 (ipa-struct-reorg.o): Likewise.
25632 (GTFILES): Remove ipa-struct-reorg.c.
25633 * alias.c: Do not include ipa-type-escape.h.
25634 * tree-ssa-alias.c: Likewise.
25635 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
25636 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
25637 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
25638 and ipa-type-escape passes.
25639 * tree-pass.h (pass_ipa_type_escape): Remove.
25640 (pass_ipa_struct_reorg): Likewise.
25641 * ipa-struct-reorg.h: Remove.
25642 * ipa-struct-reorg.c: Likewise.
25643 * ipa-type-escape.h: Likewise.
25644 * ipa-type-escape.c: Likewise.
25645 * doc/invoke.texi (-fipa-struct-reorg): Remove.
25646 (--param struct-reorg-cold-struct-ratio): Likewise.
25647 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25648 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25649 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
25650
25651 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25652
25653 * config/s390/2084.md: Enable all insn reservations also for z9_ec
25654 cpu attribute value.
25655 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
25656 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
25657 * config/s390/s390.c (processor_flags_table): New constant array.
25658 (s390_handle_arch_option): Remove.
25659 (s390_handle_option): Remove s390_handle_arch_option invocations
25660 and OPT_mwarn_framesize_ handling.
25661 (s390_option_override): Remove s390_handle_arch_option invocation.
25662 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
25663 warnings.
25664 * config/s390/s390.md (cpu attribute): Add z9_ec value.
25665 * config/s390/s390.opt (s390_tune, s390_arch)
25666 (march=): Replace s390_arch_option enum and values with
25667 processor_type. Set variable name to s390_arch. Set
25668 initialization value.
25669 (mtune=): Replace s390_arch_option with processor_type. Set
25670 variable name to s390_tune. Set initialization value.
25671
25672 2011-03-23 Julian Brown <julian@codesourcery.com>
25673
25674 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
25675 accesses which are not naturally aligned.
25676
25677 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
25678
25679 PR target/47553
25680 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
25681
25682 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
25683
25684 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
25685 parameter from "int" to "enum insn_code".
25686 (expand_operand_type): New enum.
25687 (expand_operand): New structure.
25688 (create_expand_operand): New function.
25689 (create_fixed_operand, create_output_operand): Likewise
25690 (create_input_operand, create_convert_operand_to): Likewise.
25691 (create_convert_operand_from, create_address_operand): Likewise.
25692 (create_integer_operand): Likewise.
25693 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
25694 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25695 (expand_insn, expand_jump_insn): Likewise.
25696 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
25697 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
25698 (expand_movstr, expand_builtin___clear_cache): Likewise.
25699 (expand_builtin_lock_release): Likewise.
25700 * explow.c (allocate_dynamic_stack_space): Likewise.
25701 (probe_stack_range): Likewise. Allow check_stack to FAIL,
25702 and use the default handling in that case.
25703 * expmed.c (check_predicate_volatile_ok): Delete.
25704 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
25705 (emit_cstore): Likewise.
25706 * expr.c (emit_block_move_via_movmem): Likewise.
25707 (set_storage_via_setmem, expand_assignment): Likewise.
25708 (emit_storent_insn, try_casesi): Likewise.
25709 (emit_single_push_insn): Likewise. Allow the expansion to fail.
25710 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
25711 (expand_vec_shift_expr, expand_binop_directly): Likewise.
25712 (expand_twoval_unop, expand_twoval_binop): Likewise.
25713 (expand_unop_direct, emit_indirect_jump): Likewise.
25714 (emit_conditional_move, vector_compare_rtx): Likewise.
25715 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
25716 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
25717 (expand_sync_lock_test_and_set): Likewise.
25718 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
25719 (emit_unop_insn): Likewise.
25720 (expand_copysign_absneg): Change icode to an insn_code.
25721 (create_convert_operand_from_type): New function.
25722 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
25723 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25724 (expand_insn, expand_jump_insn): Likewise.
25725 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
25726 than const_int_operand for operand 2.
25727
25728 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25729
25730 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
25731 if possible.
25732
25733 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
25734
25735 * emit-rtl.c (emit_pattern_before_noloc): New function.
25736 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
25737 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
25738 (emit_pattern_after_noloc): New function.
25739 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
25740 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
25741
25742 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
25743
25744 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
25745 (__ffsDI2): Likewise.
25746
25747 2011-03-22 Richard Henderson <rth@redhat.com>
25748
25749 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
25750 of !TARGET_ABI_OPEN_VMS.
25751 (alpha_trampoline_init, alpha_start_function): Likewise.
25752 (alpha_expand_epilogue, alpha_file_start): Likewise.
25753 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
25754 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
25755 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
25756 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
25757 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
25758
25759 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25760
25761 * config/s390/s390-opts.h: New.
25762 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
25763 s390_arch_flags, s390_warn_framesize, s390_stack_size,
25764 s390_stack_guard): Remove.
25765 (s390_handle_arch_option): Return void. Take enum
25766 s390_arch_option value instead of string and searching array.
25767 (s390_handle_option): Don't assert that global structures are in
25768 use. Access variables via opts pointer. Use error_at. Don't use
25769 sscanf for -mstack-guard= or -mstack-size=. Update call to
25770 s390_handle_arch_option.
25771 (s390_option_override): Update call to s390_handle_arch_option.
25772 (s390_emit_prologue): Use %d format for s390_stack_size in
25773 diagnostic. Use %wd for HOST_WIDE_INT.
25774 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
25775 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
25776 * config/s390/s390.opt (config/s390/s390-opts.h): New
25777 HeaderInclude entry.
25778 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
25779 s390_arch_flags, s390_warn_framesize): New Variable entries.
25780 (s390_arch_option): New Enum and EnumValue entries.
25781 (march=): Use Enum instead of Var.
25782 (mstack-guard=, mstack-size=): Use UInteger and Var.
25783 (mtune=): Use Enum.
25784
25785 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25786
25787 * config/score/score.c (score_handle_option): Don't assert that
25788 global structures are in use. Access target_flags via opts
25789 pointer. Use value of -march= option to determine target_flags
25790 settings.
25791 * config/score/score.opt (march=): Use Enum.
25792 (score_arch): New Enum and EnumValue entries.
25793
25794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25795
25796 * config/mep/mep.c (option_mtiny_specified): Remove.
25797 (mep_option_override): Move register handling for -mivc2 from
25798 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
25799 instead of option_mtiny_specified.
25800 (mep_handle_option): Access target_flags via opts pointer. Don't
25801 assert that global structures are in use. Defer part of -mivc2
25802 handling and move it to mep_option_override.
25803 * config/mep/mep.opt (IVC2): New Mask entry.
25804 (mivc2): Use Var and Defer instead of Mask.
25805
25806 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25807
25808 * config/v850/v850-opts.h: New.
25809 * config/v850/v850.c (small_memory): Replace with
25810 small_memory_physical_max array. Make that array static const.
25811 (v850_handle_memory_option): Take integer value of argument. Take
25812 gcc_options pointer, option text and location. Return void.
25813 Update for changes to small memory structures.
25814 (v850_handle_option): Access target_flags via opts pointer. Don't
25815 assert that global structures are in use. Update calls to
25816 v850_handle_memory_option.
25817 (v850_encode_data_area): Update references to small memory settings.
25818 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
25819 (enum small_memory_type): Move to v850-opts.h.
25820 * config/v850/v850.opt (config/v850/v850-opts.h): New
25821 HeaderInclude entry.
25822 (small_memory_max): New Variable entry.
25823 (msda): Replace by pair of options msda= and msda-. Use UInteger.
25824 (mtda, mzda): Likewise.
25825
25826 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25827
25828 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
25829 pointer. Don't assert that global structures are in use.
25830
25831 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25832
25833 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
25834 via opts pointer. Don't assert that global structures are in use.
25835
25836 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25837
25838 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
25839 (munix=93): Use Var.
25840 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
25841 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
25842 * config/pa/pa-opts.h: New.
25843 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
25844 (pa_handle_option): Don't assert that global structures are in
25845 use. Access target_flags via opts pointer. Don't handle
25846 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
25847 OPT_munix_98 here.
25848 (pa_option_override): Handle deferred OPT_mfixed_range_.
25849
25850 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25851
25852 * config/mn10300/mn10300-opts.h: New.
25853 * config/mn10300/mn10300.c (mn10300_processor,
25854 mn10300_tune_string): Remove.
25855 (mn10300_handle_option): Don't assert that global structures are
25856 in use. Access mn10300_processor via opts pointer. Don't handle
25857 OPT_mtune_ here.
25858 * config/mn10300/mn10300.h (enum processor_type): Move to
25859 mn10300-opts.h.
25860 (mn10300_processor): Remove.
25861 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
25862 HeaderInclude entry.
25863 (mn10300_processor): New Variable entry.
25864 (mtune=): Use Var.
25865
25866 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25867
25868 * config/microblaze/microblaze.c: Don't include opts.h.
25869 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
25870 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
25871 (mno-clearbss): Use Var and Warn.
25872
25873 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25874
25875 * config/m32r/m32r-opts.h: New.
25876 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
25877 (m32r_handle_option): Don't assert that global structures are in
25878 use. Access target_flags and m32r_cache_flush_func via opts
25879 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
25880 OPT_mno_flush_trap here.
25881 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
25882 include of m32r-opts.h.
25883 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
25884 HeaderInclude entry.
25885 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
25886 (mmodel=): Use Enum and Var.
25887 (m32r_model): New Enum and EnumValue entries.
25888 (mno-flush-trap): Use Var.
25889 (msdata=): Use Enum and Var.
25890 (m32r_sdata): New Enum and EnumValue entries.
25891
25892 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25893
25894 * config/m32c/m32c.c: Don't include opts.h.
25895 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
25896 m32c_handle_option): Remove.
25897 (m32c_option_override): Check global_options_set.x_target_memregs
25898 instead of target_memregs_set.
25899 * config/m32c/m32c.h (target_memregs): Remove.
25900 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
25901 variable.
25902
25903 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25904
25905 * config/iq2000/iq2000-opts.h: New.
25906 * config/iq2000/iq2000.c: Don't include opts.h.
25907 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
25908 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
25909 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
25910 HeaderInclude entry.
25911 (iq2000_tune): New Variable entry.
25912 (march=): Add comment. Use Enum.
25913 (iq2000_arch): New Enum and EnumValue entries.
25914 (mcpu=): Use Enum and Var.
25915 (iq2000_tune): New Enum and EnumValue entries.
25916
25917 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25918
25919 * config/ia64/ia64-opts.h: New.
25920 * config/ia64/ia64.c (ia64_tune): Remove.
25921 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
25922 here. Use error_at.
25923 (ia64_option_override): Handle deferred OPT_mfixed_range_.
25924 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
25925 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
25926 HeaderInclude entry.
25927 (ia64_tune): New Variable entry.
25928 (mfixed-range=): Use Defer and Var.
25929 (mtune=): Use Enum and Var.
25930 (ia64_tune): New Enum and EnumValue entries.
25931
25932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25933
25934 * config/frv/frv-opts.h: New.
25935 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
25936 frv-opts.h.
25937 (frv_cpu_type): Remove.
25938 * config/frv/frv.c: Don't include opts.h.
25939 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
25940 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
25941 (frv_cpu_type): New Variable entry.
25942 (frv_cpu): New Enum and EnumValue entries.
25943
25944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25945
25946 * config/cris/cris.c (cris_handle_option): Access target_flags via
25947 opts pointer. Don't assert that global structures are in use.
25948 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
25949 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
25950
25951 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25952
25953 * config/bfin/bfin-opts.h: New.
25954 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
25955 bfin_si_revision, bfin_workarounds): Remove.
25956 (bfin_cpus): Make static const.
25957 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
25958 not bfin_lib_id_given.
25959 (bfin_handle_option): Don't set bfin_lib_id_given. Access
25960 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
25961 pointer. Use error_at. Don't assert that global structures are in use.
25962 * config/bfin/bfin.h: Include bfin-opts.h.
25963 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
25964 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
25965 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
25966 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
25967 entries.
25968
25969 2011-03-22 Joseph Myers <joseph@codesourcery.com>
25970
25971 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
25972 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
25973 or -msoft-float here.
25974 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
25975 -msoft-float and -mhard-float.
25976 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
25977 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25978 msoft-float.
25979 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
25980 -msoft-float.
25981 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
25982 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
25983 not mhard-float.
25984 (LIBGCC_SPEC): Don't handle -msoft-float.
25985 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
25986 -mhard-float.
25987 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
25988 msoft-float.
25989 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
25990 -mfloat-abi=*, not -msoft-float and -mhard-float.
25991 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
25992 -msoft-float.
25993 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
25994 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
25995 mhard-float and msoft-float.
25996 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
25997 mfloat-abi=soft in comments, not mhard-float and msoft-float.
25998 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
25999 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26000 mhard-float.
26001 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26002 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26003 msoft-float.
26004 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26005 not mhard-float.
26006 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26007 not msoft-float.
26008
26009 2011-03-22 Richard Henderson <rth@redhat.com>
26010
26011 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26012 TARGET_ABI_WINDOWS_NT.
26013 (alpha_output_function_end_prologue): Likewise.
26014 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26015 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26016 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26017 (trap, *movsi_nt_vms): Likewise.
26018 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26019 (*tablejump_osf_nt_internal): Remove.
26020 * config/alpha/predicates.md (input_operand): Only test Pmode.
26021
26022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26023
26024 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26025 via opts pointer. Use error_at. Don't assert that global
26026 structures are in use.
26027
26028 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26029
26030 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26031 (ix86_handle_option): Access ix86_isa_flags and
26032 ix86_isa_flags_explicit via opts pointer. Don't assert that
26033 global structures are in use.
26034 (ix86_function_specific_save, ix86_function_specific_restore):
26035 Update ix86_isa_flags_explicit field name.
26036 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26037 (ix86_isa_flags_explicit): Rename TargetSave entry to
26038 x_ix86_isa_flags_explicit.
26039
26040 2011-03-22 Richard Henderson <rth@redhat.com>
26041
26042 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26043 (alpha_option_override, direct_return): Likewise.
26044 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26045 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26046 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26047 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26048 (alpha_expand_epilogue, alpha_end_function): Likewise.
26049 (alpha_init_libfuncs): Likewise.
26050 (struct machine_function): Remove unicosmk members.
26051 (print_operand) ['t']: Remove.
26052 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26053 unicosmk_output_module_name, unicosmk_output_common,
26054 current_section_align, unicosmk_output_text_section_asm_op,
26055 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26056 unicosmk_section_type_flags, unicosmk_unique_section,
26057 unicosmk_asm_named_section, unicosmk_insert_attributes,
26058 unicosmk_output_align, unicosmk_defer_case_vector,
26059 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26060 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26061 unicosmk_output_ssib, unicosmk_add_call_info_word,
26062 unicosmk_extern_head, unicosmk_output_default_externs,
26063 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26064 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26065 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26066 * config/alpha/alpha-protos.h: Update.
26067 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26068 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26069 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26070 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26071 (*mulsi_se, mulvsi3): Likewise.
26072 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26073 (*divmodsi_internal, call, call_value, realign): Likewise.
26074 (moddi3, umoddi3): Likewise; remove duplicate expander.
26075 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26076 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26077 (*movdi_nofix): Remove r/U alternative.
26078 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26079 * config/alpha/constraints.md ("U"): Remove.
26080 * config/alpha/predicates.md (call_operand"): Don't test
26081 TARGET_ABI_UNICOSMK.
26082
26083 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26084
26085 * target.def (handle_option): Take gcc_options and
26086 cl_decoded_option pointers and location_t.
26087 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26088 * doc/tm.texi: Regenerate.
26089 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26090 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26091 * lto-opts.c (lto_reissue_options): Generate option structure for
26092 targetm.handle_option call.
26093 * opts.c (target_handle_option): Update call to
26094 targetm.handle_option. Remove assertions about values now passed
26095 down to hook.
26096 * targhooks.c (default_target_handle_option): New.
26097 * targhooks.h (default_target_handle_option): Declare.
26098 * config/alpha/alpha.c: Include opts.h.
26099 (alpha_handle_option): Update to new hook interface.
26100 * config/arm/arm.c: Include opts.h.
26101 (arm_handle_option): Update to new hook interface.
26102 * config/arm/t-arm (arm.o): Update dependencies.
26103 * config/bfin/bfin.c: Include opts.h.
26104 (bfin_handle_option): Update to new hook interface.
26105 * config/cris/cris.c: Include opts.h.
26106 (cris_handle_option): Update to new hook interface.
26107 * config/frv/frv.c: Include opts.h.
26108 (frv_handle_option): Update to new hook interface.
26109 * config/i386/i386.c: Include opts.h.
26110 (ix86_handle_option): Update to new hook interface.
26111 (ix86_valid_target_attribute_inner_p): Generate option structure
26112 for call to ix86_handle_option.
26113 * config/i386/t-i386 (i386.o): Update dependencies.
26114 * config/ia64/ia64.c: Include opts.h.
26115 (ia64_handle_option): Update to new hook interface.
26116 * config/ia64/t-ia64 (ia64.o): Update dependencies.
26117 * config/iq2000/iq2000.c: Include opts.h.
26118 (iq2000_handle_option): Update to new hook interface.
26119 * config/m32c/m32c.c: Include opts.h.
26120 (m32c_handle_option): Update to new hook interface.
26121 * config/m32r/m32r.c: Include opts.h.
26122 (m32r_handle_option): Update to new hook interface.
26123 * config/m68k/m68k.c: Include opts.h.
26124 (m68k_handle_option): Update to new hook interface.
26125 * config/mep/mep.c: Include opts.h.
26126 (mep_handle_option): Update to new hook interface.
26127 * config/microblaze/microblaze.c: Include opts.h.
26128 (microblaze_handle_option): Update to new hook interface.
26129 * config/mips/mips.c: Include opts.h.
26130 (mips_handle_option): Update to new hook interface.
26131 * config/mn10300/mn10300.c: Include opts.h.
26132 (mn10300_handle_option): Update to new hook interface.
26133 * config/pa/pa.c: Include opts.h.
26134 (pa_handle_option): Update to new hook interface.
26135 * config/pdp11/pdp11.c: Include opts.h.
26136 (pdp11_handle_option): Update to new hook interface.
26137 * config/rs6000/rs6000.c: Include opts.h.
26138 (rs6000_handle_option): Update to new hook interface.
26139 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26140 * config/rx/rx.c: Include opts.h.
26141 (rx_handle_option): Update to new hook interface.
26142 * config/s390/s390.c: Include opts.h.
26143 (s390_handle_option): Update to new hook interface.
26144 * config/score/score.c: Include opts.h.
26145 (score_handle_option): Update to new hook interface.
26146 * config/sh/sh.c: Include opts.h.
26147 (sh_handle_option): Update to new hook interface.
26148 * config/sparc/sparc.c: Include opts.h.
26149 (sparc_handle_option): Update to new hook interface.
26150 * config/v850/v850.c: Include opts.h.
26151 (v850_handle_option): Update to new hook interface.
26152
26153 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26154
26155 * gcc.c (driver_unknown_option_callback): Only permit and save
26156 unknown -Wno- options.
26157 (driver_wrong_lang_callback): Save options directly instead of via
26158 driver_unknown_option_callback.
26159
26160 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26161
26162 * combine.c (simplify_set): Try harder to find the best CC mode when
26163 simplifying a nested COMPARE on the RHS.
26164
26165 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26166
26167 * config/alpha/gnu.h: Remove.
26168 * config/arc: Remove directory.
26169 * config/arm/netbsd.h: Remove.
26170 * config/arm/t-pe: Remove.
26171 * config/crx: Remove directory.
26172 * config/i386/netbsd.h: Remove.
26173 * config/m68hc11: Remove directory.
26174 * config/m68k/uclinux-oldabi.h: Remove.
26175 * config/mcore/mcore-pe.h: Remove.
26176 * config/mcore/t-mcore-pe: Remove.
26177 * config/netbsd-aout.h: Remove.
26178 * config/rs6000/gnu.h: Remove.
26179 * config/sh/sh-symbian.h: Remove.
26180 * config/sh/symbian-base.c: Remove.
26181 * config/sh/symbian-c.c: Remove.
26182 * config/sh/symbian-cxx.c: Remove.
26183 * config/sh/symbian-post.h: Remove.
26184 * config/sh/symbian-pre.h: Remove.
26185 * config/sh/t-symbian: Remove.
26186 * config/svr3.h: Remove.
26187 * config/vax/netbsd.h: Remove.
26188 * config.build: Don't handle i[34567]86-*-pe.
26189 * config.gcc: Remove handling of deprecations for most deprecated
26190 targets.
26191 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26192 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26193 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26194 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26195 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26196 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26197 Remove cases.
26198 * config.host: Don't handle i[34567]86-*-pe.
26199 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26200 (ASM_SPEC32): Don't handle -mcall-gnu.
26201 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26202 -mcall-gnu.
26203 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26204 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26205 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26206 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26207 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26208 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26209 conditional on SYMBIAN.
26210 * configure.ac: Don't handle powerpc*-*-gnu*.
26211 * configure: Regenerate.
26212 * doc/extend.texi (interrupt attribute): Don't mention CRX.
26213 * doc/install-old.texi (m6811, m6812): Don't mention.
26214 * doc/install.texi (arc-*-elf*): Don't document multilib option.
26215 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26216 (m68k-uclinuxoldabi): Don't mention.
26217 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26218 Remove.
26219 (-mcall-gnu): Remove.
26220 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26221 families): Remove constraint documentation.
26222
26223 2011-03-22 Marius Strobl <marius@FreeBSD.org>
26224
26225 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26226 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26227 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26228
26229 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26230
26231 PR target/48226
26232 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26233 vector when peeking at the next token for vector, don't expand the
26234 keywords.
26235
26236 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
26237
26238 * config/avr/avr-protos.h (expand_epilogue): Change prototype
26239 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26240 * config/avr/avr.c (init_cumulative_args)
26241 (avr_function_arg_advance): Use it.
26242 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26243 sibcall epilogues.
26244 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26245 (avr_function_ok_for_sibcall): ...this new function.
26246 (avr_lookup_function_attribute1): New static Function.
26247 (avr_naked_function_p, interrupt_function_p)
26248 (signal_function_p, avr_OS_task_function_p)
26249 (avr_OS_main_function_p): Use it.
26250 * config/avr/avr.md ("sibcall", "sibcall_value")
26251 ("sibcall_epilogue"): New expander.
26252 ("*call_insn", "*call_value_insn"): New insn.
26253 ("call_insn", "call_value_insn"): Remove
26254 ("call", "call_value", "epilogue"): Change expander to handle
26255 sibling calls.
26256
26257 2011-03-21 Nick Clifton <nickc@redhat.com>
26258
26259 * doc/invoke.texi (Overall Options): Move closing brace to end of
26260 options list.
26261 (Optimization Options): Add missing @gol.
26262 (Directory Options): Likewise.
26263 (i386 and x86-64 Options): Likewise.
26264 (RS6000 and PowerPC Options): Likewise.
26265 (i386 and x86-64 Windows Options): Likewise.
26266 (V850 Options): Add text missing from descriptions.
26267
26268 2011-03-22 Richard Henderson <rth@redhat.com>
26269
26270 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26271 (avr_incoming_return_addr_rtx): New.
26272 (emit_push_byte): New.
26273 (expand_prologue): Use it. Remove incorrect dwarf annotation for
26274 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
26275 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
26276 (emit_pop_byte): New.
26277 (expand_epilogue): Use it. Pop frame pointer by bytes.
26278 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26279 (INCOMING_RETURN_ADDR_RTX): New.
26280 (INCOMING_FRAME_SP_OFFSET): New.
26281 (ARG_POINTER_CFA_OFFSET): New.
26282 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26283 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26284 (pophi): Remove.
26285
26286 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26287
26288 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26289
26290 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26291 (FUNCTION_ARG_ADVANCE): Likewise.
26292 * tm.texi.in: Change references to them to hook references.
26293 * tm.texi: Regenerate.
26294 * targhooks.c (default_function_arg): Eliminate check for target
26295 macro.
26296 (default_function_incoming_arg): Likewise.
26297 (default_function_arg_advance): Likewise.
26298 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26299 (function_arg_advance): Likewise.
26300 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26301
26302 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26303
26304 * tree.c (build_call_1): New function.
26305 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26306
26307 2011-03-22 Richard Guenther <rguenther@suse.de>
26308
26309 PR tree-optimization/48228
26310 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26311 for single-arg PHIs.
26312
26313 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
26314
26315 PR rtl-optimization/48143
26316 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26317 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26318 sse2_cvtps2pd): Likewise.
26319
26320 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26321
26322 * recog.c (canonicalize_change_group): Use validate_unshare_change.
26323
26324 2011-03-22 Richard Guenther <rguenther@suse.de>
26325
26326 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26327 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26328 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26329 and REALIGN_LOAD_EXPR.
26330 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26331 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26332 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26333 DOT_PROD_EXPR case ...
26334 (expand_expr_real_2): ... here.
26335 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26336 and REALIGN_LOAD_EXPR.
26337 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26338 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26339 (vect_create_epilog_for_reduction): Likewise.
26340 (vectorizable_reduction): Likewise.
26341 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26342 * tree-vect-stmts.c (vectorizable_load): Likewise.
26343
26344 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26345
26346 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26347
26348 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26349
26350 * config/s390/s390.c (s390_delegitimize_address): Fix offset
26351 handling for PLTOFF/GOTOFF.
26352
26353 2011-03-22 Nick Clifton <nickc@redhat.com>
26354
26355 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26356 trailing backslash from the end of the macro definition.
26357
26358 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26359
26360 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26361 and PLT unspecs.
26362
26363 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
26364
26365 * expr.h (prepare_operand): Move to...
26366 * optabs.h (prepare_operand): ...here and change the insn code
26367 parameter from "int" to "enum insn_code".
26368 (insn_operand_matches): Declare.
26369 * expr.c (init_expr_target): Use insn_operand_matches.
26370 (compress_float_constant): Likewise.
26371 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26372 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26373 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26374 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26375 Likewise.
26376 (gen_cond_trap): Likewise.
26377 (prepare_operand): Likewise. Change icode to an insn_code.
26378 (insn_operand_matches): New function.
26379 * reload.c (find_reloads_address_1): Use insn_operand_matches.
26380 * reload1.c (gen_reload): Likewise.
26381 * targhooks.c (default_secondary_reload): Likewise.
26382
26383 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26384
26385 * config/alpha/alpha.md (unspec): New define_c_enum.
26386 (unspecv): Ditto.
26387
26388 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26389
26390 PR debug/48214
26391 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26392 between a call and its CALL_ARG_LOCATION note.
26393
26394 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
26395
26396 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26397
26398 2011-03-21 Jakub Jelinek <jakub@redhat.com>
26399
26400 PR c/42544
26401 PR c/48197
26402 * c-common.c (shorten_compare): If primopN is first sign-extended
26403 to opN and then zero-extended to result type, set primopN to opN.
26404
26405 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
26406
26407 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26408 for barrier handlers.
26409
26410 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26411
26412 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26413 UNSPEC constants to be in the unspec enumeration, and redefine
26414 all UNSPECV constants to be in the unspecv enumeration, so that
26415 dumps print which unspec/unspec_volatile this is.
26416 * config/rs6000/vector.md (UNSPEC_*): Ditto.
26417 * config/rs6000/paired.md (UNSPEC_*): Ditto.
26418 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26419 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26420 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26421
26422 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26423 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26424 UNSPECV_LWSYNC, since these are used as unspec_volatile.
26425 * config/rs6000/sync.md (isync, lwsync): Ditto.
26426
26427 2011-03-21 Richard Guenther <rguenther@suse.de>
26428
26429 * params.def (lto-min-partition): Fix typo.
26430
26431 2011-03-21 Richard Guenther <rguenther@suse.de>
26432
26433 PR c/47939
26434 * c-decl.c (grokdeclarator): Drop to the main variant only
26435 for array types. Drop flag_gen_aux_info check.
26436
26437 2011-03-21 Richard Guenther <rguenther@suse.de>
26438
26439 PR translation/47911
26440 * params.def (lto-partitions): Fix typo.
26441 (lto-min-partition): Fix wording.
26442
26443 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
26444
26445 * config/rs6000/t-freebsd: Remove duplication from file.
26446
26447 2011-03-21 Richard Guenther <rguenther@suse.de>
26448
26449 PR middle-end/47661
26450 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26451
26452 2011-03-21 Richard Guenther <rguenther@suse.de>
26453
26454 PR lto/48210
26455 * params.def (lto-partitions): Require at least 1 partition.
26456
26457 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26458
26459 * gthr-solaris.h: Remove.
26460 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26461 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26462 (LIB_SPEC): Likewise.
26463 * config/sol2.opt (threads): Remove.
26464 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26465 (sparc*-*-solaris2*): Likewise.
26466 * configure.ac (enable_threads): Enable solaris support.
26467 * configure: Regenerate.
26468 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26469 * doc/install.texi (Configuration, --enable-threads=lib): Remove
26470 solaris.
26471
26472 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26473
26474 * config.gcc: Obsolete *-*-solaris2.8*.
26475 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26476
26477 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26478
26479 PR bootstrap/48135
26480 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26481 reference. Solaris 8 perl works.
26482
26483 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26484
26485 PR bootstrap/48135
26486 * doc/install.texi (Prerequisites): Move jar etc. up.
26487 Explain support library version requirements.
26488
26489 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26490
26491 PR bootstrap/48135
26492 * doc/install.texi (Prerequisites): Move Perl to build
26493 requirements. Always necessary on Solaris 2 with Sun ld.
26494
26495 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26496
26497 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26498 binutils 2.21.
26499 (Specific, i?86-*-solaris2.[89]): Likewise.
26500 (Specific, i?86-*-solaris2.10): Likewise.
26501 (Specific, mips-sgi-irix6): Likewise.
26502 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26503 Update for binutils 2.21.
26504
26505 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26506
26507 * configure.ac (gcc_cv_lto_plugin): Fix typo.
26508 Allow -fuse-linker-plugin for non-default plugin linker.
26509 * configure: Regenerate.
26510
26511 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
26512
26513 PR bootstrap/48167
26514 * gengtype.c (files_rules): Added rule for cp/parser.h.
26515
26516 2011-03-21 Jakub Jelinek <jakub@redhat.com>
26517
26518 PR target/48213
26519 * config/s390/s390.c (s390_delegitimize_address): Don't call
26520 lowpart_subreg if orig_x has BLKmode.
26521
26522 2011-03-21 Kai Tietz <ktietz@redhat.com>
26523
26524 PR target/12171
26525 * doc/plugins.texi: Adjust documentation for plugin register_callback.
26526 * tree.h (attribute_spec): Add new member affects_type_identity.
26527 * attribs.c (empty_attribute_table): Adjust attribute_spec
26528 initializers.
26529 * config/alpha/alpha.c: Likewise.
26530 * config/arc/arc.c: Likewise.
26531 * config/arm/arm.c: Likewise.
26532 * config/avr/avr.c: Likewise.
26533 * config/bfin/bfin.c: Likewise.
26534 * config/crx/crx.c: Likewise.
26535 * config/darwin.h: Likewise.
26536 * config/h8300/h8300.c: Likewise.
26537 * config/i386/cygming.h: Likewise.
26538 * config/i386/i386.c: Likewise.
26539 * config/ia64/ia64.c: Likewise.
26540 * config/m32c/m32c.c: Likewise.
26541 * config/m32r/m32r.c: Likewise.
26542 * config/m68hc11/m68hc11.c: Likewise.
26543 * config/m68k/m68k.c: Likewise.
26544 * config/mcore/mcore.c: Likewise.
26545 * config/mep/mep.c: Likewise.
26546 * config/microblaze/microblaze.c: Likewise.
26547 * config/mips/mips.c: Likewise.
26548 * config/rs6000/rs6000.c: Likewise.
26549 * config/rx/rx.c: Likewise.
26550 * config/sh/sh.c: Likewise.
26551 * config/sol2.h: Likewise.
26552 * config/sparc/sparc.c: Likewise.
26553 * config/spu/spu.c: Likewise.
26554 * config/stormy16/stormy16.c: Likewise.
26555 * config/v850/v850.c: Likewise.
26556
26557 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
26558
26559 * simplify-rtx.c (simplify_binary_operation_1): Handle
26560 (xor (and A B) C) case when B and C are both constants.
26561
26562 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
26563
26564 * tree-dfa.c (add_referenced_var): Fix typo in comment.
26565
26566 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
26567
26568 PR bootstrap/48168
26569 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26570
26571 2011-03-20 Jakub Jelinek <jakub@redhat.com>
26572
26573 PR rtl-optimization/48156
26574 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26575 assume df and df_lr are not NULL.
26576
26577 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26578
26579 PR debug/48023
26580 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26581 between a call and its CALL_ARG_LOCATION note.
26582
26583 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
26584
26585 PR debug/48178
26586 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26587 between a call and its corresponding CALL_ARG_LOCATION note.
26588
26589 2011-03-19 Anatoly Sokolov <aesok@post.ru>
26590
26591 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26592 instead of loop. Use HARD_REGISTER_NUM_P predicate.
26593 * haifa-sched.c (setup_ref_regs): Ditto.
26594 * caller-save.c (add_used_regs_1): Ditto.
26595 * dse.c (look_for_hardregs): Ditto.
26596 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26597 * sched-rgn.c (check_live_1): Ditto.
26598
26599 2011-03-18 Joseph Myers <joseph@codesourcery.com>
26600
26601 * c-decl.c (diagnose_mismatched_decls): Give an error for
26602 redefining a typedef with variably modified type.
26603
26604 2011-03-18 Joseph Myers <joseph@codesourcery.com>
26605
26606 * c-decl.c (grokfield): Don't allow typedefs for structures or
26607 unions with no tag by default.
26608 * doc/extend.texi (Unnamed Fields): Update.
26609
26610 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
26611
26612 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26613 Rewrite using indirect functions.
26614 (lwp_slwpcb): Ditto.
26615 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26616 (avx_vinsertf128<mode>): Ditto.
26617
26618 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26619
26620 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26621 unspecs.
26622
26623 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26624
26625 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26626 splitting between a call and its corresponding CALL_ARG_LOCATION note.
26627
26628 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
26629
26630 PR rtl-optimization/48170
26631 * gcse.c (hoist_code): Remove bogus asserts.
26632
26633 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
26634
26635 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
26636 computation for prologue/epilogue.
26637
26638 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26639
26640 * Makefile.in (check-consistency): Remove.
26641
26642 2011-03-18 Jakub Jelinek <jakub@redhat.com>
26643
26644 PR debug/48176
26645 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
26646 arange_table_in_use is 0, but either text_section_used or
26647 cold_text_section_used is true. Don't call it if
26648 !info_section_emitted.
26649
26650 2011-03-18 Anatoly Sokolov <aesok@post.ru>
26651
26652 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
26653 FUNCTION_VALUE_REGNO_P): Remove.
26654 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
26655 Remove.
26656 * config/avr/avr.c (avr_ret_register): Make static inline.
26657 (avr_function_value_regno_p): New function.
26658 (avr_libcall_value): Make static. Add 'func' argument.
26659 (avr_function_value): Make static. Rename 'func' argument to
26660 'fn_decl_or_type', forward it to avr_libcall_value. Call
26661 avr_ret_register function instead of RET_REGISTER macro.
26662 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26663
26664 2011-03-18 Jason Merrill <jason@redhat.com>
26665
26666 PR c++/23372
26667 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
26668
26669 2011-03-18 Richard Guenther <rguenther@suse.de>
26670
26671 * doc/install.texi (--enable-gold): Remove.
26672 (--with-plugin-ld): Document.
26673 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
26674
26675 2011-03-18 Andrew Pinski <pinskia@gmail.com>
26676
26677 PR middle-end/47790
26678 * expr.c (optimize_bitfield_assignment_op): Revamp to work
26679 again after expansion changes.
26680
26681 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
26682
26683 * combine.c (try_combine): Do simplification only call of
26684 subst() on i2 even when i1 is present. Update comments.
26685
26686 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
26687
26688 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
26689 and UNSPEC_PCREL_SYMOFF.
26690
26691 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26692
26693 * config/s390/s390.md: Use define_c_enum for the unspec constant
26694 definitions.
26695
26696 2011-03-18 Richard Henderson <rth@redhat.com>
26697 Jakub Jelinek <jakub@redhat.com>
26698
26699 PR bootstrap/48161
26700 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
26701 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
26702
26703 2011-03-17 Anatoly Sokolov <aesok@post.ru>
26704
26705 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26706 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
26707 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
26708 Change return type to bool.
26709 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26710
26711 2011-03-17 Jakub Jelinek <jakub@redhat.com>
26712
26713 PR debug/48163
26714 * var-tracking.c (prepare_call_arguments): If CALL target
26715 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
26716 pc instead of looking it up using cselib_lookup and use
26717 Pmode for it if x has VOIDmode.
26718 * dwarf2out.c (gen_subprogram_die): If also both first and
26719 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
26720
26721 PR debug/48163
26722 * function.c (assign_parms): For data.passed_pointer parms
26723 use MEM of data.entry_parm instead of data.entry_parm itself
26724 as DECL_INCOMING_RTL.
26725 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
26726 also when passed and declared mode is the same, DECL_RTL
26727 is a MEM with pseudo as address and DECL_INCOMING_RTL is
26728 a MEM too.
26729
26730 2011-03-16 Jeff Law <law@redhat.com>
26731
26732 PR rtl-optimization/37273
26733 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26734 handle them like argument loads from stack slots. Do not double
26735 count memory for memory constants and argument loads from stack slots.
26736
26737 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
26738
26739 PR debug/48160
26740 * var-tracking.c (prepare_call_arguments): Check SUBREG.
26741
26742 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
26743
26744 PR target/48171
26745 * config/i386/i386.opt: Add Save to -mavx and -mfma.
26746
26747 2011-03-17 Jakub Jelinek <jakub@redhat.com>
26748
26749 PR bootstrap/48153
26750 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
26751 if dwarf_strict.
26752 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
26753 Clear call_arg_locations and call_arg_loc_last always.
26754
26755 PR middle-end/48152
26756 * var-tracking.c (prepare_call_arguments): If argument needs to be
26757 passed by reference, adjust argtype and mode.
26758
26759 2011-03-17 Richard Guenther <rguenther@suse.de>
26760
26761 PR middle-end/48134
26762 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
26763 a value make sure to fold the statement.
26764
26765 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
26766
26767 PR target/43872
26768 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
26769 return condition with !cfun->calls_alloca.
26770
26771 2011-03-17 Richard Guenther <rguenther@suse.de>
26772
26773 PR bootstrap/48148
26774 * lto-cgraph.c (input_overwrite_node): Clear the abstract
26775 origin for decls in other ltrans units.
26776 (input_varpool_node): Likewise.
26777
26778 2011-03-17 Richard Guenther <rguenther@suse.de>
26779
26780 PR middle-end/48165
26781 * tree-object-size.c (compute_object_offset): Properly return
26782 the offset operand of MEM_REFs as sizetype.
26783
26784 2011-03-17 Jakub Jelinek <jakub@redhat.com>
26785
26786 PR rtl-optimization/48141
26787 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
26788 * dse.c: Include params.h.
26789 (active_local_stores_len): New variable.
26790 (add_wild_read, dse_step1): Clear it when setting active_local_stores
26791 to NULL.
26792 (record_store, check_mem_read_rtx): Decrease it when removing
26793 from the chain.
26794 (scan_insn): Likewise. Increase it when adding to chain, if it
26795 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
26796 set active_local_stores to NULL before the addition.
26797 * Makefile.in (dse.o): Depend on $(PARAMS_H).
26798
26799 PR rtl-optimization/48141
26800 * dse.c (record_store): If no positions are needed in an insn
26801 that cannot be deleted, at least unchain it from active_local_stores.
26802
26803 2011-03-16 Dodji Seketeli <dodji@redhat.com>
26804
26805 PR debug/47510
26806 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
26807 (lookup_type_die_strip_naming_typedef): ... here.
26808 (get_context_die): Use it.
26809 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
26810 the anonymous struct named by the naming typedef.
26811
26812 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 PR target/48154
26815 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
26816 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
26817
26818 2011-03-16 Jeff Law <law@redhat.com>
26819
26820 * tree-vrp.c (identify_jump_threads): Slightly simplify type
26821 check for operands of conditional. Allow type to be a pointer.
26822
26823 2011-03-16 Richard Guenther <rguenther@suse.de>
26824
26825 PR tree-optimization/48149
26826 * fold-const.c (fold_binary_loc): Fold
26827 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
26828
26829 2011-03-16 Richard Guenther <rguenther@suse.de>
26830
26831 PR tree-optimization/26134
26832 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
26833 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
26834 (non_rewritable_mem_ref_base): Handle complex type component
26835 accesses, constrain offsets for vector and complex extracts
26836 more properly.
26837
26838 2011-03-16 Richard Guenther <rguenther@suse.de>
26839
26840 PR tree-optimization/48146
26841 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
26842 operands avoiding the need for renaming.
26843
26844 2011-03-16 Richard Guenther <rguenther@suse.de>
26845
26846 * gimple-fold.c (maybe_fold_reference): Open-code relevant
26847 constant folding. Move MEM_REF canonicalization first.
26848 Rely on fold_const_aggregate_ref for initializer folding.
26849 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
26850
26851 2011-03-16 Jakub Jelinek <jakub@redhat.com>
26852
26853 PR middle-end/48136
26854 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26855 arg0/arg1 or their arguments are always fold converted to matching
26856 types.
26857
26858 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
26859 to nargs.
26860
26861 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26862
26863 PR lto/46944
26864 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
26865 Handle in-tree gold.
26866 (ld_vers): Extract binutils version for gold.
26867 (gcc_cv_ld_hidden): Handle gold here.
26868 (gcc_cv_lto_plugin): Determine level of linker plugin support.
26869 * configure: Regenerate.
26870 * config.in: Regenerate.
26871 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
26872 -fuse-linker-plugin otherwise.
26873 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
26874 (LINK_COMMAND_SPEC): Use it.
26875 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
26876
26877 2011-03-16 Jakub Jelinek <jakub@redhat.com>
26878
26879 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
26880 * calls.c: Remove debug.h include.
26881 (emit_call_1): Don't call virtual_call_token debug hook.
26882 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
26883 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
26884 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
26885 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
26886 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
26887 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
26888 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
26889 dwarf2out_virtual_call): Remove.
26890 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
26891 copy_call_info and virtual_call hooks.
26892 (dwarf2out_init): Don't initialize vcall_insn_table,
26893 debug_dcall_section and debug_vcall_section.
26894 (prune_unused_types): Don't mark nodes from dcall_table.
26895 (dwarf2out_finish): Don't output dcall or vcall tables.
26896 * final.c (final_scan_insn): Don't call direct_call or
26897 virtual_call debug hooks.
26898 * debug.h (struct gcc_debug_hooks): Remove direct_call,
26899 virtual_call_token, copy_call_info and virtual_call hooks.
26900 (debug_nothing_uid): Remove prototype.
26901 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
26902 copy_call_info and virtual_call hooks.
26903 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26904 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
26905 * debug.c (do_nothing_debug_hooks): Likewise.
26906 (debug_nothing_uid): Remove.
26907 * doc/invoke.texi (-fenable-icf-debug): Remove.
26908 * common.opt (-fenable-icf-debug): Likewise.
26909
26910 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
26911 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
26912 call's MEM. Handle functions returning aggregate through a hidden
26913 first pointer. For virtual calls add clobbered pc to call arguments
26914 chain.
26915 * dwarf2out.c (gen_subprogram_die): Emit
26916 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
26917 can't be emitted.
26918
26919 PR debug/45882
26920 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
26921 * rtl.h (ENTRY_VALUE_EXP): Define.
26922 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
26923 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
26924 * print-rtl.c (print_rtx): Likewise.
26925 * gengtype.c (adjust_field_rtx_def): Likewise.
26926 * var-tracking.c (vt_add_function_parameter): Adjust
26927 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
26928 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
26929 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
26930 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
26931 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
26932
26933 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
26934 Call var_location debug hook even on CALL_INSNs.
26935 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
26936 * rtl.def (ENTRY_VALUE): New.
26937 * dwarf2out.c: Include cfglayout.h.
26938 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26939 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
26940 (struct call_arg_loc_node): New type.
26941 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
26942 tail_call_site_count): New variables.
26943 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
26944 DW_TAG_GNU_call_site_parameter.
26945 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
26946 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
26947 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
26948 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
26949 and DW_AT_GNU_all_source_call_sites.
26950 (mem_loc_descriptor): Handle ENTRY_VALUE.
26951 (add_src_coords_attributes): Don't add enything if
26952 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
26953 (dwarf2out_abstract_function): Save and clear call_arg_location,
26954 call_site_count and tail_call_site_count around dwarf2out_decl call.
26955 (gen_call_site_die): New function.
26956 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
26957 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
26958 (dwarf2out_function_decl): Clear call_arg_locations,
26959 call_arg_loc_last, set call_site_count and tail_call_site_count
26960 to -1 and free block_map.
26961 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
26962 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
26963 followed by any real instructions.
26964 (dwarf2out_begin_function): Set call_site_count and
26965 tail_call_site_count to 0.
26966 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
26967 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
26968 attempt to force a DIE for it and worst case remove the attribute.
26969 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
26970 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
26971 the decl itself.
26972 * var-tracking.c: Include tm_p.h.
26973 (vt_stack_adjustments): For calls call note_register_arguments.
26974 (argument_reg_set): New variable.
26975 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
26976 ensure the VALUE is resolved.
26977 (call_arguments): New variable.
26978 (prepare_call_arguments): New function.
26979 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
26980 (struct expand_loc_callback_data): Add ignore_cur_loc field.
26981 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
26982 always use the best expression.
26983 (vt_expand_loc): Add ignore_cur_loc argument.
26984 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
26985 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
26986 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
26987 note for all calls.
26988 (vt_add_function_parameter): Use cselib_lookup_from_insn.
26989 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
26990 argument. Don't call cselib_preserve_only_values and
26991 cselib_reset_table.
26992 (note_register_arguments): New function.
26993 (vt_initialize): Compute argument_reg_set. Call
26994 vt_add_function_parameters before processing basic blocks instead of
26995 afterwards. For calls call prepare_call_arguments before calling
26996 cselib_process_insn.
26997 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
26998 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
26999 (var-tracking.o): Depend on $(TM_P_H).
27000 * cfglayout.h (insn_scope): New prototype.
27001 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27002 * cfglayout.c (insn_scope): No longer static.
27003 * insn-notes.def (CALL_ARG_LOCATION): New.
27004 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27005 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27006 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27007 nothing for DECL_EXTERNAL BLOCK_VARS.
27008
27009 2011-03-16 Alan Modra <amodra@gmail.com>
27010
27011 PR target/45844
27012 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27013 create invalid offset address for vsx splat insn.
27014 * config/rs6000/predicates.md (splat_input_operand): New.
27015 * config/rs6000/vsx.md (vsx_splat_*): Use it.
27016
27017 2011-03-15 Xinliang David Li <davidxl@google.com>
27018
27019 PR c/47837
27020 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27021 (normalize_preds): New function.
27022 (is_use_properly_guarded): Normalize def predicates.
27023
27024 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27025
27026 PR target/46788
27027 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27028 in the output template.
27029
27030 2011-03-15 Richard Guenther <rguenther@suse.de>
27031
27032 PR middle-end/47650
27033 * tree-pretty-print.c (dump_function_declaration): Properly
27034 dump unprototyped and varargs function types.
27035
27036 2011-03-15 Richard Guenther <rguenther@suse.de>
27037
27038 PR tree-optimization/13954
27039 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27040 and friends.
27041
27042 2011-03-15 Richard Guenther <rguenther@suse.de>
27043
27044 PR tree-optimization/48037
27045 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27046 selects into BIT_FIELD_REFs.
27047 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27048 vector select.
27049
27050 2011-03-15 Jakub Jelinek <jakub@redhat.com>
27051
27052 PR tree-optimization/48129
27053 * builtins.c (fold_builtin_snprintf): Convert to type of
27054 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27055 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27056
27057 2011-03-15 Richard Guenther <rguenther@suse.de>
27058
27059 PR tree-optimization/41490
27060 * tree-ssa-dce.c (propagate_necessity): Handle returns without
27061 value but with VUSE.
27062 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27063 return statements.
27064 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27065 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27066 * tree-tailcall.c (find_tail_calls): Ignore returns.
27067
27068 2011-03-15 Richard Guenther <rguenther@suse.de>
27069
27070 PR middle-end/48031
27071 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27072 or variable-indexed array accesses when in gimple form.
27073
27074 2011-03-15 Richard Guenther <rguenther@suse.de>
27075
27076 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27077
27078 2011-03-15 Alan Modra <amodra@gmail.com>
27079
27080 PR target/48032
27081 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27082 presume symbol_refs without a symbol_ref_decl are suitably
27083 aligned, nor other trees we may see here. Handle anchor symbols.
27084 (legitimate_constant_pool_address_p): Comment. Add mode param.
27085 Check cmodel=medium addresses. Adjust all calls.
27086 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27087 creating cmodel=medium optimized access to locals.
27088 * config/rs6000/constraints.md (R): Pass QImode to
27089 legitimate_constant_pool_address_p.
27090 * config/rs6000/predicates.md (input_operand): Pass mode to
27091 legitimate_constant_pool_address_p.
27092 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27093 Update prototype.
27094
27095 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27096
27097 PR target/48053
27098 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27099 64-bit constants being loaded into registers other than GPRs such
27100 as loading 0 into a VSX register.
27101
27102 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27103
27104 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27105
27106 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27107
27108 PR middle-end/47917
27109 * builtins.c (fold_builtin_snprintf): New function.
27110 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27111 (fold_builtin_4): Likewise.
27112
27113 PR middle-end/38878
27114 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27115 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
27116 and C - X == X also strip nops from +/-/p+ operand.
27117 When optimizing -X == C, fold C to arg0's type.
27118
27119 PR debug/47946
27120 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27121 emit it as add_AT_int instead of add_AT_unsigned.
27122
27123 2011-03-14 Tom Tromey <tromey@redhat.com>
27124
27125 * unwind-dw2.c: Include sys/sdt.h if it exists.
27126 (_Unwind_DebugHook): Use STAP_PROBE2.
27127 * config.in, configure: Rebuild.
27128 * configure.ac: Check for sys/sdt.h.
27129
27130 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
27131
27132 * config/i386/i386.md (ROUND_FLOOR): New constant.
27133 (ROUND_CEIL): Ditto.
27134 (ROUND_TRUNC): Ditto.
27135 (ROUND_MXCSR): Ditto.
27136 (ROUND_NO_EXC): Ditto.
27137 (rint<mode>2): Use new defines instead of numerical constants.
27138 (floor<mode>2): Ditto.
27139 (ceil<mode>2): Ditto.
27140 (btrunc<mode>2): Ditto.
27141 * config/i386/i386-builtin-types.def: Define ROUND function type
27142 aliases.
27143 * config/i386/i386.c (enum ix86_builtins): Add
27144 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27145 (struct builtin_description): Add
27146 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27147 (ix86_expand_sse_round): New static function.
27148 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27149 function types.
27150 (ix86_builtin_vectorized_function): Handle
27151 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27152
27153 2011-03-14 Tom Tromey <tromey@redhat.com>
27154
27155 * c-parser.c (c_parser_asm_string_literal): Clear
27156 warn_overlength_strings.
27157
27158 2011-03-14 Tom Tromey <tromey@redhat.com>
27159
27160 * c-parser.c (disable_extension_diagnostics): Save
27161 warn_overlength_strings.
27162 (restore_extension_diagnostics): Restore warn_overlength_strings.
27163
27164 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27165
27166 * BASE-VER: Change to 4.7.0.
27167
27168 2011-03-14 Richard Guenther <rguenther@suse.de>
27169
27170 PR middle-end/48098
27171 * tree.c (build_vector_from_val): Adjust assert to requirements
27172 and reality.
27173
27174 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27175
27176 PR bootstrap/48102
27177 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27178
27179 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
27180
27181 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27182 terms of target_flags_explicit. Adjust copyright year.
27183
27184 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27185 * config/rs6000/t-freebsd: New file. Add override for
27186 LIB2FUNCS_EXTRA.
27187
27188 2011-03-13 Chris Demetriou <cgd@google.com>
27189
27190 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27191 (-fno-diagnostics-show-option): this, to reflect current default.
27192 (-Werror=): Update text about -fno-diagnostics-show-option.
27193
27194 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
27195
27196 PR target/48053
27197 * config/rs6000/predicates.md (easy_vector_constant_add_self,
27198 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27199 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27200 mode is not V2DImode or V2DFmode.
27201 (vspltis_constant): Do not handle V2DImode and V2DFmode.
27202 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27203 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27204 registers to 0.
27205 (movdi_internal64): Likewise.
27206
27207 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
27208
27209 PR tree-optimization/47127
27210 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27211 parameter.
27212 (set_cloog_options): Same.
27213 (scop_to_clast): Same.
27214 (print_clast_stmt): Do not call cloog_state_malloc and
27215 cloog_state_free.
27216 (print_generated_program): Same.
27217 (gloog): Same.
27218 * graphite-clast-to-gimple.h (cloog_state): Declared.
27219 (scop_to_clast): Adjust declaration.
27220 * graphite.c (cloog_state): Defined here.
27221 (graphite_initialize): Call cloog_state_malloc.
27222 (graphite_finalize): Call cloog_state_free.
27223
27224 2011-03-11 Jason Merrill <jason@redhat.com>
27225
27226 * attribs.c (lookup_attribute_spec): Take const_tree.
27227 * tree.h: Adjust.
27228
27229 2011-03-11 Joseph Myers <joseph@codesourcery.com>
27230
27231 * config/sparc/sparc.c (sparc_option_override): Use
27232 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27233
27234 2011-03-11 Richard Guenther <rguenther@suse.de>
27235
27236 PR tree-optimization/48067
27237 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27238 multiplication result will be only used once on the target
27239 stmt.
27240
27241 2011-03-11 Richard Guenther <rguenther@suse.de>
27242
27243 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27244
27245 2011-03-11 Richard Guenther <rguenther@suse.de>
27246
27247 PR lto/48073
27248 * tree.c (find_decls_types_r): Do not walk types only reachable
27249 from IDENTIFIER_NODEs.
27250
27251 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27252
27253 PR middle-end/48044
27254 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27255 all vnode->force_output nodes as needed.
27256
27257 2011-03-11 Jason Merrill <jason@redhat.com>
27258
27259 PR c++/48069
27260 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27261 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27262
27263 2011-03-11 Martin Jambor <mjambor@suse.cz>
27264
27265 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27266 cgraph_node.
27267
27268 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27269
27270 PR tree-optimization/48063
27271 * ipa-inline.c (cgraph_decide_inlining): Don't try to
27272 inline functions called once if !tree_can_inline_p (node->callers).
27273
27274 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
27275
27276 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27277 extra_objs.
27278 * config/score/score3.c: Delete.
27279 * config/score/score3.h: Delete.
27280 * config/score/mul-div.S: Delete.
27281 * config/score/sfp-machine.h: Add new file.
27282 * config/score/constraints.md: Add new file.
27283 * config/score/t-score-softfp: Add new file.
27284 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27285 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27286 (score7_extra_constraint): Delete.
27287 (score7_option_override): Remove unused code.
27288 * config/score/score.c: Remove score3 and score5 define and code.
27289 * config/score/score.h: Remove score3 and score5 define and code.
27290 * config/score/score.md: Remove score3 template and unusual insn.
27291 * config/score/score.opt: Remove score3 and score5 options.
27292
27293 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27294
27295 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27296 when _HPUX_SOURCE is defined.
27297 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27298
27299 2011-03-10 Jason Merrill <jason@redhat.com>
27300
27301 PR c++/48029
27302 * stor-layout.c (layout_type): Don't set structural equality
27303 on arrays of incomplete type.
27304 * tree.c (type_hash_eq): Handle comparing them properly.
27305
27306 2011-03-10 Jakub Jelinek <jakub@redhat.com>
27307
27308 PR debug/48043
27309 * config/s390/s390.c (s390_delegitimize_address): Make sure the
27310 result mode matches original rtl mode.
27311
27312 2011-03-10 Nick Clifton <nickc@redhat.com>
27313
27314 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27315 (andsi3, andsi3_flags): Fix timings for three operand alternative.
27316
27317 2011-03-09 Jakub Jelinek <jakub@redhat.com>
27318
27319 PR rtl-optimization/47866
27320 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27321 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27322 if target wasn't scalar.
27323 * function.c (assign_stack_temp_for_type): Assert that neither
27324 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27325 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27326 macro.
27327 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27328
27329 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27330
27331 * config/s390/s390-protos.h (s390_label_align): New prototype.
27332 * config/s390/s390.c (s390_label_align): New function.
27333 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27334
27335 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
27336
27337 PR target/47755
27338 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27339 V2DI/V2DF constants. Only all 0's or all 1's are easy.
27340 (output_vec_const_move): Ditto.
27341
27342 2011-03-08 Anatoly Sokolov <aesok@post.ru>
27343
27344 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27345 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27346 * config/mips/mips.c (mips_preferred_reload_class): Make static.
27347 Change 'rclass' argument and result type to reg_class_t.
27348 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27349
27350 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
27351
27352 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27353 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27354 (TARGET_MEMORY_MOVE_COST): Define.
27355 (avr_register_move_cost, avr_memory_move_cost): New Functions.
27356
27357 2011-03-08 Jakub Jelinek <jakub@redhat.com>
27358
27359 PR debug/47881
27360 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27361 removed anything.
27362
27363 PR tree-optimization/48022
27364 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27365 for EQ/NE_EXPR.
27366
27367 2011-03-07 Jakub Jelinek <jakub@redhat.com>
27368
27369 PR debug/47991
27370 * var-tracking.c (find_use_val): Return NULL for
27371 cui->sets && cui->store_p BLKmode MEMs.
27372
27373 2011-03-07 Anatoly Sokolov <aesok@post.ru>
27374
27375 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27376 Remove.
27377 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27378 xstormy16_print_operand_address): Remove.
27379 * config/stormy16/stormy16.c (xstormy16_print_operand,
27380 xstormy16_print_operand_address): Make static.
27381 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27382
27383 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
27384
27385 PR target/47862
27386 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27387 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27388 before definition.
27389
27390 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
27391
27392 PR bootstrap/48000
27393 * cfgloopmanip.c (fix_bb_placements): Return immediately
27394 if FROM is BASE_LOOP's header.
27395
27396 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
27397
27398 * gimplify.c (gimplify_function_tree): Fix building calls
27399 to __builtin_return_address.
27400
27401 2011-03-07 Alan Modra <amodra@gmail.com>
27402
27403 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27404 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27405 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27406 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27407 return_mode args.
27408 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27409 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27410 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27411 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27412 * config/rs6000/rs6000.c
27413 (rs6000_elf_end_indicate_exec_stack): Rename to..
27414 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
27415 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
27416 (rs6000_file_start): ..here.
27417 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27418 file scope variables.
27419 (call_ABI_of_interest): New function.
27420 (init_cumulative_args): Set above vars when function return value
27421 is a float, vector, or small struct.
27422 (rs6000_function_arg_advance_1): Likewise for function args.
27423 (rs6000_va_start): Set rs6000_passes_float if variable arg function
27424 references float args.
27425
27426 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
27427
27428 * doc/cfg.texi: Remove "See" before @ref.
27429 * doc/invoke.texi: Likewise.
27430
27431 2011-03-05 Jason Merrill <jason@redhat.com>
27432
27433 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27434
27435 2011-03-05 Anthony Green <green@moxielogic.com>
27436
27437 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27438
27439 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
27440
27441 PR rtl-optimization/47899
27442 * cfgloopmanip.c (fix_bb_placements): Fix first argument
27443 to flow_loop_nested_p when moving the loop upward.
27444
27445 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
27446
27447 PR target/47719
27448 * arm.md (movhi_insn_arch4): Accept any immediate constant.
27449
27450 2011-03-05 Jakub Jelinek <jakub@redhat.com>
27451
27452 PR tree-optimization/47967
27453 * ipa-cp.c (build_const_val): Return NULL instead of creating
27454 VIEW_CONVERT_EXPR for mismatching sizes.
27455 (ipcp_create_replace_map): Return NULL if build_const_val failed.
27456 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27457 give up on versioning.
27458
27459 2011-03-05 Alan Modra <amodra@gmail.com>
27460
27461 PR target/47986
27462 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27463 full cmodel medium/large lo_sum + high addresses.
27464
27465 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27466
27467 * config/s390/s390.c (s390_decompose_address): Reject non-literal
27468 pool references in UNSPEC_LTREL_OFFSET.
27469
27470 2011-03-04 Jan Hubicka <jh@suse.cz>
27471
27472 PR lto/47497
27473 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27474 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27475 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27476 Add node pointers.
27477 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27478 cgraph_add_thunk): Add node pointers.
27479 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27480 associated to right node.
27481 (input_node): Update use of cgraph_same_body_alias
27482 and cgraph_add_thunk.
27483
27484 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
27485
27486 * config/i386/i386.opt (mprefer-avx128): New flag.
27487 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27488 modes when the flag -mprefer-avx128 is on.
27489
27490 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
27491
27492 * dwarf2out.c (compare_loc_operands): Fix address handling.
27493
27494 2011-03-04 Alan Modra <amodra@gmail.com>
27495
27496 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27497
27498 2011-03-04 Richard Guenther <rguenther@suse.de>
27499
27500 PR middle-end/47968
27501 * expmed.c (extract_bit_field_1): Prefer vector modes that
27502 vec_extract patterns can handle.
27503
27504 2011-03-04 Richard Guenther <rguenther@suse.de>
27505
27506 PR middle-end/47975
27507 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27508
27509 2011-03-04 Richard Henderson <rth@redhat.com>
27510
27511 * explow.c (emit_stack_save): Remove 'after' parameter.
27512 (emit_stack_restore): Likewise.
27513 * expr.h: Update to match.
27514 * builtins.c, calls.c, stmt.c: Likewise.
27515 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27516 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27517 * function.c (expand_function_end): Insert the emit_stack_save
27518 sequence before parm_birth_insn instead of after.
27519
27520 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
27521
27522 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27523 (ssse3_pmaddubsw128): Ditto.
27524 (ssse3_pmaddubsw): Ditto.
27525
27526 2011-03-03 Steve Ellcey <sje@cup.hp.com>
27527
27528 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27529
27530 2011-03-03 Jakub Jelinek <jakub@redhat.com>
27531
27532 PR c/47963
27533 * gimplify.c (omp_add_variable): Only call omp_notice_variable
27534 on TYPE_SIZE_UNIT if it is a DECL.
27535
27536 PR debug/47283
27537 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27538 first operand is not is_gimple_mem_ref_addr, try to fold it.
27539 If the operand still isn't is_gimple_mem_ref_addr, clear
27540 MEM_EXPR on op0.
27541
27542 2011-03-03 Richard Guenther <rguenther@suse.de>
27543
27544 PR middle-end/47283
27545 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27546 match comment.
27547 (refs_may_alias_p_1): For release branches return true if
27548 we are confused by our input.
27549
27550 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27551
27552 * config/s390/s390.c (s390_function_value): Rename to ...
27553 (s390_function_and_libcall_value): ... this.
27554 (s390_function_value): New function.
27555 (s390_libcall_value): New function.
27556 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27557 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27558 target macro definitions.
27559 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27560
27561 2011-03-02 Joseph Myers <joseph@codesourcery.com>
27562
27563 * config/i386/freebsd64.h (CC1_SPEC): Define.
27564 * config/i386/linux64.h (CC1_SPEC): Define.
27565 * config/i386/x86-64.h (CC1_SPEC): Don't define.
27566
27567 2011-03-02 Anatoly Sokolov <aesok@post.ru>
27568
27569 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27570 Remove.
27571 * config/stormy16/stormy16.c: Include reload.h.
27572 (xstormy16_memory_move_cost): New function.
27573 (TARGET_MEMORY_MOVE_COST): Define.
27574
27575 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
27576
27577 PR rtl-optimization/47925
27578 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27579 with side effects. Remove the more-specific check for volatile asms.
27580
27581 2011-03-02 Alan Modra <amodra@gmail.com>
27582
27583 PR target/47935
27584 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27585 toc relative addresses for valid offsets.
27586
27587 2011-03-01 Richard Guenther <rguenther@suse.de>
27588
27589 PR tree-optimization/47890
27590 * tree-vect-loop.c (get_initial_def_for_induction): Set
27591 related stmt properly.
27592
27593 2011-03-01 Richard Guenther <rguenther@suse.de>
27594
27595 PR lto/47924
27596 * lto-streamer.c (lto_record_common_node): Also register
27597 the canonical type.
27598
27599 2011-03-01 Richard Guenther <rguenther@suse.de>
27600
27601 PR lto/46911
27602 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27603 Do not stream DECL_ABSTRACT_ORIGIN.
27604 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27605 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27606 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27607 Do not stream DECL_ABSTRACT_ORIGIN.
27608 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27609 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27610
27611 2011-02-28 Anatoly Sokolov <aesok@post.ru>
27612
27613 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27614 FUNCTION_VALUE_REGNO_P): Remove.
27615 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27616 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27617 Add 'outgoing' argument.
27618 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27619 function.
27620 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27621 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27622
27623 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
27624
27625 PR debug/28047
27626 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27627 (lookup_filename): Likewise.
27628 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27629
27630 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
27631 Jakub Jelinek <jakub@redhat.com>
27632
27633 PR middle-end/47893
27634 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
27635 (assign_stack_local_1): Change last argument type to int.
27636 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
27637 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
27638 don't record padding space into frame_space_list nor use those areas.
27639 (assign_stack_local): Adjust caller.
27640 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
27641 of assign_stack_local, pass 0 as last argument.
27642 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
27643 callers.
27644
27645 2011-02-28 Jakub Jelinek <jakub@redhat.com>
27646
27647 PR debug/47283
27648 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
27649 Use target address_mode and pointer_mode hooks instead of hardcoded
27650 Pmode and ptr_mode. Handle some simple cases of extending if
27651 POINTERS_EXTEND_UNSIGNED < 0.
27652 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
27653 Call convert_debug_memory_address.
27654 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
27655 convert_debug_memory_address.
27656
27657 PR middle-end/46790
27658 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
27659 * configure: Regenerated.
27660 * config.in: Regenerated.
27661 * varasm.c (default_function_section): Return NULL
27662 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
27663
27664 2011-02-28 Martin Jambor <mjambor@suse.cz>
27665
27666 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
27667 the description to match the printed values.
27668
27669 2011-02-28 Richard Guenther <rguenther@suse.de>
27670
27671 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
27672 of the copied scope tree.
27673
27674 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27675
27676 * doc/extend.texi (Function Attributes): Avoid deeply (and
27677 wrongly) nested tables.
27678
27679 2011-02-27 Jakub Jelinek <jakub@redhat.com>
27680
27681 PR middle-end/47903
27682 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
27683 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
27684 r isn't op0 nor op1.
27685
27686 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
27687
27688 * config/avr/avr.md: Remove magic comment for emacs.
27689
27690 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
27691
27692 PR target/45261
27693 * config/avr/avr.c (avr_option_override): Use error on bad options.
27694 (avr_help): New function.
27695 (TARGET_HELP): Define.
27696
27697 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
27698
27699 PR target/42240
27700 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
27701 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
27702
27703 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
27704
27705 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
27706 (ARM Options): Ditto.
27707 (i386 and x86-64 Options): Ditto.
27708 (RX Options): Ditto.
27709 (SPARC Options): Ditto.
27710
27711 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
27712
27713 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
27714 FreeBSD 6 and later. Generally use cpu generic.
27715
27716 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
27717
27718 * doc/cpp.texi: Update copyright years.
27719
27720 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
27721
27722 PR target/46898
27723 * config/lm32/lm32.md (ashrsi3): Added needed variable.
27724
27725 2011-02-25 Jon Beniston <jon@beniston.com>
27726
27727 PR target/46898
27728 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
27729 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
27730 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
27731 (lm32_block_move_inline): Add type cast to remove warning.
27732 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
27733 (gen_int_relational): Move declarations to start of function.
27734
27735 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
27736
27737 PR tree-optimization/45470
27738 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
27739 can throw internally only.
27740 * tree-vect-stmts.c (vectorizable_call): Likewise.
27741
27742 2011-02-24 Anatoly Sokolov <aesok@post.ru>
27743
27744 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
27745 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27746 * config/stormy16/stormy16-protos.h
27747 (xstormy16_preferred_reload_class): Remove.
27748 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
27749 static. Change 'rclass' argument and return type to reg_class_t.
27750 (TARGET_PREFERRED_RELOAD_CLASS,
27751 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27752
27753 2011-02-24 Richard Guenther <rguenther@suse.de>
27754
27755 * lto-streamer-in.c (input_bb): Do not find referenced vars
27756 in debug statements.
27757
27758 2011-02-23 Jason Merrill <jason@redhat.com>
27759
27760 * common.opt (fabi-version): Document v5 and v6.
27761
27762 2011-02-23 Richard Guenther <rguenther@suse.de>
27763
27764 PR tree-optimization/47849
27765 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
27766
27767 2011-02-23 Jie Zhang <jie@codesourcery.com>
27768
27769 * opts-common.c (decode_cmdline_option): Print empty string
27770 argument as "" in decoded->orig_option_with_args_text.
27771 * gcc.c (execute): Print empty string argument as ""
27772 in the verbose output.
27773 (do_spec_1): Keep empty string argument.
27774
27775 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
27776
27777 * config.gcc: Declare score-* and crx-* obsolete.
27778
27779 2011-02-23 Jie Zhang <jie@codesourcery.com>
27780
27781 PR rtl-optimization/47763
27782 * web.c (web_main): Ignore naked clobber when replacing register.
27783
27784 2011-02-22 Anatoly Sokolov <aesok@post.ru>
27785
27786 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27787 Remove.
27788
27789 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
27790
27791 PR doc/47848
27792 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
27793
27794 2011-02-22 Mike Stump <mikestump@comcast.net>
27795
27796 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
27797 assembler.
27798 * configure: Regenerate.
27799
27800 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
27801
27802 PR rtl-optimization/46002
27803 * ira-color.c (update_copy_costs): Change class intersection
27804 test to reg_class_contents[] test of 'hard_regno'.
27805
27806 2011-02-21 Joseph Myers <joseph@codesourcery.com>
27807
27808 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
27809 than Driver option.
27810 * config/hpux11.opt (mt): Likewise.
27811 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
27812 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
27813 * config/vax/elf.opt (mno-asm-pic): Likewise.
27814 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
27815
27816 2011-02-21 Mike Stump <mikestump@comcast.net>
27817
27818 PR target/47822
27819 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
27820 tree so we can get save the type.
27821 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
27822 for CFString instead of trying to use past the end of the builtins.
27823 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
27824 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
27825 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
27826 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
27827 Rename to darwin_builtin_cfstring.
27828 (darwin_init_cfstring_builtins): Return the built type.
27829
27830 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
27831
27832 PR target/47840
27833 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
27834 (_mm256_insert_epi64): Use _mm_insert_epi64.
27835
27836 2011-02-21 Anatoly Sokolov <aesok@post.ru>
27837
27838 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27839 * config/stormy16/stormy16-protos.h
27840 (xstormy16_mode_dependent_address_p): Remove.
27841 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
27842 Make static. Change return type to bool. Change argument type to
27843 const_rtx. Remove dead code.
27844 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27845
27846 2011-02-21 Richard Guenther <rguenther@suse.de>
27847
27848 PR lto/47820
27849 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27850 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27851 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
27852 TUs context.
27853 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27854 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
27855
27856 2011-02-20 Richard Guenther <rguenther@suse.de>
27857
27858 PR lto/47822
27859 * tree.c (free_lang_data_in_decl): Clean builtins from
27860 the TU decl BLOCK_VARS.
27861
27862 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
27863
27864 PR debug/47620
27865 PR debug/47630
27866 * haifa-sched.c (fix_tick_ready): Skip tick computation
27867 for debug insns.
27868
27869 2011-02-19 Richard Guenther <rguenther@suse.de>
27870
27871 PR lto/47647
27872 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
27873 Remove lazy BLOCK_VARS streaming.
27874 (lto_input_ts_block_tree_pointers): Likewise.
27875 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
27876
27877 2011-02-19 Joseph Myers <joseph@codesourcery.com>
27878
27879 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
27880
27881 2011-02-19 Joseph Myers <joseph@codesourcery.com>
27882
27883 * config/i386/biarch32.h, config/i386/mach.h,
27884 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
27885
27886 2011-02-19 Jakub Jelinek <jakub@redhat.com>
27887
27888 PR target/47800
27889 * config/i386/i386.md (peephole2 for shift and plus): Use
27890 operands[1] original mode in the first insn.
27891
27892 2011-02-18 Mike Stump <mikestump@comcast.net>
27893
27894 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
27895
27896 2011-02-18 Jan Hubicka <jh@suse.cz>
27897
27898 PR middle-end/47788
27899 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
27900 to zero when the function is not inlinable at all.
27901
27902 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27903
27904 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
27905 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27906 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
27907 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
27908 * config/pa/t-pa64: Likewise.
27909 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
27910
27911 2011-02-18 Jakub Jelinek <jakub@redhat.com>
27912
27913 PR driver/47787
27914 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
27915
27916 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27917
27918 PR target/47792
27919 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
27920
27921 2011-02-18 Anatoly Sokolov <aesok@post.ru>
27922
27923 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
27924 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
27925 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
27926 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
27927 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
27928 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
27929 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
27930 m32r_load_postinc_p, m32r_store_preinc_predec_p,
27931 m32r_legitimate_address_p): New functions.
27932 * config/m32r/constraints.md (constraint "S"): Don't use
27933 STORE_PREINC_PREDEC_P.
27934 (constraint "U"): Don't use LOAD_POSTINC_P.
27935
27936 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
27937
27938 PR rtl-optimization/46178
27939 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
27940 compute ira_hard_regno_cover_class[].
27941
27942 2011-02-18 Richard Guenther <rguenther@suse.de>
27943
27944 PR lto/47798
27945 * lto-streamer.h (lto_global_var_decls): Declare.
27946 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
27947 statics for global var processing.
27948
27949 2011-02-18 Richard Guenther <rguenther@suse.de>
27950
27951 PR tree-optimization/47737
27952 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
27953 edge dominance check.
27954
27955 2011-02-18 Jakub Jelinek <jakub@redhat.com>
27956
27957 PR debug/47780
27958 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
27959 avoid invalid rtx sharing.
27960
27961 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
27962
27963 * doc/cpp.texi (Obsolete Features): Add background on the
27964 origin of assertions.
27965
27966 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
27967
27968 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
27969 objc_abi == 2.
27970 * config/darwin.c (output_objc_section_asm_op): Added support for
27971 ABI v1 and v2.
27972 (is_objc_metadata): New.
27973 (darwin_objc2_section): New.
27974 (darwin_objc1_section): New.
27975 (machopic_select_section): Added support for ABI v1 and v2.
27976 (darwin_emit_objc_zeroed): New.
27977 (darwin_output_aligned_bss): Detect objc metadata and treat it
27978 appropriately.
27979 (darwin_asm_output_aligned_decl_common): Same.
27980 (darwin_asm_output_aligned_decl_local): Same.
27981 * config/darwin-sections.def: Updated for ABI v1 and v2.
27982 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
27983 compiling Objective-C code for the NeXT runtime, default to using
27984 ABI version 0 for 32-bit, and version 2 for 64-bit.
27985
27986 2011-02-17 Joseph Myers <joseph@codesourcery.com>
27987
27988 * common.opt (optimize_fast): New Variable.
27989 * opts.c (default_options_optimization): Use opts->x_optimize_fast
27990 instead of local variable ofast.
27991
27992 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
27993
27994 * doc/invoke.texi (fobjc-abi-version): Documented.
27995 (fobjc-nilcheck): Documented.
27996 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
27997 version.
27998
27999 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28000
28001 PR driver/47390
28002 * common.opt (export-dynamic): New Driver option.
28003 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28004
28005 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28006
28007 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28008
28009 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
28010 Jan Hubicka <jh@suse.cz>
28011
28012 PR debug/47106
28013 PR debug/47402
28014 * cfgexpand.c (account_used_vars_for_block): Remove.
28015 (estimated_stack_frame_size): Use referenced vars.
28016 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28017 that were referenced in the original function. Test src_fn
28018 rather than cfun. Drop redundant get_var_ann.
28019 (setup_one_parameter): Drop redundant get_var_ann.
28020 (declare_return_variable): Likewise.
28021 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28022 (copy_arguments_for_versioning): Drop redundant get_var_ann.
28023 * ipa-inline.c (compute_inline_parameters): Do not compute
28024 disregard_inline_limits here.
28025 (compute_inlinable_for_current, pass_inlinable): New.
28026 (pass_inline_parameters): Require PROP_referenced_vars.
28027 * cgraphunit.c (cgraph_process_new_functions): Don't run
28028 compute_inline_parameters explicitly unless function is in SSA form.
28029 (cgraph_analyze_function): Set .disregard_inline_limits.
28030 * tree-sra.c (convert_callers): Compute inliner parameters
28031 only for functions already in SSA form.
28032
28033 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28034
28035 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28036 -mlittle-endian-data.
28037
28038 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28039
28040 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28041 -mno-fpu, not -fpu and -no-fpu.
28042 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28043 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28044
28045 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
28046
28047 PR target/43653
28048 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28049 input reload with PLUS RTX.
28050
28051 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28052
28053 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28054 of InverseVar(MDMX).
28055
28056 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28057
28058 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28059 --m4-340.
28060
28061 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28062
28063 * config/mn10300/mn10300.opt (mno-crt0): New.
28064
28065 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28066
28067 * config/m68k/uclinux.opt (static-libc): New Driver option.
28068
28069 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28070
28071 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28072
28073 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28074
28075 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28076 %{muser-extend-enabled}.
28077
28078 2011-02-16 Richard Guenther <rguenther@suse.de>
28079
28080 PR tree-optimization/47738
28081 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28082 the TODO from tree_predictive_commoning.
28083
28084 2011-02-15 Jeff Law <law@redhat.com>
28085
28086 Revert
28087 2011-01-25 Jeff Law <law@redhat.com>
28088
28089 PR rtl-optimization/37273
28090 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28091 handle them like argument loads from stack slots. Do not double
28092 count memory for memory constants and argument loads from stack slots.
28093
28094 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
28095
28096 PR target/47755
28097 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28098 mode for vector constants. Remove code that checks for TImode.
28099
28100 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28101
28102 PR debug/47106
28103 PR debug/47402
28104 * cgraph.h (compute_inline_parameters): Return void.
28105 * ipa-inline.c (compute_inline_parameters): Adjust.
28106
28107 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28108
28109 PR debug/47106
28110 PR debug/47402
28111 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28112 rather than decl.
28113 * cfgexpand.c (estimated_stack_frame_size): Likewise.
28114 * ipa-inline.c (compute_inline_parameters): Adjust.
28115
28116 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28117
28118 PR debug/47106
28119 PR debug/47402
28120 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28121 Adjust all users. Pass FN to...
28122 * tree-flow-inline.h (first_referenced_var): ... this. Add
28123 fn argument.
28124 * ipa-struct-reorg.c: Adjust.
28125 * tree-dfa.c: Adjust.
28126 * tree-into-ssa.c: Adjust.
28127 * tree-sra.c: Adjust.
28128 * tree-ssa-alias.c: Adjust.
28129 * tree-ssa-live.c: Adjust.
28130 * tree-ssa.c: Adjust.
28131 * tree-ssanames.c: Adjust.
28132 * tree-tailcall.c: Adjust.
28133
28134 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28135
28136 PR debug/47106
28137 PR debug/47402
28138 * tree-flow.h (referenced_var_lookup): Add fn parameter.
28139 Adjust all callers.
28140 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28141 * tree-flow-inline.h: Adjust.
28142 * gimple-pretty-print.c: Adjust.
28143 * tree-into-ssa.c: Adjust.
28144 * tree-ssa.c: Adjust.
28145 * cfgexpand.c: Adjust.
28146
28147 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28148
28149 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28150 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28151 (EXTRA_CONSTRAINT): Delete.
28152 * config/iq2000/constraints.md: New file.
28153 * config/iq2000/iq2000.md: Include it.
28154 (define_insn ""): Delete.
28155 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28156 unsupported constraint letters from patterns.
28157 (call_value, call_value_internal1): Likewise.
28158 (call_value_multiple_internal1): Likewise.
28159
28160 2011-02-15 Nick Clifton <nickc@redhat.com>
28161
28162 * config/mn10300/mn10300.c: Include tm-constrs.h.
28163 (struct liw_data): New data structure describing an LIW candidate
28164 instruction.
28165 (extract_bundle): Use struct liw_data. Allow small integer
28166 operands for some instructions.
28167 (check_liw_constraints): Use struct liw_data. Remove swapped
28168 parameter. Add comments describing the checks. Fix bug when
28169 assigning the source of liw1 to the source of liw2.
28170 (liw_candidate): Delete. Code moved into extract_bundle.
28171 (mn10300_bundle_liw): Use struct liw_data. Check constraints
28172 before swapping.
28173 * config/mn10300/predicates.md (liw_operand): New predicate.
28174 Allows registers and small integer constants.
28175 * config/mn10300/constraints.md (O): New constraint. Accetps
28176 integers in the range -8 to +7 inclusive.
28177 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28178 for moving a small integer into a register. Give this alternative
28179 LIW attributes.
28180 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28181 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28182 using the J,K,L and M constraints,
28183 (liw): Remove SI mode on second operands to allow for HI and QI
28184 mode values.
28185 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
28186 instruction.
28187
28188 2011-02-15 Richard Guenther <rguenther@suse.de>
28189
28190 PR tree-optimization/47743
28191 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28192 for a non-type-compatible VN lookup bail out.
28193
28194 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28195
28196 * config/fr30/constraints.md: New file.
28197 * config/fr30/fr30.md: Include it.
28198 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28199 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28200 (EXTRA_CONSTRAINT): Delete.
28201
28202 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28203
28204 * config/frv/constraints.md: New file.
28205 * config/frv/predicates.md: Include it.
28206 * config/frv/frv.c (reg_class_from_letter): Delete.
28207 (frv_option_override): Don't initialize it.
28208 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28209 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28210 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28211 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28212 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28213 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28214 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28215 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28216 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28217 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28218 (REG_CLASS_FROM_CONSTRAINT): Delete.
28219
28220 2011-02-15 Jakub Jelinek <jakub@redhat.com>
28221
28222 PR middle-end/47581
28223 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28224 if frame size is 0 in a leaf function.
28225
28226 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28227
28228 PR pch/14940
28229 * config/alpha/host-osf.c: New file.
28230 * config/alpha/x-osf: New file.
28231 * config.host (alpha*-dec-osf*): Use it.
28232
28233 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28234
28235 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28236 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28237 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28238 (rx_mode_dependent_address_p): ...this. Make static. Change argument
28239 type to const_rtx.
28240 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28241
28242 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28243
28244 * config/stormy16/constraints.md: New file.
28245 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28246 Use satisfies_constraint_Q and satisfies_constraint_R.
28247 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28248 Delete.
28249 (xstormy16_legitiamte_address_p): Declare.
28250 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28251 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28252 (EXTRA_CONSTRAINT): Delete.
28253 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28254 Un-staticize.
28255 (xstormy16_extra_constraint_p): Delete.
28256
28257 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
28258
28259 PR tree-optimization/46494
28260 * loop-unroll.c (split_edge_and_insert): Adjust comment.
28261 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28262 (pass_rtl_loop_done): Add TODO_verify_flow.
28263 * fwprop.c (pass_rtl_fwprop): Likewise.
28264 * modulo-sched.c (pass_sms): Likewise.
28265 * tree-ssa-dom.c (pass_dominator): Likewise.
28266 * tree-ssa-loop-ch.c (pass_ch): Likewise.
28267 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28268 (pass_tree_loop_done): Likewise.
28269 * tree-ssa-pre.c (execute_pre): Likewise.
28270 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28271 * tree-ssa-sink.c (pass_sink_code): Likewise.
28272 * tree-vrp.c (pass_vrp): Likewise.
28273
28274 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28275
28276 * config/v850/constraints.md: New file.
28277 * config/v850/v850.md: Include it.
28278 * config/v850/predicates.md (reg_or_0_operand): Use
28279 satisfies_constraint_G.
28280 (special_symbolref_operand): Use satisfies_constraint_K.
28281 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28282 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28283 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28284 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28285 (EXTRA_CONSTRAINT): Delete.
28286 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28287 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28288 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28289
28290 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28291
28292 PR target/47696
28293 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28294 description.
28295
28296 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28297
28298 * config/mcore/constraints.md: New file.
28299 * config/mcore/mcore.md: Include it.
28300 * config/mcore/mcore.c (reg_class_from_letter): Delete.
28301 * config/mcore/mcore.h (reg_class_from_letter): Delete.
28302 (REG_CLASS_FROM_LETTER): Delete.
28303 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28304 insn_const_int_ok_for_constraint.
28305 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28306 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28307 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28308 (EXTRA_CONSTRAINT): Delete.
28309
28310 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28311
28312 PR ada/41929
28313 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28314 (IS_SIGHANDLER): Define.
28315 (sparc64_is_sighandler): New function, split off from
28316 sparc64_fallback_frame_state.
28317 (sparc_is_sighandler): New function, split off from
28318 sparc_fallback_frame_state.
28319 (sparc64_fallback_frame_state): Merge with ...
28320 (sparc_fallback_frame_state): ... this into ...
28321 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28322 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
28323 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
28324 stack instead of hardcoded offsets.
28325
28326 2011-02-14 Andriy Gapon <avg@freebsd.org>
28327
28328 PR target/45808
28329 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28330
28331 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28332
28333 * configure: Regenerate.
28334
28335 2011-02-12 Joseph Myers <joseph@codesourcery.com>
28336
28337 PR driver/45731
28338 * gcc.c (asm_options): Correct spec matching --target-help.
28339
28340 2011-02-12 Martin Jambor <mjambor@suse.cz>
28341
28342 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28343 to gimple call error.
28344
28345 2011-02-12 Mike Stump <mikestump@comcast.net>
28346
28347 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28348 comments in backslash regions.
28349
28350 2011-02-12 Mike Stump <mikestump@comcast.net>
28351 Jakub Jelinek <jakub@redhat.com>
28352 Iain Sandoe <iains@gcc.gnu.org>
28353
28354 PR target/47324
28355 * dwarf2out.c (output_cfa_loc): When required, apply the
28356 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28357 (output_loc_sequence): Likewise.
28358 (output_loc_operands_raw): Likewise.
28359 (output_loc_sequence_raw): Likewise.
28360 (output_cfa_loc): Likewise.
28361 (output_loc_list): Suppress register number adjustment when
28362 calling output_loc_sequence()
28363 (output_die): Likewise.
28364
28365 2011-02-12 Anatoly Sokolov <aesok@post.ru>
28366
28367 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28368 Remove macros.
28369 * config/xtensa/xtensa.c (xtensa_register_move_cost,
28370 xtensa_memory_move_cost): New functions.
28371 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28372
28373 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
28374
28375 PR lto/47225
28376 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28377 in the current directory.
28378 * configure: Rebuilt.
28379
28380 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28381
28382 * config/darwin.c (darwin_override_options): Add a hunk missed
28383 from the commit of r168571. Trim comment line lengths and
28384 correct indents of the preceding block.
28385
28386 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28387
28388 * gcc.c (driver_handle_option): Concatenate the argument to -F with
28389 the switch.
28390
28391 2011-02-11 Joseph Myers <joseph@codesourcery.com>
28392
28393 * common.opt (nostartfiles): New Driver option.
28394
28395 2011-02-11 Xinliang David Li <davidxl@google.com>
28396
28397 PR tree-optimization/47707
28398 * tree-chrec.c (convert_affine_scev): Keep type precision.
28399
28400 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
28401
28402 PR tree-optimization/47420
28403 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28404
28405 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
28406
28407 PR rtl-optimization/47614
28408 * rtl.h (check_for_inc_dec): Declare.
28409 * dse.c (check_for_inc_dec): Externalize...
28410 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28411 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28412
28413 2011-02-11 Joseph Myers <joseph@codesourcery.com>
28414
28415 PR driver/47678
28416 * gcc.c (main): Do not compile inputs if there were errors in
28417 option handling.
28418 * opts-common.c (read_cmdline_option): Check for wrong language
28419 after other error checks.
28420
28421 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
28422
28423 * cgraph.c: Fix comment typos.
28424 * cgraph.h: Likewise.
28425 * cgraphunit.c: Likewise.
28426 * ipa-cp.c: Likewise.
28427 * ipa-inline.c: Likewise.
28428 * ipa-prop.c: Likewise.
28429 * ipa-pure-const.c: Likewise.
28430 * ipa-ref.c: Likewise.
28431 * ipa-reference.c: Likewise.
28432
28433 2011-02-11 Jakub Jelinek <jakub@redhat.com>
28434
28435 PR debug/47684
28436 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28437
28438 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28439
28440 PR testsuite/47400
28441 * doc/sourcebuild.texi (Require Support): Document
28442 dg-require-ascii-locale.
28443
28444 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
28445
28446 * doc/lto.texi (Write summary): Fix missing parentheses.
28447
28448 2011-02-10 DJ Delorie <dj@redhat.com>
28449
28450 * config/m32c/m32c.c (m32c_option_override): Disable
28451 -fcombine-stack-adjustments until flag value tracking and compare
28452 optimization can be rewritten.
28453
28454 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
28455
28456 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28457 PROCESSOR_POWER7.
28458 (PROCESSOR_DEFAULT64): Likewise.
28459
28460 2011-02-10 Richard Henderson <rth@redhat.com>
28461
28462 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28463 change from 2011-02-03.
28464 * config/rx/rx.c (flags_from_code): Likewise.
28465 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28466 is valid, n/pz otherwise.
28467 (rx_select_cc_mode): Return CCmode if Y is not zero.
28468
28469 2011-02-10 Richard Guenther <rguenther@suse.de>
28470
28471 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28472
28473 2011-02-10 Richard Guenther <rguenther@suse.de>
28474
28475 PR tree-optimization/47677
28476 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28477
28478 2011-02-10 Jakub Jelinek <jakub@redhat.com>
28479
28480 PR target/47665
28481 * combine.c (make_compound_operation): Only change shifts into
28482 multiplication for SCALAR_INT_MODE_P.
28483
28484 2011-02-10 Jie Zhang <jie@codesourcery.com>
28485
28486 PR testsuite/47622
28487 Revert
28488 2011-02-05 Jie Zhang <jie@codesourcery.com>
28489 PR debug/42631
28490 * web.c (entry_register): Don't clobber the number of the
28491 first uninitialized reference in used[].
28492
28493 2011-02-09 Richard Guenther <rguenther@suse.de>
28494
28495 PR tree-optimization/47664
28496 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28497 all edges again.
28498
28499 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
28500
28501 PR target/46481
28502 PR target/47032
28503 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28504 PROCESSOR_POWER7.
28505 (PROCESSOR_DEFAULT64): Same.
28506 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28507
28508 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28509
28510 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28511
28512 2011-02-09 Martin Jambor <mjambor@suse.cz>
28513
28514 PR middle-end/45505
28515 * tree-sra.c (struct access): New flags grp_scalar_read and
28516 grp_scalar_write. Changed description of assignment read and write
28517 flags.
28518 (dump_access): Dump new flags, reorder all of them.
28519 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28520 to detect multiple scalar reads.
28521 (analyze_access_subtree): Use the new scalar read write flags instead
28522 of the old flags. Adjusted comments.
28523
28524 2011-02-08 DJ Delorie <dj@redhat.com>
28525
28526 PR target/47548
28527 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28528 patterns.
28529
28530 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28531
28532 * config/m68k/uclinux.opt: New.
28533 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28534
28535 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28536
28537 * config/cris/elf.opt (sim): New Driver option.
28538
28539 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28540
28541 * config/xtensa/elf.opt: New.
28542 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28543
28544 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28545
28546 * config/vax/elf.opt: New.
28547 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28548
28549 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28550
28551 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28552
28553 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28554
28555 * config/gnu-user.opt: New.
28556 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28557 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28558 *-*-uclinux*): Use gnu-user.opt.
28559
28560 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
28561
28562 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28563 * config/i386/gnu.h (CPP_SPEC): Likewise.
28564
28565 2011-02-08 Ian Lance Taylor <iant@google.com>
28566
28567 * common.opt (fcx-limited-range): Add SetByCombined flag.
28568 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28569 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28570 (fassociative-math, freciprocal-math): Likewise.
28571 (funsafe-math-optimizations): Likewise.
28572 * opth-gen.awk: Handle SetByCombined.
28573 * optc-gen.awk: Likewise.
28574 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28575 (set_unsafe_math_optimizations_flags): Likewise.
28576 * doc/options.texi (Option properties): Document SetByCombined.
28577
28578 2011-02-08 Joseph Myers <joseph@codesourcery.com>
28579
28580 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28581 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28582 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28583 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28584 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28585
28586 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
28587
28588 PR tree-optimization/46834
28589 PR tree-optimization/46994
28590 PR tree-optimization/46995
28591 * graphite-sese-to-poly.c (used_outside_reduction): New.
28592 (detect_commutative_reduction): Call used_outside_reduction.
28593 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28594 translate_scalar_reduction_to_array only when at least one
28595 loop-phi/close-phi tuple has been detected.
28596
28597 2011-02-08 Richard Guenther <rguenther@suse.de>
28598
28599 PR middle-end/47639
28600 * tree-vect-generic.c (expand_vector_operations_1): Update
28601 stmts here ...
28602 (expand_vector_operations): ... not here. Cleanup EH info
28603 and the CFG if required.
28604
28605 2011-02-08 Richard Guenther <rguenther@suse.de>
28606
28607 PR tree-optimization/47641
28608 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28609 require type compatibility.
28610
28611 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28612
28613 * gimple-low.c (lower_function_body): Don't remove the location of
28614 the return statement here.
28615 (lower_gimple_return): Do it here instead but only if the return
28616 statement is actually used twice.
28617
28618 2011-02-08 Richard Guenther <rguenther@suse.de>
28619
28620 PR tree-optimization/47632
28621 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28622 unused up_to_stmt parameter, return whether cfg-cleanup is
28623 necessary, remove EH info properly.
28624 (forward_propagate_into_gimple_cond): Adjust caller.
28625 (forward_propagate_into_cond): Likewise.
28626 (forward_propagate_comparison): Likewise.
28627 (tree_ssa_forward_propagate_single_use_vars): Make
28628 forward_propagate_comparison case similar to the two others.
28629
28630 2011-02-08 Nick Clifton <nickc@redhat.com>
28631
28632 * config/mn10300/mn10300.opt (mliw): New command line option.
28633 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
28634 (liw_bundling): New automaton.
28635 (liw): New attribute.
28636 (liw_op): New attribute.
28637 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
28638 (movsi_internal): Add LIW attributes.
28639 (andsi3): Likewise.
28640 (iorsi3): Likewise.
28641 (xorsi3): Likewise.
28642 (addsi3): Separate register and immediate alternatives.
28643 Add LIW attributes.
28644 (subsi3): Likewise.
28645 (cmpsi): Likewise.
28646 (aslsi3): Likewise.
28647 (lshrsi3): Likewise.
28648 (ashrsi3): Likewise.
28649 (liw): New pattern.
28650 * config/mn10300/mn10300.c (liw_op_names): New
28651 (mn10300_print_operand): Handle 'W' operand descriptor.
28652 (extract_bundle): New function.
28653 (check_liw_constraints): New function.
28654 (liw_candidate): New function.
28655 (mn10300_bundle_liw): New function.
28656 (mn10300_reorg): New function.
28657 (TARGET_MACHINE_DEPENDENT_REORG): Define.
28658 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
28659 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
28660 __LIW__ or __NO_LIW__.
28661 * doc/invoke.texi: Describe the -mliw command line option.
28662
28663 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28664
28665 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
28666 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28667 pthread_mutex_unlock): Remove.
28668 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
28669 * config/pa/t-pa64: Likewise.
28670 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
28671 shared libc if not linking against libpthread.
28672 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28673
28674 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
28675
28676 PR target/47558
28677 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
28678 on 10.6 and later to ensure that we always use the unwinder from
28679 the system. Only add -no_compact_unwind when tarteting darwin
28680 10.6 or later.
28681
28682 2011-02-07 Steve Ellcey <sje@cup.hp.com>
28683
28684 PR target/46997
28685 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
28686 (vec_interleave_lowv2sf): Ditto.
28687 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
28688 (vec_extract_oddv2sf): Ditto.
28689
28690 2011-02-07 Mike Stump <mikestump@comcast.net>
28691
28692 PR target/42333
28693 Add __ieee_divdc3 entry point.
28694 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
28695 entry point.
28696 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
28697 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
28698 * config/darwin.c (darwin_rename_builtins): Add.
28699 * config/darwin-protos.h (darwin_rename_builtins): Add.
28700
28701 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
28702
28703 PR target/47636
28704 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
28705 for the condition.
28706
28707 2011-02-07 Mike Stump <mikestump@comcast.net>
28708
28709 * config/darwin.opt (mmacosx-version-min): Update default OS version.
28710
28711 2011-02-07 Denis Chertykov <chertykov@gmail.com>
28712
28713 PR target/47534
28714 * config/avr/libgcc.S (exit): Move .endfunc
28715
28716 2011-02-07 Richard Guenther <rguenther@suse.de>
28717
28718 PR tree-optimization/47615
28719 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
28720 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
28721 (run_scc_vn): Initialize it.
28722 (visit_reference_op_load): Use it.
28723 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
28724
28725 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28726
28727 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
28728 DImode trapping arithmetic libfuncs.
28729
28730 2011-02-07 Richard Guenther <rguenther@suse.de>
28731
28732 PR tree-optimization/47621
28733 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
28734 two duplicates ...
28735 (execute_update_addresses_taken): ... here. Make it more
28736 conservative in what we accept.
28737
28738 2011-02-06 Joseph Myers <joseph@codesourcery.com>
28739
28740 * config/sparc/freebsd.h (ASM_SPEC): Define.
28741 * config/sparc/vxworks.h (ASM_SPEC): Define.
28742
28743 2011-02-06 Joseph Myers <joseph@codesourcery.com>
28744
28745 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28746
28747 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
28748
28749 * doc/invoke.texi: Remove reference to compiler internals from
28750 user documentation.
28751
28752 * reg-notes.def: Remove REG_VALUE_PROFILE.
28753 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
28754
28755 2011-02-05 Jakub Jelinek <jakub@redhat.com>
28756
28757 PR middle-end/47610
28758 * varasm.c (default_section_type_flags): If decl is NULL,
28759 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
28760
28761 2011-02-05 Jie Zhang <jie@codesourcery.com>
28762
28763 PR debug/42631
28764 * web.c (entry_register): Don't clobber the number of the
28765 first uninitialized reference in used[].
28766
28767 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
28768
28769 PR tree-optimization/46194
28770 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
28771 (build_classic_dist_vector_1): Do not represent classic distance
28772 vectors when the access functions are variating in different loops.
28773
28774 2011-02-04 Joseph Myers <joseph@codesourcery.com>
28775
28776 * config/mips/iris6.opt: New.
28777 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
28778
28779 2011-02-04 Richard Henderson <rth@redhat.com>
28780 Steve Ellcey <sje@cup.hp.com>
28781
28782 PR target/46997
28783 * config/ia64/predicates.md (mux1_brcst_element): New.
28784 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
28785 * config/ia64/ia64.c (ia64_unpack_assemble): New.
28786 (ia64_unpack_sign): New.
28787 (ia64_expand_unpack): Rewrite using new routines.
28788 (ia64_expand_widen_sum): Ditto.
28789 (ia64_expand_dot_prod_v8qi): Ditto.
28790 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
28791 routines, add endian check.
28792 (pmpy2_even): Rename from pmpy2_r, add endian check.
28793 (pmpy2_odd): Rename from pmpy2_l, add endian check.
28794 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
28795 (vec_widen_smult_hi_v4hi): Ditto.
28796 (vec_widen_umult_lo_v4hi): Ditto.
28797 (vec_widen_umult_hi_v4hi): Ditto.
28798 (mulv2si3): Change endian checks.
28799 (sdot_prodv4hi): Rewrite with new calls.
28800 (udot_prodv4hi): New.
28801 (vec_pack_ssat_v4hi): Add endian check.
28802 (vec_pack_usat_v4hi): Ditto.
28803 (vec_pack_ssat_v2si): Ditto.
28804 (max1_even): Rename from max1_r, add endian check.
28805 (max1_odd): Rename from max1_l, add endian check.
28806 (*mux1_rev): Format change.
28807 (*mux1_mix): Ditto.
28808 (*mux1_shuf): Ditto.
28809 (*mux1_alt): Ditto.
28810 (*mux1_brcst_v8qi): Use new predicate.
28811 (vec_extract_evenv8qi): Remove endian check.
28812 (vec_extract_oddv8qi): Ditto.
28813 (vec_interleave_lowv4hi): Format change.
28814 (vec_interleave_highv4hi): Ditto.
28815 (mix2_even): Rename from mix2_r, add endian check.
28816 (mix2_odd): Rename from mux2_l, add endian check.
28817 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
28818 (vec_extract_evenodd_helper): Format change.
28819 (vec_extract_evenv4hi): Remove endian check.
28820 (vec_extract_oddv4hi): Remove endian check.
28821 (vec_interleave_lowv2si): Format change.
28822 (vec_interleave_highv2si): Format change.
28823 (vec_initv2si): Remove endian check.
28824 (vecinit_v2si): Add endian check.
28825 (reduc_splus_v2sf): Add endian check.
28826 (reduc_smax_v2sf): Ditto.
28827 (reduc_smin_v2sf): Ditto.
28828 (vec_initv2sf): Remove endian check.
28829 (fpack): Add endian check.
28830 (fswap): Add endian check.
28831 (vec_interleave_highv2sf): Add endian check.
28832 (vec_interleave_lowv2sf): Add endian check.
28833 (fmix_lr): Add endian check.
28834 (vec_setv2sf): Format change.
28835 (*vec_extractv2sf_0_be): Use shift to extract operand.
28836 (*vec_extractv2sf_1_be): New.
28837 (vec_pack_trunc_v4hi): Add endian check.
28838 (vec_pack_trunc_v2si): Format change.
28839
28840 2011-02-04 Jakub Jelinek <jakub@redhat.com>
28841
28842 PR inline-asm/23200
28843 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
28844 do bb, locus and block comparison and disallow loads if it is not set.
28845 (stmt_is_replaceable_p): New function.
28846 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
28847 callers.
28848 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
28849 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
28850 SSA_NAME_DEF_STMT.
28851 * tree-flow.h (stmt_is_replaceable_p): New prototype.
28852
28853 2011-02-04 Joseph Myers <joseph@codesourcery.com>
28854
28855 * config/rs6000/xilinx.opt: New.
28856 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
28857
28858 2011-02-04 Joseph Myers <joseph@codesourcery.com>
28859
28860 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
28861
28862 2011-02-03 Anatoly Sokolov <aesok@post.ru>
28863
28864 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
28865 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28866 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
28867 secondary_reload_info, xtensa_secondary_reload): Remove.
28868 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
28869 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28870 (xtensa_preferred_reload_class): Make static. Change return and
28871 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
28872 Use CONST_DOUBLE_P predicate.
28873 (xtensa_preferred_output_reload_class): New function.
28874 (xtensa_secondary_reload): Make static.
28875
28876 2011-02-03 Joseph Myers <joseph@codesourcery.com>
28877
28878 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
28879 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
28880 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
28881
28882 2011-02-03 Jakub Jelinek <jakub@redhat.com>
28883
28884 PR middle-end/31490
28885 * output.h (SECTION_RELRO): Define.
28886 (SECTION_MACH_DEP): Adjust.
28887 (get_variable_section): New prototype.
28888 * varpool.c (varpool_finalize_named_section_flags): New function.
28889 (varpool_assemble_pending_decls): Call it.
28890 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
28891 * cgraphunit.c (cgraph_output_in_order): Call
28892 varpool_finalize_named_section_flags.
28893 * varasm.c (get_section): Allow section flags conflicts between
28894 relro and read-only sections if the section hasn't been declared yet.
28895 Set SECTION_OVERRIDE after diagnosing section type conflict.
28896 (get_variable_section): No longer static.
28897 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
28898 readonly sections that need relocations.
28899 (decl_readonly_section_1): New function.
28900 (decl_readonly_section): Use it.
28901
28902 Revert:
28903 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
28904 Steve Ellcey <sje@cup.hp.com>
28905
28906 PR middle-end/31490
28907 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
28908 if section attribute used.
28909
28910 2011-02-03 Jakub Jelinek <jakub@redhat.com>
28911
28912 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
28913 * config/darwin.c (SECTION_NO_ANCHOR): Define.
28914 (darwin_init_sections): Remove assertion.
28915
28916 2011-02-03 Nick Clifton <nickc@redhat.com>
28917
28918 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
28919 lt and ge.
28920 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
28921 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
28922 instead of "n" and "pz".
28923 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
28924 CC_FLAG_S.
28925
28926 2011-02-03 Jakub Jelinek <jakub@redhat.com>
28927
28928 PR target/47312
28929 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
28930 fma, expand FMA_EXPR as fma{,f,l} call.
28931
28932 PR lto/47274
28933 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
28934 copy them into a unsigned char variable and pass address of it to
28935 lto_output_data_stream.
28936
28937 PR target/47564
28938 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
28939 around backend_init_target and lang_dependent_init_target calls.
28940 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
28941 (verify_cgraph_node): Don't call set_cfun here. Use
28942 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
28943 Set error_found for incorrectly represented calls to thunks.
28944
28945 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
28946
28947 PR debug/43092
28948 PR rtl-optimization/43494
28949 * rtl.h (for_each_inc_dec_fn): New type.
28950 (for_each_inc_dec): Declare.
28951 * rtlanal.c (struct for_each_inc_dec_ops): New type.
28952 (for_each_inc_dec_find_inc_dec): New fn.
28953 (for_each_inc_dec_find_mem): New fn.
28954 (for_each_inc_dec): New fn.
28955 * dse.c (struct insn_size): Remove.
28956 (replace_inc_dec, replace_inc_dec_mem): Remove.
28957 (emit_inc_dec_insn_before): New fn.
28958 (check_for_inc_dec): Use it, along with for_each_inc_dec.
28959 (canon_address): Pass mem modes to cselib_lookup.
28960 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
28961 (cselib_lookup_from_insn): Likewise.
28962 (cselib_subst_to_values): Likewise.
28963 * cselib.c (find_slot_memmode): New var.
28964 (cselib_find_slot): New fn. Use it instead of
28965 htab_find_slot_with_hash everywhere.
28966 (entry_and_rtx_equal_p): Use find_slot_memmode.
28967 (autoinc_split): New fn.
28968 (rtx_equal_for_cselib_p): Rename and implement in terms of...
28969 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
28970 Deal with autoinc. Special-case recursion into MEMs.
28971 (cselib_hash_rtx): Likewise.
28972 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
28973 address and MEM modes.
28974 (cselib_subst_to_values): Add memmode, pass it on.
28975 Deal with autoinc.
28976 (cselib_lookup): Add memmode argument, pass it on.
28977 (cselib_lookup_from_insn): Add memmode.
28978 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
28979 (struct cselib_record_autoinc_data): New.
28980 (cselib_record_autoinc_cb): New fn.
28981 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
28982 mode to cselib_lookup. Reset autoinced REGs here instead of...
28983 (cselib_process_insn): ... here.
28984 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
28985 to cselib_lookup.
28986 (add_uses): Likewise, also to cselib_subst_to_values.
28987 (add_stores): Likewise.
28988 * sched-deps.c (add_insn_mem_dependence): Pass mode to
28989 cselib_subst_to_values.
28990 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
28991 * gcse.c (do_local_cprop): Adjusted.
28992 * postreload.c (reload_cse_simplify_set): Adjusted.
28993 (reload_cse_simplify_operands): Adjusted.
28994 * sel-sched-dump (debug_mem_addr_value): Pass mode.
28995
28996 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
28997
28998 PR tree-optimization/45122
28999 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29000 unsafe assumptions when there's more than one loop exit.
29001
29002 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29003
29004 PR target/47272
29005 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29006 Document using vector double with the load/store builtins, and
29007 that the load/store builtins always use Altivec instructions.
29008
29009 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29010 to use altivec memory instructions, even on VSX.
29011 (vector_altivec_store_<mode>): Ditto.
29012
29013 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29014 function.
29015
29016 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29017 V2DF, V2DI support to load/store overloaded builtins.
29018
29019 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29020 altivec load/store builtins for V2DF/V2DI types.
29021
29022 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29023 set avoid indexed addresses on power6 if -maltivec.
29024 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29025 vector_altivec_load/vector_altivec_store builtins.
29026 (altivec_expand_st_builtin): Ditto.
29027 (altivec_expand_builtin): Add VSX memory builtins.
29028 (rs6000_init_builtins): Add V2DI types to internal types.
29029 (altivec_init_builtins): Add support for V2DF/V2DI altivec
29030 load/store builtins.
29031 (rs6000_address_for_altivec): Insure memory address is appropriate
29032 for Altivec.
29033
29034 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29035 vec_vsx_ld and vec_vsx_st.
29036 (vsx_store_<mode>): Ditto.
29037
29038 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29039 variables to hold long long types for VSX vector memory builtins.
29040 (RS6000_BTI_unsigned_long_long): Ditto.
29041 (long_long_integer_type_internal_node): Ditti.
29042 (long_long_unsigned_type_internal_node): Ditti.
29043
29044 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29045 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29046 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29047
29048 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29049 short cuts.
29050 (vec_vsx_st): Ditto.
29051
29052 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29053
29054 * config/pa/pa-hpux10.opt: New.
29055 * config/hpux11.opt (pthread): New Driver option.
29056 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29057 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29058
29059 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29060
29061 * config/ia64/vms.opt: New.
29062 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29063
29064 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29065
29066 PR target/47580
29067 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29068 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29069 generator functions.
29070 (vsx_floatuns<VSi><mode>2): Ditto.
29071 (vsx_fix_trunc<mode><VSi>2): Ditto.
29072 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29073
29074 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29075
29076 * config/i386/djgpp.opt (posix): New Driver option.
29077
29078 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
29079
29080 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29081 Move to the unsupported targets list.
29082
29083 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
29084
29085 PR rtl-optimization/47525
29086 * df-scan.c: Update copyright years.
29087 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29088 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29089
29090 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29091
29092 * config/i386/sysv4.h (TARGET_VERSION): Remove.
29093 (SUBTARGET_RETURN_IN_MEMORY): Remove.
29094 (ASM_OUTPUT_ASCII): Remove.
29095 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29096
29097 2011-02-02 Jeff Law <law@redhat.com>
29098
29099 PR middle-end/47543
29100 * reload.c (find_reloads_address): Handle reg+d address where both
29101 components are invalid by reloading the entire address.
29102
29103 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29104 Richard Guenther <rguenther@suse.de>
29105
29106 PR tree-optimization/40979
29107 PR bootstrap/47044
29108 * passes.c (init_optimization_passes): After LIM call copy_prop
29109 and DCE to clean up.
29110 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29111
29112 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29113
29114 PR tree-optimization/47576
29115 PR tree-optimization/47555
29116 * doc/invoke.texi (scev-max-expr-complexity): Documented.
29117 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29118 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29119 * tree-scalar-evolution.c (follow_ssa_edge): Use
29120 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29121
29122 2011-02-02 Richard Guenther <rguenther@suse.de>
29123
29124 PR tree-optimization/47566
29125 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29126
29127 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29128
29129 PR debug/47106
29130 PR debug/47402
29131 * tree-inline.c (declare_return_variable): Remove unused caller
29132 variable.
29133
29134 PR debug/47106
29135 PR debug/47402
29136 * tree-flow-inline.h (clear_is_used, is_used_p): New.
29137 * cfgexpand.c (account_used_vars_for_block): Use them.
29138 * tree-nrv.c (tree_nrv): Likewise.
29139 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29140 (dump_scope_block): Likewise.
29141 (remove_unused_locals): Likewise.
29142
29143 PR debug/47106
29144 PR debug/47402
29145 * tree-inline.c (declare_return_variable): Add result decl to
29146 local decls only once.
29147 * gimple-low.c (record_vars_into): Mark newly-created variables
29148 as referenced.
29149
29150 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29151
29152 PR debug/47498
29153 PR debug/47501
29154 PR debug/45136
29155 PR debug/45130
29156 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29157 debug insns.
29158 (no_real_insns_p, schedule_block, set_priorities): Drop special
29159 treatment of boundary debug insns.
29160 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29161 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29162 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29163 (BOUNDARY_DEBUG_INSN_P): Likewise.
29164 (SCHEDULE_DEBUG_INSN_P): Likewise.
29165 * sched-rgn.c (init_ready_list): Drop special treatment of
29166 boundary debug insns.
29167 * final.c (rest_of_clean_state): Clear notes' BB.
29168
29169 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29170
29171 * config/openbsd.opt (assert=): New Driver option.
29172
29173 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29174
29175 * config/i386/nto.opt: New.
29176 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29177
29178 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29179
29180 * config/i386/netware.opt: New.
29181 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29182
29183 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29184
29185 * config/interix.opt (posix): New Driver option.
29186
29187 2011-02-01 DJ Delorie <dj@redhat.com>
29188
29189 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29190
29191 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29192 class for A0/A1.
29193
29194 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
29195
29196 PR tree-optimization/47561
29197 * toplev.c (process_options): Print the Graphite flags. Add
29198 flag_loop_flatten to the list of options requiring Graphite.
29199
29200 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29201
29202 * config/i386/cygming.opt (posix): New Driver option.
29203
29204 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29205
29206 * config/arm/vxworks.opt: New.
29207 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29208
29209 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29210
29211 * config/alpha/elf.opt: New.
29212 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29213 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29214
29215 2011-02-01 Richard Guenther <rguenther@suse.de>
29216
29217 PR tree-optimization/47559
29218 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29219 store-motion on references that can throw.
29220
29221 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
29222
29223 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29224 * tree-pass.h (TDF_CSELIB): New macro.
29225 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29226 cselib_lookup): Check for it rather than for TDF_DETAILS.
29227
29228 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
29229
29230 PR driver/47547
29231 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29232 is HOST_BIT_BUCKET.
29233
29234 * opts.c (finish_options): Don't add x_aux_base_name if it is
29235 HOST_BIT_BUCKET.
29236
29237 2011-02-01 Richard Guenther <rguenther@suse.de>
29238
29239 PR tree-optimization/47555
29240 Revert
29241 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
29242
29243 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29244
29245 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
29246
29247 PR gcc/46692
29248 * config/lm32/t-lm32: Add multilib for all CPU options.
29249
29250 2011-02-01 Richard Guenther <rguenther@suse.de>
29251
29252 PR tree-optimization/47541
29253 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29254 sure to have a field at offset zero.
29255
29256 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29257
29258 * config/arc/arc.opt (EB, EL): New Driver options.
29259
29260 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29261
29262 * config/alpha/osf5.opt: New.
29263 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29264
29265 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29266
29267 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29268
29269 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
29270
29271 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29272 -floop-interchange.
29273 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29274 is an alias of -floop-interchange and that it requires the
29275 Graphite infrastructure.
29276 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29277 flag_loop_interchange based on the value of flag_tree_loop_linear.
29278
29279 2011-01-31 Jakub Jelinek <jakub@redhat.com>
29280 Richard Guenther <rguenther@suse.de>
29281
29282 PR tree-optimization/47538
29283 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29284 type instead of r1type, except for comparisons. For right
29285 shifts and comparisons punt if there are mismatches in
29286 sizetype vs. non-sizetype types.
29287
29288 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29289
29290 * doc/sourcebuild.texi (Effective-Target Keywords): Document
29291 avx_runtime.
29292
29293 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29294
29295 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29296 version number.
29297 * configure: Regenerate.
29298
29299 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29300
29301 * configure.ac (gcc_cv_ld_static_option): Define.
29302 (gcc_cv_ld_dynamic_option): Define.
29303 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29304 instead.
29305 (HAVE_LD_STATIC_DYNAMIC): Update message.
29306 (LD_STATIC_OPTION): Define.
29307 (LD_DYNAMIC_OPTION): Define.
29308 * configure: Regenerate.
29309 * config.in: Regenerate.
29310 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29311 HAVE_LD_STATIC_DYNAMIC]: Use them.
29312
29313 2011-01-31 Nick Clifton <nickc@redhat.com>
29314
29315 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29316 registers inside interrupt handlers if the handler is not a leaf
29317 function.
29318
29319 2011-01-31 Nick Clifton <nickc@redhat.com>
29320
29321 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29322 reg_renumber returning an INVALID_REGNUM.
29323
29324 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29325
29326 PR libgcj/44341
29327 * doc/install.texi: Document host options discarded when cross
29328 configuring target libraries.
29329
29330 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29331
29332 Reverted:
29333 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
29334 PR debug/45136
29335 PR debug/45130
29336 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29337 debug insns.
29338 (no_real_insns_p, schedule_block, set_priorities): Drop special
29339 treatment of boundary debug insns.
29340 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29341 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29342 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29343 (BOUNDARY_DEBUG_INSN_P): Likewise.
29344 (SCHEDULE_DEBUG_INSN_P): Likewise.
29345 * sched-rgn.c (init_ready_list): Drop special treatment of
29346 boundary debug insns.
29347 * final.c (rest_of_clean-state): Clear notes' BB.
29348
29349 2011-01-31 Alan Modra <amodra@gmail.com>
29350
29351 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29352 toc relative expressions as we do in print_operand_address.
29353
29354 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
29355
29356 * doc/extend.texi: Follow spelling conventions.
29357 * doc/invoke.texi: Fix a typo.
29358
29359 2011-01-30 Joseph Myers <joseph@codesourcery.com>
29360
29361 * config/hpux11.opt: New.
29362 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29363 ia64*-*-hpux*): Use hpux11.opt.
29364
29365 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
29366
29367 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29368 to tmake_file.
29369
29370 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29371
29372 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29373 support sites.
29374
29375 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29376
29377 * doc/install.texi (Binaries): Remove outdated reference for
29378 Motorola 68HC11/68HC12 downloads.
29379
29380 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29381
29382 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29383 Drepper's paper.
29384
29385 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
29386
29387 PR bootstrap/47147
29388 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29389 used by NetBSD.
29390
29391 2011-01-28 Ahmad Sharif <asharif@google.com>
29392
29393 * value-prof.c (check_counter): Corrected error message.
29394
29395 2011-01-29 Jie Zhang <jie@codesourcery.com>
29396
29397 * config/arm/arm.c (arm_legitimize_reload_address): New.
29398 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29399 arm_legitimize_reload_address.
29400 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29401
29402 2011-01-28 Ian Lance Taylor <iant@google.com>
29403
29404 * godump.c (go_define): Ignore macros whose definitions include
29405 two adjacent operands.
29406
29407 2011-01-28 Jakub Jelinek <jakub@redhat.com>
29408
29409 PR target/42894
29410 * varasm.c (force_const_mem): Store copy of x in desc->constant
29411 instead of x itself.
29412 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29413 itself into REG_EQUAL note.
29414
29415 2011-01-28 Joseph Myers <joseph@codesourcery.com>
29416
29417 * config/freebsd.opt (posix, rdynamic): New Driver options.
29418
29419 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29420
29421 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29422 -Bstatic/-Bdynamic.
29423 * configure: Regenerate.
29424
29425 2011-01-27 Joseph Myers <joseph@codesourcery.com>
29426
29427 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29428 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29429
29430 2011-01-27 Anatoly Sokolov <aesok@post.ru>
29431
29432 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29433 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29434 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29435 (s390_preferred_reload_class): Make static. Change return and
29436 'rclass' argument type to reg_class_t.
29437
29438 2011-01-27 Jan Hubicka <jh@suse.cz>
29439
29440 PR middle-end/46949
29441 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29442 (process_function_and_variable_attributes): Check defined weakrefs.
29443
29444 2011-01-27 Martin Jambor <mjambor@suse.cz>
29445
29446 PR tree-optimization/47228
29447 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29448 build_ref_for_offset.
29449
29450 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29451
29452 * config/spu/spu-elf.h (ASM_SPEC): Remove.
29453
29454 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
29455
29456 PR rtl-optimization/46856
29457 * postreload.c (reload_combine_recognize_const_pattern): Do not
29458 separate cc0 setter and user on cc0 targets.
29459
29460 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
29461
29462 PR c/43082
29463 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29464 passed a VOID_TYPE expression, immediately emit an error and
29465 return error_mark_node.
29466
29467 2011-01-26 Jeff Law <law@redhat.com>
29468
29469 PR rtl-optimization/47464
29470 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29471 rather than may_trap_p as needed.
29472
29473 2011-01-26 DJ Delorie <dj@redhat.com>
29474
29475 PR rtl-optimization/46878
29476 * combine.c (insn_a_feeds_b): Check for the implicit cc0
29477 setter/user dependency as well.
29478
29479 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
29480
29481 PR rtl-optimization/44469
29482 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29483 after removing trivially dead basic blocks.
29484
29485 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29486
29487 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29488 * config/frv/frv.h (LINK_SPEC): Likewise.
29489 * config/i386/netware.h (LINK_SPEC): Likewise.
29490 * config/m68k/linux.h (ASM_SPEC): Likewise.
29491 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29492 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29493 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29494 * config/sparc/linux.h (ASM_SPEC): Likewise.
29495 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29496 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29497
29498 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29499
29500 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29501 * config/frv/frv.h (ASM_SPEC): Likewise.
29502 * config/m68k/linux.h (ASM_SPEC): Likewise.
29503 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29504 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29505 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29506 * config/sparc/linux.h (ASM_SPEC): Likewise.
29507 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29508 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29509
29510 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29511
29512 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29513 * config/frv/frv.h (LINK_SPEC): Likewise.
29514 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29515
29516 2011-01-26 Joseph Myers <joseph@codesourcery.com>
29517
29518 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29519 * config/frv/frv.h (ASM_SPEC): Likewise.
29520 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29521 * config/m68k/linux.h (ASM_SPEC): Likewise.
29522 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29523 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29524 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29525 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29526 * config/sparc/linux.h (ASM_SPEC): Likewise.
29527 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29528 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29529 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29530
29531 2011-01-26 Steve Ellcey <sje@cup.hp.com>
29532
29533 PR target/46997
29534 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29535 (*mux2): Ditto.
29536 (vec_extract_evenodd_help): Ditto.
29537 (vec_extract_evenv4hi): Ditto.
29538 (vec_extract_oddv4hi): Ditto.
29539 (vec_interleave_lowv2si): Ditto.
29540 (vec_interleave_highv2si): Ditto.
29541 (vec_extract_evenv2si): Ditto.
29542 (vec_extract_oddv2si: Ditto.
29543 (vec_pack_trunc_v2si): Ditto.
29544
29545 2011-01-22 Jan Hubicka <jh@suse.cz>
29546
29547 PR target/47237
29548 * cgraph.h (cgraph_local_info): New field can_change_signature.
29549 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29550 signature can change.
29551 (ipcp_estimate_growth): Call sequence simplify only if calle signature
29552 can change.
29553 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29554 (cgraph_function_versioning): We can not change signature of functions
29555 that don't allow that.
29556 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29557 (lto_input_node): Likewise.
29558 * ipa-inline.c (compute_inline_parameters): Compute
29559 local.can_change_signature.
29560 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29561 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29562 functions that can not change signature.
29563 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29564 init_cumulative_args): Do not use local calling conventions
29565 for functions that can not change signature.
29566
29567 2011-01-22 Jan Hubicka <jh@suse.cz>
29568
29569 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29570
29571 2011-01-26 Richard Guenther <rguenther@suse.de>
29572
29573 PR tree-optimization/47190
29574 * cgraphunit.c (process_common_attributes): New function.
29575 (process_function_and_variable_attributes): Use it.
29576
29577 2011-01-26 Richard Guenther <rguenther@suse.de>
29578
29579 PR lto/47423
29580 * cgraphbuild.c (record_eh_tables): Record reference to personality
29581 function.
29582
29583 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
29584
29585 PR debug/45454
29586 * sel-sched.c (moveup_expr): Don't let debug insns prevent
29587 non-debug insns from moving up.
29588
29589 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
29590
29591 PR target/40125
29592 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29593 t-dlldir{,-x} fragment for build and add it to tmake_file.
29594 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29595 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29596 * config/i386/t-dlldir: New file.
29597 (SHLIB_DLLDIR): Define.
29598 * config/i386/t-dlldir-x: New file.
29599 (SHLIB_DLLDIR): Define.
29600 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29601 (SHLIB_INSTALL): Use it.
29602
29603 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
29604
29605 PR target/47246
29606 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29607 lower bound of the allowed Thumb-2 coprocessor load/store
29608 index range to -256. Add explaining comment.
29609
29610 2011-01-25 Ian Lance Taylor <iant@google.com>
29611
29612 * godump.c (go_define): Improve lexing of macro expansion to only
29613 accept expressions which match Go spec.
29614
29615 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
29616
29617 PR c++/43601
29618 * tree.c (handle_dll_attribute): Handle it.
29619 * doc/extend.texi (@item dllexport): Mention it.
29620 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29621
29622 2011-01-25 Ian Lance Taylor <iant@google.com>
29623
29624 PR tree-optimization/26854
29625 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29626 (decl_jump_unsafe): Move higher in file, with no other change.
29627 (bind): Set has_jump_unsafe_decl if appropriate.
29628 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29629 (check_earlier_gotos): Likewise.
29630 (c_check_switch_jump_warnings): Likewise.
29631
29632 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
29633
29634 * doc/invoke.texi (Warning Options): Add missing hyphen.
29635 (-fprofile-dir): Minor grammatical fixes.
29636 (-fbranch-probabilities): Likewise.
29637
29638 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
29639
29640 PR debug/45136
29641 PR debug/45130
29642 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29643 debug insns.
29644 (no_real_insns_p, schedule_block, set_priorities): Drop special
29645 treatment of boundary debug insns.
29646 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29647 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29648 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29649 (BOUNDARY_DEBUG_INSN_P): Likewise.
29650 (SCHEDULE_DEBUG_INSN_P): Likewise.
29651 * sched-rgn.c (init_ready_list): Drop special treatment of
29652 boundary debug insns.
29653 * final.c (rest_of_clean-state): Clear notes' BB.
29654
29655 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29656
29657 * Makefile.in (LAMBDA_H): Removed.
29658 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
29659 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
29660 lambda-trans.o, and tree-loop-linear.o.
29661 (lto-symtab.o): Remove dependence on LAMBDA_H.
29662 (tree-loop-linear.o): Remove rule.
29663 (lambda-mat.o): Same.
29664 (lambda-trans.o): Same.
29665 (lambda-code.o): Same.
29666 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
29667 (tree-vect-slp.o): Same.
29668 * hwint.h (gcd): Moved here.
29669 (least_common_multiple): Same.
29670 * lambda-code.c: Removed.
29671 * lambda-mat.c: Removed.
29672 * lambda-trans.c: Removed.
29673 * lambda.h: Removed.
29674 * tree-loop-linear.c: Removed.
29675 * lto-symtab.c: Do not include lambda.h.
29676 * omega.c (gcd): Removed.
29677 * passes.c (init_optimization_passes): Remove pass_linear_transform.
29678 * tree-data-ref.c (print_lambda_vector): Moved here.
29679 (lambda_vector_copy): Same.
29680 (lambda_matrix_copy): Same.
29681 (lambda_matrix_id): Same.
29682 (lambda_vector_first_nz): Same.
29683 (lambda_matrix_row_add): Same.
29684 (lambda_matrix_row_exchange): Same.
29685 (lambda_vector_mult_const): Same.
29686 (lambda_vector_negate): Same.
29687 (lambda_matrix_row_negate): Same.
29688 (lambda_vector_equal): Same.
29689 (lambda_matrix_right_hermite): Same.
29690 * tree-data-ref.h: Do not include lambda.h.
29691 (lambda_vector): Moved here.
29692 (lambda_matrix): Same.
29693 (dependence_level): Same.
29694 (lambda_transform_legal_p): Removed declaration.
29695 (lambda_collect_parameters): Same.
29696 (lambda_compute_access_matrices): Same.
29697 (lambda_vector_gcd): Same.
29698 (lambda_vector_new): Same.
29699 (lambda_vector_clear): Same.
29700 (lambda_vector_lexico_pos): Same.
29701 (lambda_vector_zerop): Same.
29702 (lambda_matrix_new): Same.
29703 * tree-flow.h (least_common_multiple): Removed declaration.
29704 * tree-parloops.c (lambda_trans_matrix): Moved here.
29705 (LTM_MATRIX): Same.
29706 (LTM_ROWSIZE): Same.
29707 (LTM_COLSIZE): Same.
29708 (LTM_DENOMINATOR): Same.
29709 (lambda_trans_matrix_new): Same.
29710 (lambda_matrix_vector_mult): Same.
29711 (lambda_transform_legal_p): Same.
29712 * tree-pass.h (pass_linear_transform): Removed declaration.
29713 * tree-ssa-loop.c (tree_linear_transform): Removed.
29714 (gate_tree_linear_transform): Removed.
29715 (pass_linear_transform): Removed.
29716 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
29717 flag_loop_interchange.
29718
29719 2011-01-25 Jakub Jelinek <jakub@redhat.com>
29720
29721 PR tree-optimization/47265
29722 PR tree-optimization/47443
29723 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
29724 if name still has some uses.
29725
29726 2011-01-25 Martin Jambor <mjambor@suse.cz>
29727
29728 PR tree-optimization/47382
29729 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
29730 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
29731
29732 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
29733
29734 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
29735 sjlj_except_unwind_info.
29736
29737 2011-01-25 Richard Guenther <rguenther@suse.de>
29738
29739 PR tree-optimization/47426
29740 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
29741 visible functions results escape.
29742
29743 2011-01-25 Jakub Jelinek <jakub@redhat.com>
29744
29745 PR target/45701
29746 * config/arm/arm.c (any_sibcall_uses_r3): New function.
29747 (arm_get_frame_offsets): Use it.
29748
29749 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29750 Jakub Jelinek <jakub@redhat.com>
29751
29752 PR tree-optimization/47271
29753 * tree-if-conv.c (bb_postdominates_preds): New.
29754 (if_convertible_bb_p): Call bb_postdominates_preds.
29755 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
29756 (predicate_scalar_phi): Call bb_postdominates_preds.
29757
29758 2011-01-25 Nick Clifton <nickc@redhat.com>
29759
29760 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
29761 * config/rx/rx.c (rx_function_value): Likewise.
29762 (rx_promote_function_mode): Likewise.
29763 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
29764 in order to make it legitimate.
29765 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
29766 make sure that the first operand is the same as the result register.
29767 (addsi3_unspec): Delete.
29768 (subdi3): Do not accept immediate operands.
29769 (subdi3_internal): Likewise.
29770
29771 2011-01-25 Jeff Law <law@redhat.com>
29772
29773 PR rtl-optimization/37273
29774 * ira-costs.c (scan_one_insn): Detect constants living in memory and
29775 handle them like argument loads from stack slots. Do not double
29776 count memory for memory constants and argument loads from stack slots.
29777
29778 2011-01-25 Jakub Jelinek <jakub@redhat.com>
29779
29780 PR tree-optimization/47427
29781 PR tree-optimization/47428
29782 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
29783 coalesce if the new root var would be TREE_READONLY.
29784
29785 2011-01-25 Richard Guenther <rguenther@suse.de>
29786
29787 PR middle-end/47414
29788 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
29789 correct type for TBAA.
29790
29791 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29792
29793 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
29794 (close_phi_written_to_memory): Call for_each_index with
29795 dr_indices_valid_in_loop.
29796
29797 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29798
29799 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
29800 when it is initialized.
29801
29802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29803
29804 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
29805 call to graphite_find_data_references_in_stmt.
29806 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
29807 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
29808 call to graphite_find_data_references_in_stmt.
29809 (analyze_drs_in_stmts): Same.
29810 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
29811 in which the scalar analysis of indices is performed.
29812 (create_data_ref): Same. Update call to dr_analyze_indices.
29813 (find_data_references_in_stmt): Update call to create_data_ref.
29814 (graphite_find_data_references_in_stmt): Same.
29815 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
29816 declaration.
29817 (create_data_ref): Same.
29818 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
29819 call to create_data_ref.
29820
29821 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29822
29823 * graphite-sese-to-poly.c (build_poly_scop): Move
29824 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
29825
29826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29827
29828 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
29829 VAR_DECL, PARM_DECL, and RESULT_DECL.
29830
29831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29832
29833 * graphite-dependences.c (reduction_dr_1): Allow several reductions
29834 in a reduction PBB.
29835 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
29836 that have already been marked as PBB_IS_REDUCTION.
29837
29838 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29839
29840 * graphite-scop-detection.c (same_close_phi_node): New.
29841 (remove_duplicate_close_phi): New.
29842 (make_close_phi_nodes_unique): New.
29843 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
29844
29845 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29846
29847 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
29848 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
29849 of both data references to be the same.
29850
29851 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29852
29853 * graphite-dependences.c (build_lexicographical_constraint): Remove
29854 the gdim parameter.
29855 (build_lexicographical_constraint): Adjust call to
29856 ppl_powerset_is_empty.
29857 (dependence_polyhedron): Same.
29858 (graphite_legal_transform_dr): Same.
29859 (graphite_carried_dependence_level_k): Same.
29860 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
29861 parameter.
29862 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
29863
29864 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29865
29866 * graphite-sese-to-poly.c
29867 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
29868 (close_phi_written_to_memory): New.
29869 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
29870 and unshare_expr.
29871
29872 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29873
29874 * doc/install.texi: Update the expected version number of PPL to 0.11.
29875 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
29876 #if PPL_VERSION_MINOR < 11.
29877
29878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29879
29880 * graphite-dependences.c: Include graphite-cloog-util.h.
29881 (new_poly_ddr): Inlined into dependence_polyhedron.
29882 (free_poly_ddr): Moved close by new_poly_ddr.
29883 (dependence_polyhedron_1): Renamed dependence_polyhedron.
29884 Early return NULL when ppl_powerset_is_empty returns true.
29885 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
29886 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
29887 (graphite_legal_transform_dr): Call new_poly_ddr.
29888 (graphite_carried_dependence_level_k): Same.
29889 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
29890 (dot_transformed_deps_stmt_1): Removed.
29891 (dot_deps_stmt_1): Call dot_deps_stmt_2.
29892 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
29893 (dot_deps_1): Call dot_deps_2.
29894 * Makefile.in (graphite-dependences.o): Add missing dependence on
29895 graphite-cloog-util.h.
29896
29897 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29898
29899 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
29900 (build_lexicographical_constraint): Same.
29901 (dependence_polyhedron_1): Same.
29902 (graphite_legal_transform_dr): Same.
29903 (graphite_carried_dependence_level_k): Same.
29904 * graphite-ppl.c (ppl_powerset_is_empty): New.
29905 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
29906 * tree-data-ref.c (dump_data_reference): Print the basic block index.
29907
29908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29909
29910 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
29911 the "a followed by b" relation and document it.
29912
29913 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29914
29915 * graphite-dependences.c (build_lexicographical_constraint): Stop the
29916 iteration when the bag of constraints is empty.
29917
29918 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29919
29920 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
29921
29922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29923
29924 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
29925 nest and two loop depths as parameters.
29926 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
29927 lst_perfect_nestify.
29928
29929 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29930
29931 * graphite-dependences.c (print_pddr): Call
29932 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
29933
29934 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
29935
29936 * graphite-ppl.c (debug_gmp_value): New.
29937 * graphite-ppl.h (debug_gmp_value): Declared.
29938
29939 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
29940
29941 * doc/install.texi: Document availability of cloog-0.16.
29942
29943 2011-01-25 Vladimir Kargov <kargov@gmail.com>
29944
29945 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
29946 invalid postdominance info.
29947
29948 2011-01-24 Jan Hubicka <jh@suse.cz>
29949
29950 PR c/21659
29951 * doc/extend.texi (weak pragma): Drop claim that it must
29952 appear before definition.
29953 * varasm.c (merge_weak, declare_weak): Only sanity check
29954 that DECL is not output at a time it is declared weak.
29955
29956 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
29957
29958 * machmode.def: Fixed comments.
29959
29960 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
29961
29962 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
29963
29964 2011-01-24 Paul Koning <ni1d@arrl.net>
29965
29966 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
29967 WORDS_BIG_ENDIAN.
29968
29969 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
29970
29971 PR target/46519
29972 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
29973 (block_info): Add scanned and prev.
29974 (move_or_delete_vzeroupper_2): Return if the basic block
29975 has been scanned and the upper 128bit state is unchanged
29976 from the last scan.
29977 (move_or_delete_vzeroupper_1): Return true if the exit
29978 state is changed.
29979 (move_or_delete_vzeroupper): Visit basic blocks using the
29980 work-list based algorithm based on vt_find_locations in
29981 var-tracking.c.
29982
29983 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
29984
29985 2011-01-24 Nick Clifton <nickc@redhat.com>
29986
29987 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
29988 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
29989 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
29990 then define __v850e1__.
29991 * doc/invoke.texi: Document -mv850es.
29992
29993 2011-01-24 Richard Henderson <rth@redhat.com>
29994
29995 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
29996 compound unordered comparisons.
29997 * config/rx/rx.c (rx_split_fp_compare): Remove.
29998 * config/rx/rx-protos.h: Update.
29999 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30000 (cbranchsf4): Don't call rx_split_fp_compare.
30001 (*cbranchsf4): Use rx_split_cbranch.
30002 (*cmpsf): Don't accept "i" constraint.
30003 (*conditional_branch): Only valid after reload.
30004 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
30005
30006 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30007
30008 PR target/47385
30009 * config/rs6000/altivec.md (vector constant splitters): Add
30010 support for creating vector single precision constants if -mvsx is
30011 used and we would create the constant using Altivec primitives.
30012
30013 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
30014 Richard Sandiford <rdsandiford@googlemail.com>
30015
30016 PR rtl-optimization/47166
30017 * reload1.c (emit_reload_insns): Disable the spill_reg_store
30018 mechanism for PRE_MODIFY and POST_MODIFY.
30019 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30020 reloadreg.
30021
30022 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
30023
30024 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30025
30026 2011-01-22 Jan Hubicka <jh@suse.cz>
30027
30028 PR lto/47333
30029 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30030
30031 2011-01-22 Jan Hubicka <jh@suse.cz>
30032
30033 PR tree-optimization/43884
30034 PR lto/44334
30035 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30036 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30037
30038 2011-01-22 Anatoly Sokolov <aesok@post.ru>
30039
30040 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30041 * config/s390/s390.c (s390_register_move_cost,
30042 s390_memory_move_cost): New.
30043 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30044
30045 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30046
30047 PR middle-end/47401
30048 * except.c (sjlj_assign_call_site_values): Move setting the
30049 crtl->uses_eh_lsda flag to ...
30050 (sjlj_mark_call_sites): ... here.
30051 (sjlj_emit_function_enter): Support NULL dispatch label.
30052 (sjlj_build_landing_pads): In a function with no landing pads
30053 that still has must-not-throw regions, generate code to register
30054 a personality function with empty LSDA.
30055
30056 2011-01-21 Richard Henderson <rth@redhat.com>
30057
30058 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30059
30060 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30061
30062 * compare-elim.c: New file.
30063 * Makefile.in (OBJS-common): Add it.
30064 (compare-elim.o): New.
30065 * common.opt (fcompare-elim): New.
30066 * opts.c (default_options_table): Add OPT_fcompare_elim.
30067 * tree-pass.h (pass_compare_elim_after_reload): New.
30068 * passes.c (init_optimization_passes): Add it.
30069 * recog.h: Protect against re-inclusion.
30070 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30071 * doc/invoke.texi (-fcompare-elim): Document it.
30072 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30073 * doc/tm.texi: Rebuild.
30074
30075 2011-01-22 Nick Clifton <nickc@redhat.com>
30076
30077 * config/rx/rx.md (cstoresf4): Pass comparison operator to
30078 rx_split_fp_compare.
30079
30080 2011-01-22 Nick Clifton <nickc@redhat.com>
30081
30082 * config/rx/rx.md (UNSPEC_CONST): New.
30083 (deallocate_and_return): Wrap the amount popped off the stack in
30084 an UNSPEC_CONST in order to stop it being rejected by
30085 -mmax-constant-size.
30086 (pop_and_return): Add a "(return)" rtx.
30087 (call): Drop the immediate operand.
30088 (call_internal): Likewise.
30089 (call_value): Likewise.
30090 (call_value_internal): Likewise.
30091 (sibcall_internal): Likewise.
30092 (sibcall_value_internal): Likewise.
30093 (sibcall): Likewise. Generate an explicit call using
30094 sibcall_internal.
30095 (sibcall_value): Likewise.
30096 (mov<>): FAIL if a constant operand is not legitimate.
30097 (addsi3_unpsec): New pattern.
30098
30099 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30100 (ok_for_max_constant): New function.
30101 (gen_safe_add): New function.
30102 (rx_expand_prologue): Use gen_safe_add.
30103 (rx_expand_epilogue): Likewise.
30104 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
30105 UNSPEC CONSTs.
30106
30107 2011-01-21 Jeff Law <law@redhat.com>
30108
30109 PR tree-optimization/47053
30110 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30111 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30112 statements are deleted.
30113 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
30114 is nonempty, then purge dead edges and cleanup the CFG.
30115
30116 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30117
30118 PR debug/47402
30119 Temporarily revert:
30120 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30121 PR debug/47106
30122 * tree-dfa.c (create_var_ann): Mark variable as used.
30123
30124 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30125
30126 PR middle-end/45566
30127 * except.c (convert_to_eh_region_ranges): Emit queued no-region
30128 notes from other section in hot/cold partitioning even if
30129 last_action is -3. Increment call_site_base.
30130
30131 PR rtl-optimization/47366
30132 * fwprop.c (forward_propagate_into): Return bool. If
30133 any changes are made, -fnon-call-exceptions is used and
30134 REG_EH_REGION note is present, call purge_dead_edges
30135 and return true if it purged anything.
30136 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30137 any EH edges were purged.
30138
30139 2011-01-21 Jeff Law <law@redhat.com>
30140
30141 PR rtl-optimization/41619
30142 * caller-save.c (setup_save_areas): Break out code to determine
30143 which hard regs are live across calls by examining the reload chains
30144 so that it is always used.
30145 Eliminate code which checked REG_N_CALLS_CROSSED.
30146
30147 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30148
30149 PR tree-optimization/47355
30150 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30151 NOP has non-debug uses beyond PHIs in new_bb.
30152
30153 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30154
30155 PR debug/47106
30156 * cfgexpand.c (account_used_vars_for_block): Only account vars
30157 that are annotated as used.
30158 (estimated_stack_frame_size): Don't set TREE_USED.
30159 * tree-dfa.c (create_var_ann): Mark variable as used.
30160
30161 2011-01-21 Richard Guenther <rguenther@suse.de>
30162
30163 PR middle-end/47395
30164 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30165
30166 2011-01-21 Richard Guenther <rguenther@suse.de>
30167
30168 PR tree-optimization/47365
30169 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30170 (vn_reference_lookup_pieces): Adjust.
30171 (vn_reference_lookup): Likewise.
30172 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30173 (vn_reference_lookup_3): Only look through kills if in
30174 VN_WALKREWRITE mode.
30175 (vn_reference_lookup_pieces): Adjust.
30176 (vn_reference_lookup): Likewise.
30177 (visit_reference_op_load): Likewise.
30178 (visit_reference_op_store): Likewise.
30179 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30180 (compute_avail): Likewise.
30181 (eliminate): Likewise.
30182
30183 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30184
30185 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30186 DECL_IGNORED_P non-reg vars if they are used.
30187
30188 PR tree-optimization/47391
30189 * varpool.c (const_value_known_p): Return false if
30190 decl is volatile.
30191
30192 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
30193
30194 PR bootstrap/47215
30195 * config/i386/i386.c (ix86_local_alignment): Handle
30196 case for va_list_type_node is nil.
30197 (ix86_canonical_va_list_type): Likewise.
30198
30199 2011-01-21 Alan Modra <amodra@gmail.com>
30200
30201 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30202 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30203
30204 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30205
30206 * config/arm/arm.md (define_attr type): Rename f_load
30207 and f_store to f_fpa_load and f_fpa_store. Update.
30208 (write_conflict): Deal with rename fallout.
30209 (*push_fp_multi): Likewise.
30210 * config/arm/fpa.md (f_load): Use f_fpa_load.
30211 (f_store): Use f_fpa_store.
30212 (*movsf_fpa): Likewise.
30213 (*movdf_fpa): Likewise.
30214 (*movxf_fpa): Likewise.
30215 (*thumb2_movsf_fpa): Likewise.
30216 (*thumb2_movdf_fpa): Likewise.
30217 (*thumb2_movxf_fpa): Likewise.
30218 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30219 f_loadd and f_stored.
30220 (*thumb2_movdi_vfp): Likewise.
30221 (*thumb2_movsf_vfp): Fix attribute to f_loads.
30222 (*thumb2_movsi_vfp): Likewise.
30223 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30224 Use f_loads instead of f_load.
30225 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30226
30227 2011-01-20 Anatoly Sokolov <aesok@post.ru>
30228
30229 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30230 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30231 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30232 (xtensa_mode_dependent_address_p): New function.
30233 (constantpool_address_p): Make static. Change return type to bool.
30234 Change argument type to const_rtx. Use CONST_INT_P predicate.
30235
30236 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
30237
30238 PR debug/46583
30239 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30240
30241 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30242
30243 PR debug/47283
30244 * cfgexpand.c (expand_debug_expr): Instead of generating
30245 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30246 etc. handling.
30247
30248 2011-01-20 Richard Guenther <rguenther@suse.de>
30249
30250 PR middle-end/47370
30251 * tree-inline.c (remap_gimple_op_r): Recurse manually for
30252 the pointer operand of MEM_REFs.
30253
30254 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30255
30256 PR tree-optimization/46130
30257 * ipa-split.c (consider_split): If return_bb contains non-virtual
30258 PHIs other than for retval or if split_function would not adjust it,
30259 refuse to split.
30260
30261 2011-01-20 Richard Guenther <rguenther@suse.de>
30262
30263 PR tree-optimization/47167
30264 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30265 Revert previous change, only avoid enumeral type changes.
30266
30267 2011-01-19 Mike Stump <mikestump@comcast.net>
30268
30269 * doc/tm.texi.in (BRANCH_COST): Englishify.
30270 * doc/tm.texi (BRANCH_COST): Likewise.
30271
30272 2011-01-19 Dodji Seketeli <dodji@redhat.com>
30273
30274 PR c++/47291
30275 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30276 (gen_scheduled_generic_parms_dies): New functions.
30277 (gen_struct_or_union_type_die): Schedule template parameters DIEs
30278 generation for the end of CU compilation.
30279 (dwarf2out_finish): Generate template parameters DIEs here.
30280
30281 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30282
30283 PR debug/46240
30284 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30285 debug bind stmt on merge edges.
30286
30287 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30288
30289 PR debug/47079
30290 PR debug/46724
30291 * function.c (instantiate_expr): Instantiate incoming rtl of
30292 implicit arguments, and recurse on VALUE_EXPRs.
30293 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30294 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30295
30296 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30297
30298 * c-parser.c (c_parser_for_statement): Initialize
30299 collection_expression.
30300
30301 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30302
30303 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30304
30305 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30306
30307 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30308 (LINK_SHLIB_SPEC): Don't use %(link_path).
30309 (SUBTARGET_EXTRA_SPECS): Remove link_path.
30310
30311 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30312
30313 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30314 (NO_SHARED_LIB_SUPPORT): Remove.
30315 (LINK_SHLIB_SPEC): Remove one conditional definition.
30316
30317 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30318
30319 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30320 %{call_shared}.
30321 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30322 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30323 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30324 %{call_shared} and conditionals on these options not being passed.
30325 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30326 %{call_shared}.
30327
30328 2011-01-19 Jakub Jelinek <jakub@redhat.com>
30329
30330 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30331 simplify.
30332
30333 * ipa-split.c: Spelling fixes.
30334
30335 2011-01-19 Richard Henderson <rth@redhat.com>
30336
30337 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30338 (*mulsi3): Likewise.
30339
30340 * longlong.h [__mn10300__] (count_leading_zeros): New.
30341 [__mn10300__] (umul_ppmm, smul_ppmm): New.
30342 [__mn10300__] (add_ssaaaa, subddmmss): New.
30343 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30344 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30345
30346 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30347
30348 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30349
30350 2011-01-19 Richard Henderson <rth@redhat.com>
30351
30352 * config/mn10300/mn10300.md (addsi3_flags): New.
30353 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30354 (subsi3_flags, subc_internal, subdi3): New.
30355 (subdi3_internal, *subdi3_degenerate): New.
30356 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30357
30358 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30359 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30360 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
30361 * config/mn10300/mn10300-protos.h: Update.
30362 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30363 (return_ret): Likewise. Rename from return_internal_regs.
30364 (return_internal): Remove.
30365
30366 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30367 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30368 (mn10300_legitimate_constant_p): Likewise.
30369 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30370 (mn10300_frame_size): New.
30371 (mn10300_expand_prologue): Use it.
30372 (mn10300_expand_epilogue): Likewise.
30373 (mn10300_initial_offset): Likewise.
30374 * config/mn10300/mn10300-protos.h: Update.
30375 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30376 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30377 (prologue, epilogue, return_internal): Tidy output code.
30378 (mn10300_store_multiple_operation, return): Likewise.
30379 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30380 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30381 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30382 (load_pic, am33_load_pic): New.
30383 (mn10300_load_pic0, mn10300_load_pic1): New.
30384
30385 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30386 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30387 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30388 (cc_flags_for_mode, cc_flags_for_code): New.
30389 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30390 overflow flag is not valid. Validate that the flags we need
30391 for the comparison are valid.
30392 (mn10300_output_cmp): Remove.
30393 (mn10300_output_add): New.
30394 (mn10300_select_cc_mode): Use cc_flags_for_code.
30395 (mn10300_split_cbranch): New.
30396 (mn10300_match_ccmode): New.
30397 (mn10300_split_and_operand_count): New.
30398 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30399 to the function.
30400 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30401 (addsi3): ... here. Use mn10300_output_add.
30402 (*addsi3_flags): New.
30403 (*am33_subsi3, *mn10300_subsi3): Merge...
30404 (subsi3): ... here. Use attribute isa.
30405 (*subsi3_flags): New.
30406 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
30407 when possible.
30408 (*am33_andsi3, *mn10300_andsi3): Merge...
30409 (andsi3): ... here.
30410 (*andsi3_flags): New.
30411 (andsi3 splitters): New.
30412 (*am33_iorsi3, *mn10300_iorsi3): Merge...
30413 (iorsi3): ... here.
30414 (*iorsi3_flags): New.
30415 (*am33_xorsi3, *mn10300_xorsi3): Merge...
30416 (xorsi3): ... here.
30417 (*xorsi3_flags): New.
30418 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30419 (one_cmplsi2): ... here.
30420 (*one_cmplsi2_flags): New.
30421 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
30422 instead of "dax" in constraints. Use mn10300_split_cbranch.
30423 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
30424 use matching constraints to eliminate a self-comparison.
30425 (*integer_conditional_branch): Rename from integer_conditional_branch.
30426 Use int_mode_flags to match CC_REG.
30427 (*cbranchsi4_btst, *btstsi): New.
30428 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
30429 mn10300_split_cbranch.
30430 (*am33_cmpsf): Rename from am33_cmpsf.
30431 (*float_conditional_branch): Rename from float_conditional_branch.
30432 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30433 (zero_extendqisi2): ... here.
30434 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30435 (zero_extendhisi2): ... here.
30436 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30437 (extendqisi2): ... here.
30438 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30439 (extendhisi2): ... here.
30440 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30441 (ashlsi3): ... here.
30442 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30443 (lshrsi3): ... here.
30444 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
30445 (ashrsi3): ... here.
30446 (consecutive add peephole): Remove.
30447 * config/mn10300/predicates.md (label_ref_operand): New.
30448 (int_mode_flags): New.
30449 (CCZN_comparison_operator): New.
30450
30451 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30452 (throughput_42_latency_43): New reservation.
30453 (mulsidi3, umulsidi3): New expanders.
30454 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
30455 the MDR register to allocation; separately allocate the low and
30456 high parts of the DImode result.
30457 (umulsidi3_internal): Similarly.
30458 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30459 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
30460 (udivsi3, umodsi3): Remove.
30461 (udivmodsi4, divmodsi4): New expanders.
30462 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
30463 (*divmodsi4): Simiarly.
30464 (ext_internal): New.
30465
30466 * config/mn10300/constraints.md ("z"): New constraint.
30467 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30468 (FIXED_REGISTERS): Don't fix MDR.
30469 (CALL_USED_REGSITERS): Reformat nicely.
30470 (REG_ALLOC_ORDER): Add MDR.
30471 (enum regclass): Add MDR_REGS.
30472 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30473 (IRA_COVER_CLASSES): Add MDR_REGS.
30474 (REGNO_REG_CLASS): Handle MDR_REG.
30475 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30476 (mn10300_register_move_cost): Likewise.
30477 * config/mn10300/mn10300.md (MDR_REG): New.
30478 (*movsi_internal): Handle moves to/from MDR_REGS.
30479
30480 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30481 POST_MODIFY.
30482 (mn10300_secondary_reload): Tidy combination reload classes.
30483 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30484 addresses for AM33. Allow symbolic offsets for reg+imm.
30485 (mn10300_regno_in_class_p): New.
30486 (mn10300_legitimize_reload_address): New.
30487 * config/mn10300/mn10300.h (enum reg_class): Remove
30488 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30489 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
30490 SP_OR_GENERAL_REGS.
30491 (REG_CLASS_NAMES): Update to match.
30492 (REG_CLASS_CONTENTS): Likewise.
30493 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30494 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30495 (REGNO_IN_RANGE_P): Remove.
30496 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30497 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30498 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30499 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30500 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30501 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30502 (REGNO_GENERAL_P): New.
30503 (HAVE_POST_MODIFY_DISP): New.
30504 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30505 (LEGITIMIZE_RELOAD_ADDRESS): New.
30506 * config/mn10300/mn10300-protos.h: Update.
30507
30508 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30509 DATA_REGS for AM33 stack-pointer destination.
30510 (mn10300_preferred_output_reload_class): Likewise.
30511 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30512 into a form appropriate for ...
30513 (TARGET_SECONDARY_RELOAD): New.
30514 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30515 * config/mn10300/mn10300-protos.h: Update.
30516 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30517 reload_insi; use the "A" constraint for the scratch; handle AM33
30518 moves of sp to non-address registers.
30519
30520 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30521 (*movqi_internal): ... here.
30522 (*am33_movhi, *mn10300_movhi): Merge into...
30523 (*movhi_internal): ... here.
30524 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
30525 as the source/destination of moves from/to SP.
30526 (movsf): Only allow for AM33-2.
30527 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30528 any integer constant constraint. Only allow for AM33-2. Tidy
30529 all of the alternative outputs.
30530 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30531 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
30532 for MN103.
30533 (udivsi3, umodsi3): New patterns for MN103 only.
30534
30535 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
30536
30537 * doc/tm.texi.in: Spell out that a lack of register class unions
30538 can lead to ICEs.
30539 * doc/tm.texi: Regenerate.
30540
30541 2011-01-19 Jakub Jelinek <jakub@redhat.com>
30542
30543 PR rtl-optimization/47337
30544 * dce.c (check_argument_store): New function.
30545 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
30546
30547 PR tree-optimization/47290
30548 * tree-eh.c (infinite_empty_loop_p): New function.
30549 (cleanup_empty_eh): Use it.
30550
30551 2011-01-18 Steve Ellcey <sje@cup.hp.com>
30552
30553 PR target/46997
30554 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30555 (a64_expand_widen_sum): Ditto.
30556 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30557 (vec_extract_evenodd_help): Ditto.
30558 (vec_extract_evenv4hi): Ditto.
30559 (vec_extract_oddv4hi): Ditto.
30560 (vec_extract_evenv2si): Ditto.
30561 (vec_extract_oddv2si): Ditto.
30562 (vec_extract_evenv2sf): Ditto.
30563 (vec_extract_oddv2sf): Ditto.
30564 (vec_pack_trunc_v4hi: Ditto.
30565 (vec_pack_trunc_v2si): Ditto.
30566 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30567 (vec_interleave_highv8qi): Ditto.
30568 (mix1_r): Ditto.
30569 (vec_extract_oddv8qi): Ditto.
30570 (vec_interleave_lowv4hi): Ditto.
30571 (vec_interleave_highv4hi): Ditto.
30572 (vec_interleave_lowv2si): Ditto.
30573 (vec_interleave_highv2si): Ditto.
30574
30575 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30576
30577 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30578 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30579 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
30580 (pa_c_mode_for_suffix): New.
30581 (TARGET_EXPAND_BUILTIN): Define.
30582 (TARGET_C_MODE_FOR_SUFFIX): Define.
30583 (pa_builtins): Define.
30584 (pa_init_builtins): Register __float128 type and init new support
30585 builtins.
30586 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30587 * config/pa/quadlib.c (_U_Qfcopysign): New.
30588
30589 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
30590
30591 PR middle-end/46894
30592 * explow.c (allocate_dynamic_stack_space): Do not assume more than
30593 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30594 are defined.
30595
30596 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30597
30598 PR tree-optimization/47179
30599 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30600 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30601
30602 2011-01-18 Richard Guenther <rguenther@suse.de>
30603
30604 PR rtl-optimization/47216
30605 * emit-rtl.c: Include tree-flow.h.
30606 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30607 of replicating it with different semantics.
30608 * Makefile.in (emit-rtl.o): Adjust.
30609
30610 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30611
30612 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30613 (cortex_a9_dp): Handle neon types correctly.
30614
30615 2011-01-18 Jakub Jelinek <jakub@redhat.com>
30616
30617 PR rtl-optimization/47299
30618 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30619 subtarget. Use normal multiplication if both operands are constants.
30620 * expmed.c (expand_widening_mult): Don't try to optimize constant
30621 multiplication if op0 has VOIDmode. Convert op1 constant to mode
30622 before using it.
30623
30624 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30625
30626 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
30627 spacing after 'e.g.', typos, comma, hyphenation.
30628
30629 2011-01-17 Richard Henderson <rth@redhat.com>
30630
30631 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
30632 (rx_restricted_mem_operand): New.
30633 (rx_shift_operand): Use register_operand.
30634 (rx_source_operand, rx_compare_operand): Likewise.
30635 * config/rx/rx.md (addsi3_flags): New expander.
30636 (adddi3): Rewrite as expander.
30637 (adc_internal, *adc_flags, adddi3_internal): New patterns.
30638 (subsi3_flags): New expander.
30639 (subdi3): Rewrite as expander.
30640 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
30641
30642 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
30643 (rx_init_builtins): Remove sat builtin.
30644 (rx_expand_builtin): Likewise.
30645 * config/rx/rx.md (ssaddsi3): New.
30646 (*sat): Rename from sat. Represent the CC_REG input.
30647
30648 * config/rx/predicates.md (rshift_operator): New.
30649 * config/rx/rx.c (rx_expand_insv): Remove.
30650 * config/rx/rx-protos.h: Update.
30651 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
30652 operand to the canonical position.
30653 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
30654 (*bitclr, *bitclr_in_memory): Similarly.
30655 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
30656 (insv): Retain the zero_extract in the expansion.
30657
30658 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
30659 (bswaphi2, bitinvert, revw): Likewise.
30660
30661 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
30662 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
30663 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
30664 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
30665 (bitset, bitset_in_memory): Likewise.
30666 (bitinvert, bitinvert_in_memory): Likewise.
30667 (bitclr, bitclr_in_memory): Likewise.
30668 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
30669 (rx_strend, rx_cmpstrn): Likewise.
30670 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
30671 (bitop peep2 patterns): Remove.
30672
30673 * config/rx/rx.c (rx_match_ccmode): New.
30674 * config/rx/rx-protos.h: Update.
30675 * config/rx/rx.md (abssi2): Clobber, don't set flags.
30676 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
30677 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
30678 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
30679 (fix_truncsfsi2, floatsisf2): Likewise.
30680 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
30681 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
30682 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
30683 (*subsi3_flags, *xorsi3_flags): New.
30684
30685 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
30686
30687 * config/rx/rx.c (rx_print_operand): Remove workaround for
30688 unsplit comparison operations.
30689
30690 * config/rx/rx.md (movsicc): Split after reload.
30691 (*movsicc): Merge *movsieq and *movsine via match_operator.
30692 (*stcc): New pattern.
30693
30694 * config/rx/rx.c (rx_float_compare_mode): Remove.
30695 * config/rx/rx.h (rx_float_compare_mode): Remove.
30696 * config/rx/rx.md (cstoresi4): Split after reload.
30697 (*sccc): New pattern.
30698
30699 * config/rx/predicates.md (label_ref_operand): New.
30700 (rx_z_comparison_operator): New.
30701 (rx_zs_comparison_operator): New.
30702 (rx_fp_comparison_operator): New.
30703 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
30704 Validate that the flags are set properly for the comparison.
30705 (rx_gen_cond_branch_template): Remove.
30706 (rx_cc_modes_compatible): Remove.
30707 (mode_from_flags): New.
30708 (flags_from_code): Rename from flags_needed_for_conditional.
30709 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
30710 (rx_select_cc_mode): Likewise.
30711 (rx_split_fp_compare): New.
30712 (rx_split_cbranch): New.
30713 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
30714 (*cbranchsi4): Use match_operator and rx_split_cbranch.
30715 (*cbranchsf4): Similarly.
30716 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
30717 match_operator and rx_split_cbranch.
30718 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
30719 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
30720 (*cmpsi): Rename from cmpsi.
30721 (*tstsi): Rename from tstsi.
30722 (*cmpsf): Rename from cmpsf; use CC_Fmode.
30723 (*conditional_branch): Rename from conditional_branch.
30724 (*reveresed_conditional_branch): Remove.
30725 (b<code>): Remove expander.
30726 * config/rx/rx-protos.h: Update.
30727
30728 * config/rx/rx.c (rx_compare_redundant): Remove.
30729 * config/rx/rx.md (cmpsi): Don't use it.
30730 * config/rx/rx-protos.h: Update.
30731
30732 * config/rx/rx-modes.def (CC_F): New mode.
30733 * config/rx/rx.c (rx_select_cc_mode): New.
30734 * config/rx/rx.h (SELECT_CC_MODE): Use it.
30735 * config/rx/rx-protos.h: Update.
30736
30737 2011-01-17 Richard Henderson <rth@redhat.com>
30738
30739 * except.c (dump_eh_tree): Fix stray ; after for statement.
30740
30741 2011-01-17 Richard Guenther <rguenther@suse.de>
30742
30743 PR tree-optimization/47313
30744 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
30745 handling before copying the body. Properly deal with
30746 by-reference result in SSA form.
30747
30748 2011-01-17 Ian Lance Taylor <iant@google.com>
30749
30750 PR target/47219
30751 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
30752 (struct_value_alias_set): Don't define.
30753 (sparc_option_override): Don't set sparc_sr_alias_set and
30754 struct_value_alias_set.
30755 (save_or_restore_regs): Use gen_frame_mem rather than calling
30756 set_mem_alias_set.
30757 (sparc_struct_value_rtx): Likewise.
30758
30759 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
30760
30761 PR target/47318
30762 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
30763 (_mm_maskstore_pd): Likewise.
30764 (_mm_maskload_ps): Likewise.
30765 (_mm_maskstore_ps): Likewise.
30766 (_mm256_maskload_pd): Change mask to __m256i.
30767 (_mm256_maskstore_pd): Likewise.
30768 (_mm256_maskload_ps): Likewise.
30769 (_mm256_maskstore_ps): Likewise.
30770
30771 * config/i386/i386-builtin-types.def: Updated.
30772 (ix86_expand_special_args_builtin): Likewise.
30773
30774 * config/i386/i386.c (bdesc_special_args): Update
30775 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
30776 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
30777 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
30778 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
30779
30780 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
30781 Use <avxpermvecmode> on mask register.
30782 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
30783
30784 2011-01-17 Olivier Hainque <hainque@adacore.com>
30785 Michael Haubenwallner <michael.haubenwallner@salomon.at>
30786 Eric Botcazou <ebotcazou@adacore.com>
30787
30788 PR target/46655
30789 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
30790 if <= USHRT_MAX in 32-bit mode.
30791
30792 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30793
30794 * doc/install.texi (Configuration, Specific): Wrap long
30795 lines in examples. Allow line wrapping in long options
30796 and URLs where beneficial for PDF output.
30797
30798 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
30799
30800 * config/mips/mips.c (mips_classify_symbol): Don't return
30801 SYMBOL_PC_RELATIVE for nonlocal labels.
30802
30803 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
30804
30805 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
30806
30807 2011-01-15 Jan Hubicka <jh@suse.cz>
30808
30809 PR tree-optimization/47276
30810 * ipa.c (function_and_variable_visibility): Do not try to mark alias
30811 declarations as needed.
30812
30813 2011-01-15 Martin Jambor <mjambor@suse.cz>
30814
30815 * common.opt (fdevirtualize): New flag.
30816 * doc/invoke.texi (Option Summary): Document it.
30817 * opts.c (default_options_table): Add devirtualize flag.
30818 * ipa-prop.c (detect_type_change): Return immediately if
30819 devirtualize flag is not set.
30820 (detect_type_change_ssa): Likewise.
30821 (compute_known_type_jump_func): Likewise.
30822 (ipa_analyze_virtual_call_uses): Likewise.
30823
30824 2011-01-14 Martin Jambor <mjambor@suse.cz>
30825
30826 PR tree-optimization/45934
30827 PR tree-optimization/46302
30828 * ipa-prop.c (type_change_info): New type.
30829 (stmt_may_be_vtbl_ptr_store): New function.
30830 (check_stmt_for_type_change): Likewise.
30831 (detect_type_change): Likewise.
30832 (detect_type_change_ssa): Likewise.
30833 (compute_complex_assign_jump_func): Check for dynamic type change.
30834 (compute_complex_ancestor_jump_func): Likewise.
30835 (compute_known_type_jump_func): Likewise.
30836 (compute_scalar_jump_functions): Likewise.
30837 (ipa_analyze_virtual_call_uses): Likewise.
30838 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
30839
30840 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30841
30842 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
30843 * config/i386/i386.opt (msse5): New Alias.
30844
30845 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30846
30847 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30848 * config/sparc/linux64.h (CC1_SPEC): Likewise.
30849 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30850 * config/sparc/sparc.h (CC1_SPEC): Likewise.
30851
30852 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30853
30854 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
30855 -mcpu options.
30856 * config/sparc/linux64.h (CC1_SPEC): Likewise.
30857 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
30858 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
30859 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
30860 Likewise.
30861 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
30862
30863 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30864
30865 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
30866
30867 2011-01-14 Mike Stump <mikestump@comcast.net>
30868
30869 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
30870 * config/fr30/fr30.md: Likweise
30871 (movsi_push): Likewise.
30872 (movsi_pop): Likewise.
30873 (enter_func): Likewise.
30874 * config/moxie/moxie.md (movsi_push): Likewise.
30875 (movsi_pop): Likewise.
30876
30877 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30878
30879 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
30880 %{no_archive} %{exact_version}.
30881 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
30882 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
30883 %{no_archive} %{exact_version}.
30884 * config/mips/openbsd.h (LINK_SPEC): Likewise.
30885 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
30886 * config/mips/vxworks.h: Likewise.
30887
30888 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30889
30890 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
30891
30892 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30893
30894 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
30895 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
30896
30897 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30898
30899 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
30900 -nodefaultlib.
30901
30902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30903
30904 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
30905 for mcpu not cpu.
30906 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
30907 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
30908 not cpu.
30909 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
30910 Don't handle -shlib.
30911
30912 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30913
30914 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
30915 (CC1_SPEC): Don't handle -profile.
30916
30917 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30918
30919 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
30920 * config/mips/mips.h (CC1_SPEC): Likewise.
30921
30922 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30923
30924 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
30925 * config/mips/mips.h (CC1_SPEC): Likewise.
30926
30927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30928
30929 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
30930 * config/m32r/linux.h (LINK_SPEC): Likewise.
30931 * config/mips/linux.h (LINK_SPEC): Likewise.
30932 * config/mips/linux64.h (LINK_SPEC): Likewise.
30933 * config/sparc/linux.h (LINK_SPEC): Likewise.
30934 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
30935 LINK_SPEC): Likewise.
30936 * config/xtensa/linux.h (LINK_SPEC): Likewise.
30937
30938 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30939
30940 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
30941 %{version:-v}.
30942 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
30943
30944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30945
30946 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
30947 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30948
30949 2011-01-14 Joseph Myers <joseph@codesourcery.com>
30950
30951 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
30952
30953 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30954
30955 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
30956 supports -Bstatic/-Bdynamic.
30957 * configure: Regenerate.
30958
30959 2011-01-14 Jan Hubicka <jh@suse.cz>
30960 Jack Howarth <howarth@bromo.med.uc.edu>
30961
30962 PR target/46037
30963 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
30964 when checking debug_info_level. Test write_symbols instead of
30965 debug_hooks->var_location when setting flag_var_tracking_uninit.
30966
30967 2011-01-14 Richard Guenther <rguenther@suse.de>
30968
30969 PR tree-optimization/47179
30970 * target.def (ref_may_alias_errno): New target hook.
30971 * targhooks.h (default_ref_may_alias_errno): Declare.
30972 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
30973 (default_ref_may_alias_errno): New function.
30974 * target.h (struct ao_ref_s): Declare.
30975 * tree-ssa-alias.c: Include target.h.
30976 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
30977 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
30978 (targhooks.o): Likewise.
30979 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
30980 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
30981
30982 2011-01-14 Richard Guenther <rguenther@suse.de>
30983
30984 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
30985
30986 2011-01-14 Richard Guenther <rguenther@suse.de>
30987
30988 PR tree-optimization/47280
30989 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
30990 return CFG changes.
30991 (tree_ssa_forward_propagate_single_use_vars): Deal with
30992 CFG changes from associate_plusminus.
30993
30994 2011-01-14 Richard Guenther <rguenther@suse.de>
30995
30996 PR middle-end/47281
30997 Revert
30998 2011-01-11 Richard Guenther <rguenther@suse.de>
30999
31000 PR tree-optimization/46076
31001 * tree-ssa.c (useless_type_conversion_p): Conversions from
31002 unprototyped to empty argument list function types are useless.
31003
31004 2011-01-14 Richard Guenther <rguenther@suse.de>
31005
31006 PR tree-optimization/47286
31007 * tree-ssa-structalias.c (new_var_info): Register variables are global.
31008
31009 2011-01-14 Martin Jambor <mjambor@suse.cz>
31010
31011 PR middle-end/46823
31012 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31013
31014 2011-01-13 Anatoly Sokolov <aesok@post.ru>
31015
31016 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31017 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31018 * config/xtensa/xtensa.c (xtensa_libcall_value,
31019 xtensa_function_value_regno_p): New functions.
31020 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31021
31022 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
31023
31024 PR c++/47213
31025 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31026 PE specific hook.
31027 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31028 New function prototype.
31029 * config/i386/winnt.c (i386_pe_assemble_visibility):
31030 Warn only if attribute was specified by user.
31031
31032 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31033
31034 PR target/47251
31035 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31036 floating point.
31037 (floatunsdidf2_fcfidu): Ditto.
31038
31039 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31040
31041 * config/s390/s390.c (print_operand_address): Replace 'error' with
31042 'output_operand_lossage'.
31043 (print_operand): Likewise.
31044
31045 2011-01-13 Jeff Law <law@redhat.com>
31046
31047 PR rtl-optimization/39077
31048 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31049 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31050 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31051 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31052 * gcse.c (prune_insertions_deletions): New function.
31053 (compute_pre_data): Use it.
31054
31055 2011-01-13 Dodji Seketeli <dodji@redhat.com>
31056
31057 PR debug/PR46973
31058 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31059 static function.
31060 (prune_unused_types_mark): Use it.
31061
31062 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
31063
31064 PR rtl-optimization/45352
31065 * sel-sched.c: Update copyright years.
31066 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31067 in the advancing loop when we have issued issue_rate insns.
31068
31069 2011-01-12 Richard Henderson <rth@redhat.com>
31070
31071 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31072 (TARGET_MD_ASM_CLOBBERS): New.
31073
31074 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31075 (TARGET_DELEGITIMIZE_ADDRESS): New.
31076
31077 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31078 (clzsi2, *bsch): New patterns.
31079
31080 * config/mn10300/mn10300.md (INT): New mode iterator.
31081 (*mov<INT>_clr): New pattern, and peep2 to generate it.
31082
31083 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31084 flag_split_wide_types.
31085
31086 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31087 (mn10300_trampoline_init): Rewrite without a template, an immediate
31088 load and a direct branch.
31089 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31090
31091 2011-01-12 Anatoly Sokolov <aesok@post.ru>
31092
31093 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31094 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31095 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31096 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31097
31098 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
31099
31100 PR debug/47209
31101 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31102 of type.
31103
31104 2011-01-12 Jan Hubicka <jh@suse.cz>
31105
31106 PR driver/47244
31107 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31108 (PLUGIN_COND_CLOSE): New macro.
31109 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31110
31111 2011-01-12 Richard Guenther <rguenther@suse.de>
31112
31113 PR lto/47259
31114 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31115 register variables in a MEM_REF.
31116
31117 2011-01-12 Joseph Myers <joseph@codesourcery.com>
31118
31119 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31120 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31121 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31122 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31123 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31124 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31125 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31126 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31127 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31128 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31129 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31130 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31131 * config/gnu-user.h: New. Copied from linux.h.
31132 (LINUX_TARGET_STARTFILE_SPEC): Rename to
31133 GNU_USER_TARGET_STARTFILE_SPEC.
31134 (LINUX_TARGET_ENDFILE_SPEC): Rename to
31135 GNU_USER_TARGET_ENDFILE_SPEC.
31136 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31137 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31138 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31139 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31140 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31141 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31142 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31143 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31144 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31145 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31146 * config/arm/linux-eabi.h (CC1_SPEC): Use
31147 GNU_USER_TARGET_CC1_SPEC.
31148 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31149 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31150 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31151 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31152 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31153 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31154 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31155 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31156
31157 2011-01-12 Richard Guenther <rguenther@suse.de>
31158
31159 PR other/46946
31160 * doc/invoke.texi (ffast-math): Document it is turned on
31161 with -Ofast.
31162
31163 2011-01-12 Jan Hubicka <jh@suse.cz>
31164
31165 PR tree-optimization/47233
31166 * opts.c (common_handle_option): Disable ipa-reference with profile
31167 feedback.
31168
31169 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31170
31171 * c-parser.c (c_parser_objc_at_property_declaration): Improved
31172 error message.
31173
31174 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31175
31176 * c-parser.c (c_lex_one_token): Updated and reindented some
31177 comments. No changes in code.
31178
31179 2011-01-11 Ian Lance Taylor <iant@google.com>
31180
31181 * godump.c (go_output_var): Don't output the variable if there is
31182 already a type with the same name.
31183
31184 2011-01-11 Ian Lance Taylor <iant@google.com>
31185
31186 * godump.c (go_format_type): Don't generate float80.
31187
31188 2011-01-11 Richard Henderson <rth@redhat.com>
31189
31190 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31191 declaration. Rewrite for both speed and size.
31192 (mn10300_address_cost_1): Remove.
31193 (mn10300_register_move_cost): New.
31194 (mn10300_memory_move_cost): New.
31195 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
31196 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
31197 extensions, shifts, BSWAP, CLZ.
31198 (mn10300_wide_const_load_uses_clr): Remove.
31199 (TARGET_REGISTER_MOVE_COST): New.
31200 (TARGET_MEMORY_MOVE_COST): New.
31201 * config/mn10300/mn10300-protos.h: Update.
31202 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31203
31204 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31205 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31206 * config/mn10300/mn10300-protos.h: Update.
31207 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31208 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31209 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31210 (*test_int_bitfield, *test_byte_bitfield): Remove.
31211 (*bit_test, *subreg_bit_test): Remove.
31212 * config/mn10300/predicates.md (const_8bit_operand): Remove.
31213
31214 * config/mn10300/constraints.md ("c"): Rename from "A".
31215 ("A", "D"): New constraint letters.
31216 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31217 (fmssf4, fnmasf4, fnmssf4): Likewise.
31218
31219 * config/mn10300/mn10300.md (isa): New attribute.
31220 (enabled): New attribute.
31221
31222 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31223 (abssf2, negsf2): Define only for hardware fp.
31224 (sqrtsf2): Reformat.
31225 (addsf3, subsf3, mulsf3): Merge expander and insn.
31226
31227 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31228 (DEBUGGER_AUTO_OFFSET): Remove.
31229 (DEBUGGER_ARG_OFFSET): Remove.
31230
31231 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31232 Emit register stores with the same offsets as the hardware.
31233 (mn10300_store_multiple_operation): Don't check that the register
31234 save offsets are monotonic.
31235 * config/mn10300/mn10300-protos.h: Update.
31236
31237 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31238
31239 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31240 in terms of the value on the stack, not the MDR register.
31241
31242 2011-01-11 Jan Hubicka <jh@suse.cz>
31243
31244 PR lto/45721
31245 PR lto/45375
31246 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31247 (symbol_alias_set_destroy, symbol_alias_set_contains,
31248 propagate_aliases_backward): Declare.
31249 * lto-streamer-out.c (struct sets): New sturcture.
31250 (trivally_defined_alias): New function.
31251 (output_alias_pair_p): Rewrite.
31252 (output_unreferenced_globals): Fix output of alias pairs.
31253 (produce_symtab): Likewise.
31254 * ipa.c (function_and_variable_visibility): Set weak alias destination
31255 as needed in lto.
31256 * varasm.c (symbol_alias_set_t): Remove.
31257 (symbol_alias_set_destroy): Export.
31258 (propagate_aliases_forward, propagate_aliases_backward): New functions
31259 based on ...
31260 (compute_visible_aliases): ... this one; remove.
31261 (trivially_visible_alias): New
31262 (trivially_defined_alias): New.
31263 (remove_unreachable_alias_pairs): Rewrite.
31264 (finish_aliases_1): Reorganize code checking if alias is defined.
31265 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31266 in LTO mode.
31267
31268 2011-01-11 Richard Guenther <rguenther@suse.de>
31269
31270 PR tree-optimization/46076
31271 * tree-ssa.c (useless_type_conversion_p): Conversions from
31272 unprototyped to empty argument list function types are useless.
31273
31274 2011-01-11 Richard Guenther <rguenther@suse.de>
31275
31276 PR middle-end/45235
31277 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31278 volatile MEMs as MEM_READONLY_P.
31279
31280 2011-01-11 Richard Guenther <rguenther@suse.de>
31281
31282 PR tree-optimization/47239
31283 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31284
31285 2011-01-11 Jeff Law <law@redhat.com>
31286
31287 PR tree-optimization/47086
31288 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31289 IVs from statements that might throw.
31290
31291 2011-01-10 Jan Hubicka <jh@suse.cz>
31292
31293 PR lto/45375
31294 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31295
31296 2011-01-10 Jan Hubicka <jh@suse.cz>
31297
31298 PR lto/45375
31299 * profile.c (read_profile_edge_counts): Ignore profile inconistency
31300 when correcting profile.
31301
31302 2011-01-10 Jan Hubicka <jh@suse.cz>
31303
31304 PR lto/46083
31305 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31306 DECL_FINI_PRIORITY.
31307 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31308 Restore DECL_FINI_PRIORITY.
31309
31310 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31311
31312 * doc/gimple.texi: Fix quoting of multi-word return values in
31313 @deftypefn statements. Ensure presence of return value. Wrap
31314 overlong @deftypefn lines.
31315 (is_gimple_operand, is_gimple_min_invariant_address): Remove
31316 descriptions of removed functions.
31317 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31318 of multi-word return value in @deftypefn statement.
31319
31320 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31321
31322 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31323 (Conditional Expressions, Logical Operators)
31324 (Statement and operand traversals): Do not indent smallexample
31325 code. Fix duplicate function argument in example.
31326
31327 2011-01-10 Jeff Law <law@redhat.com>
31328
31329 PR tree-optimization/47141
31330 * ipa-split.c (split_function): Handle case where we are
31331 returning a value and the return block has a virtual operand phi.
31332
31333 2011-01-10 Jan Hubicka <jh@suse.cz>
31334
31335 PR tree-optimization/47234
31336 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31337 (pass_feedback_split_functions): Declare.
31338 * passes.c (init_optimization_passes): Add ipa-split as subpass of
31339 tree-profile.
31340 * ipa-split.c (gate_split_functions): Update comments; disable
31341 split-functions for profile_arc_flag and branch_probabilities.
31342 (gate_feedback_split_functions): New function.
31343 (execute_feedback_split_functions): New function.
31344 (pass_feedback_split_functions): New global var.
31345
31346 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
31347
31348 PR lto/46760
31349 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31350 calling gimple_call_set_cannot_inline.
31351
31352 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
31353
31354 * config/darwin-sections.def: Remove unused section.
31355
31356 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
31357
31358 PR c++/47218
31359 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31360
31361 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
31362
31363 PR objc/47232
31364 * c-parser.c (c_parser_declaration_or_fndef): Improved
31365 error message.
31366
31367 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
31368
31369 * config/i386/winnt.c (i386_pe_start_function): Make sure
31370 to switch back to function's section.
31371
31372 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
31373
31374 PR gcc/46902
31375 PR testsuite/46912
31376 * plugin.c: Move include of dlfcn.h from here...
31377 * system.h: ... to here.
31378
31379 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31380
31381 * doc/cpp.texi (C++ Named Operators): Fix markup for header
31382 file name.
31383 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31384 two extra empty pages in PDF output.
31385
31386 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
31387
31388 PR objc/47078
31389 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31390 for error recovery purposes behave as if it was not specified so
31391 that the default type is usd.
31392
31393 2011-01-07 Jan Hubicka <jh@suse.cz>
31394
31395 PR tree-optmization/46469
31396 * ipa.c (function_and_variable_visibility): Clear needed flags on
31397 nodes with external decls; handle weakrefs merging correctly.
31398
31399 2011-01-07 Joseph Myers <joseph@codesourcery.com>
31400
31401 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31402 not false.
31403
31404 2011-01-07 Jan Hubicka <jh@suse.cz>
31405
31406 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31407 and no longer claim that gold is required for linker plugin.
31408 * configure: Regenerate.
31409 * gcc.c (PLUGIN_COND): New macro.
31410 (LINK_COMMAND_SPEC): Use it.
31411 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31412 * config.in (HAVE_LTO_PLUGIN): New.
31413 * configure.ac (--with-lto-plugin): New parameter; autodetect
31414 HAVE_LTO_PLUGIN.
31415
31416 2011-01-07 Jan Hubicka <jh@suse.cz>
31417
31418 PR tree-optimization/46367
31419 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31420 when we can update original.
31421 (cgraph_mark_inline_edge): Sanity check.
31422 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31423
31424 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31425
31426 * config/spu/spu.h (ASM_COMMENT_START): Define.
31427
31428 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
31429
31430 PR driver/42445
31431 * gcc.c (%>S): New.
31432 (SWITCH_KEEP_FOR_GCC): Likewise.
31433 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31434 (do_spec_1): Handle "%>".
31435
31436 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31437
31438 2011-01-07 Jakub Jelinek <jakub@redhat.com>
31439
31440 PR target/47201
31441 * config/i386/i386.c (ix86_delegitimize_address): If
31442 simplify_gen_subreg fails, return orig_x.
31443
31444 PR bootstrap/47187
31445 * value-prof.c (gimple_stringop_fixed_value): Handle
31446 lhs of the call properly.
31447
31448 2011-01-07 Jan Hubicka <jh@suse.cz>
31449
31450 PR lto/45375
31451 * lto-opt.c (lto_reissue_options): Set flag_shlib.
31452
31453 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
31454
31455 * target.def (function_switched_text_sections): New hook.
31456 * doc/tm.texi: Regenerated.
31457 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31458 * final.c (default_function_switched_text_sections): New.
31459 (final_scan_insn): Call function_switched_text_sections when a
31460 mid-function section change occurs.
31461 * output.h (default_function_switched_text_sections): Declare.
31462 * config/darwin-protos.h (darwin_function_switched_text_sections):
31463 Likewise.
31464 * config/darwin.c (darwin_function_switched_text_sections): New.
31465 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31466
31467 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
31468
31469 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
31470 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
31471 the secondary code fragment when outputting for DWARF == 2.
31472
31473 2011-01-07 Anatoly Sokolov <aesok@post.ru>
31474
31475 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31476 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31477 Remove.
31478 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31479 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31480
31481 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
31482
31483 PR debug/46704
31484 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31485 when it is not empty.
31486
31487 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
31488
31489 Bobcat Enablement
31490 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31491 (case ${target}): Add btver1.
31492 * config/i386/driver-i386.c (host_detect_local_cpu): Let
31493 -march=native recognize btver1 processors.
31494 * config/i386/i386-c.c (ix86_target_macros_internal): Add
31495 btver1 def_and_undef
31496 * config/i386/i386.c (struct processor_costs btver1_cost): New
31497 btver1 cost table.
31498 (m_BTVER1): New definition.
31499 (m_AMD_MULTIPLE): Includes m_BTVER1.
31500 (initial_ix86_tune_features): Add btver1 tune.
31501 (processor_target_table): Add btver1 entry.
31502 (static const char *const cpu_names): Add btver1 entry.
31503 (software_prefetching_beneficial_p): Add btver1.
31504 (ix86_option_override_internal): Add btver1 instruction sets.
31505 (ix86_issue_rate): Add btver1.
31506 (ix86_adjust_cost): Add btver1.
31507 * config/i386/i386.h (TARGET_BTVER1): New definition.
31508 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31509 (enum processor_type): Add PROCESSOR_BTVER1.
31510 * config/i386/i386.md (define_attr "cpu"): Add btver1.
31511
31512 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31513
31514 PR target/43309
31515 * config/i386/i386.c (legitimize_tls_address)
31516 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31517 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31518 (tls_initial_exec_64_sun): New pattern.
31519
31520 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
31521
31522 * doc/invoke.texi (Overall Options): Improve wording and markup
31523 of the description of -wrapper.
31524
31525 2011-01-06 Joseph Myers <joseph@codesourcery.com>
31526
31527 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31528 rdynamic, threads): New Driver options.
31529
31530 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31531
31532 PR target/38118
31533 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31534 if coming from .tdata.
31535 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31536
31537 2011-01-06 Jan Hubicka <jh@suse.cz>
31538
31539 PR lto/47188
31540 * collect2.c (main): Do not enable LTOmode when plugin is active.
31541
31542 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31543
31544 PR other/45915
31545 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31546 --version output if supported.
31547 * configure: Regenerate.
31548
31549 2011-01-06 Joseph Myers <joseph@codesourcery.com>
31550
31551 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31552 Driver options.
31553
31554 2011-01-06 Jakub Jelinek <jakub@redhat.com>
31555
31556 PR c/47150
31557 * c-convert.c (convert): When converting a complex expression
31558 other than COMPLEX_EXPR to a different complex type, ensure
31559 c_save_expr is called instead of save_expr, unless in_late_binary_op.
31560 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31561 when converting COMPLEX_TYPE.
31562
31563 2011-01-06 Ira Rosen <irar@il.ibm.com>
31564
31565 PR tree-optimization/47139
31566 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31567 only the last reduction value is used outside the loop. Update
31568 documentation.
31569
31570 2011-01-05 Joseph Myers <joseph@codesourcery.com>
31571
31572 * config/rtems.opt: New.
31573 * config.gcc (*-*-rtems*): Use rtems.opt.
31574
31575 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
31576
31577 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31578 processors do not support 3DNow instructions.
31579
31580 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31581
31582 * config/spu/spu.c (spu_option_override): Set parameter
31583 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31584
31585 2011-01-05 Jan Hubicka <jh@suse.cz>
31586
31587 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31588 at the command line.
31589
31590 2011-01-05 Martin Jambor <mjambor@suse.cz>
31591
31592 PR lto/47162
31593 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31594 deltas on streamed outgoing edges.
31595 (output_node_opt_summary): Output info for outgoing edges only when
31596 the node is in new parameter set.
31597 (output_cgraph_opt_summary): New parameter set, passed to the two
31598 aforementioned functions. Update its forward declaration and its
31599 callee too.
31600
31601 2011-01-05 Tom Tromey <tromey@redhat.com>
31602
31603 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31604 operator to c_finish_omp_atomic.
31605 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31606 (build_unary_op): Update.
31607 (build_modify_expr): Update.
31608 (build_asm_expr): Update.
31609
31610 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31611
31612 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31613 newly inserted insns.
31614 (pad_bb): Likewise.
31615 (spu_emit_branch_hint): Likewise.
31616 (insert_hbrp_for_ilb_runout): Likewise.
31617 (spu_machine_dependent_reorg): Call df_finish_pass after
31618 schedule_insns returns.
31619
31620 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31621
31622 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31623
31624 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
31625
31626 PR tree-optimization/47005
31627 * tree-sra.c (struct access): Add 'non_addressable' bit.
31628 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31629 (decide_one_param_reduction): Return 0 if the parameter is passed by
31630 reference and one of the accesses in the group is non_addressable.
31631
31632 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
31633
31634 PR tree-optimization/47056
31635 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
31636 (mark_load): Likewise. Handle FUNCTION_DECL specially.
31637 (mark_store): Likewise. Pass STMT to ipa_record_reference.
31638
31639 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
31640
31641 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
31642 initializer. Skip view conversions from aggregate types.
31643
31644 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
31645
31646 PR bootstrap/47055
31647 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
31648
31649 2011-01-04 Philipp Thomas <pth@suse.de>
31650
31651 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
31652 obvious typo.
31653
31654 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31655
31656 * function.c (thread_prologue_and_epilogue_insns): Do not crash
31657 on empty epilogue sequences.
31658
31659 2011-01-04 Joseph Myers <joseph@codesourcery.com>
31660
31661 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
31662 non-static): New Driver options.
31663
31664 2011-01-04 Jie Zhang <jie@codesourcery.com>
31665
31666 PR driver/47137
31667 * gcc.c (default_compilers[]): Set combinable field to 0
31668 for all assembly languages.
31669
31670 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
31671
31672 * config/mips/loongson3a.md: New file.
31673 * config/mips/mips.md: Include loongson3a.md.
31674 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
31675 TUNE_LOONGSON_3A.
31676
31677 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
31678
31679 PR middle-end/47017
31680 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
31681 instead of convert_memory_address_addr_space on the base expression.
31682
31683 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31684
31685 * config/spu/spu.c (spu_option_override): Update error text
31686 for bad -march= / -mtune= values.
31687
31688 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31689
31690 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
31691 if branch-hint optimization will be performed.
31692
31693 2011-01-03 Jakub Jelinek <jakub@redhat.com>
31694
31695 PR tree-optimization/47148
31696 * ipa-split.c (split_function): Convert arguments to
31697 DECL_ARG_TYPE if possible.
31698
31699 PR tree-optimization/47155
31700 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
31701 when computing uns.
31702
31703 PR rtl-optimization/47157
31704 * combine.c (try_combine): If undobuf.other_insn becomes
31705 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
31706 and set *new_direct_jump_p too.
31707
31708 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
31709
31710 PR tree-optimization/47021
31711 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
31712
31713 2011-01-03 Jakub Jelinek <jakub@redhat.com>
31714
31715 * gcc.c (process_command): Update copyright notice dates.
31716 * gcov.c (print_version): Likewise.
31717 * gcov-dump.c (print_version): Likewise.
31718 * mips-tfile.c (main): Likewise.
31719 * mips-tdump.c (main): Likewise.
31720
31721 2011-01-03 Martin Jambor <mjambor@suse.cz>
31722
31723 PR tree-optimization/46801
31724 * tree-sra.c (type_internals_preclude_sra_p): Check whether
31725 aggregate fields start at byte boundary instead of the bit-field flag.
31726
31727 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
31728
31729 PR driver/47137
31730 * gcc.c (main): Revert revision 168407.
31731
31732 2011-01-03 Martin Jambor <mjambor@suse.cz>
31733
31734 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
31735
31736 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31737
31738 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
31739 vector optab to expand vector/scalar shift, update gimple to vector.
31740
31741 2011-01-03 Martin Jambor <mjambor@suse.cz>
31742
31743 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
31744 a thunk.
31745
31746 2011-01-03 Martin Jambor <mjambor@suse.cz>
31747
31748 PR tree-optimization/46984
31749 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
31750 HOST_WIDE_INT.
31751 (cgraph_create_indirect_edge): Fixed line length.
31752 (cgraph_indirect_call_info): Declare.
31753 (cgraph_make_edge_direct) Update declaration.
31754 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
31755 (cgraph_create_indirect_edge): Use it.
31756 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
31757 callees.
31758 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
31759 the new thunk_delta representation.
31760 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
31761 HOST_WIDE_INT.
31762 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
31763 (ipa_read_indirect_edge_info): Likewise.
31764 * lto-cgraph.c (output_edge_opt_summary): New function.
31765 (output_node_opt_summary): Call it on all outgoing edges.
31766 (input_edge_opt_summary): New function.
31767 (input_node_opt_summary): Call it on all outgoing edges.
31768
31769 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
31770
31771 PR driver/47137
31772 * gcc.c (main): Don't check have_o when settting combine_inputs.
31773
31774 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
31775
31776 * regrename.c: Add general comment describing the pass.
31777 (struct du_head): Remove 'length' field.
31778 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
31779 (regrename_optimize): Do not sort chains. Rework comments, add others.
31780 Force renaming to the preferred class (if any) in the first pass and do
31781 not consider registers that belong to it in the second pass.
31782 (create_new_chain): Do not set 'length' field.
31783 (scan_rtx_reg): Likewise.
31784
31785 2011-01-02 Jakub Jelinek <jakub@redhat.com>
31786
31787 PR tree-optimization/47140
31788 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
31789 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
31790 to bit_value_binop.
31791
31792 PR rtl-optimization/47028
31793 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
31794 parm_birth_insn instead of at the beginning of first bb.
31795
31796 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
31797
31798 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
31799 Remove the word "see" before "@pxref".
31800 * doc/rtl.texi: Remove the word "see" before "@pxref".
31801
31802 2011-01-01 Jan Hubicka <jh@suse.cz>
31803
31804 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
31805 memory.
31806
31807 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
31808
31809 PR target/38662
31810 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
31811
31812 \f
31813 Copyright (C) 2011 Free Software Foundation, Inc.
31814
31815 Copying and distribution of this file, with or without modification,
31816 are permitted in any medium without royalty provided the copyright
31817 notice and this notice are preserved.