Add missing sparc shift zero extensions, and fix shift attributes.
[gcc.git] / gcc / ChangeLog
1 2011-10-02 Richard Henderson <rth@redhat.com>
2 David S. Miller <davem@davemloft.net>
3
4 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
5 conditional insn type setting, we always emit a shift.
6 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
7 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
8
9 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
10
11 * invoke.texi (SPARC Options): Refer to GNU/Linux.
12
13 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
14
15 * config/mips/mips.c (mips_frame_barrier): New function.
16 (mips_expand_prologue): Call it after allocating stack space.
17 (mips_deallocate_stack): New function.
18 (mips_expand_epilogue): Call mips_frame_barrier and
19 mips_deallocate_stack.
20
21 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
22
23 PR target/49696
24 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
25 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
26 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
27
28 2011-10-02 Jan Hubicka <jh@suse.cz>
29
30 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
31
32 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
33 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
34 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
35 functions are reachable when address is taken.
36 * tree-sra.c (modify_function): Free dominance info.
37
38 2011-10-02 Jan Hubicka <jh@suse.cz>
39
40 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
41
42 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
43 (reset_inline_summary): New function.
44 (compute_inline_parameters, inline_node_removal_hook,
45 inline_edge_removal_hook): Use it.
46 (inline_free_summary): Reset holders correctly.
47 (inline_generate_summary): Free summary before computing it.
48
49 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
50
51 PR preprocessor/36819
52 * incpath.c (merge_include_chains): Call free_path on
53 heads[QUOTE] and tails[QUOTE].
54
55 2011-10-02 Jan Hubicka <jh@suse.cz>
56
57 PR lto/47247
58 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
59 when resolution is already availbale from plugin.
60 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
61 * cgraph.c (ld_plugin_symbol_resolution): Add prevailing_def_ironly_exp.
62 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
63 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
64 externally visible.
65 * varasm.c (resolution_to_local_definition_p): Add
66 LDPR_PREVAILING_DEF_IRONLY_EXP.
67 (resolution_local_p): Likewise.
68
69 2011-10-01 David S. Miller <davem@davemloft.net>
70
71 * config/sparc/sparc.opt (VIS3): New option.
72 * doc/invoke.texi: Document it.
73 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
74 not capable of such instructions.
75 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
76 to 0x300 when TARGET_VIS3.
77 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
78 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
79 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
80 (V64N8, VASS): New mode iterators.
81 (vis3_shift, vis3_addsub_ss): New code iterators.
82 (vbits, vconstr): New mode attributes.
83 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
84 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
85 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
86 fmean16_vis, fpadd64_vis, fpsub64_vis, <vis3_addsub_ss_insn><vbits>_vis,
87 fucmp<code>8<P:mode>_vis): New VIS 3.0 instruction patterns.
88 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
89 default when targetting capable cpus. TARGET_VIS3 implies
90 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is
91 disabled.
92 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
93 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
94 is ignored.
95 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
96 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
97 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
98 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
99 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
100 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
101 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
102 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
103 * doc/extend.texi: Document new VIS 3.0 builtins.
104
105 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
106
107 * ira-color.c (assign_hard_reg): Fix typo.
108
109 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
110
111 * doc/extend.texi: Add missing ','.
112
113 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
114
115 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
116 Enable -fmodulo-sched at -O2 and above.
117 * config/c6x/c6x.md (doloop_end): New expander.
118 (mvilc, sploop, spkernel, loop_end): New patterns.
119 (loop_end with memory destination splitter): New.
120 * config/c6x/c6x.c: Include "hw-doloop.h".
121 (enum unitreqs): New.
122 (unit_req_table): New typedef.
123 (unit_reqs): New static variable.
124 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
125 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
126 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
127 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
128 (struct c6x_sched_context): New member last_scheduled_iter0.
129 (init_sched_state): Initialize it.
130 (c6x_variable_issue): Update it.
131 (sploop_max_uid_iter0): New static variable.
132 (c6x_sched_reorder_1): Be careful about issuing sploop.
133 (c6x_reorg): Call c6x_hwlooops before the final schedule.
134
135 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
136
137 PR target/50566
138 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
139 * config/avr/avr.c (avr_address_cost): Use it.
140 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
141 (avr_log_vadump): Unknown %-codes finish printing.
142
143 2011-09-30 Jakub Jelinek <jakub@redhat.com>
144
145 PR inline-asm/50571
146 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
147 input constraints allow mem and not reg, pass true instead of
148 false as second argument to maybe_fold_reference.
149
150 PR tree-optimization/46309
151 * fold-const.c (make_range, merge_ranges): Remove prototypes.
152 (make_range_step): New function.
153 (make_range): Use it.
154 * tree.h (make_range_step): New prototypes.
155 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
156 * tree-ssa-reassoc.c: Include diagnostic-core.h.
157 (struct range_entry): New type.
158 (init_range_entry, range_entry_cmp, update_range_test,
159 optimize_range_tests): New functions.
160 (reassociate_bb): Call optimize_range_tests.
161
162 2011-09-30 Jakub Jelinek <jakub@redhat.com>
163 Richard Guenther <rguenther@suse.de>
164
165 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
166 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
167 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
168 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
169 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
170 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
171
172 2011-09-30 Jan Beulich <jbeulich@suse.com>
173
174 * lto-cgraph.c (output_cgraph): Remove processing of
175 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
176 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
177 lto_input_toplevel_asms() instead.
178 * lto-section-in.c (lto_section_name): Add "asm" entry.
179 * lto-streamer-in.c (lto_input_toplevel_asms): New.
180 * lto-streamer-out.c (lto_output_toplevel_asms): New.
181 * lto-streamer.h (LTO_minor_version): Bump.
182 (enum lto_section_type): Add LTO_section_asm.
183 (struct lto_asm_header): New.
184 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
185 * tree-streamer.h (streamer_write_string_cst): Declare.
186 * tree-streamer-out.c (write_string_cst): Rename to
187 streamer_write_string_cst and make global. Handle incoming string
188 being NULL.
189 (streamer_write_tree_header): Adjust call to renamed function.
190
191 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
192
193 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
194 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
195 modulo_last_stage): New static variables.
196 (set_modulo_params, discard_delay_pairs_above): New functions.
197 (struct delay_pair): New member stages.
198 (htab_i2_traverse, htab_i1_traverse): New static functions.
199 (record_delay_slot_pair): New arg stages. All callers changed.
200 Record it.
201 (pair_delay): Take stages into account.
202 (add_delay_dependencies): Don't do so for stage pairs.
203 (struct sched_block_state): New member modulo_epilogue.
204 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
205 (unschedule_insns_until): Decrease modulo_insns_scheduled.
206 Set HARD_DEP without using or.
207 (resolve_dependencies): New static function.
208 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
209 If it is true, allow only insns with INSN_EXACT_TICK set.
210 (schedule_block): Return bool, always true for normal scheduling,
211 true or false depending on modulo scheduling success otherwise.
212 Add bookkeeping for modulo scheduling, and call resolve_dependencies
213 on everything left over after a modulo schedule.
214 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
215 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
216 declarations.
217 (set_modulo_params, discard_delay_pairs_above): Declare.
218 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
219 * doc/invoke.texi (--param): Document it.
220
221 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
222 New arg modulo_scheduling. All callers changed. Move note handling
223 code here from schedule_ebbs.
224 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
225 out of schedule_ebbs.
226 (schedule_ebbs): Call them. Remove note handling code moved to
227 schedule_ebb.
228 * sched-int.h (schedule_ebb, schedule_ebbs_init,
229 schedule_ebbs_finish): Declare.
230
231 2011-09-30 Richard Guenther <rguenther@suse.de>
232
233 PR middle-end/50574
234 * tree-cfg.c (verify_gimple_comparison): Compare component
235 mode sizes for vector comparisons.
236
237 2011-09-30 Revital Eres <revital.eres@linaro.org>
238
239 * ddg.c (autoinc_var_is_used_p): New function.
240 (create_ddg_dep_from_intra_loop_link,
241 add_cross_iteration_register_deps): Call it.
242 * ddg.h (autoinc_var_is_used_p): Declare.
243 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
244 (sms_schedule): Handle instructions with REG_INC.
245
246 2011-09-30 Revital Eres <revital.eres@linaro.org>
247
248 * modulo-sched.c (generate_reg_moves): Skip instructions that
249 do not set a register and verify no regmoves are created for
250 !single_set instructions.
251
252 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
253
254 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
255 insns.
256
257 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
258
259 PR target/50099
260 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
261 (qhs_zextenddi_op): New.
262 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
263 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
264 Distinguish between ARM and Thumb2 states.
265
266 2011-09-30 David S. Miller <davem@davemloft.net>
267
268 * config/sparc/sparc.opt (VIS2): New option.
269 * doc/invoke.texi: Document it.
270 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
271 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
272 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
273 (define_attr type): New insn type 'edgen'.
274 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
275 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
276 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
277 patterns.
278 * niagara.md: Handle edgen.
279 * niagara2.md: Likewise.
280 * ultra1_2.md: Likewise.
281 * ultra3.md: Likewise.
282 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
283 to 0x200 when TARGET_VIS2.
284 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
285 default when targetting capable cpus. TARGET_VIS2 implies
286 TARGET_VIS, clear and it when TARGET_FPU is disabled.
287 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
288 (sparc_expand_builtin): Fix predicate indexing when builtin returns
289 void.
290 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
291 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
292 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
293 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
294 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
295 * doc/extend.texi: Document new VIS 2.0 builtins.
296
297 2011-09-29 Nick Clifton <nickc@redhat.com>
298 Bernd Schmidt <bernds@codesourcery.com>
299
300 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header
301 file.
302 * config/frv/frvend.c: Likewise.
303 * config/frv/frv.c (frv_function_prologue): Move misplaced
304 CALL_ARG_LOCATION notes back to their proper locations.
305
306 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
307
308 PR target/50566
309 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
310 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
311 from avr_rtx_costs.
312 (avr_legitimate_address_p): Use avr_edump to print log information
313 filtered by avr_log.
314 (extra_constraint_Q): Ditto.
315 (avr_legitimize_address): Ditto.
316 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
317 (final_prescan_insn): Use avr_log.rtx_costs as filter.
318
319 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
320
321 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
322 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
323 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
324 NEON vector and structure modes to be tied.
325
326 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
327
328 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
329 forward declaration.
330 (remove_duplicate_close_phi): Detect and repair creation of
331 duplicate close-phis for a containing loop.
332
333 2011-09-27 Andi Kleen <ak@linux.intel.com>
334
335 * gcc.c (get_local_tick). Rename to get_random_number.
336 Read from /dev/urandom.
337 Add getpid call.
338 (compare_debug_dump_opt_spec_function): Drop getpid call.
339
340 2011-09-26 Andi Kleen <ak@linux.intel.com>
341
342 * toplev.c (init_local_tick): Try reading random seed from /dev/urandom
343
344 2011-09-26 Andi Kleen <ak@linux.intel.com>
345
346 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
347 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
348 Handle numerical random seed.
349 * lto-streamer.h (lto_file_decl_data): Change id to unsigned HOST_WIDE_INT.
350 * toplev.c (random_seed): Add.
351 (init_random_seed): Change for numerical random seed.
352 (get_random_seed): Return as HOST_WIDE_INT.
353 (set_random_seed): Crc32 existing string.
354 * toplev.h (get_random_seed): Change to numercal return.
355 * tree.c (get_file_function_name): Remove CRC. Handle numerical random seed.
356
357 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
358
359 PR target/50566
360 * config.gcc (extra_objs): Add avr-log.o for $target in:
361 avr-*-rtems*, avr-*-*.
362 * config/avr/t-avr (avr-log.o): New rule to compile...
363 * config/avr/avr-log.c: ...this new file.
364 * config/avr/avr.opt (mlog=): New option.
365 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
366 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
367 (avr_log_set_avr_log): New prototype.
368 (avr_log_t): New typedef.
369 (avr_log): New declaration.
370 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
371
372 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
373
374 * expr.c (do_store_flag): Expand vector comparison by
375 building an appropriate VEC_COND_EXPR.
376 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
377 (c_objc_common_truthvalue_conversion): Adjust.
378 * tree-vect-generic.c (do_compare): Helper function.
379 (expand_vector_comparison): Check if hardware supports
380 vector comparison of the given type or expand vector
381 piecewise.
382 (expand_vector_operation): Treat comparison as binary
383 operation of vector type.
384 (expand_vector_operations_1): Adjust.
385
386 2011-09-29 Richard Guenther <rguenther@suse.de>
387
388 * tree.c (build_opaque_vector_type): Make opaque vectors
389 variant types of the corresponding non-opaque type. Make
390 sure to share opaque vector types properly.
391
392 2011-09-29 David S. Miller <davem@davemloft.net>
393
394 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
395 UNSPEC_ARRAY32): New unspec.
396 (define_attr type): New type 'array'.
397 (array{8,16,32}<P:mode>_vis): New patterns.
398 * config/sparc/ultra1_2.md: Add reservations for 'array'.
399 * config/sparc/ultra3.md: Likewise.
400 * config/sparc/niagara.md: Likewise.
401 * config/sparc/niagara2.md: Likewise.
402 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
403 array builtins.
404 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
405 __vis_array32): New.
406 * doc/extend.texi: Document new VIS builtins.
407
408 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
409 (VIS pixel-compare insn): Just use <gcond:name>.
410
411 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
412 code iterator used, so just use <code>. There are two mode iterators
413 so explicitly use <GCM:gcm_name>.
414
415 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
416
417 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
418 Darwin >= 9.
419
420 2011-09-28 David S. Miller <davem@davemloft.net>
421
422 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
423 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
424 (UNSPEC_FCMP): New unspec.
425 (gcond): New code iterator.
426 (gcond_name): New code attr.
427 (GCM): New mode iterator.
428 (gcm_name): New mode attr.
429 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
430
431 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
432
433 PR target/49486
434 * config/sh/sh.md (negdi2): Move expansion into split to
435 allow more combination options. Add T_REG clobber.
436 (abssi2): New expander.
437 (*negdi2, *abssi2, *negabssi2): New insns.
438 (cneg): Change from insn to insn_and_split. Rename to
439 negsi_cond. Add alternative for non-SH4.
440
441 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
442
443 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
444 (neon_move_hi_quad_<mode>): Likewise.
445 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
446
447 2011-09-28 Nick Clifton <nickc@redhat.com>
448
449 * config/rx/predicates.md (rx_minmax_operand): New predicate.
450 Accepts immediates and a restricted subset of MEMs.
451 * config/rx/rx.md (int_modes): New iterator.
452 (smaxsi3, sminsi3): Delete and replace with...
453 (smax<int_mode>3, smin<int_mode>3): New patterns.
454 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
455
456 2011-09-28 Richard Guenther <rguenther@suse.de>
457
458 PR middle-end/50460
459 * fold-const.c (try_move_mult_to_index): Handle &a.array the
460 same as &a.array[0].
461
462 2011-09-28 Kai Tietz <ktietz@redhat.com>
463
464 * configure.ac: Add test for new section attribute
465 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
466 * config.in: Regenerated.
467 * configure: Regenerated.
468 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
469 new section flag "e" for excluded sections, if supported.
470 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
471
472 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
473
474 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
475 throughout file.
476
477 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
478
479 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
480 throughout file.
481
482 2011-09-27 Sriraman Tallam <tmsriram@google.com>
483
484 * output.h (SECTION_EXCLUDE): New macro.
485 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
486
487 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
488
489 * fwprop.c (forward_propagate_and_simplify): After checking
490 reg/subreg combinations, check whether the modes are the same.
491
492 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
493 Richard Sandiford <rdsandiford@googlemail.com>
494
495 * config/mips/mips.c (mips_add_cfa_restore): New function.
496 (mips16e_save_restore_reg): Use it.
497 (mips_restore_reg): Likewise. Split double FPRs for
498 REG_CFA_RESTORE notes.
499
500 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
501
502 PR middle-end/50386
503 PR middle-end/50326
504 * tree-sra.c (build_ref_for_model): Use the type of the field as
505 the type of the COMPONENT_REF.
506
507 2011-09-27 Jeff Law <law@redhat.com>
508
509 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
510 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
511 (find_if_case_1): Use the probability of the THEN clause when
512 determining if speculation is profitable.
513 (find_if_case_2): Similarly for the ELSE clause.
514
515 2011-09-27 Jakub Jelinek <jakub@redhat.com>
516
517 * common.opt: Add -foptimize-strlen option.
518 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
519 (tree-sssa-strlen.o): Add dependencies.
520 * opts.c (default_options_table): Enable -foptimize-strlen
521 by default at -O2 if not -Os.
522 * passes.c (init_optimization_passes): Add pass_strlen
523 after pass_object_sizes.
524 * timevar.def (TV_TREE_STRLEN): New timevar.
525 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
526 * tree-pass.h (pass_strlen): Declare.
527 * tree-ssa-strlen.c: New file.
528 * c-decl.c (merge_decls): If compatible stpcpy prototype
529 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
530
531 2011-09-27 Tom de Vries <tom@codesourcery.com>
532
533 PR middle-end/43864
534 * tree-ssa-tail-merge.c: New file.
535 (struct same_succ_def): Define.
536 (same_succ, const_same_succ): New typedef.
537 (struct bb_cluster_def): Define.
538 (bb_cluster, const_bb_cluster): New typedef.
539 (struct aux_bb_info): Define.
540 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
541 (gvn_uses_equal): New function.
542 (same_succ_print, same_succ_print_traverse, update_dep_bb)
543 (stmt_update_dep_bb, local_def, same_succ_hash)
544 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
545 (same_succ_reset): New function.
546 (same_succ_htab, same_succ_edge_flags)
547 (deleted_bbs, deleted_bb_preds): New var.
548 (debug_same_succ): New function.
549 (worklist): New var.
550 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
551 (init_worklist, delete_worklist, delete_basic_block_same_succ)
552 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
553 (print_cluster, debug_cluster, update_rep_bb)
554 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
555 (all_clusters): New var.
556 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
557 (merge_clusters, set_cluster): New function.
558 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
559 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
560 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
561 (find_clusters_1, find_clusters): New function.
562 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
563 (update_bbs): New var.
564 (apply_clusters): New function.
565 (update_debug_stmt, update_debug_stmts): New function.
566 (tail_merge_optimize): New function.
567 tree-pass.h (tail_merge_optimize): Declare.
568 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
569 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
570 (tree-ssa-tail-merge.o): New rule.
571 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
572 default at OPT_LEVELS_2_PLUS.
573 * tree-ssa-sccvn.c (vn_valueize): Move to ...
574 * tree-ssa-sccvn.h (vn_valueize): Here.
575 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
576 * common.opt (ftree-tail-merge): New switch.
577 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
578 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
579 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
580 (-ftree-tail-merge, max-tail-merge-comparisons)
581 (max-tail-merge-iterations): New item.
582
583 2011-09-27 Jan Hubicka <jh@suse.cz>
584
585 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
586
587 2011-09-27 Jan Hubicka <jh@suse.cz>
588
589 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
590 parameters passed by reference; handle loads from non-SSA scalars
591 and update comments.
592
593 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
594
595 PR rtl-optimization/50249
596 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
597 instead of opnum and type. All callers changed. Remove useless
598 declaration.
599 Search forward for other reloads of the same type for the same operand
600 using the same register; if any are found, return false.
601 (reload_regs_reach_end_p): Same argument changes; all callers changed.
602
603 2011-09-27 Andi Kleen <ak@linux.intel.com>
604 Jan Hubicka <jh@suse.cz>
605
606 * doc/invoke.texi (ffat-lto-objects): Document.
607 * toplev.c (compile_file): Do not output assembly when doing slim lto;
608 Output __gnu_slim_lto when doing slim lto.
609 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
610 (cgraph_optimize): Return early when doing slim lto.
611 * opts.c (finish_options): Complain about lack of linker plugin
612 when doing slim lto.
613 * common.opt (ffat-lto-objects): New.
614
615 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
616
617 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
618 between signed and unsigned.
619
620 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
621
622 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
623 vectorization.
624 (vectorizable_type_promotion): Likewise.
625 (vect_analyze_stmt): Call vectorizable_type_demotion and
626 vectorizable_type_promotion for basic blocks.
627 (supportable_widening_operation): Don't assume loop vectorization.
628 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
629 basic blocks. Update vectorization factor for basic block
630 vectorization.
631 (vect_analyze_slp_instance): Allow multiple types for basic block
632 vectorization. Recheck unrolling factor after construction of SLP
633 instance.
634
635 2011-09-27 Richard Guenther <rguenther@suse.de>
636
637 * tree-object-size.c (compute_object_sizes): Fix dumping of
638 folded statement.
639
640 2011-09-27 Richard Guenther <rguenther@suse.de>
641
642 PR tree-optimization/50363
643 * tree-ssa-pre.c (create_expression_by_pieces): Handle
644 pointer conversions in POINTER_PLUS_EXPRs properly.
645
646 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
647
648 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
649 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
650 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
651 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
652 that produce subreg moves. Define using VQX iterators.
653
654 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
655
656 * config/avr/avr.md (ashrqi3): Split alternative "n"
657 into its remaining parts C03, C04, C05, C06, C07 and describe
658 impact in CC by attribute "cc" appropriately.
659 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
660 by digging RTX.
661
662 2011-09-27 Jakub Jelinek <jakub@redhat.com>
663
664 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
665 from 3 x MAX_MACHINE_MODE.
666 (CONSTM1_RTX): Define.
667 * emit-rtl.c (const_tiny_rtx): Change into array of
668 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
669 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
670 CONSTM1_RTX.
671 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
672 MODE_VECTOR_INT modes.
673 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
674 Optimize if one operand is CONSTM1_RTX.
675 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
676 into mask | x.
677
678 2011-09-26 David S. Miller <davem@davemloft.net>
679
680 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
681 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
682 * config/sparc/visintrin.h: Update edge and pixel-compare
683 intrinsics to return 'long' instead of 'int'.
684 * doc/extend.texi: Update documentation to match.
685 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
686 flat, allow any instruction. Otherwise, when V9 allow parallels
687 which consist only of sets to registers outside of %o0 to %o5.
688 (sparc_vis_init_builtins): Update VIS builtin types for edge
689 and pixel-compare.
690
691 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
692 is enabled, mark %gsr as global.
693 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
694 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
695
696 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
697 which will now define __VIS and __VIS__ when -mvis is enabled.
698 * config/sparc/t-sparc: Likewise.
699 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
700 and add t-sparc to tmake_file for all sparc targets.
701 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
702 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
703
704 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
705 builtins for VIS vector addition and subtraction.
706 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
707 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
708 __vis_fpsub32, __vis_fpsub32s): New.
709 * doc/extend.texi: Document new VIS intrinsics.
710
711 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
712
713 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
714 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
715 EQ/NE comparisons against +/-1 in the case of unused-after,
716 non-ld-regs target.
717
718 2011-09-26 Jakub Jelinek <jakub@redhat.com>
719
720 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
721 gctx.into_ssa after push_gimplify_context.
722
723 * gimple.c (gimple_build_call_valist): New function.
724 * gimple.h (gimple_build_call_valist): New prototype.
725 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
726 (update_gimple_call): Likewise.
727 (update_call_from_tree): Use finish_update_gimple_call.
728 * tree-ssa-propagate.h (update_gimple_call): New prototype.
729
730 2011-09-26 Richard Guenther <rguenther@suse.de>
731
732 PR tree-optimization/50472
733 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
734 volatile references.
735
736 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
737
738 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
739 * target.def: (addr_space_subset_p): Likewise.
740
741 2011-09-26 Tom de Vries <tom@codesourcery.com>
742
743 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
744 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
745 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
746 of new var.
747
748 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
749
750 PR target/50465
751 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
752 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
753 output_reload_insisf.
754 (adjust_len): Set default to "no".
755 Remove alternative "yes". Add alternatives: "mov8", "mov16",
756 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
757 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
758 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
759 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
760 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
761 *lshrsi3_const): Set attribute "adjust_len".
762 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
763 (output_movsisf): Don't pass insn to output_reload_insisf.
764 (adjust_insn_length): Handle new alternatives to adjust_len.
765 Remove handling of ADJUST_LEN_YES. Clean-up code.
766
767 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
768
769 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
770 may_trap_p to detect loads that may trap of fault.
771
772 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
773
774 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
775 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
776 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
777 prototype.
778 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
779 * config/avr/avr.c: Rename output_reload_insisf_1 to
780 output_reload_in_const.
781 (avr_popcount_each_byte): Handle SFmode, too.
782 (output_reload_in_const): Change so it can handle HI loads, too.
783 Use avr_popcount_each_byte to work out if scratch register must be
784 created on the fly.
785 (output_reload_inhi): Rewrite using output_reload_in_const and...
786 (output_movhi): ...use it to print constants' loads.
787 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
788
789 2011-09-25 David S. Miller <davem@davemloft.net>
790
791 * config/sparc/constraints.md (C, P, Z): New constraints for
792 const_doube, const_int, and const_vector "all ones" values.
793 Make unused constraint letters comment match reality.
794 * config/sparc/predicates.md (const_all_ones_operand,
795 register_or_zero_or_all_ones_operand): New predicates.
796 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
797 as well as zero constants when VIS.
798 (sparc_legitimate_constant_p): Likewise.
799 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
800 (movsf_insn): Likewise
801 (movdi_insn_sp64): Add fone alternative.
802 (movdf_insn_sp32_v9): Likewise.
803 (movdf_insn_sp64): Likewise.
804
805 * configure.ac: Add feature check to make sure the assembler
806 supports the FMAF, HPC, and VIS 3.0 instructions found on
807 Niagara-3 and later cpus.
808 * configure: Rebuild.
809 * config.in: Likewise.
810 * config/sparc/sparc.opt: New option '-mfmaf'.
811 * config/sparc/sparc.md: Add float fused multiply-add patterns.
812 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
813 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
814 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
815 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
816 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
817 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
818 disabled.
819 (sparc_rtx_costs): Handle 'FMA'.
820 * doc/invoke.texi: Document -mfmaf.
821
822 2011-09-25 Jakub Jelinek <jakub@redhat.com>
823
824 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
825 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
826 DECL_BY_REFERENCE parameters.
827
828 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
829
830 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
831 if there is no outgoing edge.
832
833 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
834 integral types.
835
836 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
837
838 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
839 of vect_analyze_bb here.
840 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
841
842 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
843
844 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
845 Allow not simple iv if analyzing basic block.
846 (create_data_ref): Update call to dr_analyze_innermost.
847 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
848 * tree-loop-distribution.c (generate_memset_zero): Likewise.
849 * tree-predcom.c (find_looparound_phi): Likewise.
850 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
851
852 2011-09-24 David S. Miller <davem@davemloft.net>
853
854 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
855 (SPARC_GSR_REG): Define.
856 (FIXED_REGISTERS): Mark GSR as fixed.
857 (CALL_USED_REGISTERS): Mark GSR as call used.
858 (HARD_REGNO_NREGS): GSR is always 1 register.
859 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
860 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
861 (REGISTER_NAMES): Add "%gsr".
862 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
863 (UNSPEC_WRGSR): New unspec.
864 (GSR_REG): New constant.
865 (type): Add new insn type 'gsr'.
866 (fpack16_vis, fpackfix_vis, fpack32_vis,
867 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
868 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
869 rdgsr_v8plus): New expanders and insns.
870 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
871 using patterns which show that this is a plus in addition to a
872 modification of GSR_REG, instead of an unspec.
873 * config/sparc/ultra1_2.md: Handle 'gsr'.
874 * config/sparc/ultra3.md: Likewise.
875 * config/sparc/niagara.md: Likewise.
876 * config/sparc/niagara2.md: Likewise.
877 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
878 end of table.
879 (sparc_option_override): Make -mvis imply -mv8plus.
880 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
881 for %gsr.
882 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
883 __builtin_vis_read_gsr.
884 (sparc_expand_buildin): Handle builtins that take one argument and
885 return void.
886 (sparc_fold_builtin): Never fold writes to %gsr.
887 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
888 * doc/extend.texi: Document new VIS intrinsics.
889
890 2011-09-23 Jan Hubicka <jh@suse.cz>
891
892 * ipa-inline-transform.c (inline_call): Add comment.
893 * ipa-inline.h (inline_param_summary): New structure and vector.
894 (struct inline_edge_summary): Add param field.
895 * ipa-inline-analysis.c (CHANGED): New constant.
896 (add_clause): Handle CHANGED and NOT_CONSTANT.
897 (predicate_probability): New function.
898 (dump_condition): Dump CHANGED predicate.
899 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
900 of unknown function wide invariant.
901 (evaluate_conditions_for_edge): Handle change probabilities.
902 (inline_edge_duplication_hook): Copy param summaries.
903 (inline_edge_removal_hook): Free param summaries.
904 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
905 sizes; dump param summaries.
906 (will_be_nonconstant_predicate): Use CHANGED predicate.
907 (record_modified_bb_info): New structure.
908 (record_modified): New function.
909 (param_change_prob): New function.
910 (estimate_function_body_sizes): Compute param summaries.
911 (estimate_edge_size_and_time): Add probability argument.
912 (estimate_node_size_and_time): Add inline_param_summary argument;
913 handle predicate probabilities.
914 (remap_predicate): Fix formating.
915 (remap_edge_change_prob): New function.
916 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
917 (remap_edge_predicates): ... this one.
918 (inline_merge_summary): Remap edge summaries; handle predicate
919 probabilities; remove param summaries after we are done.
920 (do_estimate_edge_time): Update.
921 (do_estimate_edge_growth): Update.
922 (read_inline_edge_summary): Read param info.
923 (inline_read_summary): Fix formating.
924 (write_inline_edge_summary): Write param summaries.
925
926 2011-09-23 Jakub Jelinek <jakub@redhat.com>
927
928 * config/i386/i386.c (ix86_print_operand): Handle %~.
929 (ix86_print_operand_punct_valid_p): Return true also for '~'.
930 * config/i386/sse.md (i128): New mode_attr.
931 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
932 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
933 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
934 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
935 patterns, use "<sseinsnmode>" for "mode" attribute.
936 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
937 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
938 %~128 in the patterns, use "OI" for "mode" attribute.
939
940 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
941
942 PR target/50447
943 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
944 "tstsi", "compare".
945 (*cmpqi_sign_extend): Use s8_operand.
946 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
947 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
948 prototypes.
949 (out_tsthi, out_tstsi): Remove prototypes.
950 (avr_out_tsthi, avr_out_tstsi): New prototypes.
951 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
952 (avr_asm_len): Negative length now sets *plen to -length.
953 (compare_sign_p): Return bool instead of int.
954 (compare_diff_p, compare_eq_p): Ditto and make static.
955 (avr_out_tsthi): New function.
956 (avr_out_tstsi): New function.
957 (avr_out_compare): New function.
958 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
959 ADJUST_LEN_COMPARE.
960
961 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
962
963 PR target/50447
964 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
965 (addsi3): Rewrite using QI scratch register. Adjust text
966 peepholes using plus:SI.
967 (*addsi3_zero_extend.hi): New insn.
968 (*subsi3_zero_extend.hi): New insn.
969 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
970 (*subsi3_zero_extend): Ditto.
971 (subsi3): Change predicate #2 to register_operand.
972 * config/avr/avr-protos.h (avr_out_plus): New prototype.
973 (avr_out_plus_1): New static function.
974 (avr_out_plus): New function.
975 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
976
977 2011-09-23 Jakub Jelinek <jakub@redhat.com>
978
979 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
980 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
981
982 2011-09-23 Ian Lance Taylor <iant@google.com>
983
984 * godump.c (go_define): Treat a single character in single quotes,
985 or a string, as an operand.
986
987 2011-09-23 Martin Jambor <mjambor@suse.cz>
988
989 * ipa-prop.h (jump_func_type): Updated comments.
990 (ipa_known_type_data): New type.
991 (ipa_jump_func): Use it to describe known type jump functions.
992 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
993 reflect the new known type jump function contents.
994 (compute_known_type_jump_func): Likewise.
995 (combine_known_type_and_ancestor_jfs): Likewise.
996 (try_make_edge_direct_virtual_call): Likewise.
997 (ipa_write_jump_function): Likewise.
998 (ipa_read_jump_function): Likewise.
999 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1000 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1001 (propagate_accross_jump_function): Likewise.
1002
1003 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1004
1005 PR target/50446
1006 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1007 (rotlqi3_4): Turn insn into expander.
1008 (*rotlqi3): New insn.
1009 (rotlhi3, rotlsi3): Support rotate left/right by 1.
1010 (*rotlhi2.1, *rotlhi2.15): New insns.
1011 (*rotlsi2.1, *rotlsi2.31): New insns.
1012 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1013
1014 2011-09-23 Bin Cheng <bin.cheng@arm.com>
1015
1016 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1017
1018 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1019
1020 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1021
1022 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1023
1024 * reload.c (find_reloads): Set operand_mode to Pmode for address
1025 operands consisting of just a CONST_INT.
1026
1027 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
1028
1029 PR target/50482
1030 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1031 blendv, force op_true to register if it doesn't satisfy
1032 nonimmediate_operand predicate.
1033
1034 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
1035
1036 PR middle-end/50113
1037 PR middle-end/50061
1038 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1039 get the locate.where_pad value for register-only arguments.
1040 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1041 (arm_pad_reg_upward): Handle null types.
1042
1043 2011-09-22 Jan Hubicka <jh@suse.cz>
1044
1045 * ipa-inline-analysis.c: Fix overly long lines.
1046
1047 2011-09-22 Jan Hubicka <jh@suse.cz>
1048
1049 * ipa-inline-transform.c (inline_call): Always update jump functions
1050 after inlining.
1051 * ipa-inline.c (ipa_inline): Likewise; do not call
1052 ipa_create_all_structures_for_iinln.
1053 (ipa_inline): Always free jump functions.
1054 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1055 (remap_edge_predicates): Fix pasto.
1056 (inline_merge_summary): Remove nlined edge predicate; remove hack.
1057 (inline_analyze_function): Always initialize jump functions.
1058 (inline_generate_summary): Likewise.
1059 (inline_write_summary): Always write jump functions when ipa-cp
1060 is not doing that.
1061 (inline_read_summary): Always read jump functions when ipa-cp
1062 is not doing that.
1063 * ipa-prop.c (iinlining_processed_edges): Remove.
1064 (update_indirect_edges_after_inlining): Do not use
1065 iinlining_processed_edges; instead set param_index to -1.
1066 (propagate_info_to_inlined_callees): Only try to indirect inlining
1067 when asked to do so; update jump functions of indirect calls, too;
1068 remove jump functions of the inlined edge.
1069 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1070 (ipa_create_all_structures_for_iinln): Remove.
1071 (ipa_free_all_structures_after_iinln): Do not free
1072 iinlining_processed_edges.
1073 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1074
1075 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
1076
1077 * config/arm/predicates.md (expandable_comparison_operator): New
1078 predicate, extracted from...
1079 (arm_comparison_operator): ...here.
1080 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1081 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1082 (movdfcc): Use expandable_comparison_operator.
1083
1084 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
1085
1086 PR target/50447
1087 PR target/50465
1088 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1089 (avr_popcount_each_byte): New prototype.
1090 * config/avr/avr.c (avr_popcount): New static function.
1091 (avr_popcount_each_byte): New function.
1092 (avr_out_bitop): New function.
1093 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1094 avr_out_bitop. Cleanup code.
1095 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1096 (Ca4, Co4, Cx4): New constraints.
1097 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1098 alternative.
1099 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1100 (andsi3, iorsi3, xorsi3): Ditto.
1101 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1102
1103 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
1104
1105 PR tree-optimization/50451
1106 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1107 constant operands in reduction.
1108 (vect_get_slp_defs): Don't create vector operand for NULL scalar
1109 operand.
1110
1111 2011-09-22 David S. Miller <davem@davemloft.net>
1112
1113 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1114 fpack16, fpack32, fpackfix as const.
1115
1116 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1117 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1118 constants. Use them everywhere.
1119
1120 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
1121
1122 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1123 Added AND special case. Adapted comments.
1124 (sh_rtx_costs): Added XOR and IOR case.
1125
1126 2011-09-21 Jan Hubicka <jh@suse.cz>
1127
1128 * ipa-inline-analsis.c (compute_inline_parameters): Set
1129 cfun and current_function_decl.
1130
1131 2011-09-21 Jan Hubicka <jh@suse.cz>
1132
1133 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1134 handled components in parameter of builtin_constant_p.
1135 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1136
1137 2011-09-21 Jan Hubicka <jh@suse.cz>
1138
1139 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1140 * ipa-inline.h (estimate_edge_time): Fix pasto.
1141 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1142
1143 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1144
1145 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1146 blendvps, blendvpd and pblendvb if possible.
1147
1148 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1149
1150 PR target/50464
1151 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1152 operand 1 predicate to register_operand and operand 2 predicate
1153 to nonimmediate_operand.
1154 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1155 xop_pcmov, force op_true to register. Also, force op_false to
1156 register if it doesn't satisfy nonimmediate_operand predicate.
1157
1158 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1159
1160 * config/i386/bmi2intrin.h (_mulx_u64): New.
1161 (_mulx_u32): Ditto.
1162
1163 2011-09-21 Jan Hubicka <jh@suse.cz>
1164
1165 PR tree-optimization/50433
1166 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1167 Use get_base_address.
1168
1169 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1170
1171 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1172 nonimmediate_operand instead of register_operand predicate for operands
1173 1 and 2, force them into registers if expanding them as comparison.
1174 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1175 V8HImode force into register just operand 1.
1176
1177 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1178
1179 PR target/45099
1180 * config/avr/avr.c (avr_function_arg_advance): Change error to
1181 warning if a fixed register is needed as function argument.
1182
1183 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1184
1185 PR target/50449
1186 PR target/50465
1187 * config/avr/avr.md (adjust_len): New insn attribute.
1188 (*reload_insi, *reload_insf): Use it.
1189 (*movsi, *movsf): Use new interface of output_movsisf.
1190 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1191 * config/avr/avr.c (output_movsisf): Ditto.
1192 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1193 lengths of insns *reload_insi, *reload_insf.
1194 (output_reload_insisf_1): New static function.
1195 (output_reload_insisf): Use it.
1196
1197 2011-09-21 David S. Miller <davem@davemloft.net>
1198
1199 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1200 (def_builtin_const): New.
1201 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1202 other than alignaddr and falignaddr.
1203
1204 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1205 UNSPEC_FCMPEQ): New unspec codes.
1206 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1207 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1208 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1209 new pixel compare VIS patterns.
1210 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1211 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1212 __vis_fcmpeq16, __vis_fcmpeq32): New.
1213 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1214
1215 2011-09-21 Tom de Vries <tom@codesourcery.com>
1216
1217 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1218
1219 2011-09-20 David S. Miller <davem@davemloft.net>
1220
1221 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1222 (aligneddrl<P:mode>_vis): New pattern.
1223 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1224 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1225 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1226 alignaddrl insn, and adjust edge operations for updated types.
1227 * config/sparc/visintrin.h: Likewise.
1228 * doc/extend.texi: Make typing in VIS documentation match reality.
1229
1230 2011-09-20 Terry Guo <terry.guo@arm.com>
1231
1232 * config/arm/arm-arches.def: Add armv6s-m.
1233 * config/arm/arm-tables.opt: Regenerate.
1234
1235 2011-09-20 Wei Guozhi <carrot@google.com>
1236
1237 PR rtl-optimization/49452
1238 * postreload.c (reload_combine): Invalidate use information when across
1239 volatile insn.
1240
1241 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1242
1243 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1244 Remove maintenance overhead.
1245 (haifa_sched_init, sched_finish): Update.
1246
1247 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1248
1249 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1250 to calculate unit, prefix_rep and prefix_data16 attributes.
1251 (*mov<mode>_internal): Ditto for unit attribute.
1252 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1253 (*movv2sf_internal): Ditto.
1254 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1255 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1256 (*avx2_eq<mode>3): Ditto.
1257 (avx2_gt<mode>3): Ditto.
1258
1259 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1260
1261 * config/i386/i386.md (maxmin): New code iterator.
1262 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1263 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1264 code iterator.
1265 (*avx2_<maxmin:code><mode>3): Macroize isn from
1266 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1267 maxmin code iterator.
1268 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1269 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1270 <umaxmin:code>v16qi3.
1271
1272 2011-09-19 Alan Modra <amodra@gmail.com>
1273 Michael Meissner <meissner@linux.vnet.ibm.com>
1274
1275 PR target/50341
1276 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1277 split the load of the indirect function's TOC from the call to
1278 prevent the compiler from moving the load of the new TOC above
1279 code that references the current function's TOC.
1280 (call_indirect_aix<ptrsize>_internal): Ditto.
1281 (call_indirect_aix<ptrsize>_nor11): Ditto.
1282 (call_indirect_aix<ptrsize>_internal2): Ditto.
1283 (call_value_indirect_aix<ptrsize>): Ditto.
1284 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1285 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1286 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1287
1288 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1289
1290 * config/i386/sse.md (*sse4_1_extractps): Change into
1291 define_insn_and_split, add =x 0 n and =x x n alternatives
1292 and split them after reload.
1293
1294 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1295
1296 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1297
1298 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1299
1300 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1301
1302 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1303
1304 PR tree-optimization/50413
1305 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1306 a basic block if one of its data-refs can't be analyzed.
1307
1308 2011-09-19 Paul Brook <paul@codesourcery.com>
1309
1310 * config/arm/predicates.md (shift_amount_operand): Check constant
1311 shift count is in range.
1312 (const_shift_operand): Remove.
1313
1314 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1315 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1316
1317 PR target/50091
1318 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1319 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1320
1321 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1322
1323 * config/i386/bmiintrin.h: Remove tmp.
1324 * config/i386/tbmintrin.h: Likewise.
1325
1326 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1327
1328 PR tree-optimization/50414
1329 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1330 MIN_EXPR.
1331
1332 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1333
1334 PR tree-optimization/50412
1335 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1336 acceses that require epilogue loop if vectorizing outer loop.
1337
1338 2011-09-17 David S. Miller <davem@davemloft.net>
1339
1340 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1341 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1342 New unspecs.
1343 (define_attr type): New type 'edge'.
1344 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1345 edge32l_vis): New patterns.
1346 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1347 * config/sparc/ultra3.md: Likewise.
1348 * config/sparc/niagara.md: Likewise.
1349 * config/sparc/niagara2.md: Likewise.
1350 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1351 builtins for VIS edge instructions.
1352 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1353 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1354 intrinsics.
1355 (__v8qi, __v4qi): Make unsigned.
1356 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1357 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1358 __vis_fpack32): Fix types.
1359 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1360
1361 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1362 divide costs.
1363 (niagara3_costs): New.
1364 (sparc_option_override): Use it.
1365 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1366 Niagara-3 reservations.
1367
1368 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1369
1370 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1371 (sse2_avx, sseinsnmode): Add V2TI.
1372 (REDUC_SMINMAX_MODE): New mode iterator.
1373 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1374 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1375 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1376 (sse2_lshrv1ti3): Rename to...
1377 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1378 iterator. Move before umaxmin expanders.
1379 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1380 SSE_REG_MODE_P): Accept V2TImode.
1381 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1382 V16HImode, V8SImode and V4DImode.
1383
1384 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1385 and V4DImode.
1386 (ix86_build_signbit_mask): Likewise.
1387 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1388 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1389 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1390 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1391 (<code><mode>3) ... this.
1392 (avx2_<code><mode>3 smaxmin expand): Rename to...
1393 (<code><mode>3) ... this.
1394 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1395 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1396 VI8_AVX2 mode iterator.
1397 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1398 VI8_AVX2 mode iterator.
1399 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1400 New expanders.
1401
1402 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1403
1404 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1405 throughout file.
1406
1407 2011-09-16 David S. Miller <davem@davemloft.net>
1408
1409 * config/sparc/visintrin.h: New file.
1410 * config.gcc: Add it to extra_headers on sparc.
1411
1412 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1413
1414 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1415 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1416 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1417 reduc_smin_v4sf): Adjust callers.
1418 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1419 New expanders.
1420
1421 * config/i386/sse.md (vec_extract_hi_<mode>,
1422 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1423 vextracti128 instead of vextractf128 for -mavx2 and
1424 integer vectors. For V4DFmode fix up mode attribute.
1425 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1426 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1427 instead of V8SF mode attribute.
1428 (avx2_extracti128): Change into define_expand.
1429 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1430 32-byte vector modes if TARGET_AVX.
1431
1432 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1433
1434 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1435 (umulqi3_highpart, smulqi3_highpart): Ditto.
1436 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1437 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1438 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1439
1440 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1441
1442 PR target/50358
1443 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1444 (*maddqi4, *maddqi4.const): New insns.
1445 (*msubqi4, *msubqi4.const): New insns.
1446 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1447 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
1448 HImode by 1 in the case of multiplying with a CONST_INT.
1449 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1450
1451 2011-09-15 Jan Hubicka <jh@suse.cz>
1452
1453 PR lto/50430
1454 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1455 error_mark_node in the DECL_INITIAL of vtable.
1456
1457 2011-09-15 Diego Novillo <dnovillo@google.com>
1458
1459 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1460 @SYSROOT_CFLAGS_FOR_TARGET@.
1461 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1462 * configure: Regenerate.
1463 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1464 Remove setting of GCC_UNDER_TEST.
1465
1466 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
1467
1468 * config/i386/i386.c (output_fp_compare): Return %v prefixed
1469 instruction mnemonics for TARGET_AVX.
1470
1471 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1472 "type" attribute calculation.
1473 (*movdf_internal): Ditto.
1474 (*movsf_internal): Ditto.
1475
1476 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
1477
1478 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1479
1480 2011-09-15 Jason Merrill <jason@redhat.com>
1481
1482 PR c++/50361
1483 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1484
1485 2011-09-15 Jan Hubicka <jh@suse.cz>
1486
1487 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1488 simplify obviously true clauses.
1489 (and_predicates, or_predicates): Add conditions parameter.
1490 (inline_duplication_hoook): Update.
1491 (mark_modified): New function.
1492 (unmodified_parm): New function.
1493 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1494 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1495 Use unmodified_parm.
1496 (estimate_function_body_sizes): Update.
1497 (remap_predicate): Update.
1498
1499 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
1500
1501 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1502 read-after-read dependencies in basic block SLP.
1503
1504 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1505
1506 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1507 throughout file.
1508
1509 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1510
1511 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1512 throughout file.
1513
1514 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1515
1516 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1517 throughout file.
1518
1519 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1520
1521 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1522 throughout file.
1523 * config/rs6000/constraints.md: Likewise.
1524
1525 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1526
1527 * config/microblaze/microblaze.md: Use match_test rather than
1528 eq/ne symbol_ref throughout file.
1529
1530 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1531
1532 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1533 throughout file.
1534
1535 2011-09-14 Tom de Vries <tom@codesourcery.com>
1536
1537 PR middle-end/50251
1538 * explow.c (emit_stack_restore): Set crtl->need_drap if
1539 stack_restore is emitted.
1540
1541 2011-09-14 Julian Brown <julian@codesourcery.com>
1542
1543 * config/arm/arm.c (arm_override_options): Add unaligned_access
1544 support.
1545 (arm_file_start): Emit attribute for unaligned access as appropriate.
1546 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1547 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1548 (insv, extzv): Add unaligned-access support.
1549 (extv): Change to expander. Likewise.
1550 (extzv_t1, extv_regsi): Add helpers.
1551 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1552 (unaligned_storesi, unaligned_storehi): New.
1553 (*extv_reg): New (previous extv implementation).
1554 * config/arm/arm.opt (munaligned_access): Add option.
1555 * config/arm/constraints.md (Uw): New constraint.
1556 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1557 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1558 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1559 volatile accesses when -fstrict-volatile-bitfields is in effect.
1560 (extract_bit_field_1): Likewise.
1561
1562 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
1563
1564 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1565 a scalar integer before applying integer-only optimisations to
1566 inner arithmetic.
1567
1568 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
1569
1570 * config/mips/mips.c (mips_expand_epilogue): Generate a
1571 simple_return only if the return address is in r31.
1572
1573 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1574
1575 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1576 NULL for a jump that is a cc0 insn, pick the previous insn for
1577 move_before.
1578
1579 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1580
1581 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1582 throughout file.
1583
1584 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1585
1586 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1587 throughout file.
1588
1589 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1590
1591 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1592 symbol_ref throughout file.
1593
1594 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1595
1596 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1597 throughout file.
1598
1599 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1600
1601 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1602 throughout file.
1603
1604 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1605
1606 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1607 throughout file.
1608 * config/arm/neon.md: Likewise.
1609 * config/arm/vfp.md: Likewise.
1610 * config/arm/thumb2.md: Likewise.
1611 * config/arm/cortex-m4.md: Likewise.
1612
1613 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1614
1615 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1616 define_insn patterns for combine.
1617
1618 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
1619
1620 * reorg.c: Always define make_return_insns.
1621
1622 2011-09-13 Jan Hubicka <jh@suse.cz>
1623
1624 PR other/49533
1625 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1626
1627 2011-09-13 Jan Hubicka <jh@suse.cz>
1628
1629 PR other/49533
1630 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1631
1632 2011-09-13 Paul Brook <paul@codesourcery.com>
1633
1634 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1635 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1636 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1637 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1638 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1639 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1640 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1641 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1642 enabling unwind tables.
1643 (c6x_debug_unwind_info): New function.
1644 (TARGET_ARM_EABI_UNWINDER): Define.
1645 (TARGET_DEBUG_UNWIND_INFO): Define.
1646 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1647 (TARGET_EXTRA_CFI_SECTION): Remove.
1648 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1649 * ginclude/unwind-arm-common.h: New file.
1650
1651 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
1652
1653 PR target/50358
1654 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1655 * config/avr/avr.md: (extend_s): New code attribute.
1656 (mul_r_d): New code attribute.
1657 (*maddqihi4, *umaddqihi4): New insns.
1658 (*msubqihi4, *umsubqihi4): New insns.
1659 (*usmaddqihi4, *sumaddqihi4): New insns.
1660 (*usmsubqihi4, *susubdqihi4): New insns.
1661 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1662 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1663 (*umsubqihi4.uconst.ashift): New insn-and-split.
1664 (*msubqihi4.sconst.ashift): New insn-and-split.
1665 (*sumaddqihi4.uconst): New insn-and-split.
1666 (*sumsubqihi4.uconst): New insn-and-split.
1667 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1668 PLUS:HI and MINUS:HI.
1669
1670 2011-09-13 Revital Eres <revital.eres@linaro.org>
1671
1672 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1673 (optimize_sc): Adjust call to remove_node_from_ps.
1674 (sms_schedule): Add print info.
1675
1676 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1677
1678 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1679 flags specially.
1680
1681 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1682
1683 PR bootstrap/50010
1684 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1685 NOTE_INSN_CFI notes, with the exception of
1686 NOTE_INSN_SWITCH_TEXT_SECTIONS.
1687
1688 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
1689 Richard Sandiford <rdsandiford@googlemail.com>
1690
1691 * config/mips/mips.c (mips_epilogue): New structure.
1692 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1693 restoring registers.
1694 (mips_epilogue_emit_cfa_restores): New function.
1695 (mips_epilogue_set_cfa): Likewise.
1696 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
1697 the current CFA register from the stack, redefine the CFA in terms
1698 of the stack pointer.
1699 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
1700 to the epilogue instructions.
1701
1702 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
1703
1704 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1705 argument.
1706 (mips16e_build_save_restore): Update accordingly.
1707
1708 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1709
1710 PR rtl-optimization/50212
1711 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1712 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1713
1714 PR debug/50299
1715 * calls.c (load_register_parameters): Use use_reg_mode instead
1716 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1717 entry.
1718 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1719 for stack CALL_INSN_FUNCTION_USAGE uses.
1720 * expr.h (use_reg_mode): New prototype.
1721 (use_reg): Changed into inline around use_reg_mode.
1722 * expr.c (use_reg): Renamed to...
1723 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
1724 mode to that mode instead of VOIDmode.
1725 * var-tracking.c (prepare_call_arguments): Don't track parameters
1726 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1727 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
1728 EXPR_LIST mode.
1729
1730 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
1731
1732 PR target/43746
1733 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1734 (progmem_section): New Variable.
1735 (avr_asm_init_sections): Initialize it.
1736 (TARGET_ASM_SELECT_SECTION): Define to...
1737 (avr_asm_select_section): ... this new Function.
1738 (avr_replace_prefix): New Function.
1739 (avr_asm_function_rodata_section): Use it.
1740 (avr_insert_attributes): Don't add section attribute for PROGMEM.
1741 (avr_section_type_flags): Use avr_progmem_p instead of section
1742 name to detect if object is in PROGMEM.
1743 (avr_asm_named_section): Set section name prefix for objects in
1744 PROGMEM.
1745
1746 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1747
1748 PR bootstrap/50352
1749 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1750 sprintf format string.
1751
1752 2011-09-12 Richard Guenther <rguenther@suse.de>
1753
1754 PR tree-optimization/50343
1755 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1756 that the reduction is over an SSA name before checking its definition.
1757
1758 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1759
1760 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1761 throughout file.
1762
1763 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1764
1765 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1766 throughout file.
1767 * config/mips/sb1.md: Likewise.
1768 * config/mips/predicates.md: Replace (match_test "!...")
1769 with (not (match_test "..."))
1770 * config/mips/constraints.md: Likewise.
1771
1772 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
1773
1774 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1775 * config/arm/arm-tables.opt: Regenerate.
1776 * config/arm/arm-tune.md: Regenerate.
1777 * config/arm/arm.c (arm_file_start): Output .arch directive when
1778 user passes -mcpu=generic-*.
1779 (arm_issue_rate): Add genericv7a support.
1780 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1781 (ASM_CPU_SPEC): New define.
1782 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1783 * config/arm/semi.h (ASM_SPEC): Likewise.
1784 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1785 and -mtune=generic-*.
1786
1787 2011-09-09 Richard Guenther <rguenther@suse.de>
1788
1789 PR tree-optimization/50328
1790 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1791 constant or default-def operand.
1792
1793 2011-09-09 Richard Guenther <rguenther@suse.de>
1794
1795 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1796 last statement.
1797
1798 2011-09-09 Richard Guenther <rguenther@suse.de>
1799
1800 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1801 instead of a statement.
1802 * gimple-fold.c (fold_stmt_inplace): Likewise.
1803 * sese.c (graphite_copy_stmts_from_block): Adjust.
1804 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1805 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1806 fold_stmt.
1807 (forward_propagate_addr_into_variable_array_index): Likewise.
1808 (forward_propagate_addr_expr_1): adjust.
1809 (associate_plusminus): Likewise.
1810 (ssa_forward_propagate_and_combine): Likewise.
1811 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1812 (execute_cse_reciprocals): Likewise.
1813 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1814
1815 2011-09-09 Nick Clifton <nickc@redhat.com>
1816
1817 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1818 Return a positive value to indicate that the bits at the
1819 bottom of the register should be cleared.
1820
1821 2011-09-09 Richard Guenther <rguenther@suse.de>
1822
1823 * tree-ssa-operands.c (swap_tree_operands): Always adjust
1824 existing operand positions.
1825
1826 2011-09-09 Richard Guenther <rguenther@suse.de>
1827
1828 PR middle-end/50333
1829 * tree-data-ref.c (split_constant_offset): Do not try to handle
1830 ternary ops.
1831
1832 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
1833
1834 PR tree-optimization/50318
1835 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1836 typo in use of mult_rhs1 and mult_rhs2.
1837
1838 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
1839
1840 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1841 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1842
1843 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
1844
1845 * config/arm/arm.md (push_multi): Emit predicates.
1846 (push_fp_multi): Likewise.
1847 * config/arm/arm.c (vfp_output_fstmd): Likewise.
1848
1849 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1850
1851 PR c++/33255 - Support -Wunused-local-typedefs warning
1852 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1853 (pushdecl): Use the new record_locally_defined_typedef.
1854 (store_parm_decls): Allocate cfun->language.
1855 (finish_function): Use the new maybe_warn_unused_local_typedefs,
1856 and free cfun->language.
1857 (c_push_function_context): Allocate cfun->language here only if needed.
1858 (c_pop_function_context): Likewise, mark cfun->language
1859 for collection only when it should be done.
1860 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1861 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1862 maybe_record_local_typedef_use.
1863 * doc/invoke.texi: Update documentation for
1864 -Wunused-local-typedefs.
1865
1866 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
1867
1868 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1869 (ix86_avoid_lea_for_add): Likewise.
1870 (ix86_avoid_lea_for_addr): Likewise.
1871 (ix86_split_lea_for_addr): Likewise.
1872
1873 * config/i386/i386.c (LEA_MAX_STALL): New.
1874 (increase_distance): Likewise.
1875 (insn_defines_reg): Likewise.
1876 (insn_uses_reg_mem): Likewise.
1877 (distance_non_agu_define_in_bb): Likewise.
1878 (distance_agu_use_in_bb): Likewise.
1879 (ix86_lea_outperforms): Likewise.
1880 (ix86_ok_to_clobber_flags): Likewise.
1881 (ix86_avoid_lea_for_add): Likewise.
1882 (ix86_avoid_lea_for_addr): Likewise.
1883 (ix86_split_lea_for_addr): Likewise.
1884 (distance_non_agu_define): Search in pred BBs added.
1885 (distance_agu_use): Search in succ BBs added.
1886 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1887 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1888 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1889
1890 * config/i386/i386.md: Split added to transform non destructive
1891 add into move and add.
1892 (lea_1): transformed into insn_and_split to avoid AGU stalls.
1893 (lea<mode>_2): Likewise.
1894
1895 2011-09-08 Martin Jambor <mjambor@suse.cz>
1896
1897 PR tree-optimization/50287
1898 * ipa-split.c (split_function): Do not create SSA names for
1899 non-gimple-registers.
1900
1901 2011-09-08 Richard Guenther <rguenther@suse.de>
1902
1903 PR tree-optimization/19831
1904 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1905 skip builtins with vdefs that do not really store something.
1906 (propagate_necessity): For calls to free that we can associate
1907 with an allocation function do not mark the freed pointer
1908 definition necessary.
1909 (eliminate_unnecessary_stmts): Remove a call to free if
1910 the associated call to an allocation function is not necessary.
1911
1912 2011-09-08 Richard Guenther <rguenther@suse.de>
1913
1914 PR tree-optimization/19831
1915 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1916 allocation functions as necessary.
1917
1918 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
1919
1920 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1921 cut from ...
1922 (darwin_default_min_version): Amended to provide defaults
1923 for the cross directory case.
1924 (darwin_driver_init): call darwin_default_min_version unconditionally.
1925 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1926 * config/darwin9.h: Likewise.
1927 * config/darwin10.h: Likewise.
1928 * config/rs6000/darwin7.h: Likewise.
1929
1930 2011-09-08 Jakub Jelinek <jakub@redhat.com>
1931
1932 PR target/50310
1933 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1934 code early if TARGET_AVX.
1935 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1936
1937 2011-09-07 Jakub Jelinek <jakub@redhat.com>
1938
1939 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1940 duplicates.
1941
1942 PR target/50310
1943 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1944 "mode" attribute computation.
1945
1946 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
1947
1948 * regrename.c (struct du_head): Make nregs signed.
1949 (closed_chains): Remove.
1950 (create_new_chain): Return the new chain.
1951 (chain_from_id): New static function.
1952 (dump_def_use_chain): Change argument to be an int, indicating
1953 the first ID to print. All callers changed.
1954 (merge_overlapping_regs): Use chain_from_id. Assert that
1955 chains don't conflict with themselves.
1956 (rename_chains): Take no argument. Iterate over id_to_chain
1957 rather to find chains to rename. Clear tick before the main loop.
1958 (struct incoming_reg_info): New struct.
1959 (struct bb_rename_info): New struct.
1960 (init_rename_info, set_incoming_from_chain, merge_chains): New
1961 static functions.
1962 (regrename_analyze): New static function, broken out of
1963 regrename_optimize. Record and make use of open chain information
1964 at basic block boundaries, and merge chains where possible.
1965 (scan_rtx_reg): Make this_nregs signed. Don't update
1966 closed_chains.
1967 (build_def_use): Return a bool to indicate success. All callers
1968 changed. Don't initialize global data here.
1969 (regrename_optimize): Move most code out of here into
1970 regrename_analyze.
1971 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1972 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1973 static inline functions.
1974 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1975
1976 * bb-reorder.c (insert_section_boundary_note): Don't check
1977 optimize_function_for_speed_p.
1978 (gate_handle_partition_blocks): Do it here instead.
1979 (gate_handle_reorder_blocks): Move preliminary checks here ...
1980 (rest_of_handle_reorder_blocks): ... from here.
1981
1982 2011-09-07 Martin Jambor <mjambor@suse.cz>
1983
1984 PR middle-end/50301
1985 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1986 function index bounds.
1987 (perhaps_add_new_callers): Likewise.
1988
1989 2011-09-07 Martin Jambor <mjambor@suse.cz>
1990
1991 PR tree-optimization/49911
1992 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1993 enumerations to the corresponding plain integer type.
1994
1995 2011-09-07 Richard Guenther <rguenther@suse.de>
1996
1997 PR tree-optimization/50319
1998 * tree-if-conv.c (set_bb_predicate): Assert we only set
1999 canonical predicates.
2000 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
2001 around canonical predicates.
2002 (predicate_bbs): Do not re-gimplify already canonical
2003 predicates. Properly unshare them though.
2004 (find_phi_replacement_condition): Simplify.
2005
2006 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
2007
2008 PR target/49030
2009 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2010 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2011 reusing the old code from get_arm_condition_code. Return ARM_NV
2012 for invalid comparison codes.
2013 (get_arm_condition_code): Redefine in terms of
2014 maybe_get_arm_condition_code.
2015 * config/arm/predicates.md (arm_comparison_operator): Use
2016 maybe_get_arm_condition_code.
2017
2018 2011-09-07 Richard Guenther <rguenther@suse.de>
2019
2020 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2021 Canonicalize negated predicates by swapping edges.
2022 (forward_propagate_into_cond): Likewise.
2023
2024 2011-09-07 Richard Guenther <rguenther@suse.de>
2025
2026 PR tree-optimization/50213
2027 * tree-flow.h (simple_iv_increment_p): Declare.
2028 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
2029 POINTER_PLUS_EXPR.
2030 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2031 not propagate simple IV counter increments.
2032
2033 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
2034 Iain Sandoe <iains@gcc.gnu.org>
2035
2036 * config/rs6000/rs6000.c (compute_save_world_info): Test
2037 cfun->has_nonlocal_label to determine if the out-of-line save
2038 world call may be used.
2039
2040 2011-09-07 Nick Clifton <nickc@redhat.com>
2041
2042 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2043 label on the parallel part of the insn.
2044
2045 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2046
2047 PR debug/50191
2048 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2049 avoid_constant_pool_reference first instead of last.
2050
2051 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2052
2053 * doc/configfiles.texi (Configuration Files): Update documentation
2054 about tm_p.h and remove FIXME comment.
2055
2056 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
2057
2058 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2059 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2060
2061 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2062
2063 * config/darwin10.h Remove duplicate LIB_SPEC.
2064
2065 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
2066
2067 PR middle-end/44382
2068 * target.def (reassociation_width): New hook.
2069
2070 * doc/tm.texi.in (reassociation_width): Likewise.
2071
2072 * doc/tm.texi (reassociation_width): Likewise.
2073
2074 * doc/invoke.texi (tree-reassoc-width): New param documented.
2075
2076 * hooks.h (hook_int_uint_mode_1): New default hook.
2077
2078 * hooks.c (hook_int_uint_mode_1): Likewise.
2079
2080 * config/i386/i386.h (ix86_tune_indices): Add
2081 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2082
2083 (TARGET_REASSOC_INT_TO_PARALLEL): New.
2084 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2085
2086 * config/i386/i386.c (initial_ix86_tune_features): Add
2087 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2088
2089 (ix86_reassociation_width): New function.
2090
2091 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2092
2093 * tree-ssa-reassoc.c (get_required_cycles): New function.
2094 (get_reassociation_width): Likewise.
2095 (swap_ops_for_binary_stmt): Likewise.
2096 (rewrite_expr_tree_parallel): Likewise.
2097
2098 (rewrite_expr_tree): Refactored. Part of code moved into
2099 swap_ops_for_binary_stmt.
2100
2101 (reassociate_bb): Now checks reassociation width to be used and
2102 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2103
2104 2011-09-06 Richard Guenther <rguenther@suse.de>
2105
2106 PR tree-optimization/47025
2107 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2108 uses nothing.
2109 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2110 BUILT_IN_FREE.
2111 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2112 definitely points to.
2113 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2114 BUILT_IN_VA_START doesn't let its va_list argument escape.
2115 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2116 not make any previous stores necessary.
2117
2118 2011-09-06 Martin Jambor <mjambor@suse.cz>
2119
2120 * ipa-inline.h (struct inline_summary): Move versionable flag...
2121 * cgraph.h (struct cgraph_local_info): ...here
2122 * ipa-cp.c (determine_versionability): Use the new versionable flag.
2123 (determine_versionability): Likewise.
2124 (ipcp_versionable_function_p): Likewise.
2125 (ipcp_generate_summary): Likewise.
2126 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2127 versionable flag.
2128 (compute_inline_parameters): Do not clear the versionable flag.
2129 (inline_read_section): Do not stream the versionable flag.
2130 (inline_write_summary): Likewise.
2131 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2132 (input_overwrite_node): Likewise.
2133
2134 2011-09-06 Richard Guenther <rguenther@suse.de>
2135
2136 PR tree-optimization/48149
2137 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2138 (vn_valueize): Move earlier.
2139 (valueize_expr): Use vn_valueize.
2140 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2141 operands.
2142 (simplify_unary_expression): Simplify.
2143
2144 2011-09-06 Richard Guenther <rguenther@suse.de>
2145
2146 PR tree-optimization/48317
2147 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2148 trailing array.
2149 (sizeof_vn_nary_op): New inline function.
2150 (vn_nary_op_lookup_pieces): Adjust.
2151 (vn_nary_op_insert_pieces): Likewise.
2152 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2153 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2154 any number of operands.
2155 (vn_nary_length_from_stmt): New function.
2156 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2157 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2158 sized temporary.
2159 (vn_nary_op_lookup): Likewise.
2160 (vn_nary_op_lookup_stmt): Likewise.
2161 (vn_nary_op_insert_into): Likewise.
2162 (vn_nary_op_insert_stmt): Likewise.
2163 (visit_use): Handle CONSTRUCTOR as nary.
2164 * tree-ssa-pre.c (phi_translate_1): Adjust.
2165 (create_expression_by_pieces): Likewise.
2166 (compute_avail): Likewise.
2167
2168 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2169
2170 * config/arm/arm.c (arm_preferred_simd_mode): Check
2171 TARGET_NEON_VECTORIZE_DOUBLE instead of
2172 TARGET_NEON_VECTORIZE_QUAD.
2173 (arm_autovectorize_vector_sizes): Likewise.
2174 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2175 mask of mvectorize-with-neon-double. Add RejectNegative.
2176 (mvectorize-with-neon-double): New.
2177
2178 2011-09-06 Richard Guenther <rguenther@suse.de>
2179
2180 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2181
2182 2011-09-06 Tom de Vries <tom@codesourcery.com>
2183
2184 * recog.c (asm_labels_ok): New function.
2185 (check_asm_operands): Use asm_labels_ok.
2186
2187 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2188
2189 PR target/49606
2190 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2191 (PMODE_INSN): New macro.
2192 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2193 (mips_got_load, mips_expand_synci_loop): Likewise.
2194 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2195 cprestore patterns.
2196 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2197 copygp_mips16 patterns.
2198 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2199 and use_cprestore patterns.
2200 (mips_override_options): Check for incompatible -mabi and -mlong
2201 combinations.
2202 * config/mips/mips.md (unspec_got<mode>): Rename to...
2203 (unspec_got_<mode>): ...this.
2204 (copygp_mips16): Use the Pmode iterator.
2205 (potential_cprestore, cprestore, use_cprestore): Likewise.
2206 (clear_cache, indirect_jump): Use PMODE_INSN.
2207 (indirect_jump<mode>): Rename to...
2208 (indirect_jump_<mode>): ...this.
2209 (tablejump): Use PMODE_INSN.
2210 (tablejump<mode>): Rename to...
2211 (tablejump_<mode>): ...this.
2212 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2213 (restore_gp): Use the Pmode iterator.
2214 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2215 PMODE_INSN.
2216
2217 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2218
2219 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2220 Fix the type of the BIT_AND_EXPR.
2221
2222 2011-09-05 David S. Miller <davem@davemloft.net>
2223
2224 * config.host: Add driver-sparc.o and sparc/x-sparc on
2225 native sparc*-*-linux* builds.
2226 * config/sparc/driver-sparc.c: Correct Linux strings.
2227 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2228 * config/sparc/linux64.h: Likewise.
2229 * doc/invoke.texi: Document that Linux also supports
2230 -mcpu=native and -mtune=native on sparc.
2231
2232 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2233 PROCESSOR_NIAGARA4): New.
2234 * config/sparc/sparc.opt: Handle new processor types.
2235 * config/sparc/sparc.md: Add to "cpu" attribute.
2236 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2237 TARGET_CPU_niagara4): New, treat as niagara2.
2238 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2239 * config/sparc/sol2.h: Likewise.
2240 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2241 * config/sparc/sparc.c (sparc_option_override): Add
2242 niagara3 and niagara4 handling.
2243 (sparc32_initialize_trampoline): Likewise.
2244 (sparc64_initialize_trampoline): Likewise.
2245 (sparc_use_sched_lookahead): Likewise.
2246 (sparc_issue_rate): Likewise.
2247 (sparc_register_move_cost): Likewise.
2248 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2249 and niagara4 as appropriate.
2250 * doc/invoke.texi: Document new processor types.
2251 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2252 and --with-tune options.
2253
2254 * config/sparc/sol2-64.h: Move ...
2255 * config/sparc/default-64.h: ... to here. Update comment.
2256 * config.gcc: Update Solaris sparc to use default-64.h, also
2257 prefix this header into the list on sparc64-*-linux.
2258 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2259 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2260 to MASK_HARD_QUAD.
2261
2262 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2263
2264 PR target/50289
2265 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2266 that contain global register variable.
2267
2268 2011-09-05 Richard Guenther <rguenther@suse.de>
2269
2270 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2271
2272 2011-09-05 Richard Guenther <rguenther@suse.de>
2273
2274 * stor-layout.c (layout_type): Use size_binop for array size
2275 calculations.
2276
2277 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2278
2279 * config/avr/avr.h (progmem_section): Remove Declaration.
2280 * config/avr/avr.c (progmem_section): Make static and rename to
2281 progmem_swtable_section.
2282 (avr_output_addr_vec_elt): No need to switch sections.
2283 (avr_asm_init_sections): Use output_section_asm_op as section
2284 callback for progmem_swtable_section.
2285 (avr_output_progmem_section_asm_op): Remove Function.
2286 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2287 (avr_asm_function_rodata_section): New static Function.
2288 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2289 alignment 2**1 for jump tables.
2290
2291 2011-09-04 Jan Hubicka <jh@suse.cz>
2292
2293 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2294 parameter is SSA name.
2295
2296 2011-09-04 Richard Guenther <rguenther@suse.de>
2297
2298 Revert
2299 2011-08-31 Richard Guenther <rguenther@suse.de>
2300
2301 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2302 special-casing.
2303
2304 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2305
2306 PR debug/49901
2307 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2308
2309 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2310 Ira Rosen <ira.rosen@linaro.org>
2311
2312 PR tree-optimization/50208
2313 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2314 argument. Check that def_stmt is inside the loop.
2315 (vect_recog_widen_mult_pattern): Update calls to
2316 vect_handle_widen_mult_by_cons.
2317 (vect_operation_fits_smaller_type): Check that def_stmt is
2318 inside the loop.
2319
2320 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2321
2322 * tree-vectorizer.c (vect_print_dump_info): Print line
2323 number when dumping to a file.
2324 (vectorize_loops): Add new messages to dump file.
2325
2326 2011-09-03 Martin Jambor <mjambor@suse.cz>
2327
2328 * ipa-prop.h (ipa_jump_func_t): New typedef.
2329 (struct ipa_edge_args): Removed field argument_count, field
2330 jump_functions turned into a vector.
2331 (ipa_set_cs_argument_count): Removed.
2332 (ipa_get_cs_argument_count): Updated to work on vectors.
2333 (ipa_get_ith_jump_func): Likewise.
2334 * ipa-prop.c (ipa_count_arguments): Removed.
2335 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2336 jump functions. Update caller.
2337 (compute_pass_through_member_ptrs): Likewise.
2338 (compute_cst_member_ptr_arguments): Likewise.
2339 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2340 the statement, allocate vector.
2341 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2342 (duplicate_ipa_jump_func_array): Removed.
2343 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2344 (ipa_read_node_info): Allocate vector.
2345
2346 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2347
2348 PR middle-end/50232
2349 * config/pa/pa.md (return): Define "return" insn pattern.
2350 (epilogue): Use it when no epilogue is needed.
2351 * config/pa/pa.c (pa_can_use_return_insn): New function.
2352 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2353
2354 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2355
2356 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2357 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2358 Force at least BITS_PER_UNIT alignment on the new variable.
2359
2360 2011-09-02 Gary Funck <gary@intrepid.com>
2361
2362 * opts.c (print_specific_help): Fix off-by-one compare in
2363 assertion check.
2364 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2365 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2366 Increase by +5 to allow for more languages.
2367 * optc-gen.awk: Generate #if that ensures that the number of
2368 languages is within the implementation-defined limit.
2369
2370 2011-09-02 Michael Matz <matz@suse.de>
2371
2372 PR middle-end/50260
2373 * ipa-split.c (split_function): Call add_referenced_var.
2374
2375 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2376 (cond_if_else_store_replacement_1): Ditto.
2377 * tree-ssa-pre.c (get_representative_for): Ditto.
2378 (create_expression_by_pieces): Ditto.
2379 (insert_into_preds_of_block): Ditto.
2380 * tree-sra.c (create_access_replacement): Ditto.
2381 (get_replaced_param_substitute): Ditto.
2382
2383 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2384
2385 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2386 automata_options.
2387 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2388 (l1w, s1w, l2w, s2w): Define in the main automaton.
2389 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2390 units.
2391 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2392 (c6x_unit_names): Add the new units.
2393 (c6x_unit_codes): New static array.
2394 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2395 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2396 UNIT_QID_SIDE_OFFSET): New macros.
2397 (RESERVATION_S2): Adjust value.
2398 (c6x_option_override): Compute c6x_unit_codes.
2399 (assign_reservations): Take the unit_mask of the last instruction
2400 into account. Detect floating point reservations by looking for
2401 the new units. Don't assign reservations if the field is already
2402 nonzero.
2403 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2404 (init_sched_state): Initialize it.
2405 (c6x_clear_sched_context): Free it.
2406 (insn_set_clock): Clear reservation.
2407 (prev_cycle_state): New static variable.
2408 (c6x_init_sched_context): Save it.
2409 (c6x_sched_init): Allocate space for it and clear it.
2410 (c6x_sched_dfa_pre_cycle_insn): New static function.
2411 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2412 (c6x_variable_issue): Only record units in the unit_mask that
2413 were not set at the start of the cycle.
2414 (c6x_variable_issue): Compute and store the unit_mask from the
2415 current state.
2416 (reorg_split_calls): Ensure the new information remains correct.
2417 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2418 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2419 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2420 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2421 Add special reservations.
2422 * config/c6x/c6x-sched.md: Regenerate.
2423
2424 2011-09-02 Martin Jambor <mjambor@suse.cz>
2425
2426 * ipa-prop.h (ipa_node_params): Removed fields
2427 called_with_var_arguments and node_versionable.
2428 (ipa_set_called_with_variable_arg): Removed.
2429 (ipa_is_called_with_var_arguments): Likewise.
2430 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2431 (determine_versionability): Do not check for type attributes and va
2432 builtins. Record versionability into inline summary.
2433 (initialize_node_lattices): Do not check
2434 ipa_is_called_with_var_arguments.
2435 (propagate_constants_accross_call): Likewise, ignore arguments we do
2436 not have PARM_DECLs for, set variable flag for parameters that were
2437 not passed a value.
2438 (create_specialized_node): Dump info that we cannot change signature.
2439 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2440 number of arguments.
2441 (ipa_make_edge_direct_to_target): Likewise.
2442 (ipa_update_after_lto_read): Likewise.
2443 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2444 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2445 they were remapped.
2446
2447 2011-09-02 Richard Guenther <rguenther@suse.de>
2448
2449 PR tree-optimization/27460
2450 PR middle-end/29269
2451 * doc/md.texi (vcond): Document.
2452 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2453 optab with two modes.
2454 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2455 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2456 (vcond_optab): Adjust.
2457 (vcondu_optab): Likewise.
2458 (expand_vec_cond_expr_p): Adjust prototype.
2459 * optabs.c (get_vcond_icode): Adjust.
2460 (expand_vec_cond_expr_p): Likewise.
2461 (expand_vec_cond_expr): Likewise.
2462 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2463 vector type.
2464 (vectorizable_condition): Allow differing types for comparison
2465 and result.
2466 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2467 for the comparison.
2468 * config/i386/sse.md (vcond<mode>): Split to
2469 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2470 vcond<V_128:mode><VI124_128:mode> and
2471 vcondu<V_128:mode><VI124_128:mode>.
2472 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2473 (vconduv2di): Likewise.
2474 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2475 (vcondu<mode>): Likewise.
2476 * config/ia64/vect.md (vcond<mode>): Likewise.
2477 (vcondu<mode>): Likewise.
2478 (vcondv2sf): Likewise.
2479 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2480 * config/rs6000/paired.md (vcondv2sf): Likewise.
2481 * config/rs6000/vector.md (vcond<mode>): Likewise.
2482 (vcondu<mode>): Likewise.
2483 * config/spu/spu.md (vcond<mode>): Likewise.
2484 (vcondu<mode>): Likewise.
2485
2486 2011-09-02 Richard Guenther <rguenther@suse.de>
2487
2488 * pretty-print.h (pp_unsigned_wide_integer): New.
2489 * tree-pretty-print.c (dump_generic_node): Print unsigned
2490 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2491
2492 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
2493
2494 PR target/49987
2495 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2496 valid CONST_VECTOR operands.
2497 (rs6000_expand_vector_init): Likewise.
2498
2499 2011-09-02 Martin Jambor <mjambor@suse.cz>
2500
2501 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2502 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2503 BINFO_VTABLE. Parameter delta removed, all callers updated.
2504 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2505 BINFO_VTABLE.
2506 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2507 all calls.
2508 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2509 handling of thunk_delta.
2510 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2511 (devirtualization_time_bonus): Do not handle thunk deltas.
2512 (ipcp_discover_new_direct_edges): Likewise.
2513 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2514 (try_make_edge_direct_simple_call): Likewise.
2515 (try_make_edge_direct_virtual_call): Likewise.
2516 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2517 parameter set as unused.
2518 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2519 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2520 parameter set as unused.
2521 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2522 (input_edge_opt_summary): Likewise.
2523 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2524 BINFO_VIRTUALS at all.
2525 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2526
2527 2011-09-02 Richard Guenther <rguenther@suse.de>
2528
2529 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2530 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2531
2532 2011-08-31 Richard Guenther <rguenther@suse.de>
2533
2534 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2535 handling here, from ...
2536 (expand_expr_real_1): ... here.
2537 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2538 and VEC_COND_EXPR.
2539 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2540 a GIMPLE_TERNARY_RHS.
2541 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2542 and VEC_COND_EXPR here ...
2543 (verify_gimple_assign_single): ... not here.
2544 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2545 * tree-object-size.c (cond_expr_object_size): Adjust.
2546 (collect_object_sizes_for): Likewise.
2547 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2548 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2549 (ssa_forward_propagate_and_combine): Adjust.
2550 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2551 as ternary.
2552 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2553 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2554 * tree-vect-stmt.c (vectorizable_condition): Likewise.
2555 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2556 (extract_range_from_assignment): Likewise.
2557
2558 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2559
2560 * config/i386/i386.md: Use (match_test ...) for attribute tests.
2561 * config/i386/mmx.md: Likewise.
2562 * config/i386/sse.md: Likewise.
2563 * config/i386/predicates.md (call_insn_operand): Use
2564 (not (match_test "...")) instead of (match_test "!...")
2565 * config/i386/constraints.md (w): Likewise.
2566
2567 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2568
2569 * doc/md.texi: Describe the use of match_tests in attribute tests.
2570 * rtl.def (MATCH_TEST): Update commentary.
2571 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2572 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2573
2574 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2575
2576 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2577 (attr_string): Use copy_md_ptr_loc.
2578
2579 2011-08-31 Martin Jambor <mjambor@suse.cz>
2580
2581 PR middle-end/49886
2582 * ipa-inline-analysis.c (compute_inline_parameters): Set
2583 can_change_signature of noes with typde attributes.
2584 * ipa-split.c (split_function): Do not skip any arguments if
2585 can_change_signature is set.
2586
2587 2011-08-31 Martin Jambor <mjambor@suse.cz>
2588
2589 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2590 check removed.
2591
2592 2011-08-31 Richard Guenther <rguenther@suse.de>
2593
2594 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2595 special-casing.
2596
2597 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
2598
2599 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2600
2601 2011-08-31 Tom de Vries <tom@codesourcery.com>
2602
2603 PR middle-end/43513
2604 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2605 * tree-ssa-ccp.c (params.h): Include.
2606 (fold_builtin_alloca_for_var): New function.
2607 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2608
2609 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
2610
2611 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2612 Handle FMA option.
2613
2614 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2615
2616 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2617 b3 and b4 unsigned.
2618
2619 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2620
2621 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2622 when code is SET.
2623
2624 2011-08-30 Richard Guenther <rguenther@suse.de>
2625
2626 PR middle-end/48571
2627 * gimple.h (maybe_fold_offset_to_address): Remove.
2628 (maybe_fold_offset_to_reference): Likewise.
2629 (maybe_fold_stmt_addition): Likewise.
2630 (may_propagate_address_into_dereference): Likewise.
2631 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2632 array references.
2633 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2634 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2635 addresses instead.
2636 (may_propagate_address_into_dereference): Remove.
2637 (maybe_fold_offset_to_array_ref): Likewise.
2638 (maybe_fold_offset_to_reference): Likewise.
2639 (maybe_fold_offset_to_address): Likewise.
2640 (maybe_fold_stmt_addition): Likewise.
2641 (fold_gimple_assign): Do not reconstruct array references but
2642 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2643 MEM_REF addresses.
2644 (gimple_fold_stmt_to_constant_1): Likewise.
2645 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2646 * gimplify.c (gimplify_conversion): Likewise.
2647 (gimplify_expr): Likewise.
2648
2649 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
2650
2651 * config/i386/fmaintrin.h: New.
2652 * config.gcc: Add fmaintrin.h.
2653 * config/i386/i386.c
2654 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2655 <IX86_BUILTIN_VFMADDSD3>: Likewise.
2656 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2657 (*fmai_fmadd_<mode>): Likewise.
2658 (*fmai_fmsub_<mode>): Likewise.
2659 (*fmai_fnmadd_<mode>): Likewise.
2660 (*fmai_fnmsub_<mode>): Likewise.
2661 * config/i386/immintrin.h: Add fmaintrin.h.
2662
2663 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
2664
2665 * genautomata.c (NO_COMB_OPTION): New macro.
2666 (no_comb_flag): New static variable.
2667 (gen_automata_option): Handle NO_COMB_OPTION.
2668 (comb_vect_p): False if no_comb_flag.
2669 (add_vect): Move computation of min/max values. Return early if
2670 no_comb_flag.
2671 * doc/md.texi (automata_option): Document no-comb-vect.
2672
2673 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2674 "__x86.get_pc_thunk".
2675
2676 * bb-reorder.c (insert_section_boundary_note): Only do it if
2677 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2678
2679 2011-08-30 Christian Bruel <christian.bruel@st.com>
2680
2681 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2682 flag_profile_use.
2683
2684 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2685
2686 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2687 to off. Document switch.
2688 * doc/invoke.texi (-msave-toc-indirect): Ditto.
2689
2690 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2691
2692 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2693 conditionals and comments inside macro arguments.
2694
2695 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2696 Richard Guenther <rguenther@suse.de>
2697
2698 * tree.h (constant_boolean_node): Adjust prototype.
2699 * fold-const.c (fold_convert_loc): Move aggregate conversion
2700 leeway down.
2701 (constant_boolean_node): Make value parameter boolean, add
2702 vector type handling.
2703 (fold_unary_loc): Use constant_boolean_node.
2704 (fold_binary_loc): Preserve types properly when folding
2705 COMPLEX_EXPR <__real x, __imag x>.
2706 * gimplify.c (gimplify_expr): Handle vector comparison.
2707 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2708 comparison.
2709 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2710 comparisons.
2711
2712 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2713
2714 PR middle-end/48722
2715 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2716 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2717 (verify_rtl_sharing): Likewise and verify_rtx_sharing
2718 in there too.
2719 (unshare_all_rtl_in_chain): For CALL_INSNs
2720 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2721
2722 2011-08-29 Richard Guenther <rguenther@suse.de>
2723
2724 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2725 on the built ADDR_EXPR.
2726
2727 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2728
2729 PR debug/50215
2730 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2731 before adding ENTRY_VALUE to val->locs.
2732
2733 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
2734
2735 PR bootstrap/50218
2736 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2737 comp.
2738
2739 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
2740
2741 * doc/rtl.texi (simple_return): Document.
2742 (parallel, PATTERN): Here too.
2743 * doc/md.texi (return): Mention it's allowed to expand to simple_return
2744 in some cases.
2745 (simple_return): Document standard pattern.
2746 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2747 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2748 * reorg.c (function_return_label, function_simple_return_label):
2749 New static variables, replacing...
2750 (end_of_function_label): ... this.
2751 (simplejump_or_return_p): New static function.
2752 (optimize_skip, steal_delay_list_from_fallthrough,
2753 fill_slots_from_thread): Use it.
2754 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
2755 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2756 (find_end_label): Take a new arg which is one of the two return
2757 rtxs. Depending on which, set either function_return_label or
2758 function_simple_return_label. All callers changed.
2759 (make_return_insns): Make both kinds.
2760 (dbr_schedule): Adjust for two kinds of end labels.
2761 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2762 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2763 (gen_expand, gen_split): Use ANY_RETURN_P.
2764 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2765 * rtl.def (SIMPLE_RETURN): New code.
2766 * ifcvt.c (find_if_case_1): Be more careful about
2767 redirecting jumps to the EXIT_BLOCK.
2768 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2769 returnjump_p_1): Handle SIMPLE_RETURNs.
2770 * print-rtl.c (print_rtx): Likewise.
2771 * rtl.c (copy_rtx): Likewise.
2772 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2773 * combine.c (simplify_set): Likewise.
2774 * resource.c (find_dead_or_set_registers, mark_set_resources):
2775 Likewise.
2776 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2777 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2778 (init_emit_regs): Initialize simple_return_rtx.
2779 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2780 force_nonfallthru_and_redirect.
2781 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2782 (GR_SIMPLE_RETURN): New enum value.
2783 (simple_return_rtx): New macro.
2784 * basic-block.h (force_nonfallthru_and_redirect): Adjust
2785 declaration.
2786 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2787 argument. All callers changed. Be careful about what kinds of
2788 returnjumps to generate.
2789 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2790 ix86_pad_short_function): Likewise.
2791 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2792 of return.
2793 * config/mips/mips.md (any_return): New code_iterator.
2794 (optab): Add cases for return and simple_return.
2795 (return): Expand to a simple_return.
2796 (simple_return): New pattern.
2797 (*<optab>, *<optab>_internal for any_return): New patterns.
2798 (return_internal): Remove.
2799 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2800 a simple_return_internal.
2801
2802 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2803
2804 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2805 (vec_extract_lo_<mode>): Prevent both operands in memory.
2806 (vec_extract_lo_v16hi): Ditto.
2807 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2808
2809 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2810
2811 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2812 (*sse2_mulv4si3): Ditto.
2813 (mulv2di3): Ditto.
2814 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2815 notes to REG_EQUAL.
2816
2817 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2818
2819 PR target/50202
2820 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2821 when all outputs are unused.
2822 (sse4_2_pcmpistr): Ditto.
2823
2824 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2825
2826 * config/i386/i386.md (round<mode>2): New expander.
2827 * config/i386/i386.c (enum ix86_builtins): Add
2828 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2829 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2830 descriptions.
2831 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2832 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2833
2834 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2835
2836 PR middle-end/50083
2837 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2838 only when TARGET_C99_FUNCTIONS.
2839 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2840 <BUILT_IN_RINT{,F,L}>: Ditto.
2841
2842 2011-08-26 Michael Matz <matz@suse.de>
2843 Jakub Jelinek <jakub@redhat.com>
2844
2845 PR lto/50165
2846 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2847 don't call strlen twice, use memcpy.
2848
2849 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
2850
2851 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2852 * config/i386/bmiintrin.h: Likewise.
2853 * config/i386/lzcntintrin.h: Likewise.
2854
2855 * config/i386/immintrin.h: Include <lzcntintrin.h>,
2856 <bmiintrin.h> and <bmi2intrin.h>.
2857
2858 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2859
2860 PR target/50166
2861 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2862 * configure: Regenerate.
2863
2864 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2865
2866 PR c/50179
2867 * c-typeck.c (c_process_expr_stmt): Skip over nops and
2868 call mark_exp_read even if exprv is ADDR_EXPR.
2869
2870 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
2871
2872 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2873 to df_set_dead_notes_for_mw.
2874
2875 2011-08-26 Richard Guenther <rguenther@suse.de>
2876
2877 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2878
2879 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
2880 Tom de Vries <tom@codesourcery.com>
2881
2882 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2883 (struct ivopts_data): Add loop_single_exit_p field.
2884 (niter_for_exit): Change parameter desc_p into return value. Return
2885 desc if desc->may_be_zero. Free desc if unused.
2886 (niter_for_single_dom_exit): Change return type.
2887 (find_induction_variables): Handle changed return type of
2888 niter_for_single_dom_exit. Dump may_be_zero.
2889 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2890 (set_use_iv_cost): Add and handle comp parameter.
2891 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2892 comp argument to set_use_iv_cost.
2893 (strip_wrap_conserving_type_conversions, expr_equal_p)
2894 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2895 (may_eliminate_iv): Add comp parameter. Handle new return type of
2896 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
2897 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2898 and may_eliminate_iv.
2899 (rewrite_use_compare): Move call to iv_elimination_compare to ...
2900 (may_eliminate_iv): Here.
2901 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2902
2903 2011-08-26 Tom de Vries <tom@codesourcery.com>
2904
2905 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2906 accessing TREE_TYPE.
2907
2908 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
2909
2910 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2911 (*ior_scc_scc_cmp): Likewise
2912 (*and_scc_scc): Likewise.
2913 (*and_scc_scc_cmp): Likewise.
2914 (*and_scc_scc_nodom): Likewise.
2915 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2916
2917 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2918
2919 * rtlanal.c (nonzero_bits1): Handle CLRSB.
2920
2921 2011-08-26 Richard Guenther <rguenther@suse.de>
2922
2923 * expr.c (string_constant): Handle &MEM_REF.
2924
2925 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2926
2927 * config/arm/arm.c (struct four_ints): New type.
2928 (count_insns_for_constant): Delete function.
2929 (find_best_start): Delete function.
2930 (optimal_immediate_sequence): New function.
2931 (optimal_immediate_sequence_1): New function.
2932 (arm_gen_constant): Move constant splitting code to
2933 optimal_immediate_sequence.
2934 Rewrite constant negation/invertion code.
2935
2936 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2937
2938 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2939 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2940 Remove prototype. Remove static function type.
2941 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2942 Add arch attribute.
2943 * config/arm/constraints.md (Pj, PJ): New constraints.
2944
2945 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2946
2947 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2948 ("cortex_a9_multiply_long"): New and use above. Handle all
2949 long multiply cases.
2950 ("cortex_a9_multiply"): Handle smmul and smmulr.
2951 ("cortex_a9_mac"): Handle smmla.
2952
2953 2011-08-25 Richard Henderson <rth@redhat.com>
2954
2955 PR 50132
2956 PR 49864
2957 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2958 non-constant stack adjutment.
2959 * expr.c (find_args_size_adjust): Break out from ...
2960 (fixup_args_size_notes): ... here.
2961 * rtl.h (find_args_size_adjust): Declare.
2962
2963 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
2964
2965 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2966 sse4 and sse4_noavx.
2967 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2968 (*pushdf_rex64): Change Y2 register constraint to x.
2969 (*movdf_internal_rex64): Ditto.
2970 (*zero_extendsidi2_rex64): Ditto.
2971 (*movdi_internal): Change Y2 register constraint to x
2972 and update "isa" attribute.
2973 (*pushdf): Ditto.
2974 (*movdf internal): Ditto.
2975 (zero_extendsidi2_1): Ditto.
2976 (*truncdfdf_mixed): Ditto.
2977 (*truncxfdf2_mixed): Ditto.
2978 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2979 register constraint to x.
2980 (*movv2sf_internal_rex64): Ditto.
2981 (*mov<mode>_internal): Change Y2 register constraint to x
2982 and add "isa" attribute.
2983 (*movv2sf_internal): Ditto.
2984 (*vec_extractv2si_1): Ditto.
2985 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2986 constraints to x and update "isa" attribute.
2987 (*vec_interleave_highv2df): Change Y3 registerconstraint
2988 to x and update "isa" attribute.
2989 (*vec_interleave_lowv2df): Ditto.
2990 (*vec_concatv2df): Change Y2 register constraint to x and
2991 update "isa" attribute.
2992 (sse2_loadld): Ditto.
2993 (*vec_extractv2di_1): Ditto.
2994 (*vec_dupv4si): Ditto.
2995 (*vec_dupv2di): Ditto.
2996 (*vec_concatv4si): Ditto.
2997 (vec_concatv2di): Ditto.
2998 * config/i386/constraints.md (Y2): Remove.
2999 (Y3): Ditto.
3000 (Y4): Ditto.
3001
3002 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3003
3004 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3005 dump_def_use_chain): Don't declare.
3006 (mark_conflict, create_new_chain): Move before users.
3007 (regrename_optimize): Move to near end of file.
3008
3009 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3010
3011 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3012 (secondary_input_reload_class): Remove Prototype.
3013 * config/avr/avr.c (byte_immediate_operand): Remove Function.
3014 * config/avr/avr.md (setmemhi): Use u8_operand.
3015 (strlenhi): Use const0_rtx for comparison.
3016 * config/avr/avr.h (avr_reg_order): Remove Declaration.
3017
3018 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3019
3020 * config/avr/avr.c (reg_class_tab): Make local to
3021 avr_regno_reg_class. Return smallest register class available.
3022
3023 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3024
3025 * config/avr/avr.c (STR_PREFIX_P): New Define.
3026 (avr_asm_declare_function_name): Use it.
3027 (avr_asm_named_section): Use it.
3028 (avr_section_type_flags): Use it.
3029
3030 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3031
3032 * doc/md.texi (automata_option): Document collapse-ndfa.
3033 * genautomata.c (COLLAPSE_OPTION): New macro.
3034 (collapse_flag): New static variable.
3035 (struct description): New member normal_decls_num.
3036 (struct automaton): New members advance_ainsn and collapse_ainsn.
3037 (gen_automata_option): Check for COLLAPSE_OPTION.
3038 (collapse_ndfa_insn_decl): New static variable.
3039 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3040 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3041 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3042 necessary. Use normal_decls_num rather than decls_num, remove
3043 test for special decls.
3044 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3045 (make_automaton); Likewise. Use the new advance_cycle_insn member
3046 of struct automaton.
3047 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3048 is set.
3049 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3050 transition. Create the necessary transitions for it.
3051 (create_ainsns): Return void. Take an automaton_t argument, and
3052 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
3053 callers changed.
3054 (COLLAPSE_NDFA_VALUE_NAME): New macro.
3055 (output_tables): Output code to define it.
3056 (output_internal_insn_code_evaluation): Output code to accept
3057 const0_rtx as collapse-ndfa transition.
3058 (output_default_latencies, output_print_reservation_func,
3059 output_print_description): Reorganize loops to use normal_decls_num
3060 as loop bound; remove special case for advance_cycle_insn_decl.
3061 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3062 (check_automata_insn_issues): Check for collapse_ainsn.
3063 (expand_automate): Allocate sufficient space. Initialize
3064 normal_decls_num.
3065
3066 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3067
3068 * config/avr/avr.md: Fix indentation from r177991.
3069
3070 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3071
3072 * regrename.c (struct du_head): Remove member terminated.
3073 (create_new_chain): Don't initialize it.
3074 (scan_rtx_reg): Don't set or test it, test the open_chains_set
3075 bitmap instead.
3076 (tick, this_tick): New global variables, moved out of
3077 regrename_optimize.
3078 (current_id, open_chains, closed_chains, open_chains_set,
3079 live_in_chains, live_hard_regs): Reorder declarations.
3080 (dump_def_use_chain): Move function earlier in the file.
3081 (rename_chains): New static function, broken out of
3082 regrename_optimize.
3083 (regrename_optimize): Use it. Remove #if 0'ed code.
3084
3085 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3086
3087 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3088
3089 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
3090
3091 PR target/50172
3092 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3093
3094 2011-08-24 Richard Guenther <rguenther@suse.de>
3095
3096 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3097 ref in the basic-block case. Move stripping array-refs
3098 to the place we create an access-function for it. Remove
3099 bogus stripping down a MEM_REF to its base.
3100
3101 2011-08-24 Richard Guenther <rguenther@suse.de>
3102
3103 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3104 with -fno-strict-overflow.
3105
3106 2011-08-24 Richard Guenther <rguenther@suse.de>
3107
3108 * tree-vectorizer.c (vect_print_dump_info): Avoid the
3109 file and location clutter when dumping to dump files.
3110
3111 2011-08-24 Simon Baldwin <simonb@google.com>
3112
3113 * gengtype-state.c (write_state): Remove timestamped header line.
3114
3115 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3116
3117 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3118 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3119 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3120 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3121 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3122 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3123 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3124 rules.
3125 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3126
3127 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3128
3129 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3130
3131 2011-08-24 Richard Guenther <rguenther@suse.de>
3132
3133 PR tree-optimization/50067
3134 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3135 function for a MEM_REF base that has no evolution in the loop
3136 nest or that is not analyzable.
3137
3138 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3139
3140 * ira.c (ira_init_register_move_cost): Check small subclasses
3141 through ira_reg_class_max_nregs and ira_available_class_regs.
3142
3143 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3144
3145 * config/i386/constraints.md (Yp): New register constraint.
3146 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3147 Yp register constraint.
3148 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3149 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3150 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3151
3152 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3153
3154 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3155
3156 2011-08-23 Mark Heffernan <meheff@google.com>
3157
3158 PR middle-end/38509
3159 * common.opt (Wfree-nonheap-object): New option.
3160 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3161 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3162 to warning.
3163 (expand_builtin): Make warning conditional.
3164
3165 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3166
3167 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3168 (length_immediate): Handle imulx, ishiftx and rotatex.
3169 (imm_disp): Ditto.
3170 (isa): Add bmi2.
3171 (enabled): Handle bmi2.
3172 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3173 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3174 (*bmi2_umulditi3_1): New insn pattern.
3175 (*bmi2_umulsidi3_1): Ditto.
3176 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3177 (*bmi2_ashl<mode>3_1): New insn pattern.
3178 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3179 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3180 (*bmi2_ashlsi3_1_zext): New insn pattern.
3181 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3182 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3183 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3184 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3185 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3186 flags dependency.
3187 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3188 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3189 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3190 flags dependency.
3191 (*bmi2_rorx<mode>3_1): New insn pattern.
3192 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3193 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3194 (*rotatert<mode>3_1 splitter): Ditto.
3195 (*bmi2_rorxsi3_1_zext): New insn pattern.
3196 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3197 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3198 (*rotatertsi3_1_zext splitter): Ditto.
3199
3200 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3201
3202 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3203 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3204 (ix86_handle_option): Handle OPT_mbmi2 case.
3205 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3206 (x86_64-*-*): Likewise.
3207 * config/i386/bmi2intrin.h: New file.
3208 * config/i386/cpuid.h (bit_BMI2): New.
3209 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3210 BMI2 feature.
3211 * config/i386/i386-c.c (ix86_target_macros_internal):
3212 Conditionally define __BMI2__.
3213 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3214 Handle BMI2 option.
3215 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3216 (print_reg): New code.
3217 (ix86_print_operand): Likewise.
3218 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3219 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3220 IX86_BUILTIN_PEXT64.
3221 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3222 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3223 IX86_BUILTIN_PEXT64.
3224 * config/i386/i386.h (TARGET_BMI2): New.
3225 * config/i386/i386.md (UNSPEC_PDEP): New.
3226 (UNSPEC_PEXT): Likewise.
3227 (*bmi2_bzhi_<mode>3): Likewise.
3228 (*bmi2_pdep_<mode>3): Likewise.
3229 (*bmi2_pext_<mode>3): Likewise.
3230 * config/i386/i386.opt (mbmi2): New.
3231 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3232 is defined.
3233 * doc/extend.texi: Document BMI2 built-in functions.
3234 * doc/invoke.texi: Document -mbmi2.
3235
3236 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3237
3238 PR middle-end/50161
3239 * simplify-rtx.c (simplify_const_unary_operation): If
3240 op is CONST_INT, don't look at op_mode, but use instead mode.
3241 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3242 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3243 operation and TRUNCATE/ZERO_EXTEND if needed.
3244 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3245 Document that operand mode must be same as operation mode,
3246 or VOIDmode.
3247 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3248 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3249 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3250 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3251 use the mode of operand for the operation and add truncate
3252 or zero_extend around if needed.
3253 * config/c6x/c6x.md (ctzdi2): Likewise.
3254 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3255
3256 2011-08-12 Michael Matz <matz@suse.de>
3257
3258 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3259 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3260 SSA names.
3261
3262 2011-08-23 Richard Guenther <rguenther@suse.de>
3263
3264 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3265 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3266 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3267 from ...
3268 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3269 (mem_refs_may_alias_p): Adjust.
3270 * tree-data-ref.h (dr_may_alias_p): Adjust.
3271 * tree-data-ref.c: Include tree-affine.h.
3272 (dr_analyze_indices): Do nothing for the non-loop case.
3273 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3274 more cases in the non-loop case.
3275 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3276 calls to dr_may_alias_p.
3277 (write_alias_graph_to_ascii_ecc): Likewise.
3278 (write_alias_graph_to_ascii_dot): Likewise.
3279 (build_alias_set_optimal_p): Likewise.
3280
3281 2011-08-23 Richard Guenther <rguenther@suse.de>
3282
3283 PR tree-optimization/50162
3284 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3285
3286 2011-08-23 Richard Guenther <rguenther@suse.de>
3287
3288 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3289 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3290 (create_data_ref): Also dump access functions for the created data-ref.
3291
3292 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3293 Kirill Yukhin <kirill.yukhin@intel.com>
3294
3295 PR target/50155
3296 * config/i386/sse.md (VI_AVX2): New.
3297 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3298 (*<plusminus_insn><mode>3): Ditto.
3299 (<sse2_avx2>_andnot<mode>3): Ditto.
3300 (*andnot<mode>3): Fix order of cond operands.
3301 Add asserts for correct TARGET_xxx.
3302 (*<any_logic:code><mode>3): Ditto.
3303
3304 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3305
3306 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3307 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3308 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3309 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3310 and return types to unsigned char. Use reg_class_contents instead
3311 of class_contents.
3312 (TARGET_CLASS_MAX_NREGS): Define.
3313
3314 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3315
3316 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3317 to make computed_jump_p return true.
3318
3319 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3320
3321 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3322 (PICFLAG_FOR_TARGET): Substitute.
3323 * aclocal.m4: Regenerate.
3324 * configure: Regenerate.
3325
3326 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3327
3328 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3329 after reading in the pch.
3330
3331 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3332
3333 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3334 * configure: Regenerated.
3335
3336 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3337
3338 PR tree-optimization/50133
3339 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3340 from stmt instead of some statement around gsi.
3341
3342 PR middle-end/50141
3343 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3344 innerdecl is a VAR_DECL.
3345
3346 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3347
3348 * config/i386/avx2intrin.h: New file.
3349 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3350 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3351 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3352 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3353 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3354 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3355 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3356 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3357 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3358 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3359 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3360 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3361 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3362 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3363 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3364 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3365 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3366 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3367 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3368 VOID_FTYPE_PV8SI_V8SI_V8SI,
3369 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3370 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3371 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3372 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3373 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3374 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3375 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3376 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3377 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3378 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3379 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3380 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3381 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3382 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3383 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3384 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3385 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3386 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3387 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3388 V4DI_FTYPE_V4DI_INT_CONVERT,
3389 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3390 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3391 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3392 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3393 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3394 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3395 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3396 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3397 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3398 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3399 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3400 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3401 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3402 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3403 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3404 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3405 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3406 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3407 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3408 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3409 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3410 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3411 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3412 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3413 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3414 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3415 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3416 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3417 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3418 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3419 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3420 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3421 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3422 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3423 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3424 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3425 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3426 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3427 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3428 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3429 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3430 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3431 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3432 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3433 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3434 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3435 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3436 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3437 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3438 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3439 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3440 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3441 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3442 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3443 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3444 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3445 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3446 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3447 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3448 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3449 IX86_BUILTIN_VBROADCASTSS_PS256,
3450 IX86_BUILTIN_VBROADCASTSD_PD256,
3451 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3452 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3453 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3454 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3455 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3456 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3457 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3458 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3459 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3460 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3461 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3462 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3463 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3464 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3465 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3466 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3467 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3468 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3469 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3470 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3471 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3472 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3473 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3474 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3475 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3476 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3477 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3478 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3479 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3480 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3481 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3482 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
3483 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3484 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3485 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3486 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3487 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3488 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3489 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3490 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3491 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3492 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3493 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3494 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3495 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3496 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3497 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3498 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3499 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3500 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3501 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3502 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3503 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3504 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3505 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3506 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3507 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3508 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3509 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3510 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3511 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3512 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3513 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3514 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3515 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3516 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3517 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3518 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3519 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3520 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3521 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3522 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3523 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3524 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3525 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3526 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3527 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3528 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3529 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3530 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3531 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3532 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3533 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3534 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3535 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3536 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3537 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3538 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3539 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3540 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3541 IX86_BUILTIN_VBROADCASTSD_PD256,
3542 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3543 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3544 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3545 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3546 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3547 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3548 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3549 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3550 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3551 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3552 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3553 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3554 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3555 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3556 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3557 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3558 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3559 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3560 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3561 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3562 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3563 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3564 IX86_BUILTIN_GATHERDIV8SI.
3565 (ix86_preferred_simd_mode): Support AVX2 modes.
3566 (ix86_expand_args_builtin): Support AVX2 builtins.
3567 (ix86_expand_special_args_builtin): Likewise.
3568 (ix86_expand_builtin): Likewise.
3569 * config/i386/i386.md (UNSPEC_VPERMSI): New.
3570 (UNSPEC_VPERMDF): Likewise.
3571 (UNSPEC_VPERMSF): Likewise.
3572 (UNSPEC_VPERMDI): Likewise.
3573 (UNSPEC_VPERMTI): Likewise.
3574 (UNSPEC_GATHER): Likewise.
3575 (ssemodesuffix): Extend.
3576 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3577 is defined.
3578 * config/i386/predicates.md (const1248_operand): New.
3579 * config/i386/sse.md (VI1_AVX2): New mode iterator.
3580 (VI2_AVX2): Likewise.
3581 (VI4_AVX2): Likewise.
3582 (VI8_AVX2): Likewise.
3583 (VIMAX_AVX2): Likewise.
3584 (SSESCALARMODE): Likewise.
3585 (VI12_AVX2): Likewise.
3586 (VI24_AVX2): Likewise.
3587 (VI124_AVX2): Likewise.
3588 (VI248_AVX2): Likewise.
3589 (VI48_AVX2): Likewise.
3590 (VI4SD_AVX2): Likewise.
3591 (V48_AVX2): Likewise.
3592 (AVX256MODE2P): Likewise.
3593 (AVXMODE48P_DI): Likewise.
3594 (sse2_avx2): New mode attribute.
3595 (ssse3_avx2): Likewise.
3596 (sse4_1_avx2): Likewise.
3597 (avx_avx2): Likewise.
3598 (ssebytemode): Likewise.
3599 (AVXTOSSEMODE): Likewise.
3600 (AVXMODE48P_DI): Likewise.
3601 (gthrfirstp): Likewise.
3602 (gthrlastp): Likewise.
3603 (lshift): New code_iterator
3604 (lshift): New code attribute.
3605 (lshift): Likewise.
3606 (ssescalarmodesuffix): Update.
3607 (sseunpackmode): Likewise.
3608 (ssepackmode): Likewise.
3609 (avx2_vec_dupv4sf): New insn pattern.
3610 (avx2_vec_dupv8sf): Likewise.
3611 (avx2_interleave_highv4di): Likewise.
3612 (avx2_interleave_lowv4di): Likewise.
3613 (avx2_umulv4siv4di3): Likewise
3614 (*avx2_umulv4siv4di3): Likewise
3615 (avx2_pmaddwd): Likewise.
3616 (*avx2_pmaddwd): Likewise.
3617 (avx2_lshrqv4di3): Likewise.
3618 (avx2_lshlqv4di3): Likewise.
3619 (avx2_lshl<mode>3): Likewise.
3620 (avx2_<umaxmin:code><mode>3): Likewise.
3621 (*avx2_<umaxmin:code><mode>3): Likewise.
3622 (avx2_<smaxmin:code><mode>3): Likewise.
3623 (*avx2_<smaxmin:code><mode>3): Likewise.
3624 (avx2_eq<mode>3): Likewise.
3625 (*avx2_eq<mode>3): Likewise.
3626 (avx2_gt<mode>3): Likewise.
3627 (avx2_interleave_highv32qi): New.
3628 (avx2_interleave_lowv32qi): Likewise.
3629 (avx2_interleave_highv16hi): Likewise.
3630 (avx2_interleave_lowv16hi): Likewise.
3631 (avx2_interleave_highv8si): Likewise.
3632 (avx2_interleave_lowv8si): Likewise.
3633 (avx2_pshufd): Likewise.
3634 (avx2_pshufd_1): Likewise.
3635 (avx2_pshuflwv3): Likewise.
3636 (avx2_pshuflw_1): Likewise.
3637 (avx2_pshufhwv3): Likewise.
3638 (avx2_pshufhw_1): Likewise.
3639 (avx2_uavgv32qi3): Likewise.
3640 (*avx2_uavgv32qi3): Likewise.
3641 (avx2_uavgv16hi3): Likewise.
3642 (*avx2_uavgv16hi3): Likewise.
3643 (avx2_pmovmskb): Likewise.
3644 (avx2_phaddwv16hi3): Likewise.
3645 (avx2_phadddv8si3): Likewise.
3646 (avx2_phaddswv16hi3): Likewise.
3647 (avx2_phsubwv16hi3): Likewise.
3648 (avx2_phsubdv8si3): Likewise.
3649 (avx2_phsubswv16hi3): Likewise.
3650 (avx2_pmaddubsw256): Likewise.
3651 (avx2_umulhrswv16hi3): Likewise.
3652 (*avx2_umulhrswv16hi3): Likewise.
3653 (avx2_packusdw): Likewise.
3654 (avx2_pblendd<mode>): Likewise.
3655 (avx2_<code>v16qiv16hi2): Likewise.
3656 (avx2_<code>v8qiv8si2): Likewise.
3657 (avx2_<code>v8hiv8si2): Likewise.
3658 (avx2_<code>v4qiv4di2): Likewise.
3659 (avx2_<code>v4hiv4di2): Likewise.
3660 (avx2_<code>v4siv4di2): Likewise.
3661 (avx2_pbroadcast<mode>): Likewise.
3662 (avx2_permvarv8si): Likewise.
3663 (avx2_permv4df): Likewise.
3664 (avx2_permvarv8sf): Likewise.
3665 (avx2_permv4di): Likewise.
3666 (avx2_permv2ti): Likewise.
3667 (avx2_vec_dupv4df): Likewise.
3668 (avx2_vbroadcasti128_<mode>): Likewise.
3669 (avx2_vec_set_lo_v4di): Likewise.
3670 (avx2_vec_set_hi_v4di): Likewise.
3671 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3672 (avx2_extracti128): Likewise.
3673 (avx2_inserti128): Likewise.
3674 (avx2_ashrvv8si): Likewise.
3675 (avx2_ashrvv4si): Likewise.
3676 (avx2_<lshift>vv8si): Likewise.
3677 (avx2_<lshift>v<mode>): Likewise.
3678 (avx2_<lshift>vv2di): Likewise.
3679 (avx2_gathersi<mode>): Likewise.
3680 (*avx2_gathersi<mode>): Likewise.
3681 (avx2_gatherdi<mode>): Likewise.
3682 (*avx2_gatherdi<mode>): Likewise.
3683 (avx2_gatherdi<mode>256): Likewise.
3684 (*avx2_gatherdi<mode>256): Likewise.
3685 (<plusminus_insn><mode>3): Use VI mode iterator.
3686 (*<plusminus_insn><mode>3): Use VI mode iterator.
3687 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3688 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3689 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3690 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3691 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
3692 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
3693 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3694 Use VI2_AVX2 mode iterator.
3695 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3696 Use VI2_AVX2 mode iterator.
3697 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
3698 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
3699 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3700 Use VI4_AVX2 mode iterator.
3701 (ashr<mode>3): Use VI24_AVX2 mode iterator.
3702 (lshr<mode>3): Use VI248_AVX2 mode iterator.
3703 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3704 Use VIMAX_AVX2 mode iterator.
3705 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3706 Use VI mode iterator.
3707 (*andnot<mode>3): Update for AVX2.
3708 (*<any_logic:code><mode>3): Likewise.
3709 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3710 Use VI1_AVX mode iterator.
3711 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
3712 Use VI2_AVX mode iterator.
3713 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3714 Use VI1_AVX mode iterator.
3715 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3716 Use VI8_AVX2 mode iterator.
3717 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3718 Use VI1_AVX2 mode iterator.
3719 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3720 Use VI124_AVX2 mode iterator.
3721 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3722 Use SSESCALARMODE mode iterator.
3723 (abs<mode>2): Use VI124_AVX2 mode iterator.
3724 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3725 Use VI8_AVX2 mode iterator.
3726 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3727 Use VI1_AVX2 mode iterator.
3728 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3729 Use VI1_AVX2 mode iterator.
3730 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3731 Use VI2_AVX2 mode iterator.
3732 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3733 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3734 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3735 avx_maskstore<ssemodesuffix><avxsizesuffix>.
3736 Use V48_AVX2 mode iterator.
3737 * doc/extend.texi: Document AVX2 built-in functions.
3738 * doc/invoke.texi: Document -mavx2.
3739
3740 2011-08-22 Matthias Klose <doko@debian.org>
3741
3742 Revert:
3743 2011-07-11 Arthur Loiret <aloiret@debian.org>
3744 Matthias Klose <doko@debian.org>
3745 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3746 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3747 convention.
3748 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3749
3750 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
3751
3752 PR bootstrap/50146
3753 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3754 to #ifndef HONOR_REG_ALLOC_ORDER block.
3755
3756 2011-08-21 Richard Henderson <rth@redhat.com>
3757
3758 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3759 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3760 * resource.c (next_insn_no_annul): Likewise.
3761 (mark_set_resources): Likewise.
3762 * reorg.c (delete_from_delay_slot): Likewise.
3763 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3764 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3765
3766 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
3767
3768 * config/i386/i386.md (any_div): Remove.
3769 (sgnprefix): Update for removal.
3770 (u): Ditto.
3771
3772 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
3773
3774 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3775 for ira_reg_class_max_nregs. Increase pressure by 1.
3776 (mark_pseudo_regno_subword_dead): Use allocno class
3777 for ira_reg_class_max_nregs.
3778
3779 2011-08-20 Richard Henderson <rth@redhat.com>
3780
3781 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3782 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3783 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3784 config/c6x/ltf.c: Adjust include path for soft-fp.
3785
3786 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
3787
3788 PR other/46770
3789 * config.gcc (tm_file): Add initfini-array.h if
3790 .init_arrary/.fini_array are supported.
3791
3792 * crtstuff.c: Don't generate .ctors nor .dtors sections if
3793 USE_INITFINI_ARRAY is defined.
3794
3795 * output.h (default_elf_init_array_asm_out_constructor): New.
3796 (default_elf_fini_array_asm_out_destructor): Likewise.
3797 * varasm.c (elf_init_array_section): Likewise.
3798 (elf_fini_array_section): Likewise.
3799 (get_elf_initfini_array_priority_section): Likewise.
3800 (default_elf_init_array_asm_out_constructor): Likewise.
3801 (default_elf_fini_array_asm_out_destructor): Likewise.
3802
3803 * config/initfini-array.h: New.
3804
3805 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3806
3807 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3808 OK for ST_REGS and FP_REGS before taking those classes into account.
3809
3810 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3811
3812 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3813 before checking for annulled branches.
3814
3815 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3816
3817 * config/i386/i386.c (ix86_binary_operator_ok): Use
3818 satisfies_constraint_L.
3819
3820 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3821 Michael Matz <matz@suse.de>
3822
3823 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3824 trunc (a + copysign (nextafter (0.5, 0.0), a)).
3825
3826 2011-08-20 Anatoly Sokolov <aesok@post.ru>
3827
3828 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3829 * doc/tm.texi: Regenerate.
3830 * targhooks.c (default_preferred_output_reload_class): Don't use
3831 PREFERRED_OUTPUT_RELOAD_CLASS macro.
3832 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3833
3834 2011-08-20 Jakub Jelinek <jakub@redhat.com>
3835
3836 PR tree-optimization/48739
3837 * tree-ssa.c: Include cfgloop.h.
3838 (execute_update_addresses_taken): When updating ssa, if in loop closed
3839 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3840 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3841
3842 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
3843
3844 PR rtl-optimization/49936
3845 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3846 for calculation of max register move costs.
3847
3848 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3849
3850 * c-parser.c (c_parser_postfix_expression): Convert operands of
3851 __builtin_complex to their semantic types.
3852
3853 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
3854
3855 PR middle-end/49721
3856 * explow.c (convert_memory_address_addr_space): Also permute the
3857 conversion and addition of constant for zero-extend.
3858
3859 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3860
3861 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3862 * doc/extend.texi (__builtin_complex): Document.
3863
3864 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3865
3866 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3867 beyond conversions.
3868 (convert_mult_to_widen): Convert constant inputs to the right type.
3869 (convert_plusminus_to_widen): Don't automatically reject inputs that
3870 are not an SSA_NAME.
3871 Convert constant inputs to the right type.
3872
3873 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3874
3875 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3876 to the correct type.
3877
3878 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3879
3880 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3881 unsigned inputs of different modes.
3882 (convert_plusminus_to_widen): Likewise.
3883
3884 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3885
3886 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3887 'type'.
3888 Use 'type' from caller, not inferred from 'rhs'.
3889 Don't reject non-conversion statements. Do return lhs in this case.
3890 (is_widening_mult_p): Add new argument 'type'.
3891 Use 'type' from caller, not inferred from 'stmt'.
3892 Pass type to is_widening_mult_rhs_p.
3893 (convert_mult_to_widen): Pass type to is_widening_mult_p.
3894 (convert_plusminus_to_widen): Likewise.
3895
3896 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3897
3898 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3899 Ensure the the larger type is the first operand.
3900
3901 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3902
3903 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3904 unsupported unsigned multiplies to signed.
3905 (convert_plusminus_to_widen): Likewise.
3906
3907 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3908
3909 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3910 conversion statement separating multiply-and-accumulate.
3911
3912 2011-08-19 Richard Guenther <rguenther@suse.de>
3913
3914 PR tree-optimization/50067
3915 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3916 offset only if we accounted for it.
3917
3918 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3919
3920 * config/arm/arm.md (maddhidi4): Remove '*' from name.
3921 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3922 * optabs.c (find_widening_optab_handler_and_mode): New function.
3923 (expand_widen_pattern_expr): Use find_widening_optab_handler.
3924 (expand_binop_directly): Likewise.
3925 (expand_binop): Likewise.
3926 * optabs.h (find_widening_optab_handler): New macro define.
3927 (find_widening_optab_handler_and_mode): New prototype.
3928 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3929 type precision rules.
3930 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3931 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3932 (is_widening_mult_rhs_p): Allow widening by more than one mode.
3933 Explicitly disallow mis-matched input types.
3934 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3935 input types to fit the new handler.
3936 (convert_plusminus_to_widen): Likewise.
3937
3938 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3939
3940 * expr.c (expand_expr_real_2): Use widening_optab_handler.
3941 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3942 (gen_insn): $N now means $a must be wider than $b, not consecutive.
3943 * optabs.c (widened_mode): New function.
3944 (expand_widen_pattern_expr): Use widening_optab_handler.
3945 (expand_binop_directly): Likewise.
3946 (expand_binop): Likewise.
3947 * optabs.h (widening_optab_handlers): New struct.
3948 (optab_d): New member, 'widening'.
3949 (widening_optab_handler): New function.
3950 (set_widening_optab_handler): New function.
3951 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3952 widening_optab_handler.
3953 (convert_plusminus_to_widen): Likewise.
3954
3955 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3956
3957 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3958 pedantic.
3959 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3960 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3961
3962 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3963
3964 * opth-gen.awk: Do not declare target save/restore structures and
3965 functions if IN_RTS defined.
3966
3967 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3968
3969 PR target/49437
3970 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3971 when stack was realigned in interrupt handler prologue.
3972
3973 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3974
3975 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3976 (quals_from_declspecs): Assert _Noreturn not present.
3977 (grokdeclarator): Handle _Noreturn.
3978 (build_null_declspecs): Initialize noreturn_p.
3979 (declspecs_add_scspec): Handle RID_NORETURN.
3980 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3981 (c_parser_attributes): Handle RID_NORETURN.
3982 * c-tree.h (struct c_declspecs): Add noreturn_p.
3983 * ginclude/stdnoreturn.h: New.
3984 * Makefile.in (USER_H): Add stdnoreturn.h.
3985
3986 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
3987
3988 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3989 (OPTION_MASK_ISA_AVX_UNSET): Update.
3990 (OPTION_MASK_ISA_AVX2_UNSET): New.
3991 (ix86_handle_option): Handle OPT_mavx2 case.
3992 * config/i386/cpuid.h (bit_AVX2): New.
3993 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3994 AVX2 feature.
3995 * config/i386/i386-c.c (ix86_target_macros_internal):
3996 Conditionally define __AVX2__.
3997 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3998 Define "core-avx2" processor alias. Handle avx2 option.
3999 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4000 * config/i386/i386.h (TARGET_AVX2): New.
4001 * config/i386/i386.opt (mavx2): New.
4002 * doc/invoke.texi: Document -mavx2.
4003
4004 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
4005
4006 PR rtl-optimization/49890
4007 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4008 subclasses of class which is superset of a pressure class.
4009
4010 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4011 Igor Zamyatin <igor.zamyatin@intel.com>
4012
4013 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4014 with HOST_WIDE_INT for isa_flag.
4015 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4016 isa variables.
4017
4018 * config/i386/i386.c (ix86_target_string): Replace int with
4019 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
4020 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4021 (pta_flags): Removed.
4022 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4023 (pta): Use HOST_WIDE_INT on flags.
4024 (builtin_isa): Use HOST_WIDE_INT on isa.
4025 (ix86_add_new_builtins): Likewise.
4026 (def_builtin): Use HOST_WIDE_INT on mask.
4027 (def_builtin_const): Likewise.
4028 (builtin_description): Likewise.
4029
4030 * config/i386/i386.opt (ix86_isa_flags): Replace int with
4031 HOST_WIDE_INT.
4032 (ix86_isa_flags_explicit): Likewise.
4033 (x_ix86_isa_flags_explicit): Likewise.
4034
4035 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
4036
4037 PR rtl-optimization/50107
4038 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4039 (ira_hard_reg_in_set_p): New.
4040
4041 * ira-color.c (calculate_saved_nregs): New.
4042 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
4043 hard regs.
4044 (allocno_reload_assign, fast_allocation): Use
4045 ira_hard_reg_set_intersection_p instead of
4046 ira_hard_reg_not_in_set_p.
4047
4048 * ira.c (setup_reg_renumber): Use
4049 ira_hard_reg_set_intersection_p instead of
4050 ira_hard_reg_not_in_set_p.
4051 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4052 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4053
4054 * ira-costs.c (ira_tune_allocno_costs): Use
4055 ira_hard_reg_set_intersection_p instead of
4056 ira_hard_reg_not_in_set_p.
4057
4058 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4059 Igor Zamyatin <igor.zamyatin@intel.com>
4060
4061 * hwint.h (HOST_WIDE_INT_1): New.
4062
4063 * opt-functions.awk (switch_bit_fields): Initialize the
4064 host_wide_int field.
4065 (host_wide_int_var_name): New.
4066 (var_type_struct): Check and return HOST_WIDE_INT.
4067
4068 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4069
4070 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4071
4072 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
4073 check masks for HOST_WIDE_INT.
4074
4075 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4076 (option_enabled): Likewise.
4077 (get_option_state): Likewise.
4078
4079 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
4080 to HOST_WIDE_INT.
4081
4082 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4083 Marc Glisse <marc.glisse@normalesup.org>
4084
4085 PR libstdc++-v3/1773
4086 * target.def (decl_mangling_context): New C++ hook.
4087 * doc/tm.texi: Regenerate.
4088 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4089 * config/sol2-protos.h: Group by source file.
4090 (solaris_cxx_decl_mangling_context): Declare.
4091 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4092 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4093 Use $<.
4094 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4095 Add sol2-stubs.o to extra_objs.
4096
4097 2011-08-18 Jakub Jelinek <jakub@redhat.com>
4098
4099 PR target/50009
4100 * stor-layout.c (update_alignment_for_field): Don't ICE on
4101 packed flexible array members if ms_bitfield_layout_p.
4102
4103 PR target/50092
4104 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4105 on the result before returning it.
4106
4107 PR debug/50017
4108 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4109 is a debug stmt, use location of the first non-debug stmt after it.
4110
4111 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4112
4113 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4114 (arm_size_rtx_costs): Likewise.
4115
4116 2011-08-18 Richard Guenther <rguenther@suse.de>
4117
4118 * tree.h (tree_int_cst_msb): Remove.
4119 * tree.c (tree_int_cst_msb): Likewise.
4120 (tree_int_cst_sign_bit): Move from ...
4121 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4122
4123 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4124
4125 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4126 * doc/tm.texi: Regenerate.
4127 * target.def (rtx_costs): Add an opno parameter.
4128 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4129 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4130 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4131 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4132 * cse.c (COST_IN): Add an opno parameter.
4133 (notreg_cost): Likewise. Update call to rtx_cost.
4134 (COST, fold_rtx): Update accordingly.
4135 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4136 * expmed.c (emit_store_flag): Likewise.
4137 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4138 Update call to rtx_cost.
4139 (expand_binop_directly, expand_binop): Likewise.
4140 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4141 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4142 (set_src_cost, get_full_set_src_cost): Update accordingly.
4143 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4144 to target hook.
4145 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4146 (default_adress_cost): Update calls to rtx_cost.
4147
4148 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4149 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4150 (arm_rtx_costs): Add an opno parameter.
4151 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4152 adjust any recursive rtx-cost calls.
4153 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4154 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4155 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4156 * config/cris/cris.c (cris_rtx_costs): Likewise.
4157 * config/frv/frv.c (frv_rtx_costs): Likewise.
4158 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4159 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4160 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4161 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4162 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4163 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4164 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4165 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4166 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4167 * config/mep/mep.c (mep_rtx_cost): Likewise.
4168 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4169 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4170 (mips_zero_extend_cost): Add an opno parameter.
4171 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4172 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4173 to rtx_cost.
4174 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4175 rtx-cost calls.
4176 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4177 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4178 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4179 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4180 (rs6000_debug_rtx_costs): Likewise.
4181 * config/s390/s390.c (s390_rtx_costs): Likewise.
4182 * config/score/score-protos.h (score_rtx_costs): Likewise.
4183 * config/score/score.c (score_rtx_costs): Likewise.
4184 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4185 (sh_rtx_costs): Add an opno parameter.
4186 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4187 * config/spu/spu.c (spu_rtx_costs): Likewise.
4188 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4189 * config/v850/v850.c (v850_rtx_costs): Likewise.
4190 * config/vax/vax.c (vax_rtx_costs): Likewise.
4191 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4192
4193 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4194
4195 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4196 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4197 rtx_cost.
4198 * calls.c (precompute_register_parameters): Likewise.
4199 * combine.c (expand_compound_operation, make_extraction): Likewise.
4200 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4201 * dse.c (find_shift_sequence): Likewise.
4202 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4203 * expr.c (compress_float_constant): Likewise.
4204 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4205 * gcse.c (want_to_gcse_p): Likewise.
4206 * ifcvt.c (noce_try_sign_mask): Likewise.
4207 * loop-doloop.c (doloop_optimize): Likewise.
4208 * loop-invariant.c (create_new_invariant): Likewise.
4209 * optabs.c (avoid_expensive_constant): Likewise.
4210 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4211 (try_replace_in_use, reload_cse_move2add): Likewise.
4212 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4213 (note_reg_elim_costly): Likewise.
4214 * rtlanal.c (insn_rtx_cost): Likewise.
4215 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4216 * stmt.c (lshift_cheap_p): Likewise.
4217 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4218 * config/avr/avr.c (final_prescan_insn): Likewise.
4219 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4220 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4221
4222 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4223
4224 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4225 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4226 * cfgloopanal.c (seq_cost): Likewise.
4227 * loop-invariant.c (create_new_invariant): Likewise.
4228 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4229 (reload_cse_move2add): Use get_full_set_rtx_cost.
4230
4231 2011-08-18 Richard Guenther <rguenther@suse.de>
4232
4233 * expr.c (get_inner_reference): Fix typo in last change.
4234
4235 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4236 Joseph Myers <joseph@codesourcery.com>
4237
4238 PR tree-optimization/49963
4239 * hwint.c (absu_hwi): Define.
4240 * hwint.h (absu_hwi): Declare.
4241 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4242 of abs_hwi.
4243 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4244 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4245
4246 2011-08-18 Richard Guenther <rguenther@suse.de>
4247
4248 * expr.c (get_inner_reference): Sign-extend the constant
4249 twos-complement offset before doing arbitrary precision
4250 arithmetic on it.
4251 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4252 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4253 to get_constraint_for_ptr_offset.
4254
4255 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4256
4257 PR target/50068
4258 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4259
4260 2011-08-17 Richard Guenther <rguenther@suse.de>
4261
4262 * tree.h (convert_to_ptrofftype_loc): New function.
4263 (convert_to_ptrofftype): Define.
4264 * builtins.c (expand_builtin_bzero): Use size_type_node.
4265 (fold_builtin_bzero): Likewise.
4266 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4267 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4268 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4269 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4270 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4271 * fold-const.c (build_range_check): Negate using the original type.
4272 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4273 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4274 convert_to_ptrofftype.
4275 * gimplify.c (gimplify_self_mod_expr): Likewise.
4276 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4277 (graphite_create_new_loop_guard): Likewise.
4278 * graphite-sese-to-poly.c (my_long_long): Remove.
4279 (scop_ivs_can_be_represented): Adjust.
4280 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4281 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4282 * tree-loop-distribution.c (build_size_arg_loc): Use
4283 size_type_node.
4284 (generate_memset_zero): Simplify.
4285 * tree-mudflap.c: Use fold_convert, not convert.
4286 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4287 its own type.
4288 (determine_offset): Likewise for DR_STEP.
4289 (valid_initializer_p): Likewise.
4290 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4291 to an integer type of same size.
4292 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4293 to sizetype without need.
4294 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4295 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4296 * tree-ssa-loop-manip.c (create_iv): Likewise.
4297 (determine_exit_conditions): Adjust comment.
4298 * tree-ssa-pre.c (create_expression_by_pieces): Use
4299 convert_to_ptrofftype.
4300 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4301 * varasm.c (array_size_for_constructor): Compute using double_ints.
4302
4303 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4304
4305 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4306 when generating an integer result where possible. Short-cut
4307 comparison against 0 also for QImode.
4308
4309 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4310
4311 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4312 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4313 prototype.
4314 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4315 (spu_legitimate_address_p): Do not check displacement if the base
4316 is an eliminable stack register.
4317
4318 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4319
4320 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4321 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4322 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4323 m32c_preferred_output_reload_class): Remove.
4324 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4325 Change rclass argument and return types to reg_class_t. Use
4326 reg_class_subset_p instead of class_sizes.
4327 (m32c_preferred_output_reload_class): Make static. Change rclass
4328 argument and return types to reg_class_t.
4329 (TARGET_PREFERRED_RELOAD_CLASS,
4330 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4331
4332 2011-08-16 Kai Tietz <ktietz@redhat.com>
4333
4334 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4335
4336 2011-08-16 Richard GUenther <rguenther@suse.de>
4337
4338 PR tree-optimization/50082
4339 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4340 warnings here, instead of ...
4341 (ssa_forward_propagate_and_combine): ... here.
4342 (forward_propagate_into_comparison_1): Adjust.
4343 (forward_propagate_into_comparison): Likewise.
4344 (forward_propagate_into_gimple_cond): Likewise.
4345 (forward_propagate_into_cond): Likewise.
4346
4347 2011-08-16 Andreas Schwab <schwab@redhat.com>
4348
4349 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4350 instead of ggc_alloc_zone_vec_rtvec_def.
4351
4352 2011-08-16 Richard Guenther <rguenther@suse.de>
4353
4354 * tree.h (ptrofftype_p): New helper function.
4355 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4356 offset verification.
4357 (verify_gimple_assign_binary): Likewise.
4358 * tree.c (build2_stat): Likewise.
4359 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4360 (reset_evolution_in_loop): Likewise.
4361 * tree-chrec.h (build_polynomial_chrec): Likewise.
4362
4363 2011-08-16 Liang Wang <lwang1@marvell.com>
4364
4365 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4366 ggc_alloc_zone_vec_rtvec_def.
4367
4368 2011-08-16 Richard Guenther <rguenther@suse.de>
4369
4370 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4371 helper factored out from ...
4372 (extract_range_from_binary_expr_1): ... here. Re-structure
4373 to not glob handling too different tree codes.
4374
4375 2011-08-15 Richard Henderson <rth@redhat.com>
4376
4377 PR middle-end/50006
4378 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4379 setting out to include allocate_stack named pattern as well.
4380 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4381 * stmt.c (expand_stack_restore): Likewise.
4382
4383 2011-08-15 Richard Guenther <rguenther@suse.de>
4384
4385 PR middle-end/50082
4386 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4387 convert the modified operand to the other operand type.
4388 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4389 useless conversions stripped from comparison operands.
4390
4391 2011-08-15 Richard Guenther <rguenther@suse.de>
4392
4393 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4394 (extract_range_from_unary_expr_1): Restructure.
4395
4396 2011-08-15 Richard Guenther <rguenther@suse.de>
4397
4398 PR tree-optimization/50058
4399 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4400 copy matching.
4401
4402 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4403
4404 PR target/50022
4405 * config/arm/arm.c (output_move_double): Add 2 parameters
4406 to count the number of insns emitted and whether to emit or not.
4407 Use the flag to decide when to emit and count number of instructions
4408 that will be emitted.
4409 Handle case where output_move_double might be called for calculating
4410 lengths with an invalid constant.
4411 (arm_count_output_move_double_insns): Define.
4412 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4413 (output_move_double): Adjust prototype.
4414 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4415 output_move_double.
4416 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4417 for ce_count.
4418 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4419 ("*movdf_soft_insn"): Likewise.
4420 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4421 ("*cirrus_thumb2_movdi"): Likewise.
4422 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4423 ("*cirrus_movdf_hard_insn"): Likewise.
4424 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4425 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4426 ("mov<mode>_internal VMMX"): Likewise.
4427 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4428
4429 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4430
4431 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4432 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4433 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4434 for TARGET_ROUND.
4435
4436 (rint<mode>2): Simplify TARGET_ROUND check.
4437 (floor<mode>2): Ditto.
4438 (ceil<mode>2): Ditto.
4439 (btrunc<mode>2): Ditto.
4440
4441 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4442
4443 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4444 as mmix_preferred_output_reload_class.
4445
4446 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
4447
4448 * PR target/49903
4449 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4450 (branch_unspec): New insn.
4451 (branch): Beauty farm.
4452 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
4453 to be IF_THEN_ELSE.
4454 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4455 New static functions.
4456 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
4457 Use CONST_INT_P. Beauty.
4458
4459 2011-08-12 Richard Henderson <rth@redhat.com>
4460
4461 PR rtl-opt/49994
4462 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4463 * sched-deps.c (init_deps): Clear it.
4464 (deps_analyze_insn): Consume it.
4465 (sched_analyze_insn): Fill it.
4466
4467 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4468
4469 PR target/48328
4470 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4471 for tbh instructions.
4472
4473 2011-08-12 Diego Novillo <dnovillo@google.com>
4474
4475 * data-streamer.h (streamer_write_zero): Rename from output_zero.
4476 (streamer_write_uhwi): Rename from lto_output_uleb128.
4477 (streamer_write_hwi): Rename from output_sleb128.
4478 (streamer_write_string): Rename from lto_output_string.
4479 (streamer_string_index): Rename from lto_string_index.
4480 (streamer_write_string_with_length): Rename from
4481 lto_output_string_with_length.
4482 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4483 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4484 (streamer_read_string): Rename from lto_input_string.
4485 (streamer_read_indexed_string): Rename from input_string_internal.
4486 (streamer_read_uhwi): Rename from lto_input_uleb128.
4487 (streamer_read_hwi): Rename from lto_input_sleb128.
4488 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4489 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4490 (streamer_write_enum): Rename from lto_output_enum.
4491 (streamer_read_enum): Rename from lto_input_enum.
4492 (streamer_write_record_start): Rename from output_record_start.
4493 (streamer_read_record_start): Rename from input_record_start.
4494 (streamer_write_bitpack): Rename from lto_output_bitpack.
4495 (streamer_read_bitpack): Rename from lto_input_bitpack.
4496 (streamer_write_char_stream): Rename from lto_output_1_stream.
4497 (streamer_read_uchar): Rename from lto_input_1_unsigned.
4498 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4499 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4500 (streamer_read_string_cst): Rename from input_string_cst.
4501 (streamer_read_chain): Rename from lto_input_chain.
4502 (streamer_alloc_tree): Rename from lto_materialize_tree.
4503 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4504 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4505 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4506 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4507 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4508 (streamer_write_chain): Rename from lto_output_chain.
4509 (streamer_write_tree_header): Rename from lto_output_tree_header.
4510 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4511 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4512 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4513 (streamer_write_builtin): Rename from lto_output_builtin_tree.
4514 (streamer_check_handled_ts_structures): Rename from
4515 check_handled_ts_structures.
4516 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4517 (streamer_tree_cache_insert_at): Rename from
4518 lto_streamer_cache_insert_at.
4519 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4520 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4521 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4522 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4523 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4524 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4525 (write_identifier): Rename from output_identifier.
4526 (write_ts_common_tree_pointers): Rename from
4527 lto_output_ts_common_tree_pointers.
4528 (write_ts_vector_tree_pointers): Rename from
4529 lto_output_ts_vector_tree_pointers.
4530 (write_ts_complex_tree_pointers): Rename from
4531 lto_output_ts_complex_tree_pointers.
4532 (write_ts_decl_minimal_tree_pointers): Rename from
4533 lto_output_ts_decl_minimal_tree_pointers.
4534 (write_ts_decl_common_tree_pointers): Rename from
4535 lto_output_ts_decl_common_tree_pointers.
4536 (write_ts_decl_non_common_tree_pointers): Rename from
4537 lto_output_ts_decl_non_common_tree_pointers.
4538 (write_ts_decl_with_vis_tree_pointers): Rename from
4539 lto_output_ts_decl_with_vis_tree_pointers.
4540 (write_ts_field_decl_tree_pointers): Rename from
4541 lto_output_ts_field_decl_tree_pointers.
4542 (write_ts_function_decl_tree_pointers): Rename from
4543 lto_output_ts_function_decl_tree_pointers.
4544 (write_ts_type_common_tree_pointers): Rename from
4545 lto_output_ts_type_common_tree_pointers.
4546 (write_ts_type_non_common_tree_pointers): Rename from
4547 lto_output_ts_type_non_common_tree_pointers.
4548 (write_ts_list_tree_pointers): Rename from
4549 lto_output_ts_list_tree_pointers.
4550 (write_ts_vec_tree_pointers): Rename from
4551 lto_output_ts_vec_tree_pointers.
4552 (write_ts_exp_tree_pointers): Rename from
4553 lto_output_ts_exp_tree_pointers.
4554 (write_ts_block_tree_pointers): Rename from
4555 lto_output_ts_block_tree_pointers.
4556 (write_ts_binfo_tree_pointers): Rename from
4557 lto_output_ts_binfo_tree_pointers.
4558 (write_ts_constructor_tree_pointers): Rename from
4559 lto_output_ts_constructor_tree_pointers.
4560 (write_ts_target_option): Rename from lto_output_ts_target_option.
4561 (write_ts_translation_unit_decl_tree_pointers): Rename from
4562 lto_output_ts_translation_unit_decl_tree_pointers.
4563 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4564 Rename from lto_streamer_cache_add_to_node_array.
4565 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4566 (record_common_node): Rename from lto_record_common_node.
4567
4568 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4569 declarations.
4570 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4571 function.
4572 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4573 unused function.
4574 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4575 (ipa-reference.o): Likewise.
4576 * lto-section-out.c: Include data-streamer.h.
4577 * ipa-reference.c: Include data-streamer.h.
4578
4579 2011-08-12 Nick Clifton <nickc@redhat.com>
4580
4581 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4582 * doc/md.texi (cmpstrn): Note that the comparison stops if both
4583 fetched bytes are zero.
4584 (cmpstr): Likewise.
4585 (cmpmem): Note that the comparison does not stop if both of the
4586 fetched bytes are zero.
4587
4588 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
4589
4590 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4591 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4592 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4593 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4594 to integer_type_node.
4595 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4596 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4597 * builtins.c (expand_builtin_in): Ditto.
4598 (mathfn_built_in_1): Ditto.
4599 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4600 BUILT_IN_IFLOOR.
4601 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4602 BUILT_IN_IROUND.
4603 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4604 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4605 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4606
4607 2011-08-12 Richard Guenther <rguenther@suse.de>
4608
4609 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4610
4611 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
4612
4613 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4614
4615 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
4616
4617 * config/arm/arm.c (get_label_padding): New function.
4618 (create_fix_barrier, arm_reorg): Use it.
4619
4620 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
4621
4622 PR target/49781
4623 * config/i386/i386.md (*lea_5_zext): New.
4624 (*lea_6_zext): Ditto.
4625 * config/i386/predicates.md (const_32bit_mask): New predicate.
4626 (lea_address_operand): Reject AND.
4627 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4628 const_32bit_mask immediate.
4629 (ix86_print_operand_address): Handle AND.
4630 (memory_address_length): Ditto.
4631
4632 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
4633 Brian Hackett <bhackett1024@gmail.com>
4634
4635 * plugin.def: Add event for finish_decl.
4636 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4637 * c-decl.c (finish_decl): Invoke callbacks on above event.
4638 * doc/plugins.texi: Document above event.
4639
4640 2011-08-11 Richard Guenther <rguenther@suse.de>
4641
4642 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4643 lookups, make looking through aggregate copies stronger.
4644
4645 2011-08-11 Richard Henderson <rth@redhat.com>
4646
4647 PR bootstrap/50018
4648 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4649
4650 2011-08-11 Richard Guenther <rguenther@suse.de>
4651
4652 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4653 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4654 (vrp_visit_stmt): Likewise.
4655
4656 2011-08-11 Richard Guenther <rguenther@suse.de>
4657
4658 PR middle-end/50040
4659 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4660 load of the other piece with TREE_NO_WARNING.
4661 * tree-flow.h (warn_uninit): Adjust prototype.
4662 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4663 the base variable and the expression that is used separately.
4664 Properly query all TREE_NO_WARNING flags.
4665 (struct walk_data): Remove.
4666 (warn_uninitialized_var): Likewise.
4667 (warn_uninitialized_vars): Do not walk gimple pieces but simply
4668 look at all SSA uses of the statement. Handle unused memory
4669 separately.
4670 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4671
4672 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
4673
4674 * config/rx/rx.md (movsicc): Allow register to register transfers.
4675 (*movsicc): Likewise.
4676 (*stcc): Restrict this pattern to EQ and NE compares.
4677 (*stcc_reg): New pattern. Works for any comparison but only for
4678 register transfers.
4679
4680 2011-08-11 Diego Novillo <dnovillo@google.com>
4681
4682 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4683 Call stream_write_tree instead of output_record_start.
4684 (lto_output_ts_binfo_tree_pointers): Likewise.
4685
4686 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4687 Convert it to a macro.
4688 (stream_read_tree): Likewise.
4689
4690 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4691 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4692
4693 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4694 and tree_read_bitfields.
4695 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4696 (lto_write_tree): Call it.
4697 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4698 * streamer-hooks.h (struct streamer_hooks): Remove fields
4699 name, is_streamable and alloc_tree. Update all users.
4700 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4701 (lto_materialize_tree): ... here.
4702 Handle CALL_EXPR codes.
4703 Remove call to lto_streamer_cache_append.
4704 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4705 * tree-streamer.h (tree_read_bitfields): Declare.
4706
4707 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4708 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4709 * tree-streamer.h (stream_read_tree): New. Replace all calls
4710 to lto_input_tree with it.
4711 (stream_write_tree): New. Replace all calls to lto_output_tree,
4712 lto_output_tree_ref and lto_output_tree_or_ref with it.
4713 * lto-streamer-in.c (lto_read_tree): Inline code from
4714 lto_streamer_read_tree.
4715 (lto_input_tree): Move from tree-streamer-in.c.
4716 * lto-streamer-out.c (lto_output_tree_ref): Make static.
4717 Remove handling of NULL values for EXPR.
4718 Do not handle EXPRs that are not indexable.
4719 (lto_write_tree): Move from tree-streamer-out.c.
4720 Inline lto_streamer_write_tree.
4721 (lto_output_tree): Move from tree-streamer-out.c.
4722 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4723 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4724 (lto_preload_common_nodes): Likewise.
4725 Remove assertions and adjustments for nodes
4726 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4727 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4728 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4729 * lto-streamer.h (lto_input_tree): Declare.
4730 (lto_output_tree_ref): Remove.
4731 * streamer-hooks.h (struct streamer_hooks): Remove fields
4732 preload_common_nodes, indexable_with_decls_p,
4733 pack_value_fields, unpack_value_fields and output_tree_header.
4734 Update all users.
4735 * tree-streamer-in.c (lto_materialize_tree): Make extern.
4736 (lto_input_tree_pointers): Likewise.
4737 (lto_read_tree): Move to lto-streamer-in.c.
4738 (lto_input_integer_cst): Make extern.
4739 (lto_get_pickled_tree): Likewise.
4740 (lto_get_builtin_tree): Likewise.
4741 (lto_input_tree): Move to lto-streamer-in.c.
4742 * tree-streamer-out.c (pack_value_fields): Make extern.
4743 (lto_output_tree_or_ref): Remove. Replace all callers with
4744 calls to stream_write_tree.
4745 (lto_output_builtin_tree): Make extern.
4746 (lto_streamer_write_tree): Inline into lto_write_tree.
4747 (lto_output_tree_pointers): Make extern.
4748 (lto_output_tree_header): Likewise.
4749 (lto_output_integer_cst): Likewise.
4750 (lto_write_tree): Move to lto-streamer-out.c.
4751 (lto_output_tree): Likewise.
4752 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4753 (preload_common_nodes): Likewise.
4754 (lto_streamer_cache_create): Call it.
4755 * tree-streamer.h: Include streamer-hooks.h.
4756 (stream_write_tree): New.
4757 (stream_read_tree): New.
4758 (lto_input_tree): Remove.
4759 (lto_materialize_tree): Declare.
4760 (lto_input_tree_pointers): Declare.
4761 (lto_get_pickled_tree): Declare.
4762 (lto_get_builtin_tree): Declare.
4763 (lto_input_integer_cst): Declare.
4764 (lto_output_tree_header): Declare.
4765 (pack_value_fields): Declare.
4766 (lto_output_tree_pointers): Declare.
4767 (lto_output_integer_cst): Declare.
4768 (lto_output_builtin_tree): Declare.
4769
4770 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4771
4772 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4773 only if producer writes to the register given by regno.
4774
4775 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4776 Alexander Monakov <amonakov@ispras.ru>
4777
4778 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4779 (sched_get_condition_with_rev_uncached): ... this. Factor out
4780 condition caching logic into ...
4781 (sched_get_condition_with_rev): ... this. Reimplement. Do not
4782 attempt to use cache for instructions with zero luid.
4783 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4784 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4785
4786 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4787
4788 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4789 get_seqno_for_a_jump. Update the caller.
4790 (get_seqno_by_succs): New. Use it ...
4791 (get_seqno_for_a_jump): ... here to find a seqno if looking at
4792 predecessors was not sufficient.
4793 (get_seqno_by_preds): Include head in iteration range, exclude insn.
4794
4795 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4796
4797 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4798
4799 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4800
4801 * sel-sched-ir.h (register_unavailable_p): Declare.
4802 * sel-sched-ir.c (register_unavailable_p): New. Use it...
4803 (set_unavailable_target_for_expr): ... here to properly test
4804 availability of a register.
4805 (speculate_expr): Ditto.
4806 * sel-sched.c (substitute_reg_in_expr): Ditto.
4807 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4808
4809 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4810
4811 * sel-sched.c (verify_target_availability): Fix usage of
4812 hard_regno_nregs.
4813
4814 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4815
4816 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4817 recognized by cannot_copy_insn_p hook and volatile instructions.
4818
4819 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4820
4821 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4822
4823 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
4824
4825 * doc/md.texi (define_bypass): Say that the instruction names can
4826 be filename-style globs.
4827 * Makefile.in (FNMATCH_H): Define.
4828 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4829 * genattrtab.c: Include fnmatch.h.
4830 (bypass_list): Change field name from "insn" to "pattern".
4831 (gen_bypass_1): Update accordingly.
4832 (process_bypasses): Use fnmatch to check for matches between
4833 insn reservations and define_bypasses.
4834 * genautomata.c: Include fnmatch.h.
4835 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4836 and out_pattern respectively.
4837 (gen_bypass, insert_bypass): Update accordingly.
4838 (for_each_matching_insn, process_bypass_2, process_bypass_1)
4839 (process_bypass): New functions.
4840 (process_decls): Use process_bypass. Update after field name changes.
4841
4842 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
4843
4844 PR target/49687
4845 * config/avr/avr.md (smulqi3_highpart): New insn.
4846 (umulqi3_highpart): New insn.
4847 (*subqi3.ashiftrt7): New insn.
4848 (smulhi3_highpart): New expander.
4849 (umulhi3_highpart): Nex expander.
4850 (*smulhi3_highpart_call): New insn.
4851 (*umulhi3_highpart_call): New insn.
4852 (extend_u): New code attribute.
4853 (extend_prefix): Rename code attribute to extend_su.
4854 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4855 widening QI/HI multiply.
4856
4857 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
4858
4859 PR tree-optimization/50039
4860 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4861 that DEF_STMT has a stmt_vec_info.
4862
4863 2011-08-10 Richard Guenther <rguenther@suse.de>
4864
4865 * tree.h (can_trust_pointer_alignment): Remove.
4866 * builtins.c (can_trust_pointer_alignment): Remove.
4867
4868 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4869
4870 * c-typeck.c (scalar_to_vector): New function. Try scalar to
4871 vector conversion.
4872 (stv_conv): New enum for scalar_to_vector return type.
4873 (build_binary_op): Adjust.
4874 * doc/extend.texi: Description of scalar to vector expansion.
4875
4876 2011-08-10 Richard Guenther <rguenther@suse.de>
4877
4878 * tree.h (get_pointer_alignment): Remove max-align argument.
4879 (get_object_alignment): Likewise.
4880 * builtins.c (get_object_alignment_1): Adjust.
4881 (get_object_alignment): Remove max-align argument.
4882 (get_pointer_alignment): Likewise.
4883 (expand_builtin_strlen): Adjust.
4884 (expand_builtin_memcpy): Likewise.
4885 (expand_builtin_mempcpy_args): Likewise.
4886 (expand_builtin_strncpy): Likewise.
4887 (expand_builtin_memset_args): Likewise.
4888 (expand_builtin_memcmp): Likewise.
4889 (expand_builtin_strcmp): Likewise.
4890 (expand_builtin_strncmp): Likewise.
4891 (get_builtin_sync_mem): Likewise.
4892 (fold_builtin_memset): Likewise.
4893 (fold_builtin_memory_op): Likewise.
4894 (expand_builtin_memory_chk): Likewise.
4895 * emit-rtl.c (get_mem_align_offset): Likewise.
4896 (set_mem_attributes_minus_bitpos): Likewise.
4897 * expr.c (expand_assignment): Likewise.
4898 (expand_expr_real_1): Likewise.
4899 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4900 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4901 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4902 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4903 * value-prof.c (gimple_stringops_transform): Likewise.
4904
4905 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
4906
4907 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4908 * doc/tm.texi: Regenerate.
4909
4910 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
4911
4912 PR target/29560
4913 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4914 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4915 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4916 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4917 shift target is unused.
4918
4919 2011-08-10 Richard Guenther <rguenther@suse.de>
4920
4921 PR tree-optimization/49937
4922 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4923 using get_object_alignment_1.
4924
4925 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4926
4927 * config/i386/i386.c (ix86_emit_i387_round): New function.
4928 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4929 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4930 Use ix86_emit_i387_round to expand round function for i387 math.
4931 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4932 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4933
4934 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4935
4936 * config/sync.c: Move to ../libgcc.
4937 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4938 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4939 Remove.
4940
4941 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4942
4943 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4944 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4945 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4946 Change 'from' and 'to' arguments type to reg_class_t.
4947 (TARGET_REGISTER_MOVE_COST): Define.
4948
4949 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
4950
4951 PR target/50026
4952 Revert:
4953 PR rtl-optimization/49990
4954 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4955 ignore classes which can not change mode.
4956 (find_costs_and_classes): Ditto.
4957
4958 2011-08-09 Richard Guenther <rguenther@suse.de>
4959
4960 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4961 information for ranges with only negative values.
4962 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4963 BIT_AND_EXPR handling to handle ranges with negative values.
4964
4965 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
4966
4967 * config/i386/i386.c: Remove traling spaces.
4968 * config/i386/sse.md: Likewise.
4969 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4970 (*fma_fmsub_<mode>): Likewise.
4971 (*fma_fnmadd_<mode>): Likewise.
4972 (*fma_fnmsub_<mode>): Likewise.
4973
4974 2011-08-09 Nick Clifton <nickc@redhat.com>
4975
4976 * config/rx/rx.md: Disable extender peepholes at -O3.
4977
4978 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4979
4980 PR target/49781
4981 * config/i386/i386.md (reload_noff_load): New.
4982 (reload_noff_store): Ditto.
4983 * config/i386/i386.c (ix86_secondary_reload): Use
4984 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4985 double-word moves from/to non-offsetable addresses instead of
4986 generating XMM temporary.
4987
4988 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4989
4990 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4991
4992 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
4993
4994 PR tree-optimization/50014
4995 * tree-vect-loop.c (vectorizable_reduction): Get def type before
4996 calling vect_get_vec_def_for_stmt_copy ().
4997
4998 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
4999
5000 PR rtl-optimization/49990
5001 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5002 ignore classes which can not change mode.
5003 (find_costs_and_classes): Ditto.
5004
5005 2011-08-08 Richard Henderson <rth@redhat.com>
5006
5007 PR middle-end/49990
5008 * config/i386/i386.c (ix86_expand_prologue): Call
5009 for SEH target gen_prologue_use instead of gen_blockage
5010 at prologue's end.
5011
5012 2011-08-08 Martin Jambor <mjambor@suse.cz>
5013
5014 PR middle-end/49923
5015 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5016 memory alignment.
5017
5018 2011-08-08 Diego Novillo <dnovillo@google.com>
5019
5020 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5021 (DATA_STREAMER_H): New.
5022 (GIMPLE_STREAMER_H): New.
5023 (TREE_STREAMER_H): New.
5024 (STREAMER_HOOKS_H): New.
5025 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5026 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5027 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5028 (data-streamer.o): New.
5029 (data-streamer-in.o): New.
5030 (data-streamer-out.o): New.
5031 (gimple-streamer-in.o): New.
5032 (gimple-streamer-out.o): New.
5033 (streamer-hooks.o): New.
5034 (tree-streamer.o): New.
5035 (tree-streamer-in.o): New.
5036 (tree-streamer-out.o): New.
5037 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5038 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5039 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5040 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5041 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5042 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5043 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5044 (ipa-inline-analysis.o): Likewise.
5045 (ipa-pure-const.o): Likewise.
5046 * data-streamer-in.c: New.
5047 * data-streamer-out.c: New.
5048 * data-streamer.c: New.
5049 * data-streamer.h: New.
5050 * gimple-streamer-in.c: New.
5051 * gimple-streamer-out.c: New.
5052 * gimple-streamer.h: New.
5053 * ipa-inline-analysis.c: Include data-streamer.h.
5054 * ipa-prop.c: Include data-streamer.h.
5055 * ipa-pure-const.c: Include data-streamer.h.
5056 * lto-cgraph.c: Include data-streamer.h.
5057 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5058 (lto_input_widest_uint_uleb128): Likewise.
5059 (lto_input_sleb128): Likewise.
5060 (bp_unpack_var_len_unsigned): Likewise.
5061 (bp_unpack_var_len_int): Likewise.
5062 * lto-section-out.c (lto_output_uleb128_stream): Move to
5063 data-streamer-out.c.
5064 (lto_output_widest_uint_uleb128_stream): Likewise.
5065 (lto_output_sleb128_stream): Likewise.
5066 (bp_pack_var_len_unsigned): Likewise.
5067 (bp_pack_var_len_int): Likewise.
5068 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5069 (struct string_slot): Remove. Update all users.
5070 (lto_tag_check_set): Make extern.
5071 (lto_tag_check_range): Move to lto-streamer.h.
5072 (lto_tag_check): Likewise.
5073 (hash_string_slot_node): Remove. Update all users.
5074 (eq_string_slot_node): Remove. Update all users.
5075 (string_for_index): Move to data-streamer-in.c
5076 (input_string_internal): Likewise.
5077 (input_string_cst): Move to tree-streamer-in.c.
5078 (input_identifier): Likewise.
5079 (lto_input_string): Move to data-streamer-in.c
5080 (input_record_start): Move to data-streamer.h
5081 (canon_file_name): Use new definition of struct string_slot
5082 from data-streamer.h. Set S_SLOT.LEN.
5083 (lto_input_location): Make extern.
5084 (lto_input_chain): Move to tree-streamer-in.c.
5085 (lto_init_eh): Make extern.
5086 (input_phi): Move to gimple-streamer-in.c.
5087 (input_gimple_stmt): Likewise.
5088 (input_bb): Likewise.
5089 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5090 (unpack_ts_real_cst_value_fields): Likewise.
5091 (unpack_ts_fixed_cst_value_fields): Likewise.
5092 (unpack_ts_decl_common_value_fields): Likewise.
5093 (unpack_ts_decl_wrtl_value_fields): Likewise.
5094 (unpack_ts_decl_with_vis_value_fields): Likewise.
5095 (unpack_ts_function_decl_value_fields): Likewise.
5096 (unpack_ts_type_common_value_fields): Likewise.
5097 (unpack_ts_block_value_fields): Likewise.
5098 (unpack_ts_translation_unit_decl_value_fields): Likewise.
5099 (unpack_value_fields): Likewise.
5100 (lto_materialize_tree): Likewise.
5101 (lto_input_ts_common_tree_pointers): Likewise.
5102 (lto_input_ts_vector_tree_pointers): Likewise.
5103 (lto_input_ts_complex_tree_pointers): Likewise.
5104 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5105 (lto_input_ts_decl_common_tree_pointers): Likewise.
5106 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5107 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5108 (lto_input_ts_field_decl_tree_pointers): Likewise.
5109 (lto_input_ts_function_decl_tree_pointers): Likewise.
5110 (lto_input_ts_type_common_tree_pointers): Likewise.
5111 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5112 (lto_input_ts_list_tree_pointers): Likewise.
5113 (lto_input_ts_vec_tree_pointers): Likewise.
5114 (lto_input_ts_exp_tree_pointers): Likewise.
5115 (lto_input_ts_block_tree_pointers): Likewise.
5116 (lto_input_ts_binfo_tree_pointers): Likewise.
5117 (lto_input_ts_constructor_tree_pointers): Likewise.
5118 (lto_input_ts_target_option): Likewise.
5119 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5120 (lto_input_tree_pointers): Likewise.
5121 (lto_get_pickled_tree): Likewise.
5122 (lto_get_builtin_tree): Likewise.
5123 (lto_read_tree): Likewise.
5124 (lto_input_integer_cst): Likewise.
5125 (lto_input_tree): Likewise.
5126 * lto-streamer-out.c: Include data-streamer.h,
5127 gimple-streamer.h and streamer-hooks.h.
5128 (struct string_slot): Move to data-streamer.h.
5129 (hash_string_slot_node): Likewise.
5130 (eq_string_slot_node): Likewise.
5131 (lto_string_index): Move to data-streamer-out.c.
5132 (lto_output_string_with_length): Likewise.
5133 (lto_output_string): Likewise.
5134 (output_string_cst): Move to tree-streamer-out.c.
5135 (output_identifier): Likewise.
5136 (output_zero): Move to data-streamer-out.c
5137 (output_uleb128): Likewise.
5138 (output_sleb128): Likewise.
5139 (output_record_start): Move to data-streamer.h
5140 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5141 (pack_ts_real_cst_value_fields): Likewise.
5142 (pack_ts_fixed_cst_value_fields): Likewise.
5143 (pack_ts_decl_common_value_fields): Likewise.
5144 (pack_ts_decl_wrtl_value_fields): Likewise.
5145 (pack_ts_decl_with_vis_value_fields): Likewise.
5146 (pack_ts_function_decl_value_fields): Likewise.
5147 (pack_ts_type_common_value_fields): Likewise.
5148 (pack_ts_block_value_fields): Likewise.
5149 (pack_ts_translation_unit_decl_value_fields): Likewise.
5150 (pack_value_fields): Likewise.
5151 (lto_output_chain): Likewise.
5152 (lto_output_ts_common_tree_pointers): Likewise.
5153 (lto_output_ts_vector_tree_pointers): Likewise.
5154 (lto_output_ts_complex_tree_pointers): Likewise.
5155 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5156 (lto_output_ts_decl_common_tree_pointers): Likewise.
5157 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5158 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5159 (lto_output_ts_field_decl_tree_pointers): Likewise.
5160 (lto_output_ts_function_decl_tree_pointers): Likewise.
5161 (lto_output_ts_type_common_tree_pointers): Likewise.
5162 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5163 (lto_output_ts_list_tree_pointers): Likewise.
5164 (lto_output_ts_vec_tree_pointers): Likewise.
5165 (lto_output_ts_exp_tree_pointers): Likewise.
5166 (lto_output_ts_block_tree_pointers): Likewise.
5167 (lto_output_ts_binfo_tree_pointers): Likewise.
5168 (lto_output_ts_constructor_tree_pointers): Likewise.
5169 (lto_output_ts_target_option): Likewise.
5170 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5171 (lto_output_tree_pointers): Likewise.
5172 (lto_output_tree_header): Likewise.
5173 (lto_output_builtin_tree): Likewise.
5174 (lto_write_tree): Likewise.
5175 (lto_output_integer_cst): Likewise.
5176 (lto_output_tree): Likewise.
5177 (output_phi): Move to gimple-streamer-out.c.
5178 (output_gimple_stmt): Likewise.
5179 (output_bb): Likewise.
5180 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5181 (streamer_hooks): Move to streamer-hooks.c.
5182 (check_handled_ts_structures): Move to tree-streamer.c
5183 (lto_streamer_cache_add_to_node_array): Likewise.
5184 (lto_streamer_cache_insert_1): Likewise.
5185 (lto_streamer_cache_insert): Likewise.
5186 (lto_streamer_cache_insert_at): Likewise.
5187 (lto_streamer_cache_append): Likewise.
5188 (lto_streamer_cache_lookup): Likewise.
5189 (lto_streamer_cache_get): Likewise.
5190 (lto_record_common_node): Likewise.
5191 (lto_preload_common_nodes): Likewise.
5192 (lto_streamer_cache_create): Likewise.
5193 (lto_streamer_cache_delete): Likewise.
5194 (streamer_hooks_init): Move to streamer-hooks.c.
5195 * lto-streamer.h: Include diagnostic.h
5196 (struct output_block, struct lto_input_block,
5197 struct data_in, struct bitpack_d): Remove forward declarations.
5198 (struct bitpack_d): Move to data-streamer.h.
5199 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5200 (struct streamer_hooks): Move to streamer-hooks.h.
5201 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5202 (bp_pack_var_len_int): Likewise.
5203 (bp_unpack_var_len_unsigned): Likewise.
5204 (bp_unpack_var_len_int): Likewise.
5205 (lto_input_location): Declare.
5206 (lto_tag_check_set): Declare.
5207 (lto_init_eh): Declare.
5208 (lto_output_tree_ref): Declare.
5209 (lto_output_location): Declare.
5210 (bitpack_create): Move to data-streamer.h.
5211 (bp_pack_value): Likewise.
5212 (lto_output_bitpack): Likewise.
5213 (lto_input_bitpack): Likewise.
5214 (bp_unpack_value): Likewise.
5215 (lto_output_1_stream): Likewise.
5216 (lto_input_1_unsigned): Likewise.
5217 (lto_output_int_in_range): Likewise.
5218 (lto_input_int_in_range): Likewise.
5219 (bp_pack_int_in_range): Likewise.
5220 (bp_unpack_int_in_range): Likewise.
5221 (lto_output_enum): Likewise.
5222 (lto_input_enum): Likewise.
5223 (bp_pack_enum): Likewise.
5224 (bp_unpack_enum): Likewise.
5225 * streamer-hooks.c: New.
5226 * streamer-hooks.h: New.
5227 * tree-streamer-in.c: New.
5228 * tree-streamer-out.c: New.
5229 * tree-streamer.c: New.
5230 * tree-streamer.h: New.
5231
5232 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5233
5234 * gthr-posix95.h: Remove.
5235 * gthr.h [_PTHREADS95]: Remove.
5236 * configure.ac (enable_threads): Remove posix95.
5237 * configure: Regenerate.
5238 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5239
5240 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5241
5242 PR target/49781
5243 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5244 SImode addresses.
5245 (ix86_print_operand_address): Handle zero-extended addresses.
5246 (memory_address_length): Add length of addr32 prefix for
5247 zero-extended addresses.
5248 (ix86_secondary_reload): Handle moves to/from double-word general
5249 registers from/to zero-extended addresses.
5250 * config/i386/predicates.md (lea_address_operand): Reject
5251 zero-extended operands.
5252
5253 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5254
5255 PR other/48007
5256 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5257
5258 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5259 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5260
5261 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5262 (_Unwind_Context_Reg_Val): Likewise.
5263 (_Unwind_Get_Unwind_Word): Likewise.
5264 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5265 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5266 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5267 for EXTENDED_CONTEXT_BIT.
5268 (__frame_state_for): Likewise.
5269 (uw_init_context_1): Likewise.
5270 (_Unwind_GetGR): Updated.
5271 (_Unwind_SetGR): Likewise.
5272 (_Unwind_GetGRPtr): Likewise.
5273 (_Unwind_SetGRPtr): Likewise.
5274 (_Unwind_SetGRValue): Likewise.
5275 (_Unwind_GRByValue): Likewise.
5276 (uw_install_context_1): Likewise.
5277
5278 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5279 ASSUME_EXTENDED_UNWIND_CONTEXT.
5280 * doc/tm.texi: Regenerated.
5281
5282 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5283
5284 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5285
5286 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5287
5288 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5289 Linux/GNU-specific.
5290 (DEC Alpha Options, -mtune): Likewise.
5291 (MIPS Options, -march): native is supported on IRIX.
5292
5293 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5294
5295 * config/sparc/driver-sparc.c: New file.
5296 * config/sparc/x-sparc: New file.
5297 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5298 * config/sparc/sparc.opt (native): New value for enum processor_type.
5299 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5300 * config/sparc/sparc.c (sparc_option_override): Abort if
5301 PROCESSOR_NATIVE gets here.
5302 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5303 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5304 DRIVER_SELF_SPECS): Define.
5305 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5306 (SPARC Options, -mtune): Likewise.
5307 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5308 Substitute result.
5309 * configure: Regenerate.
5310 * Makefile.in (EXTRA_GCC_LIBS): Set.
5311 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5312 (cpp$(exeext)): Likewise.
5313
5314 2011-08-08 Richard Guenther <rguenther@suse.de>
5315
5316 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5317 split out from ...
5318 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5319 by composition.
5320
5321 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5322
5323 PR tree-optimization/50005
5324 * ipa-inline-analysis (remap_predicate): Add cast to
5325 silence signed/unsigned comparison warning.
5326
5327 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5328
5329 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5330 Print the current ii.
5331 (sms_schedule_by_order): Reduce whitespace in dump line.
5332
5333 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5334
5335 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5336 and one loop for successors. Fix upper bound of memory range.
5337
5338 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5339
5340 PR target/50001
5341 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5342 (TARGET_INSTANTIATE_DECLS): New define.
5343
5344 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5345 Mikael Morin <mikael.morin@sfr.fr>
5346
5347 * Makefile.in (INCLUDES_FOR_TARGET): New.
5348 (LIBGCC2_CFLAGS): Use it.
5349 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5350
5351 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5352
5353 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5354 frame->save_regs_using_mov calculation.
5355
5356 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5357
5358 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5359 * config/i386/sse.md (castmode): New mode attribute.
5360 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5361 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5362
5363 2011-08-05 Jan Hubicka <jh@suse.cz>
5364
5365 PR middle-end/49494
5366 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5367
5368 2011-08-05 Jan Hubicka <jh@suse.cz>
5369
5370 PR middle-end/49500
5371 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5372 handle aliases.
5373 (create_emultls_var):New function.
5374 (ipa_lower_emutls): Handle aliases correctly.
5375
5376 2011-08-05 Jan Hubicka <jh@suse.cz>
5377
5378 PR middle-end/49735
5379 * ipa-inline.c (recursive_inlining): Look through aliases.
5380
5381 2011-08-05 Jason Merrill <jason@redhat.com>
5382
5383 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5384 declarations to beginning of function.
5385
5386 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5387
5388 PR rtl-optimization/49900
5389 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5390 ensure basic blocks stay in the same order.
5391
5392 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5393
5394 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5395 store_bit_field.
5396 (s390_expand_atomic): Same.
5397
5398 2011-08-05 Richard Henderson <rth@redhat.com>
5399
5400 PR rtl-opt/49977
5401 * dwarf2cfi.c (scan_insn_after): Split out of ...
5402 (scan_trace): ... here. Correctly place notes wrt sequences.
5403
5404 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5405 Richard Henderson <rth@redhat.com>
5406
5407 PR rtl-opt/49982
5408 * expr.c (fixup_args_size_notes): Look through no-op moves.
5409
5410 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5411
5412 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5413 of "m" for operand 0. Add type and mode attribute.
5414 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5415 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5416 constraint instead of "o" for opreand 1.
5417 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5418 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5419 operand 0, alternative 4.
5420 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5421
5422 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5423
5424 * config/i386/predicates.md (lea_address_operand): Rename from
5425 no_seg_address_operand.
5426 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5427 (*lea_1_zext): Ditto.
5428 (*lea_2): Ditto.
5429 (*lea_2_zext): Ditto.
5430
5431 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5432
5433 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5434 parts.base and parts.index.
5435 * config/i386/predicates.md (aligned_operand): Ditto.
5436 (cmpxchg8b_pic_memory_operand): Ditto.
5437
5438 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5439
5440 * config/soft-fp: Move to ../libgcc.
5441 * Makefile.in (SFP_MACHINE): Remove.
5442 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5443 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5444 * config/arm/t-arm-softfp: Move to
5445 ../libgcc/config/arm/t-softfp.
5446 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5447 * config/c6x/t-c6x-softfp: Remove.
5448 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5449 * config/i386/t-fprules-softfp: Move to
5450 ../libgcc/config/t-softfp-tf.
5451 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5452 * config/ia64/t-fprules-softfp: Remove.
5453 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5454 * config/lm32/t-fprules-softfp: Remove.
5455 * config/moxie/sfp-machine.h: Remove.
5456 * config/moxie/t-moxie-softfp: Remove.
5457 * config/rs6000/darwin-ldouble-format: Move to
5458 ../libgcc/config/rs6000/ibm-ldouble-format.
5459 * config/rs6000/darwin-ldouble.c: Move to
5460 ../libgcc/config/rs6000/ibm-ldouble.c
5461 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5462 * config/rs6000/libgcc-ppc64.ver: Likewise.
5463 * config/rs6000/sfp-machine.h: Likewise.
5464 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5465 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5466 (LIB2FUNCS_EXTRA): Remove.
5467 (TARGET_LIBGCC2_CFLAGS): Remove.
5468 * config/rs6000/t-aix52: Likewise
5469 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5470 $(srcdir)/config/rs6000/darwin-ldouble.c.
5471 (SHLIB_MAPFILES): Remove.
5472 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5473 $(srcdir)/config/rs6000/darwin-ldouble.c.
5474 * config/rs6000/t-fprules-softfp: Move to
5475 ../libgcc/config/t-softfp-sfdf.
5476 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5477 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5478 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5479 $(srcdir)/config/rs6000/darwin-ldouble.c.
5480 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5481 * config/score/t-score-softfp: Remove.
5482 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5483 soft-fp/t-softfp from tmake_file.
5484 (arm*-*-uclinux*): Likewise.
5485 (arm*-*-ecos-elf): Likewise.
5486 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5487 (arm*-*-rtems*): Likewise.
5488 (arm*-*-elf): Likewise.
5489 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5490 tmake_file.
5491 (moxie-*-uclinux*): Likewise.
5492 (moxie-*-rtems*): Likewise.
5493 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5494 tmake_file.
5495 (lm32-*-rtems*): Likewise.
5496 (lm32-*-uclinux*): Likewise.
5497 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5498 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5499 (powerpc-*-linux*, powerpc64-*-linux*): Remove
5500 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5501 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5502 tmake_file.
5503 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5504 tmake_file.
5505 (tic6x-*-uclinux): Likewise.
5506 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5507 soft-fp/t-softfp from tmake_file.
5508 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5509 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5510 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5511 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5512 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5513
5514 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5515
5516 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5517 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5518 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5519 TPBIT, TPBIT_FUNCS.
5520 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5521 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5522 Remove.
5523 * config/arm/t-vxworks: Likewise.
5524 * config/arm/t-wince-pe: Likewise.
5525 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5526 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5527 * config/bfin/t-bfin-elf: Likewise.
5528 * config/bfin/t-bfin-linux: Likewise.
5529 * config/bfin/t-bfin-uclinux: Likewise.
5530 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5531 Remove.
5532 * config/fr30/t-fr30: Likewise.
5533 * config/frv/t-frv: Likewise.
5534 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5535 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5536 * config/m32c/t-m32c: Likewise.
5537 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5538 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5539 * config/mcore/t-mcore: Likewise.
5540 * config/mep/t-mep: Likewise.
5541 * config/microblaze/t-microblaze: Likewise.
5542 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5543 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5544 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5545 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5546 * config/mn10300/t-linux: Remove.
5547 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5548 * config/pdp11/t-pdp11: Likewise.
5549 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5550 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5551 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5552 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5553 * config/rs6000/t-aix52: Likewise.
5554 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5555 $(srcdir)/config/rs6000/ppc64-fp.c.
5556 * config/rs6000/t-fprules-fpbit: Remove.
5557 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5558 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5559 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5560 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5561 * config/sparc/t-elf: Likewise.
5562 * config/sparc/t-leon: Likewise.
5563 * config/sparc/t-leon3: Likewise.
5564 * config/spu/t-spu-elf: Likewise.
5565 (DPBIT_FUNCS): Remove.
5566 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5567 * config/v850/t-v850: Likewise.
5568 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5569 (avr-*-*): Likewise.
5570 (h8300-*-rtems*): Set libgcc_tm_file.
5571 (h8300-*-elf*): Likewise.
5572 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5573 tmake_file.
5574 (powerpc-*-eabisim*): Likewise.
5575 (powerpc-*-elf*): Likewise.
5576 (powerpc-*-eabialtivec*): Likewise.
5577 (powerpc-xilinx-eabi*): Likewise.
5578 (powerpc-*-eabi*): Likewise.
5579 (powerpc-*-rtems*): Likewise.
5580 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5581 (powerpcle-*-elf*): Likewise.
5582 (powerpcle-*-eabisim*): Likewise.
5583 (powerpcle-*-eabi*): Likewise.
5584 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5585 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5586 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5587 Remove.
5588
5589 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5590
5591 * Makefile.in (UNWIND_H): Remove.
5592 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5593 ../libgcc/Makefile.in.
5594 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5595 (LIBUNWINDDEP): Remove.
5596 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5597 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5598 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5599 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5600 Don't copy $(UNWIND_H).
5601 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5602 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5603 * aclocal.m4: Regenerate.
5604 * configure: Regenerate.
5605 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5606 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5607 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5608 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5609 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5610 * config/arm/libunwind.S, config/arm/pr-support.c,
5611 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5612 ../libgcc/config/arm.
5613 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5614 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5615 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5616 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5617 ($(T)frvend$(objext)): Likewise.
5618 * config/ia64/t-glibc (LIB2ADDEH): Remove.
5619 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5620 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5621 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5622 ../libgcc/config/ia64.
5623 * config/ia64/t-hpux (LIB2ADDEH): Remove.
5624 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5625 * config/ia64/t-vms (LIB2ADDEH): Remove.
5626 * config/ia64/vms.h (UNW_IVMS_MODE,
5627 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5628 * config/picochip/t-picochip (LIB2ADDEH): Remove.
5629 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5630 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5631 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5632 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5633 $(srcdir)/../libgcc to refer to unwinder sources.
5634 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5635 * config/t-darwin (LIB2ADDEH): Remove.
5636 * config/t-freebsd (LIB2ADDEH): Remove.
5637 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5638 * config/t-libunwind-elf: Move to ../libgcc/config.
5639 * config/t-linux (LIB2ADDEH): Remove.
5640 * config/t-sol2 (LIB2ADDEH): Remove.
5641 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5642 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5643
5644 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
5645
5646 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5647
5648 * doc/invoke.texi: Document core-avx-i.
5649
5650 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5651
5652 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5653
5654 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
5655
5656 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5657 result of multiple results reduction when extracting the final
5658 value using scalar code.
5659
5660 2011-08-05 Richard Guenther <rguenther@suse.de>
5661
5662 PR tree-optimization/49984
5663 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5664
5665 2011-08-05 Richard Guenther <rguenther@suse.de>
5666
5667 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5668 return true for constant integer ranges.
5669 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5670 BIT_IOR_EXPR handling.
5671
5672 2011-08-04 Kai Tietz <ktietz@redhat.com>
5673
5674 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5675 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5676
5677 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
5678
5679 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5680 pattern def statement, and its access macro.
5681 (NUM_PATTERNS): Set to 5.
5682 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5683 pattern def statement.
5684 (vect_transform_loop): Likewise.
5685 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5686 function vect_recog_over_widening_pattern ().
5687 (vect_operation_fits_smaller_type): New function.
5688 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5689 Likewise.
5690 (vect_pattern_recog_1): Move the code that marks pattern
5691 statements to vect_mark_pattern_stmts (), and call it. Update
5692 documentation.
5693 * tree-vect-stmts.c (vect_supportable_shift): New function.
5694 (vect_analyze_stmt): Handle pattern def statement.
5695 (new_stmt_vec_info): Initialize pattern def statement.
5696
5697 2011-08-04 Richard Henderson <rth@redhat.com>
5698
5699 PR target/49964
5700 * config/i386/i386.c (ix86_expand_call): Don't create nested
5701 PARALLELs for TARGET_VZEROUPPER.
5702 (ix86_split_call_vzeroupper): Fix extraction of the original call.
5703 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5704 recognize nested PARALLELs.
5705 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5706 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5707 *sibcall_value_pop_vzeroupper): Likewise.
5708
5709 2011-08-04 Richard Henderson <rth@redhat.com>
5710
5711 PR middle-end/49968
5712 * calls.c (expand_call): Use fixup_args_size_notes for
5713 emit_stack_restore.
5714 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5715 in non-standard modes.
5716
5717 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5718
5719 * gcc.c (self_spec): New variable.
5720 (static_specs): Add self_spec.
5721 (main): Call do_self_spec on "self_spec" specs after reading
5722 user specs files. Move compare_debug handling right after that.
5723
5724 2011-08-04 Richard Guenther <rguenther@suse.de>
5725
5726 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5727 (value_range_nonnegative_p): New function.
5728 (ssa_name_nonnegative_p): Use it.
5729 (value_range_constant_singleton): New function.
5730 (op_with_constant_singleton_value_range): Use it.
5731 (extract_range_from_binary_expr_1): New function, split out from ...
5732 (extract_range_from_binary_expr): ... this. Remove fallback
5733 constant folding done here.
5734
5735 2011-08-04 Richard Guenther <rguenther@suse.de>
5736
5737 PR tree-optimization/49806
5738 * tree-vrp.c (op_with_boolean_value_range_p): New function.
5739 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
5740 a new statement for a final conversion to bool.
5741
5742 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
5743
5744 * gengtype-state.c: Include "bconfig.h" if
5745 GENERATOR_FILE is defined, "config.h" otherwise.
5746 * gengtype.c: Likewise.
5747 * gengtype-lex.l: Likewise.
5748 * gengtype-parse.c: Likewise.
5749 * Makefile.in (gengtype-lex.o-warn): New variable.
5750 (plugin_resourcesdir): Likewise.
5751 (plugin_bindir): Likewise.
5752 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5753 (MOSTLYCLEANFILES): Add gengtype$(exeext).
5754 (native): Depend on gengtype$(exeext) is $enable_plugin
5755 is set to "yes".
5756 (gtype.state): Depend on s-gtype. Use temporary file.
5757 (gengtype-lex.o): New rule.
5758 (gengtype-parse.o): Likewise.
5759 (gengtype-state.o): Likewise.
5760 (gengtype$(exeext)): Likewise.
5761 (install-gengtype): Likewise.
5762 (gengtype.o): Likewise.
5763 (build/gengtype.o): Depend on version.h.
5764 (build/gengtype-state): Depend on double-int.h, version.h,
5765 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5766 (install-plugin): Depend on install-gengtype.
5767
5768 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5769
5770 PR middle-end/49905
5771 * tree.h (init_attributes): New prototype.
5772 * attribs.c (init_attributes): No longer static.
5773
5774 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5775
5776 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5777 maybe_suffix.
5778
5779 2011-08-03 David Li <davidxl@google.com>
5780
5781 * tree-optimize.c (execute_fixup_cfg): Fix up entry
5782 outgoing edge counts after inlining.
5783
5784 2011-08-03 David Li <davidxl@google.com>
5785
5786 * profile.c (compute_branch_probabilities): Compute
5787 function frequency after profile annotation.
5788
5789 2011-08-04 Alan Modra <amodra@gmail.com>
5790
5791 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5792 use_backchain_to_restore_sp initialisation.
5793 (rs6000_legitimate_offset_address_p): Simplify offset test.
5794
5795 2011-08-03 Richard Henderson <rth@redhat.com>
5796
5797 * config/spu/spu.md: Use define_c_enum instead of define_constants.
5798 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5799 (UNSPECV_NOP): New.
5800
5801 2011-08-03 Richard Henderson <rth@redhat.com>
5802
5803 PR target/34888
5804 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5805
5806 2011-08-03 Jakub Jelinek <jakub@redhat.com>
5807
5808 PR tree-optimization/49948
5809 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5810
5811 2011-08-03 Anatoly Sokolov <aesok@post.ru>
5812
5813 * config/m32c/m32c.c (class_sizes): Remove.
5814 (reduce_class): Change arguments and return type to reg_class_t.
5815 Change type cc var to HARD_REG_SET. Change type best var to
5816 reg_class_t. Change type best_size var to unsigned int. Remove
5817 initialization class_sizes var. Use reg_class_size array instead
5818 of class_sizes. Use reg_class_contents array instead
5819 of class_contents.
5820
5821 2011-08-03 Richard Guenther <rguenther@suse.de>
5822
5823 PR middle-end/49958
5824 * fold-const.c (fold_binary_loc): Only associate
5825 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5826 overflow wraps.
5827
5828 2011-08-03 Alan Modra <amodra@gmail.com>
5829
5830 PR rtl-optimization/49941
5831 * jump.c (mark_jump_label): Comment.
5832 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5833 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5834 (mark_used_flags): Don't mark RETURN.
5835
5836 2011-08-03 Richard Guenther <rguenther@suse.de>
5837
5838 PR tree-optimization/49938
5839 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5840 deal with a POLYNOMIAL_CHREC.
5841
5842 2011-08-03 Revital Eres <revital.eres@linaro.org>
5843
5844 * modulo-sched.c (calculate_stage_count,
5845 calculate_must_precede_follow, get_sched_window,
5846 try_scheduling_node_in_cycle, remove_node_from_ps): Add
5847 declaration.
5848 (update_node_sched_params, set_must_precede_follow, optimize_sc):
5849 New functions.
5850 (reset_sched_times): Call update_node_sched_params.
5851 (sms_schedule): Call optimize_sc.
5852 (get_sched_window): Change function arguments.
5853 (sms_schedule_by_order): Update call to get_sched_window.
5854 Call set_must_precede_follow.
5855 (calculate_stage_count): Add function argument.
5856
5857 2011-08-02 Richard Henderson <rth@redhat.com>
5858
5859 PR target/49864
5860 PR target/49879
5861 * reg-notes.def (REG_ARGS_SIZE): New.
5862 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5863 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5864 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5865 different stack levels.
5866 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5867 (maybe_move_args_size_note): New.
5868 (combine_stack_adjustments_for_block): Use it.
5869 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5870 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5871 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5872 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5873 (cur_cfa): New.
5874 (queued_args_size): Remove.
5875 (add_cfi_args_size): Assert size is non-negative.
5876 (stack_adjust_offset, dwarf2out_args_size): Remove.
5877 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5878 (notice_args_size, notice_eh_throw): New.
5879 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5880 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5881 (dwarf2out_frame_debug_cfa_offset): Likewise.
5882 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
5883 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5884 (change_cfi_row): Don't emit args_size.
5885 (maybe_record_trace_start_abnormal): Split out from ...
5886 (maybe_record_trace_start): Here. Set args_size_undefined.
5887 (create_trace_edges): Update to match.
5888 (scan_trace): Handle REG_ARGS_SIZE.
5889 (connect_traces): Connect args_size between EH insns.
5890 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5891 * explow.c (suppress_reg_args_size): New.
5892 (adjust_stack_1): Split out from ...
5893 (adjust_stack): ... here.
5894 (anti_adjust_stack): Use it.
5895 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5896 * expr.c (mem_autoinc_base): New.
5897 (fixup_args_size_notes): New.
5898 (emit_single_push_insn_1): Rename from emit_single_push_insn.
5899 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
5900 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5901 * reload1.c (reload_as_needed): Likewise.
5902 * rtl.h (fixup_args_size_notes): Declare.
5903
5904 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
5905
5906 PR bootstrap/49914
5907 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5908 of abs.
5909 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5910 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5911
5912 2011-08-02 Richard Henderson <rth@redhat.com>
5913
5914 * config/h8300/h8300.c (push, pop): Return the insn.
5915 (h8300_swap_into_er6): Generate correct unwind info.
5916 (h8300_swap_out_of_er6): Likewise.
5917 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5918 complex cfa expression.
5919 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5920
5921 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
5922
5923 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5924
5925 2011-08-02 Richard Henderson <rth@redhat.com>
5926
5927 PR target/49878
5928 * config/h8300/h8300.c (h8300_move_ok): New.
5929 * config/h8300/h8300-protos.h: Declare it.
5930 * config/h8300/h8300.md (P): New mode iterator.
5931 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5932 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5933 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5934 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5935 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5936 and pushqi1_h8300hs_normal; use PRE_MODIFY and
5937 register_no_sp_elim_operand.
5938 (*pushhi1_h8300hs_<P>): Similarly.
5939 (pushqi1, pushhi1, pushhi1_h8300): Remove.
5940 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5941
5942 2011-08-02 Richard Henderson <rth@redhat.com>
5943
5944 PR target/49881
5945 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5946
5947 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5948
5949 * c-parser.c (enum c_parser_prec): New enum, moved from within
5950 c_parser_binary_expression.
5951 (c_parser_binary_expression): Add PREC argument. Stop parsing
5952 if operator has lower or equal precedence than PREC.
5953 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5954 callers.
5955 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5956 Adjust c_finish_omp_atomic caller.
5957 (c_parser_omp_taskyield): New function.
5958 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5959 (c_parser_omp_clause_name): Handle final and mergeable clauses.
5960 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5961 functions.
5962 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5963 and PRAGMA_OMP_CLAUSE_MERGEABLE.
5964 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5965 (c_parser_omp_clause_reduction): Handle min and max.
5966 * c-typeck.c (c_finish_omp_clauses): Don't complain about
5967 const qualified predetermined vars in firstprivate clause.
5968 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5969 Handle MIN_EXPR and MAX_EXPR.
5970 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5971 and OMP_CLAUSE_MERGEABLE.
5972 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5973 and OMP_ATOMIC_CAPTURE_NEW.
5974 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5975 OMP_CLAUSE_MERGEABLE.
5976 (omp_clause_code_name): Likewise.
5977 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5978 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5979 and OMP_CLAUSE_MERGEABLE.
5980 (OMP_CLAUSE_FINAL_EXPR): Define.
5981 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5982 OMP_CLAUSE_MERGEABLE.
5983 (expand_task_call): Likewise.
5984 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5985 (expand_omp_atomic_fetch_op): Handle cases where old or new
5986 value is needed afterwards.
5987 (expand_omp_atomic): Call expand_omp_atomic_load resp.
5988 expand_omp_atomic_store.
5989 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5990 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5991 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5992 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5993 * tree-nested.c (convert_nonlocal_omp_clauses,
5994 convert_local_omp_clauses): Likewise.
5995 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5996 OMP_ATOMIC_CAPTURE_NEW): New.
5997 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5998 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
5999 New inlines.
6000 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6001 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6002 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6003
6004 2011-08-02 Kai Tietz <ktietz@redhat.com>
6005
6006 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6007 boolean-type.
6008 (ssa_forward_propagate_and_combine): Interprete result of
6009 forward_propagate_comparison.
6010 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6011 boolean-typed operands for comparisons.
6012
6013 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
6014
6015 * config/avr/libgcc.S: Gather related function in the
6016 same input section.
6017 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6018 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6019 references.
6020 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6021 __udivmodsi4, __divmodsi4, __prologue_saves__,
6022 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6023 __do_copy_data, __do_clear_bss, __do_global_ctors,
6024 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6025
6026 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
6027
6028 PR target/47766
6029 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6030 (stack_protect_test): The pattern compares ptr_mode value.
6031
6032 2011-08-02 Alan Modra <amodra@gmail.com>
6033
6034 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6035 note for save_LR_around_toc_setup sequence.
6036
6037 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6038
6039 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6040
6041 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
6042 Joseph Myers <joseph@codesourcery.com>
6043
6044 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6045 * hwint.c: Include diagnostic-core.h.
6046 (abs_hwi): New.
6047 (gcd): Moved here...
6048 (pos_mul_hwi): New.
6049 (mul_hwi): New.
6050 (least_common_multiple): Moved here...
6051 * hwint.h (gcd): ... from here.
6052 (least_common_multiple): ... from here.
6053 (HOST_WIDE_INT_MIN): New.
6054 (HOST_WIDE_INT_MAX): New.
6055 (abs_hwi): Declared.
6056 (gcd): Declared.
6057 (pos_mul_hwi): Declared.
6058 (mul_hwi): Declared.
6059 (least_common_multiple): Declared.
6060 * omega.c (check_pos_mul): Removed.
6061 (check_mul): Removed.
6062 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6063 mul_hwi instead of check_mul.
6064
6065 2011-08-01 Richard Henderson <rth@redhat.com>
6066
6067 PR target/49881
6068 * config/avr/avr.h (PUSH_ROUNDING): New.
6069 * config/avr/avr.md (pushqi1): Rename from *pushqi.
6070 (*pushhi, *pushsi, *pushsf): Remove.
6071 (MPUSH): New mode iterator.
6072 (push<MPUSH>1): New expander.
6073
6074 2011-08-01 Anatoly Sokolov <aesok@post.ru>
6075
6076 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6077 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6078 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6079 mmix_preferred_output_reload_class): Remove.
6080 * config/mmix/mmix.c (mmix_preferred_reload_class,
6081 mmix_preferred_output_reload_class): Make static. Change rclass
6082 argument and return type to reg_class_t.
6083 (TARGET_PREFERRED_RELOAD_CLASS,
6084 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6085
6086 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
6087
6088 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6089 handling.
6090
6091 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6092
6093 PR target/47766
6094 * config/i386/i386.md (PTR): New.
6095 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6096 (stack_protect_test): Likewise.
6097 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6098 (stack_tls_protect_set_<mode>): Likewise.
6099 (stack_tls_protect_test_<mode>): Likewise.
6100
6101 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
6102
6103 PR target/49927
6104 * config/i386/i386.c (ix86_address_subreg_operand): New.
6105 (ix86_decompose_address): Use ix86_address_subreg_operand.
6106 (ix86_legitimate_address_p): Do not assert that subregs satisfy
6107 register_no_elim_operand in DImode.
6108
6109 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
6110
6111 PR tree-optimization/49926
6112 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6113 in a chain doesn't have uses both inside and outside the loop.
6114
6115 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6116
6117 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6118 * config/avr/avr-devices.c (avr_mcu_types): Use it.
6119 * config/avr/avr-mcus.def (AVR_MCU): Use it.
6120 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6121 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6122 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6123 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6124 to detect if XJMP must not be skipped.
6125
6126 2011-08-02 Alan Modra <amodra@gmail.com>
6127
6128 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6129 Delete.
6130 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6131 (rs6000_emit_prologue): Don't prematurely return when
6132 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
6133 save_toc_in_prologue case.
6134 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6135 calls_alloca.
6136
6137 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6138
6139 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6140 * config/avr/predicates.md: Ditto.
6141 * config/avr/driver-avr.c: Ditto.
6142 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6143
6144 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6145
6146 * calls.c (emit_library_call_value_1): Declare size only if
6147 BLOCK_REG_PADDING is defined.
6148
6149 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6150
6151 PR target/49547
6152 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6153 (x86_64-*-*): Likewise.
6154 * config/i386/i386.opt (mlzcnt): New.
6155 * config/i386/abmintrin.h: File removed.
6156 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6157 * config/i386/lzcntintrin.h: ... here. New file.
6158 (__lzcnt): Rename to ...
6159 (__lzcnt32): ... this.
6160 * config/i386/bmiintrin.h (head): Update copyright year.
6161 (__lzcnt_u16): Removed.
6162 (__lzcnt_u32): Likewise.
6163 (__lzcnt_u64): Likewise.
6164 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6165 is defined, remove abmintrin.h.
6166 * config/i386/cpuid.h (bit_LZCNT): New.
6167 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6168 LZCNT feature.
6169 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6170 __LZCNT__ if needed.
6171 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6172 (ix86_option_override_internal): Handle LZCNT option.
6173 (ix86_valid_target_attribute_inner_p): Likewise.
6174 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6175 * config/i386/i386.h (TARGET_LZCNT): New.
6176 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6177 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6178 (clz<mode>2_lzcnt): Likewise.
6179 * doc/invoke.texi: Mention -mlzcnt option.
6180 * doc/extend.texi: Likewise.
6181
6182 2011-08-01 Julian Brown <julian@codesourcery.com>
6183
6184 * configure.ac (fixed-point): Add ARM support.
6185 * configure: Regenerate.
6186 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6187 (arm_set_fixed_optab_libfunc): New.
6188 (arm_set_fixed_conv_libfunc): New.
6189 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6190 ARM-specific names.
6191 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6192 return values in SImode.
6193 (arm_return_in_msb): Return fixed-point types in the msb.
6194 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6195 upwards.
6196 (arm_scalar_mode_supported_p): Support fixed-point modes.
6197 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6198 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6199 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6200 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6201 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6202 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6203 New mode iterators.
6204 (qaddsub_suf): New mode attribute.
6205 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6206 vector modes.
6207 * config/arm/predicates.md (sat_shift_operator): New predicate.
6208 * config/arm/arm-fixed.md: New.
6209 * config/arm/arm.md: Include arm-fixed.md.
6210 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6211
6212 2011-08-01 Julian Brown <julian@codesourcery.com>
6213
6214 * calls.c (emit_library_call_value_1): Support padding for libcall
6215 arguments and return values.
6216 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6217 downwards in big-endian mode.
6218
6219 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6220
6221 PR debug/49887
6222 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6223 * config/sol2-protos.h: Likewise.
6224 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6225 solaris_code_end.
6226 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6227 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6228 solaris_file_end.
6229 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6230
6231 2011-08-01 Julian Brown <julian@codesourcery.com>
6232
6233 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6234
6235 2011-08-01 Julian Brown <julian@codesourcery.com>
6236
6237 * final.c (output_addr_const): Print fixed-point constants as
6238 decimal not hex.
6239
6240 2011-08-01 Richard Guenther <rguenther@suse.de>
6241
6242 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6243 bitsiztype TYPE_MAX_VALUE.
6244
6245 2011-08-01 Julian Brown <julian@codesourcery.com>
6246
6247 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6248 comparison helpers.
6249
6250 2011-07-31 Richard Henderson <rth@redhat.com>
6251
6252 * config/h8300/crti.asm: Add flags to .section directive.
6253 * config/h8300/crtn.asm: Likewise.
6254
6255 2011-07-31 Richard Henderson <rth@redhat.com>
6256
6257 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6258 * tree.c (build_common_tree_nodes): Likewise.
6259
6260 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6261
6262 PR target/49880
6263 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6264 (divsi3_i1): Likewise.
6265
6266 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6267
6268 PR tree-optimization/49749
6269 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6270 (PHI_LOOP_BIAS): New macro.
6271 (phi_rank): New function.
6272 (loop_carried_phi): Likewise.
6273 (propagate_rank): Likewise.
6274 (get_rank): Add calls to phi_rank and propagate_rank.
6275
6276 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6277
6278 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6279 of TARGET_64BIT.
6280 (PTRDIFF_TYPE): Likewise.
6281
6282 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6283
6284 PR target/49920
6285 * config/i386/i386.md (strset): Do not expand strset_singleop
6286 when %eax or $edi are fixed.
6287 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6288 (*strsetsi_1): Ditto.
6289 (*strsethi_1): Ditto.
6290 (*strsetqi_1): Ditto.
6291 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6292 (*rep_stossi): Ditto.
6293 (*rep_stosqi): Ditto.
6294 (*strlenqi_1): Ditto.
6295 (cmpstrnsi): Also fail when %ecx is fixed.
6296 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6297 (*cmpstrnqi_1): Ditto.
6298 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6299 (*strmovsi_1): Ditto.
6300 (*strmovhi_1): Ditto.
6301 (*strmovqi_1): Ditto.
6302 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6303 (*rep_movsi): Ditto.
6304 (*rep_movqi): Ditto.
6305
6306 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6307
6308 PR target/47908
6309 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6310 Disable instruction scheduling for non-ColdFire targets.
6311 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6312
6313 2011-07-31 Revital Eres <revital.eres@linaro.org>
6314
6315 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6316 of anti-dep edge from a branch.
6317 (add_cross_iteration_register_deps): Create anti-dep edge from
6318 a branch.
6319
6320 2011-07-31 Revital Eres <revital.eres@linaro.org>
6321
6322 * modulo-sched.c: Change comment.
6323 (reset_sched_times): Fix print message.
6324 (print_partial_schedule): Add print info.
6325
6326 2011-07-31 Tom de Vries <tom@codesourcery.com>
6327
6328 PR middle-end/43513
6329 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6330 get_object_alignment and TYPE_ALIGN.
6331
6332 2011-07-30 Tom de Vries <tom@codesourcery.com>
6333
6334 PR middle-end/43513
6335 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6336 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6337
6338 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6339
6340 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6341 <sys/sbd.h>.
6342 (cpu_types): New array.
6343 (cputype): New function.
6344 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6345 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6346 * config.host: Also use driver-native.o, mips/x-native on
6347 mips-sgi-irix*.
6348 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6349 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6350 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6351
6352 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6353
6354 PR middle-end/49897
6355 PR middle-end/49898
6356 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6357 in nested parallel and outer is a gimple_reg, mark it as addressable
6358 and set its bit in task_shared_vars bitmap too.
6359
6360 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6361
6362 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6363
6364 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6365
6366 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6367 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6368 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6369 AMASK_LOCKPFTCHOK): Define.
6370 (host_detect_local_cpu): Remove buf, f, cpu_names.
6371 Define cpu_types, implver, amask.
6372 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6373 native CPU.
6374 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6375 alpha*-dec-osf*.
6376 * config/alpha/osf5.h [__alpha__ || __alpha]
6377 (host_detect_local_cpu): Declare.
6378 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6379 (DRIVER_SELF_SPECS): Define.
6380
6381 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6382
6383 PR target/47715
6384 * config/i386/i386.md (*load_tp_x32): New.
6385 (*load_tp_x32_zext): Ditto.
6386 (*add_tp_x32): Ditto.
6387 (*add_tp_x32_zext): Ditto.
6388 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6389 (*add_tp_<mode>): Ditto.
6390 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6391 ptr_mode and convert to Pmode if needed.
6392
6393 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6394
6395 PR target/49687
6396 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6397 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6398 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6399 Add X to register footprint: Clobber r26/r27.
6400
6401 2011-07-29 Richard Guenther <rguenther@suse.de>
6402
6403 * builtins.c (fold_builtin_signbit): Build the comparison
6404 with a proper type.
6405
6406 2011-07-29 Richard Guenther <rguenther@suse.de>
6407
6408 PR tree-optimization/49893
6409 * tree-predcom.c (suitable_reference_p): Volatile references
6410 are not suitable.
6411
6412 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6413
6414 PR target/49313
6415 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6416 (__ctzsi2): Result for 0 may be undefined.
6417 (__ctzhi2): Result for 0 may be undefined.
6418 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6419 (__popcountsi2): Ditto. And don't clobber r26.
6420 (__popcountdi2): Ditto. And don't clobber r27.
6421 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6422 (parityhi2): New expand.
6423 (paritysi2): New expand.
6424 (popcounthi2): New expand.
6425 (popcountsi2): New expand.
6426 (clzhi2): New expand.
6427 (clzsi2): New expand.
6428 (ctzhi2): New expand.
6429 (ctzsi2): New expand.
6430 (ffshi2): New expand.
6431 (ffssi2): New expand.
6432 (copysignsf3): New insn.
6433 (bswapsi2): New expand.
6434 (*parityhi2.libgcc): New insn.
6435 (*parityqihi2.libgcc): New insn.
6436 (*paritysihi2.libgcc): New insn.
6437 (*popcounthi2.libgcc): New insn.
6438 (*popcountsi2.libgcc): New insn.
6439 (*popcountqi2.libgcc): New insn.
6440 (*popcountqihi2.libgcc): New insn-and-split.
6441 (*clzhi2.libgcc): New insn.
6442 (*clzsihi2.libgcc): New insn.
6443 (*ctzhi2.libgcc): New insn.
6444 (*ctzsihi2.libgcc): New insn.
6445 (*ffshi2.libgcc): New insn.
6446 (*ffssihi2.libgcc): New insn.
6447 (*bswapsi2.libgcc): New insn.
6448
6449 2011-07-29 Richard Guenther <rguenther@suse.de>
6450
6451 * tree-vrp.c (get_value_range): Only set parameter default
6452 definitions to varying, leave others at undefined.
6453 (extract_range_from_binary_expr): Fix undefined handling.
6454 (vrp_visit_phi_node): Handle merged undefined state.
6455
6456 2011-07-29 Wei Guozhi <carrot@google.com>
6457
6458 PR rtl-optimization/49799
6459 * combine.c (make_compound_operation): Check if the bit field is valid
6460 before change it to bit field extraction.
6461
6462 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
6463
6464 PR rtl-optimization/49891
6465 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6466 newly created returnjumps.
6467
6468 2011-07-28 DJ Delorie <dj@redhat.com>
6469
6470 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6471 local frame in a naked function, and produce a suitable error for
6472 that specific case.
6473
6474 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6475 registers to be reloaded in HI classes when the target is HI.
6476
6477 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6478
6479 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6480 bound_one, bound_two.
6481
6482 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6483
6484 PR middle-end/48648
6485 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6486 CLAST assignments.
6487 (translate_clast): Same.
6488 (translate_clast_assignment): New.
6489
6490 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6491
6492 PR tree-optimization/49876
6493 * sese.c (rename_uses): Do not return false on gloog_error: set
6494 the new_expr to integer_zero_node and continue code generation.
6495 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6496
6497 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6498
6499 PR debug/49846
6500 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6501 arguments also check if they aren't initialized with a MODE_INT
6502 mode of the same size.
6503
6504 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
6505
6506 * expr.c (get_bit_range): Handle *MEM_REF's.
6507
6508 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
6509
6510 * rtlanal.c (tablejump_p): False for returns.
6511 * reorg.c (first_active_target_insn): New static function.
6512 (find_end_label): Set JUMP_LABEL for a new returnjump.
6513 (optimize_skip, get_jump_flags, rare_destination,
6514 mostly_true_jump, get_branch_condition,
6515 steal_delay_list_from_target, own_thread_p,
6516 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6517 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6518 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6519 * jump.c (delete_related_insns): Likewise.
6520 (jump_to_label_p): New function.
6521 (redirect_target): New static function.
6522 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
6523 (redirect_jump_1): Assert that the new label is nonnull.
6524 (redirect_jump): Likewise.
6525 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6526 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6527 exit block.
6528 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
6529 changed. Ensure that the right label is passed to redirect_jump.
6530 * function.c (emit_return_into_block,
6531 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6532 ret_rtx in their JUMP_LABEL.
6533 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6534 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6535 pass ret_rtx as label.
6536 * cfglayout.c (fixup_reorder_chain): Use
6537 force_nonfallthru_and_redirect rather than force_nonfallthru.
6538 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6539 * rtl.h (ANY_RETURN_P): New macro.
6540 (jump_to_label_p): Declare.
6541 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6542 JUMP_LABELs.
6543 (mark_target_live_regs): Likewise.
6544 * basic-block.h (force_nonfallthru_and_redirect): Declare.
6545 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6546 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6547 alpha_tablejump_best_label): Remove functions.
6548 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6549 alpha_tablejump_best_label): Remove declarations.
6550 * config/sh/sh.c (barrier_align, split_branches): Adjust for
6551 ret_rtx in JUMP_LABELs.
6552 * config/arm/arm.c (is_jump_table): Likewise.
6553
6554 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6555
6556 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6557 special predicate. Remove explicit mode checks.
6558
6559 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6560
6561 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6562 DW_AT_data_member_location containing just DW_OP_plus_uconst.
6563
6564 PR debug/49871
6565 * dwarf2out.c (size_of_die, value_format, output_die): Use
6566 DW_FORM_udata instead of DW_FORM_data[48] for
6567 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6568
6569 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6570
6571 * config/i386/i386.md (*tls_global_dynamic_64): Update
6572 length attribute.
6573
6574 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6575
6576 PR target/47715
6577 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6578 tls_symbolic_operand check. Update code sequence for TARGET_X32.
6579 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6580 (tls_dynamic_gnu2_64): Ditto.
6581 (*tls_dynamic_gnu2_lea_64): Ditto.
6582 (*tls_dynamic_gnu2_call_64): Ditto.
6583 (*tls_dynamic_gnu2_combine_64): Ditto.
6584
6585 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6586
6587 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6588
6589 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6590
6591 PR target/47364
6592 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6593
6594 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6595
6596 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6597 before the core constraints. Adjust attributes.
6598 ("*thumb2_movdf_vfp"): Likewise.
6599
6600 2011-07-28 Kai Tietz <ktietz@redhat.com>
6601
6602 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6603 (simplify_truth_ops_using_ranges): Likewise.
6604 (build_assert_expr_for): Likewise.
6605 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6606 and handle BIT_NOT_EXPR for truth-operation.
6607
6608 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6609
6610 PR target/49313
6611 Undo r176835 from trunk
6612 2011-07-27 Georg-Johann Lay
6613
6614 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6615
6616 PR target/49687
6617 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6618 Add _muluhisi3, _mulshisi3, _usmulhisi3.
6619 * config/avr/libgcc.S (__mulsi3): Rewrite.
6620 (__mulhisi3): Rewrite.
6621 (__umulhisi3): Rewrite.
6622 (__usmulhisi3): New.
6623 (__muluhisi3): New.
6624 (__mulshisi3): New.
6625 (__mulohisi3): New.
6626 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6627 declare.
6628 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6629 (pseudo_register_or_const_int_operand): New.
6630 (combine_pseudo_register_operand): New.
6631 (u16_operand): New.
6632 (s16_operand): New.
6633 (o16_operand): New.
6634 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6635 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6636 (any_extend, any_extend2): New code iterators.
6637 (extend_prefix): New code attribute.
6638 (mulsi3): Rewrite. Turn insn to expander.
6639 (mulhisi3): Ditto.
6640 (umulhisi3): Ditto.
6641 (usmulhisi3): New expander.
6642 (*mulsi3): New insn-and-split.
6643 (mulu<mode>si3): New insn-and-split.
6644 (muls<mode>si3): New insn-and-split.
6645 (mulohisi3): New insn-and-split.
6646 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6647 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6648 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6649 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6650 insn-and-split.
6651 (*mulsi3_call): Rewrite.
6652 (*mulhisi3_call): Rewrite.
6653 (*umulhisi3_call): Rewrite.
6654 (*usmulhisi3_call): New insn.
6655 (*muluhisi3_call): New insn.
6656 (*mulshisi3_call): New insn.
6657 (*mulohisi3_call): New insn.
6658 (extendqihi2): Use combine_pseudo_register_operand as predicate
6659 for operand 1.
6660 (extendqisi2): Ditto.
6661 (zero_extendqihi2): Ditto.
6662 (zero_extendqisi2): Ditto.
6663 (zero_extendhisi2): Ditto.
6664 (extendhisi2): Ditto. Don't early-clobber operand 0.
6665
6666 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6667
6668 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6669
6670 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6671
6672 PR tree-optimization/49471
6673 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6674 iv only when the largest type is unsigned. Do not call
6675 lang_hooks.types.type_for_size.
6676
6677 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6678
6679 PR middle-end/45450
6680 * graphite-poly.c (apply_poly_transforms): Disable legality check
6681 after an openscop read.
6682
6683 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6684
6685 PR middle-end/47691
6686 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6687 copy_bb_and_scalar_dependences.
6688 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
6689 (graphite_copy_stmts_from_block): Update call to rename_uses.
6690 (copy_bb_and_scalar_dependences): Update call to
6691 graphite_copy_stmts_from_block.
6692 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6693
6694 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
6695
6696 PR target/49313
6697 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6698 (__ctzsi2): Result for 0 may be undefined.
6699 (__ctzhi2): Result for 0 may be undefined.
6700 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6701 (__popcountsi2): Ditto. And don't clobber r26.
6702 (__popcountdi2): Ditto. And don't clobber r27.
6703 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6704 (parityhi2): New expand.
6705 (paritysi2): New expand.
6706 (popcounthi2): New expand.
6707 (popcountsi2): New expand.
6708 (clzhi2): New expand.
6709 (clzsi2): New expand.
6710 (ctzhi2): New expand.
6711 (ctzsi2): New expand.
6712 (ffshi2): New expand.
6713 (ffssi2): New expand.
6714 (copysignsf3): New insn.
6715 (bswapsi2): New expand.
6716 (*parityhi2.libgcc): New insn.
6717 (*parityqihi2.libgcc): New insn.
6718 (*paritysihi2.libgcc): New insn.
6719 (*popcounthi2.libgcc): New insn.
6720 (*popcountsi2.libgcc): New insn.
6721 (*popcountqi2.libgcc): New insn.
6722 (*popcountqihi2.libgcc): New insn-and-split.
6723 (*clzhi2.libgcc): New insn.
6724 (*clzsihi2.libgcc): New insn.
6725 (*ctzhi2.libgcc): New insn.
6726 (*ctzsihi2.libgcc): New insn.
6727 (*ffshi2.libgcc): New insn.
6728 (*ffssihi2.libgcc): New insn.
6729 (*bswapsi2.libgcc): New insn.
6730
6731 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6732
6733 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6734 the mode of symbolic_opreand RTXes.
6735
6736 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6737
6738 * config/i386/predicates.md (x86_64_movabs_operand): Return false
6739 for pic_32bit_operand RTXes.
6740 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6741 in DImode.
6742
6743 2011-07-27 Kai Tietz <ktietz@redhat.com>
6744
6745 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6746 for 32-bit, too.
6747 (ix86_handle_abi_attribute): Allow function attributes
6748 ms_abi/sysv_abi in 32-bit mode, too.
6749 * doc/extend.texi: Adjust attribute documentation.
6750
6751 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6752 expression handling.
6753 (and_var_with_comparison_1): Likewise.
6754
6755 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
6756
6757 * params.h (ALLOW_STORE_DATA_RACES): New.
6758 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6759 * Makefile.in (expr.o): Depend on PARAMS_H.
6760 * machmode.h (get_best_mode): Add argument.
6761 * fold-const.c (optimize_bit_field_compare): Add argument to
6762 get_best_mode.
6763 (fold_truthop): Same.
6764 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6765 * expr.c (emit_group_store): Same.
6766 (copy_blkmode_from_reg): Same.
6767 (write_complex_part): Same.
6768 (optimize_bitfield_assignment_op): Add argument.
6769 Add argument to get_best_mode.
6770 (get_bit_range): New.
6771 (expand_assignment): Calculate maxbits and pass it down accordingly.
6772 (store_field): New argument.
6773 (expand_expr_real_2): New argument to store_field. Include params.h.
6774 * expr.h (store_bit_field): New argument.
6775 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6776 into account maxbits.
6777 * calls.c (store_unaligned_arguments_into_pseudos): New argument
6778 to store_bit_field.
6779 * expmed.c (store_bit_field_1): New argument. Use it.
6780 (store_bit_field): Same.
6781 (store_fixed_bit_field): Same.
6782 (store_split_bit_field): Same.
6783 (extract_bit_field_1): Pass new argument to get_best_mode.
6784 (extract_bit_field): Same.
6785 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6786 * doc/invoke.texi: Document parameter allow-store-data-races.
6787
6788 2011-07-27 Jakub Jelinek <jakub@redhat.com>
6789
6790 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6791
6792 2011-07-27 Kai Tietz <ktietz@redhat.com>
6793
6794 * tree-vrp.c (extract_range_from_binary_expr): Remove
6795 TRUTH-binary cases and add new bitwise-cases.
6796 (extract_range_from_assignment): Likewise.
6797 (register_edge_assert_for_1): Likeiwise.
6798 (register_edge_assert_for): Likewise.
6799 (simplify_truth_ops_using_ranges): Likewise.
6800 (simplify_stmt_using_ranges): Likewise.
6801
6802 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
6803
6804 PR target/47372
6805 * config/i386/i386.c (ix86_delegitimize_address): Call
6806 simplify_gen_subreg for PIC with mode of x only if modes of
6807 x and orig_x are different.
6808
6809 2011-07-26 Jakub Jelinek <jakub@redhat.com>
6810
6811 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6812 to GC allocated copy of the string.
6813 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6814 before .debug_line, not after it.
6815
6816 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6817
6818 PR middle-end/47046
6819 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6820 evolution_function_is_affine_p on CHREC_RIGHT.
6821
6822 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6823
6824 * tree-data-ref.c (max_stmt_executions_tree): Do not call
6825 lang_hooks.types.type_for_size.
6826
6827 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6828
6829 PR middle-end/47653
6830 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6831 loops using wrapping semantics.
6832
6833 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6834
6835 PR middle-end/48805
6836 * tree-scalar-evolution.c (instantiate_scev_r): Return
6837 chrec_dont_know for ADDR_EXPR.
6838
6839 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6840 H.J. Lu <hongjiu.lu@intel.com>
6841
6842 PR target/47369
6843 PR target/49853
6844 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6845 if legitimize_tls_address returned operand in wrong mode. Allow
6846 SImode and DImode symbolic operand for PIC. Call convert_to_mode
6847 if legitimize_pic_address returned operand in wrong mode.
6848
6849 2011-07-26 Martin Jambor <mjambor@suse.cz>
6850
6851 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6852 return false for invariants.
6853
6854 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6855
6856 * config/i386/i386.md (add->lea splitter): Implement using SWI
6857 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
6858 (add->lea zext splitter): Change operand 2 predicate to
6859 x86_64_nonmemory_operand.
6860
6861 2011-07-26 Richard Guenther <rguenther@suse.de>
6862
6863 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6864 frequency makes everything hot.
6865
6866 2011-07-26 Richard Guenther <rguenther@suse.de>
6867
6868 PR tree-optimization/49840
6869 * tree-vrp.c (range_fits_type_p): Properly handle full
6870 double-int precision.
6871
6872 2011-07-26 Martin Jambor <mjambor@suse.cz>
6873
6874 PR bootstrap/49786
6875 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6876 counts.
6877 (update_specialized_profile): Likewise.
6878
6879 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6880 H.J. Lu <hongjiu.lu@intel.com>
6881
6882 PR target/47381
6883 PR target/49832
6884 PR target/49833
6885 * config/i386/i386.md (i): Change SImode attribute to "e".
6886 (g): Change SImode attribute to "rme".
6887 (di): Change SImode attribute to "nF".
6888 (general_operand): Change SImode attribute to x86_64_general_operand.
6889 (general_szext_operand): Change SImode attribute to
6890 x86_64_szext_general_operand.
6891 (immediate_operand): Change SImode attribute to
6892 x86_64_immediate_operand.
6893 (nonmemory_operand): Change SImode attribute to
6894 x86_64_nonmemory_operand.
6895 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6896 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
6897 (*lea_1): Use SWI48 mode iterator.
6898 (*lea_1_zext): New insn pattern.
6899 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6900 (*bt<mode>): Ditto.
6901 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6902 Update operand constraints.
6903 (addsi_1_zext): Ditto.
6904 (*add<mode>2): Ditto.
6905 (*addsi_3_zext): Ditto.
6906 (*subsi_1_zext): Ditto.
6907 (*subsi_2_zext): Ditto.
6908 (*subsi_3_zext): Ditto.
6909 (*addsi3_carry_zext): Ditto.
6910 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6911 (*mulsi3_1_zext): Ditto.
6912 (*andsi_1): Ditto.
6913 (*andsi_1_zext): Ditto.
6914 (*andsi_2_zext): Ditto.
6915 (*<any_or:code>si_1_zext): Ditto.
6916 (*<any_or:code>si_2_zext): Ditto.
6917 (*test<mode>_1): Use <general_operand> predicate for operand 1.
6918 (*and<mode>_2): Ditto.
6919 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
6920 (add->lea splitter): Check operand modes in insn constraint. Extend
6921 operands less than SImode wide to SImode.
6922 (add->lea zext splitter): Do not extend input operands to DImode.
6923 (*lea_general_1): Handle only QImode and HImode operands.
6924 (*lea_general_2): Ditto.
6925 (*lea_general_3): Ditto.
6926 (*lea_general_1_zext): Remove.
6927 (*lea_general_2_zext): Ditto.
6928 (*lea_general_3_zext): Ditto.
6929 (*lea_general_4): Check operand modes in insn constraint. Extend
6930 operands less than SImode wide to SImode.
6931 (ashift->lea splitter): Ditto.
6932 * config/i386/i386.c (ix86_print_operand_address): Print address
6933 registers with 'q' modifier on 64bit targets.
6934 * config/i386/predicates.md (pic_32bit_opreand): Define as special
6935 predicate. Reject non-SI and non-DI modes.
6936
6937 2011-07-25 Andrew Pinski <apinski@cavium.com>
6938
6939 PR tree-opt/49671
6940 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6941 TREE_THIS_NOTRAP into the inner most MEM_REF.
6942 Always copy TREE_THIS_VOLATILE.
6943 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6944 arguments are not volatile references.
6945
6946 2011-07-25 Richard Henderson <rth@redhat.com>
6947
6948 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6949 * final.c (final_scan_insn): Don't test for it.
6950 (rest_of_clean_state): Likewise.
6951
6952 2011-07-25 Richard Henderson <rth@redhat.com>
6953
6954 PR debug/49841
6955 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6956 (emit_frame_save): Likewise.
6957 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6958 insn onto a dummy blockage insn after the join label.
6959
6960 2011-07-25 Richard Henderson <rth@redhat.com>
6961
6962 * dwarf2cfi.c (dw_trace_info): Add ID member.
6963 (get_trace_index): Remove. Change users to use ID member.
6964 (before_next_cfi_note): New.
6965 (connect_traces): Remove unreachable traces before the main loop.
6966 Look across one trace and generate remember/restore_state if needed.
6967
6968 2011-07-25 Richard Henderson <rth@redhat.com>
6969
6970 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6971
6972 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
6973
6974 * genattr.c (write_upcase, gen_attr <enum definition writing>):
6975 Move to ...
6976 * genattr-common.c ... here.
6977 (main): Call gen_attr.
6978 * optc-gen.awk: Make generated program include insn-attr-common.h .
6979 * Makefile.in (oprions.o): Depend on insn-attr-common.h
6980
6981 2011-07-25 Anatoly Sokolov <aesok@post.ru>
6982
6983 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6984 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6985 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6986 m32c_print_operand, m32c_print_operand_address): Remove.
6987 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6988 Change return type to bool. Change argument type to bool.
6989 (m32c_print_operand, m32c_print_operand_address): Make static.
6990 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6991 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6992
6993 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6994
6995 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6996 attributes): Document mmap.
6997
6998 2011-07-25 Anatoly Sokolov <aesok@post.ru>
6999
7000 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7001 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7002 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7003 mmix_print_operand, mmix_print_operand_address): Remove.
7004 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7005 Change return type to bool. Change argument type to bool.
7006 (mmix_print_operand, mmix_print_operand_address): Make static.
7007 (mmix_intval, mmix_output_condition): Change 'x' argument type
7008 to const_rtx.
7009 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7010 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7011
7012 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
7013
7014 PR target/39386
7015 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7016 shift counter for x << x and x >> x shifts.
7017
7018 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7019
7020 PR target/47124
7021 * config.gcc: Reject *-*-solaris2 configuration.
7022
7023 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
7024
7025 PR tree-optimization/49809
7026 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7027 gimple_get_lhs instead of gimple_assign_lhs.
7028
7029 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7030
7031 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7032
7033 2011-07-25 Richard Guenther <rguenther@suse.de>
7034
7035 PR tree-optimization/49822
7036 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7037 more. Make sure to preserve stmts with side-effects. Properly
7038 handle virtual defs, follow a longer def chain.
7039
7040 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
7041
7042 PR plugins/45348
7043 PR plugins/48425
7044 PR plugins/46577
7045 * Makefile.in: Do not flatten c-family directory when installing
7046 plugin headers.
7047
7048 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
7049
7050 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7051 original nodes if we are dealing with virtual clones.
7052
7053 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
7054
7055 * common/config/c6x/c6x-common.c: New file.
7056
7057 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7058
7059 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7060
7061 2011-07-25 Richard Guenther <rguenther@suse.de>
7062
7063 PR tree-optimization/49715
7064 * tree-vrp.c: Include expr.h and optabs.h.
7065 (range_fits_type_): New function.
7066 (simplify_float_conversion_using_ranges): Likewise.
7067 (simplify_stmt_using_ranges): Call it.
7068 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7069 * optabs.c (can_float_p): Export.
7070 * optabs.h (can_float_p): Declare.
7071
7072 2011-07-25 Richard Guenther <rguenther@suse.de>
7073
7074 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7075 (get_value_range): For out-of-range SSA names or names created
7076 after propagation return a read-only varying range.
7077 (dump_all_value_ranges): Adjust.
7078 (vrp_initialize): Likewise.
7079 (vrp_finalize): Likewise.
7080
7081 2011-07-24 Richard Henderson <rth@redhat.com>
7082
7083 PR debug/49831
7084 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
7085 them entirely.
7086
7087 2011-07-24 Richard Henderson <rth@redhat.com>
7088
7089 PR debug/49825
7090 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7091 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7092
7093 2011-07-24 Richard Henderson <rth@redhat.com>
7094
7095 PR debug/49827
7096 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7097
7098 2011-07-24 Richard Henderson <rth@redhat.com>
7099
7100 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7101 Zero args_size for abnormal edges. Adjust all callers.
7102
7103 2011-07-24 Richard Henderson <rth@redhat.com>
7104
7105 PR debug/49825
7106 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7107
7108 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
7109
7110 PR bootstrap/49835
7111 * collect2.c (demangle_flag): Removed.
7112
7113 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
7114
7115 * configure.ac (demangler_in_ld): Default to yes.
7116 * configure: Regenerated.
7117 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7118 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7119 --no-demangle options straight through to ld. When
7120 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7121 way that has the intended effect on Windows.
7122
7123 2011-07-23 Richard Henderson <rth@redhat.com>
7124
7125 * dwarf2cfi.c: Include basic-block.h.
7126 (dw_label_info): Remove.
7127 (trace_work_list, trace_index): New.
7128 (remember_row, emit_cfa_remember): Remove.
7129 (dw_trace_info_hash, dw_trace_info_eq): New.
7130 (get_trace_index, get_trace_info): New.
7131 (save_point_p): New.
7132 (free_cfi_row): Remove.
7133 (add_cfi): Do not emit DW_CFA_remember_state.
7134 (cfa_row_equal_p): New.
7135 (barrier_args_size): Remove.
7136 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7137 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7138 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7139 (dwarf2out_cfi_begin_epilogue): Remove.
7140 (dwarf2out_frame_debug_restore_state): Remove.
7141 (connect_traces, create_pseudo_cfg): New.
7142 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7143 * Makefile.in (dwarf2cfi.o): Update.
7144
7145 2011-07-23 Richard Henderson <rth@redhat.com>
7146
7147 * dwarf2cfi.c (dw_trace_info): New.
7148 (dw_label_info): New.
7149 (cie_return_save): New.
7150 (cur_trace): New.
7151 (queued_args_size): Rename from args_size. Update all users.
7152 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7153 (def_cfa_1): Use cur_trace instead of cfa_*.
7154 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7155 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7156 (dwarf2out_frame_debug_expr): Likewise.
7157 (create_cie_data): Split out from ...
7158 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7159
7160 2011-07-23 Richard Henderson <rth@redhat.com>
7161
7162 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7163 Update all users to match.
7164 (execute_dwarf2_frame): Free reg_saved_in_data.
7165
7166 2011-07-23 Richard Henderson <rth@redhat.com>
7167
7168 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7169 (queued_reg_saves): Don't GTY. Change to a VEC.
7170 (queue_reg_save): Update to match.
7171 (dwarf2out_flush_queued_reg_saves): Likewise.
7172 (clobbers_queued_reg_save): Likewise.
7173 (reg_saved_in): Likewise.
7174 (execute_dwarf2_frame): Free queued_reg_saves.
7175
7176 2011-07-23 Richard Henderson <rth@redhat.com>
7177
7178 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7179
7180 2011-07-23 Richard Henderson <rth@redhat.com>
7181
7182 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7183 (dwarf2out_args_size): ... here.
7184 (add_cfi_restore): Split out from ...
7185 (dwarf2out_frame_debug_cfa_restore): ... here.
7186 (def_cfa_0): Split out from ...
7187 (def_cfa_1): ... here.
7188 (cfi_oprnd_equal_p, cfi_equal_p): New.
7189 (change_cfi_row): New.
7190 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7191 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7192 (output_cfis): Remove.
7193 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7194 (dwarf2out_switch_text_section): Don't call output_cfis.
7195 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7196 * dwarf2out.h: Update decls.
7197 (enum dw_val_class): Add dw_val_class_none.
7198
7199 2011-07-23 Richard Henderson <rth@redhat.com>
7200
7201 * dwarf2cfi.c (update_row_reg_save): New.
7202 (dwarf2out_frame_debug_cfa_expression): Use it.
7203 (dwarf2out_frame_debug_cfa_restore): Likewise.
7204 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7205
7206 2011-07-23 Richard Henderson <rth@redhat.com>
7207
7208 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7209
7210 2011-07-23 Richard Henderson <rth@redhat.com>
7211
7212 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7213 (cie_cfi_row): New.
7214 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7215 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7216 (cur_row, remember_row): New.
7217 (def_cfa_1): Use cur_row instead of the old_* variables.
7218 (dwarf2out_frame_debug_restore_state): Similarly.
7219 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7220 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7221 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7222 (dwarf2out_frame_debug_cfa_offset): Likewise.
7223 (dwarf2out_frame_debug_expr): Likewise.
7224 (execute_dwarf2_frame): Set up cur_row.
7225 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7226
7227 2011-07-23 Richard Henderson <rth@redhat.com>
7228
7229 * basic-block.h (EDGE_PRESERVE): New.
7230 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7231 * bb-reorder.c: Include except.h.
7232 (fix_up_crossing_landing_pad): New.
7233 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7234 landing pads in the right partition. Duplicate as necessary.
7235 (partition_hot_cold_basic_blocks): Fix up DF info after
7236 duplicating landing pads.
7237 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7238 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7239 is set properly. Validate that EH edges are not CROSSING.
7240 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7241 (dw2_build_landing_pads): ... here.
7242 (convert_to_eh_region_ranges): Remove code to fixup crossing
7243 landing pads.
7244 * except.h (expand_dw2_landing_pad_for_region): Declare.
7245 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7246
7247 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7248
7249 PR target/49816
7250 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7251
7252 2011-07-22 Jason Merrill <jason@redhat.com>
7253
7254 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7255
7256 2011-07-22 Richard Henderson <rth@redhat.com>
7257
7258 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7259
7260 2011-07-22 Richard Henderson <rth@redhat.com>
7261
7262 * jump.c (maybe_propagate_label_ref): Split out of...
7263 (mark_all_labels): ... here. Do not attempt label_ref
7264 propagation while in cfglayout mode.
7265
7266 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7267
7268 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7269 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7270 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7271 (dwarf2out_define): If the vector is empty and
7272 lineno is 0, emit a dummy entry first.
7273 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7274 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7275 optimize_macinfo_range): New functions.
7276 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7277 mergeable, optimize longer strings using
7278 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7279 optimize longer sequences of define/undef ops from headers
7280 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7281 emit a section headers.
7282 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7283 and macinfo_section_label to DEBUG_MACRO_SECTION
7284 resp. DEBUG_MACRO_SECTION_LABEL.
7285 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7286 instead of DW_AT_macro_info.
7287
7288 PR other/32998
7289 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7290 options.
7291 * dwarf2out.c: Include opts.h.
7292 (dchar_p): New typedef. Define heap VEC for it.
7293 (producer_string): New variable.
7294 (gen_producer_string): New function.
7295 (gen_compile_unit_die): Use it.
7296 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7297 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7298 * doc/invoke.texi: Document -grecord-gcc-switches and
7299 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7300 to -frecord-gcc-switches description.
7301
7302 2011-07-22 Jason Merrill <jason@redhat.com>
7303
7304 PR c++/30112
7305 * c-decl.c (c_linkage_bindings): Define.
7306
7307 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7308
7309 PR debug/49815
7310 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7311
7312 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7313
7314 * config/i386/i386.c (ix86_option_override_internal): Disallow
7315 MS ABI in x32 mode.
7316 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7317 only for TARGET_LP64.
7318 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7319
7320 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7321
7322 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7323 avoid warnings when GCC is built with a C++ compiler.
7324
7325 2011-07-22 Martin Jambor <mjambor@suse.cz>
7326
7327 PR lto/49796
7328 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7329 if decl node is in another partition, call cgraph_get_node only once.
7330
7331 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7332
7333 * config.gcc (x86_64-*-linux*): Set
7334 default_gnu_indirect_function to yes.
7335
7336 2011-07-22 Richard Guenther <rguenther@suse.de>
7337
7338 PR tree-optimization/45819
7339 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7340 preserve volatile and notrap flags.
7341
7342 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7343 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7344
7345 PR bootstrap/49794
7346 * configure.ac: Test AM_ICONV with CXX.
7347 * configure: Regenerate.
7348 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7349
7350 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7351
7352 PR bootstrap/49797
7353 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7354 (set_cloog_options): Use it.
7355
7356 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7357
7358 PR c++/49756
7359 * gcc.c (main): Call stack_limit_increase (64MB).
7360 * toplev.c (toplev_main): Likewise.
7361
7362 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7363
7364 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7365 instead of force_reg.
7366
7367 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7368
7369 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7370 needed and use force_reg after convert.
7371 (ix86_expand_call): Likewise.
7372 (ix86_expand_special_args_builtin): Likewise.
7373 (ix86_expand_builtin): Likewise.
7374
7375 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7376
7377 PR middle-end/47654
7378 PR middle-end/49649
7379 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7380 in parameter. Initialize v1 and v2 based on the values returned
7381 by clast_name_to_lb_ub.
7382 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7383 values.
7384 (type_for_clast_bin): Same.
7385 (type_for_clast_expr): Same.
7386 (type_for_clast_eq): Update calls to type_for_clast_expr.
7387 (type_for_clast_for): Same.
7388 (build_iv_mapping): Same.
7389 * graphite-ppl.h (value_min): New.
7390
7391 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7392
7393 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7394 types whenever possible.
7395
7396 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7397
7398 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7399 and ub fields.
7400 (new_clast_name_index): Add lb and ub parameters.
7401 (free_clast_name_index): New.
7402 (clast_name_to_lb_ub): New.
7403 (save_clast_name_index): Add lb and ub parameters.
7404 (compute_bounds_for_param): New.
7405 (type_for_level): Removed.
7406 (type_for_clast_for): Removed level parameter. Do not call
7407 type_for_level.
7408 (graphite_create_new_loop): Store the lb and ub for the clast_name
7409 of the iterator of the loop that has been generated.
7410 (graphite_create_new_loop_guard): Remove parameter level.
7411 (create_params_index): Store the lb and ub of each parameter.
7412 (gloog): Use free_clast_name_index. Pass to create_params_index
7413 the current scop.
7414
7415 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7416
7417 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7418 (max_precision_type): Inline max_signed_precision_type.
7419 (type_for_clast_red): Use max_precision_type.
7420 (type_for_clast_bin): Same.
7421 (type_for_clast_for): Same.
7422
7423 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7424
7425 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7426 type_for_interval.
7427 (gcc_type_for_value): Renamed type_for_value.
7428 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7429 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7430 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7431 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7432 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7433 (graphite_translate_clast_equation): Update calls.
7434 (compute_type_for_level): Renamed type_for_level.
7435 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7436 (build_iv_mapping): Update calls.
7437 (graphite_create_new_loop_guard): Same.
7438
7439 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7440
7441 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7442 comment.
7443
7444 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7445
7446 * graphite-clast-to-gimple.c (struct ivs_params): New.
7447 (clast_name_to_gcc): Use ivs_params to pass around parameters.
7448 (clast_to_gcc_expression): Same.
7449 (clast_to_gcc_expression_red): Same.
7450 (gcc_type_for_clast_term): Same.
7451 (gcc_type_for_clast_expr): Same.
7452 (gcc_type_for_clast_red): Same.
7453 (gcc_type_for_clast_bin): Same.
7454 (gcc_type_for_clast_eq): Same.
7455 (graphite_translate_clast_equation): Same.
7456 (graphite_create_guard_cond_expr): Same.
7457 (graphite_create_new_guard): Same.
7458 (graphite_create_new_loop): Same.
7459 (build_iv_mapping): Same.
7460 (translate_clast_user): Same.
7461 (graphite_create_new_loop_guard): Same.
7462 (translate_clast): Same.
7463 (translate_clast_for_loop): Same.
7464 (translate_clast_for): Same.
7465 (translate_clast_guard): Same.
7466 (initialize_cloog_names): Fix typo.
7467 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7468
7469 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7470
7471 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7472 (new_clast_name_index): Add level parameter.
7473 (clast_name_to_level): New.
7474 (save_clast_name_index): Add level parameter.
7475 (newivs_to_depth_to_newiv): Removed.
7476 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7477 (graphite_create_new_loop): Add level parameter. Pass level to
7478 save_clast_name_index.
7479 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7480 (create_params_index): Pass level to save_clast_name_index.
7481
7482 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7483
7484 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7485 recompute type, lb, and ub. Get them from...
7486 (graphite_create_new_loop_guard): ...here. Pass in parameter
7487 pointers to type, lb, and ub.
7488 (translate_clast_for_loop): Update function calls.
7489 (translate_clast_for): Same.
7490
7491 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7492
7493 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7494 psct_dynamic_dim.
7495 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7496 (gcc_type_for_iv_of_clast_loop): Update use of level.
7497 (gloog): Start counting nesting level from 0.
7498 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7499 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7500 psct_dynamic_dim on level.
7501
7502 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7503
7504 * config/i386/i386.c (ix86_legitimize_address): Convert to
7505 Pmode if needed.
7506
7507 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7508
7509 * config/i386/i386.c (function_value_64): Always return pointers
7510 in Pmode.
7511 (ix86_promote_function_mode): New.
7512 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7513
7514 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7515
7516 PR tree-optimization/49749
7517 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7518 remove no-longer-used maxrank variable.
7519
7520 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7521
7522 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7523
7524 2011-07-21 Jason Merrill <jason@redhat.com>
7525
7526 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7527 * recog.h (struct insn_data_d): Check it instead of
7528 HAVE_DESIGNATED_INITIALIZERS.
7529 * genoutput.c (output_insn_data): Likewise.
7530
7531 2011-07-21 Richard Guenther <rguenther@suse.de>
7532
7533 PR tree-optimization/49770
7534 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7535 valueized any operand. Renamed from ...
7536 (valueize_refs): ... this. New wrapper around valueize_refs_1.
7537 (valueize_shared_reference_ops_from_ref): Return whether we
7538 valueized any operand.
7539 (vn_reference_lookup): Only when we valueized any operand
7540 use the valueized reference for alias analysis. Do not preserve
7541 the original reference tree in this case.
7542
7543 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
7544
7545 * config/i386/i386.c (ix86_decompose_address): Reject all but
7546 register operands and subregs of DImode hard registers in index.
7547
7548 2011-07-21 Kai Tietz <ktietz@redhat.com>
7549
7550 * fold-const.c (fold_unary_loc): Preserve indirect
7551 comparison cast to none-boolean type.
7552 * tree-ssa.c (useless_type_conversion_p): Preserve cast
7553 from/to boolean-type.
7554 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7555 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7556 * tree-cfg.c (verify_gimple_comparison): Check result
7557 type of comparison expression.
7558 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7559 of condition result and disallow type-cast sinking into comparison.
7560
7561 2011-07-21 Richard Guenther <rguenther@suse.de>
7562
7563 * tree-ssa-forwprop.c (combine_conversions): Return whether
7564 we have to run cfg-cleanup. Properly remove dead stmts.
7565 (ssa_forward_propagate_and_combine): Adjust.
7566
7567 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
7568
7569 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7570
7571 2011-07-21 Kai Tietz <ktietz@redhat.com>
7572
7573 * tree-ssa-propagate.c (substitute_and_fold): Use
7574 do_dce flag to deside, if BB's statements are scanned
7575 in last to first, or first to last order.
7576
7577 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7578
7579 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7580
7581 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
7582 Uros Bizjak <ubizjak@gmail.com>
7583 Richard Henderson <rth@redhat.com>
7584
7585 * config/i386/constraints.md (w): New.
7586
7587 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7588 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7589
7590 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7591 instead of TARGET_64BIT.
7592
7593 * config/i386/i386.md (indirect_jump): Replace
7594 nonimmediate_operand with indirect_branch_operand.
7595 (*indirect_jump): Likewise. Replace constraint "m" with "w".
7596 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7597 Convert operand 0 to Pmode for x32 if not PIC.
7598 (*tablejump_1): Replace nonimmediate_operand with
7599 indirect_branch_operand. Replace constraint "m" with "w".
7600 (*call_vzeroupper): Replace constraint "m" with "w".
7601 (*call): Likewise.
7602 (*call_rex64_ms_sysv_vzeroupper): Likewise.
7603 (*call_rex64_ms_sysv): Likewise.
7604 (*call_value_vzeroupper): Likewise.
7605 (*call_value): Likewise.
7606 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7607 (*call_value_rex64_ms_sysv): Likewise.
7608 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7609
7610 * config/i386/predicates.md (indirect_branch_operand): New.
7611 (call_insn_operand): Support x32.
7612
7613 2011-07-20 Michael Eager <eager@eagercon.com>
7614
7615 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7616
7617 2011-07-20 Richard Henderson <rth@redhat.com>
7618
7619 * cfg.c (dump_bb_info): Dump basic_block->flags.
7620 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7621
7622 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7623
7624 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7625 of DImode hard registers in index.
7626 (ix86_legitimate_address_p): Allow subregs of base and index to span
7627 more than a word. Assert that subregs of base and index satisfy
7628 register_no_elim_operand predicates. Reject addresses where
7629 base and index have different modes.
7630
7631 2011-07-20 Robert Millan <rmh@gnu.org>
7632
7633 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7634
7635 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7636
7637 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7638 removing now-unnecessary assignment.
7639
7640 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7641
7642 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7643 memory address space to the type's address space.
7644
7645 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7646
7647 PR target/36467
7648 PR target/49687
7649 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7650 and expand appropriately if there is a CONST_INT in operand2.
7651 (usmulqihi3): New insn.
7652 (*sumulqihi3): New insn.
7653 (*osmulqihi3): New insn.
7654 (*oumulqihi3): New insn.
7655 (*muluqihi3.uconst): New insn_and_split.
7656 (*muluqihi3.sconst): New insn_and_split.
7657 (*mulsqihi3.sconst): New insn_and_split.
7658 (*mulsqihi3.uconst): New insn_and_split.
7659 (*mulsqihi3.oconst): New insn_and_split.
7660 (*ashifthi3.signx.const): New insn_and_split.
7661 (*ashifthi3.signx.const7): New insn_and_split.
7662 (*ashifthi3.zerox.const): New insn_and_split.
7663 (mulsqihi3): New insn.
7664 (muluqihi3): New insn.
7665 (muloqihi3): New insn.
7666 * config/avr/predicates.md (const_2_to_7_operand): New.
7667 (const_2_to_6_operand): New.
7668 (u8_operand): New.
7669 (s8_operand): New.
7670 (o8_operand): New.
7671 (s9_operand): New.
7672 (register_or_s9_operand): New.
7673
7674 2011-07-20 Kai Tietz <ktietz@redhat.com>
7675
7676 * builtins.c (fold_builtin_expect): See through the cast
7677 from truthvalue_type_node to long.
7678
7679 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7680
7681 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7682 where we can use them from the standard and altivec instruction
7683 sets, instead of always using the 3 operand VSX forms that require
7684 the destination to overlap one of the inputs.
7685 (vsx_fms*): Ditto.
7686 (vsx_fnma*): Ditto.
7687 (vsx_fnms*): Ditto.
7688
7689 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7690 for DF types.
7691 (fmsdf4_fpr): Ditto.
7692 (nfmadf4_fpr): Ditto.
7693 (nfmsdf4_fpr): Ditto.
7694
7695 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
7696
7697 * genrecog.c (make_insn_sequence): Correct position numbering
7698 when filtering out match_scratch and match_dup.
7699
7700 2011-07-20 Richard Guenther <rguenther@suse.de>
7701
7702 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7703 against already removed statements.
7704 (forward_propagate_into_comparison): Remove dead defining stmts.
7705 (forward_propagate_into_gimple_cond): Likewise.
7706 (forward_propagate_into_cond): Simplify.
7707 (ssa_forward_propagate_and_combine): Handle changed cfg from
7708 forward_propagate_into_comparison.
7709 * tree-ssa-phiopt.c (conditional_replacement): Use proper
7710 locations for newly built statements.
7711
7712 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7713
7714 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7715
7716 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7717
7718 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7719 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7720
7721 2011-07-20 Richard Guenther <rguenther@suse.de>
7722
7723 PR middle-end/18908
7724 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7725 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7726 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
7727
7728 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
7729
7730 * config/frv/frv.c (frv_register_move_cost): Define explicitly
7731 costs for subclasses of GR_REGS.
7732
7733 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7734
7735 PR target/49780
7736 * config/i386/predicates.md (no_seg_addres_operand): No more special.
7737 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7738 of DImode hard registers in base.
7739 (ix86_legitimate_address_p): Allow SImode and DImode base and index
7740 registers.
7741
7742 2011-07-20 Richard Guenther <rguenther@suse.de>
7743
7744 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7745 (unify_nodes): Deal with that.
7746 (solve_graph): Likewise.
7747
7748 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
7749
7750 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7751 canonicalize left operand from ZERO_EXTEND to AND.
7752
7753 2011-07-20 Anatoly Sokolov <aesok@post.ru>
7754
7755 * target.def (class_max_nregs): New hook.
7756 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7757 * doc/tm.texi: Regenerate.
7758 * targhooks.c (default_class_max_nregs): New function.
7759 * targhooks.h (default_class_max_nregs): Declare.
7760 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7761 x_ira_reg_class_min_nregs arrays to unsigned char.
7762 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7763 hook instead of CLASS_MAX_NREGS macro.
7764 * reginfo.c (restore_register_info): Ditto.
7765 * ira-conflicts.c (process_regs_for_copy): Use
7766 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7767 Change type rclass and aclass vars to reg_class_t.
7768 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7769 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7770 reg_class_t.
7771 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7772 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7773
7774 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7775 * config/i386/i386.c (ix86_class_max_nregs): New function.
7776 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7777 instead of CLASS_MAX_NREGS macro.
7778 (TARGET_CLASS_MAX_NREGS): Define.
7779 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7780 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7781 * config/avr/avr.c (class_max_nregs): Remove function.
7782 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7783 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7784 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7785 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7786 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7787 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7788 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7789 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7790 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7791 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7792 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7793 * config/score/score.h (CLASS_MAX_NREGS): Remove.
7794 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7795 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7796 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7797
7798 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
7799
7800 * cif-code.def (OVERWRITABLE): Fix typo and move around.
7801 (TARGET_OPTIMIZATION_MISMATCH): Delete.
7802 (EH_PERSONALITY): Fix typo.
7803 (NON_CALL_EXCEPTIONS): Fix message.
7804 (OPTIMIZATION_MISMATCH): Adjust message.
7805 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7806
7807 2011-07-19 Ian Lance Taylor <iant@google.com>
7808
7809 * doc/install.texi (Configuration): Document
7810 --enable-build-poststage1-with-cxx.
7811
7812 2011-07-19 Robert Millan <rmh@gnu.org>
7813
7814 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
7815 (GLIBC_DYNAMIC_LINKER): Remove.
7816
7817 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
7818 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7819 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7820 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7821 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7822 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7823
7824 * config/mips/linux.h: Remove everything except for ...
7825 (GLIBC_DYNAMIC_LINKER): ... this macro.
7826
7827 * config/mips/linux64.h: Remove everything except for ...
7828 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7829 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7830 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7831 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7832 (GNU_USER_LINK_EMULATIONN32): New macros.
7833
7834 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7835 Use the new headers.
7836
7837 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7838
7839 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7840 Add offset_known_p and size_known_p fields.
7841 (MEM_OFFSET_KNOWN_P): Update accordingly.
7842 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7843 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7844 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7845 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7846 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7847 (init_emit_regs): Likewise.
7848
7849 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7850
7851 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7852 (MEM_OFFSET): Change from returning an rtx to returning a
7853 HOST_WIDE_INT.
7854 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7855 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7856 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7857 (clear_mem_offset): Declare.
7858 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7859 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7860 MEM_OFFSET to get a HOST_WIDE_INT offset.
7861 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
7862 (adjust_offset_for_component_ref): Take a bool "known_p"
7863 parameter and a HOST_WIDE_INT "offset" parameter.
7864 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7865 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7866 than an rtx. Use clear_mem_offset to clear the offset.
7867 * cfgcleanup.c (merge_memattrs): Likewise.
7868 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7869 * function.c (assign_parm_find_stack_rtl): Likewise.
7870 (assign_parm_setup_stack): Likewise.
7871 * print-rtl.c (print_rtx): Likewise.
7872 * reload.c (find_reloads_subreg_address): Likewise.
7873 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7874 * var-tracking.c (INT_MEM_OFFSET): Likewise.
7875 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7876 (get_mem_align_offset): Likewise.
7877 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7878 (clear_mem_offset): New function.
7879 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7880 offset rather than an rtx. Assume both the expressio and offset
7881 are available.
7882 (r10k_needs_protection_p_1): Update accordingly, checking the
7883 expression and offset availability here instead.
7884
7885 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7886
7887 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7888 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7889 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7890 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7891 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7892 (clear_mem_size): Declare.
7893 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7894 (clear_mem_size): New function.
7895 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7896 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7897 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
7898 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
7899 to clear the size.
7900 (nonoverlapping_memrefs_p): Likewise.
7901 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7902 (expand_builtin_init_trampoline): Likewise.
7903 * calls.c (compute_argument_addresses): Likewise.
7904 * cfgcleanup.c (merge_memattrs): Likewise.
7905 * dce.c (find_call_stack_args): Likewise.
7906 * dse.c (record_store, scan_insn): Likewise.
7907 * dwarf2out.c (dw_sra_loc_expr): Likewise.
7908 * expr.c (emit_block_move_hints): Likewise.
7909 * function.c (assign_parm_find_stack_rtl): Likewise.
7910 * print-rtl.c (print_rtx): Likewise.
7911 * reload.c (find_reloads_subreg_address): Likewise.
7912 * rtlanal.c (may_trap_p_1): Likewise.
7913 * var-tracking.c (track_expr_p): Likewise.
7914 * varasm.c (assemble_trampoline_template): Likewise.
7915 * config/arm/arm.c (arm_print_operand): Likewise.
7916 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7917 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7918 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7919 (expand_constant_setmem_prologue): Likewise.
7920 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7921 * config/rs6000/rs6000.c (expand_block_move): Likewise.
7922 (adjacent_mem_locations): Likewise.
7923 * config/s390/s390.c (s390_expand_setmem): Likewise.
7924 (s390_expand_insv): Likewise.
7925 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7926 (*extendqi<mode>2_short_displ): Likewise.
7927 * config/sh/sh.c (expand_block_move): Likewise.
7928 * config/sh/sh.md (extv, extzv): Likewise.
7929
7930 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7931
7932 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7933 (mem_attrs_htab_eq): ...here.
7934 (find_mem_attrs): Replace with...
7935 (set_mem_attrs): ...this function. Take a mem_attrs structure
7936 rather than individual fields.
7937 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7938 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7939 (set_mem_size, change_address, adjust_address_1, offset_address)
7940 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7941 Update accordingly.
7942
7943 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7944
7945 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7946 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7947 Provide a dummy definition of MEM_ADDR_SPACE for generators.
7948 (target_rtl): Add x_mode_mem_attrs.
7949 (mode_mem_attrs): New macro.
7950 (get_mem_attrs): New function.
7951 * emit-rtl.c (get_mem_attrs): Rename to...
7952 (find_mem_attrs): ...this.
7953 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7954 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7955 (set_mem_size, change_address, adjust_address_1, offset_address)
7956 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7957 Update accordingly.
7958 (init_emit_regs): Initialize mode_mem_attrs.
7959
7960 2011-07-19 Richard Guenther <rguenther@suse.de>
7961
7962 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7963 TRUTH_*_EXPR handling.
7964 * tree-ssa-operands.c (get_expr_operands): Likewise.
7965 * tree-ssa-pre.c (fully_constant_expression): Likewise.
7966 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7967 Likewise.
7968 (is_and_or_or): Likewise.
7969 (is_norm_cond_subset_of): Likewise.
7970
7971 2011-07-19 Richard Guenther <rguenther@suse.de>
7972
7973 * tree.h (fold_build_pointer_plus_loc): New helper function.
7974 (fold_build_pointer_plus_hwi_loc): Likewise.
7975 (fold_build_pointer_plus): Define.
7976 (fold_build_pointer_plus_hwi): Likewise.
7977 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7978 (fold_builtin_memory_op): Likewise.
7979 (fold_builtin_stpcpy): Likewise.
7980 (fold_builtin_memchr): Likewise.
7981 (fold_builtin_strstr): Likewise.
7982 (fold_builtin_strchr): Likewise.
7983 (fold_builtin_strrchr): Likewise.
7984 (fold_builtin_strpbrk): Likewise.
7985 (fold_builtin_strcat): Likewise.
7986 (expand_builtin_memory_chk): Likewise.
7987 (fold_builtin_memory_chk): Likewise.
7988 * c-typeck.c (build_unary_op): Likewise.
7989 * cgraphunit.c (thunk_adjust): Likewise.
7990 * fold-const.c (build_range_check): Likewise.
7991 (fold_binary_loc): Likewise.
7992 * omp-low.c (extract_omp_for_data): Likewise.
7993 (expand_omp_for_generic): Likewise.
7994 (expand_omp_for_static_nochunk): Likewise.
7995 (expand_omp_for_static_chunk): Likewise.
7996 * tree-affine.c (add_elt_to_tree): Likewise.
7997 * tree-data-ref.c (split_constant_offset_1): Likewise.
7998 * tree-loop-distribution.c (generate_memset_zero): Likewise.
7999 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8000 * tree-predcom.c (ref_at_iteration): Likewise.
8001 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8002 (add_to_parts): Likewise.
8003 (create_mem_ref): Likewise.
8004 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8005 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8006 (number_of_iterations_le): Likewise.
8007 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8008 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8009 (vect_create_addr_base_for_vector_ref): Likewise.
8010 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8011 (vect_create_cond_for_alias_checks): Likewise.
8012 * tree-vrp.c (extract_range_from_assert): Likewise.
8013 * config/alpha/alpha.c (alpha_va_start): Likewise.
8014 (alpha_gimplify_va_arg_1): Likewise.
8015 * config/i386/i386.c (ix86_va_start): Likewise.
8016 (ix86_gimplify_va_arg): Likewise.
8017 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8018 * config/mep/mep.c (mep_expand_va_start): Likewise.
8019 (mep_gimplify_va_arg_expr): Likewise.
8020 * config/mips/mips.c (mips_va_start): Likewise.
8021 (mips_gimplify_va_arg_expr): Likewise.
8022 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8023 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8024 (rs6000_gimplify_va_arg): Likewise.
8025 * config/s390/s390.c (s390_va_start): Likewise.
8026 (s390_gimplify_va_arg): Likewise.
8027 * config/sh/sh.c (sh_va_start): Likewise.
8028 (sh_gimplify_va_arg_expr): Likewise.
8029 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8030 * config/spu/spu.c (spu_va_start): Likewise.
8031 (spu_gimplify_va_arg_expr): Likewise.
8032 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8033 Likewise.
8034 (xstormy16_gimplify_va_arg_expr): Likewise.
8035 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8036 (xtensa_gimplify_va_arg_expr): Likewise.
8037
8038 2011-07-19 Richard Guenther <rguenther@suse.de>
8039
8040 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8041 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8042 handling.
8043
8044 PR middle-end/18908
8045 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8046 result of BIT_*_EXPR to bitfield precision.
8047
8048 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
8049
8050 PR tree-optimization/49742
8051 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8052 as a potential write.
8053
8054 2011-07-19 Richard Guenther <rguenther@suse.de>
8055
8056 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8057 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8058 (forward_propagate_comparison): Simplify, remove obsolete code.
8059
8060 2011-07-19 Richard Guenther <rguenther@suse.de>
8061
8062 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8063 BIT_XOR_EXPR, same as the RTL expander does.
8064 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8065 (verify_gimple_assign_unary): Likewise.
8066 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8067 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8068 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8069
8070 2011-07-19 Jakub Jelinek <jakub@redhat.com>
8071
8072 PR tree-optimization/49768
8073 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8074 if offset is smaller than bitoffset, but offset+size is bigger
8075 than bitoffset.
8076
8077 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
8078
8079 PR tree-optimization/49771
8080 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8081 zero step, set segment length to the size of the data-ref's type.
8082
8083 2011-07-18 Martin Jambor <mjambor@suse.cz>
8084
8085 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8086 comments.
8087 (ipcp_values_pool): Declare.
8088 (ipcp_sources_pool): Likewise.
8089 (ipcp_lattice): Changed to forward declaration.
8090 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8091 cannot_devirtualize.
8092 (ipa_node_params): New fields descriptors, lattices, known_vals,
8093 clone_for_all_contexts and node dead, removed fields params and
8094 count_scale.
8095 (ipa_set_param_count): Removed.
8096 (ipa_get_param_count): Made to work with descriptors vector.
8097 (ipa_get_param): Updated.
8098 (ipa_param_cannot_devirtualize_p): Removed.
8099 (ipa_param_types_vec_empty): Likewise.
8100 (ipa_set_param_used): New function.
8101 (ipa_get_param_used): Updated to use descriptors vector.
8102 (ipa_func_list): Removed.
8103 (ipa_init_func_list): Removed declaration.
8104 (ipa_push_func_to_list_1): Likewise.
8105 (ipa_pop_func_from_list): Likewise.
8106 (ipa_push_func_to_list): Removed.
8107 (ipa_lattice_from_jfunc): Remove declaration.
8108 (ipa_get_jf_pass_through_result): Declare.
8109 (ipa_get_jf_ancestor_result): Likewise.
8110 (ipa_value_from_jfunc): Likewise.
8111 (ipa_get_lattice): Update.
8112 (ipa_lat_is_single_const): New function.
8113 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8114 (ipa_init_func_list): Likewise.
8115 (ipa_pop_func_from_list): Likewise.
8116 (ipa_get_param_decl_index): Fix coding style.
8117 (count_formal_params): Removed.
8118 (count_formal_params_1): Renamed to count_formal_params.
8119 (ipa_populate_param_decls): Update to use descriptors vector.
8120 (ipa_initialize_node_params): Likewise.
8121 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8122 (ipa_analyze_params_uses): Likewise.
8123 (ipa_free_node_params_substructures): Likewise and free also lattices
8124 and known values.
8125 (duplicate_array): Removed.
8126 (ipa_edge_duplication_hook): Add the new edge to the list of edge
8127 clones.
8128 (ipa_node_duplication_hook): Update to use new lattices.
8129 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8130 (ipa_free_all_structures_after_iinln): Likewise.
8131 (ipa_write_node_info): Update to use new lattices.
8132 (ipa_read_node_info): Likewise.
8133 (ipa_get_jf_pass_through_result): New function.
8134 (ipa_get_jf_ancestor_result): Likewise.
8135 (ipa_value_from_jfunc): Likewise.
8136 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8137 * ipa-cp.c: Reimplemented.
8138 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8139 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8140 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8141 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8142 * doc/invoke.texi (devirt-type-list-size): Removed description.
8143 (ipa-cp-value-list-size): Added description.
8144
8145 2011-07-18 Richard Henderson <rth@redhat.com>
8146
8147 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8148 before calling create_basic_block.
8149
8150 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8151
8152 PR middle-end/49675
8153 * tree.c (build_common_builtin_nodes): Register
8154 __builtin_return_address, __cyg_profile_func_enter
8155 and __cyg_profile_func_exit.
8156
8157 2011-07-18 Richard Henderson <rth@redhat.com>
8158
8159 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8160 (add_labels_and_missing_jumps): ... here.
8161 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8162
8163 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8164
8165 PR target/47744
8166 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8167 of DImode hard registers in PLUS address chains.
8168
8169 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8170
8171 PR bootstrap/49769
8172 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8173 (alpha*-*-freebsd*): Likewise.
8174 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8175 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8176 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8177 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8178 (ia64*-*-elf*): Remove extra_parts.
8179 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8180 (sparc64-*-linux*): Likewise.
8181 (sparc64-*-freebsd*): Likewise.
8182
8183 Revert:
8184 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8185 (ia64*-*-linux*): Likewise.
8186 (mips64*-*-linux*): Likewise.
8187 (mips*-*-linux*): Likewise.
8188
8189 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8190
8191 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8192
8193 2011-07-18 Richard Guenther <rguenther@suse.de>
8194
8195 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8196 when building new trees.
8197
8198 2011-07-18 Richard Guenther <rguenther@suse.de>
8199
8200 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8201 expansion result to bitfield precision if required.
8202
8203 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8204
8205 * config.gcc (i[3456x]86-*-netware*): Remove.
8206
8207 * gthr-nks.h: Remove.
8208 * configure.ac (enable_threads): Remove nks.
8209 * configure: Regenerate.
8210
8211 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8212 reference.
8213 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8214 <netware.h> reference.
8215
8216 * config/i386/netware-libgcc.c,
8217 gcc/config/i386/netware-libgcc.def,
8218 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8219 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8220 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8221 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8222
8223 * doc/extend.texi (Function Attributes,
8224 callee_pop_aggregate_return): Remove i?86-netware reference.
8225 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8226
8227 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8228
8229 PR target/49746
8230 Revert:
8231 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8232
8233 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8234 patterns.
8235
8236 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8237
8238 PR middle-end/49732
8239 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8240
8241 2011-07-16 Matthias Klose <doko@ubuntu.com>
8242
8243 * doc/install.texi: Document --enable-static-libjava.
8244
8245 2011-07-15 Richard Henderson <rth@redhat.com>
8246
8247 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8248 Replace all three arguments by returning a VEC of edges.
8249 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8250 pointers and counts.
8251 (fix_edges_for_rarely_executed_code): Merge ...
8252 (rest_of_handle_partition_blocks): ... into...
8253 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8254 any work was performed.
8255 (pass_partition_blocks): Clear todo_flags_finish.
8256
8257 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8258 Jakub Jelinek <jakub@redhat.com>
8259 Jonathan Wakely <jwakely.gcc@gmail.com>
8260
8261 PR libstdc++/49745
8262 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8263 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8264
8265 2011-07-15 Jason Merrill <jason@redhat.com>
8266
8267 PR testsuite/49741
8268 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8269 rather than --tool_opts.
8270
8271 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8272
8273 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8274 corresponding gtype.state.
8275
8276 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8277
8278 PR target/49723
8279 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8280
8281 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8282
8283 PR target/48220
8284 * doc/md.texi (Standard Names): Document window_save.
8285 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8286 expand_debug_expr and expand_debug_source_expr. If the target has
8287 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8288 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8289 SSA_NAME_VAR is a parameter.
8290 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8291 * var-tracking.c (parm_reg_t): New type and associated vector type.
8292 (windowed_parm_regs): New variable.
8293 (adjust_insn): If the target has a window_save instruction and this
8294 is the instruction, make its effect on parameter registers explicit.
8295 (next_non_note_insn_var_location): New function.
8296 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8297 (vt_add_function_parameter): If the target has a window_save insn,
8298 adjust the incoming RTL and record that in windowed_parm_regs.
8299 (vt_finalize): Free windowed_parm_regs.
8300
8301 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8302
8303 * doc/invoke.texi (C6X Options): New section.
8304 * doc/md.texi (TI C6X family): New section.
8305 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8306 tic6x-*-uclinux.
8307 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8308 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8309 Provide C6X definitions.
8310 * config/c6x/c6x.md: New file.
8311 * config/c6x/constraints.md: New file.
8312 * config/c6x/predicates.md: New file.
8313 * config/c6x/c6x-sched.md.in: New file.
8314 * config/c6x/c6x-sched.md: New file.
8315 * config/c6x/gensched.sh: New file.
8316 * config/c6x/c6x-mult.md.in: New file.
8317 * config/c6x/genmult.sh: New file.
8318 * config/c6x/c6x-mult.md: New file.
8319 * config/c6x/sync.md: New file.
8320 * config/c6x/c6x-protos.h: New file.
8321 * config/c6x/sfp-machine.h: New file.
8322 * config/c6x/c6x.c: New file.
8323 * config/c6x/c6x.h: New file.
8324 * config/c6x/crti.s: New file.
8325 * config/c6x/crtn.s: New file.
8326 * config/c6x/lib1funcs.asm: New file.
8327 * config/c6x/c6x-modes.def: New file.
8328 * config/c6x/genopt.sh: New file.
8329 * config/c6x/c6x.opt: New file.
8330 * config/c6x/c6x-tables.opt: New file.
8331 * config/c6x/c6x-opts.h: New file.
8332 * config/c6x/c6x-isas.def: New file.
8333 * config/c6x/elf.h: New file.
8334 * config/c6x/elf-common.h: New file.
8335 * config/c6x/uclinux-elf.h: New file.
8336 * config/c6x/t-c6x: New file.
8337 * config/c6x/t-c6x-elf: New file.
8338 * config/c6x/t-c6x-uclinux: New file.
8339 * config/c6x/t-c6x-softfp: New file.
8340 * config/c6x/gtd.c: New file.
8341 * config/c6x/gtf.c: New file.
8342 * config/c6x/ltd.c: New file.
8343 * config/c6x/ltf.c: New file.
8344 * config/c6x/ged.c: New file.
8345 * config/c6x/gef.c: New file.
8346 * config/c6x/led.c: New file.
8347 * config/c6x/lef.c: New file.
8348 * config/c6x/eqd.c: New file.
8349 * config/c6x/eqf.c: New file.
8350 * config/c6x/libgcc-c6xeabi.ver: New file.
8351
8352 Revert
8353 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8354 PR rtl-optimization/11320
8355 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8356 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8357 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8358 current_sched_info->compute_jump_reg_dependencies. Record which
8359 registers are used and which registers are set by the jump.
8360 Clear deps->reg_conditional_sets after a barrier.
8361 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8362 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8363 (init_deps): Initialize reg_conditional_sets.
8364 (free_deps): Clear reg_conditional_sets.
8365 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8366 Mark registers live on entry of the fallthrough block and conditionally
8367 set as set by the jump. Mark registers live on entry of non-fallthrough
8368 blocks as used by the jump.
8369 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8370 Mark new parameters as unused.
8371
8372 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8373
8374 PR tree-opt/49309
8375 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8376 Use fold_build2_loc instead of build2.
8377 Use the correct type for the new tree.
8378
8379 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8380
8381 PR rtl-optimization/11320
8382 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8383 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8384
8385 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8386
8387 PR target/49487
8388 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8389 of REG.
8390 (*rotw<mode>): Use const_int_operand for operand2.
8391 Use match_scatch for operand3.
8392 (*rotb<mode>): Ditto
8393 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8394
8395 2011-07-14 Richard Guenther <rguenther@suse.de>
8396
8397 PR tree-optimization/49651
8398 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8399 handle dereferences with subvariables.
8400
8401 2011-07-14 Richard Guenther <rguenther@suse.de>
8402
8403 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8404 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8405
8406 2011-07-14 Richard Guenther <rguenther@suse.de>
8407
8408 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8409 not bool_var when folding bool_var != 1 or bool_var == 0.
8410
8411 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8412
8413 * haifa-sched.c (schedule_insns): Remove outdated comment.
8414 (schedule_block): When computing a known value for TODO_SPEC,
8415 just set it rather than using logical operations.
8416 (try_ready): Likewise. Use a local variable rather than a
8417 pointer to TODO_SPEC. Reorder an if statement to move the
8418 easy case to the then block.
8419 * sched-deps.c (dep_spec_p): New static function.
8420 (update_dep): Use it to decide whether to call
8421 change_spec_dep_to_hard.
8422 (get_back_and_forw_lists): Use it.
8423 (sd_resolve_dep): Likewise.
8424 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8425 (haifa_note_mem_dep): Likewise.
8426 (check_dep): Likewise.
8427 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8428 (sched_free_deps): Free in two passes.
8429
8430 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8431
8432 PR middle-end/49736
8433 * expr.c (all_zeros_p): Undo bogus part of last change.
8434
8435 2011-07-14 Matthias Klose <doko@ubuntu.com>
8436
8437 * doc/extend.texi (optimize attribute): Fix typo.
8438
8439 2011-07-14 Richard Guenther <rguenther@suse.de>
8440
8441 * gimplify.c (gimplify_expr): Only do required conversions.
8442
8443 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8444
8445 PR target/43746
8446 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8447 i.e. use default_elf_select_section.
8448 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8449 (READONLY_DATA_SECTION_ASM_OP): Remove.
8450 (TARGET_ASM_NAMED_SECTION): Move from here...
8451 * config/avr/avr.c: ...to here.
8452 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8453 (avr_asm_named_section): Make static.
8454
8455 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8456
8457 PR bootstrap/49739
8458 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8459 and crtfastmath.o for Linux/x86.
8460
8461 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8462
8463 * haifa-sched.c: Include "hashtab.h"
8464 (sched_no_dce): New global variable.
8465 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8466 SHADOW_P): New macros.
8467 (last_clock_var, cycle_issued_insns): Move declarations.
8468 (must_backtrack): New static variable.
8469 (struct delay_pair): New structure.
8470 (delay_htab, delay_htab_i2): New static variables.
8471 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8472 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8473 functions.
8474 (dep_cost_1): If delay pairs exist, try to look up the insns and
8475 use the correct pair delay if we find them.
8476 (rank-for_schedule): Tweak priority for insns that must be scheduled
8477 soon to avoid backtracking.
8478 (queue_insn): Detect conditions which force backtracking.
8479 (ready_add): Likewise.
8480 (struct sched_block_state): Add member shadows_only_p.
8481 (struct haifa_save_data): New structure.
8482 (backtrack_queue): New static variable.
8483 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8484 unschedule_insns_until, restore_last_backtrack_point,
8485 free_topmost_backtrack_point, free_backtrack_queue,
8486 estimate_insn_tick, estimate_shadow_tick): New functions.
8487 (prune_ready_list): New arg shadows_only_p. All callers changed.
8488 If true, remove everything that isn't SHADOW_P. Look up delay
8489 pairs and estimate ticks to avoid scheduling the first insn too early.
8490 (verify_shadows): New function.
8491 (schedule_block): Add machinery to enable backtracking.
8492 (sched_init): Take sched_no_dce into account when setting
8493 DF_LR_RUN_DCE.
8494 (free_delay_pairs): New function.
8495 (init_h_i_d): Initialize INSN_EXACT_TICK.
8496 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8497 * sched-deps.c (sd_unresolve_dep): New function.
8498 * sched-int. (struct haifa_sched_info): New fields save_state
8499 and restore_state.
8500 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8501 feeds_backtrack_insn and shadow_p.
8502 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8503 (sched_no_dce): Declare variable.
8504 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8505 sd_unresolve_dep): Declare functions.
8506 * modulo-sched.c (sms_sched_info): Clear the two new fields.
8507 * sched-rgn.c (rgn_const_sched_info): Likewise.
8508 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8509 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8510 (ebb_sched_info): Add them for the two new fields.
8511 (add_deps_for_risky_insns): Call add_delay_dependencies.
8512
8513 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8514
8515 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8516 Rename -mr11.
8517 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8518 (rs6000_call_indirect_aix): Ditto.
8519 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8520 (call_indirect_aix<ptrsize>_internal): Ditto.
8521 (call_indirect_aix<ptrsize>_nor11): Ditto.
8522 (call_indirect_aix<ptrsize>_internal2): Ditto.
8523 (call_value_indirect_aix<ptrsize>): Ditto.
8524 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8525 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8526 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8527 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8528
8529 2011-07-13 Jason Merrill <jason@redhat.com>
8530
8531 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8532
8533 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8534
8535 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8536 * config/spu/spu.md ("clrsb<mode>2"): New expander.
8537
8538 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
8539
8540 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8541 * configure: Regenerate.
8542
8543 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8544
8545 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8546 (asm_file_start): Remove.
8547 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8548 free_bb_for_insn around code that modifies insns before
8549 restarting df analysis.
8550
8551 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8552
8553 PR target/49541
8554 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
8555 (LINK_SPEC): ... here.
8556
8557 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8558
8559 * haifa-sched.c (struct sched_block_state): New.
8560 (schedule_block): Move some local variables into such a structure.
8561
8562 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8563
8564 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8565 * config/i386/t-crtpc: Remove.
8566 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8567 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8568 tmake_file.
8569 (x86_64-*-darwin*): Likewise.
8570 (i[34567]86-*-linux*): Likewise.
8571 (x86_64-*-linux*): Likewise.
8572
8573 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8574 Handle -mpc32, -mpc64, -mpc80.
8575
8576 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8577
8578 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8579 * config/alpha/t-crtfm: Remove.
8580 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8581 * config/i386/t-crtfm: Remove.
8582 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8583 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8584 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8585 * config/sparc/t-crtfm: Remove.
8586
8587 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8588 (alpha*-*-freebsd*): Likewise.
8589 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8590 (x86_64-*-darwin*): Likewise.
8591 (i[34567]86-*-linux*): Likewise.
8592 (x86_64-*-linux*): Likewise.
8593 (x86_64-*-mingw*): Likewise.
8594 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8595 (ia64*-*-freebsd*): Likewise.
8596 (ia64*-*-linux*): Likewise.
8597 (mips64*-*-linux*): Likewise.
8598 (mips*-*-linux*): Likewise.
8599 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8600 (sparc64-*-linux*): Likewise.
8601 (sparc64-*-freebsd*): Likewise.
8602
8603 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8604
8605 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8606 * config/darwin-crt3.c: Move to ../libgcc/config.
8607 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8608 ($(T)crt3$(objext)): Remove.
8609 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8610 ($(T)crt2$(objext)): Remove.
8611 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8612 (powerpc64-*-darwin*): Likewise.
8613
8614 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8615
8616 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8617
8618 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8619 (addsi_1_zext): This.
8620
8621 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8622
8623 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8624 * doc/tm.texi: Regenerate.
8625 * target.def (mergeable_rodata_prefix): New defhookpod.
8626 * varasm.c (mergeable_string_section, mergeable_constant_section):
8627 Use it. Allocate name with alloca.
8628
8629 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8630
8631 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8632
8633 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8634
8635 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8636 overlap check.
8637
8638 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8639
8640 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
8641 (count_type_elements): Delete.
8642 (complete_ctor_at_level_p): Declare.
8643 * expr.c (flexible_array_member_p): New function, split out from...
8644 (count_type_elements): ...here. Make static. Replace allow_flexarr
8645 parameter with for_ctor_p. When for_ctor_p is true, return the
8646 number of elements that should appear in the top-level constructor,
8647 otherwise return an estimate of the number of scalars.
8648 (categorize_ctor_elements): Replace p_must_clear with p_complete.
8649 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
8650 (complete_ctor_at_level_p): New function, borrowing union logic
8651 from old categorize_ctor_elements_1.
8652 (mostly_zeros_p): Return true if the constructor is not complete.
8653 (all_zeros_p): Update call to categorize_ctor_elements.
8654 * gimplify.c (gimplify_init_constructor): Update call to
8655 categorize_ctor_elements. Don't call count_type_elements.
8656 Unconditionally prevent clearing for variable-sized types,
8657 otherwise rely on categorize_ctor_elements to detect
8658 incomplete initializers.
8659
8660 2011-07-13 Richard Guenther <rguenther@suse.de>
8661
8662 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8663 the final type is integral.
8664
8665 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8666
8667 * sched-int.h (struct _dep): Add member cost.
8668 (DEP_COST, UNKNOWN_DEP_COST): New macros.
8669 * sched-deps.c (init_dep_1): Initialize DEP_COST.
8670 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8671 (sched_change_pattern): Reset it for dependent insns.
8672
8673 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8674
8675 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8676 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8677 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8678 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8679 (CRT0_S, MCRT0_S): Remove.
8680 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8681 Remove.
8682 (s-crt0): Remove.
8683 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8684
8685 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8686
8687 * cse.c (insert_with_costs): Put semi-colon after empty loop body
8688 on the next line.
8689 * emit-rtl.c (push_to_sequence): Likewise.
8690 * haifa-sched.c (max_issue): Likewise.
8691 * matrix-reorg.c (add_allocation_site): Likewise.
8692 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8693 * reload.c (alternative_allows_const_pool_ref): Likewise.
8694 * sched-rgn.c (rgn_add_block): Likewise.
8695 (rgn_fix_recovery_cfg): Likewise.
8696 * tree.c (attribute_list_contained): Likewise.
8697
8698 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
8699
8700 * config/i386/i386.c: Tidy processor feature bitmasks.
8701 (m_P4_NOCONA): New.
8702
8703 2011-07-12 Andrew Pinski <pinskia@gmail.com>
8704
8705 PR rtl-opt/49474
8706 * cprop.c (find_implicit_sets): Correct the condition.
8707
8708 2011-07-12 Richard Henderson <rth@redhat.com>
8709
8710 PR target/49713
8711 * dwarf2out.h (dwarf_frame_regnum): Remove.
8712 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
8713 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
8714 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8715 (execute_dwarf2_frame): Initialize them.
8716 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8717 users of the macros with the variables.
8718 (expand_builtin_dwarf_sp_column): Revert last change.
8719 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
8720 result of DWARF_FRAME_REGNUM into a local variable.
8721
8722 2011-07-12 Richard Henderson <rth@redhat.com>
8723
8724 PR target/49714
8725 * config/i386/i386.c (x86_output_mi_thunk): Use
8726 machopic_indirect_call_target instead of machopic_indirection_name
8727 directly.
8728
8729 2011-07-12 Laurent GUERBY <laurent@guerby.net>
8730 Eric Botcazou <ebotcazou@adacore.com>
8731
8732 * prefix.h: Wrap up in extern "C" block.
8733
8734 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
8735
8736 AMD bdver2 Enablement
8737 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8738 (case ${target}): Add bdver2.
8739 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8740 -march=native recognize bdver2 processors.
8741 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8742 bdver2 def_and_undef
8743 * config/i386/i386.c (struct processor_costs bdver2_cost): New
8744 bdver2 cost table.
8745 (m_BDVER2): New definition.
8746 (m_AMD_MULTIPLE): Includes m_BDVER2.
8747 (initial_ix86_tune_features): Add bdver2 tuning.
8748 (processor_target_table): Add bdver2 entry.
8749 (static const char *const cpu_names): Add bdver2 entry.
8750 (ix86_option_override_internal): Add bdver2 instruction sets.
8751 (ix86_issue_rate): Add bdver2.
8752 (ix86_adjust_cost): Add bdver2.
8753 (has_dispatch): Add bdver2.
8754 * config/i386/i386.h (TARGET_BDVER2): New definition.
8755 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8756 (enum processor_type): Add PROCESSOR_BDVER2.
8757 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8758 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8759 description.
8760
8761 2011-07-12 Richard Henderson <rth@redhat.com>
8762
8763 PR target/49714
8764 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8765 destination address in memory on some paths.
8766
8767 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
8768
8769 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8770 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8771 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8772 * function.c (locate_and_pad_parm): Take it into account.
8773 * target.def (function_arg_round_boundary): New hook.
8774 * targhooks.c (default_function_arg_round_boundary): New function.
8775 * targhooks.h (default_function_arg_round_boundary): Declare.
8776 * doc/tm.texi: Regenerate.
8777
8778 2011-07-12 Richard Guenther <rguenther@suse.de>
8779
8780 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8781 Do not perform no-op changes.
8782
8783 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
8784
8785 * config/arm/predicates.md (neon_struct_operand): Make a normal
8786 predicate.
8787 (neon_struct_or_register_operand): New predicate.
8788 * config/arm/neon.md (movmisalign<mode>): Replace predicates
8789 with neon_struct_or_register_operand.
8790 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8791 neon_struct_operand instead of memory_operand.
8792
8793 2011-07-12 Martin Jambor <mjambor@suse.cz>
8794
8795 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8796 * cgraph.c (cgraph_get_node_or_alias): Removed.
8797 (change_decl_assembler_name): Changed all calls to
8798 cgraph_get_node_or_alias to a call to cgraph_get_node.
8799 (cgraph_make_decl_local): Likewise.
8800 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8801 * varasm.c (default_binds_local_p_1): Likewise.
8802 (decl_binds_to_current_def_p): Likewise.
8803
8804 2011-07-12 Jakub Jelinek <jakub@redhat.com>
8805
8806 PR tree-optimization/49712
8807 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8808
8809 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
8810
8811 * genautomata.c (add_arc): Return void. All callers changed.
8812 (make_automaton): Remove dead code.
8813
8814 2011-07-11 Richard Henderson <rth@redhat.com>
8815
8816 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8817 (DW_FRAME_POINTER_REGNUM): New.
8818 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8819 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8820 (dwf_regno): New.
8821 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8822 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8823 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8824 Use it.
8825 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8826 * dwarf2out.h (dwarf_frame_regnum): New.
8827 (struct cfa_loc): Document the domain of the reg member.
8828
8829 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
8830
8831 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8832 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
8833
8834 2011-07-11 Jakub Jelinek <jakub@redhat.com>
8835
8836 PR debug/49676
8837 * dwarf2out.c (int_shift_loc_descriptor): New function.
8838 (int_loc_descriptor): If shorter, emit i as
8839 (i >> shift), shift, DW_OP_shl for suitable shift value.
8840 Similarly, try to optimize large negative values using
8841 DW_OP_neg of a positive value if shorter.
8842 (size_of_int_shift_loc_descriptor): New function.
8843 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8844 changes.
8845 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8846 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8847 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8848 is shorter.
8849 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8850 addend as added DW_OP_plus if it is shorter.
8851
8852 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8853
8854 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8855 (DTORS_SECTION_ASM_OP): Define.
8856
8857 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8858
8859 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8860 * config/t-dfprules: Move to ../libgcc/config.
8861 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8862 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8863 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8864 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8865 Likewise.
8866 (i[34567]86-*-cygwin*): Likewise.
8867 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
8868 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8869 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8870 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8871 D64PBIT_FUNCS, D128PBIT_FUNCS.
8872
8873 2011-07-11 Richard Guenther <rguenther@suse.de>
8874
8875 * tree-vrp.c (simplify_conversion_using_ranges): Manually
8876 translate the source value-range through the conversion chain.
8877
8878 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
8879
8880 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8881
8882 2011-07-11 Arthur Loiret <aloiret@debian.org>
8883
8884 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8885 a bi-arch compiler defaulting to 31-bit. In this case:
8886 (tmake_file): Add s390/t-linux64.
8887 * doc/install.texi: Add s390-linux to the list of targets supporting
8888 --enable-targets=all.
8889
8890 2011-07-11 Arthur Loiret <aloiret@debian.org>
8891 Matthias Klose <doko@debian.org>
8892
8893 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8894 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8895 (tm_file): Add mips/linux64.h.
8896 (tmake_file): Add mips/t-linux64.
8897 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8898 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8899 instead of hardcoded mabi=n32.
8900 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8901 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8902 convention.
8903
8904 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8905
8906 * passes.c (init_optimization_passes): Add invariant motion pass
8907 after induction variable optimization.
8908
8909 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
8910
8911 PR target/39633
8912 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8913 offsets 1..5 set cc0 in a usable way.
8914
8915 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
8916
8917 * tree.h (call_expr_arg): Remove.
8918 (call_expr_argp): Likewise.
8919
8920 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
8921
8922 * config/sparc/sparc.md (save_register_window_1): Rename to...
8923 (window_save): ...this.
8924 * config/sparc/sparc.c (emit_save_register_window): Rename to...
8925 (emit_window_save): ...this.
8926 (sparc_expand_prologue): Adjust to above renaming.
8927
8928 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8929
8930 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8931 of movabs for x32.
8932
8933 2011-07-10 Richard Henderson <rth@redhat.com>
8934
8935 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8936 run final, instead of emitting text directly.
8937
8938 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8939
8940 * config/i386/i386.c (ix86_option_override_internal): Turn on
8941 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
8942 small PIC models for TARGET_X32.
8943
8944 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
8945
8946 PR target/49684
8947 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8948 $(LIBGCC2_CFLAGS).
8949
8950 PR bootstrap/49680
8951 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8952 stray notes and debug insns by using prev_nonnote_nondebug_insn
8953 instead of PREV_INSN.
8954
8955 2011-07-09 Richard Henderson <rth@redhat.com>
8956
8957 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8958 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8959 * dwarf2out.c: ... here.
8960 (output_all_cfis): Remove.
8961 (dwarf2out_switch_text_section): Use output_cfis directly.
8962 (size_of_locs): Export.
8963 (output_loc_sequence, output_loc_sequence_raw): Export.
8964 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8965 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8966 output_cfa_loc_raw): Move to ...
8967 * dwarfcfi.c: ... here.
8968 * dwarf2out.h: Update decls.
8969
8970 2011-07-09 Richard Henderson <rth@redhat.com>
8971
8972 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8973 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8974 * dwarf2cfi.c: ... here.
8975 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8976 (DWARF_ROUND, DWARF_CIE_ID): Remove.
8977 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8978 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8979 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8980
8981 2011-07-09 Richard Henderson <rth@redhat.com>
8982
8983 * dwarf2cfi.c (cie_return_save): New.
8984 (queue_reg_save): Use compare_reg_or_pc.
8985 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8986 (dwarf2out_frame_debug_expr): Likewise.
8987 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8988 (initial_return_save): Likewise.
8989 (execute_dwarf2_frame): Save and restore initial return save from
8990 the cie to the fde.
8991 * config/mips/mips.c (mips_frame_set): Remove special case for
8992 DWARF_FRAME_RETURN_COLUMN.
8993
8994 2011-07-09 Richard Henderson <rth@redhat.com>
8995
8996 * dwarf2cfi.c (lookup_cfa): Remove.
8997 (execute_dwarf2_frame): Assert queues are empty on entry.
8998 Setup initial cfa directly, not via lookup_cfa.
8999 Don't clear args_size state here.
9000
9001 2011-07-09 Richard Henderson <rth@redhat.com>
9002
9003 * dwarf2cfi.c (add_cfi_vec): New.
9004 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
9005 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
9006 (execute_dwarf2_frame): Set add_cfi_vec.
9007
9008 2011-07-09 Richard Henderson <rth@redhat.com>
9009
9010 * defaults.h (ASM_COMMENT_START): Move here...
9011 * dwarf2asm.c: ... from here.
9012 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9013 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9014 * varasm.c: Likewise.
9015
9016 2011-07-09 Richard Henderson <rth@redhat.com>
9017
9018 PR debug/49686
9019 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9020 (create_cfi_notes): ... do it here instead.
9021
9022 2011-07-09 Jakub Jelinek <jakub@redhat.com>
9023
9024 PR debug/49676
9025 * dwarf2out.c (size_of_int_loc_descriptor): New function.
9026 (address_of_int_loc_descriptor): Use it.
9027 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9028
9029 2011-07-09 Richard Henderson <rth@redhat.com>
9030
9031 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9032 (prologue, epilogue): New.
9033 (return, *rts): New.
9034 (blockage, setd, seti): New.
9035 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9036 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9037 (pdp11_saved_regno): New.
9038 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9039 generate rtl instead of text.
9040 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9041 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
9042 * config/pdp11/pdp11-protos.h: Update.
9043
9044 2011-07-09 Richard Henderson <rth@redhat.com>
9045
9046 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9047 try to insert an rtl prologue here.
9048 (rs6000_output_function_epilogue): Similarly.
9049 * config/rs6000/rs6000.md (prologue): Emit a barrier to
9050 satisfy !TARGET_SCHED_PROLOG.
9051 (epilogue, sibcall_epilogue): Likewise.
9052
9053 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
9054
9055 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9056 (FP_REG_P): Delete.
9057 (IN_OR_GLOBAL_P): Likewise.
9058
9059 2011-07-08 Jason Merrill <jason@redhat.com>
9060
9061 PR c++/45437
9062 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9063 compound assignment.
9064
9065 * cgraph.c (cgraph_add_to_same_comdat_group): New.
9066 * cgraph.h: Declare it.
9067 * ipa.c (function_and_variable_visibility): Make sure thunks
9068 have the right visibility.
9069
9070 2011-07-08 Richard Henderson <rth@redhat.com>
9071
9072 PR bootstrap/49680
9073 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9074 any tablejump vector.
9075
9076 PR bootstrap/49680
9077 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9078 end of the prologue.
9079
9080 2011-07-08 Jakub Jelinek <jakub@redhat.com>
9081
9082 PR target/49621
9083 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9084 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9085 * config/rs6000/vector.md (vector_select_<mode>,
9086 vector_select_<mode>_uns): Change second operand of NE to
9087 CONST0_RTX (<MODE>mode) instead of const0_rtx.
9088 * config/rs6000/altivec.md (*altivec_vsel<mode>,
9089 *altivec_vsel<mode>_uns): Expect second operand of NE to be
9090 zero_constant of the corresponding vector mode.
9091 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9092 Likewise.
9093
9094 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
9095
9096 * graphite-dependences.c (build_alias_set_powerset): Remove
9097 continue from loop, add one more assert.
9098
9099 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9100
9101 PR target/46779
9102 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9103 In particular, allow 8-bit values in r28 and r29.
9104 (avr_hard_regno_scratch_ok): Disallow any register that might be
9105 part of the frame pointer.
9106 (avr_hard_regno_rename_ok): Same.
9107 (avr_legitimate_address_p): Don't allow SUBREGs.
9108
9109 2011-07-08 Julian Brown <julian@codesourcery.com>
9110
9111 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9112 big-endian mode.
9113 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9114 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9115 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9116 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9117 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9118 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9119 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9120 registers in big-endian mode.
9121
9122 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9123
9124 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9125 in terms of another.
9126 (write_attr_value): Write a cast if necessary.
9127
9128 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9129 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9130 (REG_WORDS_BIG_ENDIAN): Document.
9131 * doc/tm.texi: Regenerate.
9132 * reload.c (operands_match_p): Take it into account.
9133 (reload_adjust_reg_for_mode): Likewise.
9134 * rtlanal.c (subreg_get_info): Likewise.
9135
9136 2011-07-08 Richard Guenther <rguenther@suse.de>
9137
9138 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9139 folding.
9140
9141 2011-07-08 Kai Tietz <ktietz@redhat.com>
9142
9143 * fold-const.c (fold_truth_andor): Factored out truth_andor
9144 label from fold_binary as function.
9145 (fold_binary_loc): Replace truth_andor lable
9146 by function fold_truth_andor.
9147
9148 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9149
9150 PR middle-end/49519
9151 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9152 check if address is stored in register. If so - give up.
9153 (check_sibcall_argument_overlap_1): Do not perform check of
9154 overlapping when it is call to address.
9155
9156 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9157
9158 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9159 of magic '31'.
9160
9161 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9162
9163 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9164 GET_MODE_BITSIZE where appropriate.
9165 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9166 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9167 expand_float, expand_fix): Likewise.
9168 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9169 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9170 * stor-layout.c (get_mode_bounds): Likewise.
9171 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9172 Likewise.
9173 * convert.c (convert_to_integer): Likewise.
9174 * expmed.c (expand_shift_1): Likewise.
9175
9176 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9177 a bitsize.
9178
9179 * optabs.c (expand_binop): Tighten conditions for doubleword
9180 expansions.
9181 (widen_bswap): Assert that mode bitsize and precision are the same.
9182 * stor-layout.c (get_best_mode): Skip modes that have lower
9183 precision than bitsize.
9184 * recog.c (simplify_while_replacing): Assert that bitsize and
9185 precision are the same.
9186
9187 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9188
9189 * Makefile.in (LIBGCOV): Remove.
9190 (libgcc.mvars): Remove LIBGCOV.
9191 * libgov.c: Move to ../libgcc.
9192
9193 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9194
9195 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9196
9197 2011-07-08 Martin Jambor <mjambor@suse.cz>
9198
9199 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9200 is too big for total scalarization.
9201
9202 2011-07-07 Richard Henderson <rth@redhat.com>
9203
9204 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9205 (DBX_DEBUGGING_INFO): Undef.
9206
9207 2011-07-07 Richard Henderson <rth@redhat.com>
9208
9209 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9210 Handle some opcodes specially for debugging.
9211 * print-rtl.c: Include dwarf2out.h
9212 (print_rtx): Handle NOTE_INSN_CFI.
9213 * Makefile.in (print-rtl.o): Update.
9214
9215 2011-07-07 Richard Henderson <rth@redhat.com>
9216
9217 * tree-pass.h (pass_dwarf2_frame): Declare.
9218 * passes.c (init_optimization_passes): Add it.
9219 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9220 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9221 make static, do not call add_cfis_to_fde.
9222 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9223 dwarf2out_frame_init): Merge into...
9224 (execute_dwarf2_frame): ... here. New function.
9225 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9226 saved_do_cfi_asm to a tri-state variable.
9227 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9228 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9229 if it has yet to be done. Don't call dwarf2cfi_function_init.
9230 * dwarf2out.h, debug.h: Update decls.
9231 * final.c (final_start_function): Don't call
9232 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9233 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9234 * toplev.c (lang_dependent_init): Likewise.
9235
9236 2011-07-07 Richard Henderson <rth@redhat.com>
9237
9238 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9239 FDE_TABLE_INCREMENT): Replace with...
9240 (fde_vec): ... this, a new vector.
9241 (current_fde): Remove. Replace all users with cfun->fde.
9242 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9243 (size_of_aranges, dwarf2out_finish): Likewise.
9244 (dwarf2out_alloc_current_fde): Break out from ...
9245 (dwarf2out_begin_prologue): ... here.
9246 (dwarf2out_frame_init): Remove.
9247 * dwarf2cfi.c: Update all users of current_fde.
9248 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9249 * dwarf2out.h: Update decls.
9250 (dw_fde_node): Add fde_index member.
9251 * function.h (struct function): Add fde member.
9252
9253 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9254 Richard Henderson <rth@redhat.com>
9255
9256 * dwarf2cfi.c (add_cfi): Remove.
9257 (dwarf2out_cfi_label): Remove force argument. Only generate the
9258 label name.
9259 (add_fde_cfi): Simplify the different code paths.
9260 (add_cie_cfi): New.
9261 (old_cfa, old_cfa_remember): New.
9262 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9263 (last_reg_save_label): Remove.
9264 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9265 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9266 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9267 dwarf2out_frame_debug_cfa_expression,
9268 dwarf2out_frame_debug_cfa_restore,
9269 dwarf2out_frame_debug_cfa_window_save,
9270 dwarf2out_frame_debug_expr): Remove label parameter.
9271 (cfi_label_required_p, add_cfis_to_fde): New.
9272 (dwarf2out_frame_debug_after_prologue): New.
9273 (dwarf2cfi_frame_init): Initialize old_cfa.
9274 (dwarf2out_frame_debug_restore_state): Likewise.
9275 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9276 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9277 * final.c (final_start_function): Call
9278 dwarf2out_frame_debug_after_prologue.
9279
9280 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9281 Richard Henderson <rth@redhat.com>
9282
9283 * dwarf2cfi.c (cfi_insn): New.
9284 (dwarf2out_cfi_label): Don't emit cfi label here.
9285 (add_fde_cfi): Create a NOTE_INSN_CFI.
9286 (dwarf2out_frame_debug): Setup cfi_insn.
9287 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9288 (dwarf2out_cfi_begin_epilogue): Make static.
9289 (dwarf2out_frame_debug_restore_state): Make static.
9290 * dwarf2out.c (output_cfi_directive): Make static.
9291 (dwarf2out_emit_cfi): New.
9292 * dwarf2out.h: Update.
9293 * final.c (final): Remove CFI notes.
9294 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9295 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9296 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9297 * insn-notes.def (NOTE_INSN_CFI): New.
9298 (NOTE_INSN_CFI_LABEL): New.
9299 * rtl.h (union rtunion_def): Add rt_cfi member.
9300 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9301
9302 2011-07-07 Richard Henderson <rth@redhat.com>
9303
9304 * dwarf2cfi.c: New file.
9305 * Makefile.in (OBJS): Add it.
9306 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9307 * gengtype.c (open_base_files): Include dwarf2out.h.
9308 * coretypes.h (enum var_init_status): Move from ...
9309 * rtl.h: ... here.
9310 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9311 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9312 expand_builtin_dwarf_sp_column, init_return_column_size,
9313 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9314 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9315 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9316 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9317 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9318 compute_barrier_args_size, dwarf2out_args_size,
9319 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9320 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9321 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9322 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9323 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9324 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9325 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9326 dwarf2out_frame_debug_cfa_expression,
9327 dwarf2out_frame_debug_cfa_restore,
9328 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9329 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9330 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9331 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9332 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9333 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9334 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9335 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9336 dw_loc_descr_node): Move to dwarf2out.h.
9337 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9338 mem_loc_descriptor): Export.
9339 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9340 (dwarf2out_frame_init): Extract CIE generation code to
9341 dwarf2cfi_frame_init.
9342
9343 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9344
9345 PR target/49660
9346 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9347 MASK_V8PLUS, remove commented out flag and reorder.
9348
9349 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9350
9351 PR c/49644
9352 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9353 one non-complex and one complex argument, call c_save_expr on both
9354 operands.
9355
9356 2011-07-07 Martin Jambor <mjambor@suse.cz>
9357
9358 PR middle-end/49495
9359 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9360 (verify_cgraph_node): Some functinality moved to
9361 verify_edge_corresponds_to_fndecl, call it.
9362
9363 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9364
9365 * config.gcc (*local*): Remove.
9366 * doc/install-old.texi: Don't mention local configurations.
9367
9368 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9369
9370 PR debug/49522
9371 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9372 referencing debug insns that have been reset.
9373 (dead_debug_insert_before): Don't assert reg is non-NULL,
9374 instead return immediately if it is NULL.
9375
9376 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9377
9378 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9379
9380 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9381
9382 * hw-doloop.c: New file.
9383 * hw-doloop.h: New file.
9384 * Makefile.in (OBJS): Add hw-doloop.o.
9385 (hw-doloop.o): New rule.
9386 ($(obj_out_file)): Add hw-doloop.h dependency.
9387 * config/bfin/bfin.c: Include "hw-doloop.h".
9388 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9389 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9390 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9391 type changed to hwloop_info. Return bool, true if the loop was
9392 successfully optimized. Remove code that was moved to
9393 hw-doloop.c, and adjust other parts.
9394 (hwloop_fail): New static function, containing parts that used
9395 to be in bfin_optimize_loop.
9396 (bfin_discover_loop, bfin_discover_loops, free_loops,
9397 bfin_reorder_loops): Remove.
9398 (hwloop_pattern_reg): New static function.
9399 (bfin_doloop_hooks): New variable.
9400 (bfin_reorg_loops): Remove most code, call reorg_loops.
9401 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9402 loop counter is a memory_operand.
9403
9404 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9405
9406 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9407
9408 * configure.ac: Mention x86-64 for --with-multilib-list.
9409 * configure: Regenerated.
9410
9411 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9412 (SPEC_32): Likewise.
9413 (ASM_SPEC): Likewise.
9414 (LINK_SPEC): Likewise.
9415 (TARGET_THREAD_SSP_OFFSET): Likewise.
9416 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9417 (SPEC_X32): New.
9418
9419 * config/i386/i386.h (TARGET_X32): New.
9420 (TARGET_LP64): New.
9421 (LONG_TYPE_SIZE): Likewise.
9422 (POINTER_SIZE): Likewise.
9423 (POINTERS_EXTEND_UNSIGNED): Likewise.
9424 (OPT_ARCH64): Support x32.
9425 (OPT_ARCH32): Likewise.
9426
9427 * config/i386/i386.opt (mx32): New.
9428
9429 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9430 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9431 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9432 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9433
9434 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9435 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9436 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9437
9438 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9439
9440 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9441
9442 * doc/invoke.texi: Document -mx32.
9443
9444 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9445
9446 * doc/invoke.texi (mwords-little-endian): Deprecate.
9447 * config/arm/arm.opt (mwords-little-endian): Likewise.
9448 * config/arm/arm.c (arm_option_override): Warn about the deprecation
9449 of -mwords-little-endian.
9450
9451 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9452
9453 * reload1.c (choose_reload_regs): Use mode sizes to check whether
9454 an old reload register completely defines the required value.
9455
9456 2011-07-07 Richard Guenther <rguenther@suse.de>
9457
9458 * fold-const.c (fold_unary_loc): Do not strip sign-changes
9459 for NEGATE_EXPR.
9460
9461 2011-07-07 Richard Guenther <rguenther@suse.de>
9462
9463 * tree-vrp.c (simplify_conversion_using_ranges): New function.
9464 (simplify_stmt_using_ranges): Call it.
9465
9466 2011-07-07 Kai Tietz <ktietz@redhat.com>
9467
9468 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9469 (lookup_logical_inverted_value): Likewise.
9470 (simplify_bitwise_binary_1): Likewise.
9471 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9472
9473 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9474
9475 * gcc.c (%[Spec]): Don't document.
9476 (struct spec_list): Update comment.
9477 (do_spec_1): Don't handle %[Spec].
9478 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9479
9480 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9481
9482 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9483 default based on TARGET_ASM_NAMED_SECTION.
9484 * common/common-target.def (have_named_sections): Default to true.
9485 * common/config/default-common.c: Don't include tm.h.
9486 * common/config/picochip/picochip-common.c
9487 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9488 * common/config/m32c/m32c-common.c: Remove.
9489 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9490 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9491 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9492 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9493 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9494 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9495 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9496
9497 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9498
9499 PR middle-end/49640
9500 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9501 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9502
9503 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9504
9505 PR libmudflap/49550
9506 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9507
9508 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9509
9510 PR target/39150
9511 * configure.ac (gcc_cv_as_hidden): Also accept
9512 x86_64-*-solaris2.1[0-9]*.
9513 (gcc_cv_as_cfi_directive): Likewise.
9514 (gcc_cv_as_comdat_group_group): Likewise.
9515 (set_have_as_tls): Likewise.
9516 * configure: Regenerate.
9517 * config.gcc (i[34567]86-*-solaris2*): Also handle
9518 x86_64-*-solaris2.1[0-9]*.
9519 * config.host (i[34567]86-*-solaris2*): Likewise.
9520 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9521 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9522 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9523 (TARGET_LD_EMULATION): Use it.
9524 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9525 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9526 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9527 (ASM_CPU64_DEFAULT_SPEC): Define.
9528 (ASM_CPU_SPEC): Use %(asm_cpu_default).
9529 (ASM_SPEC): Redefine.
9530 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9531 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9532 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9533 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9534 configuration.
9535 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9536
9537 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9538
9539 * config/sol2.h (ASM_SPEC): Split into ...
9540 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9541 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9542 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9543 (ASM_SPEC): Use ASM_SPEC_BASE.
9544 * config/sparc/sol2.h (ASM_SPEC): Redefine.
9545
9546 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
9547
9548 * config/avr/avr.md (*reload_insi): Change predicate #1 to
9549 const_int_operand. Ditto for peep2 producing this insn.
9550 Add argument to output_reload_insisf call.
9551 (*movsi,*movsf): Add argument to output_movsisf call.
9552 (*reload_insf): New insn and new peep2 to produce it.
9553 * config/avr/avr-protos.h (output_movsisf): Change prototype.
9554 (output_reload_insisf): Change prototype.
9555 * config/avr/avr.c (avr_asm_len): New function.
9556 (output_reload_insisf): Rewrite.
9557 (output_movsisf): Change prototype. output_reload_insisf for
9558 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
9559 (adjust_insn_length): Add argument to output_movsisf and
9560 output_reload_insisf call.
9561
9562 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9563
9564 * emit-rtl.c (paradoxical_subreg_p): New function.
9565 * rtl.h (paradoxical_subreg_p): Declare.
9566 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9567 apply_distributive_law, simplify_comparison, simplify_set): Use it.
9568 * cse.c (record_jump_cond, cse_insn): Likewise.
9569 * expr.c (force_operand): Likewise.
9570 * rtlanal.c (num_sign_bit_copies1): Likewise.
9571 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9572 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9573 (push_reload): Use precision to check for paradoxical subregs.
9574 * expmed.c (extract_bit_field_1): Likewise.
9575
9576 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9577 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9578 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9579 simplify_set, simplify_logical, expand_compound_operation,
9580 make_extraction, force_to_mode, if_then_else_cond, extended_count,
9581 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9582 record_value_for_reg): Likewise.
9583 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9584 * simplify-rtx. c (simplify_unary_operation_1,
9585 simplify_binary_operation_1, simplify_const_relational_operation):
9586 Likewise.
9587
9588 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9589 instead of GET_MODE_BITSIZE where appropriate.
9590 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9591 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9592 init_num_sign_bit_copies_in_rep): Likewise.
9593 * cse.c (fold_rtx, cse_insn): Likewise.
9594 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9595 * simplify-rtx.c (simplify_unary_operation_1,
9596 simplify_const_unary_operation, simplify_binary_operation_1,
9597 simplify_const_binary_operation, simplify_ternary_operation,
9598 simplify_const_relational_operation, simplify_subreg): Likewise.
9599 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9600 simplify_if_then_else, simplify_set, expand_compound_operation,
9601 expand_field_assignment, make_extraction, if_then_else_cond,
9602 make_compound_operation, force_to_mode, make_field_assignment,
9603 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9604 extended_count, try_widen_shift_mode, simplify_shift_const_1,
9605 simplify_comparison, record_promoted_value, simplify_compare_const,
9606 record_dead_and_set_regs_1): Likewise.
9607
9608 Revert:
9609 * simplify-rtx.c (simplify_const_binary_operation): Use the
9610 shift_truncation_mask hook instead of performing modulo by width.
9611 Compare against mode precision, not bitsize.
9612 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9613 Use shift_truncation_mask instead of constructing the value manually.
9614
9615 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9616
9617 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9618 declaration.
9619 (rs6000_save_toc_in_prologue_p): Ditto.
9620
9621 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9622 up the static chain (r11) during indirect function calls.
9623 (-msave-toc-indirect): New undocumented debug switch.
9624
9625 * config/rs6000/rs6000.c (struct machine_function): Add
9626 save_toc_in_prologue field to note whether the prologue needs to
9627 save the TOC value in the reserved stack location.
9628 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
9629 to save the TOC in the prologue, do so.
9630 (rs6000_trampoline_init): Don't allow creating AIX style
9631 trampolines if -mno-r11 is in effect.
9632 (rs6000_call_indirect_aix): New function to create AIX style
9633 indirect calls, adding support for -mno-r11 to suppress loading
9634 the static chain, and saving the TOC in the prologue instead of
9635 the call body.
9636 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9637 TOC in the prologue.
9638
9639 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9640 register numbers.
9641 (TOC_REGNUM): Ditto.
9642 (STATIC_CHAIN_REGNUM): Ditto.
9643 (ARG_POINTER_REGNUM): Ditto.
9644 (SFP_REGNO): Delete, unused.
9645 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9646 function descriptor offsets.
9647 (TOC_SAVE_OFFSET_64BIT): Ditto.
9648 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9649 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9650 (AIX_FUNC_DESC_SC_32BIT): Ditto.
9651 (AIX_FUNC_DESC_SC_64BIT): Ditto.
9652 (ptrload): New mode attribute for the appropriate load of a pointer.
9653 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9654 (call_indirect_aix64): Ditto.
9655 (call_value_indirect_aix32): Ditto.
9656 (call_value_indirect_aix64): Ditto.
9657 (call_indirect_nonlocal_aix32_internal): Ditto.
9658 (call_indirect_nonlocal_aix32): Ditto.
9659 (call_indirect_nonlocal_aix64_internal): Ditto.
9660 (call_indirect_nonlocal_aix64): Ditto.
9661 (call): Rewrite AIX indirect function calls. Add support for
9662 eliminating the static chain, and for moving the save of the TOC
9663 to the function prologue.
9664 (call_value): Ditto.
9665 (call_indirect_aix<ptrsize>): Ditto.
9666 (call_indirect_aix<ptrsize>_internal): Ditto.
9667 (call_indirect_aix<ptrsize>_internal2): Ditto.
9668 (call_indirect_aix<ptrsize>_nor11): Ditto.
9669 (call_value_indirect_aix<ptrsize>): Ditto.
9670 (call_value_indirect_aix<ptrsize>_internal): Ditto.
9671 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9672 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9673 (call_nonlocal_aix32): Relocate in the rs6000.md file.
9674 (call_nonlocal_aix64): Ditto.
9675
9676 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9677 -mno-r11 documentation.
9678
9679 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9680
9681 PR other/49658
9682 * doc/extend.texi (Compound Literals): Fix typo.
9683
9684 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
9685
9686 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9687
9688 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
9689
9690 * configure.ac (plugin-version.h): Generate
9691 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9692 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9693 macros.
9694
9695 * configure: Regenerate.
9696
9697 * doc/plugins.texi (Building GCC plugins): Mention
9698 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9699
9700 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9701
9702 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9703 * combine.c (make_extraction, gen_lowpart_or_truncate,
9704 apply_distributive_law, simplify_comparison,
9705 reg_truncated_to_mode, record_truncated_value): Use it.
9706 * cse.c (notreg_cost): Likewise.
9707 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9708 * expr.c (convert_move, convert_modes): Likewise.
9709 * optabs.c (expand_binop, expand_unop): Likewise.
9710 * postreload.c (move2add_last_label): Likewise.
9711 * regmove.c (optimize_reg_copy_3): Likewise.
9712 * rtlhooks.c (gen_lowpart_general): Likewise.
9713 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9714
9715 2011-07-06 Joseph Myers <joseph@codesourcery.com>
9716
9717 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9718
9719 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9720
9721 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9722 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9723 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9724 (simplify_const_unary_operation, simplify_binary_operation_1,
9725 simplify_const_binary_operation, simplify_const_relational_operation):
9726 Use them. Use GET_MODE_MASK for masking and sign-extensions.
9727 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9728 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9729 simplify_shift_const_1, simplify_comparison): Likewise.
9730 * expr.c (convert_modes): Likewise.
9731 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9732 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9733 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9734
9735 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9736
9737 2011-07-06 Richard Guenther <rguenther@suse.de>
9738
9739 PR tree-optimization/49645
9740 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9741 register variables.
9742 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9743 in type qualification here ...
9744 (copy_reference_ops_from_ref): ... not here.
9745 (vn_reference_lookup_3): ... or here.
9746 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9747 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9748
9749 2011-07-06 Ian Lance Taylor <iant@google.com>
9750
9751 * doc/install.texi (Configuration): It's
9752 --enable-gnu-indirect-function, not --enable-indirect-function.
9753
9754 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9755
9756 * simplify-rtx.c (simplify_const_binary_operation): Use the
9757 shift_truncation_mask hook instead of performing modulo by width.
9758 Compare against mode precision, not bitsize.
9759 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9760 Use shift_truncation_mask instead of constructing the value manually.
9761
9762 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
9763
9764 PR middle-end/47383
9765 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9766 address computation and convert to address_mode if needed.
9767
9768 2011-07-06 Richard Guenther <rguenther@suse.de>
9769
9770 * tree.c (build_common_tree_nodes_2): Merge with
9771 build_common_tree_nodes.
9772 * tree.h (build_common_tree_nodes): Adjust prototype.
9773 (build_common_tree_nodes_2): Remove.
9774 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9775 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9776
9777 2011-07-05 Jakub Jelinek <jakub@redhat.com>
9778
9779 PR tree-optimization/49618
9780 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9781 t recurse on the decl.
9782 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9783 return true if expr isn't known to be defined in current
9784 TU or some other LTO partition.
9785
9786 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9787
9788 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9789 override CASE_VALUES_THRESHOLD.
9790
9791 * stmt.c (toplevel): Include params.h.
9792 (case_values_threshold): Use the --param case-values-threshold
9793 value if non-zero, otherwise use machine dependent value.
9794 (expand_case): Use case_values_threshold.
9795
9796 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9797
9798 * doc/invoke.texi (--param case-values-threshold): Document.
9799
9800 2011-07-05 Richard Henderson <rth@redhat.com>
9801
9802 * dwarf2out.c (dwarf2out_cfi_label): Make static.
9803 (dwarf2out_flush_queued_reg_saves): Make static.
9804 (dwarf2out_reg_save): Remove.
9805 (dwarf2out_return_save): Remove.
9806 (dwarf2out_return_reg): Remove.
9807 (dwarf2out_reg_save_reg): Remove.
9808 (dwarf2out_def_cfa): Merge into ...
9809 (dwarf2out_frame_init): ... here.
9810 * dwarf2out.h, tree.h: Remove declarations as necessary.
9811
9812 2011-07-05 Richard Henderson <rth@redhat.com>
9813
9814 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9815 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9816 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9817 the alloc insn.
9818
9819 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9820 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9821 (process_epilogue): Don't call dwarf2out_def_cfa.
9822
9823 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9824 indicate the return address save.
9825 (process_cfa_register): Likewise.
9826
9827 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9828 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9829
9830 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9831 for ar.pfs save at alloc insn.
9832
9833 2011-07-05 Richard Henderson <rth@redhat.com>
9834
9835 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9836 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9837 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9838 stack pointer save.
9839 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9840 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
9841 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9842 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9843
9844 2011-07-05 Richard Henderson <rth@redhat.com>
9845
9846 * config/vax/vax.md (define_c_enum unspecv): New. Define the
9847 VUNSPEC_* constants here instead of via define_constants.
9848 (VUNSPEC_PEM): New constant.
9849 (procedure_entry_mask): New insn.
9850 (prologue): New expander.
9851 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9852 (vax_expand_prologue): Rename from vax_output_function_prologue;
9853 emit rtl instead of text.
9854 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9855 (print_operand): Add 'x' prefix.
9856
9857 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9858
9859 PR middle-end/47715
9860 * calls.c (precompute_register_parameters): Promote the function
9861 argument before checking non-legitimate constant.
9862
9863 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9864
9865 PR tree-optimization/47654
9866 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9867 (lst_do_strip_mine_loop): Return an int.
9868 (lst_do_strip_mine): Same.
9869 (scop_do_strip_mine): Same.
9870 (scop_do_block): Loop blocking should strip-mine at least two loops.
9871 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9872 (scop_do_interchange): Same.
9873 * graphite-poly.h (scop_do_interchange): Update declaration.
9874 (scop_do_strip_mine): Same.
9875
9876 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9877
9878 * graphite-clast-to-gimple.c (precision_for_value): Removed.
9879 (precision_for_interval): Removed.
9880 (gcc_type_for_interval): Use mpz_sizeinbase.
9881
9882 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9883
9884 * graphite-ppl.h (value_max): Correct computation of max.
9885
9886 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9887
9888 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9889
9890 2011-07-05 Richard Guenther <rguenther@suse.de>
9891
9892 * c-decl.c (c_init_decl_processing): Defer building common
9893 tree nodes to c_common_nodes_and_builtins.
9894
9895 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
9896
9897 PR tree-optimization/49580
9898 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9899 the loop's number of iterations.
9900 * tree-parloops.c (transform_to_exit_first_loop): Add the
9901 handling of the loop's number of iterations before the call
9902 to gimple_duplicate_sese_tail.
9903 Insert the stmt caclculating the new rhs of the loop's
9904 condition stmt to the preheader instead of iters_bb.
9905
9906 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9907
9908 PR rtl-optimization/47449
9909 * fwprop.c (forward_propagate_subreg): Don't propagate hard
9910 register nor zero/sign extended hard register.
9911
9912 2011-07-05 Richard Guenther <rguenther@suse.de>
9913
9914 PR tree-optimization/49518
9915 PR tree-optimization/49628
9916 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9917 irrelevant and invariant data-references.
9918 (vect_analyze_data_ref_access): For invariant loads clear the
9919 group association.
9920
9921 2011-07-04 Jakub Jelinek <jakub@redhat.com>
9922
9923 PR rtl-optimization/49619
9924 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9925 pass VOIDmode as op0_mode to recursive call, and return temp even
9926 when different from tor, just if it is not IOR of the original
9927 PLUS arguments.
9928
9929 PR rtl-optimization/49472
9930 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9931 negating MULT, negate the second operand instead of first.
9932 (simplify_binary_operation_1) <case MULT>: If one operand is
9933 a NEG and the other is MULT, don't attempt to optimize by negation
9934 of the MULT operand if it only moves the NEG operation around.
9935
9936 PR debug/49602
9937 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9938 get_current_def return value if it can't be trusted to be
9939 the current value of the variable in the current bb.
9940
9941 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
9942
9943 PR target/49600
9944 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9945 general register to memory for !TARGET_INTER_UNIT_MOVES.
9946
9947 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9948
9949 PR target/44643
9950 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9951 instead of TREE_READONLY.
9952
9953 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9954
9955 * doc/extend.texi (AVR Built-in Functions): Update documentation
9956 of __builtin_avr_fmul*.
9957 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9958 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9959 * config/avr/avr.md (fmul): Rename to fmul_insn.
9960 (fmuls): Rename to fmuls_insn.
9961 (fmulsu): Rename to fmulsu_insn.
9962 (fmul,fmuls,fmulsu): New expander.
9963 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9964 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9965 * config/avr/libgcc.S (__fmul): New function.
9966 (__fmuls): New function.
9967 (__fmulsu,__fmulsu_exit): New function.
9968
9969 2011-07-04 Richard Guenther <rguenther@suse.de>
9970
9971 PR tree-optimization/49615
9972 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9973 basic-block index check.
9974
9975 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9976
9977 * longlong.h (count_leading_zeros, count_trailing_zeros,
9978 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9979 resp. 64.
9980
9981 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
9982
9983 PR tree-optimization/49610
9984 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9985 a basic block.
9986
9987 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
9988 Olivier Hainque <hainque@adacore.com>
9989 Nicolas Setton <setton@adacore.com>
9990
9991 * tree.h (TYPE_ARTIFICIAL): New flag.
9992 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9993 the DIE of the type if it is artificial.
9994 (gen_array_type_die): Likewise.
9995 (gen_enumeration_type_die): Likewise.
9996 (gen_struct_or_union_type_die): Likewise.
9997 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9998 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
9999
10000 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10001
10002 * tree-object-size.c (pass_through_call): Handle
10003 BUILT_IN_ASSUME_ALIGNED.
10004
10005 2011-07-01 Martin Jambor <mjambor@suse.cz>
10006
10007 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10008
10009 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
10010
10011 PR middle-end/48016
10012 * explow.c (update_nonlocal_goto_save_area): Use proper mode
10013 for stack save area.
10014 * function.c (expand_function_start): Likewise.
10015
10016 2011-07-01 Richard Guenther <rguenther@suse.de>
10017
10018 PR middle-end/49596
10019 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10020 may have unknown refs.
10021
10022 2011-07-01 Kai Tietz <ktietz@redhat.com>
10023
10024 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10025
10026 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10027
10028 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10029 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10030 (Specific, mips-sgi-irix6): Likewise.
10031
10032 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10033
10034 PR libmudflap/49549
10035 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10036
10037 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10038
10039 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10040 [idx]= and [idx1 ... idx2]= before initializers if needed for
10041 array initializers.
10042
10043 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
10044
10045 * config.gcc (score-*-elf): Remove score7.o.
10046 * config/score/t-score-elf: Likewise.
10047 * config/score/score.c: Merge score7 to score.c and
10048 remove forwarding functions.
10049 * config/score/score7.c: Deleted.
10050 * config/score/score7.h: Deleted.
10051
10052 2011-07-01 Richard Guenther <rguenther@suse.de>
10053
10054 PR tree-optimization/49603
10055 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10056
10057 2011-06-30 Martin Jambor <mjambor@suse.cz>
10058
10059 * tree-sra.c (struct access): Rename total_scalarization to
10060 grp_total_scalarization
10061 (completely_scalarize_var): New function.
10062 (sort_and_splice_var_accesses): Set total_scalarization in the
10063 representative access.
10064 (analyze_access_subtree): Propagate total scalarization accross the
10065 tree, no holes in totally scalarized trees, simplify coverage
10066 computation.
10067 (analyze_all_variable_accesses): Call completely_scalarize_var instead
10068 of completely_scalarize_record.
10069
10070 2011-06-30 Richard Henderson <rth@redhat.com>
10071
10072 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10073 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10074 * config/i386/i386.c: Don't include dwarf2out.h.
10075 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10076 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10077 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
10078 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10079 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10080
10081 2011-06-30 Richard Henderson <rth@redhat.com>
10082
10083 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10084 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10085 * final.c (final_scan_insn): Look for it, and invoke
10086 dwarf2out_frame_debug before the insn if found.
10087
10088 2011-06-30 Richard Henderson <rth@redhat.com>
10089
10090 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10091 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10092
10093 2011-06-30 Richard Henderson <rth@redhat.com>
10094
10095 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10096 Define a vector of this type.
10097 (regs_saved_in_regs): Use a VEC.
10098 (num_regs_saved_in_regs): Remove.
10099 (compare_reg_or_pc): New.
10100 (record_reg_saved_in_reg): Split out from...
10101 (dwarf2out_flush_queued_reg_saves): ... here.
10102 (clobbers_queued_reg_save): Update for VEC.
10103 (reg_saved_in): Likewise.
10104 (dwarf2out_frame_debug_init): Likewise.
10105 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10106 (dwarf2out_frame_debug_cfa_register): Likewise.
10107
10108 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10109
10110 PR tree-optimization/49572
10111 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10112 type of the RHS instead of that of the LHS for the expression type.
10113
10114 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10115
10116 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10117 unconditionally.
10118
10119 2011-06-30 Richard Guenther <rguenther@suse.de>
10120
10121 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10122 * tree-ssa-structalias.c (create_variable_info_for): Do not
10123 add initial constraints for non-var-decls. Properly handle
10124 globals in other ltrans partitions.
10125 (intra_create_variable_infos): Manually create constraints for
10126 the fake no-alias parameter.
10127 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10128 and assert there are no clones.
10129
10130 2011-06-30 Richard Guenther <rguenther@suse.de>
10131
10132 PR tree-optimization/46787
10133 * tree-data-ref.c (dr_address_invariant_p): Remove.
10134 (find_data_references_in_stmt): Invariant accesses are ok now.
10135 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10136 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10137 invariant loads.
10138
10139 2011-06-30 Martin Jambor <mjambor@suse.cz>
10140
10141 PR tree-optimization/49094
10142 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10143 (build_accesses_from_assign): Use it.
10144
10145 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10146
10147 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10148 handling of BUILT_IN_ASSUME_ALIGNED.
10149
10150 PR debug/49364
10151 * dwarf2out.c (output_abbrev_section): Don't return early
10152 if abbrev_die_table_in_use is 1.
10153 (dwarf2out_finish): Instead don't call output_abbrev_section
10154 nor emit abbrev_section_label in that case.
10155
10156 2011-06-30 Nick Clifton <nickc@redhat.com>
10157
10158 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10159 for the V850E.
10160
10161 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10162
10163 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10164 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10165
10166 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10167
10168 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10169 both pattern and original statements if necessary.
10170 (vect_transform_loop): Likewise.
10171 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10172 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10173 Mark the pattern statement only if the original statement doesn't
10174 have its own uses.
10175 (process_use): Call vect_mark_relevant with additional parameter.
10176 (vect_mark_stmts_to_be_vectorized): Likewise.
10177 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10178 (vect_analyze_stmt): Handle both pattern and original statements
10179 if necessary.
10180 (vect_transform_stmt): Don't store vectorized pattern statement
10181 in the original statement.
10182 (vect_is_simple_use_1): Use related pattern statement only if the
10183 original statement is irrelevant.
10184 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10185
10186 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10187
10188 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10189 option.
10190 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10191 entry.
10192 (TARGET_AVX128_OPTIMAL): New definition.
10193 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10194 X86_TUNE_AVX128_OPTIMAL entry.
10195 (ix86_option_override_internal): Enable the generation
10196 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10197 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10198 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10199
10200 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10201
10202 PR tree-optimization/49539
10203 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10204 names by means of stmt_references_abnormal_ssa_name.
10205 (associate_plusminus): Call can_propagate_from before propagating
10206 from definition statements.
10207 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10208
10209 2011-06-29 Richard Guenther <rguenther@suse.de>
10210
10211 * doc/invoke.texi: Document -scev dump modifier.
10212 * tree-pass.h (TDF_SCEV): New dump flag.
10213 * tree-dump.c (dump_option_value_in): Add scev.
10214 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10215 * tree-scalar-evolution.c: Likewise.
10216
10217 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10218
10219 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10220 (cxa_type_match): Correct declaration.
10221 (__gnu_unwind_pr_common): Reconstruct additional indirection
10222 when __cxa_type_match returns succeeded_with_ptr_to_base.
10223
10224 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10225
10226 PR rtl-optimization/49114
10227 * reload.c (struct replacement): Remove SUBREG_LOC member.
10228 (push_reload): Do not set it.
10229 (push_replacement): Likewise.
10230 (subst_reload): Remove dead code.
10231 (copy_replacements): Remove assertion.
10232 (copy_replacements_1): Do not handle SUBREG_LOC.
10233 (move_replacements): Likewise.
10234 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10235 Detect subregs via recursive descent instead of via SUBREG_LOC.
10236
10237 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10238
10239 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10240 default_encode_section_info.
10241
10242 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10243
10244 PR tree-optimization/49545
10245 * builtins.c (get_object_alignment_1): Update function comment.
10246 Do not use DECL_ALIGN for functions, but test
10247 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10248 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10249 for functions here.
10250 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10251
10252 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10253
10254 PR debug/49567
10255 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10256 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10257
10258 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10259
10260 PR target/34734
10261 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10262 about uninitialized data attributed 'progmem' from here...
10263 (avr_encode_section_info): ...to this new function.
10264 (TARGET_ENCODE_SECTION_INFO): New define.
10265 (avr_section_type_flags): For data in ".progmem.data", remove
10266 section flag SECTION_WRITE.
10267
10268 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10269
10270 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10271 _xmulhisi3_exit.
10272 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10273 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10274 (__umulhisi3): Ditto.
10275 * config/avr/avr.md (mulhisi3): New insn expender.
10276 (umulhisi3): New insn expender.
10277 (*mulhisi3_call): New insn.
10278 (*umulhisi3_call): New insn.
10279
10280 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10281
10282 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10283
10284 2011-06-28 Richard Henderson <rth@redhat.com>
10285
10286 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10287 all code and arguments that handled pushes. Update all callers.
10288
10289 2011-06-28 Richard Henderson <rth@redhat.com>
10290
10291 * config/arm/arm.c (arm_output_function_prologue): Don't call
10292 thumb1_output_function_prologue.
10293 (arm_expand_prologue): Avoid dead store.
10294 (number_of_first_bit_set): Use ctz_hwi.
10295 (thumb1_emit_multi_reg_push): New.
10296 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10297 to emit the entire prologue as rtl.
10298 (thumb1_output_interwork): Split out from
10299 thumb1_output_function_prologue.
10300 (thumb1_output_function_prologue): Remove.
10301 (arm_attr_length_push_multi): Handle thumb1.
10302 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10303 (prologue_thumb1_interwork): New.
10304 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10305 * config/arm/predicates.md (push_mult_memory_operand): New.
10306
10307 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10308
10309 * config/sparc/sync.md (*stbar): Delete.
10310 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10311
10312 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10313
10314 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10315
10316 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10317
10318 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10319 (TARGET_64BIT_DEFAULT): Define.
10320 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10321 of tm_file.
10322 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10323
10324 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10325
10326 * common.opt (in_lto_p): New Variable entry.
10327 * flags.h (in_lto_p): Move to common.opt.
10328 * gcc.c: Include params.h.
10329 (set_option_handlers): Also use common_handle_option and
10330 target_handle_option.
10331 (main): Call global_init_params, finish_params and init_options_struct.
10332 * opts.c (debug_type_names): Move from toplev.c.
10333 (print_filtered_help): Access quiet_flag through opts pointer.
10334 (common_handle_option): Return early in the driver for some options.
10335 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10336 opts pointer.
10337 * toplev.c (in_lto_p): Move to common.opt.
10338 (debug_type_names): Move to opts.c.
10339 * Makefile.in (OBJS): Remove opts.o.
10340 (OBJS-libcommon-target): Add opts.o.
10341 (gcc.o): Update dependencies.
10342
10343 2011-06-28 Kai Tietz <ktietz@redhat.com>
10344
10345 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10346
10347 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10348
10349 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10350 with '=' constraint modifier.
10351 (*divdf3_vfp): Likewise.
10352 ("*mulsf3_vfp"): Likewise.
10353 ("*muldf3_vfp"): Likewise.
10354 ("*mulsf3negsf_vfp"): Likewise.
10355 ("*muldf3negdf_vfp"): Likewise.
10356
10357 2011-06-28 Nick Clifton <nickc@redhat.com>
10358
10359 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10360 relaxation when performing an incremental link.
10361
10362 2011-06-28 Kai Tietz <ktietz@redhat.com>
10363
10364 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10365 within BB from last to first.
10366
10367 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10368
10369 * genattr-common.c: New. Based on genattr.c.
10370 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10371 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10372 (opts.o): Update dependencies.
10373 (.PRECIOUS): Add insn-attr-common.h.
10374 (simple_rtl_generated_h): Add insn-attr-common.h.
10375 (build/genattr-common.o): New.
10376 (genprogrtl): Add attr-common.
10377 * genattr.c (main): Include insn-attr-common.h. Don't generate
10378 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10379 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10380
10381 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10382
10383 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10384 avr-*-* and avr-*-rtems* targets.
10385
10386 * config/avr/elf.h: New file.
10387 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10388 (TARGET_ASM_SELECT_SECTION): Define.
10389 (INIT_SECTION_ASM_OP): Undefine.
10390 (FINI_SECTION_ASM_OP): Undefine.
10391 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10392 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10393 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10394 * config/avr/avr.h:
10395 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10396 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10397 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10398 (STRING_LIMIT): Move to elf.h.
10399 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10400 (ASM_DECLARE_OBJECT_NAME): Remove.
10401 (ESCAPES): Remove.
10402 (ASM_OUTPUT_SKIP): Remove.
10403 (DWARF2_DEBUGGING_INFO): Remove.
10404 (OBJECT_FORMAT_ELF): Remove.
10405 (USER_LABEL_PREFIX): Remove.
10406 (ASM_OUTPUT_EXTERNAL): Remove.
10407 (ASM_OUTPUT_ASCII): Remove.
10408 (TYPE_ASM_OP): Remove.
10409 (SIZE_ASM_OP): Remove.
10410 (WEAK_ASM_OP): Remove.
10411 (STRING_ASM_OP): Remove.
10412 (SET_ASM_OP): Remove.
10413 (ASM_WEAKEN_LABEL): Remove.
10414 (TYPE_OPERAND_FMT): Remove.
10415 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10416 (ASM_FINISH_DECLARE_OBJECT): Remove.
10417 (NO_DOLLAR_IN_LABEL): Remove.
10418 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10419 (ASM_OUTPUT_CASE_LABEL): Remove.
10420 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10421 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10422 (gas_output_ascii): Remove.
10423 (gas_output_limited_string): Remove.
10424 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10425 * config/avr/avr-protos.h
10426 (gas_output_ascii): Remove prototye.
10427 (gas_output_limited_string): Remove prototype.
10428
10429 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10430
10431 PR target/48637
10432 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10433 asm operands.
10434
10435 2011-06-27 Jan Hubicka <jh@suse.cz>
10436
10437 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10438 node instead of references in node.
10439
10440 2011-06-27 Richard Henderson <rth@redhat.com>
10441
10442 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10443 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10444 inside ifdef.
10445
10446 2011-06-27 Jakub Jelinek <jakub@redhat.com>
10447
10448 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10449
10450 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10451 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10452 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10453 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10454 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10455 (evaluate_stmt, execute_fold_all_builtins): Handle
10456 BUILT_IN_ASSUME_ALIGNED.
10457 * tree-ssa-dce.c (propagate_necessity): Likewise.
10458 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10459 call_may_clobber_ref_p_1): Likewise.
10460 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10461 (expand_builtin_assume_aligned): New function.
10462 * doc/extend.texi (__builtin_assume_aligned): Document.
10463
10464 PR debug/49544
10465 * cselib.c (promote_debug_loc): If cselib_preserve_constants
10466 and l has two DEBUG_INSN owned locs instead of just one, adjust
10467 the second location's setting_insn too.
10468
10469 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10470
10471 PR libmudflap/38738
10472 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10473
10474 2011-06-27 Nick Clifton <nickc@redhat.com>
10475
10476 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10477 bit position of highest bit set into a count of the high zero bits.
10478
10479 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10480
10481 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10482
10483 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10484
10485 PR lto/48492
10486 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10487 to a NULL parent.
10488
10489 2011-06-27 Richard Guenther <rguenther@suse.de>
10490
10491 PR tree-optimization/49394
10492 * passes.c (execute_one_pass): Restore current_pass after
10493 applying IPA transforms.
10494
10495 2011-06-27 Kai Tietz <ktietz@redhat.com>
10496
10497 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10498 out of type precision after operation.
10499 (find_bswap): Take for limit value the integer auto-promotion
10500 into account.
10501
10502 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10503
10504 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10505 forward scan as well.
10506
10507 2011-06-27 Tristan Gingold <gingold@adacore.com>
10508
10509 PR target/44241
10510 * config/vms/vms-protos.h: New file.
10511 * config/vms/vms-crtlmap.map: New file.
10512 * config/vms/vms.c: New file.
10513 * config/vms/make-crtlmap.awk: New file.
10514 * config/vms/vms-crtl.h: File removed.
10515 * config/vms/vms-crtl-64.h: File removed.
10516 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10517 * config/alpha/vms64.h: Do not include vms-crtl-64.h
10518 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10519 clear some builtins on VMS. Calls vms_patch_builtins.
10520 (avms_asm_output_external): Remove.
10521 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10522 (struct crtl_name_spec): Remove
10523 (DO_CTRL_NAMES): Remove.
10524 * config/ia64/vms.h (struct crtl_name_spec): Remove
10525 (DO_CTRL_NAMES): Remove.
10526 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10527 clear some builtins on VMS. Calls vms_patch_builtins.
10528 (ia64_asm_output_external): Remove DO_CRTL_NAME.
10529 * config/ia64/vms64.h: Do not include vms-crtl-64.h
10530 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10531
10532 2011-06-27 Tristan Gingold <gingold@adacore.com>
10533
10534 * config/alpha/alpha.c (alpha_end_function): Always generate .end
10535 directive on VMS.
10536
10537 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10538
10539 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10540 the function receives nonlocal gotos.
10541
10542 2011-06-27 Richard Guenther <rguenther@suse.de>
10543
10544 PR tree-optimization/49536
10545 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10546 For non-scalar inner types use a scalar type according to
10547 the scalar inner mode.
10548
10549 2011-06-27 Richard Guenther <rguenther@suse.de>
10550
10551 PR tree-optimization/49365
10552 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10553
10554 2011-06-27 Richard Guenther <rguenther@suse.de>
10555
10556 PR tree-optimization/49169
10557 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10558 the alignment of function decls.
10559
10560 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
10561
10562 PR target/47997
10563 * config/darwin.c (darwin_mergeable_string_section): Place string
10564 constants in '.cstring' rather than '.const' when CF/NSStrings are
10565 active.
10566
10567 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
10568
10569 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10570 (emit_save_register_window): Likewise.
10571 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10572 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
10573 Swap back %o7/%i7 in register naming.
10574
10575 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
10576
10577 PR driver/49371
10578 * config/darwin.c (darwin_override_options): Improve warning when
10579 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10580 is given with fpie/fPIE.
10581 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10582 * config/darwin9.h (PIE_SPEC): New.
10583
10584 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
10585
10586 * timevar.c (timevar_print): Increase width for display of timevar
10587 name.
10588
10589 2011-06-24 Jakub Jelinek <jakub@redhat.com>
10590
10591 PR c++/46400
10592 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10593 instead of TYPE_CHAIN for chain_next for types.
10594
10595 2011-06-24 Richard Henderson <rth@redhat.com>
10596
10597 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10598 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10599 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10600 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10601 (sparc_flat_expand_prologue): Emit individual instructions
10602 instead of one of the above.
10603
10604 2011-06-24 Easwaran Raman <eraman@google.com>
10605
10606 PR rtl-optimization/49429
10607 PR target/49454
10608 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
10609 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10610 used to copy y into x.
10611 * calls.c (initialize_argument_information): Mark
10612 an argument addressable if it is passed by invisible reference.
10613 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
10614 if it is passed by reference.
10615
10616 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
10617
10618 PR rtl-optimization/49504
10619 * rtlanal.c (nonzero_bits1): Properly handle addition or
10620 subtraction of a pointer in Pmode if pointers extend unsigned.
10621 (num_sign_bit_copies1): Likewise.
10622
10623 2011-06-24 Martin Jambor <mjambor@suse.cz>
10624
10625 PR tree-optimizations/49516
10626 * tree-sra.c (sra_modify_assign): Choose the safe path for
10627 aggregate copies if we also did scalar replacements.
10628
10629 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10630
10631 PR target/49335
10632 * config/arm/predicates.md (add_operator): New.
10633 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10634
10635 2011-06-24 Andi Kleen <ak@linux.intel.com>
10636
10637 * tree-sra.c (type_internals_preclude_sra_p): Add msg
10638 parameter. Split up ifs and report reason in *msg.
10639 (reject): Add.
10640 (find_var_candiate): Add msg variable.
10641 Split up ifs and report reason to reject.
10642 (find_param_candidates): Add msg variable.
10643 Pass msg to type_internals_preclude_sra_p.
10644
10645 2011-06-23 Jeff Law <law@redhat.com>
10646
10647 PR middle-end/48770
10648 * reload.h (reload): Change to return a bool.
10649 * ira.c (ira): If requested by reload, run a fast DCE pass after
10650 reload has completed. Fix comment typo.
10651 * reload1.c (need_dce): New file scoped static.
10652 (reload): Set reload_completed here. Return whether or not a DCE
10653 pass after reload is needed.
10654 (delete_dead_insn): Set need_dce as needed.
10655
10656 PR middle-end/49465
10657 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10658 to detect threading through joiner block. If there was already
10659 an edge to the new target, then do not change the PHI nodes.
10660
10661 2011-06-23 Jakub Jelinek <jakub@redhat.com>
10662
10663 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10664 get_pointer_alignment to see if base isn't sufficiently aligned.
10665
10666 2011-06-23 Jan Hubicka <jh@suse.cz>
10667
10668 PR tree-optimize/49373
10669 * tree-pass.h (all_late_ipa_passes): Declare.
10670 * cgraphunit.c (init_lowered_empty_function): Fix properties.
10671 (cgraph_optimize): Execute late passes; remove unreachable funcions
10672 after materialization.
10673 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10674 LTOing.
10675 * passes.c (all_late_ipa_passes): Declare.
10676 (dump_passes, register_pass): Handle late ipa passes.
10677 (init_optimization_passes): Move ipa_pta to late passes; schedule
10678 fixup_cfg at beggining of all_passes.
10679 (apply_ipa_transforms): New function.
10680 (execute_one_pass): When doing simple ipa pass, apply all transforms.
10681
10682 2011-06-23 Joseph Myers <joseph@codesourcery.com>
10683
10684 * params.c: Include common/common-target.h. Don't include tm.h.
10685 (lang_independent_params): Move from toplev.c.
10686 (global_init_params): New.
10687 * params.h (global_init_params): Declare.
10688 * target.def (default_params): Move to common-target.def.
10689 * toplev.c (lang_independent_options): Remove.
10690 (lang_independent_params): Move to params.c.
10691 (general_init): Use global_init_params.
10692 * common/common-target.def (option_default_params): Move from
10693 target.def.
10694 * common/config/ia64/ia64-common.c: Include params.h.
10695 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10696 from ia64.c.
10697 * common/config/rs6000/rs6000-common.c: Include params.h.
10698 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10699 from rs6000.c.
10700 * common/config/sh/sh-common.c: Include params.h.
10701 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10702 from sh.c.
10703 * common/config/spu/spu-common.c: Include params.h.
10704 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10705 from spu.c.
10706 * config/ia64/ia64.c (ia64_option_default_params,
10707 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10708 * config/rs6000/rs6000.c (rs6000_option_default_params,
10709 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10710 * config/sh/sh.c (sh_option_default_params,
10711 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10712 * config/spu/spu.c (spu_option_default_params,
10713 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10714 * Makefile.in (OBJS): Remove params.o.
10715 (OBJS-libcommon-target): Add params.o.
10716 (params.o, $(common_out_object_file)): Update dependencies.
10717 * doc/tm.texi: Regenerate.
10718
10719 2011-06-23 Alan Modra <amodra@gmail.com>
10720
10721 PR bootstrap/49383
10722 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10723 invocation for 2011-06-09 changes.
10724
10725 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10726
10727 PR libgomp/49490
10728 * omp-low.c (expand_omp_for_static_nochunk): Only
10729 use n ceil/ nthreads size for the first n % nthreads threads in the
10730 team instead of all threads except for the last few ones which
10731 get less work or none at all.
10732
10733 PR debug/49496
10734 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10735 uses.
10736
10737 2011-06-22 Richard Guenther <rguenther@suse.de>
10738
10739 PR tree-optimization/49493
10740 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10741 Refer to the alias target of variables.
10742 (associate_varinfo_to_alias_1): Remove.
10743 (ipa_pta_execute): Do not associate aliases with anything.
10744 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10745 (cgraph_function_node): Likewise.
10746 (cgraph_function_or_thunk_node): Likewise.
10747 (varpool_variable_node): Likewise.
10748
10749 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10750
10751 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10752 * config.gcc (arm*-*-linux*): Default to gnu tls.
10753 (arm*-*-*): Add --with-tls option.
10754 (all_defaults): Add 'tls'.
10755
10756 2011-06-22 Richard Henderson <rth@redhat.com>
10757
10758 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10759 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10760 (dwarf2out_frame_debug_cfa_window_save): Rename from
10761 dwarf2out_window_save; make static.
10762 * tree.h (dwarf2out_window_save): Don't declare.
10763
10764 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10765 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10766 (emit_save_register_window): Rename from gen_save_register_window;
10767 emit the insn and add REG_CFA_* notes.
10768 (sparc_expand_prologue): Update to match.
10769 * config/sparc/sparc.md (save_register_window_1): Simplify from
10770 save_register_window<P:mode>.
10771
10772 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
10773
10774 PR target/49497
10775 * config/i386/i386.md (*lea_general_2): Always allow SImode.
10776 (*lea_general_2_zext): Likewise.
10777 (imul to lea peepholes): Use const359_operand and check
10778 TARGET_PARTIAL_REG_STALL.
10779
10780 * config/i386/predicates.md (const359_operand): New.
10781
10782 2011-06-22 Michael Matz <matz@suse.de>
10783
10784 * cgraphunit.c (assemble_thunk): Use correct return type.
10785
10786 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
10787 Dmitry Melnik <dm@ispras.ru>
10788
10789 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10790 (neon_output_shift_immediate): Ditto.
10791 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10792 prototype.
10793 (neon_output_shift_immediate): Ditto.
10794 * config/arm/neon.md (vashl<mode>3): Modified constraint.
10795 (vashr<mode>3_imm): New insn pattern.
10796 (vlshr<mode>3_imm): Ditto.
10797 (vashr<mode>3): Modified constraint.
10798 (vlshr<mode>3): Ditto.
10799 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10800 predicate.
10801 (imm_for_neon_rshift_operand): Ditto.
10802 (imm_lshift_or_reg_neon): Ditto.
10803 (imm_rshift_or_reg_neon): Ditto.
10804
10805 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10806
10807 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10808
10809 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10810 builtin calls even if likelyvalue is not CONSTANT.
10811 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10812 Return get_value_for_expr of first operand
10813 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10814 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10815 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10816 their non-checking counterparts.
10817 (call_may_clobber_ref_p_1): Likewise.
10818 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10819 like their non-checking counterparts.
10820 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10821 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10822 like their non-checking counterparts.
10823 (find_func_clobbers): Likewise.
10824 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10825 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10826
10827 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10828 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10829 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10830 of base type reference as argument.
10831 (resolve_addr_in_expr): Likewise. Fix keep computation.
10832 (convert_descriptor_to_signed): Renamed to...
10833 (convert_descriptor_to_mode): ... this. For wider types convert to
10834 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10835 (typed_binop): New function.
10836 (scompare_loc_descriptor, ucompare_loc_descriptor,
10837 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10838 default to unsigned type instead of signed.
10839
10840 PR debug/47858
10841 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10842 (gimple_build_debug_source_bind_stat): New prototype.
10843 (gimple_build_debug_source_bind): Define.
10844 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10845 gimple_debug_source_bind_get_value,
10846 gimple_debug_source_bind_get_value_ptr,
10847 gimple_debug_source_bind_set_var,
10848 gimple_debug_source_bind_set_value): New inlines.
10849 * gimple.c (gimple_build_debug_source_bind_stat): New function.
10850 * gimple-pretty-print.c (dump_gimple_debug): Handle
10851 GIMPLE_DEBUG_SOURCE_BIND.
10852 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10853 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10854 * tree-parloops.c (eliminate_local_variables,
10855 separate_decls_in_region): Likewise.
10856 (separate_decls_in_region_debug): Renamed from
10857 separate_decls_in_region_debug_bind. Handle
10858 gimple_debug_source_bind_p.
10859 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10860 prototypes.
10861 (DECL_HAS_DEBUG_ARGS_P): Define.
10862 (struct tree_function_decl): Add has_debug_args_flag field.
10863 * tree.c (debug_args_for_decl): New variable.
10864 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10865 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10866 (rewrite_debug_stmt_uses): New function.
10867 (rewrite_stmt): Use it to rewrite debug stmt uses.
10868 * rtl.def (DEBUG_PARAMETER_REF): New.
10869 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10870 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10871 DEBUG_PARAMETER_REF.
10872 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10873 * print-rtl.c (print_rtx): Likewise.
10874 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10875 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10876 debug stmts in the first bb.
10877 * tree-inline.c (remap_ssa_name): If remapping default def
10878 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10879 a source bind debug stmt.
10880 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10881 (maybe_move_debug_stmts_to_successors): Likewise.
10882 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
10883 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10884 debug args vector from old_decl to new_decl.
10885 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10886 or modified parameters, add debug bind stmts before call
10887 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10888 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10889 on DECL_DEBUG_EXPRs from debug args vector.
10890 (expand_debug_source_expr): New function.
10891 (expand_debug_locations): Use it for source bind insns.
10892 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10893 * var-tracking.c (prepare_call_arguments): Add debug args
10894 to call_arguments if any.
10895 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10896 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10897 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10898 (get_ref_die_offset, parameter_ref_descriptor): New functions.
10899 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10900 (gen_subprogram_die): Handle parameters identified by
10901 DEBUG_PARAMETER_REF.
10902
10903 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10904
10905 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10906 * doc/install.texi (Configuration): Document --with-tls.
10907 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10908 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10909 (arm_tls_descseq_addr): New.
10910 (legitimize_tls_address): Add tlsdesc support.
10911 (arm_cannot_copy_insn_p): Check for tlscall.
10912 (arm_emit_tls_decoration): Likewise.
10913 * config/arm/arm.h (TARGET_GNU2_TLS): New.
10914 (OPTION_DEFAULT_SPECS): Add with-tls support.
10915 * config/arm/arm.md (R1_REGNUM): Define.
10916 (tlscall): New.
10917 * config/arm/arm.opt (tls_type): New enumeration type and values.
10918 (mtls-dialect): New switch.
10919 * config/arm/arm-opts.h (enum tls_type): New.
10920
10921 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
10922
10923 * attribs.c (register_attribute): Added assert to check that all
10924 attribute specs are registered with a name that is not empty and
10925 does not start with '_'.
10926 (decl_attributes): Avoid the lookup of the "naked" attribute spec
10927 if the function has no attributes.
10928 * tree.c (is_attribute_with_length_p): Removed.
10929 (is_attribute_p): Removed.
10930 (private_is_attribute_p): New.
10931 (private_lookup_attribute): New.
10932 (lookup_attribute): Removed.
10933 (lookup_ident_attribute): New.
10934 (remove_attribute): Require the first argument to be in the form
10935 'text', not '__text__'. Updated asserts.
10936 (merge_attributes): Use lookup_ident_attributes instead of
10937 lookup_attribute.
10938 (merge_dllimport_decl_attributes): Use remove_attribute.
10939 (attribute_list_contained): Likewise.
10940 (attribute_list_equal): Immediately return 1 if the arguments are
10941 identical pointers.
10942 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
10943 'int'. Require the first argument to be in the form 'text', not
10944 '__text__'. Require the second argument to be an identifier.
10945 (lookup_attribute): Made inline. Require the first argument to be
10946 in the form 'text', not '__text__'.
10947 (private_is_attribute_p, private_lookup_attribute): New.
10948 Updated comments.
10949
10950 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
10951
10952 * builtins.c: Add sync_ or SYNC__ to builtin names.
10953 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10954 * omp-low.c: Add sync_ or SYNC__ to builtin names.
10955
10956 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10957
10958 PR target/33049
10959 * config/avr/avr.md (extzv): New expander.
10960 (*extzv): New insn.
10961 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10962 * config/avr/constraints.md (C04): New constraint.
10963 * doc/md.texi (Machine Constraints): Document it.
10964
10965 2011-06-21 Jakub Jelinek <jakub@redhat.com>
10966
10967 PR middle-end/49489
10968 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10969 unsignedp argument instead of 1 for clrsb_optab.
10970 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10971 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
10972 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10973 * optabs.c (widen_leading): Call widen_operand and expand_unop
10974 with 0 as unsignedp argument instead of 1 for clrsb_optab.
10975 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10976
10977 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10978
10979 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10980
10981 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
10982
10983 * gensupport.c (add_define_attr): New static function.
10984 (is_predicable): Allow multi-alternative lists for the "predicable"
10985 attribute.
10986 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10987 (process_one_cond_exec): Call alter_attrs_for_insn.
10988 * doc/md.texi (Defining Attributes): Mention some standard names.
10989 (Conditional Execution): Update documentation for "predicable".
10990
10991 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10992 __builtin_clrsbll): Document.
10993 * doc/rtl.texi (clrsb): New entry.
10994 * optabs.c (widen_leading): Renamed from widen_clz. New argument
10995 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
10996 (expand_unop): Handle clrsb_optab.
10997 (init_optabs): Initialize it.
10998 * optabs.h (enum optab_index): New entry OTI_clrsb.
10999 (clrsb_optab): Define.
11000 * genopinit.c (optabs): Add an entry for it.
11001 * builtins.c (expand_builtin): Handle clrsb builtin functions.
11002 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11003 BUILT_IN_CLRSBLL): New.
11004 * rtl.def (CLRSB): New code.
11005 * dwarf2out.c (mem_loc_descriptor): Handle it.
11006 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11007 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11008 and popcount.
11009 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11010 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11011 (__ctzDI2): Move declaration.
11012 * config/bfin/bfin.md (clrsbsi2): New expander.
11013 (signbitssi2): Use the CLRSB rtx.
11014 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
11015 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11016
11017 2011-06-21 Richard Guenther <rguenther@suse.de>
11018
11019 * ipa-inline-transform.c (inline_transform): Fix previous change.
11020
11021 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
11022
11023 PR tree-optimization/49478
11024 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11025 with constant operand.
11026
11027 2011-06-21 Richard Guenther <rguenther@suse.de>
11028
11029 * ipa-inline-transform.c (inline_transform): Fix typo.
11030
11031 2011-06-21 Richard Guenther <rguenther@suse.de>
11032
11033 PR tree-optimization/49483
11034 * tree-vect-stmts.c (vectorizable_assignment): Also handle
11035 VIEW_CONVERT_EXPR conversions.
11036
11037 2011-06-21 Joseph Myers <joseph@codesourcery.com>
11038
11039 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11040 * config/avr/avr-tables.opt: New file (generated).
11041 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11042 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11043 avr-mcus.def.
11044 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11045 (avr_option_override): Don't process -mmcu= argument here. Set
11046 avr_current_device using avr_mcu_index.
11047 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11048 * config/avr/avr.opt (mmcu=): Use Enum.
11049 * config/avr/t-avr (avr-devices.o): Update dependencies.
11050 ($(srcdir)/config/avr/avr-tables.opt): New.
11051 * target.def (help): Remove.
11052 * doc/tm.texi.in (TARGET_HELP): Remove.
11053 * doc/tm.texi: Regenerate.
11054 * opts.c: Don't include target.h.
11055 (common_handle_option): Don't call targetm.help.
11056 * system.h (TARGET_HELP): Poison.
11057 * Makefile.in (opts.o): Update dependencies.
11058
11059 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11060
11061 * config/usegld.h: New file.
11062 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11063 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11064 (LIB_SPEC): Likewise. Search /lib.
11065 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11066 (RDYNAMIC_SPEC): Handle GNU ld.
11067 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11068 Define.
11069 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11070 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11071 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11072 (STACK_CHECK_STATIC_BUILTIN): Define.
11073 * config/sol2.opt (compat-bsd): Remove.
11074 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11075 * config/sol2-bi.h: New file.
11076 * config/sol2-gld.h: Remove.
11077 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11078 (NO_DBX_BNSYM_ENSYM): Remove.
11079 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11080 (STACK_CHECK_STATIC_BUILTIN): Remove.
11081 Test USE_GLD instead of TARGET_GNU_LD.
11082 * config/i386/sol2-10.h: Rename to ...
11083 * config/i386/sol2-bi.h .. this.
11084 (SUBTARGET_EXTRA_SPECS): Redefine.
11085 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11086 (MULTILIB_DEFAULTS): Remove.
11087 (DEFAULT_ARCH32_P): Define.
11088 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11089 (ARCH64_SUBDIR): Define.
11090 Test USE_GLD instead of TARGET_GNU_LD.
11091 (I386_EMULATION): Rename to ...
11092 (ARCH32_EMULATION): ... this.
11093 (X86_64_EMULATION): Rename to ...
11094 (ARCH64_EMULATION): ... this.
11095 (TARGET_LD_EMULATION): Remove.
11096 (LINK_ARCH_SPEC): Remove.
11097 * config/i386/sol2-gas.h: Remove.
11098 * config/i386/t-sol2-10: Rename to ...
11099 * config/i386/t-sol2-64: ... this.
11100 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11101 (AS_SPARC64_FLAG): Define.
11102 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11103 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11104 depending on TARGET_CPU_DEFAULT.
11105 (CPP_CPU_SPEC): Redefine.
11106 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11107 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11108 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11109 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11110 ASM_ARCH_DEFAULT_SPEC): Redefine.
11111 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11112 LINK_ARCH_DEFAULT_SPEC.
11113 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11114 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11115 (ARCH64_SUBDIR): Define.
11116 (LINK_ARCH64_SPEC): Redefine.
11117 (CC1_SPEC): Redefine.
11118 (OPTION_DEFAULT_SPECS): Redefine.
11119 (MULTILIB_DEFAULTS): Define.
11120 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11121 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11122 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11123 (NO_DBX_BNSYM_ENSYM): Remove.
11124 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11125 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11126 (TARGET_ASM_NAMED_SECTION): Likewise.
11127 (STACK_CHECK_STATIC_BUILTIN): Remove.
11128 * config/sparc/sol2-bi.h: Remove.
11129 * config/sparc/sol2-gas-bi.h: Remove.
11130 * config/sparc/sol2-gas.h: Remove.
11131 * config/sparc/sol2-gld-bi.h: Remove.
11132 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11133 common parts ...
11134 (*-*-solaris2*): ... here.
11135
11136 2011-06-21 Christian Bruel <christian.bruel@st.com>
11137
11138 PR other/43564
11139 * ipa-inline.c (can_inline_edge_p): Check
11140 !DECL_DISREGARD_INLINE_LIMITS.
11141
11142 2011-06-21 Christian Bruel <christian.bruel@st.com>
11143
11144 PR middle-end/49139
11145 * cgraphunit.c (process_function_and_variable_attributes): warn when
11146 always_inline functions that are not inline.
11147 * ipa-inline-transform.c (inline_transform): Always call
11148 optimize_inline.
11149 * tree-inline.c (tree_inlinable_function_p): Use error instead
11150 of sorry.
11151 (expand_call_inline): Likewise.
11152
11153 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11154
11155 * Makefile.in (dg_target_exps): Set.
11156 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11157 instead of 7, try to divide it more evenly.
11158
11159 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11160
11161 PR target/49089
11162 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11163 (avx256_split_unaligned_store): New definition.
11164 (ix86_option_override_internal): Enable avx256 unaligned load/store
11165 splitting only when avx256_split_unaligned_load/store is set.
11166
11167 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11168
11169 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11170 open chain in a smaller mode without failing the entire block.
11171
11172 2011-06-21 Alan Modra <amodra@gmail.com>
11173
11174 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11175 CONST high part large-toc address.
11176 (rs6000_tls_referenced_p): Make static.
11177 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11178
11179 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11180
11181 PR target/49385
11182 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11183 one of the operands is a register.
11184
11185 2011-06-20 Kai Tietz <ktietz@redhat.com>
11186
11187 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11188 operations in combination with binary and.
11189
11190 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11191
11192 * regrename.c (do_replace): Don't update notes.
11193
11194 2011-06-20 Alan Modra <amodra@gmail.com>
11195
11196 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11197 of toc-relative address in CONST.
11198 (rs6000_delegitimize_address): Recognize changed address.
11199 (rs6000_legitimize_reload_address): Likewise.
11200 (rs6000_emit_move): Don't force these constants to memory.
11201 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11202 toc-relative address in CONST.
11203 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11204 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11205
11206 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11207
11208 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11209 (count_trailing_zeros): Likewise.
11210
11211 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11212
11213 PR other/49325
11214 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11215 .init_array can be used with .ctors on targets.
11216 * configure: Regenerated.
11217
11218 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11219
11220 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11221 if the element type is volatile.
11222
11223 2011-06-18 Jan Hubicka <jh@suse.cz>
11224
11225 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11226 extra name aliases.
11227 (lto_symtab_resolve_can_prevail_p): Likewise.
11228 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11229 * cgraphbuild.c (record_reference): Remove extra body alias code.
11230 (mark_load): Likewise.
11231 (mark_store): Likewise.
11232 * cgraph.h (varpool_node): Remove extra_name filed;
11233 add alias_of and extraname_alias.
11234 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11235 (varpool_alias_aliased_node): New inline function.
11236 (varpool_variable_node): New function.
11237 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11238 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11239 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11240 (input_varpool_node): Likewise.
11241 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11242 (varpool_externally_visible_p): Remove extra body alias code.
11243 (function_and_variable_visibility): Likewise.
11244 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11245 (ipa_pta_execute): Use it.
11246 * varpool.c (varpool_remove_node): Remove extra name alias code.
11247 (varpool_mark_needed_node): Likewise.
11248 (varpool_analyze_pending_decls): Analyze aliases.
11249 (assemble_aliases): New functoin.
11250 (varpool_assemble_decl): Use it.
11251 (varpool_create_variable_alias): New function.
11252 (varpool_extra_name_alias): Rewrite.
11253 (varpool_for_node_and_aliases): New function.
11254
11255 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11256
11257 PR target/49411
11258 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11259 last_arg_constant and last argument doesn't match its predicate,
11260 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11261 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11262 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11263 spelling of error message.
11264 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11265 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11266 const_0_to_255_operand instead of const_int_operand.
11267
11268 Revert:
11269 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11270
11271 * config/i386/sse.md (blendbits): Remove mode attribute.
11272 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11273 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11274 Check integer value of operand 3 in insn constraint.
11275
11276 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11277
11278 PR rtl-optimization/48542
11279 * reload.c (find_equiv_reg): Stop looking when finding a
11280 setjmp-type call.
11281 * reload1.c (reload_as_needed): Invalidate all reload
11282 registers when crossing a setjmp-type call.
11283
11284 2011-06-16 Jeff Law <law@redhat.com>
11285
11286 * tree-ssa-threadupdate.c (struct redirection_data): New field
11287 intermediate_edge.
11288 (THREAD_TARGET2): Define.
11289 (redirection_data_eq): Also check that the intermediate edge is equal.
11290 (lookup_redirection_data): Drop useless argument. Extract the
11291 outgoing_edge and intermediate edge from E. Callers updated.
11292 (copy_phi_args, update_destination_phis): New functions.
11293 (fix_duplicate_block_edges): Likewise.
11294 (create_edge_and_update_destination_phis): Duplicate all the edges
11295 hung off e->aux. Use copy_phi_args.
11296 (create_duplicates): Use fix_duplicate_block_edges.
11297 (fixup_template_block): Likewise.
11298 (redirect_edges): If necessary, redirect the joiner block's incoming
11299 edge to the duplicate of the joiner block.
11300 (thread_block): Don't muck up loops when threading through a joiner
11301 block.
11302 (thread_through_loop_header): Handle threading through a joiner block.
11303 (mark_threaded_blocks, register_jump_thread): Likewise.
11304 * tree-flow.h (register_jump_thread): Add new argument. Callers
11305 updated.
11306 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11307 (thread_across_edge): Handle threading through a joiner block.
11308
11309 2011-06-16 Martin Jambor <mjambor@suse.cz>
11310
11311 PR tree-optimization/49343
11312 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11313 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11314
11315 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11316
11317 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11318 inside RTX_CODE ifdef.
11319
11320 2011-06-16 Tom de Vries <tom@codesourcery.com>
11321
11322 PR target/45098
11323 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11324 Disallow NULL pointer for pointer arithmetic.
11325
11326 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11327
11328 PR target/49398
11329 Revert.
11330 2011-06-10 Wei Guozhi <carrot@google.com>
11331
11332 PR target/45335
11333 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11334 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11335 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11336 related peephole2.
11337 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11338 related peephole2.
11339 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11340 (arm_legitimate_ldrd_p): New prototype.
11341 (arm_output_ldrd): New prototype.
11342 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11343 (arm_legitimate_ldrd_p): New function.
11344 (arm_output_ldrd): New function.
11345
11346 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11347
11348 PR middle-end/46500
11349 * doc/tm.texi.in: Update Copyright date.
11350 * doc/tm.texi: Regenerate.
11351 * targhooks.c (default_setup_incoming_varargs): Replace
11352 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11353 (default_pretend_outgoing_varargs_named): Likewise.
11354 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11355 (hook_callee_copies_named): Likewise.
11356 (default_function_arg_advance): Likewise.
11357 (default_function_arg): Likewise.
11358 (default_function_incoming_arg): Likewise.
11359 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11360 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11361 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11362 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11363 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11364 * targhooks.h (default_setup_incoming_varargs): Likewise.
11365 (default_pretend_outgoing_varargs_named): Likewise.
11366 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11367 (hook_callee_copies_named): Likewise.
11368 (default_function_arg_advance): Likewise.
11369 (default_function_arg): Likewise.
11370 (default_function_incoming_arg): Likewise.
11371 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11372 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11373 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11374 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11375 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11376 * target.def (pass_by_reference): Likewise.
11377 (setup_incoming_varargs, strict_argument_naming): Likewise.
11378 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11379 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11380 (function_incoming_arg): Likewise.
11381 * target.h: Don't include "tm.h" .
11382 (cumulative_args_t): New typedef.
11383 [GCC_TM_H] (get_cumulative_args): New static inline function.
11384 [GCC_TM_H] (pack_cumulative_args): Likewise.
11385 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11386 argument type with cumulative_args_t.
11387 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11388 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11389 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11390 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11391 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11392 (frv_function_arg_1): Likewise.
11393 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11394 (s390_function_arg_advance, s390_function_arg): Likewise.
11395 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11396 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11397 (m32c_strict_argument_naming): Likewise.
11398 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11399 (spu_function_arg_advance): Likewise.
11400 (spu_setup_incoming_varargs): Likewise. Make static.
11401 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11402 Remove prototype.
11403 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11404 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11405 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11406 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11407 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11408 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11409 (mep_pass_by_reference, mep_function_arg): Likewise.
11410 (mep_function_arg_advance): Likewise.
11411 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11412 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11413 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11414 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11415 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11416 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11417 (ix86_setup_incoming_varargs): Likewise.
11418 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11419 (sh_strict_argument_naming): Likewise.
11420 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11421 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11422 (sh_function_arg_advance, sh_function_arg): Likewise.
11423 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11424 (pdp11_function_arg_advance): Likewise.
11425 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11426 Likewise.
11427 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11428 * config/avr/avr.c (avr_function_arg): Likewise.
11429 (avr_function_arg_advance): Likewise.
11430 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11431 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11432 (xtensa_function_arg_1): Likewise.
11433 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11434 Likewise.
11435 (xstormy16_function_arg): Likewise.
11436 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11437 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11438 (fr30_function_arg_advance): Likewise.
11439 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11440 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11441 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11442 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11443 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11444 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11445 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11446 (cris_function_arg, cris_function_incoming_arg): Likewise.
11447 (cris_function_arg_advance, cris_function_arg_1): Likewise.
11448 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11449 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11450 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11451 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11452 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11453 (mn10300_arg_partial_bytes): Likewise.
11454 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11455 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11456 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11457 (ia64_function_arg_1): Likewise.
11458 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11459 (m68k_function_arg): Likewise.
11460 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11461 (rs6000_function_arg, setup_incoming_varargs): Likewise.
11462 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11463 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11464 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11465 (picochip_arg_advance): Likewise.
11466 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11467 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11468 (mcore_function_arg_advance): Likewise.
11469 * config/score/score.c (score_pass_by_reference): Likewise.
11470 (score_function_arg_advance): Likewise.
11471 (score_arg_partial_bytes): Likewise. Make static.
11472 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11473 * config/arm/arm.c (arm_arg_partial_bytes): Replace
11474 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11475 (arm_function_arg, arm_function_arg_advance): Likewise.
11476 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11477 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11478 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11479 (pa_function_arg): Likewise.
11480 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11481 (mips_function_arg, mips_function_arg_advance): Likewise.
11482 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11483 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11484 * config/vax/vax.c (vax_function_arg): Likewise.
11485 (vax_function_arg_advance): Likewise.
11486 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11487 (h8300_function_arg_advance): Likewise.
11488 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11489 (v850_strict_argument_naming, v850_function_arg): Likewise.
11490 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11491 (v850_setup_incoming_varargs): Likewise.
11492 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11493 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11494 (mmix_function_arg, mmix_pass_by_reference): Likewise.
11495 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11496 with const void *.
11497 * config/bfin/bfin.c (setup_incoming_varargs): Replace
11498 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11499 (bfin_function_arg_advance, bfin_function_arg): Likewise.
11500 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11501 * calls.c (emit_call_1): Change type of args_so_far to
11502 cumulative_args_t. Changed all callers.
11503 (initialize_argument_information): Likewise.
11504 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11505 * dse.c (get_call_args): Likewise.
11506 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11507 * function.c (pass_by_reference, reference_callee_copied): Likewise.
11508 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11509 New member args_so_far_v. Changed all users.
11510 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11511 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11512 * config/mips/mips.c (mips_output_args_xfer): Likewise.
11513 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11514 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11515 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11516 Likewise.
11517 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11518 m32r_pass_by_reference.
11519
11520 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
11521
11522 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11523 argument to be a VEC of statements.
11524 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11525 assert that pattern statements have to have their vector type set.
11526 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11527 Change the first argument to be a VEC of statements. Update
11528 documentation.
11529 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11530 (vect_handle_widen_mult_by_const): New function.
11531 (vect_recog_widen_mult_pattern): Change the first argument to be a
11532 VEC of statements. Update documentation. Check that the constant is
11533 INTEGER_CST. Support multiplication by a constant that fits an
11534 intermediate type - call vect_handle_widen_mult_by_const.
11535 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11536 call. Handle additional pattern statements if necessary.
11537
11538 2011-06-16 Nick Clifton <nickc@redhat.com>
11539
11540 PR target/49427
11541 * config.gcc: Set cpu_type to v850 for any V850 architecture.
11542 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11543 md_file, extra_modes, out_file and extra_options are these are all
11544 deduced from cpu_type.
11545
11546 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11547
11548 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11549 truncation mask to 63.
11550
11551 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11552
11553 PR target/49313
11554 PR target/29524
11555 * longlong.h: Add AVR support:
11556 (count_leading_zeros): New macro.
11557 (count_trailing_zeros): New macro.
11558 (COUNT_LEADING_ZEROS_0): New macro.
11559 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11560 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11561 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11562 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11563 (LIB2FUNCS_EXCLUDE): Add _clz.
11564 * config/avr/libgcc.S (XCALL): Move up in file.
11565 (XJMP): New C Macro.
11566 (DEFUN): New asm macro.
11567 (ENDF): New asm macro.
11568 (__ffssi2): New function.
11569 (__ffshi2): New function.
11570 (__loop_ffsqi2): New function.
11571 (__ctzsi2): New function.
11572 (__ctzhi2): New function.
11573 (__clzdi2): New function.
11574 (__clzsi2): New function.
11575 (__clzhi2): New function.
11576 (__paritydi2): New function.
11577 (__paritysi2): New function.
11578 (__parityhi2): New function.
11579 (__parityqi2): New function.
11580 (__popcounthi2): New function.
11581 (__popcountsi2): New function.
11582 (__popcountdi2): New function.
11583 (__popcountqi2): New function.
11584 (__bswapsi2): New function.
11585 (__bswapdi2): New function.
11586 (__ashldi3): New function.
11587 (__ashrdi3): New function.
11588 (__lshrdi3): New function.
11589 Fix suspicous lines.
11590
11591 2011-06-16 Richard Guenther <rguenther@suse.de>
11592
11593 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11594 the same as x != 0.
11595 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11596 to (bool) X & 1.
11597 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11598 equality compares against zero for the lower bit.
11599
11600 2011-06-16 Jakub Jelinek <jakub@redhat.com>
11601
11602 PR tree-optimization/49419
11603 * tree-vrp.c (execute_vrp): Call init_range_assertions
11604 before estimate_numbers_of_iterations, call
11605 free_number_of_iterations_estimates before calling
11606 remove_range_assertions.
11607
11608 2011-06-16 Revital Eres <revital.eres@linaro.org>
11609
11610 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11611 (struct partial_schedule): Add rows_length field.
11612 (verify_partial_schedule): Check rows_length.
11613 (ps_insert_empty_row): Handle rows_length.
11614 (create_partial_schedule): Likewise.
11615 (free_partial_schedule): Likewise.
11616 (reset_partial_schedule): Likewise.
11617 (create_ps_insn): Remove rest_count argument.
11618 (remove_node_from_ps): Update rows_length.
11619 (add_node_to_ps): Update rows_length and call create_ps_insn
11620 without passing row_rest_count.
11621 (rotate_partial_schedule): Update rows_length.
11622
11623 2011-06-16 Revital Eres <revital.eres@linaro.org>
11624
11625 * ddg.c (add_intra_loop_mem_dep): New function.
11626 (build_intra_loop_deps): Call it.
11627
11628 2011-06-13 Jeff Law <law@redhat.com>
11629
11630 * df-problems.c (df_lr_local_compute): Manually CSE
11631 PIC_OFFSET_TABLE_REGNUM.
11632 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11633 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11634
11635 2011-06-13 Jan Hubicka <jh@suse.cz>
11636
11637 * cgraphunit.c (handle_alias_pairs): New function.
11638 (cgraph_finalize_compilation_unit): Use it.
11639 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11640 as externally visible.
11641
11642 2011-06-15 Richard Guenther <rguenther@suse.de>
11643
11644 * expr.c (expand_expr_real_2): Reduce all integral types to
11645 bitfield precision.
11646 (expand_expr_real_1): Likewise.
11647
11648 2011-06-15 Martin Jambor <mjambor@suse.cz>
11649
11650 PR tree-optimization/48613
11651 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11652 ipa_node_params_vector is NULL.
11653
11654 2011-06-15 Jakub Jelinek <jakub@redhat.com>
11655
11656 PR debug/49382
11657 * dwarf2out.c (dw_loc_list_node): Add force field.
11658 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11659 location in the list, even if it is modified before first real insn.
11660 (output_loc_list): Emit empty ranges with force flag set.
11661 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11662
11663 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
11664
11665 PR target/49349
11666 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11667 (fence_to_rewind). Use it to notice when bookkeeping will be placed
11668 above a fence. Update comments.
11669 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11670 placed just above it. Do not allow NULL place_to_insert.
11671
11672 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
11673
11674 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11675 (slpeel_tree_peel_loop_to_edge): Don't call
11676 remove_dead_stmts_from_loop.
11677 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11678 remove irrelevant pattern statements. For irrelevant statements
11679 check if it is the last statement of a detected pattern, use
11680 corresponding pattern statement instead.
11681 (destroy_loop_vec_info): No need to remove pattern statements,
11682 only free stmt_vec_info.
11683 (vect_transform_loop): For irrelevant statements check if it is
11684 the last statement of a detected pattern, use corresponding
11685 pattern statement instead.
11686 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11687 pattern statements. Set basic block for the new statement.
11688 (vect_pattern_recog): Update documentation.
11689 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11690 operands of pattern statements.
11691 (vectorizable_call): Fix printing. In case of a pattern statement
11692 use the lhs of the original statement when creating a dummy
11693 statement to replace the original call.
11694 (vect_analyze_stmt): For irrelevant statements check if it is
11695 the last statement of a detected pattern, use corresponding
11696 pattern statement instead.
11697 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11698 statements use gsi of the original statement.
11699
11700 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11701
11702 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11703 common/common-target-def.h.
11704 * target.def (default_target_flags, handle_option,
11705 supports_split_stack, optimization_table, init_struct,
11706 except_unwind_info, unwind_tables_default, have_named_sections):
11707 Move to common/common-target.def.
11708 * target.h (enum opt_levels, struct default_options): Move to
11709 common/common-target.h.
11710 * targhooks.c (default_except_unwind_info,
11711 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11712 default_target_handle_option, empty_optimization_table): Move to
11713 common/common-targhooks.c.
11714 * targhooks.h (default_except_unwind_info,
11715 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11716 default_target_handle_option, empty_optimization_table): Move to
11717 common/common-targhooks.h.
11718 * common/common-target-def.h: Include common/common-targhooks.h.
11719 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11720 defined.
11721 * common/common-target.def (handle_option, option_init_struct,
11722 option_optimization_table, default_target_flags,
11723 except_unwind_info, supports_split_stack, unwind_tables_default,
11724 have_named_sections): Move from target.def.
11725 (HOOK_PREFIX): Undefine at end of file.
11726 * common/common-target.h: Include input.h.
11727 (enum opt_levels, struct default_options): Move from target.h.
11728 * common/common-targhooks.c, common/common-targhooks.h: New.
11729 * config.gcc (target_has_targetm_common): Default to yes.
11730 (moxie*): Set target_has_targetm_common=no.
11731 (hppa*-*-*): Don't set target_has_targetm_common=yes.
11732 * doc/tm.texi: Regenerate.
11733 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11734 (C_TARGET_DEF_H): Add common/common-targhooks.h.
11735 (GCC_OBJS): Remove vec.o.
11736 (OBJS): Remove hooks.o and vec.o.
11737 (OBJS-libcommon-target): Add vec.o, hooks.o and
11738 common/common-targhooks.o.
11739 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11740 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11741 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11742 cfglayout.o, $(out_object_file), $(common_out_object_file)):
11743 Update dependencies.
11744 (common/common-targhooks.o): New.
11745 * common/config/default-common.c: Include tm.h. Add FIXME comment.
11746 * common/config/pa/pa-common.c: Include more headers. Take
11747 copyright dates from pa.c.
11748 (pa_option_optimization_table, pa_handle_option,
11749 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11750 TARGET_HANDLE_OPTION): Move from pa.c.
11751 * common/config/alpha/alpha-common.c,
11752 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11753 common/config/bfin/bfin-common.c,
11754 common/config/cris/cris-common.c,
11755 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11756 common/config/h8300/h8300-common.c,
11757 common/config/i386/i386-common.c,
11758 common/config/ia64/ia64-common.c,
11759 common/config/iq2000/iq2000-common.c,
11760 common/config/lm32/lm32-common.c,
11761 common/config/m32c/m32c-common.c,
11762 common/config/m32r/m32r-common.c,
11763 common/config/m68k/m68k-common.c,
11764 common/config/mcore/mcore-common.c,
11765 common/config/mep/mep-common.c,
11766 common/config/microblaze/microblaze-common.c,
11767 common/config/mips/mips-common.c,
11768 common/config/mmix/mmix-common.c,
11769 common/config/mn10300/mn10300-common.c,
11770 common/config/pdp11/pdp11-common.c,
11771 common/config/picochip/picochip-common.c,
11772 common/config/rs6000/rs6000-common.c,
11773 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11774 common/config/score/score-common.c, common/config/sh/sh-common.c,
11775 common/config/sparc/sparc-common.c,
11776 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11777 common/config/vax/vax-common.c,
11778 common/config/xstormy16/xstormy16-common.c,
11779 common/config/xtensa/xtensa-common.c: New.
11780 * config/alpha/alpha.c: Include common/common-target.h.
11781 (alpha_option_optimization_table, alpha_handle_option,
11782 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11783 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11784 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11785 * config/arm/arm.c (arm_option_optimization_table,
11786 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11787 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11788 arm-common.c.
11789 * config/avr/avr.c (avr_option_optimization_table,
11790 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11791 to avr-common.c.
11792 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11793 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11794 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11795 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11796 * config/cris/cris.c (cris_option_optimization_table,
11797 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11798 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11799 cris-common.c.
11800 * config/fr30/fr30.c (fr30_option_optimization_table,
11801 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11802 to fr30-common.c.
11803 * config/frv/frv.c (frv_option_optimization_table,
11804 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11805 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11806 * config/h8300/h8300.c (h8300_option_optimization_table,
11807 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11808 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11809 * config/i386/i386-protos.h (ix86_handle_option): Declare.
11810 * config/i386/i386.c: Include common/common-target.h.
11811 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11812 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11813 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11814 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11815 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11816 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11817 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11818 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11819 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11820 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11821 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11822 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11823 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11824 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11825 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11826 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11827 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11828 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11829 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11830 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11831 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11832 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11833 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11834 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11835 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11836 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11837 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11838 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11839 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11840 ix86_option_optimization_table, ix86_option_init_struct,
11841 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11842 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11843 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11844 i386-common.c.
11845 * config/i386/t-i386 (i386.o): Update dependencies.
11846 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11847 * config/ia64/ia64.c (ia64_option_optimization_table,
11848 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11849 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11850 ia64_handle_option): Move to ia64-common.c.
11851 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11852 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11853 * config/lm32/lm32.c (lm32_option_optimization_table,
11854 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11855 to lm32-common.c.
11856 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11857 m32c-common.c.
11858 * config/m32r/m32r.c (m32r_option_optimization_table,
11859 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11860 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11861 m32r_handle_option): Move to m32r-common.c.
11862 (m32r_memory_move_cost): Remove comment referring to
11863 TARGET_HANDLE_OPTION.
11864 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11865 Move to m68k-common.c.
11866 * config/mcore/mcore.c (mcore_option_optimization_table,
11867 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11868 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11869 * config/mep/mep.c (mep_option_optimization_table,
11870 mep_handle_option, TARGET_HANDLE_OPTION,
11871 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11872 Move to mep-common.c.
11873 * config/microblaze/microblaze.c
11874 (microblaze_option_optimization_table,
11875 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11876 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11877 * config/mips/mips.c (mips_handle_option,
11878 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11879 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11880 mips-common.c.
11881 * config/mmix/mmix.c (mmix_option_optimization_table,
11882 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11883 Move to mmix-common.c.
11884 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11885 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11886 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11887 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11888 * config/pa/pa.c: Include common/common-target.h.
11889 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11890 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11891 pa_handle_option): Move to pa-common.c.
11892 (pa_option_override): Use targetm_common.except_unwind_info.
11893 (pa_asm_output_mi_thunk, pa_function_section): Use
11894 targetm_common.have_named_sections.
11895 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11896 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11897 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11898 pdp11_handle_option, pdp11_option_init_struct): Move to
11899 pdp11-common.c.
11900 * config/picochip/picochip.c (picochip_option_optimization_table,
11901 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11902 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11903 * config/rs6000/rs6000.c: Include common/common-target.h.
11904 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11905 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11906 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11907 rs6000_handle_option): Move to rs6000-common.c.
11908 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11909 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11910 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11911 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11912 * config/s390/s390.c (processor_flags_table,
11913 s390_option_optimization_table, s390_option_init_struct,
11914 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11915 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11916 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11917 * config/s390/s390.h (processor_flags_table): Declare.
11918 * config/score/score.c (score_option_optimization_table,
11919 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11920 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11921 score_handle_option): Move to score-common.c.
11922 * config/sh/sh.c (sh_option_optimization_table,
11923 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11924 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11925 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11926 * config/sparc/sparc.c: Include common/common-target.h.
11927 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11928 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11929 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11930 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11931 spu_option_init_struct): Move to spu-common.c.
11932 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11933 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11934 * config/v850/v850.c (small_memory_physical_max,
11935 v850_handle_memory_optionn v850_handle_option,
11936 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11937 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11938 v850-common.c.
11939 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11940 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11941 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11942 Move to xtensa-common.c.
11943 * cfglayout.c: Include common/common-target.h.
11944 (fixup_reorder_chain): Use targetm_common.have_named_sections.
11945 * cfgrtl.c: Include common/common-target.h.
11946 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11947 targetm_common.have_named_sections.
11948 * dbxout.c: Include common/common-target.h.
11949 (dbxout_function_end): Use targetm_common.have_named_sections.
11950 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11951 targetm_common.except_unwind_info.
11952 * dwarf2out.c: Include common/common-target.h.
11953 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11954 dwarf2out_begin_prologue, dwarf2out_frame_init,
11955 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11956 targetm_common.except_unwind_info.
11957 * except.c: Include common/common-target.h.
11958 (init_eh, finish_eh_generation,
11959 output_one_function_exception_table): Use
11960 targetm_common.except_unwind_info.
11961 (switch_to_exception_section): Use targetm_common.have_named_sections.
11962 * explow.c: Include common/common-target.h.
11963 * expr.c: Include common/common-target.h.
11964 (build_personality_function): Use targetm_common.except_unwind_info.
11965 * function.c: Include common/common-target.h.
11966 (expand_function_end): Use targetm_common.except_unwind_info.
11967 * haifa-sched.c: Include common/common-target.h.
11968 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11969 * lto-opts.c: Include common/common-target.h instead of target.h.
11970 (lto_reissue_options): Use targetm_common.handle_option.
11971 * opts.c: Include common/common-target.h.
11972 (target_handle_option): Use targetm_common.handle_option.
11973 (init_options_struct): Update comment referring to
11974 targetm.target_option.optimization. Use
11975 targetm_common.default_target_flags,
11976 targetm_common.unwind_tables_default and
11977 targetm_common.option_init_struct.
11978 (default_options_optimization): Use
11979 targetm_common.option_optimization_table.
11980 (finish_options): Use targetm_common.except_unwind_info,
11981 targetm_common.unwind_tables_default,
11982 targetm_common.have_named_sections and
11983 targetm_common.supports_split_stack.
11984 * toplev.c: Include common/common-target.h.
11985 (process_options): Use targetm_common.have_named_sections.
11986 * tree-tailcall.c: Include common/common-target.h.
11987 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11988 * tree.c: Include common/common-target.h.
11989 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11990 * varasm.c: Include common/common-target.h.
11991 (resolve_unique_section, hot_function_section,
11992 default_function_section): Use targetm_common.have_named_sections.
11993
11994 2011-06-14 Easwaran Raman <eraman@google.com>
11995
11996 PR rtl-optimization/44194
11997 * dse.c: Include tree-flow.h
11998 (insn_info): Add new field non_frame_wild_read.
11999 (group_info): Add new fields escaped_n and escaped_p.
12000 (kill_on_calls): New variable.
12001 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12002 (dse_step0): Initialize kill_on_calls.
12003 (can_escape): New function.
12004 (set_usage_bits): Add additional parameter; record information
12005 about escaped locations.
12006 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12007 (dse_step2_nospill): Set kill_on_calls based on
12008 group->escaped_n and group->escaped_n.
12009 (add_wild_read): Refactor into...
12010 (reset_active_stores): ... New function, and
12011 (free_read_records): ... New function.
12012 (add_non_frame_wild_read): New function.
12013 (scan_insn): Call add_non_frame_wild_read on non-const calls.
12014 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12015 (dse_step5_nospill): Call scan_reads_nospill for instructions
12016 marked as non_frame_wild_read.
12017 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12018
12019 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12020
12021 * common/common-target-def.h, common/common-target.def,
12022 common/common-target.h, common/config/default-common.c,
12023 common/config/pa/pa-common.c: New files.
12024 * Makefile.in (common_out_file, common_out_object_file,
12025 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12026 (OBJS-libcommon-target): Include $(common_out_object_file).
12027 (prefix.o): Update dependencies.
12028 ($(common_out_object_file), common/common-target-hooks-def.h,
12029 s-common-target-hooks-def-h): New.
12030 (s-tm-texi): Also check timestamp on common-target.def.
12031 (build/genhooks.o): Update dependencies.
12032 * config.gcc (common_out_file, target_has_targetm_common): Define.
12033 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12034 TARGET_ALWAYS_STRIP_DOTDOT.
12035 * configure.ac (common_out_object_file): Define.
12036 (common_out_file, common_out_object_file): Substitute.
12037 (common): Create directory.
12038 * configure: Regenerate.
12039 * doc/tm.texi.in (targetm_common): Document.
12040 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12041 * doc/tm.texi: Regenerate.
12042 * genhooks.c (hook_array): Also include common/common-target.def.
12043 * prefix.c (tm.h): Don't include.
12044 (common/common-target.h): Include.
12045 (ALWAYS_STRIP_DOTDOT): Don't define.
12046 (update_path): Use targetm_common.always_strip_dotdot instead of
12047 ALWAYS_STRIP_DOTDOT.
12048 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12049
12050 2011-06-14 David Li <davidxl@google.com>
12051
12052 * passes.c (execute_function_todo): Remove TODO_dump_func.
12053 (execute_one_pass): Remove TODO_dump_func.
12054 (execute_function_dump): New function.
12055 * tree-vrp.c: Remove TODO_dump_func.
12056 * regrename.c: Remove TODO_dump_func.
12057 * fwprop.c: Remove TODO_dump_func.
12058 * tree-into-ssa.c: Remove TODO_dump_func.
12059 * tree-complex.c: Remove TODO_dump_func.
12060 * tracer.c: Remove TODO_dump_func.
12061 * tree-loop-distribution.c: Remove TODO_dump_func.
12062 * postreload-gcse.c: Remove TODO_dump_func.
12063 * postreload.c: Remove TODO_dump_func.
12064 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12065 * tree-tailcall.c: Remove TODO_dump_func.
12066 * ipa-cp.c: Remove TODO_dump_func.
12067 * final.c: Remove TODO_dump_func.
12068 * tree-emutls.c: Remove TODO_dump_func.
12069 * omp-low.c: Remove TODO_dump_func.
12070 * tree-ssa-dse.c: Remove TODO_dump_func.
12071 * tree-ssa-uncprop.c: Remove TODO_dump_func.
12072 * auto-inc-dec.c: Remove TODO_dump_func.
12073 * reorg.c: Remove TODO_dump_func.
12074 * tree-ssa-copyrename.c: Remove TODO_dump_func.
12075 * tree-ssa-ccp.c: Remove TODO_dump_func.
12076 * compare-elim.c: Remove TODO_dump_func.
12077 * mode-switching.c: Remove TODO_dump_func.
12078 * modulo-sched.c: Remove TODO_dump_func.
12079 * tree-call-cdce.c: Remove TODO_dump_func.
12080 * cse.c: Remove TODO_dump_func.
12081 * web.c: Remove TODO_dump_func.
12082 * tree-stdarg.c: Remove TODO_dump_func.
12083 * lto-streamer-out.c: Remove TODO_dump_func.
12084 * tree-ssa-math-opts.c: Remove TODO_dump_func.
12085 * tree-ssa-dom.c: Remove TODO_dump_func.
12086 * tree-nrv.c: Remove TODO_dump_func.
12087 * loop-init.c: Remove TODO_dump_func.
12088 * gimple-low.c: Remove TODO_dump_func.
12089 * ipa-inline.c: Remove TODO_dump_func.
12090 * tree-ssa-sink.c: Remove TODO_dump_func.
12091 * jump.c: Remove TODO_dump_func.
12092 * ifcvt.c: Remove TODO_dump_func.
12093 * tree-ssa-loop.c: Remove TODO_dump_func.
12094 * recog.c: Remove TODO_dump_func.
12095 * dse.c: Remove TODO_dump_func.
12096 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12097 * matrix-reorg.c: Remove TODO_dump_func.
12098 * tree-eh.c: Remove TODO_dump_func.
12099 * regmove.c: Remove TODO_dump_func.
12100 * function.c: Remove TODO_dump_func.
12101 * tree-vectorizer.c: Remove TODO_dump_func.
12102 * ipa-split.c: Remove TODO_dump_func.
12103 * gcse.c: Remove TODO_dump_func.
12104 * tree-if-conv.c: Remove TODO_dump_func.
12105 * init-regs.c: Remove TODO_dump_func.
12106 * tree-ssa-phiopt.c: Remove TODO_dump_func.
12107 * implicit-zee.c: Remove TODO_dump_func.
12108 * lower-subreg.c: Remove TODO_dump_func.
12109 * bt-load.c: Remove TODO_dump_func.
12110 * tree-dfa.c: Remove TODO_dump_func.
12111 * except.c: Remove TODO_dump_func.
12112 * emit-rtl.c: Remove TODO_dump_func.
12113 * store-motion.c: Remove TODO_dump_func.
12114 * cfgexpand.c: Remove TODO_dump_func.
12115 * tree-cfgcleanup.c: Remove TODO_dump_func.
12116 * cfgcleanup.c: Remove TODO_dump_func.
12117 * tree-ssa-pre.c: Remove TODO_dump_func.
12118 * tree-sra.c: Remove TODO_dump_func.
12119 * tree-mudflap.c: Remove TODO_dump_func.
12120 * tree-ssa-copy.c: Remove TODO_dump_func.
12121 * cfglayout.c: Remove TODO_dump_func.
12122 * tree-ssa-forwprop.c: Remove TODO_dump_func.
12123 * tree-ssa-dce.c: Remove TODO_dump_func.
12124 * ira.c: Remove TODO_dump_func.
12125 * tree-ssa.c: Remove TODO_dump_func.
12126 * integrate.c: Remove TODO_dump_func.
12127 * tree-optimize.c: Remove TODO_dump_func.
12128 * tree-ssa-phiprop.c: Remove TODO_dump_func.
12129 * tree-object-size.c: Remove TODO_dump_func.
12130 * combine.c: Remove TODO_dump_func.
12131 * bb-reorder.c: Remove TODO_dump_func.
12132 * cprop.c: Remove TODO_dump_func.
12133 * var-tracking.c: Remove TODO_dump_func.
12134 * tree-profile.c: Remove TODO_dump_func.
12135 * tree-vect-generic.c: Remove TODO_dump_func.
12136 * reg-stack.c: Remove TODO_dump_func.
12137 * sched-rgn.c: Remove TODO_dump_func.
12138 * tree-ssa-structalias.c: Remove TODO_dump_func.
12139 * tree-switch-conversion.c: Remove TODO_dump_func.
12140 * tree-cfg.c: Remove TODO_dump_func.
12141 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12142 * combine-stack-adj.c: Remove TODO_dump_func.
12143 * dce.c: Remove TODO_dump_func.
12144 * tree-ssanames.c: Remove TODO_dump_func.
12145 * regcprop.c: Remove TODO_dump_func.
12146
12147 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12148
12149 PR middle-end/47364
12150 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12151 and properly handle result not in Pmode.
12152
12153 2011-06-14 Robert Millan <rmh@gnu.org>
12154
12155 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12156 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12157 `config/linux.h'.
12158
12159 * config/i386/kfreebsd-gnu64.h: New file.
12160 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12161 with `i386/kfreebsd-gnu64.h'.
12162
12163 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12164 (GNU_USER_LINK_EMULATION64): New macros.
12165 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12166 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12167 of hardcoding `elf_i386' and `elf_x86_64'.
12168
12169 2011-06-14 Nick Clifton <nickc@redhat.com>
12170
12171 PR target/49403
12172 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12173
12174 PR target/49402
12175 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12176
12177 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12178
12179 PR fortran/49103
12180 * tree.h (DECL_NONSHAREABLE): Define.
12181 (struct tree_decl_common): Change decl_common_unused to
12182 decl_nonshareable_flag.
12183 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12184 Ignore vars with DECL_NONSHAREABLE bit set.
12185 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12186 on stores to automatic aggregate vars.
12187
12188 PR rtl-optimization/49390
12189 Revert:
12190 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12191
12192 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12193 MEM_ALIAS_SET.
12194
12195 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12196 Tom de Vries <tom@codesourcery.com>
12197
12198 PR target/45098
12199 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12200 Document changed semantics.
12201 (max_stmt_executions, max_stmt_executions_int): Declare.
12202 * tree-data-ref.c (estimated_loop_iterations)
12203 (estimated_loop_iterations_int): Move functions...
12204 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12205 (estimated_loop_iterations_int): here.
12206 (record_estimate): Change nb_iterations_upper_bound and
12207 nb_iterations_estimate semantics.
12208 (max_stmt_executions, max_stmt_executions_int): New function.
12209 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12210 (max_stmt_executions_tree): this.
12211 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12212 estimated_loop_iterations_tree.
12213 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12214 max_stmt_executions_int instead of estimated_loop_iterations_int.
12215 * predict.c (predict_loops): Idem.
12216 * tree-parloops.c (parallelize_loops): Idem.
12217 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12218 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12219 (init_omega_for_ddr_1): Idem.
12220 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12221 (loop_prefetch_arrays): Idem
12222 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12223 max_stmt_executions instead of estimated_loop_iterations.
12224 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12225 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12226 instead of nb_iterations_upper_bound.
12227
12228 2011-06-13 Jan Hubicka <jh@suse.cz>
12229
12230 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12231
12232 2011-06-14 Richard Henderson <rth@redhat.com>
12233
12234 PR debug/48459
12235 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12236 (based_loc_descr): Assert it's true.
12237 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12238 aborting immediately.
12239
12240 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12241 Mingfeng Wu <mingfeng@faraday-tech.com>
12242
12243 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12244
12245 2011-06-13 Jan Hubicka <jh@suse.cz>
12246
12247 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12248
12249 2011-06-13 Jan Hubicka <jh@suse.cz>
12250
12251 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12252 similarly to DECL_COMDAT.
12253 * cgraphunit.c (cgraph_analyze_function): Likewise.
12254 * ipa.c (function_and_variable_visibility): Likewise.
12255
12256 2011-06-13 Jan Hubicka <jh@suse.cz>
12257
12258 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12259 BINFO_VIRTUALS when streaming for ltrans unit.
12260
12261 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12262
12263 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12264 (movdi_internal64): Same.
12265
12266 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12267
12268 PR target/44618
12269 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12270 a set of similar patterns, where the MATCH_OPERAND for the function
12271 argument is replaced with individual references to hardware registers.
12272 (save_fpregs_<mode>): Ditto
12273 (restore_gpregs_<mode>): Ditto
12274 (return_and_restore_gpregs_<mode>): Ditto
12275 (return_and_restore_fpregs_<mode>): Ditto
12276 (return_and_restore_fpregs_aix_<mode>): Ditto
12277
12278 2011-06-13 Jan Hubicka <jh@suse.cz>
12279
12280 * ipa-utils.c (postorder_stack): New structure.
12281 (ipa_reverse_postorder): Handle aliases.
12282
12283 2011-06-13 Jan Hubicka <jh@suse.cz>
12284
12285 * ipa-inline.c (reset_edge_caches): Walk aliases.
12286 (update_caller_keys): Do not test inlinability of aliases.
12287 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12288 (do_estimate_growth): Fix typo.
12289
12290 2011-06-13 Jan Hubicka <jh@suse.cz>
12291
12292 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12293 (can_remove_node_now_p): ... here; handle same comdat groups.
12294 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12295 (inline_call): Update use of can_remove_node_now_p.
12296
12297 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12298
12299 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12300 condition to disallow non-identical memory locations.
12301 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12302 preference to bit manipulation instructions.
12303
12304 2011-06-13 Jan Hubicka <jh@suse.cz>
12305
12306 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12307 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12308 (nonremovable_p): New function.
12309 (cgraph_can_remove_if_no_direct_calls_p): New function.
12310 (used_from_object_file_p): New functoin.
12311 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12312 references from aliases.
12313 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12314 * ipa-inline.c (check_caller_edge): New function.
12315 (want_inline_function_called_once_p): Use it; accept aliases called
12316 once, too.
12317 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12318
12319 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12320
12321 PR target/48454
12322 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12323 correctly for the case with Quad vectors.
12324
12325 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12326 Ira Rosen <ira.rosen@linaro.org>
12327
12328 PR tree-optimization/49352
12329 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12330 all, make sure loop_use_stmt after the loop is a def stmt of a used
12331 SSA_NAME that is the only one defined inside of the loop. Don't
12332 check for COND_EXPR and GIMPLE_BINARY_RHS.
12333 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12334 check_reduction is true.
12335
12336 2011-06-11 Jan Hubicka <jh@suse.cz>
12337
12338 PR middle-end/49373
12339 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12340
12341 2011-06-11 Jan Hubicka <jh@suse.cz>
12342
12343 PR middle-end/48836
12344 * ipa-inline-transform.c: Include tree-pass.h
12345 (inline_transform): Set TODO_update_ssa_only_virtuals.
12346 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12347
12348 2011-06-11 Jan Hubicka <jh@suse.cz>
12349
12350 PR middle-end/49378
12351 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12352 aliases and thunks.
12353
12354 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12355
12356 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12357 Take number of iterations to peel into account for equally frequent
12358 misalignment values.
12359
12360 2011-06-11 Jan Hubicka <jh@suse.cz>
12361
12362 * lto-streamer-out.c (produce_symtab): Stream out the newly
12363 represented aliases.
12364
12365 2011-06-11 Jan Hubicka <jh@suse.cz>
12366
12367 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12368 varying args.
12369 (ipa_update_after_lto_read): Likewise.
12370 (ipa_write_node_info): Do not sream call_with_var_arguments.
12371 (ipa_read_node_info): Likewise.
12372
12373 2011-06-11 Jan Hubicka <jh@suse.cz>
12374
12375 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12376
12377 2011-06-11 Jan Hubicka <jh@suse.cz>
12378
12379 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12380 (lto_symtab_resolve_can_prevail_p): Likewise.
12381 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12382 * cgraph.c (same_body_aliases_done): New global var.
12383 (cgraph_same_body_alias_1): Rename to ...
12384 (cgraph_create_function_alias): ... this one; reorg to new
12385 representation.
12386 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12387 record references when asked to.
12388 (cgraph_add_thunk): Fix formating.
12389 (cgraph_get_node): Kill same body alias code.
12390 (cgraph_node_for_asm): Likewise.
12391 (cgraph_remove_same_body_alias): Remove.
12392 (cgraph_remove_node): Kill same body alias code.
12393 (cgraph_mark_address_taken_node): Mark also the aliased function
12394 as having address taken.
12395 (dump_cgraph_node): Dump same body aliases.
12396 (cgraph_for_node_thunks_and_aliases): Update for new alias
12397 representation.
12398 (cgraph_for_node_and_aliases): Likewise.
12399 * cgraph.h (same_body): Kll pointer.
12400 (same_body_alias): Update comment.
12401 (same_body_aliases_done): Declare.
12402 (cgraph_remove_same_body_alias): Remove declaration.
12403 (cgraph_create_function_alias): Declare.
12404 (cgraph_process_same_body_aliases): Declare.
12405 (cgraph_function_with_gimple_body_p): Check for alias.
12406 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12407 (cgraph_alias_aliased_node): New function.
12408 (cgraph_function_node): Update for new aliases.
12409 (cgraph_function_or_thunk_node): Likewise.
12410 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12411 (inline_call): Remove dead aliases.
12412 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12413 name hack for same body aliases.
12414 (clone_of_p): Look through aliases.
12415 (verify_cgraph_node): Verify aliases.
12416 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12417 (cgraph_process_same_body_aliases): New function.
12418 (process_function_and_variable_attributes): Disable weakref warning on
12419 alias.
12420 (cgraph_analyze_functions): Handle aliases.
12421 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12422 (assemble_thunks): Rename to ...
12423 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12424 (cgraph_expand_function): Remove alias output code.
12425 (cgraph_output_in_order): Skip aliases.
12426 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12427 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12428 (ipa_record_reference): Do not assert on alias references.
12429 (ipa_ref_has_aliases_p): New function.
12430 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12431 (ipa_ref_has_aliases_p): Declare.
12432 * lto-cgraph.c (lto_output_node): Handle aliases.
12433 (input_node): Likewise.
12434 * lto-streamer-out.c (lto_output): Skip aliases.
12435 (produce_symtab): Kill same_body_alias code.
12436 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12437 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12438 * ipa-inline.c (update_caller_keys): Walk aliases.
12439 (inline_small_functions): Fix thinko in previous patch.
12440 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12441 (function_and_variable_visibility): Do not walk same body aliases.
12442 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12443 (ipa_pta_execute): Use it.
12444
12445 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12446
12447 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12448 (*vec_dupv2df): Rename from vec_dupv2df.
12449 (vec_dupv2df): New expander.
12450
12451 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12452
12453 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12454
12455 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12456
12457 * config/i386/i386.md: Use default value in "isa" attribute.
12458 * config/i386/sse.md: Ditto.
12459 * config/i386/mmx.md: Ditto.
12460
12461 2011-06-10 Wei Guozhi <carrot@google.com>
12462
12463 PR target/45335
12464 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12465 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12466 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12467 related peephole2.
12468 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12469 related peephole2.
12470 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12471 (arm_legitimate_ldrd_p): New prototype.
12472 (arm_output_ldrd): New prototype.
12473 * config/arm/arm.c (arm_check_ldrd_operands): New function.
12474 (arm_legitimate_ldrd_p): New function.
12475 (arm_output_ldrd): New function.
12476
12477 2011-06-10 David Li <davidxl@google.com>
12478
12479 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12480 * passes.c (passr_eq): New function.
12481 (create_pass_tab): New function.
12482 (pass_traverse): New function.
12483 (dump_one_pass): New function.
12484 (dump_pass_list): New function.
12485 (dump_passes): New function.
12486
12487 2011-06-10 Jan Hubicka <jh@suse.cz>
12488
12489 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12490 setting the nothrow flag.
12491 * ipa-reference.c (propagate): Skip aliases.
12492 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12493 (propagate_nothrow): Skip aliases; do not update cgraph.
12494 (local_pure_const): Do not update cgraph.
12495 * tree-profile.c (tree_profiling): Do fixup_cfg.
12496
12497 2011-06-10 Jan Hubicka <jh@suse.cz>
12498
12499 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12500 (cgraph_local_node_p): ... here; handle aliases.
12501 (has_addr_references_p): Break out from ...;
12502 (cgraph_remove_unreachable_nodes) ... here.
12503
12504 2011-06-10 Jan Hubicka <jh@suse.cz>
12505
12506 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12507 * common.opt (flag_inline_functions_called_once): Do not
12508 initialize to 1.
12509
12510 2011-06-10 Jan Hubicka <jh@suse.cz>
12511
12512 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12513 (ipcp_initialize_node_lattices): Do not deal with aliases;
12514 Do not try to propagate through thunks.
12515 (ipcp_change_tops_to_bottom): Do not deal with aliases.
12516
12517 2011-06-10 Jan Hubicka <jh@suse.cz>
12518
12519 * ipa-prop.c (ipa_write_node_info): Stream jump functions
12520 for indirect calls.
12521 (ipa_read_node_info): Likewise.
12522
12523 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12524
12525 PR lto/49302
12526 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12527 (build_and_insert_call): Likewise.
12528 (build_and_insert_ref): New.
12529 (gimple_expand_builtin_pow): Minor cleanup.
12530 (gimple_expand_builtin_cabs): New.
12531 (execute_cse_sincos): Add case for BUILT_IN_CABS.
12532
12533 2011-06-10 Jan Hubicka <jh@suse.cz>
12534
12535 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12536 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12537 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12538 (ipcp_propagate_stage): Skip aliases when propagating.
12539 (ipcp_need_redirect_p): Skip aliases.
12540 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12541 collect_callers_of_node.
12542 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12543 for aliases.
12544 (ipa_compute_jump_functions): Look through aliases.
12545
12546 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12547
12548 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12549
12550 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12551
12552 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12553 Adjust comments.
12554 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12555
12556 2011-06-10 Jan Hubicka <jh@suse.cz>
12557
12558 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12559 Update call of gimple_get_virt_method_for_binfo.
12560 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12561 refuse_thunks parameter.
12562 (gimple_fold_call): Update.
12563 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12564
12565 2011-06-10 Jan Hubicka <jh@suse.cz>
12566
12567 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12568 (not_all_callers_have_enough_arguments_p): ... this one; turn into
12569 worker for cgraph_for_node_and_aliases.
12570 (convert_callers_for_node): Break out from ...
12571 (convert_callers): ... here.
12572 (modify_function): Use collect_callers_of_node.
12573 (ipa_early_sra): Use cgraph_for_node_and_aliases.
12574
12575 2011-06-10 Richard Guenther <rguenther@suse.de>
12576
12577 PR tree-optimization/49361
12578 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12579 when not already in gimple form.
12580
12581 2011-06-10 Richard Guenther <rguenther@suse.de>
12582
12583 PR bootstrap/49344
12584 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12585 FOR_EACH_PHI_OR_STMT_USE.
12586
12587 2011-06-10 Jan Hubicka <jh@suse.cz>
12588
12589 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12590 (clone_inlined_nodes): ... here.
12591 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12592 to real destination prior inlining.
12593 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12594 can_early_inline_edge_p, want_early_inline_function_p,
12595 want_early_inline_function_p, want_inline_small_function_p,
12596 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12597 edge_badness, update_all_callee_keys, lookup_recursive_calls,
12598 add_new_edges_to_heap, inline_small_functions, flatten_function,
12599 inline_always_inline_functions, early_inline_small_functions): Use
12600 cgraph_function_or_thunk_node.
12601 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12602 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12603 (do_estimate_edge_growth_1): Break out from ...
12604 (do_estimate_growth) ... here; walk aliases.
12605 (inline_generate_summary): Skip aliases.
12606
12607 2011-06-10 Richard Guenther <rguenther@suse.de>
12608
12609 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12610 forward when combining, visit inserted stmts when a stmt was changed.
12611
12612 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
12613
12614 * tree.h (error_operand_p): Add.
12615 * dbxout.c (dbxout_type_fields): Use the latter.
12616 * c-decl.c (add_stmt): Likewise.
12617 * gimplify.c (omp_add_variable, omp_notice_variable,
12618 gimplify_scan_omp_clauses): Likewise.
12619
12620 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
12621
12622 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12623 when a value is actually passed in regs.
12624
12625 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
12626 Laurent Rougé <laurent.rouge@menta.fr>
12627
12628 * doc/invoke.texi (SPARC options): Add -mflat.
12629 * config/sparc/sparc.opt: Likewise.
12630 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12631 (sparc_flat_expand_prologue): Declare.
12632 (sparc_flat_expand_epilogue): Likewise.
12633 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12634 (CPP_ENDIAN_SPEC): Replace with...
12635 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
12636 (CPP_SPEC): Adjust to above change.
12637 (EXTRA_SPECS): Likewise.
12638 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12639 (INCOMING_REGNO): Likewise.
12640 (OUTGOING_REGNO): Likewise.
12641 (LOCAL_REGNO): Likewise.
12642 (SETUP_FRAME_ADDRESSES): Likewise.
12643 (FIXED_REGISTERS): Set 0 for %fp.
12644 (CALL_USED_REGISTERS): Likewise.
12645 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12646 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12647 (RETURN_ADDR_REGNUM): Define.
12648 (RETURN_ADDR_RTX): Use it.
12649 (INCOMING_RETURN_ADDR_REGNUM): Define.
12650 (INCOMING_RETURN_ADDR_RTX): Use it.
12651 (DWARF_FRAME_RETURN_COLUMN): Likewise.
12652 (EH_RETURN_REGNUM): Define.
12653 (EH_RETURN_STACKADJ_RTX): Use it.
12654 (EH_RETURN_HANDLER_RTX): Delete.
12655 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12656 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12657 Delete.
12658 (struct machine_function): Add frame_size, apparent_frame_size,
12659 frame_base_reg, frame_base_offset, n_global_fp_regs and
12660 save_local_in_regs_p fields.
12661 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12662 sparc_frame_base_offset, sparc_n_global_fp_regs,
12663 sparc_save_local_in_regs_p): New macros.
12664 (sparc_option_override): Error out if -fcall-saved-REG is specified
12665 for Out registers.
12666 (eligible_for_restore_insn): Fix formatting.
12667 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
12668 (eligible_for_sibcall_delay): Likewise.
12669 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12670 (sparc_legitimate_address_p): Adjust to above change.
12671 (save_global_or_fp_reg_p): New predicate.
12672 (return_addr_reg_needed_p): Likewise.
12673 (save_local_or_in_reg_p): Likewise.
12674 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
12675 (SORR_SAVE, SORR_RESTORE): Delete.
12676 (sorr_pred_t): New typedef.
12677 (sorr_act_t): New enum.
12678 (save_or_restore_regs): Rename to...
12679 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
12680 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12681 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
12682 mechanism. Add CFI information for double-word saves in 32-bit mode.
12683 (emit_adjust_base_to_offset): New function extracted from...
12684 (emit_save_or_restore_regs): ...this. Rename the rest to...
12685 (emit_save_or_restore_regs_global_fp_regs): ...this.
12686 (emit_save_or_restore_regs_local_in_regs): New function.
12687 (gen_create_flat_frame_[123]): New functions.
12688 (sparc_expand_prologue): Use SIZE local variable. Adjust.
12689 (sparc_flat_expand_prologue): New function.
12690 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12691 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
12692 (sparc_flat_expand_epilogue): New function.
12693 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12694 (output_return): Likewise.
12695 (output_sibcall): Likewise.
12696 (sparc_output_mi_thunk): Likewise.
12697 (sparc_frame_pointer_required): Likewise.
12698 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12699 function optimization.
12700 * config/sparc/sparc.md (flat): New attribute.
12701 (prologue): Add TARGET_FLAT handling.
12702 (save_register_window): Disable if TARGET_FLAT.
12703 (create_flat_frame_[123]): New patterns.
12704 (epilogue): Add TARGET_FLAT handling.
12705 (sibcall_epilogue): Likewise.
12706 (eh_return): New expander.
12707 (eh_return_internal): New insn and splitter.
12708 (return_internal): Add TARGET_FLAT handling.
12709 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12710 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12711 (nonlocal_goto): Add TARGET_FLAT handling.
12712 * config/sparc/t-elf: Add -mflat multilib.
12713 * config/sparc/t-leon: Likewise.
12714
12715 2011-06-10 Jan Hubicka <jh@suse.cz>
12716
12717 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12718 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12719 (self_recursive_p): Use cgraph_function_node.
12720 (propagate_pure_const): Likewise.
12721 (propagate_nothrow): Likewise.
12722 * ipa-reference.c (ipa_reference_get_not_read_global): Use
12723 cgraph_function_node.
12724 (propagate_bits): Likewise.
12725 (propagate): Likewise.
12726
12727 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12728 Richard Earnshaw <rearnsha@arm.com>
12729
12730 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12731 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12732 (*thumb2_movdi_vfp): Delete.
12733 (*arm_movdi_vfp_cortexa8): Delete.
12734 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12735 (*movdi_vfp_cortexa8): Likewise.
12736
12737 2011-06-10 Richard Guenther <rguenther@suse.de>
12738
12739 * stor-layout.c (initialize_sizetypes): Give names to all
12740 sizetype kinds.
12741
12742 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
12743
12744 PR tree-optimization/49318
12745 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12746 irrelevant pattern statements.
12747
12748 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12749
12750 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12751
12752 PR bootstrap/49354
12753 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12754 to last assignment.
12755
12756 2011-06-09 Jan Hubicka <jh@suse.cz>
12757
12758 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12759 do not recompute reachable flag.
12760 (cgraph_finalize_function, cgraph_analyze_functions): Set
12761 redefined_extern_inline here.
12762
12763 2011-06-09 Jan Hubicka <jh@suse.cz>
12764
12765 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12766 (cgraph_only_called_directly_p): ... this one; bring offline.
12767 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12768 varpool_used_from_object_file_p): Drop names from the declaratoin.
12769 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12770 collect_callers_of_node): New.
12771 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12772 (cgraph_edge_recursive_p): Use cgraph_function_node.
12773 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12774 (cgraph_node_cannot_be_local_p_1): Break out from ...
12775 (cgraph_node_can_be_local_p): ... here; walk aliases.
12776 (cgraph_for_node_thunks_and_aliases): New function.
12777 (cgraph_for_node_and_aliases): New function.
12778 (cgraph_make_node_local_1): Break out from ...
12779 (cgraph_make_node_local) ... here; use
12780 cgraph_for_node_thunks_and_aliases.
12781 (cgraph_set_nothrow_flag_1): Break out from ...
12782 (cgraph_set_nothrow_flag) ... here;
12783 use cgraph_for_node_thunks_and_aliases.
12784 (cgraph_set_const_flag_1): Break out from ...
12785 (cgraph_set_const_flag) ... here;
12786 use cgraph_for_node_thunks_and_aliases.
12787 (cgraph_set_pure_flag_1): Break out from ...
12788 (cgraph_set_pure_flag) ... here;
12789 use cgraph_for_node_thunks_and_aliases.
12790 (cgraph_propagate_frequency_1): Break out from ...
12791 (cgraph_propagate_frequency) ... here; use
12792 cgraph_for_node_thunks_and_aliases.
12793 (cgraph_used_from_object_file_p): Do not care about aliases.
12794 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12795 New functions.
12796 (collect_callers_of_node_1, collect_callers_of_node): New functions.
12797
12798 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12799
12800 PR rtl-optimization/49154
12801 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12802 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12803 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12804 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12805 * config/cris/cris.h (cris_register_move_cost): Remove
12806 !TARGET_V32 code. Tweak comments.
12807
12808 2011-06-09 Jan Hubicka <jh@suse.cz>
12809
12810 * cgraphbuild.c (record_eh_tables): Mark personality function as having
12811 address taken.
12812
12813 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12814
12815 PR rtl-optimization/49154
12816 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12817 is a matching slot in the hashtable, assign it to classes_ptr.
12818
12819 PR rtl-optimization/49154
12820 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12821 register classes.
12822 * doc/tm.texi: Regenerate.
12823
12824 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
12825
12826 PR target/49307
12827 * config/sh/sh.md (UNSPEC_CHKADD): New.
12828 (chk_guard_add): New define_insn_and_split.
12829 (symGOT_load): Use chk_guard_add instead of blockage.
12830
12831 2011-06-09 Kai Tietz <ktietz@redhat.com>
12832
12833 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12834
12835 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
12836
12837 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12838
12839 2011-06-09 Wei Guozhi <carrot@google.com>
12840
12841 PR target/46975
12842 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12843 (peephole2 for conditional move): Generate 16 bit instructions.
12844
12845 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
12846
12847 * config/i386/i386.md (*movdi_internal_rex64): Merge
12848 alternatives 6 and 8.
12849
12850 2011-06-09 David Li <davidxl@google.com>
12851
12852 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12853 * passes.c (passr_eq): New function.
12854 (create_pass_tab): New function.
12855 (pass_traverse): New function.
12856 (dump_one_pass): New function.
12857 (dump_pass_list): New function.
12858 (dump_passes): New function.
12859
12860 2011-06-09 David Li <davidxl@google.com>
12861
12862 * tree-complex.c (tree_lower_complex): Gate cleanup.
12863 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12864 (execute_optimize_stdarg): Ditto.
12865 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12866 (execute_cleanup_eh_1): Ditto.
12867 (execute_cleanup_eh): Ditto.
12868 * gcse.c (gate_rtl_pre): Ditto.
12869 (execute_rtl_pre): Ditto.
12870 * except.c (finish_eh_generation): Ditto.
12871 (convert_to_eh_region_ranges): Ditto.
12872 * cprop.c (one_cprop_pass): Ditto.
12873
12874 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
12875
12876 PR target/48673
12877 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12878 in all basic blocks.
12879
12880 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12881
12882 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12883 (HAVE_ENABLE_EXECUTE_STACK): Define.
12884 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12885 (HAVE_ENABLE_EXECUTE_STACK): Define.
12886 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12887 (HAVE_ENABLE_EXECUTE_STACK): Define.
12888 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12889 (ENABLE_EXECUTE_STACK): Remove.
12890 (HAVE_ENABLE_EXECUTE_STACK): Define.
12891 [IN_LIBGCC2]: Don't include <windows.h>.
12892 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12893 (HAVE_ENABLE_EXECUTE_STACK): Define.
12894 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12895 (HAVE_ENABLE_EXECUTE_STACK): Define.
12896 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12897 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12898 (HAVE_ENABLE_EXECUTE_STACK): Define.
12899 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12900 (HAVE_ENABLE_EXECUTE_STACK): Define.
12901 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12902 (HAVE_ENABLE_EXECUTE_STACK): Define.
12903 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12904 (HAVE_ENABLE_EXECUTE_STACK): Define.
12905 * config/alpha/alpha.c (alpha_trampoline_init): Test
12906 HAVE_ENABLE_EXECUTE_STACK.
12907 * config/i386/i386.c (ix86_trampoline_init): Likewise.
12908 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12909 (sparc64_initialize_trampoline): Likewise.
12910 * libgcc2.c [L_enable_execute_stack]: Remove.
12911 * system.h (ENABLE_EXECUTE_STACK): Poison.
12912 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12913 * doc/tm.texi: Regenerate.
12914 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12915
12916 2011-06-09 Jakub Jelinek <jakub@redhat.com>
12917
12918 PR middle-end/49308
12919 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12920 variable. After resetting and rescanning insn continue with previous
12921 statement.
12922
12923 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12924
12925 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12926 (gcc_cv_ld_hidden): Likewise.
12927 * configure: Regenerate.
12928 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12929 (ix86_stack_protect_fail): Mark unused.
12930 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12931 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12932 [TARGET_MACHO]: Don't define.
12933 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12934 (TARGET_STACK_PROTECT_FAIL): Likewise.
12935 (rs6000_stack_protect_fail): Mark unused.
12936 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12937 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
12938
12939 2011-06-08 Andi Kleen <ak@linux.intel.com>
12940
12941 * varasm.c (get_section): Print location of other conflict
12942 for section conflicts.
12943
12944 2011-06-08 Andi Kleen <ak@linux.intel.com>
12945
12946 * config/i386/driver-i386.c (host_detect_local_cpu):
12947 Add model 0x2d Intel CPU.
12948
12949 2011-06-08 Andi Kleen <ak@linux.intel.com>
12950
12951 * reginfo.c (global_regs_decl): Add.
12952 (globalize_reg): Add decl parameter. Compute location. Pass location
12953 to warnings and add inform. Store decl in global_regs_decl.
12954 * rtl.h (globalize_reg): Update prototype.
12955 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12956
12957 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
12958
12959 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12960
12961 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
12962
12963 PR target/49305
12964 * config/sh/predicates.md (general_movsrc_operand): Check
12965 mode for memory with indexed address for QI and HImode.
12966 (general_movdst_operand): Likewise.
12967
12968 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
12969
12970 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12971
12972 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
12973
12974 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12975 (num_ssa_operands): Likewise.
12976 (op_iter_init_phiuse): Forward-declare.
12977 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12978
12979 2011-06-08 Nick Clifton <nickc@redhat.com>
12980
12981 * doc/invoke.texi (ARM Options): Update description of
12982 -mthumb-interwork.
12983
12984 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
12985
12986 * config/i386/driver-i386.c (host_detect_local_cpu): Support
12987 unknown Intel family 0x6 CPUs.
12988
12989 2011-06-08 Martin Jambor <mjambor@suse.cz>
12990
12991 * tree-sra.c (mark_rw_status): Removed.
12992 (analyze_access_subtree): New parameter parent instead of
12993 mark_read and mark_write, propagate from that.
12994
12995 2011-06-08 Julian Brown <julian@codesourcery.com>
12996
12997 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12998 for double-precision helper functions in hard-float mode if only
12999 single-precision arithmetic is supported in hardware.
13000
13001 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
13002
13003 PR rtl-optimization/49303
13004 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
13005 code_motion_path_driver returned 0 or 1.
13006 (sel_region_finish): Clear h_d_i_d.
13007
13008 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13009
13010 * config/sh/sh.c (prepare_move_operands): Set pic register
13011 appropriately for global and local dynamic tls models even
13012 if flag_pic is unset.
13013
13014 2011-06-07 Jason Merrill <jason@redhat.com>
13015
13016 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13017
13018 2011-06-07 Xinliang David Li <davidxl@google.com>
13019 * passes.c (enable_disable_pass): Handle assembler name.
13020 (is_pass_explicitly_enabled_or_disabled): Ditto.
13021
13022 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13023
13024 PR tree-optimization/48497
13025 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13026
13027 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13028
13029 PR tree-optimization/46728
13030 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13031 to use gimple_val_nonnegative_real_p.
13032 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13033 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13034
13035 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
13036
13037 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13038
13039 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
13040
13041 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13042 constant vectors.
13043
13044 2011-06-07 Richard Guenther <rguenther@suse.de>
13045
13046 * stor-layout.c (initialize_sizetypes): Initialize all
13047 sizetypes based on target definitions.
13048 (set_sizetype): Remove.
13049 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13050 * tree.h (set_sizetype): Remove.
13051
13052 2011-06-07 Nick Clifton <nickc@redhat.com>
13053
13054 * config.gcc: Unify V850 architecture options and add support for
13055 newer V850 architectures.
13056 * config/v850/t-v850e: Delete.
13057
13058 2011-06-07 Richard Guenther <rguenther@suse.de>
13059
13060 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13061 Call set_sizetype from here.
13062
13063 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
13064
13065 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13066 (*maddhisi4tb, *maddhisi4tt): New define_insns.
13067
13068 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
13069 Andrew Stubbs <ams@codesourcery.com>
13070
13071 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13072 multiplies.
13073 * doc/md.texi (Canonicalization of Instructions): Document widening
13074 multiply canonicalization.
13075
13076 2011-06-07 Jakub Jelinek <jakub@redhat.com>
13077
13078 PR gcov-profile/49299
13079 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13080
13081 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
13082
13083 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13084 a pointer.
13085 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13086 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13087 vect_recog_pow_pattern): Likewise.
13088 (vect_pattern_recog_1): Remove declaration.
13089 (widened_name_p): Remove declaration. Add new argument to specify
13090 whether to check that both types are either signed or unsigned.
13091 (vect_recog_widen_mult_pattern): Update documentation. Handle
13092 unsigned patterns and multiplication by constants.
13093 (vect_pattern_recog_1): Update vect_recog_func references. Use
13094 statement information from the statement returned from pattern
13095 detection functions.
13096 (vect_pattern_recog): Update vect_recog_func reference.
13097 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13098 multiplication by a constant use the type of the other operand.
13099
13100 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13101
13102 PR rtl-optimization/49145
13103 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13104
13105 2011-06-06 Jakub Jelinek <jakub@redhat.com>
13106
13107 PR debug/49262
13108 * dwarf2out.c (native_encode_initializer): Decrement count in each
13109 iteration.
13110
13111 PR debug/49294
13112 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13113 non-MODE_INT modes.
13114
13115 PR c++/49264
13116 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13117 if stmt folded into nothing.
13118 * tree-inline.c (fold_marked_statements): If a builtin at the end of
13119 a bb folded into nothing, just update cgraph edges and move to next bb.
13120 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13121 to be NULL. Don't compute count and frequency if new_call is NULL.
13122
13123 2011-06-04 Diego Novillo <dnovillo@google.com>
13124
13125 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13126 (cgraph.o): Likewise.
13127 (cgraphunit.o): Likewise.
13128 * cgraphunit.c: Include lto-streamer.h
13129 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13130 if LTO is enabled.
13131 * lto-streamer-in.c (unpack_value_fields): Call
13132 streamer_hooks.unpack_value_fields if set.
13133 (lto_materialize_tree): For unhandled nodes, first try to
13134 call lto_streamer_hooks.alloc_tree, if it exists.
13135 (lto_input_ts_decl_common_tree_pointers): Move reading of
13136 DECL_INITIAL to lto_streamer_read_tree.
13137 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13138 (lto_streamer_read_tree): New.
13139 (lto_reader_init): Rename from lto_init_reader.
13140 Move initialization code to lto/lto.c.
13141 * lto-streamer-out.c (pack_value_fields): Call
13142 streamer_hooks.pack_value_fields if set.
13143 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13144 call streamer_hooks.indexable_with_decls_p before giving up.
13145 (lto_output_ts_decl_common_tree_pointers): Move handling
13146 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13147 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13148 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13149 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13150 (lto_streamer_write_tree): New.
13151 (lto_output): Call lto_streamer_init directly.
13152 (lto_writer_init): Remove.
13153 * lto-streamer.c (streamer_hooks): New.
13154 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13155 instead of lto_preload_common_nodes.
13156 (lto_is_streamable): Move from lto-streamer.h
13157 (lto_streamer_hooks_init): New.
13158 (streamer_hooks): New.
13159 (streamer_hooks_init): New.
13160 * lto-streamer.h (struct output_block): Forward declare.
13161 (struct lto_input_block): Likewise.
13162 (struct data_in): Likewise.
13163 (struct bitpack_d): Likewise.
13164 (struct streamer_hooks): Declare.
13165 (streamer_hooks): Declare.
13166 (lto_streamer_hooks_init): Declare.
13167 (lto_streamer_write_tree): Declare.
13168 (lto_streamer_read_tree): Declare.
13169 (streamer_hooks_init): Declare.
13170 (lto_is_streamable): Move to lto-streamer.c
13171
13172 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13173
13174 * longlong.h (smul_ppmm): The resulting register pair contains the
13175 higher order word first.
13176
13177 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13178
13179 PR tree-optimization/46728
13180 * builtins.c (powi_table): Remove.
13181 (powi_lookup_cost): Remove.
13182 (powi_cost): Remove.
13183 (expand_powi_1): Remove.
13184 (expand_powi): Remove.
13185 (expand_builtin_pow_root): Remove.
13186 (expand_builtin_pow): Remove.
13187 (expand_builtin_powi): Eliminate handling of constant exponent.
13188 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13189
13190 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13191
13192 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13193
13194 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13195
13196 * dce.c (reset_unmarked_insns_debug_uses): New.
13197 (delete_unmarked_insns): Skip debug insns.
13198 (prescan_insns_for_dce): Likewise.
13199 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13200 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13201 active reg can be found.
13202 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13203 (convert_regs_1): Use it.
13204
13205 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13206
13207 * tree-pretty-print.c (dump_function_header): Add flags.
13208 Don't dump decl_uid with nouid.
13209 * tree-pretty-print.h (dump_function_header): Adjust.
13210 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13211 * passes.c (pass_init_dump_file): Pass dump_flags on.
13212 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13213
13214 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13215
13216 PR bootstrap/49270
13217 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13218
13219 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13220
13221 PR tree-optimization/49243
13222 * calls.c (setjmp_call_p): Also check if fndecl has the
13223 returns_twice attribute.
13224
13225 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13226
13227 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13228 -ffast-math etc.
13229
13230 2011-06-06 Richard Henderson <rth@redhat.com>
13231 Georg-Johann Lay <avr@gjlay.de>
13232
13233 PR target/42210
13234 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13235 New predicates.
13236 * config/avr/avr.md ("insv"): New insn expander.
13237 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13238 "*insv.not.io", "*insv.reg"): New insns.
13239
13240 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13241
13242 PR target/49285
13243 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13244 to nonimmediate_operand from memory_operand for the operand that is to
13245 be forced to memory by the expander. Lose the constraints.
13246
13247 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13248
13249 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13250 EH return when delayed branches are disabled.
13251
13252 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13253
13254 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13255 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13256 calculation.
13257 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13258 Simplify MODE_V1DF and MODE_V2SF handling.
13259 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13260 Simplify MODE_SF handling.
13261
13262 2011-06-04 Jan Hubicka <jh@suse.cz>
13263
13264 PR tree-optimization/48893
13265 PR tree-optimization/49091
13266 PR tree-optimization/49179
13267 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13268 Bounds check.
13269
13270 2011-06-04 Jan Hubicka <jh@suse.cz>
13271
13272 PR lto/48954
13273 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13274 bitmaps.
13275
13276 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13277
13278 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13279
13280 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13281
13282 PR target/49281
13283 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13284 to be strictly smaller than 1 << shiftcount.
13285
13286 2011-06-04 Jan Hubicka <jh@suse.cz>
13287
13288 PR tree-optimize/48929
13289 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13290 of empty predicate.
13291
13292 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13293
13294 PR debug/48333
13295 * calls.c (emit_call_1): Prefer the __builtin declaration of
13296 builtin functions.
13297
13298 2011-06-03 Diego Novillo <dnovillo@google.com>
13299
13300 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13301 (lto_input_tree_pointers): Likewise.
13302 * lto-streamer-out.c (pack_value_fields): Likewise.
13303 (lto_output_tree_pointers): Likewise.
13304 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13305 and OPTIMIZATION_NODE.
13306
13307 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13308
13309 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13310 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13311 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13312 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13313 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13314 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13315 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13316 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13317 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13318 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13319 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13320 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13321 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13322 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13323 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13324 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13325 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13326 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13327 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13328 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13329 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13330 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13331 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13332 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13333 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13334 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13335 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13336 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13337 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13338 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13339 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13340 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13341 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13342 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13343 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13344 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13345 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13346 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13347 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13348 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13349 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13350 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13351 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13352 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13353 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13354 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13355 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13356 * system.h (MD_UNWIND_SUPPORT): Poison.
13357 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13358 * doc/tm.texi: Regenerate.
13359 * unwind-dw2.c: Include md-unwind-support.h instead of
13360 MD_UNWIND_SUPPORT.
13361 * config/ia64/unwind-ia64.c: Likewise.
13362 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13363
13364 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13365
13366 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13367
13368 2011-06-03 Richard Henderson <rth@redhat.com>
13369 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13370
13371 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13372 (sigill_hdlr): Correct insn, insn size.
13373 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13374
13375 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13376
13377 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13378 t-slibgcc-dummy.
13379 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13380 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13381 * config/mips/t-iris: Remove.
13382 * config/mips/t-irix6: New file.
13383 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13384
13385 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13386
13387 * Makefile.in (LIB2ADDEHDEP): Remove.
13388 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13389 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13390 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13391 * config/t-darwin (LIB2ADDEHDEP): Remove.
13392 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13393 * config/t-linux (LIB2ADDEHDEP): Remove.
13394
13395 2011-06-03 Diego Novillo <dnovillo@google.com>
13396
13397 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13398 (lto_register_var_decl_in_symtab): Likewise.
13399 (lto_register_function_decl_in_symtab): Likewise.
13400 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13401 logic to uniquify_nodes.
13402
13403 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13404
13405 * config/alpha/t-osf5: Remove.
13406 * config/alpha/t-osf-pthread: Remove.
13407 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13408 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13409
13410 2011-06-03 Julian Brown <julian@codesourcery.com>
13411
13412 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13413 (strongarm1110): Use strongarm tuning.
13414 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13415 * config/arm/arm.c (arm_strongarm_tune): New.
13416 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13417 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13418 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13419 setting, using previous defaults or 1 for Cortex-A5.
13420 (arm_option_override): Set max_insns_skipped from current tuning.
13421
13422 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13423
13424 * doc/install.texi (Options specification): Document --with-specs.
13425
13426 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13427
13428 * config/arm/neon.md (orndi3_neon): Actually split it.
13429
13430 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13431
13432 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13433 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13434
13435 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13436
13437 PR debug/47590
13438 * target.def (delay_sched2, delay_vartrack): New.
13439 * doc/tm.texi.in: Update.
13440 * doc/tm.texi: Rebuild.
13441 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13442 * var-tracking.c (gate_handle_var_tracking): Likewise.
13443 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13444 (bfin_flag_var_tracking): Drop.
13445 (output_file_start): Don't save and override flag_var_tracking.
13446 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13447 (bfin_reorg): Test original variables.
13448 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13449 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13450 (ia64_flag_var_tracking): Drop.
13451 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13452 (ia64_file_start): Don't save and override flag_var_tracking.
13453 (ia64_override_options_after_change): Ditto
13454 flag_schedule_insns_after_reload.
13455 (ia64_reorg): Test original variables.
13456 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13457 (picochip_flag_var_tracking): Drop.
13458 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13459 (picochip_option_override): Don't save and override
13460 flag_schedule_insns_after_reload.
13461 (picochip_asm_file_start): Ditto flag_var_tracking.
13462 (picochip_reorg): Test original variables.
13463 * config/spu/spu.c (spu_flag_var_tracking): Drop.
13464 (TARGET_DELAY_VARTRACK): Define.
13465 (spu_var_tracking): New.
13466 (spu_machine_dependent_reorg): Call it.
13467 (asm_file_start): Don't save and override flag_var_tracking.
13468
13469 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
13470
13471 PR target/49163
13472 * config/sh/predicates.md (general_movsrc_operand): Return 0
13473 for memory and memory subreg of which address is an invalid
13474 indexed address for QI and HImode.
13475 (general_movdst_operand): Likewise.
13476
13477 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13478
13479 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13480 edges only, when there is a non-local label in the function.
13481 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13482
13483 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13484
13485 * config/i386/constraints.md (Y3): New register constraint.
13486 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13487 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13488 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13489 *sse2_interleave_lowv2df.
13490
13491 2011-06-02 Julian Brown <julian@codesourcery.com>
13492
13493 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13494 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13495 (arm_cortex_a5_tune): New.
13496
13497 2011-06-02 Julian Brown <julian@codesourcery.com>
13498
13499 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13500 * config/arm/arm.c (arm_default_branch_cost): New.
13501 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13502 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13503 (arm_fa726_tune): Set branch_cost field using
13504 arm_default_branch_cost.
13505 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13506 current_tune structure.
13507 * dojump.c (tm_p.h): Include file.
13508
13509 2011-06-02 Julian Brown <julian@codesourcery.com>
13510
13511 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13512 tuning.
13513 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13514 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13515 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13516 field.
13517 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13518 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13519 (arm_fa726te_tune): Add prefer_constant_pool setting.
13520 (arm_v6t2_tune, arm_cortex_tune): New.
13521 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13522 prefer_constant_pool setting.
13523
13524 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13525
13526 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13527 switch statement.
13528 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13529 (*movdf_internal) <case 6,7,8>: Ditto.
13530
13531 * config/i386/constraints.md (Y4): New register constraint.
13532 * config/i386/sse.md (vec_set<mode>_0): Merge with
13533 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13534 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13535 *vec_extractv2di_1_sse.
13536 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13537 and *vec_concatv2di_rex64_sse.
13538
13539 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
13540
13541 PR target/48807
13542 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13543 of cgraph_local_info for null before attempting to use it.
13544
13545 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13546
13547 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13548 (current_function_dynamic_alloc_count): Delete.
13549 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13550 (expand_builtin_nonlocal_goto): Remove obsolete comment.
13551 (expand_builtin_update_setjmp_buf): Remove dead code.
13552 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13553 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13554 support.
13555 * function.c (instantiate_virtual_regs): Likewise.
13556 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13557 for a block with a single abnormal incoming edge.
13558 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13559 (SETJMP_VIA_SAVE_AREA): Delete.
13560 * config/sparc/sparc-protos.h (load_got_register): Declare.
13561 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13562 (load_got_register): Make global.
13563 (sparc_frame_pointer_required): Add 'static'.
13564 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
13565 (sparc_builtin_setjmp_frame_value): New function.
13566 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13567 (save_stack_nonlocal): New expander.
13568 (restore_stack_nonlocal): Likewise.
13569 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13570 (nonlocal_goto_internal): New insn.
13571 (goto_handler_and_restore): Delete.
13572 (builtin_setjmp_setup): Likewise.
13573 (do_builtin_setjmp_setup): Likewise.
13574 (setjmp): Likewise.
13575 (builtin_setjmp_receiver): New expander.
13576
13577 2011-06-01 David Li <davidxl@google.com>
13578
13579 PR middle-end/49261
13580 * tree-pretty-print.c (dump_function_header): Format cleanup.
13581
13582 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
13583
13584 PR target/49238
13585 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13586 needed when original operands are used for msw_skip comparison.
13587
13588 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13589
13590 PR debug/49250
13591 * var-tracking.c (add_uses, add_stores): Don't call
13592 cselib_subst_to_values on ENTRY_VALUE.
13593
13594 2011-06-01 Diego Novillo <dnovillo@google.com>
13595
13596 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13597 output_record_start with LTO_null instead of output_zero.
13598 (lto_output_ts_binfo_tree_pointers): Likewise.
13599 (lto_output_tree): Likewise.
13600 (output_eh_try_list): Likewise.
13601 (output_eh_region): Likewise.
13602 (output_eh_lp): Likewise.
13603 (output_eh_regions): Likewise.
13604 (output_bb): Likewise.
13605 (output_function): Likewise.
13606 (output_unreferenced_globals): Likewise.
13607 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13608 instead of NUM_TREE_CODES.
13609 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13610 (lto_output_int_in_range): Change << to >> when shifting VAL.
13611
13612 2011-06-01 Diego Novillo <dnovillo@google.com>
13613
13614 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13615 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13616
13617 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13618
13619 PR target/45074
13620 * optabs.h (valid_multiword_target_p): Declare.
13621 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13622 doing multi-word operations.
13623 * optabs.c (expand_binop): Likewise.
13624 (expand_doubleword_bswap): Likewise.
13625 (expand_absneg_bit): Likewise.
13626 (expand_unop): Likewise.
13627 (expand_copysign_bit): Likewise.
13628 (multiword_target_p): New function.
13629
13630 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13631
13632 PR rtl-optimization/48830
13633 PR rtl-optimization/48808
13634 PR rtl-optimization/48792
13635 * reload.c (push_reload): Check contains_reg_of_mode.
13636 * reload1.c (strip_paradoxical_subreg): New function.
13637 (gen_reload_chain_without_interm_reg_p): Use it to handle
13638 paradoxical subregs.
13639 (emit_output_reload_insns, gen_reload): Likewise.
13640
13641 2011-06-01 David Li <davidxl@google.com>
13642
13643 * predict.c : Change pass name
13644 * ipa.c: Ditto.
13645 * dce.c: Ditto.
13646 * tree-profile.c: Ditto.
13647 * except.c: Ditto.
13648
13649 2011-06-01 David Li <davidxl@google.com>
13650
13651 * tree-pretty-print.c (dump_function_header): New function.
13652 * final.c (rest_of_clean_state): Use header dumper.
13653 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13654 * passes.c (pass_init_dump_file): Use header dumper.
13655
13656 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13657
13658 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13659 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13660 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13661 New functions.
13662 (mem_loc_descriptor): Use them.
13663
13664 * var-tracking.c (create_entry_value): New function.
13665 (vt_add_function_parameter): Use it.
13666
13667 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13668
13669 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13670 Include <signal.h>, <ucontext.h>.
13671 (sigill_caught): Define.
13672 (sigill_hdlr): New function.
13673 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13674 insns can be executed.
13675 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13676 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13677
13678 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13679
13680 * config/t-slibgcc-darwin: Move to ...
13681 * config/t-slibgcc-dummy: ... this. Clarify comments.
13682 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13683 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13684 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13685 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
13686 Remove i386/t-crtstuff from tmake_file.
13687 (i[34567]86-*-solaris2*): Remove t-svr4,
13688 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13689 t-slibgcc-dummy.
13690 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13691 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13692 sparc/t-crtfm from tmake_file.
13693 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13694 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13695 Remove extra_parts.
13696 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13697 * config/i386/t-nwld (SHLIB_LINK): Remove.
13698 * config/i386/t-rtems-i386: Rename to ...
13699 * config/i386/t-rtems: ... this.
13700 ($(T)crti.o, $(T)crtn.o): Remove.
13701 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13702 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13703 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13704 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13705 EXTRA_MULTILIB_PARTS): Remove.
13706 * config/sparc/t-sol2-64: Likewise.
13707 * config/sparc/t-sol2: Remove.
13708 * config/sparc/t-crtin: Remove.
13709 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13710 * config/i386/gmon-sol2.c: Remove.
13711 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13712 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13713 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13714 * config/i386/sol2-gc1.asm: Remove.
13715 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13716 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13717 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13718 * config/t-slibgcc-sld: Remove.
13719
13720 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13721
13722 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13723 base_type_for_mode with op_mode instead of mode.
13724
13725 2011-06-01 Paul Brook <paul@cpodesourcery.com>
13726
13727 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
13728 Cortex-A15.
13729 * config/arm/arm-tune.md: Regenerate.
13730 * config/arm/arm-tables.opt: Regenerate.
13731 * config/arm/arm.c (FL_DIV): Rename...
13732 (FL_THUMB_DIV): ... to this.
13733 (FL_ARM_DIV): Define.
13734 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13735 (arm_arch_hwdiv): Remove.
13736 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13737 (arm_issue_rate): Add cortexr5.
13738 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13739 __ARM_ARCH_EXT_IDIV__.
13740 (TARGET_IDIV): Define.
13741 (arm_arch_hwdiv): Remove.
13742 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13743 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13744 (divsi3, udivsi3): New patterns.
13745 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13746 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13747
13748 2011-06-01 Martin Jambor <mjambor@suse.cz>
13749
13750 * ipa-utils.c (ipa_dfs_info): New field scc_no.
13751 * ipa-utils.c (searchc): Set scc_no.
13752
13753 2011-06-01 Martin Jambor <mjambor@suse.cz>
13754
13755 * ipa-utils.c (searchc_env): New field allow_overwritable.
13756 (searchc): do not ignore edges to overwritable nodes if indicated
13757 by env->allow_overwritable.
13758 (ipa_reduced_postorder): Set env.allow_overwritable.
13759
13760 2011-06-01 Richard Guenther <rguenther@suse.de>
13761
13762 * tree.c (free_lang_data): Do not reset boolean_type_node nor
13763 char_type_node.
13764 * lto-streamer.c (lto_record_common_node): Take node pointer,
13765 do not register types.
13766 (lto_preload_common_nodes): Explicitly skip preloading nodes
13767 that differ between frontends.
13768
13769 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13770
13771 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13772 NON_FLOAT_REGS.
13773
13774 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13775
13776 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13777 parameter value for dump. Dump cost on outermost call only.
13778 (rs6000_memory_move_cost): Dump cost on outermost call only.
13779
13780 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13781
13782 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13783 DW_OP_GNU_convert ops.
13784
13785 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13786 cselib_preserve_constants.
13787 (cselib_lookup_1): If cselib_preserve_constants,
13788 a new VALUE is being created for REG and there is a VALUE for the
13789 same register in wider mode, add another loc with lowpart SUBREG of
13790 the wider VALUE.
13791 (cselib_subst_to_values): Handle ENTRY_VALUE.
13792 * var-tracking.c (replace_expr_with_values): Return NULL for
13793 ENTRY_VALUE too.
13794 * dwarf2out.c (convert_descriptor_to_signed): New function.
13795 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13796 instead of two shifts.
13797 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13798 the right mode if needed.
13799 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13800 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13801 convert_descriptor_to_signed.
13802 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13803 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13804
13805 PR target/48688
13806 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13807
13808 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13809
13810 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13811 of X87MODEI12 and SWI48x instead of SSEMODEI24.
13812 (SWI248x): New mode iterator, rename from X87MODEI.
13813 (X87MODEI): Remove mode iterator.
13814 (X87MODEI12): Ditto.
13815 (SSEMODEI24): Ditto.
13816
13817 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13818
13819 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13820 * doc/invoke.texi: Document max-vartrack-expr-depth.
13821 * var-tracking.c (EXPR_DEPTH): New.
13822 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13823
13824 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13825
13826 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13827 * config/i386/sse.md: Add n to negated FMA pattern names.
13828
13829 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13830
13831 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13832
13833 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13834
13835 * gengtype-state.c (read_state_params_structs): Initialize previous.
13836
13837 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13838
13839 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13840 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13841
13842 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13843
13844 * config/i386/i386.md (*movtf_internal): Avoid allocating general
13845 registers. Penalize F*r->o alternative to prevent partial memory
13846 stalls. Slightly penalize *roF->*r alternative. Generate SSE
13847 CONST_DOUBLE immediates when optimizing function for size. Do not move
13848 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13849 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13850 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13851 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13852 alternatives.
13853 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13854
13855 (fp_register_operand splitters): Use fp_register_operand
13856 constraint. Do not use FP_REG_P in insn condition.
13857 (any_fp_register_operand splitters): Use any_fp_register_operand
13858 constraint. Do not use ANY_FP_REG_P in insn condition.
13859
13860 2011-05-31 Jan Hubicka <jh@suse.cz>
13861
13862 * cgraph.h (cgraph_inline_failed_t): Give enum a name
13863 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13864 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13865 (lto_output_edge): Use output_enum and var_len_unsigned.
13866 (lto_output_varpool_node): Likewise.
13867 (input_overwrite_node): Do not take resolution parameter;
13868 extract it from a bitpack.
13869 (input_node): Do not read resolution; use input_enum and
13870 var_len_unsigned.
13871 (input_varpool_node): Likewise.
13872 (input_edge): Likewise.
13873 (input_cgraph_1): Likewise.
13874
13875 2011-05-31 Richard Guenther <rguenther@suse.de>
13876
13877 * gimple.c (gimple_register_canonical_type): Do not register
13878 any types via gimple_register_type.
13879
13880 2011-05-31 Jan Hubicka <jh@suse.cz>
13881
13882 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13883 of thunks.
13884
13885 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13886
13887 PR rtl-optimization/49235
13888 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13889 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13890
13891 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
13892
13893 PR tree-optimization/49093
13894 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13895 data references.
13896
13897 2011-05-31 Dodji Seketeli <dodji@redhat.com>
13898
13899 PR debug/49047
13900 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13901 for concrete functions containing the code of cloned functions.
13902
13903 2011-05-31 Richard Guenther <rguenther@suse.de>
13904
13905 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13906 to ...
13907 (forward_propagate_into_comparison_1): ... this.
13908 (forward_propagate_comparison): Rename to ...
13909 (forward_propagate_into_comparison): ... this. Split out
13910 real forward propagation code to ...
13911 (forward_propagate_comparison): ... this.
13912 (forward_propagate_into_gimple_cond): Remove looping.
13913 (forward_propagate_into_cond): Likewise.
13914 (simplify_not_neg_expr): Return whether we have done something.
13915 (simplify_gimple_switch): Likewise.
13916 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13917 (ssa_forward_propagate_and_combine): ... this. Re-structure
13918 to do a forward forward-propagation walk on BBs and a backward
13919 stmt combining walk on BBs. Consistently re-scan changed statements.
13920 (pass_forwprop): Adjust.
13921
13922 2011-05-30 Ian Lance Taylor <iant@google.com>
13923
13924 * godump.c (go_format_type): Correct length of name added to
13925 obstack for anonymous field.
13926
13927 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
13928
13929 PR target/49186
13930 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13931 part of the second operand is 0.
13932
13933 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
13934
13935 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13936 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
13937 to memory for !TARGET_MEMORY_MISMATCH_STALL.
13938 (*movdf_internal_rex64): Do not penalize F->r alternative.
13939 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13940 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
13941 when optimizing function for size. Do not move CONST_DOUBLEs
13942 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13943 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
13944 SUBREGs. Do not check for MEM_P operands in the insn condition,
13945 check for ANY_FP_REGNO_P instead.
13946 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13947 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13948 function for speed.
13949 * config/i386/i386.c (ix86_option_override_internal): Do not
13950 set TARGET_INTEGER_DFMODE_MOVES here.
13951
13952 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
13953
13954 PR target/49168
13955 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13956
13957 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13958
13959 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13960 DW_TAG_rvalue_reference_type even for
13961 -gdwarf-4 -fno-debug-types-section.
13962
13963 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13964
13965 PR tree-optimization/46728
13966 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13967 (build_and_insert_binop): New.
13968 (gimple_expand_builtin_pow): Reorder args for
13969 build_and_insert_call; use build_and_insert_binop; add more
13970 optimizations for fractional exponents.
13971
13972 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
13973
13974 PR bootstrap/49190
13975
13976 Revert:
13977 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13978
13979 * tree.h (struct tree_identifier): Inherit from tree_typed, not
13980 tree_common.
13981 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13982 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13983 TS_BASE instead of TS_COMMON.
13984 * varasm.c (assemble_name): Remove assert.
13985
13986 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13987
13988 * config.gcc: Keep obselete list sorted.
13989
13990 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13991 Eric Botcazou <ebotcazou@adacore.com>
13992
13993 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13994 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13995 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13996 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13997 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
13998
13999 2011-05-30 Richard Guenther <rguenther@suse.de>
14000
14001 * gimple.c (gimple_types_compatible_p_1): Compare record
14002 and union type members properly.
14003
14004 2011-05-30 Richard Guenther <rguenther@suse.de>
14005
14006 PR tree-optimization/49210
14007 * ipa-split.c (split_function): Care for the case where the call
14008 result is not trivially convertible to the result holding variable.
14009
14010 2011-05-30 Richard Guenther <rguenther@suse.de>
14011
14012 PR tree-optimization/49218
14013 * tree-vrp.c (adjust_range_with_scev): Properly check whether
14014 overflow occured.
14015
14016 2011-05-30 Richard Guenther <rguenther@suse.de>
14017
14018 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14019 New function split out from ...
14020 (forward_propagate_into_gimple_cond): ... here. Adjust.
14021 (forward_propagate_into_cond): Likewise.
14022 (forward_propagate_comparison): Also propagate into
14023 comparisons on assignment RHS. Change return value to
14024 behave similar to forward_propagate_into_cond.
14025 (tree_ssa_forward_propagate_single_use_vars): Handle
14026 strict-overflow warnings properly for forward_propagate_comparison.
14027
14028 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14029
14030 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14031 from plugin linker.
14032 * configure: Regenerate.
14033
14034 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
14035
14036 PR tree-optimization/49199
14037 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14038 non-reduction operands are either defined in the loop or by induction.
14039
14040 2011-05-29 Xinliang David Li <davidxl@google.com>
14041
14042 * opts-global.c (handle_common_deferred_options): Handle new options.
14043 * passes.c (register_one_dump_file): Call register_pass_name.
14044 (execute_one_pass): Check explicit enable/disable flag.
14045 (passr_hash): New function.
14046 (passr_eq): Ditto.
14047 (register_pass_name): Ditto.
14048 (get_pass_by_name): Ditto.
14049 (pass_hash): Ditto.
14050 (pass_eq): Ditto.
14051 (enable_pass): Ditto.
14052 (disable_pass): Ditto.
14053 (is_pass_explicitly_enabled_or_disabled): Ditto.
14054
14055 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
14056
14057 * config/i386/i386.md (*movoi_internal_avx): Use
14058 standard_sse_constant_opcode for alternative 0.
14059 (*movti_internal_sse): Ditto.
14060 (*movti_internal_rex64): Use standard_sse_constant_opcode for
14061 alternative 2.
14062 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14063 sselog1 type moves.
14064 (*movsi_internal): Ditto.
14065 (*movdi_internal): Ditto. Add ssecvt type moves.
14066
14067 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14068
14069 PR target/48830
14070 * rtlanal.c (simplify_subreg_regno): Adjust comment.
14071
14072 2011-05-29 Jakub Jelinek <jakub@redhat.com>
14073
14074 PR rtl-optimization/49095
14075 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14076 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14077
14078 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14079
14080 PR target/43995
14081 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14082 recurse_p argument. Only follow register copies if it is set,
14083 and prevent mips_find_pic_call_symbol from recursing.
14084 (mips_find_pic_call_symbol): Add a recurse_p argument.
14085 Pass it to mips_pic_call_symbol_from_set.
14086 (mips_annotate_pic_calls): Update accordingly.
14087
14088 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14089
14090 * emit-rtl.c (try_split): Use a loop to search for
14091 NOTE_INSN_CALL_ARG_LOCATIONs.
14092
14093 2011-05-29 Richard Guenther <rguenther@suse.de>
14094
14095 PR tree-optimization/49217
14096 * ipa-pure-const.c (propagate_pure_const): Fix typos.
14097
14098 2011-05-28 Jan Hubicka <jh@suse.cz>
14099
14100 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14101 length.
14102 (string_slot_free): Remove
14103 (create_output_block): Initialize obstack.
14104 (destroy_output_block): Free obstack.
14105 (lto_string_index): Add PERSISTENT parameter; do not duplicate
14106 the string unless it needs to be added into the hash.
14107 (lto_output_string_with_length): Add persistent attribute;
14108 handle NULL strings.
14109 (lto_output_string): Add PERSISTENT parameter.
14110 (output_string_cst, output_identifier): Simplify.
14111 (lto_output_location_bitpack): Update.
14112 (lto_output_builtin_tree): Update.
14113 * lto-streamer.h (struct output_block): Add obstack.
14114 (lto_output_string, lto_output_string_with_length): Remove
14115 declarations; functions are static now.
14116
14117 2011-05-28 Jan Hubicka <jh@suse.cz>
14118
14119 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14120 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14121 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14122 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14123 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14124 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14125 unpack_ts_decl_with_vis_value_fields,
14126 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14127 lto_get_builtin_tree): Use enum and variable length i/o.
14128 * basic-block.h (profile_status_d): Add PROFILE_LAST.
14129 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14130 New functions.
14131 (bp_pack_enum, bp_unpack_enum): New macros.
14132
14133 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14134
14135 * genrecog.c: Remove redundant forward declarations.
14136
14137 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14138
14139 * config.gcc: Deprecate mips*-*-openbsd*.
14140
14141 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14142
14143 PR bootstrap/49195
14144 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14145 for match_op_dup.
14146
14147 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14148
14149 PR middle-end/48981
14150 * gengtype.c (vec_prefix_type): New function.
14151 (note_def_vec): Use vec_prefix_type and change the length
14152 attribute to be based on the prefix.
14153 * vec.c: Include coretypes.h before vec.h.
14154 (struct vec_prefix): Remove.
14155 (vec_gc_p_reserve): Change the offsetof to sizeof.
14156 (vec_gc_p_reserve_exact): Likewise.
14157 (vec_heap_p_reserve): Likewise.
14158 (vec_heap_p_reserve_exact): Likewise.
14159 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14160 (vec_stack_p_reserve): Change the offsetof to sizeof.
14161 (vec_stack_p_reserve_exact): Likewise.
14162 * vec.h (struct vec_prefix): New struct definition.
14163 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14164 (VEC_T_GTY(T,B)): Likewise.
14165 (DEF_VEC_FUNC_P(T)): Use prefix field.
14166 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14167 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14168
14169 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14170
14171 PR tree-optimization/46728
14172 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14173 (powi_as_mults): Add gimple_set_location.
14174 (build_and_insert_call): New.
14175 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14176 0.5, 0.25, 0.75, 1./3., or 1./6.
14177
14178 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14179
14180 * doc/contrib.texi: Update copyright years.
14181 (Contributors): Add Zdenek Sojka.
14182
14183 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14184
14185 * c-decl.c (c_push_function_context): Copy the current statement
14186 list stack.
14187 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14188 (finish_struct): Call building_stmt_list_p instead of checking
14189 cur_stmt_list.
14190 * c-parser.c (c_parser_postfix_expression): Likewise.
14191 * c-typeck.c (c_end_compound_stmt): Likewise.
14192 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14193 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14194 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14195 (free_stmt_list): Likewise.
14196 * tree.h (struct tree_statement_list): Include typed_tree instead
14197 of tree_common.
14198 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14199 as TS_TYPED instead of TS_COMMON.
14200
14201 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14202 Uros Bizjak <ubizjak@gmail.com>
14203
14204 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14205 (HAVE_AS_IX86_TLSGDPTL): Define.
14206 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14207 (HAVE_AS_IX86_TLSLDMPLT): Define.
14208 * configure: Regenerate.
14209 * config.in: Regenerate.
14210 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14211 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14212 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14213 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14214 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14215 @tlsldmplt or @plt.
14216 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14217
14218 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14219
14220 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14221 and reverse_cond.
14222 (INSN_COND, INSN_REVERSE_COND): New macros.
14223 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14224 once.
14225 (sched_get_condition_with_rev): Cache the results, and look them up
14226 if possible.
14227 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14228 are clobbered by the current insn.
14229 * target.def (exposed_pipline): New sched data hook.
14230 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14231 * doc/tm.texi: Regenerate.
14232
14233 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14234
14235 PR tree-optimization/49170
14236 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14237 sincos or cexp.
14238
14239 2011-05-27 Richard Guenther <rguenther@suse.de>
14240
14241 PR middle-end/49189
14242 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14243 of comparisons.
14244
14245 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14246
14247 * haifa-sched.c (sched_scan_info): Remove.
14248 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14249 with NULL args.
14250 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14251 Remove functions.
14252 (sched_scan): Remove.
14253 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14254 static. All callers changed.
14255 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14256 static. All callers changed.
14257 (sched_init_luids): Remove all arguments except the first. All
14258 callers changed. Don't use sched_scan.
14259 (haifa_init_h_i_d): Likewise.
14260 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14261 manually rather than using sched_init_luids. Likewise with
14262 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14263 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14264 rather than sched_init_luids with NULL args.
14265 * sel-sched-ir.c (new_insns): Remove variable.
14266 (sched_scan): New static function, previously in haifa-sched.c. Remove
14267 all arguments but the first two; all callers changed.
14268 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14269 rather than sched_init_luids.
14270 (sel_init_bbs): Remove second argument. All callers changed.
14271 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14272 with NULL arguments.
14273 (create_insn_rtx_from_pattern): Likewise.
14274 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14275 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14276 (sched_init_insn_luid, sched_extend_luids): Declare.
14277 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14278 declarations.
14279
14280 2011-05-27 Richard Guenther <rguenther@suse.de>
14281
14282 PR middle-end/49177
14283 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14284 A CMP B ? (T) true : (T) false for non-integral types T again.
14285
14286 2011-05-27 Jan Hubicka <jh@suse.cz>
14287
14288 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14289 so 0 means NULL string.
14290 (lto_output_string_with_length): ... here.
14291 (lto_output_string, output_string_cst, output_identifier): Update
14292 handling of NULL strings.
14293 (lto_output_location_bitpack): New function.
14294 (lto_output_location): Use it.
14295 (lto_output_tree_ref): Use output_record_start.
14296 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14297 len values.
14298 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14299 values by 1.
14300 (input_string_internal): ... here;
14301 (input_string_cst, input_identifier, lto_input_string): Update handling
14302 of NULL strings.
14303 (lto_input_location_bitpack): New function
14304 (lto_input_location): Use it.
14305 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14306 values.
14307 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14308 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14309 (bp_pack_value): Sanity check the value range.
14310 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14311 New functions.
14312 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14313 New functions.
14314
14315 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14316
14317 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14318 call_arg_location instructions down the floor.
14319
14320 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14321
14322 PR rtl-optimization/49154
14323 * ira.c (setup_pressure_classes): Process class without sublcasses
14324 as a candidate for pressure classes.
14325
14326 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14327
14328 PR rtl-optimization/48575
14329 * genrecog.c (position_type): New enum.
14330 (position): New structure.
14331 (decision): Use position structure instead of a string.
14332 (root_pos, peep2_insn_pos_list): New variables.
14333 (next_position, compare_positions): New functions.
14334 (new_decision): Use position structures instead of strings.
14335 (maybe_both_true): Likewise.
14336 (change_state): Likewise.
14337 (write_tree): Likewise.
14338 (make_insn_sequence): Likewise.
14339
14340 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14341
14342 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14343 TS_BASE instead of TS_COMMON.
14344 (find_decls_types_r): Check for TS_TYPED structure before looking at
14345 TREE_TYPE.
14346 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14347 Add chain field.
14348 (BLOCK_CHAIN): Use new chain field.
14349
14350 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14351
14352 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14353 moves expensive on Power7 also.
14354
14355 2011-05-26 Richard Guenther <rguenther@suse.de>
14356
14357 * fold-const.c (fold_unary_loc): Remove bogus code.
14358
14359 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14360
14361 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14362 tree_common.
14363 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14364 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14365 TS_BASE instead of TS_COMMON.
14366 * varasm.c (assemble_name): Remove assert.
14367
14368 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14369
14370 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14371 substituted first.
14372 * libgcc-std.ver: Delete file.
14373
14374 2011-05-26 Richard Guenther <rguenther@suse.de>
14375
14376 PR tree-optimization/48702
14377 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14378 only when we know the base address is within bounds.
14379 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14380 assume the base address of TARGET_MEM_REFs is in bounds.
14381
14382 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14383
14384 PR target/49099
14385 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14386 declaration in TARGET_SOLARIS.
14387
14388 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14389
14390 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14391 The instruction is then expanded explicitly.
14392 (supported_compare): Callable instruction.
14393 (compare): Likewise.
14394
14395 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14396
14397 PR c++/49165
14398 * gimplify.c (shortcut_cond_r): Don't special case
14399 COND_EXPRs if they have void type on one of their arms.
14400
14401 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14402
14403 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14404 to reduce duplication, and to achieve a slightly more logical order
14405 of operations.
14406
14407 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14408
14409 PR tree-optimization/49161
14410 * tree-vrp.c (struct case_info): New type.
14411 (compare_case_labels): Sort case_info structs instead of
14412 trees, and not primarily by CASE_LABEL uids but by
14413 label_for_block indexes.
14414 (find_switch_asserts): Put case labels into struct case_info
14415 array instead of TREE_VEC, adjust sorting, compare label_for_block
14416 values instead of CASE_LABELs.
14417
14418 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14419
14420 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14421 ("orndi3_neon"): Likewise.
14422 ("bic<mode>3_neon"): Likewise.
14423
14424 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14425
14426 PR tree-optimization/49038
14427 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14428 Ensure at least one epilogue iteration if required by data
14429 accesses with gaps.
14430 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14431 to mark loops that require peeling for gaps.
14432 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14433 (vect_get_known_peeling_cost): Take peeling for gaps into
14434 account.
14435 (vect_transform_loop): Generate epilogue if required by data
14436 access with gaps.
14437 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14438 loop as requiring an epilogue if there are gaps in the end of
14439 the strided group.
14440
14441 2011-05-25 Ian Lance Taylor <iant@google.com>
14442
14443 * godump.c (go_format_type): Output the first field with a usable
14444 Go type, if any.
14445
14446 2011-05-25 Ian Lance Taylor <iant@google.com>
14447
14448 * godump.c (go_format_type): Check for invalid type names, pointer
14449 target types, and struct field types.
14450
14451 2011-05-25 Jason Merrill <jason@redhat.com>
14452
14453 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14454
14455 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
14456
14457 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14458
14459 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14460
14461 * config/i386/i386.md (*movqi_extv_1)): Put back
14462 "register_operand" check in "type" calculation.
14463 (*movqi_extzv_2): Likewise.
14464
14465 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14466
14467 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14468
14469 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14470
14471 PR bootstrap/49160
14472 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14473 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14474 __divxc3, __divtc3): Wrap definitions in #ifndef.
14475
14476 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14477
14478 PR target/49142
14479 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14480 "register_operand" check and replace q_regs_operand with
14481 QIreg_operand in "type" calculation.
14482 (*movqi_extv_1): Likewise.
14483 (*movqi_extzv_2_rex64): Likewise.
14484 (*movqi_extzv_2): Likewise.
14485
14486 * config/i386/predicates.md (QIreg_operand): New.
14487
14488 2011-05-25 Richard Guenther <rguenther@suse.de>
14489
14490 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14491 type-based offset disambiguation, streamline MEM_REF and
14492 TARGET_MEM_REF handling.
14493
14494 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14495
14496 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14497 (bdesc_special_args): Add pause intrinsic.
14498
14499 * config/i386/i386.md (UNSPEC_PAUSE): New.
14500 (pause): Likewise.
14501 (*pause): Likewise.
14502 * config/i386/ia32intrin.h (__pause): Likewise.
14503
14504 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14505 pause intrinsic.
14506
14507 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14508
14509 PR tree-optimization/46728
14510 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14511 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14512
14513 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
14514
14515 * tree.h (struct tree_exp): Inherit from struct tree_typed.
14516 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14517 instead of TS_COMMON.
14518
14519 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14520
14521 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14522 LIBGCC2_GNU_PREFIX is defined.
14523 (__N): New macro.
14524 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14525 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14526 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14527 __clz_tab): Define using __N.
14528 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14529 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14530 * target.def (libfunc_gnu_prefix): New hook.
14531 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14532 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14533 * doc/tm.texi: Regenerate.
14534 * system.h (LIBGCC2_GNU_PREFIX): Poison.
14535 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14536 account.
14537 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14538 (init_optabs): Likewise for the bswap libfuncs.
14539 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14540 and divide.
14541 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14542 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14543 * libgcc-std.ver: Remove.
14544 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14545 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14546 libgcc-std.ver.
14547 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14548 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14549 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14550 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14551 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14552 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14553 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14554 * config/fixed-bit.h (FIXED_OP): Define differently depending on
14555 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14556 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14557
14558 2011-05-25 Jan Hubicka <jh@suse.cz>
14559
14560 * lto-streamer-out.c (output_record_start): Use lto_output_enum
14561 (lto_output_tree): Use output_record_start.
14562 * lto-streamer-in.c (input_record_start): Use lto_input_enum
14563 (lto_get_pickled_tree): Use input_record_start.
14564 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14565 (lto_value_range_error): New function.
14566 * lto-streamer.h (lto_value_range_error): Declare.
14567 (lto_output_int_in_range, lto_input_int_in_range): New functions.
14568 (lto_output_enum, lto_input_enum): New macros.
14569
14570 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
14571
14572 * common.opt (flag_stack_usage_info): New variable.
14573 (-Wstack-usage): New option.
14574 * doc/invoke.texi (Warning options): Document -Wstack-usage.
14575 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14576 <OPT_fstack_usage>: Likewise.
14577 * toplev.c (output_stack_usage): Handle -Wstack-usage.
14578 * calls.c (expand_call): Test flag_stack_usage_info variable instead
14579 of flag_stack_usage.
14580 (emit_library_call_value_1): Likewise.
14581 * explow.c (allocate_dynamic_stack_space): Likewise.
14582 * function.c (instantiate_virtual_regs ): Likewise.
14583 (prepare_function_start): Likewise.
14584 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14585 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14586 * config/arm/arm.c (arm_expand_prologue): Likewise.
14587 (thumb1_expand_prologue): Likewise.
14588 * config/avr/avr.c (expand_prologue): Likewise.
14589 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14590 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14591 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14592 * config/mips/mips.c (mips_expand_prologue): Likewise.
14593 * config/pa/pa.c (hppa_expand_prologue): Likewise.
14594 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14595 * config/s390/s390.c (s390_emit_prologue): Likewise.
14596 * config/sh/sh.c (sh_expand_prologue): Likewise.
14597 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14598 * config/spu/spu.c (spu_expand_prologue): Likewise.
14599
14600 2011-05-25 Richard Guenther <rguenther@suse.de>
14601
14602 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14603 (gimple_canonical_types_compatible_p): Likewise.
14604
14605 2011-05-25 Jan Hubicka <jh@suse.cz>
14606
14607 PR middle-end/49062
14608 * ipa.c (function_and_variable_visibility): Only add to same
14609 comdat group list if DECL_ONE_ONLY.
14610
14611 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
14612
14613 PR rtl-optimization/49014
14614 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14615
14616 2011-05-25 Jakub Jelinek <jakub@redhat.com>
14617
14618 PR target/49128
14619 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14620
14621 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14622
14623 PR rtl-optimization/48757
14624 * ira-build.c (loop_with_eh_edge_p): Rename to
14625 loop_with_complex_edge_p, check edges on complexity, make function
14626 conditional.
14627 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14628 conditional.
14629
14630 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14631
14632 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14633 force flag_ira_share_save_slots to 0.
14634
14635 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14636
14637 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14638 (vt_initialize): Set PROLOGUE_BB unconditionally.
14639 Add block comment about CFA_BASE_RTX machinery.
14640 Reset FP_CFA_OFFSET to -1 on all invalid paths.
14641 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14642
14643 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
14644
14645 PR objc/48187
14646 * c-parser.c (c_parser_objc_class_instance_variables): More robust
14647 parsing of syntax error in ObjC instance variable lists. In
14648 particular, avoid an infinite loop if there is a stray ']'.
14649 Updated error message.
14650
14651 2011-05-24 Ian Lance Taylor <iant@google.com>
14652
14653 * godump.c (go_define): Don't accept a string immediately after
14654 another operand.
14655
14656 2011-05-24 Ian Lance Taylor <iant@google.com>
14657
14658 * godump.c (struct godump_container): Add invalid_hash field.
14659 (go_format_type): Return false if type is found in invalid_hash.
14660 (go_output_typedef): Add invalid type to invalid_hash.
14661 (go_finish): Create and delete invalid_hash.
14662
14663 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14664
14665 PR tree-optimization/46728
14666 * tree-ssa-math-opts.c (powi_table): New.
14667 (powi_lookup_cost): New.
14668 (powi_cost): New.
14669 (powi_as_mults_1): New.
14670 (powi_as_mults): New.
14671 (gimple_expand_builtin_powi): New.
14672 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14673 (gate_cse_sincos): Remove sincos/cexp restriction.
14674
14675 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14676
14677 PR target/3746
14678 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14679 mips-tdump native.
14680 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14681 * mips-tdump.c: Likewise.
14682
14683 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
14684
14685 PR target/49128
14686 * config/i386/driver-i386.c (host_detect_local_cpu): Always
14687 add -mno-XXX. Handle FMA.
14688
14689 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14690
14691 PR rtl-optimization/48633
14692 * ira-build.c (loop_with_eh_edge_p): New function.
14693 (mark_loops_for_removal): Use it.
14694
14695 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14696
14697 PR rtl-optimization/48971
14698 * ira.c (setup_pressure_classes): Don't check register move cost
14699 for classes with one registers. Don't add pressure class if there
14700 is a pressure class with the same available hard registers.
14701 Check contains_reg_of_mode. Fix a typo in collecting
14702 temp_hard_regset. Ignore hard registers not belonging to a class.
14703
14704 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
14705
14706 PR target/49133
14707 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14708
14709 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14710 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14711
14712 PR gcov-profile/48845
14713 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14714
14715 2011-05-24 Richard Guenther <rguenther@suse.de>
14716
14717 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14718 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14719 (gimple_types_compatible_p_1): Adjust.
14720 (iterative_hash_canonical_type): Do not bother about complete vs.
14721 incomplete types.
14722 (gimple_canonical_types_compatible_p): Likewise.
14723
14724 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14725
14726 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14727
14728 2011-05-24 Richard Guenther <rguenther@suse.de>
14729
14730 PR bootstrap/49078
14731 * gimple.c (gimple_register_canonical_type): Revert
14732 previous change.
14733 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14734 does not for a tree for the case where it matters. Cache
14735 pointer-type alias-sets.
14736
14737 2011-05-24 Joseph Myers <joseph@codesourcery.com>
14738
14739 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14740 (OBJS): Remove options.o, opts-common.o and prefix.o.
14741 (OBJS-libcommon-target): New.
14742 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14743 (BACKEND): Include libcommon-target.a.
14744 (MOSTLYCLEANFILES): Include libcommon-target.a.
14745 (libcommon-target.a): New.
14746 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14747 prefix.o.
14748
14749 2011-05-23 Joseph Myers <joseph@codesourcery.com>
14750
14751 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
14752 parts of output shared with the driver.
14753 * optc-gen.awk: Don't generate parts of output not shared with the
14754 driver.
14755 * opth-gen.awk: Remove GCC_DRIVER conditionals.
14756 * doc/options.texi (SourcerInclude): Mention options-save.c.
14757 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14758 (OBJS): Add options-save.o.
14759 (options-save.c, options-save.o): New.
14760 (options.o): Update dependencies.
14761 (gcc-options.o): Remove.
14762 (mostlyclean): Remove options-save.c.
14763
14764 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14765
14766 PR debug/49032
14767 * dbxout.c: Include cgraph.h.
14768 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14769 and without value expr, return NULL if no varpool node exists for
14770 it or if it is not needed.
14771 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14772
14773 PR c/49120
14774 * c-decl.c (start_decl): Convert expr to void_type_node.
14775
14776 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
14777
14778 PR rtl-optimization/48826
14779 * emit-rtl.c (try_split): When splitting a call that is followed
14780 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14781
14782 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14783
14784 * cfgexpand.c (expand_debug_expr): For unused non-addressable
14785 parameters passed in memory prefer using DECL_INCOMING_RTL over
14786 the pseudos it will be copied into.
14787
14788 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
14789
14790 PR target/47315
14791 * config/i386/i386.c (ix86_option_override_internal): Save the
14792 initial options after checking vzeroupper.
14793
14794 2011-05-23 David Li <davidxl@google.com>
14795
14796 PR tree-optimization/48988
14797 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14798 Initialize has_valid_pred for each pred chain.
14799
14800 2011-05-23 Richard Guenther <rguenther@suse.de>
14801
14802 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14803 (iterative_hash_gimple_type): Always hash type names.
14804
14805 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
14806
14807 * c-typeck.c (build_function_call_vec): Tweak call to
14808 check_function_arguments.
14809
14810 2011-05-23 Richard Guenther <rguenther@suse.de>
14811
14812 PR tree-optimization/49115
14813 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14814 is not necessarily carried out, do not claim it kills the ref.
14815 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14816
14817 2011-05-23 Richard Guenther <rguenther@suse.de>
14818
14819 PR middle-end/15419
14820 * builtins.c (fold_builtin_memory_op): Be less restrictive about
14821 what pointer types we accept for folding.
14822
14823 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14824
14825 * gthr-gnat.c: Remove.
14826 * gthr-gnat.h: Remove.
14827 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14828 * config/t-freebsd (LIB2ADDEH): Likewise.
14829 * config/t-linux (LIB2ADDEH): Likewise.
14830 * config/t-sol2 (LIB2ADDEH): Likewise.
14831 * config/ia64/t-vms (LIB2ADDEH): Likewise.
14832 * configure.ac (target_thread_file): Remove gnat handling.
14833 * configure: Regenerate.
14834 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14835
14836 2011-05-23 Tristan Gingold <gingold@adacore.com>
14837 Eric Botcazou <ebotcazou@adacore.com>
14838
14839 * gcov.c (create_file_names): If no object directory is specified,
14840 keep the directory of the file.
14841
14842 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14843
14844 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14845 * configure: Regenerate.
14846
14847 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14848
14849 PR middle-end/48973
14850 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14851 failed and the comparison has a single bit signed type, use
14852 constm1_rtx instead of const1_rtx for true value.
14853 (do_store_flag): If ops->type is single bit signed type, disable
14854 signel bit test optimization and pass -1 instead of 1 as last
14855 parameter to emit_store_flag_force.
14856
14857 2011-05-23 Tom de Vries <tom@codesourcery.com>
14858
14859 PR target/45098
14860 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14861 function.
14862 (infer_loop_bounds_from_undefined): Use new function.
14863
14864 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14865
14866 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14867 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
14868 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14869 and -O0 otherwise.
14870 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14871
14872 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14873
14874 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14875 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14876 returns true.
14877
14878 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14879
14880 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14881
14882 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14883
14884 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14885 UNSPEC_MOVE_PIC pattern.
14886
14887 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14888
14889 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14890 (sparc-*-rtems*): Likewise.
14891 (sparc64-*-elf*): Likewise.
14892 (sparc64-*-rtems*): Likewise.
14893 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
14894 * config/sparc/t-crtin: New file.
14895 * config/sparc/t-sol2 (crti.o): Delete rule.
14896 (crtn.o): Likewise.
14897 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14898 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14899 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14900 (ENDFILE_SPEC): Add crtn.o.
14901
14902 2011-05-22 Tom de Vries <tom@codesourcery.com>
14903
14904 PR middle-end/48689
14905 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14906 CODE_CONTAINS_STRUCT (TS_COMMON).
14907
14908 2011-05-22 Jakub Jelinek <jakub@redhat.com>
14909
14910 PR middle-end/49029
14911 * expmed.c (extract_fixed_bit_field): Test whether target can be used
14912 only after deciding which mode to use.
14913
14914 2011-05-22 Tom de Vries <tom@codesourcery.com>
14915
14916 PR target/45098
14917 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14918 for call to get_shiftadd_cost.
14919
14920 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
14921
14922 PR target/49104
14923 * config/i386/cpuid.h (bit_MMXEXT): New define.
14924
14925 2011-05-22 Nick Clifton <nickc@redhat.com>
14926
14927 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14928 initialisation of non-existant args[2] element. Use args[] array
14929 not arg[] array to pass arguments to build_function_type_list.
14930
14931 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
14932
14933 PR tree-optimization/49087
14934 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14935
14936 2011-05-21 Jason Merrill <jason@redhat.com>
14937
14938 PR c++/49092
14939 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14940 static storage duration.
14941
14942 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14943
14944 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14945 frame pointer.
14946
14947 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14948
14949 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14950 false if there are call-saved registers here...
14951 (sparc_can_use_return_insn_p): ...but here instead.
14952 (save_or_restore_regs): Fix thinko.
14953 (sparc_expand_prologue): Use current_function_is_leaf.
14954 (sparc_frame_pointer_required): Likewise.
14955
14956 2011-05-21 Nick Clifton <nickc@redhat.com>
14957
14958 PR target/49098
14959 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14960
14961 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
14962
14963 * gengtype.c (walk_type): Implemented "atomic" GTY option.
14964 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14965
14966 2011-05-21 Joseph Myers <joseph@codesourcery.com>
14967
14968 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
14969 * optc-gen.awk: Move common code to opt-read.awk.
14970 * opth-gen.awk: Likewise.
14971 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14972
14973 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
14974
14975 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14976
14977 2011-05-20 Tom de Vries <tom@codesourcery.com>
14978
14979 PR target/45098
14980 * tree-ssa-loop-ivopts.c: Include expmed.h.
14981 (get_shiftadd_cost): New function.
14982 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
14983
14984 2011-05-20 Jakub Jelinek <jakub@redhat.com>
14985
14986 PR bootstrap/49086
14987 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14988 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14989
14990 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14991
14992 * Makefile.in: Update comment referring to $(OBJS-common).
14993
14994 2011-05-20 Ian Lance Taylor <iant@google.com>
14995
14996 * godump.c (go_output_typedef): Put enum constants in the macro
14997 hash table to avoid duplicate Go const definitions.
14998
14999 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15000
15001 * Makefile.in (LIBDEPS): Add libcommon.a.
15002 (LIBS): Likewise.
15003 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15004 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15005 pretty-print.o and version.o.
15006 (OBJS-libcommon): New.
15007 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15008 (BACKEND): Add libcommon.a.
15009 (MOSTLYCLEANFILES): Likewise.
15010 (libcommon.a): New.
15011 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15012 (cpp$(exeext)): Likewise.
15013 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15014 pretty-print.o and input.o.
15015 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15016 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15017 (errors.o): Remove.
15018 (mips-tfile): Don't explicitly use version.o.
15019 (mips-tdump): Likewise.
15020 (gcov.o): Depend on $(DIAGNOSTIC_H).
15021 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15022 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15023 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15024 * gcov-dump.c: Include intl.h and diagnostic.h.
15025 (main): Initialize diagnostics.
15026 * gcov.c: Include diagnostic.h.
15027 (fnotice): Remove.
15028 (main): Initialize diagnostics.
15029 * lto-wrapper.c: Include diagnostic.h.
15030 (main): Initialize diagnostics.
15031
15032 2011-05-20 Michael Matz <matz@suse.de>
15033
15034 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15035
15036 2011-05-20 Michael Matz <matz@suse.de>
15037 Richard Guenther <rguenther@suse.de>
15038
15039 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15040 use lto_streamer_cache_append directly instead of returning a VEC.
15041 (preload_common_node): Remove.
15042 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15043 track seen nodes.
15044 (lto_streamer_cache_create): Call lto_preload_common_nodes.
15045
15046 2011-05-20 Richard Guenther <rguenther@suse.de>
15047
15048 PR tree-optimization/49079
15049 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15050 MEM_REFs correctly for the trailing array access detection.
15051 Special case constants the same way as decls for overall size
15052 constraining.
15053
15054 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
15055
15056 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15057 argument expansion.
15058
15059 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15060
15061 PR tree-optimization/49073
15062 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15063 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15064 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15065
15066 2011-05-20 Richard Guenther <rguenther@suse.de>
15067
15068 PR middle-end/48849
15069 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15070 of pointer types the same way the middle-end does.
15071
15072 2011-05-20 Richard Guenther <rguenther@suse.de>
15073
15074 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15075 or pointer-to chains. Delay all fixup to uniquify_nodes.
15076
15077 2011-05-19 Quentin Neill <quentin.neill@amd.com>
15078
15079 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15080 (fma4_fmaddsub): Likewise
15081
15082 2011-05-19 Jan Hubicka <jh@suse.cz>
15083
15084 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15085 (GIMPLE_TYPE_PAIR_SIZE): New macro.
15086 (type_pair_cache): New static var.
15087 (lookup_type_pair): Use fixed sized custom hash; make inline.
15088 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15089 calls of lookup_type_pair.
15090 (print_gimple_types_stats): Remove cache stats.
15091 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15092 and gtc_ob.
15093
15094 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
15095
15096 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15097 when TARGET_RDRND is active.
15098 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15099 Generate dummy SImode target register when target is NULL.
15100
15101 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15102
15103 * config/arm/arm-fpus.def: New.
15104 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15105 arm-fpus.def.
15106 * config/arm/arm-tables.opt: Regenerate.
15107 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15108 (arm_option_override): Don't decode FPU name to string here.
15109 * config/arm/arm.opt (mfpu=): Use Enum.
15110 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15111 Update dependencies.
15112
15113 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15114
15115 * collect2.c: Include diagnostic.h.
15116 (fatal_perror, fatal, error, fancy_abort): Remove.
15117 (main): Set progname. Call xmalloc_set_program_name and
15118 diagnostic_initialize.
15119 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15120 scan_libraries, resolve_lib_name): Call fatal_error instead of
15121 fatal and fatal_perror.
15122 * collect2.h (error, fatal, fatal_perror): Don't declare.
15123 * tlink.c: Include diagnostic-core.h.
15124 (recompile_files): Call fatal_error instead of fatal_perror.
15125 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15126 pretty-print.o and input.o.
15127 (collect2.o, tlink.o): Update dependencies.
15128
15129 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15130
15131 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15132
15133 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15134
15135 PR target/40483
15136 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15137 COMDAT group syntax, both SPARC and x86 variants.
15138 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15139 * configure: Regenerate.
15140 * config/sol2.h (TARGET_SOLARIS): Define.
15141 (PUSHSECTION_FORMAT): Remove.
15142 (SECTION_NAME_FORMAT): Define.
15143 * config/sol2.c: Include hashtab.h.
15144 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15145 expansion, using SECTION_NAME_FORMAT.
15146 (solaris_comdat_htab): New variable.
15147 (struct comdat_entry): Define.
15148 (comdat_hash): New function.
15149 (comdat_eq): New function.
15150 (solaris_elf_asm_comdat_section): New function.
15151 (solaris_define_comdat_signature): New function.
15152 (solaris_code_end): New function.
15153 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15154 (solaris_code_end): Declare.
15155 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15156 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15157 solaris_code_end.
15158 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15159 Remove ATTRIBUTE_UNUSED.
15160 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15161 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15162 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15163 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15164 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15165 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15166 (PUSHSECTION_FORMAT): Remove.
15167 (SECTION_NAME_FORMAT): Redefine.
15168
15169 2011-05-19 Kai Tietz <ktietz@redhat.com>
15170
15171 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15172 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15173 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15174
15175 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15176 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15177
15178 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15179
15180 2011-05-19 Richard Guenther <rguenther@suse.de>
15181
15182 PR middle-end/48985
15183 * tree-object-size.c (addr_object_size): If the pointed-to
15184 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15185
15186 2011-05-19 Richard Guenther <rguenther@suse.de>
15187
15188 * gimple.c (gimple_types_compatible_p_1): Compare names of
15189 the types themselves.
15190 (iterative_hash_gimple_type): And hash them that way.
15191 (gimple_register_type_1): If we register a main variant properly
15192 initialize the leader to ourselves.
15193
15194 2011-05-19 Tom de Vries <tom@codesourcery.com>
15195
15196 PR target/45098
15197 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15198 get_loop_invariant_expr_id.
15199 (get_loop_invariant_expr_id): Use get_expr_id.
15200 (parm_decl_cost): New function.
15201 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15202 Improve bound cost estimation. Use different inv_expr_id for elim and
15203 express cases.
15204
15205 2011-05-19 Tom de Vries <tom@codesourcery.com>
15206
15207 PR target/45098
15208 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15209 cost_base.cost == 0.
15210
15211 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15212
15213 PR target/49002
15214 * config/i386/sse.md
15215 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15216 load cast.
15217
15218 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15219
15220 PR tree-optimization/49039
15221 * tree-vrp.c (extract_range_from_binary_expr): For
15222 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15223 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15224
15225 2011-05-18 Tom de Vries <tom@codesourcery.com>
15226
15227 PR target/45098
15228 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15229
15230 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15231
15232 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15233 (*tls_global_dynamic_64): Ditto.
15234 (*tls_local_dynamic_base_32_gnu): Ditto.
15235 (*tls_local_dynamic_base_64): Ditto.
15236 (tls_initial_exec_64_sun): Ditto.
15237
15238 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15239
15240 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15241 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15242 bf592-none.
15243 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15244 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15245 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15246 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15247 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15248 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15249 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15250
15251 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15252
15253 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15254 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15255 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15256 target_thread_pointer, arm_structure_size_boundary, struct
15257 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15258 struct abi_name, arm_all_abis): Remove.
15259 (arm_option_override) Don't process most enumerated option values here.
15260 Don't process target_fpe_name here. Work with integer not string for
15261 structure size boundary; use separate diagnostics for each case.
15262 * config/arm/arm.h (enum float_abi_type, enum
15263 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15264 to arm-opts.h.
15265 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15266 arm_structure_size_boundary): Remove.
15267 * config/arm/arm.opt (mabi=): Use Enum and Init.
15268 (arm_abi_type): New Enum and EnumValue entries.
15269 (mfloat-abi=): Use Enum and Init.
15270 (float_abi_type): New Enum and EnumValue entries.
15271 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15272 (mfp16-format=): Use Enum and Init.
15273 (arm_fp16_format_type): New Enum and EnumValue entries.
15274 (mstructure-size-boundary=): Use UInteger and Init.
15275 (mtp=): Use Enum and Init.
15276 (arm_tp_type): New Enum and EnumValue entries.
15277
15278 2011-05-18 Richard Guenther <rguenther@suse.de>
15279
15280 PR tree-optimization/49018
15281 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15282 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15283 gimple_has_side_effects.
15284
15285 2011-05-18 Richard Guenther <rguenther@suse.de>
15286
15287 * gimple.c (gimple_register_type_1): New function, split out from ...
15288 (gimple_register_type): ... here. Avoid infinite recursion.
15289
15290 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15291
15292 PR tree-optimization/41881
15293 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15294 reduction_chains along with a macro for its access.
15295 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15296 (destroy_loop_vec_info): Free reduction chains.
15297 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15298 (vect_is_slp_reduction): New function.
15299 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15300 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15301 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15302 definition types for reduction chains.
15303 (vect_supported_load_permutation_p): Don't allow permutations for
15304 reduction chains.
15305 (vect_analyze_slp_instance): Support reduction chains.
15306 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15307 (vect_get_constant_vectors): Handle reduction chains.
15308 (vect_schedule_slp_instance): Mark the first statement of the
15309 reduction chain as reduction.
15310
15311 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15312
15313 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15314 names for group elements access.
15315 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15316 reduction chains as well. Remove data reference and interleaving
15317 related words from the fields names.
15318 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15319 elements access.
15320 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15321 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15322 vect_update_interleaving_chain, vect_same_range_drs,
15323 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15324 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15325 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15326 vect_analyze_group_access, vect_analyze_data_ref_access,
15327 vect_create_data_ref_ptr, vect_transform_strided_load,
15328 vect_record_strided_load_vectors): Likewise.
15329 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15330 vect_model_load_cost, vectorizable_store, vectorizable_load,
15331 vect_remove_stores, new_stmt_vec_info): Likewise.
15332 * tree-vect-slp.c (vect_build_slp_tree,
15333 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15334
15335 2011-05-18 Richard Guenther <rguenther@suse.de>
15336
15337 PR middle-end/48989
15338 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15339 operand verification.
15340 (verify_gimple_assign_binary): Likewise.
15341 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15342 to non-1-precision BOOLEAN_TYPEs.
15343
15344 2011-05-18 Tom de Vries <tom@codesourcery.com>
15345
15346 PR target/45098
15347 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15348
15349 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15350
15351 PR tree-optimization/49000
15352 * tree-ssa.c (execute_update_addresses_taken): Call
15353 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15354 be rewritten and decl has been marked for renaming, reset
15355 the debug stmt.
15356
15357 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15358
15359 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15360 enum_opts_set when testing if attributes have set -mfpmath=.
15361
15362 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15363
15364 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15365
15366 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15367
15368 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15369 info->entry with 0
15370 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15371 id.transform_lang_insert_block with NULL.
15372
15373 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15374
15375 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15376 (output_fp_compare): Change args 3 and 4 to bool.
15377 (ix86_expand_call): Change arg 6 to bool.
15378 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15379 (ix86_attr_length_vex_default): Change arg 3 to bool.
15380 * config/i386/i386.md: Update all uses.
15381 * config/i386/i386.c: Ditto.
15382 (ix86_flags_dependent): Change return type to bool.
15383
15384 2011-05-17 Richard Guenther <rguenther@suse.de>
15385
15386 * gimple.c (type_hash_pair_compare): Fix comparison.
15387
15388 2011-05-17 Richard Guenther <rguenther@suse.de>
15389
15390 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15391 case some more, fix final hash value of the non-singleton case.
15392
15393 2011-05-17 Richard Guenther <rguenther@suse.de>
15394
15395 PR bootstrap/49013
15396 Revert
15397 2011-05-16 Richard Guenther <rguenther@suse.de>
15398
15399 * gimple.c (gimple_types_compatible_p_1): Use names of the
15400 type itself, not its main variant.
15401 (iterative_hash_gimple_type): Likewise.
15402
15403 2011-05-17 Richard Guenther <rguenther@suse.de>
15404
15405 * gimple.c (gimple_register_canonical_type): Use the main-variant
15406 leader for computing the canonical type.
15407
15408 2011-05-17 Nick Clifton <nickc@redhat.com>
15409
15410 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15411 moves.
15412
15413 * config/rx/rx.md: Add peephole to remove redundant extensions
15414 after loads.
15415 (bitset_in_memory): Use rx_restricted_mem_operand.
15416 (bitinvert_in_memory): Likewise.
15417 (bitclr_in_memory): Likewise.
15418
15419 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15420 Nick Clifton <nickc@redhat.com>
15421
15422 * config/rx/rx.md: Add peepholes to match a register move followed
15423 by a comparison of the moved register. Replace these with an
15424 addition of zero that does both actions in one instruction.
15425
15426 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15427
15428 PR target/48986
15429 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15430 predicate to allow CONST_INT.
15431 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15432
15433 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15434
15435 * opts-common.c (opt_enum_arg_to_value): New.
15436 * opts.h (opt_enum_arg_to_value): Declare.
15437 * config/i386/i386.opt (fpmath): Remove.
15438 (mfpmath=): Use Enum, Init and Save.
15439 (fpmath_unit): New Enum and EnumValue entries.
15440 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15441 name for function fpmath state.
15442 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15443 * config/i386/i386.c: Include diagnostic.h.
15444 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15445 (ix86_target_string): Take enum fpmath_unit value instead of string.
15446 (ix86_debug_options): Update call to ix86_target_string.
15447 (ix86_option_override_internal): Don't process fpmath strings here.
15448 (x86_function_specific_save, ix86_function_specific_restore):
15449 Don't handle fpmath state specially.
15450 (ix86_function_specific_print): Pass fpmath state to
15451 ix86_target_string instead of printing in this function.
15452 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15453 Handle enum attributes.
15454 (IX86_ATTR_ENUM, ix86_opt_enum): New.
15455 (ix86_valid_target_attribute_tree): Update option_strings
15456 handling. Handle fpmath as enum option.
15457 (ix86_can_inline_p): Update field names for function fpmath state.
15458 (ix86_expand_builtin): Update call to ix86_target_string.
15459 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15460 (ix86_fpmath): Remove.
15461 * config/i386/t-i386 (i386.o): Update dependencies.
15462
15463 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15464
15465 PR preprocessor/48677
15466 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15467 from decoded_options[0], not from itself.
15468
15469 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
15470
15471 * config/i386/constraints.md (z): New constraint.
15472 * config/i386/i386.c (c): New mode attribute.
15473 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15474 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15475 constraint for operand 0.
15476 (*call_vzeroupper): Ditto.
15477 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
15478 (*call_rex64_ms_sysv_vzeroupper): Ditto.
15479 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15480 Use "lzm" constraint for operand 0.
15481 (*call_pop_vzeroupper): Ditto.
15482 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15483 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
15484 constraint for operand 0.
15485 (*sibcall_vzeroupper): Ditto.
15486 (*sibcall_rex64_ms_sysv): Ditto.
15487 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15488 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15489 *sibcall_pop_1. Use "Uz" constraint for operand 0.
15490 (*sibcall_pop_vzeroupper): Ditto.
15491 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15492 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15493 mode iterator. Use "<c>zm" constraint for operand 1.
15494 (*call_value_vzeroupper): Ditto.
15495 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
15496 for operand 1.
15497 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15498 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15499 *call_value_pop_1. Use "lzm" constraint for operand 1.
15500 (*call_value_pop_vzeroupper): Ditto.
15501 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15502 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15503 mode iterator. Use "Uz" constraint for operand 1.
15504 (*sibcall_value_vzeroupper): Ditto.
15505 (*sibcall_value_rex64_ms_sysv): Ditto.
15506 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15507 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
15508 constraint for operand 1.
15509 (*sibcall_value_pop_vzeroupper): Ditto.
15510 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15511 and "z" constraint for operand 2.
15512 (*tls_global_dynamic_32_gnu): Ditto.
15513 (*tls_local_dynamic_base_32_gnu): Ditto.
15514 (*tls_local_dynamic_base_64): Ditto.
15515 (*tls_local_dynamic_32_once): Ditto.
15516 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15517 Update all callers.
15518 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15519
15520 2011-05-16 Richard Guenther <rguenther@suse.de>
15521
15522 * gimple.c (gimple_types_compatible_p_1): Use names of the
15523 type itself, not its main variant.
15524 (iterative_hash_gimple_type): Likewise.
15525
15526 2011-05-16 Richard Guenther <rguenther@suse.de>
15527
15528 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15529 always visit pointer target and function result and argument types.
15530
15531 2011-05-16 Jason Merrill <jason@redhat.com>
15532
15533 PR c++/48999
15534 * tree-inline.c (copy_statement_list): Put back recursion.
15535
15536 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15537
15538 PR target/27663
15539 PR target/41076
15540 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15541 * config/avr/avr.md ("*ior<mode>qi.byte0",
15542 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15543
15544 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15545
15546 PR target/45099
15547 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15548 register is needed for a function argument.
15549
15550 2011-05-16 Richard Guenther <rguenther@suse.de>
15551
15552 * gimple.c (struct type_hash_pair): New type.
15553 (type_hash_pair_compare): New function.
15554 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15555
15556 2011-05-16 Revital Eres <revital.eres@linaro.org>
15557
15558 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15559
15560 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15561
15562 * config/i386/i386.md (floating point move splitters): Fix
15563 usage of standard_80387_constant_p.
15564 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15565
15566 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15567
15568 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15569
15570 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
15571
15572 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15573 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15574 (tree_ssa_lim_finalize): Likewise.
15575
15576 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
15577
15578 * config/i386/constraint.md (Yd, Yx): New register constraints.
15579 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
15580 Yd conditional register constraint.
15581 (*movtf_internal): Use standard_sse_constant_opcode.
15582 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
15583 Yx conditional register constraint.
15584 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
15585 Yd conditional register constraint. Use standard_sse_constant_p to
15586 check for valid SSE constants and call standard_sse_constant_opcode to
15587 output SSE insn.
15588 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15589 constants and call standard_sse_constant_opcode to output SSE insn.
15590 * config/i386/i386.c (ix86_option_ovverride_internal): Set
15591 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
15592 optimize_size is set.
15593 (standard_sse_constant_opcode): Output conditional AVX insn templates.
15594
15595 2011-05-14 Tobias Burnus <burnus@net-b.de>
15596
15597 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15598
15599 2011-05-13 Martin Jambor <mjambor@suse.cz>
15600
15601 * ipa-prop.c (ipa_cst_from_jfunc): New function.
15602 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15603 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15604 (evaluate_conditions_for_ipcp_clone): Removed.
15605 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15606 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15607 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15608
15609 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
15610
15611 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15612 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15613 lieu of MAY_HAVE_DEBUG_STMTS.
15614 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15615 debug statements if !MAY_HAVE_DEBUG_STMTS.
15616
15617 2011-05-13 Martin Thuresson <martint@google.com>
15618
15619 PR gcov-profile/47793
15620 * libgcov.c (gcov_exit): Support relative profile paths.
15621 * doc/invoke.texi (-fprofile-dir): Update for above change.
15622
15623 2011-05-13 Richard Guenther <rguenther@suse.de>
15624
15625 * gimple.c (gimple_canonical_types_compatible_p): Do not use
15626 type-pair caching, do not compare hashes.
15627
15628 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
15629
15630 PR middle-end/48965
15631 * tree-cfg.c (edge_to_cases_cleanup): Return true.
15632 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15633
15634 2011-05-13 Kai Tietz <ktietz@redhat.com>
15635
15636 * gimplify.c (gimplify_expr): Make sure operand is boolified.
15637 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15638 compatible type for TRUTH_NOT_EXPR.
15639
15640 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
15641
15642 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15643 (ix86_hard_regno_mode_ok): Change return value to bool. Use
15644 can_create_pseudo_p ().
15645
15646 2011-05-13 Richard Guenther <rguenther@suse.de>
15647
15648 PR lto/48978
15649 * gimple.c (iterative_hash_gimple_type): Revert change in
15650 pointer target and function result and argument hashing.
15651
15652 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
15653
15654 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15655 (*movxf_internal_nointeger): Ditto.
15656 (*movdf_internal_rex64): Ditto.
15657 (*movdf_internal): Ditto.
15658 (*movdf_internal_nointeger): Ditto.
15659 (*movsf_internal): Ditto.
15660 (sincos splitters): Use can_create_pseudo ().
15661
15662 2011-05-13 Joseph Myers <joseph@codesourcery.com>
15663
15664 * config/i386/i386-opts.h: New.
15665 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15666 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15667 ix86_section_threshold): Remove.
15668 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
15669 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15670 OPT_mbranch_cost_.
15671 (ix86_option_override_internal): Don't decode strings for options
15672 other than -march=, -mtune= and -mfpmath=. Don't allow for
15673 __attribute__ uses in remaining diagnostics for options with
15674 string arguments. Don't check for integer arguments being negative.
15675 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15676 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15677 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15678 ix86_branch_cost, ix86_section_threshold): Remove.
15679 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15680 HeaderInclude.
15681 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15682 but not Var.
15683 (masm=): Use Enum and Init.
15684 (asm_dialect): New Enum and EnumValue entries.
15685 (mbranch-cost=): Use UInteger.
15686 (mlarge-data-threshold=): Use UInteger and Init.
15687 (mcmodel=): Use Enum and Init.
15688 (cmodel): New Enum and EnumValue entries.
15689 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15690 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15691 mregparm=): Use UInteger.
15692 (mstringop-strategy=): Use Enum and Init.
15693 (stringop_alg): New Enum and EnumValue entries.
15694 (mtls-dialect=): Use Enum and Init.
15695 (tls_dialect): New Enum and EnumValue entries.
15696 (mabi=): Use Enum and Init.
15697 (calling_abi): New Enum and EnumValue entries.
15698 (mveclibabi=): Use Enum and Init.
15699 (ix86_veclibabi): New Enum and EnumValue entries.
15700
15701 2011-05-13 Nick Clifton <nickc@redhat.com>
15702
15703 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15704 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15705
15706 2011-05-13 Kai Tietz <ktietz@redhat.com>
15707
15708 PR middle-end/48984
15709 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15710 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15711 (gimple_boolify): Check for cast for boolean_type_node instead for
15712 BOOLEAN_TYPE.
15713
15714 2011-05-13 Richard Guenther <rguenther@suse.de>
15715
15716 PR tree-optimization/48172
15717 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15718 multiplying by number of iterations for equal step.
15719 (vect_create_cond_for_alias_checks): Likewise.
15720
15721 2011-05-13 Andreas Schwab <schwab@redhat.com>
15722
15723 * configure.ac: Use AS_HELP_STRING throughout.
15724 * configure: Regenerate.
15725
15726 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
15727
15728 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15729 (ix86_emit_restore_regs_using_mov): Likewise.
15730 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15731
15732 2011-05-12 Anatoly Sokolov <aesok@post.ru>
15733
15734 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15735 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15736 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15737 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15738 RTX_OK_FOR_OLO10_P): ...here.
15739 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15740 SYMBOLIC_CONST.
15741
15742 2011-05-12 Kai Tietz <ktietz@redhat.com>
15743
15744 * gimplify.c (gimple_boolify): Re-boolify expression
15745 arguments even if expression type is of kind BOOLEAN_TYPE.
15746 (gimplify_boolean_expr): Removed.
15747 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15748 and XOR. Additional take care that we keep expression's type.
15749 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15750 of TRUTH_AND|OR|XOR_EXPR.
15751
15752 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15753
15754 PR tree-optimization/48975
15755 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15756 on all bbs here and free and clear ifc_bbs at the end.
15757
15758 2011-05-12 Richard Guenther <rguenther@suse.de>
15759
15760 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15761 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
15762 until after simple checks.
15763 (gimple_types_compatible_p): Likewise.
15764 (iterative_hash_gimple_type): Always hash pointer targets
15765 and function return and argument types.
15766 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15767 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
15768 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15769 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
15770 completely in the simple compare section.
15771 (gimple_register_canonical_type): Query the cache again after
15772 registering.
15773
15774 2011-05-12 Richard Guenther <rguenther@suse.de>
15775
15776 PR tree-optimization/48172
15777 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15778 the number of iterations from the segment size calculation.
15779 (vect_create_cond_for_alias_checks): Adjust.
15780
15781 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15782
15783 PR debug/48967
15784 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15785 if validate_subreg fails.
15786
15787 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
15788
15789 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15790 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15791 early.
15792
15793 2011-05-12 DJ Delorie <dj@redhat.com>
15794
15795 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15796 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15797 created builtin into rx_builtins array.
15798 (rx_builtin_decl): New function.
15799 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
15800
15801 2011-05-12 DJ Delorie <dj@redhat.com>
15802 Nick Clifton <nickc@redhat.com>
15803
15804 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15805 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15806 (rx_is_legitimate_address): Add pre-decrement and post-increment
15807 addressing in HImode and QImode. Fix test for out of range
15808 REG+INT addressing.
15809 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15810 (rx_align_for_label): Test label before extracting its usage count.
15811 (rx_adjust_insn_lengths): Fix selection of insn codes.
15812 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15813
15814 2011-05-11 Jason Merrill <jason@redhat.com>
15815
15816 * tree.c (type_hash_canon): Use struct tree_type_non_common.
15817
15818 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15819
15820 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15821 reindent the subsequent block.
15822
15823 2011-05-11 Satoru Takabayashi <satorux@google.com>
15824 Paul Pluzhnikov <ppluzhnikov@google.com>
15825
15826 * doc/install.texi (Configuration): Document --with-linker-hash-style.
15827 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15828 * config.in: Add LINKER_HASH_STYLE.
15829 * configure.ac: Add --with-linker-hash-style.
15830 * configure: Regenerate.
15831
15832 2011-05-11 Richard Guenther <rguenther@suse.de>
15833
15834 PR middle-end/48964
15835 * gimple.c (iterative_hash_canonical_type): Fix typo.
15836
15837 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
15838
15839 * config/i386/i386.c (legitimize_tls_address)
15840 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15841 expanders directly for TARGET_GNU2_TLS. Determine pic and
15842 __tls_get_addr symbol reference here. Update call to
15843 gen_tls_global_dynamic_{32,64} for added arguments.
15844 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15845 expanders directly for TARGET_GNU2_TLS. Determine
15846 __tls_get_addr symbol reference here. Update call to
15847 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
15848 unique UNSPEC REG_EQUIV to libcall block.
15849 (ix86_tls_get_addr): Declare static.
15850 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15851 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15852 Do not determine pic and __tls_get_addr symbol reference here. Do not
15853 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15854 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15855 (tls_global_dynamic_64): Add operand 2. Do not determine
15856 __tls_get_addr symbol reference here. Do not call
15857 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15858 (tls_local_dynamic_base64): Ditto for operand 1.
15859
15860 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15861
15862 * function.c (expand_function_start): Initialize stack_check_probe_note
15863 only if the generic stack checking mechanism is used.
15864
15865 2011-05-11 Richard Guenther <rguenther@suse.de>
15866
15867 PR tree-optimization/15256
15868 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15869 (A & B) | C, combine (A op CST1) op CST2.
15870 (tree_ssa_forward_propagate_single_use_vars): Only bother to
15871 visit assigns that have uses.
15872
15873 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
15874
15875 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15876 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15877 (unpack_ts_type_common_value_fields): ...this. Update comment.
15878 (unpack_value_fields): Adjust for renaming.
15879 (lto_input_ts_type_tree_pointers): Split into...
15880 (lto_input_ts_type_common_tree_pointer): ...this and...
15881 (lto_input_ts_type_non_common_tree_pointers): ...this.
15882 (lto_input_tree_pointers): Adjust for above split.
15883 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15884 (pack_ts_type_common_value_fields): ...this. Update comment.
15885 (lto_output_ts_type_tree_pointers): Split into...
15886 (lto_output_ts_type_common_tree_pointers): ...this and...
15887 (lto_output_ts_type_non_common_tree_pointers): ...this.
15888 (lto_output_tree_pointers): Adjust for above split.
15889 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15890 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15891 * stor-layout.c (vector_type_mode): Adjust location of mode field.
15892 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15893 Define.
15894 (struct tree_type): Split into...
15895 (struct tree_type_common: ...this and...
15896 (struct tree_type_with_lang_specific): ...this and...
15897 (struct tree_type_non_common): ...this. Adjust accessor macros
15898 accordingly.
15899 (TYPE_VALUES_RAW): Define.
15900 (union tree_node): Update for above changes.
15901 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15902 TS_TYPE_NON_COMMON.
15903 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15904 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15905 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15906 * treestructu.def (TS_TYPE): Remove.
15907 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15908 Define.
15909
15910 2011-05-11 Jakub Jelinek <jakub@redhat.com>
15911
15912 PR debug/48159
15913 * tree-ssa.c (reset_debug_uses): New function.
15914 * tree-flow.h (reset_debug_uses): New prototype.
15915 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15916 * tree-loop-distribution.c (generate_loops_for_partition): Call
15917 reset_debug_uses on the stmts that will be removed. Keep around
15918 all debug stmts, don't count them as bits in partition bitmap.
15919 (generate_builtin): Don't count debug stmts or labels as bits in
15920 partition bitmap.
15921
15922 2011-05-11 Richard Guenther <rguenther@suse.de>
15923
15924 * gimple.c (gimple_type_hash_1): Merge with ...
15925 (gimple_type_hash): ... this.
15926 (gtc_visit): Remove mode parameter and simplify accordingly.
15927 (gimple_types_compatible_p_1): Likewise.
15928 (gimple_types_compatible_p): Likewise.
15929 (iterative_hash_gimple_type): Likewise.
15930 (visit): Likewise.
15931 (gimple_type_eq): Adjust.
15932
15933 2011-05-11 Revital Eres <revital.eres@linaro.org>
15934
15935 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15936 enters the branch create an anti edge in the opposite direction
15937 to prevent the creation of reg-moves.
15938 * modulo-sched.c: Adjust comment to reflect the fact we are
15939 scheduling closing branch.
15940 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15941 (stage_count): New field in struct partial_schedule.
15942 (calculate_stage_count): New function.
15943 (normalize_sched_times): Rename to reset_sched_times and handle
15944 incrementing the sched time of the nodes by a constant value
15945 passed as parameter.
15946 (duplicate_insns_of_cycles): Skip closing branch.
15947 (sms_schedule_by_order): Schedule closing branch.
15948 (ps_insn_find_column): Handle closing branch.
15949 (sms_schedule): Call reset_sched_times and adjust the code to
15950 support scheduling of the closing branch.
15951 (ps_insert_empty_row): Update calls to normalize_sched_times
15952 and rotate_partial_schedule functions.
15953
15954 2011-05-11 Richard Guenther <rguenther@suse.de>
15955
15956 PR middle-end/48953
15957 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15958
15959 2011-05-11 Joseph Myers <joseph@codesourcery.com>
15960
15961 * opts.c (finish_options): Move warning settings from process_options.
15962 * toplev.c (process_options): Move warning settings to finish_options.
15963
15964 2011-05-11 Richard Guenther <rguenther@suse.de>
15965
15966 PR tree-optimization/18041
15967 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15968 (simplify_bitwise_binary): ... this. Handle operand conversions
15969 by applying them to the result instead.
15970 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
15971
15972 2011-05-11 Richard Guenther <rguenther@suse.de>
15973
15974 * gimple.c (gimple_canonical_types_compatible_p): Split out
15975 from gimple_types_compatible_p and friends. Do not recurse
15976 to pointed-to types.
15977 (gimple_canonical_type_eq): Use it.
15978 (iterative_hash_canonical_type): Split out from
15979 iterative_hash_gimple_type and friends. Do not recurse
15980 to pointed-to types.
15981 (gimple_canonical_type_hash): Use it, allocate the hash here.
15982
15983 2011-05-11 Revital Eres <revital.eres@linaro.org>
15984
15985 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15986 recognizing doloop.
15987
15988 2011-05-11 Revital Eres <revital.eres@linaro.org>
15989
15990 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15991 instead of PREV_INSN.
15992
15993 2011-05-11 Revital Eres <revital.eres@linaro.org>
15994
15995 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15996 * loop-doloop.c (doloop_condition_get): Likewise.
15997 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
15998 (doloop_end): New.
15999 * config/arm/arm.md (*addsi3_compare0): Remove "*".
16000
16001 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
16002
16003 * tree.def (CASE_LABEL_EXPR): Add an operand.
16004 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16005
16006 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16007
16008 * c-decl.c (c_override_global_bindings_to_false): Remove.
16009 (global_bindings_p): Don't check
16010 c_override_global_bindings_to_false.
16011 * c-tree.h (c_override_global_bindings_to_false): Remove.
16012 * c-typeck.c (composite_type): Don't set
16013 c_override_global_bindings_to_false.
16014
16015 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16016
16017 PR target/48857, 48495
16018 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16019 (VSX_MODE): Ditto.
16020 (VSX_MOVE_MODE): Ditto.
16021 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16022 VSX vector types. Add V2DImode.
16023 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16024 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16025 (MODES_TIEABLE_P): Ditto.
16026
16027 * config/rs6000/rs6000.c (rs6000_emit_move): Use
16028 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16029 VSX_VECTOR_MODE.
16030 (init_cumulative_args): Ditto.
16031 (rs6000_function_arg_boundary): Ditto.
16032 (rs6000_function_arg_advance_1): Ditto.
16033 (rs6000_function_arg): Ditto.
16034 (rs6000_function_ok_for_sibcall): Ditto.
16035 (emit_frame_save): Ditto.
16036 (rs6000_function_value): Ditto.
16037 (rs6000_libcall_value): Ditto.
16038
16039 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16040
16041 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16042 i386/darwin-lib.h to $libgcc_tm_file.
16043 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16044
16045 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16046
16047 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16048
16049 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16050
16051 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16052 * config/rs6000/rs6000-tables.opt: New file (generated).
16053 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16054 rs6000/rs6000-tables.opt to extra_options.
16055 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16056 * config/rs6000/rs6000.c (rs6000_select): Remove.
16057 (processor_target_table): Move contents to rs6000-cpus.def.
16058 (darwin_rs6000_override_options): Check
16059 global_options_set.x_rs6000_cpu_index instead of
16060 rs6000_select[1].string.
16061 (rs6000_option_override_internal): Likewise.
16062 (rs6000_handle_option): Don't assert that global structures are in
16063 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
16064 (rs6000_default_cpu): New variable.
16065 (rs6000_file_start): Set it instead of local default_cpu. Check
16066 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16067 global_options_set.x_rs6000_tune_index instead of rs6000_select.
16068 (rs6000_darwin_file_start): Check rs6000_default_cpu and
16069 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16070 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16071 rs6000_select): Remove.
16072 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16073 Remove.
16074 (mcpu=, mtune=): Use Var, Init, Enum and Save.
16075 * config/rs6000/t-rs6000
16076 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16077 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16078 global_options_set.x_rs6000_cpu_index instead of
16079 rs6000_select[1].string.
16080 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16081 global_options_set.x_rs6000_cpu_index instead of
16082 rs6000_select[1].string.
16083
16084 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16085
16086 * config.gcc (libgcc_tm_file): Define instead of including files
16087 from ../../libgcc/config/ in tm_file.
16088 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16089 * configure: Regenerate.
16090 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16091 libgcc_tm.h, cs-libgcc_tm.h): New.
16092 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16093 (clean): Remove libgcc_tm.h.
16094 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16095 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16096 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16097
16098 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
16099
16100 PR target/48896
16101 * config/avr/avr.c (avr_ret_register): Return unsigned int
16102 instead of int.
16103 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16104 it to avr_libcall_value.
16105 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16106 expand_expr.
16107 (avr_expand_binop_builtin): Ditto.
16108 (avr_expand_unop_builtin): Ditto.
16109
16110 2011-05-10 DJ Delorie <dj@redhat.com>
16111
16112 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16113 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16114 * config/rx/rx.c (rx_align_for_label): Add label and
16115 uses_threshold parameters. Do not align when the label is not
16116 used enough.
16117 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16118
16119 2011-05-10 Richard Guenther <rguenther@suse.de>
16120
16121 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16122 a series of conversions and apply foldings similar to what
16123 fold-const does.
16124 (tree_ssa_forward_propagate_single_use_vars): Call it.
16125
16126 2011-05-10 Jakub Jelinek <jakub@redhat.com>
16127
16128 PR tree-optimization/48611
16129 PR tree-optimization/48794
16130 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16131 referenced from RESX or EH_DISPATCH arguments.
16132
16133 PR debug/48928
16134 * dfp.c (decimal_to_decnumber): Handle conversion from
16135 dconst{1,2,m1,half}.
16136
16137 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16138
16139 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16140 for !flag_prefer_avx128.
16141 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16142
16143 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16144
16145 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16146 (fold_ternary_loc): Use expr_location_or.
16147
16148 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16149
16150 PR debug/48853
16151 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16152 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16153 Pmode and mem_mode is not VOIDmode.
16154
16155 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16156
16157 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16158 TYPE_QUAL_RESTRICT): Convert to enum.
16159
16160 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16161
16162 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16163 (const_pow2_1_to_8_operand): Ditto.
16164 (const_pow2_1_to_128_operand): Ditto.
16165 (const_pow2_1_to_32768_operand): Ditto.
16166 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16167 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16168 in insn constraint to check integer value of operand 3.
16169 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16170
16171 (PINSR_MODE): New mode iterator.
16172 (sse2p4_1): New mode attribute.
16173 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16174 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16175 iterator. Use const_int_operand instead of
16176 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16177 exact_log2 in insn constraint to check integer value of operand 3.
16178
16179 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16180
16181 * config/i386/sse.md (blendbits): Remove mode attribute.
16182 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16183 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16184 Check integer value of operand 3 in insn constraint.
16185
16186 2011-05-09 Richard Guenther <rguenther@suse.de>
16187
16188 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16189 for diagnostics.
16190 (lto_symtab_merge): Likewise. Do not register types here.
16191 (lto_symtab_merge_decls_2): Likewise.
16192 (lto_symtab_merge_decls_1): Likewise.
16193 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16194 * gimple.c (enum gtc_mode): Declare.
16195 (gimple_types_compatible_p): Make static.
16196
16197 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16198
16199 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16200 temporary register to match Pmode.
16201
16202 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16203
16204 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16205 and *vec_concatv4si_1_avx.
16206
16207 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16208
16209 PR rtl-optimization/48927
16210 * ira-conflicts.c (commutative_constraint_p): Use
16211 recog_data.alternative_enabled_p to disable alternatives where
16212 "enabled" attribute is false.
16213 (get_dup_num): Ditto.
16214 * ira-lives.c (single_reg_class): Ditto.
16215 (ira_implicitly_set_insn_hard_regs): Ditto.
16216
16217 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16218
16219 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16220 (dataflow_set_preserve_mem_locs): Likewise.
16221
16222 2011-05-09 Philipp Thomas <pth@suse.de>
16223
16224 * config/mep/mep.c (mep_validate_vliw): Syntax description
16225 should not be translated.
16226
16227 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16228
16229 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16230 * config/mips/mips-tables.opt: New file (generated).
16231 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16232 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16233 MIPS_ARCH_OPTION_NATIVE): Define.
16234 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16235 mips-cpus.def.
16236 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16237 mips_parse_cpu): Remove.
16238 (mips_cpu_info_from_opt, mips_default_arch): New.
16239 (mips_handle_option): Don't assert that global structures are in
16240 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16241 (mips_option_override): Use new variables and functions to set
16242 state of these options. Use strcmp to check for individual CPU names.
16243 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16244 definition.
16245 * config/mips/mips.opt (march=): Use ToLower and Enum.
16246 (mips): Use ToLower, Enum and Var.
16247 (mtune=): Use ToLower and Enum.
16248 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16249
16250 2011-05-08 Jan Hubicka <jh@suse.cz>
16251
16252 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16253 Arrange type pairs to be UID ordered.
16254 (gimple_lookup_type_leader): Make inline.
16255
16256 2011-05-09 Nick Clifton <nickc@redhat.com>
16257
16258 PR target/48899
16259 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16260 PROCESSOR_DEFAULT.
16261
16262 PR target/48897
16263 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16264 variable 's'.
16265
16266 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16267
16268 * combine.c (simplify_comparison): Abstract out parts into...
16269 (simplify_compare_const): ... new function.
16270 (try_combine): Generalize parallel arithmetic/compare combining
16271 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16272
16273 2011-05-08 Jan Hubicka <jh@suse.cz>
16274
16275 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16276 (cgraph_create_virtual_clone): Call hooks once virtual clone
16277 is finished.
16278 * cgraph.h (cgraph_clone_node): Update prototype.
16279 * ipa-cp.c (ipcp_estimate_growth): Use
16280 estimate_ipcp_clone_size_and_time.
16281 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16282 * lto-cgraph.c (input_node): Update.
16283 * ipa-inline.c (recursive_inlining): Update.
16284 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16285 (evaluate_conditions_for_known_args): Break out from ...
16286 (evaluate_conditions_for_edge): ... here.
16287 (evaluate_conditions_for_ipcp_clone): New function.
16288 (inline_node_duplication_hook): Update clone summary based
16289 on parameter map.
16290 (estimate_callee_size_and_time): Rename to ...
16291 (estimate_node_size_and_time): take NODE instead of EDGE;
16292 take POSSIBLE_TRUTHS as argument.
16293 (estimate_callee_size_and_time): Update.
16294 (estimate_ipcp_clone_size_and_time): New function.
16295 (do_estimate_edge_time): Update.
16296
16297 2011-05-08 Richard Guenther <rguenther@suse.de>
16298
16299 PR middle-end/48908
16300 PR middle-end/48905
16301 * expmed.c (expand_shift_1): Compute adjusted constant shift
16302 amount manually.
16303
16304 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16305
16306 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16307
16308 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16309
16310 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16311
16312 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16313
16314 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16315
16316 2011-05-07 Jan Hubicka <jh@suse.cz>
16317
16318 * ipa-inline-transform.c (inline_call): Account when program size
16319 decreases.
16320 * ipa-inline.c (relative_time_benefit): New function.
16321 (edge_badness): Reorganize to be power 2 based; fix thinko when
16322 computing badness for negative growth; update comments to match
16323 reality; better dumps.
16324
16325 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16326
16327 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16328 type to bool and adjust comment.
16329 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16330 (fold_mathfn_compare): Remove calls to global_bindings_p.
16331 (fold_inf_compare): Likewise.
16332 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16333 * c-tree.h (global_bindings_p): Adjust prototype.
16334 * c-decl.c (global_bindings_p): Return bool and simplify.
16335
16336 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16337
16338 PR tree-optimization/48837
16339 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16340 when accumulator transformation is performed.
16341
16342 2011-05-06 Jan Hubicka <jh@suse.cz>
16343
16344 * i386.h (ix86_tune_indices): Add
16345 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16346 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16347 * i386.c (initial_ix86_tune_features): Add
16348 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16349 (software_prefetching_beneficial_p): Remove predicate.
16350 (ix86_option_override_internal): Use new macro.
16351
16352 2011-05-06 Jan Hubicka <jh@suse.cz>
16353
16354 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16355
16356 2011-05-06 Jan Hubicka <jh@suse.cz>
16357
16358 * cgraph.c (cgraph_add_thunk): Create real function node instead
16359 of alias node; finalize it and mark needed/reachale; arrange visibility
16360 to be right and add it into the corresponding same comdat group list.
16361 (dump_cgraph_node): Dump thunks.
16362 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16363 cgraph_function_with_gimple_body_p,
16364 cgraph_first_function_with_gimple_body,
16365 cgraph_next_function_with_gimple_body): New functions.
16366 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16367 New macros.
16368 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16369 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16370 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16371 devirtualization when optimizing.
16372 (verify_cgraph_node): Verify thunks.
16373 (cgraph_analyze_function): Analyze thunks.
16374 (cgraph_mark_functions_to_output): Output thunks only in combination
16375 with function they are assigned to.
16376 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16377 alias into normal node.
16378 (assemble_thunks): New functoin.
16379 (cgraph_expand_function): Use it.
16380 * lto-cgraph.c (lto_output_node): Stream thunks.
16381 (input_overwrite_node): Stream in thunks.
16382 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16383 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16384 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16385 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16386 (inline_analyze_function): Do not care about thunk jump functions.
16387 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16388 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16389 cgraph_function_with_gimple_body_p.
16390 * passes.c (do_per_function_toporder): Use
16391 cgraph_function_with_gimple_body_p.
16392 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16393 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16394 (function_called_by_processed_nodes_p): Likewise.
16395
16396 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16397
16398 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16399 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16400 entries.
16401 (mabi=): Replace with separate entries for mabi=altivec,
16402 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16403 mabi=ieeelongdouble and mabi=ibmlongdouble.
16404 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16405 check for -mabi=spe without SPE ABI support here.
16406 (rs6000_handle_option): Replace OPT_mabi_ handling with
16407 OPT_mabi_altivec and OPT_mabi_spe handling.
16408
16409 2011-05-06 Cary Coutant <ccoutant@google.com>
16410
16411 * dwarf2out.c (contains_subprogram_definition): New function.
16412 (should_move_die_to_comdat): Call it.
16413
16414 2011-05-06 Jeff Law <law@redhat.com>
16415
16416 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16417 remove_ctrl_stmt_and_useless_edges.
16418 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16419 (fixup_template_block, thread_single_edge): Likewise.
16420 (mark_threaded_blocks): Use THREAD_TARGET.
16421
16422 2011-05-06 Alan Modra <amodra@gmail.com>
16423
16424 PR target/48900
16425 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16426 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16427
16428 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16429
16430 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16431 constraint modifier to "r".
16432
16433 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16434
16435 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16436 fall through for OPT_mcmodel_.
16437
16438 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16439
16440 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16441 instruction sizes.
16442 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16443
16444 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16445
16446 PR target/47930
16447 * config/arm/arm.opt (marm): Document it.
16448 (mthumb): Reject negative variant.
16449
16450 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16451
16452 PR target/48898
16453 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16454 Fix typo in "ccvt" variable name.
16455
16456 2011-05-06 Tristan Gingold <gingold@adacore.com>
16457
16458 PR target/48895
16459 * config/vms/vms-ar.c (main): Remove cwd variable.
16460
16461 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16462
16463 PR debug/48902
16464 * var-tracking.c (prepare_call_arguments): Move else before #endif.
16465
16466 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16467
16468 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16469 * gimplify.c (gimplify_switch_expr): Likewise.
16470 * omp-low.c (expand_omp_sections): Likewise.
16471 * tree-eh.c (lower_try_finally_switch): Likewise.
16472 (lower_eh_dispatch): Likewise.
16473 * tree.h (build_case_label): Declare.
16474 * tree.c (build_case_label): Define.
16475
16476 2011-05-05 Jason Merrill <jason@redhat.com>
16477
16478 PR c++/40975
16479 * tree-inline.c (copy_tree_r): Use copy_statement_list.
16480 (copy_statement_list): Don't recurse.
16481 * stor-layout.c (copy_self_referential_tree_r): Don't allow
16482 STATEMENT_LIST.
16483
16484 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16485
16486 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16487 through from -mfpu= handling.
16488 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16489
16490 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
16491
16492 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16493 POST_MODIFY.
16494
16495 2011-05-05 Steve Ellcey <sje@cup.hp.com>
16496
16497 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16498 for 11.31.
16499 (hppa[12]*-*-hpux11*): Ditto.
16500 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16501 * config/ia64/hpux-unix2003.h: New.
16502 * config/pa/pa-hpux1131.opt: New.
16503 * config/pa/pa-hpux1131.h: New.
16504 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16505 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16506 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16507
16508 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16509
16510 PR debug/48853
16511 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16512 instead of mode as 3rd argument to recursive call.
16513 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16514 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16515 VOIDmode.
16516 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16517 don't give up if mode is Pmode and mem_mode is not VOIDmode.
16518 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16519 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16520
16521 2011-05-05 Julian Brown <julian@codesourcery.com>
16522
16523 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16524 parenthesis in D-register case.
16525
16526 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16527
16528 * opt-functions.awk (var_type_struct): Handle Enum options.
16529 * optc-gen.awk: Don't check range of variables of character type.
16530 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16531 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16532 rs6000_sdata_name, rs6000_explicit_options): Remove.
16533 (rs6000_option_override_internal): Check for -malign-power here.
16534 Use global_options_set instead of rs6000_explicit_options.
16535 (rs6000_parse_fpu_option): Remove.
16536 (rs6000_handle_option): Access variables via opts and opts_set
16537 pointers. Use error_at and warning_at. Add fall-through
16538 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16539 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16540 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16541 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16542 here. Don't use rs6000_parse_fpu_option.
16543 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16544 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16545 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16546 (mrecip=): Use Var.
16547 (mspe): Use Var and Save.
16548 (mtraceback=): Use Enum and Var.
16549 (rs6000_traceback_type): New Enum and EnumValue entries.
16550 (mfloat-gprs=): Use Enum, Var and Save.
16551 (rs6000_float_gprs): New Enum and EnumValue entries.
16552 (mlong-double-): use Var and Save.
16553 (msched-costly-dep=, minsert-sched-nops=): Use Var.
16554 (malign-): Use Enum and Var.
16555 (rs6000_alignment_flags): New Enum and EnumValue entries.
16556 (mfpu=): Use Enum.
16557 (fpu_type_t): New Enum and EnumValue entries.
16558 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16559 global_options_set instead of rs6000_explicit_options.
16560 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16561 global_options_set instead of rs6000_explicit_options.
16562 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16563 global_options_set instead of rs6000_explicit_options.
16564 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16565 global_options_set instead of rs6000_explicit_options.
16566 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16567 global_options_set instead of rs6000_explicit_options.
16568 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16569 global_options_set instead of rs6000_explicit_options.
16570 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16571 definition.
16572 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16573 global_options_set instead of rs6000_explicit_options.
16574 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16575 (rs6000_cmodel): New Enum and EnumValue entries.
16576 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16577 global_options_set instead of rs6000_explicit_options.
16578 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16579 (mtls-size=): Use Enum and Var.
16580 (rs6000_tls_size): New Enum and EnumValue entries.
16581
16582 2011-05-05 Michael Matz <matz@suse.de>
16583
16584 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16585 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16586 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16587 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16588 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16589 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16590 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16591 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16592 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16593 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16594 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16595 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16596 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16597 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16598 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16599 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16600
16601 2011-05-05 Richard Guenther <rguenther@suse.de>
16602
16603 * expmed.c (expand_variable_shift): Rename to ...
16604 (expand_shift_1): ... this. Take an expanded shift amount.
16605 For rotates recurse directly not building trees for the shift amount.
16606 (expand_variable_shift): Wrap around expand_shift_1.
16607 (expand_shift): Adjust.
16608
16609 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16610
16611 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16612
16613 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16614
16615 * tree.h (get_pending_sizes): Remove prototype.
16616 (put_pending_size): Likewise.
16617 (put_pending_sizes): Likewise.
16618 * stor-layout.c (pending_sizes): Delete.
16619 (get_pending_sizes): Likewise.
16620 (put_pending_size): Likewise.
16621 (put_pending_sizes): Likewise.
16622 (variable_size): Do not call put_pending_size and tidy up.
16623 * function.h (struct function): Remove dont_save_pending_sizes_p.
16624 * lto-streamer-in.c (input_function): Do not stream it.
16625 * lto-streamer-out.c (output_function): Likewise.
16626 * tree-inline.c (initialize_cfun): Do not copy it.
16627 * c-decl.c (store_parm_decls): Do not set it.
16628 * omp-low.c (create_task_copyfn): Likewise.
16629 * tree-optimize.c (tree_rest_of_compilation): Likewise.
16630
16631 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
16632
16633 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16634 conditions.
16635 (*movdf_internal): Ditto.
16636 (*movdf_internal_nointeger): Ditto.
16637 (*movsf_internal): Ditto.
16638
16639 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16640
16641 * c-decl.c (finish_decl): Don't call get_pending_sizes.
16642 (grokparm): Add parameter expr. Pass it to grokdeclarator.
16643 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
16644 (c_variable_size): Remove.
16645 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
16646 call put_pending_sizes.
16647 (get_parm_info): Add parameter expr. Use it to set
16648 arg_info->pending_sizes.
16649 (store_parm_decls): Use arg_info->pending_sizes instead or calling
16650 get_pending_sizes.
16651 * c-parser.c (c_parser_parms_declarator): Update call to
16652 c_parser_parms_list_declarator.
16653 (c_parser_parms_list_declarator): Take parameter expr. Update
16654 call to push_parm_decl. Update recursive call. Don't call
16655 get_pending_sizes. Update calls to get_parm_info.
16656 (c_parser_objc_method_definition): Update calls to
16657 c_parser_objc_method_decl and objc_start_method_definition.
16658 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16659 (c_parser_objc_method_decl): Add parameter expr. Update call to
16660 grokparm.
16661 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16662 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16663 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16664
16665 2011-05-05 Michael Hope <michael.hope@linaro.org>
16666
16667 PR pch/45979
16668 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16669 __ARM_EABI__ hosts.
16670
16671 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16672
16673 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16674 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16675 (spu_output_mi_thunk): New function.
16676
16677 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16678
16679 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16680 targetm.asm_out.print_operand.
16681 * config/sol2.c: Include target.h.
16682
16683 2011-05-04 Jan Hubicka <jh@suse.cz>
16684
16685 * ipa-inline.c (reset_edge_caches): New function.
16686 (update_caller_keys): Add check_inlinablity_for; do not
16687 reset edge caches; remove now unnecesary loop.
16688 (update_callee_keys): Add comments; reset node_growth_cache of callee.
16689 (update_all_callee_keys): Likewise.
16690 (inline_small_functions): Sanity check cache; update code
16691 recomputing it.
16692
16693 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
16694
16695 PR rtl-optimization/47612
16696 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16697 as the last insn of the sequence to be moved.
16698
16699 2011-05-04 Tobias Burnus <burnus@net-b.de>
16700
16701 PR fortran/48864
16702 * doc/invoke.texi (Ofast): Document that it
16703 enables Fortran's -fno-protect-parens.
16704
16705 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16706
16707 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16708
16709 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
16710
16711 * stor-layout.c (variable_size): Do not issue errors.
16712
16713 2011-05-04 Richard Guenther <rguenther@suse.de>
16714
16715 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16716 for array-ref indices.
16717 (tree_coverage_counter_addr): Likewise.
16718 (build_fn_info_type): Use size_int for index types.
16719 (build_gcov_info): Likewise.
16720
16721 2011-05-04 Richard Guenther <rguenther@suse.de>
16722
16723 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16724 to build_int_cst.
16725 * c-typeck.c (really_start_incremental_init): Use bitsize_int
16726 for constructor indices.
16727 (push_init_level): Likewise.
16728
16729 2011-05-04 Richard Guenther <rguenther@suse.de>
16730
16731 * explow.c (promote_mode): Move variable declarations before code.
16732
16733 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
16734
16735 * tree.h (build_function_type_array): Declare.
16736 (build_varargs_function_type_array): Declare.
16737 (build_function_type_vec, build_varargs_function_type_vec): Define.
16738 * tree.c (build_function_type_array_1): New function.
16739 (build_function_type_array): New function.
16740 (build_varargs_function_type_array): New function.
16741
16742 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
16743
16744 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16745 before setting STMT_VINFO_TYPE.
16746
16747 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16748
16749 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16750 instead of spu_pass_by_reference.
16751
16752 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16753
16754 * calls.c (emit_library_call_value_1): Invoke
16755 promote_function_mode hook on libcall arguments.
16756 * explow.c (promote_function_mode, promote_mode): Handle TYPE
16757 argument being NULL.
16758 * targhooks.c (default_promote_function_mode): Lisewise.
16759 * config/s390/s390.c (s390_promote_function_mode): Likewise.
16760 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16761
16762 * doc/tm.texi: Document that TYPE argument might be NULL.
16763
16764 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16765
16766 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16767
16768 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16769
16770 From Bernd Schmidt
16771 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16772
16773 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16774
16775 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16776 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16777 Move ...
16778 * mips-tfile.c: ... here.
16779 Don't include coretypes.h, tm.h, filenames.h.
16780 (saber_stop): Remove definition and all calls.
16781 [__SABER__]: Remove.
16782 (__LINE__): Remove default.
16783 (Size_t, Ptrdiff_t): Remove definitions.
16784 Replace by size_t, ptrdiff_t.
16785 [!MIPS_DEBUGGING_INFO]: Remove.
16786 (SHASH_SIZE, THASH_SIZE): Remove defaults.
16787 (progname): Add const.
16788 (STATIC): Remove.
16789 Replace all uses by static.
16790 (ALIGN_SYMTABLE_OFFSET): Remove default.
16791 * mips-tdump.c: Don't include coretypes.h, tm.h.
16792 Remove !MIPS_IS_STAB guard.
16793 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16794 $(TM_H), filenames.h dependencies.
16795 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16796
16797 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16798
16799 From Jie Zhang
16800 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16801 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16802
16803 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16804
16805 From Bernd Schmidt
16806 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16807 account and save/restore RETS.
16808 (PROFILE_BEFORE_PROLOGUE): Define.
16809 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
16810 the push insn to use predecrement.
16811
16812 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16813
16814 From Jie Zhang
16815 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16816
16817 2011-05-04 Nick Clifton <nickc@redhat.com>
16818
16819 * config/mn10300/mn10300.c: Include cfgloop.h.
16820 (DUMP): New macro.
16821 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
16822 Lcc or a FLcc insn into the instruction stream.
16823 (mn10300_block_contains_call): New function. Returns true if the
16824 given basic block contains a CALL insn.
16825 (mn10300_loop_contains_call_insn): New function. Returns true if
16826 the given loop contains a CALL insn.
16827 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
16828 to use the SETLB and Lcc or FLcc insns.
16829 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16830 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16831 * config/mn10300/mn10300.opt (msetlb): New option. Used to
16832 disable the SETLB optimization.
16833 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16834 __SETLB__ or __NO_SETLB__.
16835 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16836 (movsf_internal): Handle MDR register.
16837 (cmpsi): Make visible.
16838 (setlb): New pattern.
16839 (Lcc): New pattern.
16840 (FLcc): New pattern.
16841
16842 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16843
16844 PR target/48860
16845 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16846 for reg<->xmm moves.
16847 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16848 (vec_concatv2di_rex64_sse): Ditto.
16849 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16850 (*vec_extractv2di_1_rex64): Ditto.
16851
16852 Revert:
16853 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16854
16855 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16856 reg<->xmm moves.
16857 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16858
16859 2011-05-04 Richard Guenther <rguenther@suse.de>
16860
16861 * tree.h (int_const_binop): Remove notrunc argument.
16862 * fold-const.c (int_const_binop): Remove notrunc argument. Always
16863 create integer constants that are properly truncated.
16864 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16865 (const_binop): Remove zero notrunc argument to int_const_binop.
16866 (size_binop_loc): Likewise.
16867 (fold_div_compare): Likewise.
16868 (maybe_canonicalize_comparison_1): Likewise.
16869 (fold_comparison): Likewise.
16870 (fold_binary_loc): Likewise.
16871 (multiple_of_p): Likewise.
16872 * expr.c (store_constructor): Likewise.
16873 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16874 (maybe_fold_stmt_addition): Likewise.
16875 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16876 * stor-layout.c (layout_type): Likewise.
16877 * tree-data-ref.c (tree_fold_divides_p): Likewise.
16878 * tree-sra.c (build_ref_for_offset): Likewise.
16879 (build_user_friendly_ref_for_offset): Likewise.
16880 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16881 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16882 * tree-ssa-loop-niter.c (inverse): Likewise.
16883 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16884 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16885 * tree-switch-conversion.c (check_range): Likewise.
16886 (build_constructors): Likewise.
16887 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16888 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16889 (extract_range_from_assert): Likewise.
16890 (vrp_int_const_binop): Likewise.
16891 (extract_range_from_binary_expr): Likewise.
16892 (extract_range_from_unary_expr): Likewise.
16893 (check_array_ref): Likewise.
16894 (find_case_label_range): Likewise.
16895 (simplify_div_or_mod_using_ranges): Likewise.
16896 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16897 comparing case labels for merging.
16898
16899 2011-05-03 Mark Wielaard <mjw@redhat.com>
16900
16901 * dwarf2out.c (debug_str_hash_forced): Removed.
16902 (gen_label_for_indirect_string): Removed.
16903 (get_debug_string_label): Removed.
16904 (AT_string_form): Generate label directly.
16905 (output_indirect_string): Test indirect_string_node for
16906 DW_FORM_strp instead of checking label and refcount.
16907 (prune_indirect_string): Removed.
16908 (prune_unused_types): Don't check debug_str_hash_forced or
16909 call prune_indirect_string.
16910
16911 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16912
16913 PR other/48093
16914 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16915
16916 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16917
16918 PR debug/47994
16919 PR debug/47919
16920 * combine.c (try_combine): Skip debug insns at m_split tests.
16921
16922 2011-04-26 Mark Wielaard <mjw@redhat.com>
16923
16924 PR42288
16925 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16926 when info_section_emitted.
16927
16928 2011-05-03 Joseph Myers <joseph@codesourcery.com>
16929
16930 * config/mips/mips-opts.h: New.
16931 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16932 to mips-opts.h.
16933 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16934 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16935 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
16936 via opts pointer.
16937 * config/mips/mips.h (enum mips_code_readable_setting): Move to
16938 mips-opts.h.
16939 (mips_abi, mips_code_readable): Don't declare.
16940 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16941 (mabi=): Use Enum and Var.
16942 (mips_abi): New Enum and EnumValue entries.
16943 (mcode-readable=): Use Enum and Var.
16944 (mips_code_readable_setting): New Enum and EnumValue entries.
16945 (mr10k-cache-barrier=): Use Enum and Var.
16946 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16947
16948 2011-05-03 Jan Hubicka <jh@suse.cz>
16949
16950 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16951 replace hash by pointer map.
16952 (cgraph_node_set_element_def, cgraph_node_set_element,
16953 const_cgraph_node_set_element, varpool_node_set_element_def,
16954 varpool_node_set_element, const_varpool_node_set_element): Remove.
16955 (free_cgraph_node_set, free_varpool_node_set): New function.
16956 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16957 * tree-emutls.c: Free varpool node set.
16958 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16959 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16960 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16961 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16962 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16963 Move here from ipa.c; implement using pointer_map
16964 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16965 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16966 debug_cgraph_node_set, varpool_node_set_new,
16967 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16968 dump_varpool_node_set, debug_varpool_node_set):
16969 Move to ipa-uitls.c.
16970 * passes.c (ipa_write_summaries): Update.
16971
16972 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16973
16974 From Mike Frysinger:
16975 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16976 bf542/bf544/bf547/bf548/bf549.
16977
16978 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
16979
16980 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16981
16982 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16983
16984 From Bernd Schmidt:
16985 * config/bfin/bfin.md (MOVCC): New mode_macro.
16986 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16987 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
16988 comments from generated assembly.
16989
16990 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16991
16992 From Bernd Schmidt
16993 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16994 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16995 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16996 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16997 * config/bfin/lib1funcs.asm (___muldi3): New function.
16998
16999 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17000
17001 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17002 build_function_type_list instead of build_function_type.
17003 Rearrange initialization of `args' to do so.
17004
17005 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17006
17007 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17008 instead of build_function_type.
17009
17010 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17011
17012 * config/rs6000/rs6000.c (spe_init_builtins): Call
17013 build_function_type_list instead of build_function_type.
17014 (paired_init_builtins, altivec_init_builtins): Likewise.
17015 (builtin_function_type): Likewise.
17016
17017 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17018
17019 * config/sh/sh.c (sh_media_init_builtins): Call
17020 build_function_type_list instead of build_function_type.
17021
17022 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17023
17024 * config/sparc/sparc.c (sparc_file_end): Call
17025 build_function_type_list instead of build_function_type.
17026
17027 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17028
17029 * config/alpha/alpha.c (alpha_init_builtins): Call
17030 build_function_type_list instead of build_function_type.
17031
17032 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17033
17034 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17035 build_function_type_list instead of build_function_type.
17036
17037 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17038
17039 * config/iq2000/i2000.c (iq2000_init_builtins): Call
17040 build_function_type_list instead of build_function_type.
17041 Delete `endlink' variable.
17042
17043 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17044
17045 * config/avr/avr.c (avr_init_builtins): Call
17046 build_function_type_list instead of build_function_type.
17047
17048 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17049
17050 * config/picochip/picochip.c (picochip_init_builtins): Call
17051 build_function_type_list instead of build_function_type.
17052 Delete `endlink' variable.
17053
17054 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17055
17056 * config/bfin/bfin.c (bfin_init_builtins): Call
17057 build_function_type_list instead of build_function_type.
17058
17059 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17060
17061 From Bernd Schmidt
17062 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17063 that's not CONST_INT. Seemingly redundant check is due to PR39768.
17064
17065 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17066
17067 From Jie Zhang:
17068 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17069 libbffastfp overrides libgcc when -mfast-fp.
17070
17071 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17072
17073 Originally from Bernd Schmidt
17074 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17075 * config/bfin/bfin.c (override_options): Test it and error if
17076 TARGET_FDPIC.
17077
17078 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17079
17080 Originally From Bernd Schmidt
17081 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17082 FD-PIC.
17083
17084 2011-05-03 Jeff Law <law@redhat.com>
17085
17086 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17087 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17088 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17089 than accessing AUX field directly. Free the AUX field before
17090 clearing it.
17091 (thread_block, thread_through_loop_header): Likewise.
17092 (thread_single_edge, mark_threaded_blocks): Likewise.
17093 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
17094 (register_jump_thread): Do not attempt to thread to a NULL edge.
17095
17096 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17097
17098 * function.c (init_function_start): Call decide_function_section.
17099 * varasm.c (decide_function_section): New function.
17100 (assemble_start_function): When not using
17101 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17102 or first_function_block_is_cold.
17103 * rtl.h (decide_function_section): Declare.
17104
17105 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17106 Jakub Jelinek <jakub@redhat.com>
17107
17108 PR target/48774
17109 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17110 only succeed if req_mode is the same as set_mode.
17111
17112 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17113
17114 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17115 * genemit.c (gen_exp): Handle RETURN.
17116 * emit-rtl.c (verify_rtx_sharing): Likewise.
17117 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17118 * rtl.c (copy_rtx): RETURN is shared.
17119 * rtl.h (enum global_rtl_index): Add GR_RETURN.
17120 (ret_rtx): New.
17121 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17122 * config/s390/s390.c (s390_emit_epilogue): Likewise.
17123 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17124 * config/cris/cris.c (cris_expand_return): Likewise.
17125 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17126 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17127 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17128 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17129 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17130 Likewise.
17131 * config/v850/v850.c (expand_epilogue): Likewise.
17132 * config/bfin/bfin.c (bfin_expand_call): Likewise.
17133 * config/arm/arm.md (epilogue): Likewise.
17134 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17135 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17136 variable to ret_reg.
17137
17138 2011-05-03 Richard Guenther <rguenther@suse.de>
17139
17140 PR lto/48846
17141 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17142 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17143 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17144
17145 2011-05-03 Richard Guenther <rguenther@suse.de>
17146
17147 * c-decl.c (grokdeclarator): Instead of looking at
17148 TREE_OVERFLOW check if the constant fits in the index type.
17149
17150 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17151
17152 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17153 (vec_store_lanes<mode><mode>): Likewise.
17154
17155 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17156
17157 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17158 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17159 convert_optab_index values.
17160 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17161 * genopinit.c (optabs): Initialize the new optabs.
17162 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17163 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17164 (expand_STORE_LANES): New functions.
17165 * tree.h (build_array_type_nelts): Declare.
17166 * tree.c (build_array_type_nelts): New function.
17167 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17168 (vect_model_load_cost): Likewise.
17169 (vect_store_lanes_supported, vect_load_lanes_supported)
17170 (vect_record_strided_load_vectors): Declare.
17171 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17172 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17173 (vect_transform_strided_load): Split out statement recording into...
17174 (vect_record_strided_load_vectors): ...this new function.
17175 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17176 (write_vector_array, create_array_ref): New functions.
17177 (vect_model_store_cost): Add store_lanes_p argument.
17178 (vect_model_load_cost): Add load_lanes_p argument.
17179 (vectorizable_store): Try to use store-lanes functions for
17180 interleaved stores.
17181 (vectorizable_load): Likewise load-lanes and loads.
17182 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17183 to vect_model_store_cost.
17184 (vect_build_slp_tree): Likewise vect_model_load_cost.
17185
17186 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17187
17188 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17189 * hooks.c (hook_bool_mode_uhwi_false): New function.
17190 * target.def (array_mode_supported_p): New hook.
17191 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17192 * doc/tm.texi: Regenerate.
17193 * stor-layout.c (mode_for_array): New function.
17194 (layout_type): Use it.
17195 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17196 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17197
17198 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17199
17200 PR target/48723
17201 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17202 for -fstack-check if the size to allocate is negative.
17203
17204 2011-05-02 Lawrence Crowl <crowl@google.com>
17205
17206 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17207 (timevar_cond_start): New for starting a timer only when it is not
17208 already running.
17209 (timevar_cond_stop): New for stopping a timer when it was not already
17210 running.
17211
17212 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17213 (timevar_cond_start): New as above.
17214 (timevar_cond_stop): New as above.
17215
17216 * timevar.def: Add start/stop timers for compiler phases,
17217 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17218 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17219 and TV_PHASE_FINALIZE.
17220 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17221 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17222 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17223 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17224 Make unused TV_OVERLOAD into a start/stop timer.
17225
17226 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17227 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17228 to indicate that they are start/stop timers.
17229
17230 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17231 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17232 Move initialization to do_compile.
17233 (do_compile): Add initialization from above.
17234 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17235
17236 * c-decl.c (c_write_global_declarations): Add start/stop of
17237 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17238
17239 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17240 or TV_PARSE_INLINE, as appropriate.
17241 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17242 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17243
17244 2011-05-02 Jason Merrill <jason@redhat.com>
17245
17246 PR c++/40975
17247 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17248
17249 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17250
17251 PR c/35445
17252 * c-decl.c (finish_decl): Only create a composite if the types are
17253 compatible.
17254
17255 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17256
17257 * config/fr30/fr30-protos.h (Mmode): Don't define.
17258 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17259 definition where used.
17260 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17261 define. Expand definitions where used.
17262 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17263 Expand definitions where used.
17264 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17265 rx_function_arg, rx_function_arg_advance,
17266 rx_function_arg_boundary): Expand definitions of those macros.
17267 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17268 definition where used.
17269
17270 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17271
17272 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17273 reg<->xmm moves.
17274 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17275 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17276 with *movv2sf_internal_rex64_avx.
17277 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17278 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17279 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17280 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17281 "vex" in "prefix" attribute calculation.
17282 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17283
17284 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17285
17286 PR target/47951
17287 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17288 inputs match the output.
17289
17290 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17291
17292 PR target/47955
17293 * config/m68k/m68k.c (m68k_expand_prologue): Set
17294 current_function_static_stack_size.
17295
17296 2011-05-02 Jan Hubicka <jh@suse.cz>
17297
17298 * lto-streamer.c (lto_streamer_cache_insert_1,
17299 lto_streamer_cache_lookup, lto_streamer_cache_create,
17300 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17301 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17302
17303 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17304
17305 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17306 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17307 config/m68k/t-opts: New files.
17308 * config/m68k/m68k-tables.opt: New file (generated).
17309 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17310 extra_options and m68k/t-opts to tmake_file.
17311 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17312 (all_isas): Initialize using m68k-isas.def.
17313 (all_microarchs): Initialize using m68k-microarchs.def.
17314 (m68k_find_selection): Remove.
17315 (m68k_handle_option): Don't assert that global structures are in
17316 use. Use error_at. Access variables via opts pointer. Don't
17317 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17318 directly for -m68020-40 and -m68020-60.
17319 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17320 m68k_tune_entry here.
17321 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17322 to m68k-opts.h.
17323 (m68k_library_id_string): Remove declaration.
17324 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17325 (m68k_library_id_string): New Variable.
17326 (march=, mcpu=, mtune=): Use Enum and Var.
17327
17328 2011-05-02 Richard Guenther <rguenther@suse.de>
17329
17330 * varasm.c (output_constructor_regular_field): Compute zero-based
17331 index with double-ints. Make sure to ICE instead of producing
17332 wrong code.
17333 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17334 in asserts. Properly use a signed type.
17335
17336 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17337
17338 * config/i386/sse.md (V): New mode iterator.
17339 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17340 TARGET_SSE2.
17341 (V_256): Rename from AVX256MODE.
17342 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17343 condition to all users.
17344 (VF1): Ditto.
17345 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17346 condition to all users.
17347 (VF_128): Make V4SF mode unconditional.
17348 (VF_256): Rename from AVX256MODEF2P.
17349 (VI4F_128): Rename from SSEMODE4S.
17350 (VI8F_128): Rename from SSEMODE2D.
17351 (VI4F_256): Rename from AVX256MODE8P.
17352 (VI8F_256): Rename from AVX256MODE4P.
17353 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17354 (ssescalarmodesuffix): Remove SF and DF modes.
17355 (SSEMODE124): Remove.
17356 (SSEMODE1248): Ditto.
17357 (SSEMODEF2P): Ditto.
17358 (AVXMODEF2P): Ditto.
17359 (AVXMODEFDP): Ditto.
17360 (AVXMODEFSP): Ditto.
17361 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17362 unconditional.
17363 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17364 unconditional.
17365 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17366 xop_pcmov_<mode>256. Use V mode iterator.
17367
17368 Adjust RTX patterns globally for renamed mode attributes.
17369
17370 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17371
17372 * haifa-sched.c (sched_emit_insn): Emit insn before first
17373 non-scheduled insn. Inform back-end about new insn. Add
17374 new insn to scheduled_insns list.
17375
17376 2011-05-02 Richard Guenther <rguenther@suse.de>
17377
17378 PR tree-optimization/48822
17379 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17380 (process_scc): Indicate which iteration we start.
17381
17382 2011-05-02 Jan Hubicka <jh@suse.cz>
17383
17384 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17385 (lto_section_overrun): New.
17386 * lto-section-out.c (append_block): Rename to ...
17387 (lto_append_block): ... this one; export.
17388 (lto_output_1_stream): Move lto lto-streamer.h
17389 (lto_output_data_stream): Update.
17390 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17391 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17392 functions.
17393
17394 2011-05-02 Richard Guenther <rguenther@suse.de>
17395
17396 * tree.c (tree_code_counts): New global array.
17397 (record_node_allocation_statistics): Count individual tree codes.
17398 (dump_tree_statistics): Dump individual code stats.
17399
17400 2011-05-01 Jan Hubicka <jh@suse.cz>
17401
17402 * ipa-inline.c (caller_growth_limits): Fix thinko when
17403 looking for largest stack frame.
17404 * ipa-inline.h (dump_inline_summary): Declare.
17405 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17406 on stack usage.
17407 (dump_inline_summary): Export.
17408 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17409
17410 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17411
17412 * reginfo.c (memory_move_cost): Change rclass argument type form
17413 'enum reg_class' to reg_class_t.
17414 * reload.h (memory_move_cost): Update prototype.
17415 * postreload.c reload_cse_simplify_set): Change type dclass var to
17416 reg_class_t.
17417 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17418 Update prototype.
17419 (ira_allocate_and_set_costs): Change aclass argument type form
17420 'enum reg_class' to reg_class_t.
17421 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17422 Change aclass argument type to reg_class_t.
17423 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17424 to reg_class_t.
17425 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17426 memory_move_cost call.
17427
17428 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17429 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17430 Change type tmp var to reg_class_t.
17431
17432 2011-04-30 Jan Hubicka <jh@suse.cz>
17433
17434 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17435 inlining into function with flatten attribute.
17436 (want_inline_small_function_p): Be more realistic about inlining
17437 cold calls where callee size grows.
17438
17439 2011-04-30 Jan Hubicka <jh@suse.cz>
17440
17441 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17442 flags.
17443
17444 2011-04-30 Anatoly Sokolov <aesok@post.ru>
17445
17446 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17447 PRINT_OPERAND_PUNCT_VALID_P): Remove.
17448 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17449 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17450 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17451 (print_operand): Rename to...
17452 (sparc_print_operand): ...this. Make static. Adjust
17453 sparc_print_operand function call.
17454 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17455 functions.
17456
17457 2011-04-30 Jan Hubicka <jh@suse.cz>
17458
17459 PR middle-end/48752
17460 * ipa-inline.c (early_inliner): Disable when doing late
17461 addition of function.
17462
17463 2011-04-30 Jakub Jelinek <jakub@redhat.com>
17464
17465 * dwarf2out.c (get_address_mode): New inline.
17466 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17467 if not dwarf_strict emit
17468 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17469 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17470 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
17471 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17472 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17473 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17474 mem_loc_descriptor callers.
17475 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17476 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17477 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17478 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17479 (base_types): New variable.
17480 (get_base_type_offset, calc_base_type_die_sizes,
17481 base_type_for_mode, mark_base_types, base_type_cmp,
17482 move_marked_base_types): New functions.
17483 (calc_die_sizes): Assert that die_offset is 0 or equal to
17484 next_die_offset.
17485 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17486 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
17487 callers. If not dwarf_strict, call mem_loc_descriptor even for
17488 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17489 (gen_subprogram_die): Don't give up on call site parameters
17490 with non-integral or large integral modes. Adjust
17491 mem_loc_descriptor callers.
17492 (prune_unused_types): Call prune_unused_types_mark on base_types
17493 vector entries.
17494 (resolve_addr): Call mark_base_types.
17495 (dwarf2out_finish): Call move_marked_base_types.
17496
17497 PR tree-optimization/48809
17498 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17499 type.
17500 (gen_inbound_check): Don't compute index_expr - range_min in utype
17501 again, instead reuse SSA_NAME initialized in build_arrays.
17502 Remove two useless gsi_for_stmt calls.
17503
17504 2011-04-29 Jeff Law <law@redhat.com>
17505
17506 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17507
17508 2011-04-29 Martin Jambor <mjambor@suse.cz>
17509
17510 * cgraph.h (cgraph_postorder): Remove declaration.
17511 * ipa-utils.h (ipa_free_postorder_info): Declare.
17512 (ipa_reverse_postorder): Likewise.
17513 * cgraphunit.c: Include ipa-utils.h.
17514 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17515 * ipa-inline.c: Include ipa-utils.h.
17516 (ipa_inline): Update call to ipa_reverse_postorder.
17517 * ipa-pure-const.c (propagate_pure_const): Update call to
17518 ipa_reduced_postorder and ipa_print_order. Call
17519 ipa_free_postorder_info to clean up.
17520 (propagate_nothrow): Likewise.
17521 * ipa-reference.c (propagate): Removed a useless call to
17522 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17523 and ipa_print_order. Call ipa_free_postorder_info to clean up.
17524 * ipa.c: Include ipa-utils.h.
17525 (ipa_profile): Update call to ipa_reverse_postorder.
17526 (cgraph_postorder): Moved to...
17527 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17528 (ipa_utils_print_order): Renamed to ipa_print_order.
17529 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17530 comments.
17531 (ipa_free_postorder_info): New function.
17532 * passes.c: Include ipa-utils.h.
17533 (do_per_function_toporder): Update call to ipa_reverse_postorder.
17534 (ipa_write_summaries): Likewise.
17535 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17536 (cgraphunit.o): Likewise.
17537 (ipa.o): Likewise.
17538 (ipa-inline.o): Likewise.
17539
17540 2011-04-29 Jan Hubicka <jh@suse.cz>
17541
17542 * gcc.dg/tree-ssa/inline-10.c: New testcase.
17543 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17544 * ipa-inline.h (clause_t): Turn into unsigned int.
17545 * ipa-inline-analysis.c (add_clause): Do more simplification.
17546 (and_predicates): Shortcut more cases.
17547 (predicates_equal_p): Move forward; check that clauses are properly
17548 ordered.
17549 (or_predicates): Shortcut more cases.
17550 (edge_execution_predicate): Rewrite as...
17551 (set_cond_stmt_execution_predicate): ... this function; handle
17552 __builtin_constant_p.
17553 (set_switch_stmt_execution_predicate): New .
17554 (compute_bb_predicates): New.
17555 (will_be_nonconstant_predicate): Update TODO.
17556 (estimate_function_body_sizes): Use compute_bb_predicates
17557 and free them later, always try to estimate if stmt is constant.
17558 (estimate_time_after_inlining, estimate_size_after_inlining):
17559 Gracefully handle optimized out edges.
17560 (read_predicate): Fix off by one error.
17561
17562 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
17563
17564 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17565
17566 2011-04-27 Xinliang David Li <davidxl@google.com>
17567
17568 * tree-profile.c (init_ic_make_global_vars): Set
17569 tls attribute on ic vars.
17570 * coverage.c (coverage_end_function): Initialize
17571 function_list with zero.
17572
17573 2011-04-29 Richard Guenther <rguenther@suse.de>
17574
17575 * builtins.c (fold_builtin_classify_type): Use integer_type_node
17576 for the type of the result.
17577 (fold_builtin_isascii): Likewise.
17578 (fold_builtin_toascii): Use integer_type_node where appropriate.
17579 (fold_builtin_logb): Likewise.
17580 (fold_builtin_frexp): Likewise.
17581 (fold_builtin_strstr): Likewise.
17582 (fold_builtin_strpbrk): Likewise.
17583 (fold_builtin_fputs): Likewise.
17584 (fold_builtin_sprintf): Likewise.
17585 (fold_builtin_snprintf): Likewise.
17586 (fold_builtin_printf): Likewise.
17587 (do_mpfr_remquo): Use a proper type for the assigned constant.
17588 (do_mpfr_lgamma_r): Likewise.
17589 * dwarf2out.c (resolve_one_addr): Use size_int.
17590 * except.c (init_eh): Likewise.
17591 (assign_filter_values): Use integer_type_node for filter values.
17592 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17593 indices.
17594 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17595 for EH region numbers.
17596 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17597 for the shift amount.
17598
17599 2011-04-29 Richard Guenther <rguenther@suse.de>
17600
17601 * expr.h (expand_shift): Rename to ...
17602 (expand_variable_shift): ... this.
17603 (expand_shift): Take a constant shift amount.
17604 * expmed.c (expand_shift): Rename to ...
17605 (expand_variable_shift): ... this.
17606 (expand_shift): New wrapper around expand_variable_shift.
17607 * expr.c (convert_move, emit_group_load_1, emit_group_store,
17608 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17609 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17610 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17611 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17612 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17613 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17614 emit_store_flag_1, emit_store_flag): Likewise.
17615 * builtins.c (expand_builtin_signbit): Likewise.
17616 * calls.c (load_register_parameters): Likewise.
17617 * function.c (assign_parm_setup_block): Likewise.
17618 * lower-subreg.c (resolve_shift_zext): Likewise.
17619 * optabs.c (widen_bswap, expand_abs_nojump,
17620 expand_one_cmpl_abs_nojump, expand_float): Likewise.
17621 * spu/spu.c (spu_expand_extv): Likewise.
17622 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17623
17624 2011-04-29 Richard Guenther <rguenther@suse.de>
17625
17626 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17627 for the remapped region number.
17628 * predict.c (build_predict_expr): Use integer_type_node for the
17629 predict kind.
17630 * fold-const.c (fold_binary_loc): Use integer_type_node for
17631 the shift amount. Use a proper type for the PLUS_EXPR operand.
17632
17633 2011-04-29 Michael Matz <matz@suse.de>
17634
17635 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17636 other trees that just builtins.
17637 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17638
17639 2011-04-29 Richard Guenther <rguenther@suse.de>
17640
17641 * tree-nested.c (get_trampoline_type): Use size_int.
17642 (get_nl_goto_field): Likewise.
17643 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17644 for all indexes.
17645 (lower_eh_constructs_2): Likewise.
17646 (lower_resx): Likewise.
17647 (lower_eh_dispatch): Likewise.
17648 * tree-mudflap.c (mf_build_string): Use size_int.
17649 (mudflap_register_call): Use integer_type_node for the flag.
17650 (mudflap_enqueue_constant): Use size_int.
17651 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17652 instead of rebuilding it.
17653
17654 2011-04-29 Richard Guenther <rguenther@suse.de>
17655
17656 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17657 Handle OBJ_TYPE_REF.
17658 (find_func_aliases_for_call): Use it more consistently.
17659
17660 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
17661
17662 * haifa-sched.c (last_nondebug_scheduled_insn): New.
17663 (rank_for_schedule): Use it.
17664 (schedule_block): Set it.
17665
17666 2011-04-28 David Li <davidxl@google.com>
17667
17668 * tree.c (crc32_string): Use crc32_byte.
17669 (crc32_byte): New function.
17670 * tree.h (crc32_byte): New function.
17671 * gcov.c (read_graph_file): Handle new cfg_cksum.
17672 (read_count_file): Ditto.
17673 * profile.c (instrument_values): Ditto.
17674 (get_exec_counts): Ditto.
17675 (read_profile_edge_counts): Ditto.
17676 (compute_branch_probabilities): Ditto.
17677 (compute_value_histograms): Ditto.
17678 (branch_prob): Ditto.
17679 (end_branch_prob): Ditto.
17680 * coverage.c (read_counts_file): Ditto.
17681 (get_coverage_counts): Ditto.
17682 (tree_coverage_counter_addr): Ditto.
17683 (coverage_checksum_string): Ditto.
17684 (coverage_begin_output): Ditto.
17685 (coverage_end_function): Ditto.
17686 (build_fn_info_type): Ditto.
17687 (build_fn_info_value): Ditto.
17688 * libgcov.c (gcov_exit): Ditto.
17689 * gcov-dump.c (tag_function): Ditto.
17690 (compute_checksum): Remove.
17691
17692 2011-04-29 Alan Modra <amodra@gmail.com>
17693
17694 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17695 unspec plus offset. Tidy macho code.
17696
17697 2011-04-29 Martin Jambor <mjambor@suse.cz>
17698
17699 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17700 node instead of a decl. Update all callers.
17701 * cgraph.h: Update declaration.
17702
17703 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
17704
17705 PR tree-optimization/48765
17706 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17707 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17708 to indicate if loop aware SLP is being used. Scan the statements
17709 and update the vectorization factor according to the type of
17710 vectorization before statement analysis.
17711 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17712 pass it to vect_analyze_loop_operations.
17713 (vectorizable_reduction): Set number of copies to 1 in case of pure
17714 SLP statement.
17715 * tree-vect-stmts.c (vectorizable_conversion,
17716 vectorizable_assignment, vectorizable_shift,
17717 vectorizable_operation, vectorizable_type_demotion,
17718 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17719 Likewise.
17720 (vectorizable_condition): Move the check that it is not SLP
17721 vectorization before the number of copies check.
17722 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17723 to vectorize the loop using SLP.
17724
17725 2011-04-28 Jakub Jelinek <jakub@redhat.com>
17726
17727 PR middle-end/48597
17728 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17729 inline asm.
17730
17731 2011-04-28 Joseph Myers <joseph@codesourcery.com>
17732
17733 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17734 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17735 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17736 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17737 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17738 linux*.h headers.
17739 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17740 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17741 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17742 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17743 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17744 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17745 REG_NAME.
17746 * config/i386/linux.h (REG_NAME): Don't define.
17747 * config/i386/linux64.h (REG_NAME): Don't define.
17748 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17749 Undefine before defining.
17750
17751 2011-04-28 Jan Hubicka <jh@suse.cz>
17752
17753 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17754 nonconstant_names array.
17755 (estimate_function_body_sizes): Build nonconstant_names array; handle
17756 BUILT_IN_CONSTANT_P.
17757
17758 2011-04-28 Richard Guenther <rguenther@suse.de>
17759
17760 PR bootstrap/48804
17761 Revert
17762 2011-04-28 Richard Guenther <rguenther@suse.de>
17763
17764 * tree-ssa-structalias.c (solve_constraints): Build succ graph
17765 as late as possible.
17766
17767 2011-04-28 Richard Guenther <rguenther@suse.de>
17768
17769 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17770 (debug_constraint): Do it here.
17771 (dump_constraints): And here.
17772 (rewrite_constraints): And here.
17773 (dump_constraint_edge): Remove.
17774 (dump_constraint_graph): Rewrite to produce DOT output.
17775 (solve_constraints): Build succ graph as late as possible.
17776 Dump constraint graphs before and after solving.
17777
17778 2011-04-28 Richard Guenther <rguenther@suse.de>
17779
17780 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17781 New function split out from ...
17782 (find_func_aliases): ... here. Call it.
17783 (find_func_aliases_for_call): Likewise.
17784
17785 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
17786
17787 * internal-fn.h (internal_fn_name_array): Declare.
17788 (internal_fn_flags_array): Likewise.
17789
17790 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17791
17792 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
17793 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17794 Move from sse.md.
17795 (ssemodefsuffix): Remove.
17796 (ssevecmodesuffix): New mode attribute.
17797 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17798 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17799 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17800 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17801 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17802 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17803 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17804 ssemodesuffix mode attribute.
17805 (float splitters): Use ssevecmodesuffix mode attribute.
17806 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17807 (sseinsmode): Rename from avxvecmode.
17808 (avxsizesuffix): Rename from avxmodesuffix.
17809 (sseintvecmode): Rename from avxpermvecmode.
17810 (ssedoublevecmode): Rename from ssedoublesizemode.
17811 (ssehalfvecmode): Rename from avxhalfvecmode.
17812 (ssescalarmode): Rename from avxscalarmode.
17813 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17814 templates for ssemodesuffix mode attribute.
17815 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17816 mode attribute.
17817
17818 Adjust RTX patterns globally for renamed mode attributes.
17819
17820 2011-04-27 Jan Hubcika <jh@suse.cz>
17821
17822 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17823 * ipa-inline-analysis.c: Include alloc-pool.h.
17824 (edge_predicate_pool): New.
17825 (trye_predicate_p): New function
17826 (false_predicate_p): New function.
17827 (add_clause): Sanity check that false clauses are "optimized";
17828 never add clauses to predicate that is already known to be false.
17829 (and_predicate): Use flase_predicate_p.
17830 (evaulate_predicate): Rename to ...
17831 (evaluate_predicate): ... this one; update all callers; assert
17832 that false is not listed among possible truths.
17833 (dump_predicate): Use true_predicate_p.
17834 (account_size_time): Use false_predicate_p.
17835 (evaulate_conditions_for_edge): Rename to ...
17836 (evaluate_conditions_for_edge) ... this one.
17837 (edge_set_predicate): New function.
17838 (inline_edge_duplication_hook): Duplicate edge predicates.
17839 (inline_edge_removal_hook): Free edge predicates.
17840 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17841 (dump_inline_summary): Update.
17842 (estimate_function_body_sizes): Set edge predicates.
17843 (estimate_calls_size_and_time): Handle predicates.
17844 (estimate_callee_size_and_time): Update.
17845 (remap_predicate): Add toplev_predicate; update comment.
17846 (remap_edge_predicates): New function.
17847 (inline_merge_summary): Compute toplev predicate; update.
17848 (read_predicate): New function.
17849 (read_inline_edge_summary): Use it.
17850 (inline_read_section): Likewise.
17851 (write_predicate): New function.
17852 (write_inline_edge_summary): Use it.
17853 (inline_write_summary): Likewise.
17854 (inline_free_summary): Free alloc pool and edge summary vec.
17855
17856 2011-04-27 Richard Guenther <rguenther@suse.de>
17857
17858 * tree-ssa-structalias.c (changed_count): Remove.
17859 (changed): Use a bitmap.
17860 (unify_nodes): Adjust.
17861 (do_sd_constraint): Likewise.
17862 (do_ds_constraint): Likewise.
17863 (do_complex_constraint): Likewise.
17864 (solve_graph): Likewise.
17865
17866 2011-04-27 Jan Hubicka <jh@suse.cz>
17867
17868 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17869
17870 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17871
17872 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17873 (avx_vperm2f128_*_operand): Ditto.
17874 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17875 Use avx_vpermilp_parallel in insn condition.
17876 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17877 Use avx_vperm2f128_parallel in insn condition.
17878
17879 2011-04-27 Richard Guenther <rguenther@suse.de>
17880
17881 * Makefile.in (tree-ssa-structalias.o): Remove
17882 gt-tree-ssa-structalias.h dependency.
17883 (GTFILES): Remove tree-ssa-structalias.c.
17884 * tree.c (allocate_decl_uid): New function.
17885 (make_node_stat): Use it.
17886 (copy_node_stat): Likewise.
17887 * tree.h (allocate_decl_uid): Declare.
17888 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17889 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17890 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17891 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17892 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17893 (struct heapvar_map): Likewise.
17894 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17895 heapvar_insert): Likewise.
17896 (make_heapvar_for): Rename to ...
17897 (make_heapvar): ... this. Simplify.
17898 (fake_var_decl_obstack): New global var.
17899 (build_fake_var_decl): New function.
17900 (make_constraint_from_heapvar): Adjust.
17901 (handle_lhs_call): Likewise.
17902 (create_function_info_for): Likewise.
17903 (intra_create_variable_infos): Likewise.
17904 (init_alias_vars): Allocate fake_var_decl_obstack.
17905 (init_alias_heapvars, delete_alias_heapvars): Remove.
17906 (compute_points_to_sets): Do not call init_alias_heapvars.
17907 (ipa_pta_execute): Likewise.
17908 (delete_points_to_sets): Free fake_var_decl_obstack.
17909
17910 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17911
17912 * config/spu/divmovti4.c (union qword_UTItype): New data type.
17913 (si_from_UTItype, si_to_UTItype): New functions.
17914 (__udivmodti4): Use them to implement type-punning.
17915 * config/spu/multi3.c (union qword_TItype): New data type.
17916 (si_from_TItype, si_to_TItype): New functions.
17917 (__multi3): Use them to implement type-punning.
17918
17919 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17920
17921 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17922
17923 2011-04-27 Jan Hubicka <jh@suse.cz>
17924
17925 * ipa-prop.c (function_insertion_hook_holder): New holder.
17926 (ipa_add_new_function): New function.
17927 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17928 Register/deregister holder.
17929
17930 2011-04-27 Richard Guenther <rguenther@suse.de>
17931
17932 PR tree-optimization/48772
17933 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17934
17935 2011-04-27 Richard Guenther <rguenther@suse.de>
17936
17937 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17938 TARGET_MEM_REF handling.
17939
17940 2011-04-27 Nick Clifton <nickc@redhat.com>
17941
17942 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17943 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17944 (REG_CLASS_NAMES): Likewise.
17945 (REG_CLASS_CONTENTS): Likewise.
17946 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17947 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17948 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
17949 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
17950 (EVEN_REGS): New macro. Alias for QUAD_REGS.
17951 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17952 duplicate register classes.
17953 (frv_class_likely_spilled_p): Likewise.
17954 (frv_register_move_cost): Likewise.
17955
17956 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17957 end of the regno_reg_class array.
17958
17959 2011-04-27 Jakub Jelinek <jakub@redhat.com>
17960
17961 PR c/48742
17962 * c-typeck.c (build_binary_op): Don't wrap arguments if
17963 int_operands is true.
17964
17965 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
17966
17967 PR target/48767
17968 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17969 targetm.calls.must_pass_in_stack for void type.
17970
17971 2011-04-26 Jan Hubicka <jh@suse.cz>
17972
17973 * cgraphbuild.c (build_cgraph_edges): Update call
17974 of cgraph_create_edge and cgraph_create_indirect_edge.
17975 * cgraph.c (cgraph_create_edge_including_clones,
17976 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17977 cgraph_update_edges_for_call_stmt_node): Do not take nest
17978 argument; do not initialize call_stmt_size/time.
17979 (dump_cgraph_node): Do not dump nest.
17980 (cgraph_clone_edge): Do not take loop_nest argument;
17981 do not propagate it; do not clone call_stmt_size/time.
17982 (cgraph_clone_node): Likewise.
17983 (cgraph_create_virtual_clone): Update.
17984 * cgraph.h (struct cgraph_edge): Remove
17985 call_stmt_size/call_stmt_time/loop_nest.
17986 (cgraph_create_edge, cgraph_create_indirect_edge,
17987 cgraph_create_edge_including_clones, cgraph_clone_node): Update
17988 prototype.
17989 * tree-emutls.c (gen_emutls_addr): Update.
17990 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17991 loop_nest; handle indirect calls, too.
17992 (clone_inlined_nodes): Do not care about updating inline summaries.
17993 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17994 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17995 stream call_stmt_size/call_stmt_time/loop_nest.
17996 * ipa-inline.c (edge_badness): Update.
17997 (ipa_inline): dump summaries after inlining.
17998 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
17999 New.
18000 (inline_edge_summary): New function.
18001 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18002 (inline_edge_removal_hook): Handle edge summaries.
18003 (inline_edge_duplication_hook): New hook.
18004 (inline_summary_alloc): Alloc hooks.
18005 (initialize_growth_caches): Do not register removal hooks.
18006 (free_growth_caches); Do not free removal hook.
18007 (dump_inline_edge_summary): New function.
18008 (dump_inline_summary): Use it.
18009 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18010 (inline_update_callee_summaries): New function.
18011 (inline_merge_summary): Use it.
18012 (do_estimate_edge_time, do_estimate_edge_growth): Update.
18013 (read_inline_edge_summary): New function.
18014 (inline_read_section): Use it.
18015 (write_inline_edge_summary): New function.
18016 (inline_write_summary): Use it.
18017 (inline_free_summary): Free edge new holders.
18018 * tree-inline.c (copy_bb): Update.
18019
18020 2011-04-26 Jason Merrill <jason@redhat.com>
18021
18022 * tree-eh.c (lower_try_finally_switch): Create the label along with
18023 the CASE_LABEL_EXPR.
18024
18025 2011-04-26 David S. Miller <davem@davemloft.net>
18026 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18027
18028 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18029 * configure: Regenerate.
18030
18031 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18032
18033 PR target/48258
18034 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18035 reduction.
18036 (VEC_reduc): New code iterator and splitters for vector reduction.
18037 (VEC_reduc_name): Ditto.
18038 (VEC_reduc_rtx): Ditto.
18039 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18040 (reduc_<VEC_reduc_name>_v4sf): Ditto.
18041
18042 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18043 support for extracting SF on VSX.
18044
18045 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18046 generating xscvspdp.
18047 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18048 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18049 double add, minimum, maximum vector reduction.
18050 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18051 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18052 optimize double vector reduction.
18053 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18054
18055 2011-04-26 Joseph Myers <joseph@codesourcery.com>
18056
18057 * config/fr30/fr30.h (inhibit_libc): Don't define.
18058 * config/m32r/m32r-protos.h: Correct comment.
18059 * config/v850/v850.h (GHS_default_section_names,
18060 GHS_current_section_names): Use tree, not union tree_node *.
18061
18062 2011-04-26 Xinliang David Li <davidxl@google.com>
18063
18064 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18065 * c-family/c-opts.c (c_common_handle_option): Set
18066 warn_maybe_uninitialized.
18067 * opts.c (common_handle_option): Ditto.
18068 * common.opt: New option.
18069 * tree-ssa.c (warn_uninit): Add one more parameter.
18070 (warn_uninitialized_var): Pass warning code.
18071 * tree-flow.h: Interface change.
18072
18073 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18074
18075 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18076 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18077 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18078
18079 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18080
18081 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18082 * config/mips/mips.opt (mmips-tfile): Remove.
18083
18084 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18085 mips-tdump reference to ...
18086 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
18087 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18088 reference by Tru64 UNIX.
18089
18090 2011-04-26 Jakub Jelinek <jakub@redhat.com>
18091
18092 PR debug/48768
18093 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18094 is error_mark_node, set value to NULL.
18095
18096 PR tree-optimization/48734
18097 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18098 if return value from maybe_fold_*_comparsions isn't something
18099 the code is prepared to handle.
18100
18101 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
18102
18103 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18104 mode check.
18105 (ext_QIreg_nomode_operands): Remove.
18106 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18107 (*andsi_1): Ditto.
18108 (*andhi_1): Ditto.
18109
18110 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
18111
18112 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18113
18114 2011-04-26 Richard Guenther <rguenther@suse.de>
18115
18116 * c-typeck.c (build_unary_op): Do not expand array-refs via
18117 pointer arithmetic. Only adjust qualifiers for function types.
18118
18119 2011-04-26 Richard Guenther <rguenther@suse.de>
18120
18121 PR middle-end/48694
18122 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18123 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18124 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
18125 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18126
18127 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
18128
18129 * doc/extend.texi: Document __underlying_type.
18130
18131 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
18132
18133 * config/rs6000/titan.md (automata_option "progress"): Remove.
18134
18135 2011-04-25 Jeff Law <law@redhat.com>
18136
18137 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18138
18139 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18140
18141 * system.h (ENUM_BITFIELD): Remove.
18142
18143 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18144 Eric Botcazou <ebotcazou@adacore.com>
18145
18146 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18147 for STORE_FLAG_VALUE==-1 case.
18148
18149 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18150
18151 PR target/43804
18152 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18153 LEGITIMATE_PIC_OPERAND_P.
18154
18155 2011-04-24 Jan Hubicka <jh@suse.cz>
18156
18157 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18158 WPA hack.
18159 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18160 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18161 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18162 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18163 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18164 Sanity check predicate length.
18165 (remap_predicate): Likewise; sanity check jump functions.
18166 (inline_read_section, inline_write_summary): Sanity check
18167 predicate length.
18168
18169 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18170
18171 PR other/48748
18172 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18173 __is_literal_type, and __is_trivial; update throughout about
18174 possibly cv-qualified void types.
18175
18176 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18177
18178 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18179 testsuite and make it version agnostic.
18180
18181 2011-04-22 Jan Hubicka <jh@suse.cz>
18182
18183 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18184
18185 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18186
18187 PR c/48685
18188 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18189 to VOID_TYPE even around MODIFY_EXPR.
18190
18191 2011-04-22 Mike Stump <mikestump@comcast.net>
18192
18193 * gensupport.c (read_md_rtx): Fix typo in comment.
18194 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18195 comment.
18196
18197 2011-04-22 Jan Hubicka <jh@suse.cz>
18198
18199 * gengtype.c (open_base_files): Add ipa-inline.h include.
18200 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18201 ipa-prop.c; update all uses.
18202 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18203 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18204 merge summary of inlined function into former caller.
18205 * ipa-inline.c (max_benefit): Remove.
18206 (edge_badness): Compensate for removal of benefits.
18207 (update_caller_keys): Use
18208 reset_node_growth_cache/reset_edge_growth_cache.
18209 (update_callee_keys): Likewise.
18210 (update_all_callee_keys): Likewise.
18211 (inline_small_functions): Do not collect max_benefit; do not reset
18212 estimated_growth; call free_growth_caches and initialize_growth_caches.
18213 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18214 struct size_time_entry): New structures.
18215 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18216 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18217 and estimated_growth.
18218 (edge_growth_cache_entry): New structure.
18219 (node_growth_cache, edge_growth_cache): New global vars.
18220 (estimate_growth): Turn into inline.
18221 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18222 initialize_growth_caches, free_growth_caches): Declare.
18223 (estimate_edge_growth): Rewrite.
18224 (estimate_edge_time): Implement as inline cache lookup.
18225 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18226 functions.
18227 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18228 (NUM_CONDITIONS): New constant.
18229 (predicate_conditions): New enum.
18230 (IS_NOT_CONSTANT): New constant.
18231 (edge_removal_hook_holder): New var.
18232 (node_growth_cache, edge_growth_cache): New global vars.
18233 (true_predicate, single_cond_predicate, false_predicate,
18234 not_inlined_predicate, add_condition, add_clause, and_predicates,
18235 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18236 dump_clause, dump_predicate, account_size_time,
18237 evaulate_conditions_for_edge): New functions.
18238 (inline_summary_alloc): Move to heap.
18239 (inline_node_removal_hook): Clear condition and entry vectors.
18240 (inline_edge_removal_hook): New function.
18241 (initialize_growth_caches, free_growth_caches): New function.
18242 (dump_inline_summary): Update.
18243 (edge_execution_predicate): New function.
18244 (will_be_nonconstant_predicate): New function.
18245 (estimate_function_body_sizes): Compute BB and constantness predicates.
18246 (compute_inline_parameters): Do not clear estimated_growth.
18247 (estimate_edge_size_and_time): New function.
18248 (estimate_calls_size_and_time): New function.
18249 (estimate_callee_size_and_time): New function.
18250 (remap_predicate): New function.
18251 (inline_merge_summary): New function.
18252 (do_estimate_edge_time): New function based on...
18253 (estimate_edge_time): ... this one.
18254 (do_estimate_edge_growth): New function.
18255 (do_estimate_growth): New function based on....
18256 (estimate_growth): ... this one.
18257 (inline_analyze_function): Analyze after deciding on jump functions.
18258 (inline_read_section): New function.
18259 (inline_read_summary): Use it.
18260 (inline_write_summary): Write all the new data.
18261 * ipa-prop.c (ipa_get_param_decl_index): Export.
18262 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18263 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18264 Declare.
18265 (ipa_get_lattice): Move here from ipa-cp.c
18266 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18267 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18268 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18269 cgraph_edge_inlinable_p): Remove.
18270 * cgraphunit.c: Include ipainline.h
18271 (cgraph_process_new_functions): Update call of
18272 compute_inline_parameters.
18273
18274 2011-04-22 Richard Guenther <rguenther@suse.de>
18275
18276 * tree.c (build_int_cst): Properly create canonicalized integer
18277 constants.
18278 (build_int_cst_type): Remove scary comments.
18279
18280 2011-04-22 Xinliang David Li <davidxl@google.com>
18281
18282 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18283 by default when -Wno-error is not specified.
18284 * opts-global.c (decode_options): Remove call to
18285 control_warning_options.
18286
18287 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18288
18289 PR tree-optimization/48717
18290 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18291 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18292
18293 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18294
18295 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18296 definition where used.
18297
18298 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18299
18300 PR c/48716
18301 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18302 TREE_STATIC variables declared inside of some OpenMP construct.
18303
18304 2011-04-22 Martin Jambor <mjambor@suse.cz>
18305
18306 PR middle-end/48585
18307 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18308
18309 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18310
18311 PR c/36750
18312 * c-typeck.c (pop_init_level): Do not warn about initializing
18313 with ` = {0}'.
18314
18315 2011-04-22 Alan Modra <amodra@gmail.com>
18316
18317 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18318 when returning call_cookie.
18319 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18320 pointers, to functions with no more vector args than the current
18321 function, and some non-local calls for ABI_V4.
18322 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18323 sibcall_nonlocal_aix64): Combine to ..
18324 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18325 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18326 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18327 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18328 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18329 operand.
18330 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18331 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18332 sibcall_value_symbolic_64): Delete.
18333
18334 2011-04-21 Xinliang David Li <davidxl@google.com>
18335
18336 * cgraph.h: Remove pid.
18337 * cgraph.c: Remove pid.
18338 * value-prof.c (init_node_map): New function.
18339 (del_node_map): New function.
18340 (find_func_by_funcdef_no): New function.
18341 (gimple_ic_transform): Call new function.
18342 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18343 * function.c (get_last_funcdef_no): New function.
18344 * function.h (get_last_funcdef_no): New function.
18345 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18346 to libgcov function.
18347 (tree-profiling): Call node map init and delete function.
18348
18349 2011-04-21 Ian Lance Taylor <iant@google.com>
18350
18351 * godump.c (go_format_type): Use exported Go name for anonymous
18352 field name.
18353
18354 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18355
18356 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18357 Call builtin_function_type_list instead of builtin_function_type.
18358 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18359
18360 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18361
18362 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18363 build_function_type_list instead of build_function_type.
18364 Delete variable `endlink'.
18365
18366 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18367
18368 * config/s390/s390.c (s390_init_builtins): Call
18369 build_function_type_list instead of build_function_type.
18370
18371 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18372
18373 * config/ia64/ia64.c (ia64_init_builtins): Call
18374 build_function_type_list instead of builtin_function_type.
18375
18376 2011-04-21 Easwaran Raman <eraman@google.com>
18377
18378 * cfgexpand.c (stack_var): Remove OFFSET...
18379 (add_stack_var): ...and its reference here...
18380 (expand_stack_vars): ...and here.
18381 (stack_var_cmp): Sort by descending order of size.
18382 (partition_stack_vars): Change heuristic.
18383 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18384 (dump_stack_var_partition): Add newline after each partition.
18385
18386 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18387 Jeff Law <law@redhat.com>
18388
18389 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18390 * gengtype.c (matching_file_name_substitute): Likewise.
18391
18392 2011-04-21 Richard Guenther <rguenther@suse.de>
18393
18394 PR lto/48703
18395 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18396
18397 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18398
18399 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18400
18401 2011-04-21 Richard Guenther <rguenther@suse.de>
18402
18403 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18404 file name.
18405
18406 2011-04-21 Richard Guenther <rguenther@suse.de>
18407
18408 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18409 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18410 Use DECL_P, not SSA_VAR_P.
18411 (ptr_derefs_may_alias_p): Likewise.
18412 (ptr_deref_may_alias_ref_p_1): Likewise.
18413 (decl_refs_may_alias_p): Likewise.
18414 (refs_may_alias_p_1): Likewise.
18415 (ref_maybe_used_by_call_p_1): Likewise.
18416 (call_may_clobber_ref_p_1): Likewise.
18417 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18418 are either MEM_REF or TARGET_MEM_REF.
18419 (indirect_refs_may_alias_p): Likewise.
18420 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18421 for MEM_EXPR of indirect calls.
18422
18423 2011-04-21 Tristan Gingold <gingold@adacore.com>
18424
18425 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18426 (dst_file_info_struct): Remove flen field.
18427 (lookup_filename): Remove code that set flen field.
18428
18429 2011-04-21 Tristan Gingold <gingold@adacore.com>
18430
18431 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18432
18433 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18434
18435 PR target/48708
18436 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18437 vec_extract and vec_concat for non-SSE4_1 targets.
18438
18439 2011-04-21 Richard Guenther <rguenther@suse.de>
18440
18441 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18442 return statements.
18443
18444 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18445
18446 * config/i386/cygming.h (union tree_node, TREE): Don't define or
18447 undefine.
18448 (FILE): Don't undefine.
18449
18450 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18451
18452 * config/alpha/alpha.c (struct machine_function): Use rtx, not
18453 struct rtx_def *.
18454 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18455 struct rtx_def *.
18456 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18457 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18458 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18459 rtx_def *.
18460 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
18461 definitions where used.
18462 * config/microblaze/microblaze.h (struct microblaze_args): Use
18463 rtx, not struct rtx_def *.
18464 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18465 rtx_def *.
18466 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18467 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18468 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18469 not struct rtx_def *.
18470 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18471 struct rtx_def *.
18472 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18473 rtx_def *.
18474 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18475
18476 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18477
18478 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18479 operand_equal_p to compare DR_BASE_ADDRESSes.
18480 (vect_check_interleaving): Likewise.
18481
18482 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18483
18484 PR target/46329
18485 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18486 for all Neon struct constants.
18487
18488 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18489
18490 * target.def (legitimate_constant_p): New hook.
18491 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18492 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18493 * doc/tm.texi: Regenerate.
18494 * hooks.h (hook_bool_mode_rtx_true): Declare.
18495 * hooks.c (hook_bool_mode_rtx_true): Define.
18496 * system.h (LEGITIMATE_CONSTANT_P): Poison.
18497 * calls.c (precompute_register_parameters): Replace uses of
18498 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18499 (emit_library_call_value_1): Likewise.
18500 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18501 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18502 * ira-costs.c (scan_one_insn): Likewise.
18503 * recog.c (general_operand, immediate_operand): Likewise.
18504 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18505 * reload1.c (init_eliminable_invariants): Likewise.
18506
18507 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18508 mode argument.
18509 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18510 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18511 argument.
18512 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18513 * config/alpha/predicates.md (input_operand): Update call to
18514 alpha_legitimate_constant_p.
18515
18516 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18517 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18518 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18519 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18520 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18521 (arm_legitimate_constant_p): New functions.
18522 (arm_cannot_force_const_mem): Make static.
18523
18524 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18525
18526 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18527 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18528 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18529 instead of bfin_legitimate_constant_p.
18530 (bfin_legitimate_constant_p): Make static. Add a mode argument.
18531 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18532
18533 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18534
18535 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18536
18537 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18538 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18539 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18540 (frv_legitimate_constant_p): Make static. Add a mode argument.
18541
18542 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18543 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18544 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18545
18546 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18547 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18548 * config/i386/i386.c (legitimate_constant_p): Rename to...
18549 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
18550 argument.
18551 (ix86_cannot_force_const_mem): Update accordingly.
18552 (ix86_legitimate_address_p): Likewise.
18553 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18554 * config/i386/i386.md: Update commentary.
18555
18556 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18557 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18558 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18559 (ia64_legitimate_constant_p): Make static. Add a mode argument.
18560
18561 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18562
18563 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18564 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18565 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18566 (lm32_legitimate_constant_p): Make static. Add a mode argument.
18567
18568 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18569 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18570 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18571
18572 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18573 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18574 (m32r_legitimate_constant_p): New function.
18575
18576 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18577 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18578 LEGITIMATE_CONSTANT_P.
18579 (LEGITIMATE_CONSTANT_P): Delete.
18580 * config/m68k/m68k.c (m68k_expand_prologue): Call
18581 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18582 (m68k_legitimate_constant_p): New function.
18583 * config/m68k/m68k.md: Update comments.
18584
18585 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18586 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18587 (mcore_legitimate_constant_p): New function.
18588
18589 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18590 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18591 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18592 Add a mode argument.
18593 (mep_legitimate_address): Update accordingly.
18594 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18595
18596 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18597 Delete.
18598 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18599 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18600 static. Check OP's mode for VOIDmode.
18601 (microblaze_legitimate_constant_p): New function.
18602 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18603
18604 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18605 * config/mips/mips.c (mips_legitimate_constant_p): New function.
18606 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18607 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18608 * config/mips/predicates.md: Update comments.
18609
18610 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18611 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18612 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18613 (mmix_legitimate_constant_p): Make static, return a bool, and take
18614 a mode argument.
18615 (mmix_print_operand_address): Update accordingly.
18616
18617 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18618 Delete.
18619 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18620 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18621 static. Add a mode argument.
18622 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18623
18624 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18625
18626 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18627 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18628 (pa_legitimate_constant_p): New function.
18629
18630 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18631
18632 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18633 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18634 (pdp11_legitimate_constant_p): New function.
18635
18636 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18637 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18638 (rs6000_legitimate_constant_p): New function.
18639
18640 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18641 (rx_legitimate_constant_p): ...this.
18642 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18643 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18644 (rx_legitimate_constant_p): ...this.
18645 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18646 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18647
18648 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18649 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18650 * config/s390/s390.c (legitimate_constant_p): Rename to...
18651 (s390_legitimate_constant_p): ...this. Make static, return a bool,
18652 and add a mode argument.
18653 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18654
18655 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18656
18657 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18658 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18659 (sh_legitimate_constant_p): New function.
18660
18661 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18662 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18663 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18664 (legitimate_constant_p): Rename to...
18665 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
18666 argument.
18667 (constant_address_p): Update accordingly.
18668
18669 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18670 argument and return a bool.
18671 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18672 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18673 (spu_legitimate_constant_p): Add a mode argument and return a bool.
18674 (spu_rtx_costs): Update accordingly.
18675 * config/spu/predicates.md (vec_imm_operand): Likewise.
18676
18677 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18678
18679 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18680 * config/v850/v850.c (v850_legitimate_constant_p): New function.
18681 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18682
18683 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18684 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18685 * config/vax/vax.c (legitimate_constant_p): Likewise.
18686
18687 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18688 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18689 (xtensa_legitimate_constant_p): New function.
18690
18691 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18692
18693 * target.def (cannot_force_const_mem): Add a mode argument.
18694 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18695 * doc/tm.texi: Regenerate.
18696 * hooks.h (hook_bool_mode_rtx_false): Declare.
18697 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18698 (hook_bool_mode_const_rtx_true): Likewise.
18699 (hook_bool_mode_rtx_false): New function.
18700 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18701 to be non-VOID. Update call to cannot_force_const_mem.
18702 (find_reloads): Update accordingly.
18703 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18704 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18705 argument.
18706 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18707 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18708 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18709 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18710 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18711 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18712 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18713 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18714 (m68k_cannot_force_const_mem): ...this new function.
18715 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18716 argument.
18717 (mips_const_insns, mips_legitimize_const_move): Update calls.
18718 (mips_secondary_reload_class): Likewise.
18719 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18720 (pa_cannot_force_const_mem): ...this new function.
18721 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18722 (rs6000_cannot_force_const_mem): ...this new function.
18723 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18724 argument.
18725 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18726 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18727 to...
18728 (xtensa_cannot_force_const_mem): ...this new function.
18729
18730 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18731
18732 * config/mips/mips.c (mips16_build_function_stub): Call
18733 build_function_type_list instead of build_function_type.
18734 (mips16_build_call_stub): Likewise.
18735
18736 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18737
18738 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18739 instead of build_function_type.
18740
18741 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18742
18743 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18744 instead of build_function_type.
18745
18746 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
18747
18748 PR target/48678
18749 * config/i386/i386.md (insv): Change operand 0 constraint to
18750 "register_operand". Change operand 1 and 2 constraint to
18751 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
18752 * config/i386/sse.md (sse4_1_pinsrb): Export.
18753 (sse2_pinsrw): Ditto.
18754 (sse4_1_pinsrd): Ditto.
18755 (sse4_1_pinsrq): Ditto.
18756 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18757 * config/i386/i386.c (ix86_expand_pinsr): New.
18758
18759 2011-04-20 Easwaran Raman <eraman@google.com>
18760
18761 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18762 containing union type only with -fstrict-aliasing.
18763
18764 2011-04-20 Jim Meyering <meyering@redhat.com>
18765
18766 Remove useless if-before-free tests.
18767 * calls.c (expand_call, save_area): Likewise.
18768 * cfgcleanup.c (try_forward_edges): Likewise.
18769 * collect2.c (collect_execute): Likewise.
18770 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18771 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18772 * coverage.c (coverage_checksum_string): Likewise.
18773 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18774 * cselib.c (cselib_init): Likewise.
18775 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18776 (df_set_clean_cfg): Likewise.
18777 * function.c (free_after_compilation): Likewise.
18778 * gcc.c (do_spec_1, main): Likewise.
18779 * gcov.c (create_file_names): Likewise.
18780 * gensupport.c (identify_predicable_attribute): Likewise.
18781 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18782 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18783 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18784 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18785 * ipa-pure-const.c (local_pure_const): Likewise.
18786 * ipa-reference.c (propagate): Likewise.
18787 * ira-costs.c (free_ira_costs): Likewise.
18788 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18789 * matrix-reorg.c (mat_free): Likewise.
18790 * prefix.c (get_key_value): Likewise.
18791 * profile.c (compute_value_histograms): Likewise.
18792 * reload1.c (free_reg_equiv): Likewise.
18793 * sched-deps.c (free_deps): Likewise.
18794 * sel-sched-ir.c (fence_clear): Likewise.
18795 * sese.c (set_rename, if_region_set_false_region): Likewise.
18796 * tree-data-ref.c (free_rdg): Likewise.
18797 * tree-eh.c (lower_try_finally): Likewise.
18798 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18799 * tree-ssa-live.c (delete_var_map): Likewise.
18800 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18801 * tree-ssa-pre.c (phi_trans_add): Likewise.
18802
18803 2011-04-20 Jakub Jelinek <jakub@redhat.com>
18804
18805 PR tree-optimization/48611
18806 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18807 beyond ERT_MUST_NOT_THROW region.
18808
18809 2011-04-20 Catherine Moore <clm@codesourcery.com>
18810
18811 * config/mips/mips.opt (mfix-24k): New.
18812 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18813 * config/mips/mips.md (length): Increase by 4 for stores if
18814 fixing 24K errata.
18815 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18816 all noreorder if fixing 24K errata.
18817 * doc/invoke.texi: Document mfix-24k.
18818
18819 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
18820
18821 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18822 quad-word modes, reduce to 9-bit index range when above 1016 limit.
18823
18824 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18825
18826 * config/arm/arm.c (arm_gen_constant): Move movw support ....
18827 (const_ok_for_op): ... to here.
18828
18829 2011-04-20 Kai Tietz <ktietz@redhat.com>
18830
18831 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18832 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18833
18834 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18835
18836 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18837
18838 2011-04-20 Richard Guenther <rguenther@suse.de>
18839
18840 PR tree-optimization/47892
18841 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18842 are if-convertible.
18843
18844 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
18845
18846 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18847
18848 2011-04-20 Tristan Gingold <gingold@adacore.com>
18849
18850 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18851
18852 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
18853
18854 PR target/18145
18855
18856 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18857 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18858 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18859 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18860 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18861
18862 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18863 New prototype.
18864
18865 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18866 (avr_asm_named_section, avr_asm_output_aligned_common,
18867 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18868 New functions to update...
18869 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18870 (avr_asm_init_sections): Overwrite section callbacks for
18871 data_section, bss_section.
18872 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18873 from here to...
18874 (avr_file_end): ...here.
18875
18876 2011-04-20 Richard Guenther <rguenther@suse.de>
18877
18878 PR middle-end/48695
18879 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18880 objects and types here. Adjust for their offset before comparing.
18881
18882 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18883
18884 * tree-vect-stmts.c (vectorizable_store): Only chain one related
18885 statement per copy.
18886
18887 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18888
18889 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18890 (GIMPLE_H): Include $(INTERNAL_FN_H).
18891 (OBJS-common): Add internal-fn.o.
18892 (internal-fn.o): New rule.
18893 * internal-fn.def: New file.
18894 * internal-fn.h: Likewise.
18895 * internal-fn.c: Likewise.
18896 * gimple.h: Include internal-fn.h.
18897 (GF_CALL_INTERNAL): New gf_mask.
18898 (gimple_statement_call): Put fntype into a union with a new
18899 internal_fn field.
18900 (gimple_build_call_internal): Declare.
18901 (gimple_build_call_internal_vec): Likewise.
18902 (gimple_call_same_target_p): Likewise.
18903 (gimple_call_internal_p): New function.
18904 (gimple_call_internal_fn): Likewise.
18905 (gimple_call_fntype): Return null for internal calls.
18906 (gimple_call_set_fntype): Assert that the function is not internal.
18907 (gimple_call_set_fn): Likewise.
18908 (gimple_call_set_fndecl): Likewise.
18909 (gimple_call_set_internal_fn): New function.
18910 (gimple_call_addr_fndecl): Handle null functions.
18911 (gimple_call_return_type): Likewise null types.
18912 * gimple.c (gimple_build_call_internal_1): New function.
18913 (gimple_build_call_internal): Likewise.
18914 (gimple_build_call_internal_vec): Likewise.
18915 (gimple_call_same_target_p): Likewise.
18916 (gimple_call_flags): Handle calls to internal functions.
18917 (gimple_call_fnspec): New function.
18918 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18919 (gimple_has_side_effects): Handle null functions.
18920 (gimple_rhs_has_side_effects): Likewise.
18921 (gimple_call_copy_skip_args): Handle calls to internal functions.
18922 * cfgexpand.c (expand_call_stmt): Likewise.
18923 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18924 * gimple-fold.c (gimple_fold_call): Handle null functions.
18925 (gimple_fold_stmt_to_constant_1): Don't fold
18926 calls to internal functions.
18927 * gimple-low.c (gimple_check_call_args): Handle calls to internal
18928 functions.
18929 * gimple-pretty-print.c (dump_gimple_call): Likewise.
18930 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18931 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18932 (do_warn_unused_result): Likewise.
18933 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18934 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18935 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18936 the target of a call.
18937 (initialize_hash_element): Update accordingly.
18938 (hashable_expr_equal_p): Use gimple_call_same_target_p.
18939 (iterative_hash_hashable_expr): Handle calls to internal functions.
18940 (print_expr_hash_elt): Likewise.
18941 * tree-ssa-pre.c (can_value_number_call): Likewise.
18942 (eliminate): Handle null functions.
18943 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18944 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18945 (find_func_aliases): Likewise.
18946 * value-prof.c (gimple_ic_transform): Likewise.
18947 (gimple_indirect_call_to_profile): Likewise.
18948 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18949 * lto-streamer-out.c (output_gimple_stmt): Likewise.
18950
18951 2011-04-19 Jan Hubicka <jh@suse.cz>
18952
18953 * ipa-inline-transform.c (save_inline_function_body): Add comments.
18954 * ipa-inline.c (inline_small_functions): Compute summaries first,
18955 populate heap later.
18956
18957 2011-04-19 Jan Hubicka <jh@suse.cz>
18958
18959 * cgraph.h (save_inline_function_body): Remove.
18960 * ipa-inline-transform.c: New file, broke out of...
18961 * ipa-inline.c: ... this one; Update toplevel comment.
18962 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18963 make global.
18964 (update_noncloned_frequencies): Move to ipa-inline-transform.c
18965 (cgraph_mark_inline_edge): Rename to inline_call; move to
18966 ipa-inline-transform.c.
18967 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18968 move to ipa-inline-transform.c
18969 (recursive_inlining, inline_small_functions, flatten_function,
18970 ipa_inline, inline_always_inline_functions,
18971 early_inline_small_functions): Update.
18972 (inline_transform): Move to ipa-inline-transform.c.
18973 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18974 Declare.
18975 * Makefile.in (ipa-inline-transform.o): New file.
18976 * cgraphunit.c (save_inline_function_body): Move to
18977 ipa-inline-transform.c
18978
18979 2011-04-19 DJ Delorie <dj@redhat.com>
18980
18981 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18982 registers if we already know there aren't any.
18983 (m32c_emit_epilogue): Don't emit a barrier here.
18984 (m32c_emit_eh_epilogue): Likewise.
18985 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18986 operands at expand time.
18987 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18988 int" wchar type.
18989 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18990 duplicates. Provide aliases instead.
18991 * config/m32c/prologue.md (eh_return): Emit a barrier here.
18992 (eh_epilogue): Add a "(return)" here as a hint to other parts of
18993 the compiler.
18994
18995 2011-04-19 Anatoly Sokolov <aesok@post.ru>
18996
18997 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18998 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
18999 (general_or_i64_p, sparc_register_move_cost): New function.
19000
19001 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19002
19003 * doc/install.texi (Configuration, --enable-threads): Remove mach.
19004 Add lynx, mipssde. Sort table.
19005
19006 2011-04-19 Xinliang David Li <davidxl@google.com>
19007
19008 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19009 not negative.
19010
19011 2011-04-19 Jakub Jelinek <jakub@redhat.com>
19012
19013 PR target/48678
19014 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19015 is a SUBREG with non-MODE_INT mode inside of it.
19016
19017 2011-04-19 Martin Jambor <mjambor@suse.cz>
19018
19019 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19020 also according to actual contants.
19021 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19022 (gimple_fold_call): Use it.
19023 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19024
19025 2011-04-19 Martin Jambor <mjambor@suse.cz>
19026
19027 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19028 non-pointer assignments.
19029
19030 2011-04-19 Martin Jambor <mjambor@suse.cz>
19031
19032 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19033 account anc_offset and otr_type from the indirect edge info.
19034 * ipa-prop.c (get_ancestor_addr_info): New function.
19035 (compute_complex_ancestor_jump_func): Assignment analysis moved to
19036 get_ancestor_addr_info, call it.
19037 (ipa_note_param_call): Do not initialize information about polymorphic
19038 calls, return the indirect call graph edge. Remove the last
19039 parameter, adjust all callers.
19040 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19041 parameters. Initialize polymorphic information in the indirect edge.
19042
19043 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19044
19045 PR lto/48148
19046 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19047 the types if they have different enumeration identifiers.
19048
19049 2011-04-19 Jan Hubicka <jh@suse.cz>
19050
19051 * cgraph.h (cgraph_optimize_for_size_p): Declare.
19052 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19053 * predict.c (cgraph_optimize_for_size_p): Break out from ...
19054 (optimize_function_for_size_p) ... here.
19055
19056 2011-04-19 Richard Guenther <rguenther@suse.de>
19057
19058 PR lto/48207
19059 * tree.c (free_lang_data): Do not reset the decl-assembler-name
19060 langhook.
19061
19062 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19063
19064 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19065 if DECL_NO_INLINE_WARNING_P is set on the function.
19066
19067 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
19068
19069 PR fortran/47976
19070 * reload1.c (inc_for_reload): Return void. All callers changed.
19071 (emit_input_reload_insns): Don't try to delete previous output
19072 reloads to a register, or record spill_reg_store for autoincs.
19073
19074 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
19075
19076 * gengtype.h: Updated copyright year.
19077 (struct input_file_st): Add inpisplugin field.
19078 (type_fileloc): New function.
19079 * gengtype.c
19080 (write_typed_struct_alloc_def): Add gcc_assert.
19081 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19082 (write_typed_alloc_defns): Don't output for plugin files.
19083 (input_file_by_name): Clear inpisplugin field.
19084 (main): Set inpisplugin field for plugin files.
19085
19086 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
19087
19088 * gengtype-state.c (string_eq): New.
19089 (read_state): Use string_eq instead of strcmp when creating the
19090 state_ident_tab.
19091
19092 2011-04-19 Wei Guozhi <carrot@google.com>
19093
19094 PR target/47855
19095 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19096 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19097 linkage.
19098 * config/arm/constraints.md (Uu): New constraint.
19099 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19100
19101 2011-04-19 Tristan Gingold <gingold@adacore.com>
19102
19103 * config.gcc (-*-*-*vms): Added.
19104 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19105 definitions moved.
19106 * config/vms/vms-ld.c: New file.
19107 * config/vms/vms-ar.c: New file.
19108 * config/vms/t-vmsnative: New file.
19109
19110 2011-04-18 Xinliang David Li <davidxl@google.com>
19111
19112 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19113
19114 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19115
19116 PR middle-end/48661
19117 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19118 if TREE_TYPE (v) is non-NULL.
19119
19120 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19121 gimple_get_virt_mehtod_for_binfo.
19122 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19123 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19124 callers.
19125 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19126
19127 2011-04-18 Michael Matz <matz@suse.de>
19128 Steve Ellcey <sje@cup.hp.com>
19129
19130 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19131 use its mode as source mode if it isn't VOIDmode.
19132
19133 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19134
19135 * doc/passes.texi: Fill crossref nodes.
19136
19137 2011-04-18 Jim Meyering <meyering@redhat.com>
19138
19139 Fix doubled-word typos in comments and strings
19140 * config/alpha/vms-unwind.h: s/for for/for/
19141 * config/arm/unwind-arm.h: Likewise.
19142 * config/microblaze/microblaze.c: Likewise.
19143 * config/sh/constraints.md: s/in in/in/
19144 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19145
19146 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19147
19148 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19149 (AVX_FLOAT_MODE_P): Ditto.
19150 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19151 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19152 (AVX_VEC_FLOAT_MODE_P): Ditto.
19153 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19154 (UNSPEC_MASKSTORE): Ditto.
19155 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19156 Merge from <sse>_movmsk<ssemodesuffix> and
19157 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19158 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19159 iterator.
19160 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19161 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19162 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19163
19164 2011-04-18 Jan Hubicka <jh@suse.cz>
19165
19166 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19167
19168 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19169 (want_inline_function_called_once_p): Break out the logic from
19170 ipa_inline.
19171 (edge_badness): Ensure that profile is not misupdated.
19172 (lookup_recursive_calls): Prioritize by call frequencies.
19173 (inline_small_functions): Move program size estimates here;
19174 actually process whole queue even when unit growth has been
19175 met. (to properly compute inline_failed reasons and for the
19176 case unit size decrease.) Revisit comments on recursive inlining.
19177 (ipa_inline): Remove unit summary code; first inline hot calls
19178 of functions called once, cold calls next.
19179 (order, nnodes): Remove unused variables.
19180 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19181 (GTFILES): Remove ipa-inline.c
19182 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19183
19184 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19185
19186 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19187
19188 2011-04-18 Jie Zhang <jie@codesourcery.com>
19189 Richard Earnshaw <rearnsha@arm.com>
19190
19191 * arm.c (neon_builtin_type_bits): Remove.
19192 (typedef enum neon_builtin_mode): New.
19193 (T_MAX): Don't define.
19194 (typedef enum neon_builtin_datum): Remove bits, codes[],
19195 num_vars and base_fcode. Add mode, code and fcode.
19196 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19197 VAR10): Change accordingly.
19198 (neon_builtin_data[]): Change accordingly
19199 (arm_init_neon_builtins): Change accordingly.
19200 (neon_builtin_compare): Remove.
19201 (locate_neon_builtin_icode): Remove.
19202 (arm_expand_neon_builtin): Change accordingly.
19203
19204 * arm.h (enum arm_builtins): Move to ...
19205 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19206
19207 * arm.c (arm_builtin_decl): Declare.
19208 (TARGET_BUILTIN_DECL): Define.
19209 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19210 (arm_builtin_decls[]): New.
19211 (arm_init_neon_builtins): Store builtin declarations in
19212 arm_builtin_decls[].
19213 (arm_init_tls_builtins): Likewise.
19214 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19215 (arm_builtin_decl): New.
19216
19217 2011-04-18 Richard Guenther <rguenther@suse.de>
19218
19219 * tree.c (upper_bound_in_type): Build properly canonicalized
19220 INTEGER_CSTs.
19221 (lower_bound_in_type): Likewise.
19222
19223 2011-04-18 Richard Guenther <rguenther@suse.de>
19224
19225 * gimple.h (gimple_call_addr_fndecl): New function.
19226 (gimple_call_fndecl): Use it.
19227 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19228 for direct calls.
19229 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19230 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19231
19232 2011-04-18 Richard Guenther <rguenther@suse.de>
19233
19234 PR middle-end/48650
19235 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19236
19237 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19238
19239 PR lto/48492
19240 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19241 DECL_IN_CONSTANT_POOL without RTL.
19242
19243 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19244 Ira Rosen <ira.rosen@linaro.org>
19245
19246 PR target/48252
19247 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19248 to match neon_vzip/vuzp/vtrn_internal.
19249 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19250 outputs explicitly dependent on both inputs.
19251 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19252
19253 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19254
19255 PR tree-optimization/48616
19256 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19257 whether the shift is by scalar or vector based on whether all SLP
19258 scalar stmts have the same rhs.
19259
19260 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19261
19262 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19263 memory operands.
19264
19265 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19266
19267 PR target/43700
19268 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19269 registers.
19270
19271 2011-04-17 Jan Hubicka <jh@suse.cz>
19272
19273 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19274 * cgrpahunit.c (cgraph_finalize_function): Do not set
19275 finalized_by_frontend.
19276 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19277 finalized_by_frontend.
19278
19279 2011-04-17 Jan Hubicka <jh@suse.cz>
19280
19281 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19282 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19283 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19284 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19285 method.
19286 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19287 gimple-fold.c
19288 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19289
19290 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19291
19292 PR lto/48538
19293 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19294 is non-null before accessing it.
19295 (input_cgraph): Remove trailing spaces.
19296
19297 2011-04-17 Revital Eres <revital.eres@linaro.org>
19298
19299 * params.def (sms-min-sc): New param flag.
19300 * modulo-sched.c (sms_schedule): Use it.
19301 * doc/invoke.texi (sms-min-sc): Document it.
19302
19303 2011-04-17 Jan Hubicka <jh@suse.cz>
19304
19305 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19306 present, also set gimple_call_set_cannot_inline.
19307 * ipa-inline.c: Update toplevel comment.
19308 (MAX_TIME): Remove.
19309 (cgraph_clone_inlined_nodes): Fix linebreaks.
19310 (cgraph_check_inline_limits): Restructure to ...
19311 (caller_growth_limits): ... this one; be more tolerant
19312 on growth in nested inline chains; add explanatory comment;
19313 fix stack accounting thinko introduced by previous patch.
19314 (cgraph_default_inline_p): Remove.
19315 (report_inline_failed_reason): New function.
19316 (can_inline_edge_p): New function.
19317 (can_early_inline_edge_p): New function.
19318 (leaf_node_p): Move upwards in file.
19319 (want_early_inline_function_p): New function.
19320 (want_inline_small_function_p): New function.
19321 (want_inline_self_recursive_call_p): New function.
19322 (cgraph_edge_badness): Rename to ...
19323 (edge_badness) ... this one; fix linebreaks.
19324 (update_edge_key): Update call of edge_baddness; add
19325 detailed dump about queue updates.
19326 (update_caller_keys): Use can_inline_edge_p and
19327 want_inline_small_function_p.
19328 (cgraph_decide_recursive_inlining): Rename to...
19329 (recursive_inlining): Use can_inline_edge_p and
19330 want_inline_self_recursive_call_p; simplify and remove no longer
19331 valid FIXME.
19332 (cgraph_set_inline_failed): Remove.
19333 (add_new_edges_to_heap): Use can_inline_edge_p and
19334 want_inline_small_function_p.
19335 (cgraph_decide_inlining_of_small_functions): Rename to ...
19336 (inline_small_functions): ... this one; cleanup; use
19337 can/want predicates; cleanup debug ouput; work edges till fibheap
19338 is exhausted and do not stop once unit growth is reached; remove
19339 later loop processing remaining edges.
19340 (cgraph_flatten): Rename to ...
19341 (flatten_function): ... this one; use can_inline_edge_p
19342 and can_early_inline_edge_p predicates.
19343 (cgraph_decide_inlining): Rename to ...
19344 (ipa_inline): ... this one; remove unreachable nodes before
19345 inlining functions called once; simplify the pass.
19346 (cgraph_perform_always_inlining): Rename to ...
19347 (inline_always_inline_functions): ... this one; use
19348 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19349 (cgraph_decide_inlining_incrementally): Rename to ...
19350 (early_inline_small_functions): ... this one; simplify
19351 using new predicates; cleanup; make dumps prettier.
19352 (cgraph_early_inlining): Rename to ...
19353 (early_inliner): newer inline regular functions into always-inlines;
19354 fix updating of call stmt summaries.
19355 (pass_early_inline): Update for new names.
19356 (inline_transform): Fix formating.
19357 (gate_cgraph_decide_inlining): Rename to ...
19358 (pass_ipa_inline): ... this one.
19359 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19360 * ipa-inline-analysis.c (dump_inline_summary): Update.
19361 (compute_inline_parameters): Do not compute disregard_inline_limits;
19362 look for mismatching arguments.
19363 (estimate_growth): Fix handlig of non-trivial self recursion.
19364 (inline_read_summary): Do not read info->disregard_inline_limits.
19365 (inline_write_summary): Do not write info->disregard_inline_limits.
19366 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19367 and move all checks into can_inline_edge_p predicate; re-enable code
19368 comparing optimization levels.
19369 (expand_call_inline): Do not test inline_forbidden_into_p.
19370 * Makefile.in (ipa-inline.o): Update arguments.
19371
19372 2011-04-17 Revital Eres <revital.eres@linaro.org>
19373
19374 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19375
19376 2011-04-17 Revital Eres <revital.eres@linaro.org>
19377
19378 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19379
19380 2011-04-17 Michael Matz <matz@suse.de>
19381
19382 PR tree-optimization/48622
19383 PR lto/48645
19384 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19385 in same order as they're written.
19386
19387 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19388
19389 * config/pa/predicates.md: Reorganize and simplify predicates.
19390 Eliminate duplicate code checks.
19391 (arith_operand): Rename to arith14_operand
19392 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19393 * config/pa/pa.md: Use renamed operands.
19394 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19395 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19396 arith11_operand, adddi3_operand, indexed_memory_operand,
19397 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19398 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19399 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19400 move_dest_operand, move_src_operand, prefetch_cc_operand,
19401 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19402 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19403 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19404 div_operand, int5_operand, movb_comparison_operator,
19405 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19406 arith_double_operand, ireg_operand, lhs_lshift_operand,
19407 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19408 integer_store_memory_operand): Likewise.
19409 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19410 (integer_store_memory_operand, read_only_operand,
19411 function_label_operand, borx_reg_operand,
19412 non_hard_reg_operand): Likewise.
19413 (eq_neq_comparison_operator): Delete unused operator.
19414 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19415 function_label_operand.
19416 (emit_move_sequence): Likewise.
19417
19418 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19419
19420 * config/i386/sse.md (sseunpackmode): New mode attribute.
19421 (ssepackmode): Ditto.
19422 (vec_pack_trunc_<mode>): Macroize expander from
19423 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19424 (vec_unpacks_lo_<mode>): Macroize expander from
19425 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19426 (vec_unpacks_hi_<mode>): Macroize expander from
19427 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19428 (vec_unpacku_lo_<mode>): Macroize expander from
19429 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19430 (vec_unpacku_hi_<mode>): Macroize expander from
19431 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19432 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19433 ix86_expand_sse4_unpack.
19434 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19435
19436 2011-04-16 Jan Hubicka <jh@suse.cz>
19437
19438 * cgraphbuild.c: Include ipa-inline.h.
19439 (reset_inline_failed): Use initialize_inline_failed.
19440 * cgraph.c: Include ipa-inline.h.
19441 (cgraph_create_node_1): Do not initialize estimated_growth.
19442 (initialize_inline_failed): More to ipa-inline-analysis.c
19443 (dump_cgraph_node): Do not dump inline flags.
19444 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19445 and disregard_inline_limits flags.
19446 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19447 time, size, estimated_growth.
19448 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19449 Update.
19450 * cgraphunit.c (cgraph_decide_is_function_needed): Use
19451 DECL_DISREGARD_INLINE_LIMITS.
19452 (cgraph_analyze_function): Do not initialize
19453 node->local.disregard_inline_limits.
19454 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19455 inlinable, versionable and disregard_inline_limits.
19456 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19457 cgraph_check_inline_limits, cgraph_default_inline_p,
19458 cgraph_edge_badness, update_caller_keys, update_callee_keys,
19459 add_new_edges_to_heap): Update.
19460 (cgraph_decide_inlining_of_small_function): Update; set
19461 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19462 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19463 cgraph_decide_inlining_incrementally): Update.
19464 * ipa-inline.h (inline_summary): Add inlinable, versionable,
19465 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19466 time, size and estimated_growth parameters.
19467 (estimate_edge_growth): Update.
19468 (initialize_inline_failed): Declare.
19469 * ipa-split.c: Include ipa-inline.h
19470 (execute_split_functions): Update.
19471 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19472 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19473 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19474 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19475 estimated_growth to INT_MIN.
19476 (inline_node_duplication_hook): Likewise.
19477 (dump_inline_summary): Dump new fields.
19478 (compute_inline_parameters): Update.
19479 (estimate_edge_time, estimate_time_after_inlining,
19480 estimate_size_after_inlining, estimate_growth, inline_read_summary,
19481 inline_write_summary):
19482 (initialize_inline_failed): Move here from cgraph.c.
19483 * tree-sra.c: Include ipa-inline.h.
19484 (ipa_sra_preliminary_function_checks): Update.
19485 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19486 ipa-inline.h.
19487
19488 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19489
19490 * config/i386/sse.md (V16): New mode iterator.
19491 (VI1, VI8): Ditto.
19492 (AVXMODEQI, AVXMODEDI): Remove.
19493 (sse2, sse3): New mode attribute.
19494 (mov<mode>): Use V16 mode iterator.
19495 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19496 (push<mode>1): Use V16 mode iterator.
19497 (movmisalign<mode>): Ditto.
19498 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19499 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19500 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19501 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19502 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19503 avx_movdqu<avxmodesuffix>.
19504 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19505 *avx_movdqu<avxmodesuffix>.
19506 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19507 avx_lddqu<avxmodesuffix>.
19508 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19509 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19510 avx_movnt<AVXMODEDI:mode>.
19511 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19512 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19513
19514 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
19515
19516 PR target/48629
19517 * haifa-sched.c (prune_ready_list, schedule_block): Use
19518 sched_pressure_p rather than flag_sched_pressure.
19519
19520 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
19521
19522 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19523 cgraph_get_node instead of cgraph_get_create_node.
19524
19525 2011-04-15 Jakub Jelinek <jakub@redhat.com>
19526
19527 * cfgexpand.c (expand_debug_expr): Use
19528 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19529
19530 2011-04-15 Michael Matz <matz@suse.de>
19531
19532 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19533 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19534 * function.c (gimplify_parameters): Ditto.
19535 * gimplify.c (gimplify_vla_decl): Ditto.
19536
19537 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19538 (gimple_call_set_alloca_for_var): New inline function.
19539 (gimple_call_alloca_for_var_p): Ditto.
19540 * gimple.c (gimple_build_call_from_tree): Remember
19541 CALL_ALLOCA_FOR_VAR_P state.
19542 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19543
19544 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19545 calls if they were for VLA objects.
19546
19547 2011-04-15 Martin Jambor <mjambor@suse.cz>
19548
19549 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19550 of ADR_EXPRs.
19551
19552 2011-04-15 Martin Jambor <mjambor@suse.cz>
19553
19554 PR middle-end/48601
19555 * tree-emutls.c (lower_emutls_function_body): Call
19556 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
19557 result is non-NULL.
19558
19559 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
19560
19561 * c-decl.c (detect_field_duplicates): Call
19562 objc_detect_field_duplicates instead of objc_get_interface_ivars.
19563
19564 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
19565
19566 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19567 * gimple.c (gimple_asm_clobbers_memory_p): Define.
19568 * ipa-pure-const.c (check_stmt): Call it.
19569 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19570
19571 2011-04-15 Richard Guenther <rguenther@suse.de>
19572
19573 PR tree-optimization/48290
19574 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19575 Properly decide inhibiting propagation based on the valueized
19576 operand. Do loop-closed SSA form preserving here ...
19577 (init_copy_prop): ... not here.
19578
19579 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
19580
19581 PR target/48612
19582 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19583 (*ieee_smax<mode>3): Likewise.
19584
19585 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19586
19587 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19588 Replace match_operand with match_dup for the third operand in
19589 these expanders.
19590
19591 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19592
19593 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19594 to track processing of conditionals. Update all callers.
19595 (try_combine, simplify_if_then_else): Update.
19596
19597 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19598
19599 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19600 -fsched-pressure.
19601
19602 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
19603
19604 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19605 instead of match_operand for operand 3.
19606
19607 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
19608
19609 * recog.h (insn_operand_data): Add an "allows_mem" field.
19610 * genoutput.c (output_operand_data): Initialize it.
19611 * optabs.c (maybe_legitimize_operand_same_code): New function.
19612 (maybe_legitimize_operand): Use it when matching the original
19613 op->value.
19614
19615 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19616
19617 * gimplify.c: Fix issues in comments throughout.
19618 (voidify_wrapper_expr): Fix long line.
19619 (build_stack_save_restore): Likewise.
19620 (gimplify_loop_expr): Likewise.
19621 (gimplify_compound_lval): Likewise.
19622 (gimplify_init_ctor_eval): Likewise.
19623 (gimplify_modify_expr_rhs): Likewise.
19624 (omp_notice_threadprivate_variable): Likewise.
19625
19626 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19627
19628 * cfgexpand.c (expand_call_stmt): Convert the function type to the
19629 original one if this is not a builtin function.
19630
19631 2011-04-14 Jakub Jelinek <jakub@redhat.com>
19632
19633 PR target/48605
19634 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19635 offset it as needed based on top 2 bits in operands[3], change
19636 MEM mode to SFmode and mask those 2 bits away from operands[3].
19637
19638 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19639
19640 * c-parser.c (c_parser_objc_protocol_definition): Updated for
19641 change from objc_declare_protocols() to objc_declare_protocol().
19642
19643 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
19644
19645 * config/i386/sse.md (sse4_1): New mode attribute.
19646 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19647 avx_blend<ssemodesuffix><avxmodesuffix> and
19648 sse4_1_blend<ssemodesuffix> using VF mode iterator.
19649 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19650 avx_blendv<ssemodesuffix><avxmodesuffix> and
19651 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19652 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19653 avx_dp<ssemodesuffix><avxmodesuffix> and
19654 sse4_1_dp<ssemodesuffix> using VF mode iterator.
19655 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19656 (sse4_1_packusdw): Merge with *avx_packusdw.
19657 (sse4_1_pblendvb): Merge with *avx_pblendvb.
19658 (sse4_1_pblendw): Merge with *avx_pblendw.
19659 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19660 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19661 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19662 VF mode iterator.
19663 (sse4_1_round<ssescalarmodesuffix>): Merge with
19664 *avx_round<ssescalarmodesuffix>.
19665 (aesenc): Merge with *avx_aesenc.
19666 (aesenclast): Merge with *avx_aesenclast.
19667 (aesdec): Merge with *avx_aesdec.
19668 (aesdeclast): Merge with *avx_aesdeclast.
19669 (pclmulqdq): Merge with *pclmulqdq.
19670 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19671 New predicate.
19672 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19673
19674 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
19675
19676 PR middle-end/48608
19677 * cfgexpand.c (get_decl_align_unit): Renamed to ...
19678 (align_local_variable): This. Update DECL_ALIGN.
19679 (add_stack_var): Updated.
19680 (expand_one_stack_var): Likewise.
19681
19682 2011-04-14 Richard Guenther <rguenther@suse.de>
19683
19684 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19685 Remove.
19686 (dse_initialize_block_local_data, dse_leave_block,
19687 record_voperand_set, get_stmt_uid): Likewise.
19688 (dse_possible_dead_store_p): Allow any kind of killing stmt.
19689 (dse_optimize_stmt): Remove voperand set handling code.
19690 Simplify and improve to handle any kind of killing stmt.
19691 (dse_record_phi): Remove.
19692 (dse_enter_block): Simplify.
19693 (tree_ssa_dse): Likewise.
19694 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19695
19696 2011-04-14 Jan Hubicka <jh@suse.cz>
19697
19698 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19699 * cgraph.h (struct inline_summary): Move to ipa-inline.h
19700 (cgraph_local_info): Remove inline_summary.
19701 * ipa-cp.c: Include ipa-inline.h.
19702 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19703 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19704 accesor.
19705 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19706 (input_overwrite_node): Do not set inline summary.
19707 (input_node): Do not stream inline summary.
19708 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19709 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19710 growth; we do not have inline parameters computed for that anyway.
19711 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19712 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19713 (inline_summary_t): New type and VECtor.
19714 (debug_inline_summary, dump_inline_summaries): Declare.
19715 (inline_summary): Use VOCtor.
19716 (estimate_edge_growth): Kill hack computing call stmt size directly.
19717 * lto-section-in.c (lto_section_name): Add inline section.
19718 * ipa-inline-analysis.c: Include lto-streamer.h
19719 (node_removal_hook_holder, node_duplication_hook_holder): New holders
19720 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19721 (inline_summary_vec): Define.
19722 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19723 dump_inline_summaries): New functions.
19724 (estimate_function_body_sizes): Properly compute size/time of outgoing
19725 calls.
19726 (compute_inline_parameters): Alloc inline_summary; do not compute
19727 size/time of incomming calls.
19728 (estimate_edge_time): Avoid missing time summary hack.
19729 (inline_read_summary): Read inline summary info.
19730 (inline_write_summary): Write inline summary info.
19731 (inline_free_summary): Free all hooks and inline summary vector.
19732 * lto-streamer.h: Add LTO_section_inline_summary section.
19733 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19734 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19735
19736 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19737
19738 * tree-vectorizer.h (vect_strided_store_supported): Add a
19739 HOST_WIDE_INT argument.
19740 (vect_strided_load_supported): Likewise.
19741 (vect_permute_store_chain): Return void.
19742 (vect_transform_strided_load): Likewise.
19743 (vect_permute_load_chain): Delete.
19744 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19745 count argument. Check that the count is a power of two.
19746 (vect_strided_load_supported): Likewise.
19747 (vect_permute_store_chain): Return void. Update after above changes.
19748 Assert that the access is supported.
19749 (vect_permute_load_chain): Likewise.
19750 (vect_transform_strided_load): Return void.
19751 * tree-vect-stmts.c (vectorizable_store): Update calls after
19752 above interface changes.
19753 (vectorizable_load): Likewise.
19754 (vect_analyze_stmt): Don't check for strided powers of two here.
19755
19756 2011-04-14 Richard Guenther <rguenther@suse.de>
19757
19758 PR tree-optimization/48590
19759 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19760 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19761 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19762 BUILT_IN_STACK_SAVE.
19763 * tree-ssa-dce.c (propagate_necessity): Handle
19764 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19765
19766 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19767
19768 * c-parser.c (c_parser_objc_class_declaration): Updated call to
19769 objc_declare_class.
19770
19771 2011-04-14 Richard Guenther <rguenther@suse.de>
19772
19773 * tree.h (get_object_alignment_1): Declare.
19774 * builtins.c (get_object_alignment_1): Split out worker from ...
19775 (get_object_alignment): ... here.
19776 * fold-const.c (get_pointer_modulus_and_residue): Use
19777 get_object_alignment_1.
19778
19779 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19780
19781 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19782 type parameter.
19783 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19784 parameter. Generalise code to handle arrays as well as vectors.
19785 (vect_setup_realignment): Update accordingly.
19786 * tree-vect-stmts.c (vectorizable_store): Likewise.
19787 (vectorizable_load): Likewise.
19788
19789 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19790
19791 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19792 within the per-copy loop.
19793
19794 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19795
19796 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19797 in the dump file.
19798
19799 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19800
19801 * doc/options.texi (Negative): Explicitly mention that the
19802 Negative chain must be circular.
19803
19804 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
19805
19806 * function.h (block_chainon): Declare.
19807 * function.c (block_chainon): Define.
19808
19809 2011-04-14 Anatoly Sokolov <aesok@post.ru>
19810 Eric Weddington <eric.weddington@atmel.com>
19811 Georg-Johann Lay <avr@gjlay.de>
19812
19813 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19814 New Includes
19815 (avr_init_builtins, avr_expand_builtin,
19816 avr_expand_delay_cycles, avr_expand_unop_builtin,
19817 avr_expand_binop_builtin ): New functions.
19818 (avr_builtin_id): New enum
19819 (struct avr_builtin_description): New struct
19820 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19821 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19822
19823 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19824 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19825 UNSPECV_DELAY_CYCLES): new enumeration values
19826 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19827 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19828 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19829 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19830 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19831 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19832 "fmulsu"): New insns
19833
19834 * config/avr/avr-c.c: fix line endings
19835 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19836 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19837 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19838 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19839 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19840
19841 * doc/extend.texi (AVR Built-in Functions): New node
19842 (Target Builtins): Add documentation of AVR
19843 built-in functions.
19844
19845 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
19846
19847 PR target/44643
19848 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19849 alone. Error if non-const data has attribute progmem.
19850
19851 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19852
19853 * tree.h (struct tree_constructor): Include tree_typed instead of
19854 tree_common.
19855 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19856 TS_TYPED instead of TS_COMMON.
19857
19858 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
19859
19860 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19861 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19862 (sse2_psadbw): Merge with *avx_psadbw.
19863 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19864 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19865 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19866 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19867 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19868 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19869 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19870 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19871 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19872 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19873 (ssse3_palignrti): Merge with *avx_palignrti.
19874
19875 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19876
19877 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19878 * tree-ssanames.c (fini_ssanames): VEC_free it.
19879 (make_ssa_name_fn): Update for VECness of free_ssanames.
19880 (release_ssa_name, release_dead_ssa_names): Likewise.
19881 * tree.h (struct tree_ssa_name): Include tree_typed instead of
19882 tree_common.
19883 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19884 TS_TYPED instead of TS_COMMON.
19885
19886 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19887
19888 * postreload-gcse.c (gcse_after_reload_main): Add calls to
19889 statistics_counter_event.
19890 * tree-ssa-copyrename.c (stats): Define.
19891 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
19892 statistics_counter_event.
19893 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19894 (bswap_stats, widen_mul_stats): Define.
19895 (insert_reciprocals): Increment rdivs_inserted.
19896 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
19897 rfuncs_inserted. Add calls to statistics_counter_event.
19898 (execute_cse_sincos_1): Increment inserted.
19899 (execute_cse_sincos): Zeroize sincos_stats. Add call to
19900 statistics_counter_event.
19901 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
19902 of bswap_stats. Add calls to statistics_counter_event.
19903 (convert_mult_to_widen): Increment widen_mults_inserted.
19904 (convert_plusminus_to_widen): Increment maccs_inserted.
19905 (convert_mult_to_fma): Increment fmas_inserted.
19906 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
19907 calls to statistics_counter_event.
19908
19909 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
19910
19911 PR rtl-optimization/48455
19912 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19913 `temp_costs->mem_cost'.
19914
19915 2011-04-13 Jan Hubicka <jh@suse.cz>
19916
19917 * ipa-inline.h: New file.
19918 * ipa-inline-analysis.c: New file. Broken out of ...
19919 * ipa-inline.c: ... this file; update toplevel comment;
19920 include ipa-inline.h
19921 (inline_summary): Move to ipa-inline.h
19922 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19923 ipa-inline-analysis.c.
19924 (cgraph_estimate_time_after_inlining): Rename to
19925 estiamte_time_after_inlining; move to ipa-inline-analysis.c
19926 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19927 to estimate_edge_growth.
19928 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19929 rename to estimate_size_after_inlining.
19930 (cgraph_mark_inline_edge): Update for new naming convention.
19931 (cgraph_check_inline_limits): Likewise.
19932 (cgraph_edge_badness): Likewise.
19933 (cgraph_decide_recursive_inlining): Likewise.
19934 (cgraph_decide_inlining_of_small_functions): Likewise.
19935 (cgraph_decide_inlining_incrementally): Likewise.
19936 (cgraph_estimate_growth): Rename to estimate_growth; move to
19937 ipa-inline-analysis.c.
19938 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19939 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19940 (compute_inline_parameters): Likewise.
19941 (compute_inline_parameters_for_current): Likewise.
19942 (pass_inline_parameters): Likewise.
19943 (inline_indirect_intraprocedural_analysis): Likewise.
19944 (analyze_function): Rename to inline_analyze_function; likewise.
19945 (add_new_function): Move to ipa-inline-analysis.c.
19946 (inline_generate_summary): Likewise.
19947 (inline_read_summary): Likewise.
19948 (inline_write_summary): Likewise.
19949 * Makefile.in (ipa-inline-analysis.c): New file.
19950
19951 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19952
19953 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19954 * configure: Regenerate.
19955
19956 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19957
19958 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19959 instead of tree_common.
19960 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19961 Likewise.
19962 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19963 TS_TYPED rather than TS_COMMON.
19964 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19965
19966 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
19967
19968 PR target/45263
19969 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19970 r20 around calls of __tablejump_elpm__
19971
19972 2011-04-13 Jakub Jelinek <jakub@redhat.com>
19973
19974 PR middle-end/48591
19975 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19976 NULL.
19977 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19978
19979 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
19980
19981 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19982 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19983 (cfi_vec): New typedef.
19984 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19985 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19986 (cie_cfi_vec): New static variable.
19987 (cie_cfi_head): Delete.
19988 (add_cfi): Accept a cfi_vec * as first argument. All callers and
19989 declaration changed. Use vector rather than list operations.
19990 (new_cfi): Don't initialize the dw_cfi_next field.
19991 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19992 rather than list operations.
19993 (lookup_cfa): Use vector rather than list operations.
19994 (output_cfis): New argument upto. Accept a cfi_vec rather than
19995 a dw_cfi_ref list head as argument. All callers changed.
19996 Iterate over the vector using upto as a maximum index.
19997 (output_all_cfis): New static function.
19998 (output_fde): Use vector rather than list operations. Use the
19999 new upto argument for output_cfis rather than manipulating a
20000 list.
20001 (dwarf2out_begin_prologue): Change initializations to match
20002 new struct members.
20003 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20004 from the vector length rather than searching for the end of a list.
20005 Use output_all_cfis.
20006 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20007
20008 2011-04-13 Nick Clifton <nickc@redhat.com>
20009
20010 * config/rx/rx.md (movmemsi): Do not use this pattern when
20011 volatile pointers are involved.
20012
20013 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20014
20015 * config/i386/sse.md (pinsrbits): Remove.
20016 (sse2_packsswb): Merge with *avx_packsswb.
20017 (sse2_packssdw): Merge with *avx_packssdw.
20018 (sse2_packuswb): Merge with *avx_packuswb.
20019 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20020 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20021 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20022 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20023 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20024 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20025 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20026 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20027 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20028 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20029 (sse2_loadld): Merge with *avx_loadld.
20030 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20031 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20032 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20033 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20034 (vec_concatv2di): Merge with *vec_concatv2di_avx.
20035
20036 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
20037
20038 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20039 calling TREE_CHAIN.
20040 * print-tree.c (print_node): Likewise.
20041 * tree-inline.c (copy_tree_r): Likewise.
20042 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20043 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20044 instead of TS_COMMON.
20045 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20046 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20047 (copy_node_stat): Zero TREE_CHAIN only if necessary.
20048 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20049 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20050 ...and these...
20051 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20052 * tree.h: ...here.
20053 (TREE_CHAIN): Check for a TS_COMMON structure.
20054 (TREE_TYPE): Check for a TS_TYPED structure.
20055
20056 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
20057
20058 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20059 cgraph_get_create_node instead of cgraph_node.
20060
20061 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20062
20063 * c-parser.c (c_parser_initelt): Updated call to
20064 objc_build_message_expr.
20065 (c_parser_postfix_expression): Likewise.
20066
20067 2011-04-12 Kai Tietz <ktietz@redhat.com>
20068
20069 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20070 MASK_MS_BITFIELD_LAYOUT bit.
20071
20072 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20073
20074 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20075 assert it is always true.
20076 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20077 moves.
20078
20079 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20080
20081 * c-parser.c (c_lex_one_token): Rewritten conditional used when
20082 compiling Objective-C to be more efficient.
20083
20084 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
20085
20086 * opts-common.c (decode_cmdline_options_to_array): Remove variable
20087 argv_copied.
20088
20089 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20090
20091 * recog.h, genoutput.c, optabs.c: Revert last patch.
20092
20093 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20094
20095 PR target/48090
20096 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20097
20098 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20099
20100 * recog.h (insn_operand_data): Add an "allows_mem" field.
20101 * genoutput.c (output_operand_data): Initialize it.
20102 * optabs.c (maybe_legitimize_operand_same_code): New function.
20103 (maybe_legitimize_operand): Use it when matching the original
20104 op->value.
20105
20106 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20107
20108 * genpreds.c (process_define_predicate): Move most processing
20109 to gensupport.c. Continue to validate the expression.
20110 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20111 (process_define_predicate): Move processing to gensupport.c.
20112 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20113 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20114 (compute_predicate_codes): Moved from genrecog.c. Add lineno
20115 argument.
20116 (valid_predicate_name_p): New function, split out from old
20117 genpreds.c:process_define_predicate.
20118 (process_define_predicate): New function, combining code from
20119 old genpreds.c and genrecog.c functions.
20120 (process_rtx): Call it for DEFINE_PREDICATE and
20121 DEFINE_SPECIAL_PREDICATE.
20122
20123 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20124
20125 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20126 size of a '%A' memory reference.
20127 (T_DREG, T_QREG): New neon_builtin_type_bits.
20128 (arm_init_neon_builtins): Assert that the load and store operands
20129 are neon_struct_operands.
20130 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20131 (NEON_ARG_MEMORY): New builtin_arg.
20132 (neon_dereference_pointer): New function.
20133 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20134 Handle NEON_ARG_MEMORY.
20135 (arm_expand_neon_builtin): Update after above interface changes.
20136 Use NEON_ARG_MEMORY for loads and stores.
20137 * config/arm/predicates.md (neon_struct_operand): New predicate.
20138 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20139 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20140 (V_four_elem): Tweak formatting.
20141 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20142 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20143 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20144 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20145 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20146 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20147 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20148 Use %A in the output template.
20149 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20150 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20151 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20152 the width of the memory access. Remove post-increment.
20153 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20154
20155 2011-04-12 Nick Clifton <nickc@redhat.com>
20156
20157 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20158 instruction for interrupt handlers if the target is the basic V850
20159 architecture.
20160 (expand_epilogue): Likewise.
20161
20162 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20163
20164 PR rtl-optimization/48549
20165 * combine.c (propagate_for_debug): Also stop after BB_END of
20166 this_basic_block. Process LAST and just stop processing after it.
20167 (combine_instructions): If last_combined_insn has been deleted,
20168 set last_combined_insn to its PREV_INSN.
20169
20170 2011-04-12 Richard Guenther <rguenther@suse.de>
20171
20172 PR tree-optimization/46076
20173 * gimple.h (struct gimple_statement_call): Add fntype field.
20174 (gimple_call_fntype): Adjust.
20175 (gimple_call_set_fntype): New function.
20176 * gimple.c (gimple_build_call_1): Set the call function type.
20177 * gimplify.c (gimplify_call_expr): Preserve the function
20178 type the frontend used for the call.
20179 (gimplify_modify_expr): Likewise.
20180 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20181 function type.
20182 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20183 function type.
20184 * tree-ssa.c (useless_type_conversion_p): Function pointer
20185 conversions are useless.
20186
20187 2011-04-12 Martin Jambor <mjambor@suse.cz>
20188
20189 * cgraph.h (cgraph_node): Remove function declaration.
20190 (cgraph_create_node): Declare.
20191 (cgraph_get_create_node): Likewise.
20192 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20193 Updated all callers.
20194 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20195 the decl does not already exist. Call cgraph_get_create_node instead
20196 of cgraph_node.
20197 (cgraph_get_create_node): New function.
20198 (cgraph_same_body_alias): Update comment.
20199 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20200 assert it does not return NULL.
20201 (cgraph_update_edges_for_call_stmt): Likewise.
20202 (cgraph_clone_edge): Likewise.
20203 (cgraph_create_virtual_clone): Likewise.
20204 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20205 instead of cgraph_node.
20206 (cgraph_add_new_function): Call cgraph_create_node or
20207 cgraph_get_create_node instead of cgraph_node.
20208 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20209 instead of cgraph_node.
20210 (record_eh_tables): Likewise.
20211 (mark_address): Likewise.
20212 (mark_load): Likewise.
20213 (build_cgraph_edges): Call cgraph_get_create_node instead
20214 of cgraph_node.
20215 (rebuild_cgraph_edges): Likewise.
20216 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20217 instead of cgraph_node.
20218 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20219 cgraph_node.
20220 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20221 cgraph_create_node instead of cgraph_node.
20222 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20223 of cgraph_node.
20224 * lto-cgraph.c (input_node): Likewise.
20225 * lto-streamer-in.c (input_function): Likewise.
20226 * varasm.c (mark_decl_referenced): Likewise.
20227 (assemble_alias): Likewise.
20228
20229 2011-04-12 Martin Jambor <mjambor@suse.cz>
20230
20231 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20232 instead of cgraph_node and assert it does not return NULL.
20233 * lto-streamer-in.c (lto_read_body): Likewise.
20234 * omp-low.c (new_omp_context): Likewise.
20235 (create_task_copyfn): Likewise.
20236 * tree-emutls.c (lower_emutls_function_body): Likewise.
20237 * matrix-reorg.c (transform_allocation_sites): Likewise.
20238
20239 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20240
20241 PR c/48552
20242 * c-typeck.c (build_asm_expr): Error out on attempts to use
20243 void type outputs or inputs for constraints that allow reg or
20244 don't allow memory.
20245
20246 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20247 Richard Earnshaw <rearnsha@arm.com>
20248
20249 PR target/48250
20250 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20251 to use sign-magnitude offsets. Reject unsupported unaligned
20252 cases. Add detailed description in comments.
20253 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20254 condition from TARGET_32BIT to TARGET_ARM.
20255
20256 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20257
20258 * tree.h (struct typed_tree): New.
20259 (struct tree_common): Include it instead of tree_base.
20260 (TREE_TYPE): Update for new location of type field.
20261 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20262 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20263 (union tree_node): Add typed field.
20264 * treestruct.def (TS_TYPED): New.
20265 * lto-streamer.c (check_handled_ts_structures): Handle it.
20266 * tree.c (MARK_TS_TYPED): New macro.
20267 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20268
20269 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20270
20271 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20272 (force_nonfallthru): Do not alter the loop nest if no basic block
20273 was created.
20274
20275 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20276
20277 * config/i386/sse.md (VI): New mode iterator.
20278 (SSEMODEI): Remove.
20279 (AVX256MODEI): Ditto.
20280 (AVXMODEF4P): Ditto.
20281 (avxvecpsmode): Ditto.
20282 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20283 (sse2_andnot<mode>3): New expander.
20284 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20285 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20286 (<any_logic:code><mode>3): Use VI mode iterator.
20287 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20288 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20289 (*andnottf3): Handle AVX three-operand constraints.
20290 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20291
20292 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20293 Robert Millan <rmh@gnu.org>
20294
20295 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20296 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20297 GNU_USER_DYNAMIC_LINKER64): Define.
20298 (REG_NAME): Don't undefine.
20299 (MD_UNWIND_SUPPORT): Undefine.
20300 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20301 (REG_NAME): Don't undefine.
20302 (MD_UNWIND_SUPPORT): Undefine.
20303 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20304
20305 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20306
20307 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20308 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20309
20310 2011-04-11 Xinliang David Li <davidxl@google.com>
20311
20312 * value-profile.c (check_ic_target): New function.
20313 (gimple_ic_transform): Sanity check indirect call target.
20314 * gimple-low.c (gimple_check_call_args): Interface change.
20315 (gimple_check_call_matching_types): New function.
20316 * tree-inline.c (tree_can_inline_p): Call new function.
20317
20318 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20319
20320 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20321 tree-pretty-print.h & realmpfr.h.
20322
20323 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20324
20325 PR middle-end/48464
20326 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20327 (setup_allocno_and_important_classes): Ditto.
20328
20329 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20330
20331 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20332 GNU_USER_DYNAMIC_LINKER.
20333 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20334 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20335 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20336 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20337 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20338 GNU_USER_TARGET_OS_CPP_BUILTINS.
20339 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20340 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20341 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20342 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20343 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20344 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20345 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20346 GNU_USER_TARGET_OS_CPP_BUILTINS.
20347 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20348 GNU_USER_DYNAMIC_LINKER.
20349 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20350 GNU_USER_TARGET_OS_CPP_BUILTINS.
20351 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20352 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20353 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20354 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20355 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20356 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20357 GNU_USER_DYNAMIC_LINKER64): Remove.
20358 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20360 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20361 GNU_USER_DYNAMIC_LINKER.
20362 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20363 GNU_USER_TARGET_OS_CPP_BUILTINS.
20364 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20365 GNU_USER_TARGET_OS_CPP_BUILTINS.
20366 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20367 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20368 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20369 GNU_USER_TARGET_OS_CPP_BUILTINS.
20370 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20371 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20372 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20373 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20374 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20375 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20376 GNU_USER_DYNAMIC_LINKER.
20377 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20378 GNU_USER_TARGET_OS_CPP_BUILTINS.
20379 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20381 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20382 GNU_USER_DYNAMIC_LINKER.
20383 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20384 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20385 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20386 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20387 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20388 GNU_USER_DYNAMIC_LINKER.
20389 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20390 GNU_USER_DYNAMIC_LINKERN32.
20391 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20392 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20393 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20394 GNU_USER_DYNAMIC_LINKER32.
20395 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20396 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20397 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20398 GNU_USER_DYNAMIC_LINKER.
20399 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20400 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20401 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20402 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20403 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20404 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20405 GNU_USER_DYNAMIC_LINKER32.
20406 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20407 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20408 GNU_USER_DYNAMIC_LINKER.
20409 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20410 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20411 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20412 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20413 GNU_USER_DYNAMIC_LINKER64.
20414 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20415 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20416 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20417 GNU_USER_DYNAMIC_LINKER.
20418 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20419 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20420 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20421 GNU_USER_DYNAMIC_LINKER.
20422 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20423 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20424 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20425 GNU_USER_DYNAMIC_LINKER32.
20426 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20427 GNU_USER_DYNAMIC_LINKER64.
20428 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20429 GNU_USER_DYNAMIC_LINKER64.
20430 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20431 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20432 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20433 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20434 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20435
20436 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20437
20438 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20439 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20440 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20441 GNU_USER_DYNAMIC_LINKER.
20442 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20443 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
20444 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20445 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20446 GNU_USER_DYNAMIC_LINKER64.
20447 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20448 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20449 GNU_USER_LINK_EMULATION.
20450 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20451 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20452 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20453 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20454 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20455 CPP_SPEC, CC1_SPEC): Remove.
20456 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20457 (GNU_USER_DYNAMIC_LINKER): Define.
20458 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20459 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20460 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20461 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20462 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20463 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20464 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20465 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20466 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20467 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20468 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20469 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20470 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20471 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20472 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20473 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20474 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20475 GNU_USER_DYNAMIC_LINKER.
20476 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20477 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20478 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20479 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20480 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20481 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20482 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20483 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20484 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20485 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20486
20487 2011-04-11 Kai Tietz <ktietz@redhat.com>
20488
20489 PR target/9601
20490 PR target/11772
20491 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20492 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20493 comment.
20494 (ix86_is_msabi_thiscall): Removed.
20495 (ix86_is_type_thiscall): Likewise.
20496 (ix86_get_callcvt): New function.
20497 (ix86_comp_type_attributes): Simplify check.
20498 (ix86_function_regparm): Use ix86_get_callcvt for calling
20499 convention attribute checks.
20500 (ix86_return_pops_args): Likewise.
20501 (ix86_static_chain): Likewise.
20502 (x86_this_parameter): Likewise.
20503 (x86_output_mi_thunk): Likewise.
20504 (ix86_function_type_abi): Optimize check for types without attributes.
20505 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20506 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20507 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20508 by flag-values.
20509 (IX86_BASE_CALLCVT): Helper macro.
20510 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20511 Use ix86_get_callcvt for calling convention attribute checks and avoid
20512 symbol-decoration for stdcall in TARGET_RTD case.
20513 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20514 Likewise.
20515 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20516 for declaration.
20517
20518 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20519
20520 * config/i386/sse.md (VI_128): New mode iterator.
20521 (VI12_128): Rename from SSEMODE12.
20522 (VI14_128): Rename from SSEMODE14.
20523 (VI124_128): New mode iterator.
20524 (VI24_128): Rename from SSEMODE248.
20525 (VI248_128): Rename from SSEMODE248.
20526 (SSEMODE124C8): Remove.
20527 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20528 (*sse2_<plusminus_insn><mode>3): Merge with
20529 *avx_<plusminus_insn><mode>3.
20530 (*mulv8hi3): Merge with *avx_mulv8hi3.
20531 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20532 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20533 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20534 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20535 (ashr<mode>3): Merge with *avx_ashr<mode>3.
20536 (lshr<mode>3): Merge with *avx_lshr<mode>3.
20537 (ashl<mode>3): Merge with *avx_ashl<mode>3.
20538 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20539 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20540 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20541 (*<smaxmin:code>v8hi3): Ditto.
20542 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20543 (*<smaxmin:code>v16qi3): Ditto.
20544 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20545 (*sse2_eq<mode>3): Ditto.
20546 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20547 (*sse2_gt<mode>3): Ditto.
20548 (vcondv2di): Split out of vcond<mode>.
20549 (vconduv2di): Split out of vcondu<mode>.
20550
20551 2011-04-11 Richard Guenther <rguenther@suse.de>
20552
20553 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20554 before calling tree_low_cst.
20555
20556 2011-04-11 Richard Guenther <rguenther@suse.de>
20557
20558 * stor-layout.c (layout_type): Compute all array index size operations
20559 in the original type.
20560 (initialize_sizetypes): Add comment.
20561 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20562
20563 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20564
20565 * common.opt (Tbss=, Tdata=, Ttext=): New options.
20566
20567 2011-04-11 Martin Jambor <mjambor@suse.cz>
20568
20569 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20570 of cgraph_node, handle NULL return value.
20571 (cgraph_global_info): Likewise.
20572 (cgraph_rtl_info): Likewise.
20573 * tree-inline.c (estimate_num_insns): Likewise.
20574 * gimplify.c (unshare_body): Likewise.
20575 (unvisit_body): Likewise.
20576 (gimplify_body): Likewise.
20577 * predict.c (optimize_function_for_size_p): Likewise.
20578 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20579 (call_may_clobber_ref_p_1): Likewise.
20580 * varasm.c (function_section_1): Likewise.
20581 (assemble_start_function): Likewise.
20582
20583 2011-04-11 Martin Jambor <mjambor@suse.cz>
20584
20585 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20586 of cgraph_node.
20587 * final.c (rest_of_clean_state): Likewise.
20588 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20589 * passes.c (pass_init_dump_file): Likewise.
20590 (execute_all_ipa_transforms): Likewise.
20591 (function_called_by_processed_nodes_p): Likewise.
20592 * predict.c (maybe_hot_frequency_p): Likewise.
20593 (probably_never_executed_bb_p): Likewise.
20594 (compute_function_frequency): Likewise.
20595 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20596 (unnest_nesting_tree_1): Likewise.
20597 (lower_nested_functions): Likewise.
20598 * tree-optimize.c (execute_fixup_cfg): Likewise.
20599 (tree_rest_of_compilation): Likewise.
20600 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20601 * tree-sra.c (ipa_early_sra): Likewise.
20602 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20603 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20604 * ipa.c (record_cdtor_fn): Likewise.
20605 * ipa-inline.c (cgraph_early_inlining): Likewise.
20606 (compute_inline_parameters_for_current): Likewise.
20607 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20608 * ipa-pure-const.c (local_pure_const): Likewise.
20609 * ipa-split.c (split_function): Likewise.
20610 (execute_split_functions): Likewise.
20611 * cgraphbuild.c (build_cgraph_edges): Likewise.
20612 (rebuild_cgraph_edges): Likewise.
20613 (cgraph_rebuild_references): Likewise.
20614 (remove_cgraph_callee_edges): Likewise.
20615 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20616 (verify_cgraph_node): Likewise.
20617 (cgraph_analyze_functions): Likewise.
20618 (cgraph_preserve_function_body_p): Likewise.
20619 (save_inline_function_body): Likewise.
20620 (save_inline_function_body): Likewise.
20621 * tree-inline.c (copy_bb): Likewise.
20622 (optimize_inline_calls): Likewise.
20623
20624 2011-04-11 Martin Jambor <mjambor@suse.cz>
20625
20626 PR tree-optimization/48195
20627 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20628 ipa_check_create_edge_args.
20629 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20630 ipa_check_create_edge_args.
20631 * ipa-inline.c (inline_generate_summary): Do not call
20632 ipa_check_create_node_params and ipa_check_create_edge_args.
20633 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20634 ipa_check_create_edge_args.
20635
20636 2011-04-09 Anatoly Sokolov <aesok@post.ru>
20637
20638 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20639 instead of loop.
20640 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20641 * function.c (record_hard_reg_sets): Likewise.
20642 * ira.c (compute_regs_asm_clobbered): Likewise.
20643 * sched-deps.c (sched_analyze_1): Likewise.
20644 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20645
20646 2011-04-09 Xinliang David Li <davidxl@google.com>
20647
20648 PR tree-optimization/PR48484
20649 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20650 has_valid_pred lazily
20651
20652 2011-04-09 Duncan Sands <baldrick@free.fr>
20653
20654 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20655
20656 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
20657
20658 * combine.c (combine_validate_cost): Adjust comments. Set registered
20659 cost of I0 to zero at the end, if any.
20660
20661 2011-04-08 Xinliang David Li <davidxl@google.com>
20662
20663 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20664 to insane profile data.
20665
20666 2011-04-08 Xinliang David Li <davidxl@google.com>
20667
20668 * ipa-cp.c (ipcp_update_profiling): Correct
20669 negative scale factor due to insane profile data.
20670
20671 2011-04-08 Xinliang David Li <davidxl@google.com>
20672
20673 * final.c (dump_basic_block_info): New function.
20674 (final): Dump basic block.
20675 (final_scan_insn): Remove old dump.
20676
20677 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
20678
20679 PR target/47829
20680 * config.gcc (i386-*-freebsd): Disable unwind table generation for
20681 crtbegin/crtend.
20682
20683 2011-04-08 Michael Matz <matz@suse.de>
20684
20685 PR middle-end/48389
20686 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20687 functions.
20688 (rebuild_jump_labels): Call rebuild_jump_labels_1.
20689 * rtl.h (rebuild_jump_labels_chain): Declare.
20690 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20691 insns inserted on edges.
20692
20693 2011-04-08 Joseph Myers <joseph@codesourcery.com>
20694
20695 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20696 * config/arm/arm-arches.def: New.
20697 * config/arm/arm-opts.h: New.
20698 * config/arm/genopt.sh: New.
20699 * config/arm/arm-tables.opt: New (generated).
20700 * config/arm/arm.c (arm_handle_option, arm_target_help,
20701 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20702 (all_architectures): Get most table contents from arm-arches.def.
20703 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20704 arm_selected_tune here.
20705 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20706 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20707 (march=, mcpu=, mtune=): Use Enum and Var.
20708 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20709 (arm.o): Update dependencies.
20710
20711 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
20712
20713 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20714 of header_file.
20715 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20716 (write_typed_alloc_defns): Likewise.
20717 (main): Calls write_typed_alloc_defns with output_header.
20718
20719 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
20720
20721 PR inline-asm/48435
20722 * ira-color.c (setup_profitable_hard_regs): Add comments.
20723 Don't take prohibited hard regs into account.
20724 (setup_conflict_profitable_regs): Rename to
20725 get_conflict_profitable_regs.
20726 (check_hard_reg_p): Check prohibited hard regs.
20727
20728 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
20729
20730 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20731 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20732 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20733
20734 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20735
20736 PR target/48366
20737 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20738 move from floating point to shift amount register.
20739 (emit_move_sequence): Remove secondary reload support for floating
20740 point to shift amount amount register copies.
20741 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20742 amount register copies.
20743 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20744 register, return false if mode isn't a scalar integer mode.
20745 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20746
20747 2011-04-08 Richard Guenther <rguenther@suse.de>
20748
20749 * gimple.c (gimple_call_flags): Remove kludge.
20750
20751 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20752
20753 * sel-sched.c (sel_region_init): Move call to
20754 sel_setup_region_sched_flags after setup_current_loop_nest.
20755
20756 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
20757
20758 PR rtl-optimization/48272
20759 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20760 init_insn_reg_pressure_info. Adjust a caller.
20761 * sched-int.h (init_insn_reg_pressure_info): Declare.
20762 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20763 when sched-pressure is enabled.
20764
20765 2011-04-08 Richard Guenther <rguenther@suse.de>
20766
20767 * gimple.c (gimple_set_modified): Do not queue calls to
20768 MODIFIED_NORETURN_CALLS here ...
20769 * tree-ssa-operands.c (update_stmt_operands): ... but here.
20770
20771 2011-04-08 Richard Guenther <rguenther@suse.de>
20772
20773 PR lto/48467
20774 * toplev.c (lang_dependent_init): Do not open asm_out_file
20775 in WPA mode, nor perform debug machinery initialization.
20776 (finalize): Do not unlink asm_out_file in WPA mode.
20777
20778 2011-04-08 Richard Guenther <rguenther@suse.de>
20779
20780 * gimple.h (gimple_call_fntype): New function.
20781 (gimple_call_return_type): Use it.
20782 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20783 * gimple-low.c (gimple_check_call_args): Likewise.
20784 * gimple.c (gimple_call_flags): Likewise.
20785 (gimple_call_arg_flags): Likewise.
20786 (gimple_call_return_flags): Likewise.
20787 * tree-cfg.c (verify_gimple_call): Likewise.
20788 (do_warn_unused_result): Likewise.
20789 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20790 * value-prof.c (gimple_ic_transform): Fix fndecl check.
20791
20792 2011-04-08 Dmitry Melnik <dm@ispras.ru>
20793
20794 PR rtl-optimization/48235
20795 * sel-sched.c (code_motion_process_successors): Recompute the last
20796 insn in basic block if control flow changed.
20797 (code_motion_path_driver): Ditto. Recompute the first insn as well.
20798 Update condition for ilist_remove.
20799
20800 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20801
20802 PR rtl-optimization/48302
20803 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20804 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
20805 it to record added preheader blocks.
20806 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
20807 on to sel_add_loop_preheaders.
20808 (sel_region_init): Move call to setup_current_loop_nest after
20809 sel_init_bbs.
20810
20811 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20812
20813 PR target/48273
20814 * cfgloop.h (loop_has_exit_edges): New helper.
20815 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20816 non-clonable.
20817 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20818 that have no exit edges.
20819
20820 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20821
20822 PR rtl-optimization/48442
20823 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
20824 all callers. Adjust assert.
20825
20826 2011-04-08 Jakub Jelinek <jakub@redhat.com>
20827
20828 PR tree-optimization/48377
20829 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20830 is_packed to true even for types with smaller TYPE_ALIGN than
20831 TYPE_SIZE.
20832
20833 2011-04-08 Richard Guenther <rguenther@suse.de>
20834
20835 PR bootstrap/48513
20836 * doc/tm.texi: Re-generate.
20837
20838 2011-04-08 Wei Guozhi <carrot@google.com>
20839
20840 PR target/47855
20841 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20842 * config/arm/arm.c (arm_attr_length_push_multi): New function.
20843 * config/arm/arm.md (*push_multi): Change the length computation to
20844 call a C function.
20845
20846 2011-04-08 Anatoly Sokolov <aesok@post.ru>
20847
20848 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20849 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20850 * doc/tm.texi: Regenerate.
20851 * system.h (ASM_OUTPUT_BSS): Poison.
20852 * varasm.c (asm_output_bss): Remove function.
20853 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20854
20855 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20856 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20857 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20858 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20859 Likewise.
20860 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20861 Likewise.
20862 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20863 Likewise.
20864 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20865
20866 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20867
20868 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20869 EnumValue lines.
20870
20871 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20872
20873 * config/m68k/m68k.c (m68k_handle_option): Don't handle
20874 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20875 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20876 OPT_mcpu32.
20877 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20878 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20879 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20880 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20881 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20882 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20883 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20884 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20885 options. Don't map other m68k options manually. Don't handle
20886 old-style options as canonical.
20887 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20888 * doc/install.texi (m68k-*-*): Document binutils version requirement.
20889
20890 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
20891
20892 * basic-block.h (force_nonfallthru): Move to...
20893 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20894 (force_nonfallthru): ...here.
20895 * cfghooks.c (force_nonfallthru): New function.
20896 * cfgrtl.c (force_nonfallthru): Rename into...
20897 (rtl_force_nonfallthru): ...this.
20898 (commit_one_edge_insertion): Do not set AUX field.
20899 (commit_edge_insertions): Do not discover new basic blocks.
20900 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20901 (cfg_layout_rtl_cfg_hooks): Likewise.
20902 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20903 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
20904 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20905
20906 2011-04-07 Anatoly Sokolov <aesok@post.ru>
20907
20908 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20909 Remove macros.
20910
20911 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
20912
20913 * config/i386/sse.md: Update copyright year.
20914 (avxcvtvecmode): Remove.
20915 (sse_movhlps): Merge with *avx_movhlps.
20916 (sse_movlhps): Merge with *avx_movlhps.
20917 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20918 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20919 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20920 (sse_loadhps): Merge with *avx_loadhps.
20921 (sse_storelps): Merge with *avx_storelps.
20922 (sse_loadlps): Merge with *avx_loadlps.
20923 (sse_movss): Merge with *avx_movss.
20924 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20925 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20926 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20927 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20928 (vec_set<mode>_0): Ditto.
20929 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20930 (sse4_1_insertps): Merge with *avx_insertps.
20931 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20932 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20933 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20934 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20935 (sse2_storehpd): Merge with *avx_storehpd.
20936 (sse2_loadhpd): Merge with *avx_loadhpd.
20937 (sse2_loadlpd): Merge with *avx_loadlpd.
20938 (sse2_movsd): Merge with *avx_movsd.
20939 (*vec_concatv2df): Merge with *vec_concatv2df.
20940
20941 2011-04-07 Jakub Jelinek <jakub@redhat.com>
20942
20943 PR debug/48343
20944 * combine.c (combine_instructions): Add last_combined_insn,
20945 update it if insn is after it, pass it to all try_combine calls.
20946 (try_combine): Add last_combined_insn parameter, pass it instead of
20947 i3 to propagate_for_debug.
20948
20949 2011-04-07 Nick Clifton <nickc@redhat.com>
20950
20951 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20952 to handle MDR <-> data register transfers.
20953 (movhi_internal): Likewise.
20954
20955 2011-04-07 Alan Modra <amodra@gmail.com>
20956
20957 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20958 previous stack info.
20959
20960 2011-04-07 Tom de Vries <tom@codesourcery.com>
20961
20962 PR target/43920
20963 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
20964 flow_find_cross_jump. Swap variables to implement backward replacement.
20965 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20966
20967 2011-04-07 Tom de Vries <tom@codesourcery.com>
20968
20969 PR target/43920
20970 * cfgcleanup.c (walk_to_nondebug_insn): New function.
20971 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
20972 and bb2.
20973 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20974 src1 or src2. Redirect edges to the last basic block. Update
20975 frequency and count on multiple basic blocks in case of fallthru.
20976
20977 2011-04-07 Tom de Vries <tom@codesourcery.com>
20978
20979 PR target/43920
20980 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20981 function.
20982 (old_insns_match_p): Change return type. Replace return false/true
20983 with return dir_none/dir_both. Use can_replace_by.
20984 (flow_find_cross_jump): Add dir_p parameter. Init replacement
20985 direction from dir_p. Register replacement direction in dir, last_dir
20986 and afterlast_dir. Handle new return type of old_insns_match_p using
20987 merge_dir. Return replacement direction in dir_p.
20988 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20989 return type of old_insns_match_p.
20990 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20991 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20992 flow_find_cross_jump.
20993 * basic-block.h (enum replace_direction): New type.
20994 (flow_find_cross_jump): Add parameter to declaration.
20995
20996 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
20997
20998 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
20999 (AVXMODEDCVTPS2DQ): Ditto.
21000 (VEC_FLOAT_MODE): Ditto.
21001 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
21002 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21003 (<any_logic:code><mode>3): Use VF mode iterator.
21004 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21005 Use VF mode iterator.
21006 (copysign<mode>3): Use VF mode iterator.
21007 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
21008 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21009 (*<any_logic:code><MODEF:mode>3): Merge with
21010 *avx_<any_logic:code><MODEF:mode>3.
21011 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21012 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21013 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21014 (avx_cvtdq2ps<avxmodesuffix>): Remove.
21015 (sse2_cvtdq2ps): Use %v modifier.
21016 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21017 (avx_cvtps2dq<avxmodesuffix>): Remove.
21018 (sse2_cvtps2dq): Use %v modifier.
21019 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21020 (avx_cvttps2dq<avxmodesuffix>): Remove.
21021 (sse2_cvttps2dq): Use %v modifier.
21022 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21023 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21024 (sse2_cvtsd2siq): Fix insn template.
21025 (sse2_cvtsd2siq_2): Ditto.
21026 (sse2_cvttsd2siq): Ditto.
21027 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21028 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21029
21030 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21031
21032 * gcov-io.c: Use GCC Runtime Library Exception.
21033
21034 2011-04-06 Jakub Jelinek <jakub@redhat.com>
21035
21036 PR debug/48466
21037 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21038 as base_reg whatever register reg has been eliminated to, instead
21039 of hardcoding STACK_POINTER_REGNUM.
21040
21041 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21042
21043 * doc/tm.texi.in: Document C target hooks as separate from general
21044 target hooks.
21045 * doc/tm.texi: Regenerate.
21046 * genhooks.c (struct hook_desc): Add docname field.
21047 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
21048 docname field.
21049 (hook_array): Include c-target.def.
21050 (emit_documentation): Use docname field in output.
21051 (emit_init_macros): Take docname argument. Only emit definitions
21052 for hooks matching docname.
21053 (main): Expect additional arguments in all cases. Pass argument
21054 to emit_init_macros.
21055 * target.def: Move initial macro definitions and comments to
21056 target-hooks-macros.h.
21057 (gcc_targetcm): Move to c-family/c-target.def.
21058 * target.h (targetcm): Move declaration to c-family/c-target.h.
21059 * targhooks.c (default_handle_c_option): Move to
21060 c-family/c-opts.c.
21061 * targhooks.h (default_handle_c_option): Move declaration to
21062 c-family/c-common.h.
21063 * target-hooks-macros.h: New file.
21064 * config.gcc (target_has_targetcm): Define and use to add to
21065 c_target_objs and cxx_target_objs.
21066 * config/default-c.c: New file.
21067 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21068 of target.h and target-def.h.
21069 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21070 (darwin_objc_construct_string, darwin_cfstring_ref_p,
21071 darwin_check_cfstring_format_arg): Make static.
21072 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21073 TARGET_STRING_OBJECT_REF_TYPE_P,
21074 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21075 * config/darwin-protos.h (darwin_objc_construct_string,
21076 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21077 declare.
21078 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21079 TARGET_STRING_OBJECT_REF_TYPE_P,
21080 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21081 * config/t-darwin (darwin-c.o): Update dependencies.
21082 * system.h (TARGET_HAS_TARGETCM): Poison.
21083 * Makefile.in (TARGET_H): Update.
21084 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21085 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21086 (default-c.o): New target.
21087 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21088 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21089 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
21090 c-target.def.
21091 (build/genhooks.o): Update dependencies.
21092
21093 2011-04-06 Richard Guenther <rguenther@suse.de>
21094
21095 * ipa-inline.c (enum inlining_mode): Remove.
21096 (cgraph_flatten): Use some other token.
21097 (cgraph_edge_early_inlinable_p): New function, split out from ...
21098 (cgraph_perform_always_inlining): New function, split out from ...
21099 (cgraph_decide_inlining_incrementally): ... here.
21100 (cgraph_mark_inline_edge): Adjust.
21101 (cgraph_early_inlining): Re-structure.
21102 (pass_early_inline): Require SSA form.
21103
21104 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
21105 Julian Brown <julian@codesourcery.com>
21106 Mark Shinwell <shinwell@codesourcery.com>
21107
21108 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21109 LO_REGS only for Thumb-1.
21110 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21111 be used in short instructions when optimising for size on Thumb-2.
21112
21113 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21114
21115 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21116 associated with user returns to be preserved.
21117
21118 2011-04-06 Tristan Gingold <gingold@adacore.com>
21119
21120 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21121 symbol_queue_size, DBXOUT_DECR_NESTING,
21122 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21123 if XCOFF_DEBUGGING_INFO.
21124
21125 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21126
21127 * config/i386/i386.md (attribute isa): New.
21128 (attribute enabled): New.
21129 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21130 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21131 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21132 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21133 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21134 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21135 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21136 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21137
21138 * config/i386/sse.md (VF): New mode iterator.
21139 (VF1): Ditto.
21140 (VF2): Ditto.
21141 (VF_128): Ditto.
21142 (SSEMODEF4): Remove.
21143 (attribute sse): Handle V8SF and V4DF modes.
21144 (<absneg:code><mode>2): Use VF mode iterator.
21145 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21146 mode iterator.
21147 (<plusminus_insn><mode>3): Use VF mode iterator.
21148 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21149 Use VF mode iterator.
21150 (<sse>_vm<plusminus_insn><mode>3): Merge with
21151 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21152 (mul<mode>3): Use VF mode iterator.
21153 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21154 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21155 mode iterator.
21156 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21157 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21158 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21159 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21160 mode iterator.
21161 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21162 Use VF1 mode iterator.
21163 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21164 (sqrt<VF2:mode>2): New expander.
21165 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21166 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21167 and sqrtv2df2. Use VF mode iterator.
21168 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21169 mode iterator.
21170 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21171 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21172 Use VF1 mode iterator.
21173 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21174 (<smaxmin:code><mode>3): Use VF mode iterator.
21175 (*<smaxmin:code><mode>3_finite): Merge with
21176 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21177 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21178 (<sse>_vm<smaxmin:code><mode>2): Merge with
21179 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21180 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21181 mode iterator.
21182 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21183 mode iterator.
21184 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21185 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21186 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21187 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21188 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21189 VF mode iterator.
21190 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21191 Use VF_128 mode iterator.
21192 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21193 mode iterator.
21194 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21195 VF_128 mode iterator.
21196 (vcond<mode>): Use VF mode iterator.
21197 * config/i386/predicates.md (sse_comparison_operator): Merge with
21198 avx_comparison_float_operator. Do not declare as special_predicate.
21199 * config/i386/i386.c (struct builtin_description): Update for renamed
21200 compare patterns.
21201 (ix86_expand_args_builtin): Ditto.
21202 (ix86_expand_sse_compare_mask): Ditto.
21203
21204 2011-04-06 Richard Guenther <rguenther@suse.de>
21205
21206 * tree-inline.c (estimate_num_insns): For calls simply account
21207 for all passed arguments and a used return value.
21208
21209 2011-04-06 Richard Guenther <rguenther@suse.de>
21210
21211 PR tree-optimization/47663
21212 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21213 call_stmt_time fields.
21214 (cgraph_edge_inlinable_p): Declare.
21215 (cgraph_edge_recursive_p): New inline function.
21216 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21217 (cgraph_clone_edge): Copy it.
21218 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21219 Account for call stmt time.
21220 (cgraph_estimate_time_after_inlining): Take edge argument.
21221 (cgraph_estimate_edge_growth): Account call stmt size.
21222 (cgraph_estimate_size_after_inlining): Take edge argument.
21223 (cgraph_mark_inline_edge): Adjust.
21224 (cgraph_check_inline_limits): Likewise.
21225 (cgraph_recursive_inlining_p): Remove.
21226 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21227 (cgraph_decide_recursive_inlining): Take edge argument and
21228 adjust.
21229 (cgraph_decide_inlining_of_small_functions): Do not avoid
21230 diags for recursive inlining here.
21231 (cgraph_flatten): Adjust.
21232 (cgraph_decide_inlining_incrementally): Likewise.
21233 (estimate_function_body_sizes): Remove call cost handling.
21234 (compute_inline_parameters): Initialize caller edge call costs.
21235 (cgraph_estimate_edge_growth): New function.
21236 (cgraph_estimate_growth): Use it.
21237 (cgraph_edge_badness): Likewise.
21238 (cgraph_check_inline_limits): Take an edge argument.
21239 (cgraph_decide_inlining_of_small_functions): Adjust.
21240 (cgraph_decide_inlining): Likewise.
21241 * tree-inline.c (estimate_num_insns): Only account for call
21242 return value if it is used.
21243 (expand_call_inline): Avoid diagnostics on recursive inline
21244 functions here.
21245 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21246 (input_edge): Input edge call costs.
21247
21248 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21249
21250 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21251
21252 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21253
21254 * doc/invoke.texi (Spec Files): Fix typo.
21255
21256 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21257
21258 * profile.c (branch_prob): Move declaration of local variable. Remove
21259 obsolete ??? comment. Expand the location explicitly instead of using
21260 the LOCATION_FILE and LOCATION_LINE macros.
21261
21262 2011-04-06 Wei Guozhi <carrot@google.com>
21263
21264 PR target/47855
21265 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21266 (arm_cond_branch): Likewise.
21267 (arm_cond_branch_reversed): Likewise.
21268 (arm_jump): Likewise.
21269 (push_multi): Likewise.
21270 * config/arm/constraints.md (Py): New constraint.
21271
21272 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21273
21274 PR bootstrap/48471
21275 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21276 Move these...
21277 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21278 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21279 #ifdef DBX_DEBUGGING_INFO.
21280
21281 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21282
21283 PR bootstrap/48403
21284 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21285 if old and new states differ.
21286
21287 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21288
21289 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21290 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21291 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21292 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21293 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21294 mcfv4e): Use Alias.
21295 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21296 ColdFire options to -mcpu= options.
21297
21298 2011-04-05 Jeff Law <law@redhat.com>
21299
21300 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21301 check if BB is a successor of LOOP->header and return
21302 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21303
21304 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21305
21306 * cprop.c (struct reg_use): Remove.
21307 (reg_use_table): Make an array of RTX.
21308 (find_used_regs, constprop_register, local_cprop_pass,
21309 bypass_block): Simplify users of reg_use_table.
21310 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21311 on one of the uses found by find_used_regs.
21312
21313 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21314
21315 PR bootstrap/48469
21316 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21317 declaration.
21318
21319 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21320
21321 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21322 as an rtx.
21323 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21324
21325 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21326
21327 PR middle-end/48441
21328 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21329
21330 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21331
21332 * combine.c: Include obstack.h.
21333 (struct insn_link): Define.
21334 (uid_log_links): Adjust type.
21335 (FOR_EACH_LOG_LINK): New macro.
21336 (insn_link_obstack): Declare.
21337 (alloc_insn_link): Define.
21338 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21339 type of link variables.
21340 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21341 (try_combine, record_promoted_values, distribute_notes): Likewise.
21342 (distribute_links): Likewise. Tweak prototype.
21343 (clear_log_links): Delete.
21344 (adjust_for_new_dest): Call alloc_insn_link.
21345 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21346
21347 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21348
21349 * gcse.c (modify_mem_list): Convert to an array of VECs.
21350 (canon_modify_mem_list, compute_transp): Tweak formatting.
21351 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21352 (load_killed_in_block_p): Likewise.
21353 (record_last_mem_set_info): Likewise.
21354 (clear_modify_mem_tables): Likewise.
21355
21356 2011-04-05 Tom de Vries <tom@codesourcery.com>
21357
21358 PR middle-end/48461
21359 * function.c (emit_use_return_register_into_block): Only define if
21360 HAVE_return.
21361
21362 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21363
21364 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21365
21366 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21367
21368 * config/rx/rx-opts.h: New.
21369 * config/rx/rx.c (rx_cpu_type): Remove.
21370 (rx_handle_option): Don't assert that global structures are in
21371 use. Access variables via opts pointer. Defer most handling of
21372 OPT_mint_register_. Use error_at.
21373 (rx_option_override): Handle deferred OPT_mint_register_ here.
21374 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21375 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21376 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21377 (rx_cpu_types): New Enum and EnumValue entries.
21378 (mint-register=): Use Defer and use Var accordingly.
21379
21380 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21381
21382 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21383 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21384 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21385 Move these...
21386 (debug_free_queue, debug_nesting, symbol_queue_index):
21387 ...and these...
21388 * dbxout.c: ...to here. Make static.
21389
21390 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21391
21392 * gcse.c (modify_pair): Define. Define a VEC of it.
21393 (canon_modify_mem_list): Convert to an array of VECs.
21394 (free_insn_expr_list_list): Delete.
21395 (clear_modify_mem_tables): Call VEC_free instead.
21396 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21397 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21398 (canon_list_insert, compute_transp): Likewise.
21399
21400 2011-04-05 Tom de Vries <tom@codesourcery.com>
21401
21402 PR target/43920
21403 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21404 for size.
21405
21406 2011-04-05 Tom de Vries <tom@codesourcery.com>
21407
21408 PR target/43920
21409 * function.c (emit_use_return_register_into_block): New function.
21410 (thread_prologue_and_epilogue_insns): Use
21411 emit_use_return_register_into_block.
21412
21413 2011-04-05 Tom de Vries <tom@codesourcery.com>
21414
21415 PR target/43920
21416 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21417 insn.
21418
21419 2011-04-05 Tom de Vries <tom@codesourcery.com>
21420
21421 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21422
21423 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21424
21425 * config/arm/arm.md (define_constants for unspec): Replace with
21426 define_c_enum.
21427 (define_constants for unspecv): Replace with define_c_enum.
21428 * config/arm/neon.md (define_constants for unspec): Replace with
21429 define_c_enum.
21430
21431 2011-04-04 Richard Henderson <rth@redhat.com>
21432
21433 PR bootstrap/48400
21434 * dwarf2out.c (output_line_info): Always emit line info from
21435 at least one section.
21436 (dwarf2out_init): Create text_section_line_info here ...
21437 (set_cur_line_info_table): ... not here.
21438
21439 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21440
21441 PR target/48380
21442 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21443 not called.
21444
21445 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21446
21447 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
21448
21449 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21450 (expr_equiv_p): Remove.
21451 (insert_set_in_table): Look at <dest, src> pair instead of expr.
21452 (hash_scan_set): Update call to insert_set_in_table.
21453 (dump_hash_table): Dump <dest, src> pair.
21454 (lookup_set): Simplify. Lookup <dest, src> pair.
21455 (compute_transp): Remove, fold heavily simplified code into...
21456 (compute_local_properties): ...here. Expect COMP and TRANSP
21457 unconditionally.
21458 (find_avail_set): Take set directly from struct expr.
21459 (find_bypass-set): Likewise.
21460 (bypass_block): Likewise.
21461 (cprop_insn): Likewise. Remove redundant INSN_P test.
21462
21463 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21464 checks on form of COND from find_implicit_sets to here.
21465 (find_implicit_sets): Cleanup control flow. Split critical edges
21466 if it exposes implicit sets. Allocate/resize implicit_sets as
21467 necessary.
21468 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21469 changed something. Run df_analyze after find_implicit_sets if any
21470 edges were split. Do not allocate implicit_sets here.
21471
21472 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21473 (gcse_obstack): Renamed to cprop_obstack.
21474 (GNEW, GNEWVEC, GNEWVAR): Remove.
21475 (gmalloc): Remove.
21476 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21477 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21478 (gcse_alloc): Likewise, and rename to cprop_alloc.
21479 (alloc_gcse_men, free_gcse_mem): Remove.
21480 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21481 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21482 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21483
21484 * cprop.c (oprs_not_set_p): Remove.
21485 (mark_set, mark_clobber): Remove.
21486 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21487 (reg_not_set_p): New function.
21488 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21489 (cprop_insn): Likewise.
21490 (cprop_jump): Use FOR_EACH_EDGE.
21491
21492 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
21493
21494 PR bootstrap/48403
21495 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21496 (rank_for_schedule): Use scheduled_insns vector instead of
21497 last_scheduled_insn.
21498 (ok_for_early_queue_removal): Likewise.
21499 (queue_to_ready): Search forward in nonscheduled_insns_begin if
21500 we have a dbg_cnt.
21501 (choose_ready): Likewise.
21502 (commit_schedule): Use VEC_iterate.
21503 (schedule_block): Initialize nonscheduled_insns_begin. If we have
21504 a dbg_cnt, use it and ensure the first insn is in the ready list.
21505 (haifa_sched_init): Allocate scheduled_insns.
21506 (sched_extend_ready_list): Don't allocate it; reserve space.
21507 (haifa_sched_finish): Free it.
21508
21509 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21510
21511 * optc-gen.awk: Always remove type from Variable entry before
21512 recording in var_seen.
21513
21514 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
21515
21516 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21517 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21518 call to tidy_fallthru_edges.
21519
21520 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21521
21522 * doc/options.texi (ToLower): Document.
21523 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21524 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21525 * opts.h (cl_option): Add cl_tolower field.
21526 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21527 arguments with lowercase strings.
21528 * config/rx/rx.opt (mcpu=): Add ToLower.
21529 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21530 argument.
21531
21532 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21533
21534 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21535
21536 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21537
21538 * config/vax/vax.c: Include reload.h.
21539
21540 2011-04-04 Anatoly Sokolov <aesok@post.ru>
21541
21542 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21543 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21544 (sparc_preferred_reload_class): New function.
21545
21546 2011-04-04 Jakub Jelinek <jakub@redhat.com>
21547
21548 PR debug/48401
21549 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21550 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21551
21552 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
21553
21554 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21555 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21556
21557 2011-04-03 Anatoly Sokolov <aesok@post.ru>
21558
21559 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21560 (ASM_OUTPUT_ALIGNED_BSS): Define.
21561
21562 2011-04-03 Michael Matz <matz@suse.de>
21563
21564 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21565 and next_slot members.
21566 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21567 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21568 (lto_streamer_cache_append): Declare.
21569 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21570 unsigned index, remove offset parameter, ensure that we append
21571 or update existing entries.
21572 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21573 parameter, update next_slot for append.
21574 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21575 parameter.
21576 (lto_streamer_cache_insert_at): Likewise.
21577 (lto_streamer_cache_append): New function.
21578 (lto_streamer_cache_lookup): Use unsigned index.
21579 (lto_streamer_cache_get): Likewise.
21580 (lto_record_common_node): Don't test tree_node_can_be_shared.
21581 (preload_common_node): Adjust call to lto_streamer_cache_insert.
21582 (lto_streamer_cache_delete): Don't free offsets member.
21583 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21584 (lto_output_string_with_length): Use lto_output_data_stream.
21585 (lto_output_tree_header): Remove ix parameter, don't write it.
21586 (lto_output_builtin_tree): Likewise.
21587 (lto_write_tree): Adjust callers to above, don't track and write
21588 offset, write unsigned index.
21589 (output_unreferenced_globals): Don't emit all global vars.
21590 (write_global_references): Use unsigned indices.
21591 (lto_output_decl_state_refs): Likewise.
21592 (write_symbol): Likewise.
21593 * lto-streamer-in.c (lto_input_chain): Move earlier.
21594 (input_function): Use unsigned index.
21595 (input_alias_pairs): Don't read and then ignore all global vars.
21596 (lto_materialize_tree): Remove ix_p parameter, don't read index,
21597 don't pass it back, use lto_streamer_cache_append.
21598 (lto_register_var_decl_in_symtab): Use unsigned index.
21599 (lto_register_function_decl_in_symtab): Likewise.
21600 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21601 index.
21602 (lto_get_builtin_tree): Don't read index, use
21603 lto_streamer_cache_append.
21604 (lto_read_tree): Adjust call to lto_materialize_tree.
21605
21606 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21607 don't use function calls in arguments to MIN.
21608
21609 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21610 twice.
21611
21612 * gimple.c (gimple_type_leader_entry): Mark deletable.
21613
21614 2011-04-03 Alan Modra <amodra@gmail.com>
21615
21616 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21617
21618 2011-04-03 Michael Matz <matz@suse.de>
21619
21620 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21621 an integer.
21622 * tree.h (tree_decl_non_common.vindex): Adjust comment.
21623
21624 2011-04-03 Michael Matz <matz@suse.de>
21625
21626 * cgraphbuild.c (record_reference): Canonicalize constructor values.
21627 * gimple-fold.c (canonicalize_constructor_val): Accept being called
21628 without function context.
21629 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21630 current_function_decl and cfun.
21631
21632 2011-04-03 Michael Matz <matz@suse.de>
21633
21634 * tree.c (decl_init_priority_insert): Don't create entry for
21635 default priority.
21636 (decl_fini_priority_insert): Ditto.
21637 (fields_compatible_p, find_compatible_field): Remove.
21638 * tree.h (fields_compatible_p, find_compatible_field): Remove.
21639 * gimple.c (gimple_compare_field_offset): Adjust block comment.
21640
21641 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
21642
21643 * combine.c (try_combine): Remove useless local variable.
21644
21645 2011-04-03 Richard Guenther <rguenther@suse.de>
21646 Ira Rosen <ira.rosen@linaro.org>
21647
21648 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21649 non-variable offsets and compare the remaining bases of the two
21650 accesses instead of looking for exact same data-ref.
21651
21652 2011-04-02 Kai Tietz <ktietz@redhat.com>
21653
21654 PR target/48416
21655 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21656
21657 * i386.c (ix86_is_msabi_thiscall): New helper function.
21658 (ix86_is_type_thiscall): New helper function.
21659 (ix86_comp_type_attributes): Handle thiscall for method-functions
21660 special.
21661 (init_cumulative_args): Likewise.
21662 (find_drap_reg): Likewise.
21663 (ix86_static_chain): Likewise.
21664 (x86_this_parameter): Likewise.
21665 (x86_output_mi_thunk): Likewise.
21666
21667 2011-04-01 Olivier Hainque <hainque@adacore.com>
21668 Nicolas Setton <setton@adacore.com>
21669 Eric Botcazou <ebotcazou@adacore.com>
21670
21671 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21672 (add_gnat_descriptive_type_attribute): New function.
21673 (gen_array_type_die): Call it.
21674 (gen_enumeration_type_die): Likewise.
21675 (gen_struct_or_union_type_die): Likewise.
21676 (modified_type_die): Likewise.
21677 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21678 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21679 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21680
21681 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21682
21683 PR bootstrap/48148
21684 * dwarf2out.c (resolve_addr): Don't call force_decl_die
21685 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21686
21687 Revert:
21688 2011-03-17 Richard Guenther <rguenther@suse.de>
21689
21690 PR bootstrap/48148
21691 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21692 origin for decls in other ltrans units.
21693 (input_varpool_node): Likewise.
21694
21695 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21696
21697 PR middle-end/48335
21698 * expr.c (expand_assignment): Handle all possibilities
21699 if TO_RTX is CONCAT.
21700 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21701 (store_split_bit_field): If SUBREG_REG (op0) or
21702 op0 itself has smaller mode than word, return it
21703 for offset 0 and const0_rtx for out-of-bounds stores.
21704 If word is const0_rtx, skip it.
21705
21706 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
21707
21708 * config/h8300/h8300.c (print_operand_address): Rename to...
21709 (h8300_print_operand_address): ...this. Make static. Adjust comments.
21710 Call h8300_print_operand and h8300_print_operand_address instead of
21711 print_operand and print_operand_address. Declare.
21712 (print_operand): Renake to...
21713 (h8300_print_operand): ...this. Make static. Adjust comments.
21714 Call h8300_print_operand instead of print_operand. Declare.
21715 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21716 (h8300_register_move_cost): Likewise.
21717 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21718 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21719 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21720 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21721 * config/h8300/h8300-protos.h (print_operand): Delete.
21722 (print_operand_address): Delete.
21723
21724 2011-04-01 Richard Henderson <rth@redhat.com>
21725
21726 PR 48400
21727 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21728 in strict mode before dwarf4. Re-order tests to early out
21729 before switching sections.
21730
21731 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
21732
21733 * config/h8300/constraints.md: New file.
21734 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
21735 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21736 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21737 * config/h8300/predicates.md (bit_operand): Likewise.
21738 (incdec_operand): Use satisfies_constraint_M and
21739 satisfies_constraint_O. Don't use C code block.
21740 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21741 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21742 (compute_mov_length): Use satisfies_constraint_G.
21743 (fix_bit_operand): Use satisfies_constraint_U.
21744 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21745 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21746 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21747 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21748 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21749 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21750 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21751 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21752 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21753 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21754 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21755 (EXTRA_MEMORY_CONSTRAINT): Delete.
21756
21757 2011-04-01 Andrew Pinski <pinskia@gmail.com>
21758 Michael Meissner <meissner@linux.vnet.ibm.com>
21759
21760 PR target/48262
21761 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21762 operands, as per the specifications.
21763
21764 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21765 (vec_extract_evenv4sf): Ditto.
21766 (vec_extract_evenv8hi): Ditto.
21767 (vec_extract_evenv16qi): Ditto.
21768 (vec_extract_oddv4si): Ditto.
21769
21770 2011-03-31 Mark Wielaard <mjw@redhat.com>
21771
21772 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21773 high_pc attribute if the CU has no associated code. Only output
21774 DW_AT_entry_pc for CU if not generating strict dwarf and
21775 dwarf_version < 4.
21776
21777 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
21778
21779 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21780 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21781 out of ...
21782 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21783 * final.c (final_start_function): Call the new function rather
21784 than using a NULL argument for dwarf2out_frame_debug.
21785
21786 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21787 that contains the prologue.
21788
21789 * haifa-sched.c (queue_insn): New arg REASON. All callers
21790 changed. Print it in debugging output.
21791
21792 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21793
21794 * sched-ebb.c (begin_schedule_ready): Remove second argument.
21795 Split most of the code into...
21796 (begin_move_insn): ... here. New function.
21797 (ebb_sched_info): Add a pointer to it.
21798 * haifa-sched.c (scheduled_insns): New static variable.
21799 (sched_extend_ready_list): Allocate it.
21800 (schedule_block): Use it to record the order of scheduled insns.
21801 Perform RTL changes to move insns only after all scheduling
21802 decisions have been made.
21803 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21804 begin_move_insn field.
21805 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21806 * sched-int.h (struct haifa_sched_info): Remove second argument
21807 from begin_schedule_ready hook. Add new member begin_move_insn.
21808 * sched-rgn.c (begin_schedule_ready): Remove second argument.
21809 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21810
21811 * haifa-sched.c (prune_ready_list): New function, broken out of
21812 schedule_block.
21813 (schedule_block): Use it.
21814
21815 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21816
21817 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21818
21819 2011-04-01 Kai Tietz <ktietz@redhat.com>
21820
21821 * config.gcc (*-*-mingw*): Allow as option the
21822 posix threading model.
21823 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
21824 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21825 definition.
21826 (CPP_SPEC): Add pthread/no-pthread handling.
21827 (LIB_SPEC): Likewise.
21828 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21829 (LIB_SPEC): Likewise.
21830 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21831 flag to pass -pthread option for shared libgcc build.
21832 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21833 for shared libgcc build.
21834 * config/i386/t-mingw-pthread: New file.
21835 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21836 New define to enable use of library pthread by default.
21837 * config/i386/mingw.opt (pthread): New driver option.
21838 (no-pthread): New driver option.
21839 * config/i386/cygming.opt: Make sure trailing empty line is retained.
21840 * config/i386/mingw-w64.opt: Likewise.
21841
21842 2011-04-01 Gary Funck <gary@intrepid.com>
21843
21844 * c-decl.c (grokdeclarator): Fix formatting.
21845
21846 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21847
21848 * expr.c (emit_block_move_via_movmem): Use n_generator_args
21849 instead of n_operands.
21850 (set_storage_via_setmem): Likewise.
21851 * optabs.c (maybe_gen_insn): Likewise.
21852 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21853 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21854 (mips_expand_builtin_direct): Likewise.
21855 * config/spu/spu.c (expand_builtin_args): Likewise.
21856
21857 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21858
21859 * recog.h (insn_data_d): Add n_generator_args.
21860 * genoutput.c (data): Likewise.
21861 (output_insn_data): Print it.
21862 (max_opno, num_dups): Delete.
21863 (scan_operands): Just fill in "d->operand[...]".
21864 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21865
21866 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21867
21868 * gensupport.h (pattern_stats): New structure.
21869 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21870 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21871 (max_operand_1, max_operand_vec): Delete.
21872 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21873
21874 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
21875
21876 * emit-rtl.c (emit_pattern_after_setloc): New function.
21877 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21878 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21879 (emit_pattern_after): New function.
21880 (emit_insn_after, emit_jump_insn_after): Call it.
21881 (emit_call_insn_after, emit_debug_insn_after): Likewise.
21882 (emit_pattern_before_setloc): New function.
21883 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21884 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21885 Likewise.
21886 (emit_pattern_before): New function.
21887 (emit_insn_before, emit_jump_insn_before): Call it.
21888 (emit_call_insn_before, emit_debug_insn_before): Likewise.
21889
21890 2011-03-31 Richard Henderson <rth@redhat.com>
21891
21892 * dwarf2out.c (dw_separate_line_info_ref): Remove.
21893 (dw_separate_line_info_entry): Remove.
21894 (enum dw_line_info_opcode): New.
21895 (dw_line_info_entry): Use it.
21896 (dw_line_info_table, dw_line_info_table_p): New.
21897 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21898 (line_info_table, line_info_label_num): Remove.
21899 (line_info_table_in_use): Remove.
21900 (separate_line_info_table): Remove.
21901 (separate_line_info_table_allocated): Remove.
21902 (separate_line_info_table_in_use): Remove.
21903 (LINE_INFO_TABLE_INCREMENT): Remove.
21904 (line_info_label_num): New.
21905 (cur_line_info_table): New.
21906 (text_section_line_info, cold_text_section_line_info): New.
21907 (separate_line_info): New.
21908 (SEPARATE_LINE_CODE_LABEL): Remove.
21909 (print_dwarf_line_table): Remove.
21910 (debug_dwarf): Don't dump it.
21911 (output_one_line_info_table): New.
21912 (output_line_info): Use it.
21913 (new_line_info_table): New.
21914 (set_cur_line_info_table): New.
21915 (dwarf2out_switch_text_section): Use it.
21916 (dwarf2out_begin_function): Likewise.
21917 (push_dw_line_info_entry): New.
21918 (dwarf2out_source_line): Rewrite for new line info tables.
21919 (dwarf2out_init): Remove dead initailizations.
21920
21921 2011-03-31 Joseph Myers <joseph@codesourcery.com>
21922
21923 * opts.h (cl_option): Add comments to fields. Add bit-fields for
21924 various flags.
21925 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21926 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21927 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21928 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21929 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21930 * opt-functions.awk (flag_init, switch_bit_fields): New.
21931 (switch_flags): Don't handle flags moved to bit-fields. Don't
21932 generate CL_MISSING_OK or CL_SAVE.
21933 * optc-gen.awk: Update to generate bit-field output as well as
21934 flags field.
21935 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21936 bit-field instead of CL_REJECT_DRIVER flag.
21937 * opts-common.c (generate_canonical_option,
21938 decode_cmdline_option): Use bit-fields instead of CL_* flags.
21939 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21940 instead of CL_REJECT_NEGATIVE flag.
21941 * toplev.c (print_switch_values): Use cl_report bit-field instead
21942 of CL_REPORT flag.
21943
21944 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
21945
21946 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21947 a zero minimum index only if it is redundant.
21948
21949 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
21950
21951 PR rtl-optimization/48381
21952 * ira-color.c (assign_hard_reg): Use hard reg set intersection
21953 instead of ira_class_hard_reg_index for calculating conflicting
21954 hard registers.
21955
21956 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
21957
21958 * cprop.c: Clean up hash table building.
21959 (reg_avail_info): Remove.
21960 (oprs_available_p): Remove.
21961 (record_last_reg_set_info): Remove.
21962 (record_last_set_info): Remove.
21963 (reg_available_p): New function.
21964 (gcse_constant_p): Do not treat unfolded conditions as constants.
21965 (make_set_regs_unavailable): New function.
21966 (hash_scan_set): Simplify with new reg_available_p.
21967 (compute_hash_table_work): Traverse insns stream only once.
21968 Do not compute reg_avail_info. Traverse insns in reverse order.
21969 Record implicit sets after recording explicit sets from the block.
21970
21971 2011-03-31 Michael Matz <matz@suse.de>
21972
21973 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21974
21975 2011-03-31 Anatoly Sokolov <aesok@post.ru>
21976
21977 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21978 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21979 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21980 (h8300_mode_dependent_address_p): New function.
21981 (h8300_get_index): Make static.
21982
21983 2011-03-31 Jeff Law <law@redhat.com>
21984
21985 * reload1.c (elimination_effects): Fix typo in recent change.
21986
21987 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21988 typo potentially leading to null pointer dereference.
21989
21990 * caller-save.c (new_saved_hard_reg): Eliminate return value.
21991 (setup_save_areas): Corresponding changes to avoid useless
21992 assignments.
21993
21994 * jump.c (reversed_comparison_code_parts): Avoid successive return
21995 statements when REVERSE_CONDITION is defined.
21996
21997 * expr.c (expand_assignment): Avoid useless assignments.
21998 (expand_expr_real_1): Likewise.
21999 (expand_expr_real_2): Avoid useless statements.
22000
22001 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22002
22003 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22004
22005 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22006 statements.
22007
22008 * stmt.c (expand_expr_stmt): Avoid useless assignment.
22009
22010 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22011
22012 PR target/47109
22013 * doc/tm.texi.in (TARGET_VERSION): Remove.
22014 * doc/tm.texi: Regenerate.
22015 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22016 * collect2.c (main): Don't use TARGET_VERSION.
22017 * mips-tdump.c (main): Don't use TARGET_VERSION.
22018 * mips-tfile.c (main): Don't use TARGET_VERSION.
22019 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22020 * config/rs6000/vxworksae.h: Remove.
22021 * config/alpha/alpha.h (TARGET_VERSION): Remove.
22022 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22023 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22024 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22025 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22026 * config/arm/arm.h (TARGET_VERSION): Remove.
22027 * config/arm/coff.h (TARGET_VERSION): Remove.
22028 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22029 * config/arm/elf.h (TARGET_VERSION): Remove.
22030 * config/arm/freebsd.h (TARGET_VERSION): Remove.
22031 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22032 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22033 * config/arm/pe.h (TARGET_VERSION): Remove.
22034 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22035 * config/arm/semi.h (TARGET_VERSION): Remove.
22036 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22037 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22038 * config/arm/vxworks.h (TARGET_VERSION): Remove.
22039 * config/avr/avr.h (TARGET_VERSION): Remove.
22040 * config/bfin/bfin.h (TARGET_VERSION): Remove.
22041 * config/fr30/fr30.h (TARGET_VERSION): Remove.
22042 * config/frv/frv.h (TARGET_VERSION): Remove.
22043 * config/h8300/h8300.h (TARGET_VERSION): Remove.
22044 * config/i386/cygwin.h (TARGET_VERSION): Remove.
22045 * config/i386/darwin.h (TARGET_VERSION): Remove.
22046 * config/i386/darwin64.h (TARGET_VERSION): Remove.
22047 * config/i386/djgpp.h (TARGET_VERSION): Remove.
22048 * config/i386/freebsd.h (TARGET_VERSION): Remove.
22049 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22050 * config/i386/gnu.h (TARGET_VERSION): Remove.
22051 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22052 * config/i386/i386elf.h (TARGET_VERSION): Remove.
22053 * config/i386/linux.h (TARGET_VERSION): Remove.
22054 * config/i386/linux64.h (TARGET_VERSION): Remove.
22055 * config/i386/lynx.h (TARGET_VERSION): Remove.
22056 * config/i386/mingw32.h (TARGET_VERSION): Remove.
22057 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22058 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22059 * config/i386/netware.h (TARGET_VERSION): Remove.
22060 * config/i386/nto.h (TARGET_VERSION): Remove.
22061 * config/i386/openbsd.h (TARGET_VERSION): Remove.
22062 * config/i386/vxworks.h (TARGET_VERSION): Remove.
22063 * config/ia64/elf.h (TARGET_VERSION): Remove.
22064 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22065 * config/ia64/hpux.h (TARGET_VERSION): Remove.
22066 * config/ia64/linux.h (TARGET_VERSION): Remove.
22067 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22068 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22069 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22070 * config/lm32/lm32.h (TARGET_VERSION): Remove.
22071 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22072 * config/m32c/m32c.h (TARGET_VERSION): Remove.
22073 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22074 * config/m32r/m32r.h (TARGET_VERSION): Remove.
22075 * config/m68k/linux.h (TARGET_VERSION): Remove.
22076 * config/m68k/m68k.h (TARGET_VERSION): Remove.
22077 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22078 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22079 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22080 * config/mep/mep.h (TARGET_VERSION): Remove.
22081 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22082 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22083 * config/mips/iris6.h (MACHINE_TYPE): Remove.
22084 * config/mips/linux.h (TARGET_VERSION): Remove.
22085 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22086 * config/mips/vxworks.h (TARGET_VERSION): Remove.
22087 * config/mmix/mmix.h (TARGET_VERSION): Remove.
22088 * config/mn10300/linux.h (TARGET_VERSION): Remove.
22089 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22090 * config/pa/pa.h (TARGET_VERSION): Remove.
22091 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22092 * config/picochip/picochip.h (TARGET_VERSION): Remove.
22093 * config/rs6000/aix.h (TARGET_VERSION): Remove.
22094 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22095 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22096 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22097 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22098 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22099 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22100 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22101 * config/rs6000/linux.h (TARGET_VERSION): Remove.
22102 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22103 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22104 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22105 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22106 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22107 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22108 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22109 * config/s390/linux.h (TARGET_VERSION): Remove.
22110 * config/s390/s390.h (TARGET_VERSION): Remove.
22111 * config/s390/tpf.h (TARGET_VERSION): Remove.
22112 * config/score/score.h (TARGET_VERSION): Remove.
22113 * config/sh/linux.h (TARGET_VERSION): Remove.
22114 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22115 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22116 * config/sh/sh.h (TARGET_VERSION): Remove.
22117 * config/sh/sh64.h (TARGET_VERSION): Remove.
22118 * config/sh/superh.h (TARGET_VERSION): Remove.
22119 * config/sh/vxworks.h (TARGET_VERSION): Remove.
22120 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22121 * config/sparc/linux.h (TARGET_VERSION): Remove.
22122 * config/sparc/linux64.h (TARGET_VERSION): Remove.
22123 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22124 TARGET_NAME32, TARGET_NAME): Remove.
22125 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22126 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22127 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22128 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22129 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22130 * config/spu/spu.h (TARGET_VERSION): Remove.
22131 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22132 * config/v850/v850.h (TARGET_VERSION): Remove.
22133 * config/vax/linux.h (TARGET_VERSION): Remove.
22134 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22135 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22136 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22137
22138 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22139
22140 PR target/48142
22141 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22142 frame-related from frame-unrelated adjustments to the stack pointer.
22143
22144 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22145
22146 * common.opt (fdebug-types-section): Move earlier.
22147 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22148
22149 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22150
22151 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22152 var.
22153
22154 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22155
22156 * tree.h (CASE_CHAIN): Define.
22157 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22158 (gimple_redirect_edge_and_branch): Likewise.
22159
22160 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22161
22162 PR middle-end/48367
22163 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22164 calculation.
22165
22166 2011-03-30 Jeff Law <law@redhat.com>
22167
22168 * PR bootstrap/48371
22169 * reload1.c (reload): Fix botch in last change.
22170
22171 * reload.h (struct reload): Fix typo introduced in last change.
22172
22173 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22174
22175 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22176 Undocumented. Remove help text.
22177 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22178 -mhard-float.
22179
22180 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22181
22182 * doc/options.texi (NegativeAlias): Document.
22183 (Alias): Mention NegativeAlias.
22184 * opt-functions.awk: Handle NegativeAlias.
22185 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22186 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22187 * opts.h (CL_NEGATIVE_ALIAS): Define.
22188 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22189 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22190 OPT_mspe_.
22191 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22192 Alias entries.
22193 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22194 mno-spe and mno-isel instead of mspe=no and -misel=no.
22195
22196 2011-03-29 Mark Wielaard <mjw@redhat.com>
22197
22198 * common.opt (fdebug-types-section): New flag.
22199 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22200 * dwarf2out.c (use_debug_types): New define.
22201 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22202 (print_die): Guard output of type unit signatures using
22203 use_debug_types.
22204 (build_abbrev_table): Replace assert of dwarf_version >= 4
22205 with assert on use_debug_types.
22206 (size_of_die): Likewise.
22207 (unmark_dies): Likewise.
22208 (value_format): Decide AT_ref_external form on use_debug_types.
22209 (output_die): Replace dwarf_version version check guard with
22210 use_debug_types where appropriate.
22211 (modified_type_die): Likewise.
22212 (gen_reference_type_die): Likewise.
22213 (dwarf2out_start_source_file): Likewise.
22214 (dwarf2out_end_source_file): Likewise.
22215 (prune_unused_types_walk_attribs): Likewise.
22216 (dwarf2out_finish): Likewise.
22217
22218 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22219
22220 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22221
22222 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22223
22224 PR rtl-optimization/48332
22225 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22226 mode of input operand N and modeN to its actual mode.
22227
22228 2011-03-30 Jeff Law <law@redhat.com>
22229
22230 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22231 define accessor macro.
22232 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22233 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22234 (reg_equiv_init): Likewise.
22235 (reg_equivs_size): New variable.
22236 (reg_equiv_init_size): Remove.
22237 (allocate_initial_values): Move prototype to here from....
22238 * integrate.h (allocate_initial_values): Remove prototype.
22239 * integrate.c: Include reload.h.
22240 (allocate_initial_values): Corresponding changes.
22241 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22242 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22243 (update_equiv_regs): Corresponding changes.
22244 (ira): Corresponding changes.
22245 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22246 (push_secondary_reload): Corresponding changes.
22247 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22248 (make_memloc, find_reloads_address): Corresponding changes.
22249 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22250 (find_reloads_address_1): Corresponding changes.
22251 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22252 (refers_to_regno_for_reload_p): Corresponding changes.
22253 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22254 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22255 * reload1.c: Include ggc.h.
22256 (grow_reg_equivs): New function.
22257 (replace_pseudos_in, reload): Corresponding changes.
22258 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22259 (eliminate_regs_1, elimination_effects): Corresponding changes.
22260 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22261 (delete_output_reload): Likewise.
22262 * caller-save.c (mark_referenced_regs): Corresponding changes.
22263 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22264 * frv/predicates.md (frv_load_operand): Corresponding changes.
22265 * microblaze/microblaze.c (double_memory_operand): Corresponding
22266 changes.
22267 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22268 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22269 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22270 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22271 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22272 changes.
22273 * pa/pa.c (emit_move_sequence): Corresponding changes.
22274 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22275
22276 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22277
22278 PR target/47551
22279 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22280 structure modes. Don't check neon_vector_mem_operand for
22281 vector or structure modes.
22282
22283 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22284 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22285
22286 PR target/43590
22287 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22288 operand 1 and reshuffle the operands to match.
22289 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22290
22291 2011-03-30 Christian Schüler <cschueler@gmx.de>
22292
22293 PR driver/48208
22294 * config/c.opt (F): Added 'Driver' to -F option.
22295
22296 PR driver/48260
22297 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22298 handler function.
22299 * config/darwin.opt: Added '-arch' option.
22300
22301 2011-03-30 Nick Clifton <nickc@redhat.com>
22302
22303 * config/rx/rx.md: Add peepholes and patterns to combine
22304 extending loads and simple arithmetic instructions.
22305 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22306 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22307 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22308 modes to use pre-decrement and post-increment addressing.
22309 (rx_is_restricted_memory_address): Add range checking of REG+INT
22310 addresses.
22311 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22312 (rx_memory_move_cost): Adjust cost of stores.
22313 (rx_adjust_insn_length): New function.
22314
22315 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22316
22317 PR c/48305
22318 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22319 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22320 matching arg00/arg01 types.
22321
22322 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22323
22324 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22325 last_location to UNKNOWN_LOCATION.
22326
22327 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22328
22329 PR target/48349
22330 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22331 FLOAT_SSE_REGS.
22332
22333 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22334 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22335
22336 PR bootstrap/48337
22337 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22338 Init(PROCESSOR_V7).
22339 (sparc_cpu): Likewise.
22340 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22341 PROCESSOR_V7.
22342
22343 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22344
22345 PR target/48336
22346 PR middle-end/48342
22347 PR rtl-optimization/48345
22348 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22349 hard regs for given mode from profitable regs when doing secondary
22350 allocation.
22351
22352 2011-03-29 Jeff Law <law@redhat.com>
22353
22354 PR bootstrap/48327
22355 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22356 do_not_duplicate field.
22357 (lookup_redirection_data): Corresponding changes.
22358 (create_duplicates): Always create a template block.
22359 (redirect_edges): Remove code which reused the original block
22360 when it was going to become unreachable code.
22361 (thread_block): Don't set do_not_duplicate field.
22362
22363 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22364
22365 * lto-opts.c (register_user_option_p, lto_register_user_option):
22366 Make type argument unsigned.
22367 * lto-streamer.h (lto_register_user_option): Make type argument
22368 unsigned.
22369 * opth-gen.awk: Make CL_* macros unsigned.
22370 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22371 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22372 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22373 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22374 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22375 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22376 (find_opt): Make lang_mask argument unsigned.
22377
22378 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22379
22380 PR rtl-optimization/48331
22381 PR rtl-optimization/48334
22382 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22383 for any used algorithm.
22384
22385 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22386
22387 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22388 to parent_max.
22389
22390 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22391
22392 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22393 (alpha_option_override): Don't set alpha_sr_alias_set.
22394 (emit_frame_store_1): Use gen_frame_mem rather than calling
22395 set_mem_alias_set.
22396 (alpha_expand_epilogue): Ditto.
22397
22398 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22399
22400 PR tree-optimization/48290
22401 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22402 vectorization, check that relevant phis in the basic block after
22403 the inner loop are really inner loop's exit phis.
22404
22405 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22406
22407 PR debug/48190
22408 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22409 (cached_dw_loc_list_def): New structure.
22410 (cached_dw_loc_list): New typedef.
22411 (cached_dw_loc_list_table): New variable.
22412 (cached_dw_loc_list_table_hash): New function.
22413 (cached_dw_loc_list_table_eq): Likewise.
22414 (add_location_or_const_value_attribute): Take a bool cache_p.
22415 Cache the list when the parameter is true.
22416 (gen_formal_parameter_die): Update caller.
22417 (gen_variable_die): Likewise.
22418 (dwarf2out_finish): Likewise.
22419 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22420 while generating debug info for the decl.
22421 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22422 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22423 (resolve_addr): Cache the result of resolving a chain of
22424 location lists.
22425
22426 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22427
22428 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22429 conflict object hard regset nodes have intersecting hard reg sets.
22430
22431 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22432 after regstat_init_n_sets_and_refs.
22433
22434 * ira.c: Add more comments at the top.
22435 (setup_stack_reg_pressure_class, setup_pressure_classes):
22436 Add comments how we compute the register pressure classes.
22437 (setup_allocno_and_important_classes): Add more comments.
22438 (setup_class_translate_array, reorder_important_classes)
22439 (setup_reg_class_relations): Add comments.
22440
22441 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22442 start of the file.
22443
22444 * ira-color.c: Add 2011 to the Copyright line.
22445 (assign_hard_reg): Add more comments.
22446 (improve_allocation): Ditto.
22447
22448 * ira-costs.c: Add 2011 to the Copyright line.
22449 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22450 comments.
22451 (setup_regno_cost_classes_by_mode): Ditto.
22452
22453 Initial patches from ira-improv branch:
22454
22455 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22456
22457 * ira-build.c (ira_create_object): Remove initialization of
22458 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
22459 (ira_create_allocno): Remove initialization of
22460 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22461 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22462 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22463 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22464 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22465 Initialize ALLOCNO_ADD_DATA.
22466 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22467 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22468 ALLOCNO_REG.
22469 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
22470 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22471
22472 * ira.c (ira_reallocate): Remove.
22473 (setup_pressure_classes): Call
22474 ira_init_register_move_cost_if_necessary. Use
22475 ira_register_move_cost instead of ira_get_register_move_cost.
22476 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22477 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22478
22479 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22480 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22481 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22482 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22483 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22484 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22485 Fix formatting.
22486 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22487 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22488 (struct allocno_color_data): New.
22489 (allocno_color_data_t): New typedef.
22490 (allocno_color_data): New definition.
22491 (ALLOCNO_COLOR_DATA): New macro.
22492 (struct object_color_data): New.
22493 (object_color_data_t): New typedef.
22494 (object_color_data): New definition.
22495 (OBJECT_COLOR_DATA): New macro.
22496 (update_copy_costs, calculate_allocno_spill_cost): Call
22497 ira_init_register_move_cost_if_necessary. Use
22498 ira_register_move_cost instead of ira_get_register_move_cost.
22499 (move_spill_restore, update_curr_costs): Ditto.
22500 (allocno_spill_priority): Make it inline.
22501 (color_pass): Allocate and free allocno_color_dat and object_color_data.
22502 (struct coalesce_data, coalesce_data_t): New.
22503 (allocno_coalesce_data): New definition.
22504 (ALLOCNO_COALESCE_DATA): New macro.
22505 (merge_allocnos, coalesced_allocno_conflict_p): Use
22506 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22507 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22508 (coalesce_allocnos): Ditto.
22509 (setup_coalesced_allocno_costs_and_nums): Ditto.
22510 (collect_spilled_coalesced_allocnos): Ditto.
22511 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22512 (setup_slot_coalesced_allocno_live_ranges): Ditto.
22513 (coalesce_spill_slots): Ditto.
22514 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
22515 free allocno_coalesce_data.
22516
22517 * ira-conflicts.c: Fix formatting.
22518 (process_regs_for_copy): Call
22519 ira_init_register_move_cost_if_necessary. Use
22520 ira_register_move_cost instead of ira_get_register_move_cost.
22521 (build_object_conflicts): Optimize.
22522
22523 * ira-costs.c (record_reg_classes): Optimize. Call
22524 ira_init_register_move_cost_if_necessary. Use
22525 ira_register_move_cost, ira_may_move_in_cost, and
22526 ira_may_move_out_cost instead of ira_get_register_move_cost and
22527 ira_get_may_move_cost.
22528 (record_address_regs): Ditto.
22529 (scan_one_insn): Optimize.
22530 (find_costs_and_classes): Optimize.
22531 (process_bb_node_for_hard_reg_moves): Call
22532 ira_init_register_move_cost_if_necessary. Use
22533 ira_register_move_cost instead of ira_get_register_move_cost.
22534
22535 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22536 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22537 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22538 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22539 definitions.
22540 (ira_initiate_emit_data, ira_finish_emit_data)
22541 (create_new_allocno): New functions.
22542 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22543 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22544 Use ira_register_move_cost instead of ira_get_register_move_cost.
22545
22546 * ira-int.h: Fix some comments.
22547 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22548 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22549 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22550 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
22551 add_data.
22552 (struct ira_allocno): Make mode and aclass a bitfield. Move other
22553 bitfield after mode. Make hard_regno a short int. Make
22554 hard_regno short. Remove first_coalesced_allocno and
22555 next_coalesced_allocno. Move mem_optimized_dest_p,
22556 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22557 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
22558 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22559 temp, colorable_p. Add new member add_data.
22560 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22561 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22562 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22563 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22564 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22565 (ALLOCNO_ADD_DATA): New macro.
22566 (ira_emit_data_t): New typedef.
22567 (struct ira_emit_data): New. Move mem_optimized_dest_p,
22568 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22569 from struct ira_allocno.
22570 (ALLOCNO_EMIT_DATA): New macro.
22571 (ira_allocno_emit_data, allocno_emit_reg): New.
22572 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22573 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22574 (OBJECT_ADD_DATA): New macro.
22575 (ira_reallocate): Remove.
22576 (ira_initiate_emit_data, ira_finish_emit_data): New.
22577 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22578 (ira_init_register_move_cost_if_necessary): New.
22579 (ira_object_conflict_iter_next): Merge into
22580 ira_object_conflict_iter_cond.
22581 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22582
22583 * ira-live.c (process_single_reg_class_operands): Call
22584 ira_init_register_move_cost_if_necessary. Use
22585 ira_register_move_cost instead of ira_get_register_move_cost.
22586
22587 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22588
22589 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22590
22591 * ira-costs.c: Fix formatting.
22592 (cost_classes, cost_classes_num): Remove.
22593 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22594 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22595 (cost_classes_del, cost_classes_htab): New.
22596 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22597 (initiate_regno_cost_classes, setup_cost_classes): New.
22598 (setup_regno_cost_classes_by_aclass): New.
22599 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22600 (record_reg_classes): Use regno_cost_classes instead of
22601 cost_classes. Move checking opposite operand up.
22602 (record_address_regs): Use regno_cost_classes
22603 instead of cost_classes.
22604 (scan_one_insn): Ditto. Use always general register.
22605 (print_allocno_costs): Use regno_cost_classes instead of
22606 cost_classes.
22607 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
22608 (find_costs_and_classes): Set up cost classes for each registers.
22609 Use also their mode for this. Use regno_cost_classes instead of
22610 cost_classes.
22611 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22612 cost_classes.
22613 (free_ira_costs, ira_init_costs): Don't use cost_classes.
22614 (ira_costs, ira_set_pseudo_classes): Call
22615 initiate_regno_cost_classes and finish_regno_cost_classes.
22616
22617 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
22618
22619 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22620
22621 * target.def (ira_cover_classes): Remove.
22622
22623 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22624
22625 * doc/tm.texi.in: Ditto.
22626
22627 * ira-conflicts.c: Remove mentioning cover classes from the file.
22628 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
22629 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
22630
22631 * targhooks.c (default_ira_cover_classes): Remove.
22632
22633 * targhooks.h (default_ira_cover_classes): Ditto.
22634
22635 * haifa-sched.c: Remove mentioning cover classes from the file.
22636 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22637 ira_pressure_classes and ira_pressure_classes_num instead of
22638 ira_reg_class_cover_size and ira_reg_class_cover. Use
22639 sched_regno_pressure_class instead of sched_regno_cover_class.
22640 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22641 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22642
22643 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
22644 classes from the file.
22645 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22646 (struct object_hard_regs, struct object_hard_regs_node): New.
22647 (struct ira_object): New members profitable_hard_regs,
22648 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22649 (struct ira_allocno): Rename cover_class to aclass. Rename
22650 cover_class_cost and updated_cover_class_cost to class_cost and
22651 updated_class_cost. Remove splay_removed_p and
22652 left_conflict_size. Add new members colorable_p.
22653 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22654 (ALLOCNO_COLORABLE_P): New macro.
22655 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22656 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22657 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22658 (OBJECT_...): Rename parameter C to O.
22659 (OBJECT_PROFITABLE_HARD_REGS): New macro.
22660 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22661 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22662 (struct target_ira_int): New members x_ira_max_memory_move_cost,
22663 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22664 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22665 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22666 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
22667 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
22668 x_ira_reg_class_subunion.
22669 (ira_max_memory_move_cost, ira_max_register_move_cost)
22670 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22671 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22672 (ira_important_class_nums, ira_reg_class_superunion): New macros.
22673 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22674 (ira_reg_class_union): Rename to ira_reg_class_subunion.
22675 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22676 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22677 (ira_tune_allocno_costs_and_cover_classes): Rename to
22678 ira_tune_allocno_costs.
22679 (ira_debug_hard_regs_forest): New.
22680 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22681 (ira_object_conflict_iter_next): Fix comments.
22682 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22683 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22684 cover_class to aclass.
22685 (ira_allocate_and_accumulate_costs): Ditto.
22686 (ira_allocate_and_set_or_copy_costs): Ditto.
22687
22688 * opts.c (decode_options): Remove ira_cover_class check.
22689
22690 * ira-color.c: Remove mentioning cover classes from the file. Use
22691 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22692 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22693 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22694 (splay-tree.h): Remove include.
22695 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22696 before copy_freq_compare_func.
22697 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22698 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22699 New definitions.
22700 (hard_regs_roots, hard_regs_node_vec): Ditto.
22701 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22702 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22703 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22704 (create_new_object_hard_regs_node): Ditto.
22705 (add_new_object_hard_regs_node_to_forest): Ditto.
22706 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22707 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22708 Ditto.
22709 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22710 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22711 (remove_unused_object_hard_regs_nodes): Ditto.
22712 (enumerate_object_hard_regs_nodes): Ditto.
22713 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22714 (object_hard_regs_subnode_t): Ditto.
22715 (struct object_hard_regs_subnode): Ditto.
22716 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22717 (setup_object_hard_regs_subnode_index): Ditto.
22718 (get_object_hard_regs_subnodes_num): Ditto.
22719 (form_object_hard_regs_nodes_forest): Ditto.
22720 (finish_object_hard_regs_nodes_tree): Ditto.
22721 (finish_object_hard_regs_nodes_forest): Ditto.
22722 (allocnos_have_intersected_live_ranges_p): Rename to
22723 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22724 (pseudos_have_intersected_live_ranges_p): Rename to
22725 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22726 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22727 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22728 (update_copy_costs): Remove assert. Skip cost update if the hard
22729 reg does not belong the class.
22730 (assign_hard_reg): Process only profitable hard regs.
22731 (uncolorable_allocnos_num): Make it scalar.
22732 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22733 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22734 and ira_reg_class_max_nregs.
22735 (bucket_allocno_compare_func): Check frequency first.
22736 (sort_bucket): Add compare function as a parameter.
22737 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22738 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22739 (push_allocno_to_stack): Rewrite for checking new allocno
22740 colorability.
22741 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
22742 (push_only_colorable): Pass new parameter to sort_bucket.
22743 (push_allocno_to_spill): Remove.
22744 (allocno_spill_priority_compare): Make it inline and rewrite.
22745 (splay_tree_allocate, splay_tree_free): Remove.
22746 (allocno_spill_sort_compare): New function.
22747 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
22748 build and use splay tree. Choose first allocno in uncolorable
22749 allocno bucket to spill. Remove setting spill cost.
22750 (all_conflicting_hard_regs): Remove.
22751 (setup_allocno_available_regs_num): Check only profitable hard
22752 regs. Print info about hard regs nodes.
22753 (setup_allocno_left_conflicts_size): Remove.
22754 (put_allocno_into_bucket): Don't call
22755 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
22756 (improve_allocation): New.
22757 (color_allocnos): Call setup_profitable_hard_regs,
22758 form_object_hard_regs_nodes_forest, improve_allocation,
22759 finish_object_hard_regs_nodes_forest. Setup spill cost.
22760 (print_loop_title): Use pressure classes.
22761 (color_allocnso): Ditto.
22762 (do_coloring): Remove allocation and freeing splay_tree_node_pool
22763 and allocnos_for_spilling.
22764 (ira_sort_regnos_for_alter_reg): Don't setup members
22765 {first,next}_coalesced_allocno.
22766 (color): Remove allocating and freeing removed_splay_allocno_vec.
22767 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22768 prohibited_class_mode_regs.
22769
22770 * ira-lives.c: Remove mentioning cover classes from the file. Fix
22771 formatting.
22772 (update_allocno_pressure_excess_length): Use pressure classes.
22773 (inc_register_pressure, dec_register_pressure): Check for pressure
22774 class.
22775 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22776 pressure class. Use ira_reg_class_nregs instead of
22777 ira_reg_class_max_nregs.
22778 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22779 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22780 (single_reg_class): Use ira_reg_class_nregs instead of
22781 ira_reg_class_max_nregs.
22782 (process_bb_node_lives): Use pressure classes.
22783
22784 * ira-emit.c: Remove mentioning cover classes from the file. Use
22785 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
22786 (change_loop): Use pressure classes.
22787 (modify_move_list): Call ira_set_allocno_class instead of
22788 ira_set_allocno_cover_class.
22789
22790 * ira-build.c: Remove mentioning cover classes from the file. Use
22791 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22792 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
22793 ALLOCNO_UPDATED_CLASS_COST instead of
22794 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22795 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22796 (ira_create_allocno): Remove initialization of
22797 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
22798 ALLOCNO_COLORABLE_P.
22799 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22800 Update conflict regs for the objects.
22801 (create_cap_allocno): Remove assert. Don't propagate
22802 ALLOCNO_AVAILABLE_REGS_NUM.
22803 (ira_free_allocno_costs): New function.
22804 (finish_allocno): Change a part of code into call of
22805 ira_free_allocno_costs.
22806 (low_pressure_loop_node_p): Use pressure classes.
22807 (object_range_compare_func): Don't compare classes.
22808 (setup_min_max_conflict_allocno_ids): Ditto.
22809
22810 * loop-invariant.c: Remove mentioning cover classes from the file.
22811 Use ira_pressure_classes and ira_pressure_classes_num instead of
22812 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
22813 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22814 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22815 Use reg_allocno_class instead of reg_cover_class.
22816 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22817 STACK_REG_COVER_CLASS.
22818 (get_regno_cover_class): Rename to get_regno_pressure_class.
22819 (move_loop_invariants): Initialize and finalize regstat.
22820
22821 * ira.c: Remove mentioning cover classes from the file. Add
22822 comments about coloring without cover classes. Use ALLOCNO_CLASS
22823 instead of ALLOCNO_COVER_CLASS. Fix formatting.
22824 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22825 setup_class_subset_and_memory_move_costs.
22826 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22827 (setup_cover_and_important_classes): Rename to
22828 setup_allocno_and_important_classes.
22829 (setup_class_translate_array): New.
22830 (setup_class_translate): Call it for allocno and pressure classes.
22831 (cover_class_order): Rename to allocno_class_order.
22832 (comp_reg_classes_func): Use ira_allocno_class_translate instead
22833 of ira_class_translate.
22834 (reorder_important_classes): Set up ira_important_class_nums.
22835 (setup_reg_class_relations): Set up ira_reg_class_superunion.
22836 (print_class_cover): Rename to print_classes. Add parameter.
22837 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22838 Print pressure classes too.
22839 (find_reg_class_closure): Rename to find_reg_classes. Don't call
22840 setup_reg_subclasses.
22841 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22842 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22843 (setup_prohibited_class_mode_regs): Use
22844 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22845 (clarify_prohibited_class_mode_regs): New function.
22846 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22847 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22848 (ira_init_once): Initialize them.
22849 (free_register_move_costs): Process them.
22850 (ira_init): Move calls of find_reg_classes and
22851 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22852 Call clarify_prohibited_class_mode_regs.
22853 (ira_no_alloc_reg): Remove.
22854 (too_high_register_pressure_p): Use pressure classes.
22855
22856 * sched-deps.c: Remove mentioning cover classes from the file.
22857 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22858 ira_pressure_classes and ira_pressure_classes_num instead of
22859 ira_reg_class_cover_size and ira_reg_class_cover.
22860 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22861 sched_regno_pressure_class instead of sched_regno_cover_class.
22862 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
22863 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22864
22865 * ira.h: Add 2010 to Copyright.
22866 (ira_no_alloc_reg): Remove external.
22867 (struct target_ira): Rename x_ira_hard_regno_cover_class,
22868 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22869 x_ira_class_translate to x_ira_hard_regno_allocno_class,
22870 x_ira_allocno_classes_num, x_ira_allocno_classes, and
22871 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
22872 x_ira_pressure_classes, x_ira_pressure_class_translate, and
22873 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
22874 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
22875 x_ira_no_alloc_regs.
22876 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22877 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22878 ira_allocno_classes_num and ira_allocno_classes.
22879 (ira_class_translate): Rename to ira_allocno_class_translate.
22880 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22881 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22882 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22883 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22884 (ira_no_alloc_regs): New.
22885
22886 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
22887 classes from the file. Use ALLOCNO_CLASS instead of
22888 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
22889 ALLOCNO_COVER_CLASS_COST.
22890 (regno_cover_class): Rename to regno_aclass.
22891 (record_reg_classes): Use ira_reg_class_subunion instead of
22892 ira_reg_class_union.
22893 (record_address_regs): Check overflow.
22894 (scan_one_insn): Ditto.
22895 (print_allocno_costs): Print total mem cost fore regional allocation.
22896 (print_pseudo_costs): Use REG_N_REFS.
22897 (find_costs_and_classes): Use classes intersected with them on the
22898 1st pass. Check overflow. Use ira_reg_class_subunion instead of
22899 ira_reg_class_union. Use ira_allocno_class_translate and
22900 regno_aclass instead of ira_class_translate and regno_cover_class.
22901 Modify code for finding regno_aclass. Setup preferred classes for
22902 the next pass.
22903 (setup_allocno_cover_class_and_costs): Rename to
22904 setup_allocno_class_and_costs. Use regno_aclass instead of
22905 regno_cover_class. Use ira_set_allocno_class instead of
22906 ira_set_allocno_cover_class.
22907 (init_costs, finish_costs): Use regno_aclass instead of
22908 regno_cover_class.
22909 (ira_costs): Use setup_allocno_class_and_costs instead of
22910 setup_allocno_cover_class_and_costs.
22911 (ira_tune_allocno_costs_and_cover_classes): Rename to
22912 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
22913 by processing objects. Use ira_reg_class_max_nregs instead of
22914 ira_reg_class_nregs.
22915
22916 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22917
22918 * sched-int.h: Remove mentioning cover classes from the file.
22919 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22920
22921 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
22922 classes from the file.
22923 (struct reg_pref): Rename coverclass into allocnoclass.
22924 (reg_cover_class): Rename to reg_allocno_class.
22925
22926 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22927
22928 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22929
22930 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22931
22932 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22933
22934 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22935
22936 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22937
22938 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22939
22940 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22941
22942 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22943
22944 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22945
22946 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22947 (i386_ira_cover_classes): Ditto.
22948
22949 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22950
22951 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22952
22953 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22954
22955 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22956
22957 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22958
22959 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22960
22961 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22962 (mips_ira_cover_classes): Ditto.
22963
22964 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22965
22966 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22967
22968 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22969
22970 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22971
22972 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22973
22974 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22975 (IRA_COVER_CLASSES_VSX): Ditto.
22976
22977 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22978 (rs6000_ira_cover_classes): Ditto.
22979
22980 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22981
22982 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22983
22984 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22985
22986 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22987
22988 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22989
22990 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22991
22992 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22993
22994 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22995
22996 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22997
22998 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
22999
23000 2011-03-29 Jakub Jelinek <jakub@redhat.com>
23001
23002 PR debug/48253
23003 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23004 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23005 dw_fde_unlikely_section_end_label, cold_in_std_section,
23006 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23007 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23008 fields.
23009 (output_fde): Use dw_fde_second_{begin,end} if second is
23010 true, otherwise dw_fde_{begin,end}.
23011 (output_call_frame_info): Test dw_fde_second_begin != NULL
23012 instead of dw_fde_switched_sections.
23013 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23014 fields, initialize new fields. Initialize in_std_section
23015 unconditionally from the first partition.
23016 (dwarf2out_end_epilogue): Don't override dw_fde_end when
23017 dw_fde_second_begin is non-NULL.
23018 (dwarf2out_switch_text_section): Stop initializing removed
23019 dw_fde_struct fields, initialize new fields, initialize
23020 also dw_fde_end here. Set dw_fde_switch_cfi even when
23021 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
23022 (struct var_loc_list_def): Add last_before_switch field.
23023 (arange_table, arange_table_allocated, arange_table_in_use,
23024 ARANGE_TABLE_INCREMENT, add_arange): Removed.
23025 (size_of_aranges): Count !in_std_section and !second_in_std_section
23026 hunks in fdes, instead of looking at arange_table_in_use.
23027 (output_aranges): Add aranges_length argument, don't call
23028 size_of_aranges here. Instead of using aranges_table*
23029 emit ranges for fdes when !in_std_section resp.
23030 !second_in_std_section.
23031 (dw_loc_list): Break ranges crossing section switch.
23032 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
23033 use dw_fde_second_end instead of dw_fde_end as end of last range.
23034 (gen_subprogram_die): Don't call add_arange. Use
23035 dw_fde_{begin,end} for first partition and if switched
23036 section dw_fde_second_{begin,end} for the second.
23037 (var_location_switch_text_section_1,
23038 var_location_switch_text_section): New functions.
23039 (dwarf2out_begin_function): Initialize cold_text_section even
23040 when function_section () isn't text_section.
23041 (prune_unused_types): Don't walk arange_table.
23042 (dwarf2out_finish): Don't needlessly test
23043 flag_reorder_blocks_and_partition when testing cold_text_section_used.
23044 If info_section_emitted, call size_of_aranges and if it indicates
23045 non-empty .debug_aranges, call output_aranges with the computed
23046 size. Stop using removed dw_fde_struct fields, use
23047 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23048 for second.
23049
23050 PR debug/48203
23051 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23052 create ENTRY_VALUE if incoming or address of incoming's MEM
23053 is a hard REG.
23054 * dwarf2out.c (mem_loc_descriptor): Don't emit
23055 DW_OP_GNU_entry_value of DW_OP_fbreg.
23056 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23057 on ENTRY_VALUE is able to find the canonical parameter VALUE.
23058 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23059 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23060 ENTRY_VALUE_EXPs.
23061 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23062 is a REG_P or MEM_P with REG_P address, compute hash directly
23063 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23064 (preserve_only_constants): Don't clear VALUES forwaring
23065 ENTRY_VALUE to some other VALUE.
23066
23067 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
23068
23069 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23070 instead of GEN_INT.
23071
23072 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23073
23074 * cfgexpand.c (expand_gimple_cond): Always set the source location and
23075 block before expanding the statement.
23076 (expand_gimple_stmt_1): Likewise. Set them here...
23077 (expand_gimple_stmt): ...and not here. Tidy.
23078 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23079 unknown.
23080
23081 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23082
23083 * Makefile.in: New rule for cprop.o.
23084 * gcse.c: Move constant/copy propagation to cprop.c.
23085 (compute_local_properties): Only handle expression tables.
23086 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23087 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23088 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23089 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23090 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23091 compute_cprop_data, find_used_regs, try_replace_reg,
23092 find_avail_set, cprop_jump, constprop_register, cprop_insn,
23093 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23094 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23095 find_bypass_set, reg_killed_on_edge, bypass_block,
23096 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23097 execute_rtl_cprop, pass_rtl_cprop): Move to...
23098 * cprop.c: ...here. New file, constant/copy propagation for RTL
23099 moved from gcse.c to here with minor cleanups in duplicated code.
23100
23101 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
23102
23103 * config/i386/i386.c (flag_opts): Fix a typo in
23104 -mavx256-split-unaligned-store.
23105
23106 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23107
23108 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23109 LIBCALL_VALUE): Remove macros.
23110 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23111 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23112 (h8300_function_value, h8300_libcall_value,
23113 h8300_function_value_regno_p): New functions.
23114
23115 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23116
23117 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23118
23119 2011-03-28 Jeff Law <law@redhat.com>
23120
23121 * tree-ssa-threadupdate.c (redirect_edges): Call
23122 create_edge_and_update_destination_phis as needed.
23123 (create_edge_and_update_destination_phis): Accept new BB argument.
23124 All callers updated.
23125 (thread_block): Do not update the profile when threading around
23126 intermediate blocks.
23127 (thread_single_edge): Likewise.
23128 (determine_bb_domination_status): If BB is not a successor of the
23129 loop header, return NONDOMINATING.
23130 (register_jump_thread): Note when we register a jump thread around
23131 an intermediate block.
23132 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23133 (thread_across_edge): Use it.
23134
23135 2011-03-28 Tristan Gingold <gingold@adacore.com>
23136
23137 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23138 when for_return is 2.
23139
23140 2011-03-28 Jeff Law <law@redhat.com>
23141
23142 * var-tracking.c (canonicalize_values_mark): Delete unused
23143 lhs assignment.
23144 (canonicalize_values_star, set_variable_part): Likewise.
23145 (clobber_variable_part, delete_variable_part): Likewise.
23146
23147 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23148
23149 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23150
23151 2011-03-28 Martin Jambor <mjambor@suse.cz>
23152
23153 * tree-inline.c (expand_call_inline): Do not check that destination
23154 node is analyzed.
23155 (optimize_inline_calls): Assert that destination node is analyzed.
23156 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23157 not call tree_lowering_passes.
23158 * cgraph.h (cgraph_analyze_function): Declare.
23159 * cgraphunit.c (cgraph_analyze_function): Make public.
23160
23161 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23162
23163 * config/sparc/sparc-opts.h: New.
23164 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23165 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23166 (sparc_option_override): Store processor_type enumeration rather
23167 than string in cpu_default. Remove name and enumeration from
23168 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23169 without using sparc_select. Use target_flags_explicit instead of
23170 fpu_option_set.
23171 * config/sparc/sparc.h (enum processor_type): Move to
23172 sparc-opts.h.
23173 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23174 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23175 HeaderInclude entry.
23176 (mcpu=, mtune=): Use Var and Enum.
23177 (sparc_processor_type): New Enum and EnumValue entries.
23178
23179 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23180 Iain Sandoe <iains@gcc.gnu.org>
23181
23182 PR target/48245
23183 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23184
23185 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23186
23187 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23188 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23189 Insert new statements at it in lieu of STMT.
23190 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23191 * tree-vect-stmts.c (vectorizable_store): Likewise.
23192 (vectorizable_load): Likewise.
23193
23194 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23195
23196 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23197 (divtf3): Ditto.
23198 (multf3): Ditto.
23199 (subtf3): Ditto.
23200
23201 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23202
23203 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23204 unaligned 256bit load/store.
23205 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23206 (*avx_movdqu<avxmodesuffix>): Likewise.
23207
23208 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23209
23210 PR target/48288
23211 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23212 * config/pa/pa.md (iordi3): Use new predicate in expander.
23213 (iorsi3): Likewise.
23214
23215 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23216
23217 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23218 FUNCTION_VALUE_REGNO_P): Remove macros.
23219 * config/mips/mips-protos.h (mips_function_value): Remove.
23220 * config/mips/mips.c (mips_function_value): Rename to...
23221 (mips_function_value_1): ... this. Make static. Handle receiving
23222 the function type in 'fn_decl_or_type' argument.
23223 (mips_function_value, mips_libcall_value,
23224 mips_function_value_regno_p): New function.
23225 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23226 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23227
23228 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23229
23230 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23231 and -mavx256-split-unaligned-store.
23232 (ix86_option_override_internal): Split 32-byte AVX unaligned
23233 load/store by default.
23234 (ix86_avx256_split_vector_move_misalign): New.
23235 (ix86_expand_vector_move_misalign): Use it.
23236
23237 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23238 -mavx256-split-unaligned-store.
23239
23240 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23241 256bit load/store. Generate unaligned store on misaligned memory
23242 operand.
23243 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23244 256bit load/store.
23245 (*avx_movdqu<avxmodesuffix>): Likewise.
23246
23247 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23248 -mavx256-split-unaligned-store.
23249
23250 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23251
23252 PR target/38598
23253 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23254 Update commentary.
23255
23256 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23257
23258 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23259 opno arguments with an expand_operand. Use create_input_operand.
23260 (mips_prepare_builtin_target): Delete.
23261 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23262 functions.
23263 (mips_expand_builtin_direct): Use create_output_operand and
23264 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23265 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23266 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23267
23268 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23269
23270 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23271 function.
23272 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23273
23274 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23275
23276 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23277 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23278 basic blocks and call commit_edge_insertions directly.
23279 (fixup_abnormal_edges): Move from here to...
23280 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23281 on the edges and return whether some have actually been inserted.
23282 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23283 compensation code.
23284
23285 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23286
23287 PR rtl-optimization/48144
23288 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23289 (merge_expr_data): ... here.
23290 (av_set_intersect): Rename to av_set_code_motion_filter.
23291 Update all callers. Call merge_history_vect when an expression
23292 is found in both sets.
23293 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23294
23295 2011-03-26 Alan Modra <amodra@gmail.com>
23296
23297 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23298 cmodel medium addresses.
23299 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23300 64-bit gpr loads and stores.
23301 (rs6000_secondary_reload_ppc64): New function.
23302 * config/rs6000/rs6000-protos.h: Declare it.
23303 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23304
23305 2011-03-26 Alan Modra <amodra@gmail.com>
23306
23307 PR target/47487
23308 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23309 GNU Go in traceback table.
23310
23311 2011-03-25 Richard Henderson <rth@redhat.com>
23312
23313 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23314 if there are exactly 6 operands.
23315 (set_storage_via_setmem): Similarly.
23316
23317 2011-03-25 Kai Tietz <ktietz@redhat.com>
23318
23319 * collect2.c (write_c_file_stat): Handle backslash
23320 as right-hand directory separator.
23321 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23322 checking just for slash.
23323 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23324 instead of checking for trailing slash.
23325 * gcc.c (record_temp_file): Use filename_cmp instead
23326 of strcmp.
23327 (do_spec_1): Likewise.
23328 (replace_outfile_spec_function): Likewise.
23329 (is_directory): Use filename_ncmp instead of strncmp.
23330 (print_multilib_info): Likewise.
23331 * gcov.c (find_source): Use filename_cmp instead
23332 instead of strcmp.
23333 (make_gcov_file_name): Fix order of slash/backslash
23334 checks.
23335 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23336 (add_standard_paths): Likewise.
23337 * mips-tfile.c (saber_stop): Handle backslash.
23338 * prefix.c (update_path): Use filename_ncmp instead of
23339 strncmp.
23340 * profile.c (output_location): Use filename_cmp instead
23341 of strcmp.
23342 * read-md.c (handle_toplevel_file): Handle backslash.
23343 * tlink.c (frob_extension): Likewise.
23344 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23345 strcmp.
23346 * tree-dump.c (dequeue_and_dump): Handle backslash.
23347 * tree.c (get_file_function_name): Likewise.
23348 * gengtype.c (read_input_list): Likewise.
23349 (get_file_realbasename): Likewise.
23350 (get_output_file_with_visibility): Use filename_cmp
23351 instead of strcmp.
23352
23353 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23354
23355 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23356 case to VFPv1.
23357
23358 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23359
23360 * fold-const.c (expr_location_or): New function.
23361 (fold_truth_not_expr): Call it.
23362
23363 2011-03-25 Jeff Law <law@redhat.com>
23364
23365 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23366 va_end.
23367 * c-family/c-common.c (def_fn_type): Likewise.
23368 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23369 * emit-rtl.c (gen_rtvec): Likewise.
23370 * lto/lto-lang.c (def_fn_type): Likewise.
23371
23372 2011-03-25 Richard Guenther <rguenther@suse.de>
23373
23374 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23375 also generate copies.
23376 (fini_copy_prop): Handle constant values properly.
23377
23378 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23379
23380 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23381 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23382 (hash_loc_operands, compare_loc_operands): Handle
23383 DW_OP_GNU_entry_value.
23384
23385 2011-03-25 Kai Tietz <ktietz@redhat.com>
23386
23387 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23388 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23389 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23390 comment and use macro TARGET_64BIT_MS_ABI instead.
23391 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23392 and change default behavior for 32-bit MS_ABI.
23393 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23394 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23395 32-bit, too.
23396 (ix86_cfun_abi): Likewise.
23397 (ix86_maybe_switch_abi): Adjust comment.
23398 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23399 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23400 instead of checking for SYSV_ABI.
23401 (ix86_nsaved_sseregs): Likewise.
23402 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23403 to 16 bytes.
23404 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23405 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23406 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23407 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23408 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23409
23410 2011-03-25 Richard Guenther <rguenther@suse.de>
23411
23412 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23413 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23414 (verify_gimple): Remove.
23415 * tree-cfg.c (verify_gimple_call): Merge verification
23416 from verify_stmts.
23417 (verify_gimple_phi): Merge verification from verify_stmts.
23418 (verify_gimple_label): New function.
23419 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23420 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23421 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23422 (verify_stmts): Rename to verify_gimple_in_cfg.
23423 (verify_gimple_in_cfg): New function.
23424 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23425 * tree-ssa.c (verify_ssa): Likewise.
23426 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23427
23428 2011-03-25 Richard Guenther <rguenther@suse.de>
23429
23430 * passes.c (init_optimization_passes): Add FRE pass after
23431 early SRA.
23432
23433 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23434 Andrew Stubbs <ams@codesourcery.com>
23435
23436 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23437 for Cortex-A8.
23438 (arm_movdi_vfp_cortexa8): New pattern.
23439 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23440 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23441 instructions when tuning for Cortex-A8. Set attribute "arch".
23442 * config/arm/arm.md: Move include arm-tune.md up a bit.
23443 (define_attr "arch"): Add "onlya8" and "nota8" values.
23444 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23445
23446 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23447
23448 PR bootstrap/48282
23449 Revert:
23450 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23451
23452 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23453 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23454 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23455 * passes.c (init_optimization_passes): Move
23456 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23457
23458 2011-03-25 Kai Tietz <ktietz@redhat.com>
23459
23460 * c-typeck.c (comptypes_internal): Replace target
23461 hook call of comp_type_attributes by version in tree.c file.
23462 * gimple.c (gimple_types_compatible_p_1): Likewise.
23463 * tree-ssa.c (useless_type_conversion_p): Likewise.
23464 * tree.c (build_type_attribute_qual_variant): Likewise.
23465 (attribute_value_equal): New static helper function.
23466 (comp_type_attributes): New function.
23467 (merge_attributes): Use attribute_value_equal for comparison.
23468 (attribute_list_contained): Likewise.
23469 * tree.h (comp_type_attributes): New prototype.
23470
23471 2011-03-25 Richard Guenther <rguenther@suse.de>
23472
23473 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23474 of complex types at -O0.
23475 (verify_gimple_assign_binary): Likewise.
23476 (verify_gimple_assign_ternary): Likewise.
23477
23478 2011-03-24 Mark Wielaard <mjw@redhat.com>
23479
23480 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23481 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23482
23483 2011-03-24 Mark Wielaard <mjw@redhat.com>
23484
23485 PR debug/48041
23486 * dwarf2out.c (output_abbrev_section): Only write table when
23487 abbrev_die_table_in_use > 1.
23488
23489 2011-02-24 Richard Henderson <rth@redhat.com>
23490
23491 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23492 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23493 (alpha_expand_unaligned_load_words): Use extql.
23494 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23495 (emit_insxl): Handle all modes for consistency.
23496
23497 2011-02-24 Richard Henderson <rth@redhat.com>
23498
23499 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23500 (alpha_expand_unaligned_load): Likewise.
23501 (alpha_expand_unaligned_store): Likewise.
23502 (alpha_expand_unaligned_load_words): Likewise.
23503 (alpha_expand_unaligned_store_words): Likewise.
23504 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23505 (alpha_split_lock_test_and_set_12): Likewise.
23506 (print_operand, alpha_fold_builtin_extxx): Likewise.
23507 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23508 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23509 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23510 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23511 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23512 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23513 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23514 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23515 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23516 (extwl, extll, extql): Similarly.
23517 (inswh, inslh, insqh): Similarly.
23518 (mskbl, mskwl, mskll, mskql): Similarly.
23519 (mskwh, msklh, mskqh): Similarly.
23520
23521 2011-02-24 Richard Henderson <rth@redhat.com>
23522
23523 * config/alpha/alpha.md (attribute isa): Add er, ner.
23524 (attribute enabled): Handle them.
23525 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23526
23527 2011-02-24 Richard Henderson <rth@redhat.com>
23528
23529 * config/alpha/alpha.md (attribute isa): Add vms.
23530 (attribute enabled): Handle it.
23531 (*movsf): Merge *movsf_{nofix,fix,nofp}.
23532 (*movdf): Merge *movdf_{nofix,fix,nofp}.
23533 (*movtf): Rename from *movtf_internal for consistency.
23534 (*movsi): Merge with *movsi_nt_vms.
23535 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23536 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23537 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23538 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23539
23540 2011-02-24 Richard Henderson <rth@redhat.com>
23541
23542 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23543 (extendqisi2, extendhisi2): Likewise.
23544 (extendqidi2): Simplify BWX/non-BWX expansions.
23545 (extendhidi2): Similarly.
23546
23547 2011-02-24 Richard Henderson <rth@redhat.com>
23548
23549 * config/alpha/alpha.md (attribute isa): New.
23550 (attribute enabled): New.
23551 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23552 (zero_extendqisi2, zero_extendqidi2): Similarly.
23553 (zero_extendhisi2, zero_extendhidi2): Similarly.
23554 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23555
23556 2011-02-24 Richard Henderson <rth@redhat.com>
23557
23558 * config/alpha/predicates.md (input_operand): Revert last change;
23559 update comment to mention 32-bit VMS rather than Windows.
23560
23561 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23562
23563 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23564 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23565 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23566 * passes.c (init_optimization_passes): Move
23567 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23568
23569 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23570
23571 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23572
23573 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23574
23575 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23576 correctly.
23577
23578 2011-03-24 Jakub Jelinek <jakub@redhat.com>
23579
23580 PR debug/48204
23581 * simplify-rtx.c (simplify_const_unary_operation): Call
23582 real_convert when changing mode class with FLOAT_EXTEND.
23583
23584 2011-03-24 Nick Clifton <nickc@redhat.com>
23585
23586 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23587 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23588 * config/rx/rx.c (rx_option_override): Set align_jumps,
23589 align_loops and align_labels if not set by the user.
23590 (rx_align_for_label): New function.
23591 (rx_max_skip_for_label): New function.
23592 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23593 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23594 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23595 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23596 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23597
23598 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23599
23600 PR rtl-optimization/48263
23601 * optabs.c (expand_binop_directly): Reinstate convert_modes code
23602 and original commutative_p handling. Use maybe_gen_insn.
23603
23604 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23605
23606 * reload.c (find_reloads_subreg_address): Add address_reloaded
23607 parameter and return true there if the full address has been
23608 reloaded.
23609 (find_reloads_toplev): Pass address_reloaded flag.
23610 (find_reloads_address_1): Don't use address_reloaded parameter.
23611
23612 2011-03-24 Jeff Law <law@redhat.com>
23613
23614 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23615 unused variable "ann".
23616 (remove_unused_locals): Likewise.
23617
23618 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23619 statement.
23620
23621 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23622 after it is freed.
23623
23624 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23625
23626 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23627 for invalid symbolic addresses.
23628 (s390_secondary_reload): Don't use s390_check_symref_alignment for
23629 larl operands.
23630
23631 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23632
23633 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23634 the argument in calls to fold_truth_not_expr.
23635
23636 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23637
23638 * tree.c (record_node_allocation_statistics): New function.
23639 (make_node_stat, copy_node_stat, build_string): Call it.
23640 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23641 (build1_stat, build_omp_clause): Likewise.
23642
23643 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23644
23645 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23646 last commit.
23647
23648 2011-03-24 Richard Guenther <rguenther@suse.de>
23649
23650 PR tree-optimization/48271
23651 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23652 blocks that still exist.
23653
23654 2011-03-24 Richard Guenther <rguenther@suse.de>
23655
23656 PR tree-optimization/48270
23657 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23658 not free datarefs before ddrs.
23659
23660 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23661
23662 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23663 from the address built for a reference with variable offset.
23664
23665 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23666
23667 PR target/48237
23668 * config/i386/i386.md (*movdf_internal_rex64): Do not split
23669 alternatives that can be handled with movq or movabsq insn.
23670 (*movdf_internal): Disable for !TARGET_64BIT.
23671 (*movdf_internal_nointeger): Ditto.
23672 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23673
23674 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23675
23676 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23677 (FUNCTION_ARG_ADVANCE): Likewise.
23678 * tm.texi.in: Change references to them to hook references.
23679 * tm.texi: Regenerate.
23680 * targhooks.c (default_function_arg): Eliminate check for target macro.
23681 (default_function_incoming_arg): Likewise.
23682 (default_function_arg_advance): Likewise.
23683 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23684 (function_arg_advance): Likewise.
23685 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23686
23687 2011-03-24 Richard Guenther <rguenther@suse.de>
23688
23689 PR middle-end/48269
23690 * tree-object-size.c (addr_object_size): Do not double-account
23691 for MEM_REF offsets.
23692
23693 2011-03-24 Diego Novillo <dnovillo@google.com>
23694
23695 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23696 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23697 (lto_input_data_block): Move from lto-opts.c. Make extern.
23698 Update all users.
23699 (lto_input_string): Rename from input_string. Make extern.
23700 Update all users.
23701 * lto-streamer-out.c (lto_output_string_with_length): Rename from
23702 output_string_with_length.
23703 Output 0 to indicate a non-NULL string. Update all callers to
23704 not emit 0.
23705 (lto_output_string): Rename from output_string. Make extern.
23706 Update all users.
23707 (lto_output_decl_state_streams): Make extern.
23708 (lto_output_decl_state_refs): Make extern.
23709 * lto-streamer.h (lto_input_string): Declare.
23710 (lto_input_data_block): Declare.
23711 (lto_output_string): Declare.
23712 (lto_output_string_with_length): Declare.
23713 (lto_output_decl_state_streams): Declare.
23714 (lto_output_decl_state_refs): Declare.
23715
23716 2011-03-24 Richard Guenther <rguenther@suse.de>
23717
23718 PR tree-optimization/46562
23719 * tree.c (build_invariant_address): New function.
23720 * tree.h (build_invariant_address): Declare.
23721 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23722 a renamed function moved ...
23723 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23724 Take valueization callback parameter.
23725 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23726 * gimple-fold.h: New file.
23727 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23728 (ccp_fold, fold_const_aggregate_ref,
23729 fold_ctor_reference, fold_nonarray_ctor_reference,
23730 fold_array_ctor_reference, fold_string_cst_ctor_reference,
23731 get_base_constructor): Move ...
23732 * gimple-fold.c: ... here.
23733 (gimple_fold_stmt_to_constant_1): New function
23734 split out from ccp_fold. Take a valueization callback parameter.
23735 Valueize all operands.
23736 (gimple_fold_stmt_to_constant): New wrapper function.
23737 (fold_const_aggregate_ref_1): New function split out from
23738 fold_const_aggregate_ref. Take a valueization callback parameter.
23739 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23740 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23741 invariant POINTER_PLUS_EXPRs to invariant form.
23742 (vn_valueize): New function.
23743 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23744 * tree-vrp.c (vrp_valueize): New function.
23745 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23746 to fold statements to constants.
23747 * tree-ssa-pre.c (eliminate): Properly guard propagation of
23748 function declarations.
23749 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23750 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23751
23752 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23753
23754 * config/h8300/predicates.md (jump_address_operand): Fix register
23755 mode check.
23756
23757 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
23758
23759 * doc/invoke.texi (max-stores-to-sink): Document.
23760 * params.h (MAX_STORES_TO_SINK): Define.
23761 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23762 if either vectorization or if-conversion is disabled.
23763 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23764 tree-vect-data-refs.c vect_equal_offsets.
23765 (dr_equal_offsets_p): New function.
23766 (find_data_references_in_bb): Remove static.
23767 * tree-data-ref.h (find_data_references_in_bb): Declare.
23768 (dr_equal_offsets_p): Likewise.
23769 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23770 (vect_drs_dependent_in_basic_block): Update calls to
23771 vect_equal_offsets.
23772 (vect_check_interleaving): Likewise.
23773 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23774 (cond_if_else_store_replacement): Rename to...
23775 (cond_if_else_store_replacement_1): ... this. Change arguments and
23776 documentation.
23777 (cond_if_else_store_replacement): New function.
23778 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23779 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23780
23781 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
23782
23783 PR target/46934
23784 * config/arm/arm.md (casesi): Use the gen_int_mode() function
23785 to subtract lower bound instead of GEN_INT().
23786
23787 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
23788
23789 PR other/48179
23790 PR other/48221
23791 PR other/48234
23792 * doc/extend.texi (Alignment): Move section to match order in TOC.
23793 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23794 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23795
23796 2011-03-23 Jeff Law <law@redhat.com>
23797
23798 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23799 before removing the edge.
23800
23801 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23802 it may have been freed by redirect_branch_edge or
23803 redirect_edge_succ_nodup.
23804
23805 2011-03-23 Richard Guenther <rguenther@suse.de>
23806
23807 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23808 (check_va_list_escapes): Likewise.
23809 (check_all_va_list_escapes): Likewise.
23810
23811 2011-03-23 Richard Guenther <rguenther@suse.de>
23812
23813 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23814 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23815 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23816 (alias.o): Likewise.
23817 (ipa-type-escape.o): Remove.
23818 (ipa-struct-reorg.o): Likewise.
23819 (GTFILES): Remove ipa-struct-reorg.c.
23820 * alias.c: Do not include ipa-type-escape.h.
23821 * tree-ssa-alias.c: Likewise.
23822 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23823 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23824 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23825 and ipa-type-escape passes.
23826 * tree-pass.h (pass_ipa_type_escape): Remove.
23827 (pass_ipa_struct_reorg): Likewise.
23828 * ipa-struct-reorg.h: Remove.
23829 * ipa-struct-reorg.c: Likewise.
23830 * ipa-type-escape.h: Likewise.
23831 * ipa-type-escape.c: Likewise.
23832 * doc/invoke.texi (-fipa-struct-reorg): Remove.
23833 (--param struct-reorg-cold-struct-ratio): Likewise.
23834 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23835 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23836 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23837
23838 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23839
23840 * config/s390/2084.md: Enable all insn reservations also for z9_ec
23841 cpu attribute value.
23842 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23843 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23844 * config/s390/s390.c (processor_flags_table): New constant array.
23845 (s390_handle_arch_option): Remove.
23846 (s390_handle_option): Remove s390_handle_arch_option invocations
23847 and OPT_mwarn_framesize_ handling.
23848 (s390_option_override): Remove s390_handle_arch_option invocation.
23849 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23850 warnings.
23851 * config/s390/s390.md (cpu attribute): Add z9_ec value.
23852 * config/s390/s390.opt (s390_tune, s390_arch)
23853 (march=): Replace s390_arch_option enum and values with
23854 processor_type. Set variable name to s390_arch. Set
23855 initialization value.
23856 (mtune=): Replace s390_arch_option with processor_type. Set
23857 variable name to s390_tune. Set initialization value.
23858
23859 2011-03-23 Julian Brown <julian@codesourcery.com>
23860
23861 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23862 accesses which are not naturally aligned.
23863
23864 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23865
23866 PR target/47553
23867 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23868
23869 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23870
23871 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23872 parameter from "int" to "enum insn_code".
23873 (expand_operand_type): New enum.
23874 (expand_operand): New structure.
23875 (create_expand_operand): New function.
23876 (create_fixed_operand, create_output_operand): Likewise
23877 (create_input_operand, create_convert_operand_to): Likewise.
23878 (create_convert_operand_from, create_address_operand): Likewise.
23879 (create_integer_operand): Likewise.
23880 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23881 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23882 (expand_insn, expand_jump_insn): Likewise.
23883 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23884 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23885 (expand_movstr, expand_builtin___clear_cache): Likewise.
23886 (expand_builtin_lock_release): Likewise.
23887 * explow.c (allocate_dynamic_stack_space): Likewise.
23888 (probe_stack_range): Likewise. Allow check_stack to FAIL,
23889 and use the default handling in that case.
23890 * expmed.c (check_predicate_volatile_ok): Delete.
23891 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23892 (emit_cstore): Likewise.
23893 * expr.c (emit_block_move_via_movmem): Likewise.
23894 (set_storage_via_setmem, expand_assignment): Likewise.
23895 (emit_storent_insn, try_casesi): Likewise.
23896 (emit_single_push_insn): Likewise. Allow the expansion to fail.
23897 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23898 (expand_vec_shift_expr, expand_binop_directly): Likewise.
23899 (expand_twoval_unop, expand_twoval_binop): Likewise.
23900 (expand_unop_direct, emit_indirect_jump): Likewise.
23901 (emit_conditional_move, vector_compare_rtx): Likewise.
23902 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23903 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23904 (expand_sync_lock_test_and_set): Likewise.
23905 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
23906 (emit_unop_insn): Likewise.
23907 (expand_copysign_absneg): Change icode to an insn_code.
23908 (create_convert_operand_from_type): New function.
23909 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23910 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23911 (expand_insn, expand_jump_insn): Likewise.
23912 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23913 than const_int_operand for operand 2.
23914
23915 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23916
23917 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23918 if possible.
23919
23920 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23921
23922 * emit-rtl.c (emit_pattern_before_noloc): New function.
23923 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23924 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23925 (emit_pattern_after_noloc): New function.
23926 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23927 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23928
23929 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23930
23931 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23932 (__ffsDI2): Likewise.
23933
23934 2011-03-22 Richard Henderson <rth@redhat.com>
23935
23936 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23937 of !TARGET_ABI_OPEN_VMS.
23938 (alpha_trampoline_init, alpha_start_function): Likewise.
23939 (alpha_expand_epilogue, alpha_file_start): Likewise.
23940 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23941 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23942 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23943 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23944 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23945
23946 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23947
23948 * config/s390/s390-opts.h: New.
23949 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23950 s390_arch_flags, s390_warn_framesize, s390_stack_size,
23951 s390_stack_guard): Remove.
23952 (s390_handle_arch_option): Return void. Take enum
23953 s390_arch_option value instead of string and searching array.
23954 (s390_handle_option): Don't assert that global structures are in
23955 use. Access variables via opts pointer. Use error_at. Don't use
23956 sscanf for -mstack-guard= or -mstack-size=. Update call to
23957 s390_handle_arch_option.
23958 (s390_option_override): Update call to s390_handle_arch_option.
23959 (s390_emit_prologue): Use %d format for s390_stack_size in
23960 diagnostic. Use %wd for HOST_WIDE_INT.
23961 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23962 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23963 * config/s390/s390.opt (config/s390/s390-opts.h): New
23964 HeaderInclude entry.
23965 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23966 s390_arch_flags, s390_warn_framesize): New Variable entries.
23967 (s390_arch_option): New Enum and EnumValue entries.
23968 (march=): Use Enum instead of Var.
23969 (mstack-guard=, mstack-size=): Use UInteger and Var.
23970 (mtune=): Use Enum.
23971
23972 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23973
23974 * config/score/score.c (score_handle_option): Don't assert that
23975 global structures are in use. Access target_flags via opts
23976 pointer. Use value of -march= option to determine target_flags
23977 settings.
23978 * config/score/score.opt (march=): Use Enum.
23979 (score_arch): New Enum and EnumValue entries.
23980
23981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23982
23983 * config/mep/mep.c (option_mtiny_specified): Remove.
23984 (mep_option_override): Move register handling for -mivc2 from
23985 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
23986 instead of option_mtiny_specified.
23987 (mep_handle_option): Access target_flags via opts pointer. Don't
23988 assert that global structures are in use. Defer part of -mivc2
23989 handling and move it to mep_option_override.
23990 * config/mep/mep.opt (IVC2): New Mask entry.
23991 (mivc2): Use Var and Defer instead of Mask.
23992
23993 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23994
23995 * config/v850/v850-opts.h: New.
23996 * config/v850/v850.c (small_memory): Replace with
23997 small_memory_physical_max array. Make that array static const.
23998 (v850_handle_memory_option): Take integer value of argument. Take
23999 gcc_options pointer, option text and location. Return void.
24000 Update for changes to small memory structures.
24001 (v850_handle_option): Access target_flags via opts pointer. Don't
24002 assert that global structures are in use. Update calls to
24003 v850_handle_memory_option.
24004 (v850_encode_data_area): Update references to small memory settings.
24005 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24006 (enum small_memory_type): Move to v850-opts.h.
24007 * config/v850/v850.opt (config/v850/v850-opts.h): New
24008 HeaderInclude entry.
24009 (small_memory_max): New Variable entry.
24010 (msda): Replace by pair of options msda= and msda-. Use UInteger.
24011 (mtda, mzda): Likewise.
24012
24013 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24014
24015 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24016 pointer. Don't assert that global structures are in use.
24017
24018 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24019
24020 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24021 via opts pointer. Don't assert that global structures are in use.
24022
24023 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24024
24025 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24026 (munix=93): Use Var.
24027 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24028 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24029 * config/pa/pa-opts.h: New.
24030 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24031 (pa_handle_option): Don't assert that global structures are in
24032 use. Access target_flags via opts pointer. Don't handle
24033 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24034 OPT_munix_98 here.
24035 (pa_option_override): Handle deferred OPT_mfixed_range_.
24036
24037 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24038
24039 * config/mn10300/mn10300-opts.h: New.
24040 * config/mn10300/mn10300.c (mn10300_processor,
24041 mn10300_tune_string): Remove.
24042 (mn10300_handle_option): Don't assert that global structures are
24043 in use. Access mn10300_processor via opts pointer. Don't handle
24044 OPT_mtune_ here.
24045 * config/mn10300/mn10300.h (enum processor_type): Move to
24046 mn10300-opts.h.
24047 (mn10300_processor): Remove.
24048 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24049 HeaderInclude entry.
24050 (mn10300_processor): New Variable entry.
24051 (mtune=): Use Var.
24052
24053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24054
24055 * config/microblaze/microblaze.c: Don't include opts.h.
24056 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24057 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24058 (mno-clearbss): Use Var and Warn.
24059
24060 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24061
24062 * config/m32r/m32r-opts.h: New.
24063 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24064 (m32r_handle_option): Don't assert that global structures are in
24065 use. Access target_flags and m32r_cache_flush_func via opts
24066 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
24067 OPT_mno_flush_trap here.
24068 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24069 include of m32r-opts.h.
24070 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24071 HeaderInclude entry.
24072 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24073 (mmodel=): Use Enum and Var.
24074 (m32r_model): New Enum and EnumValue entries.
24075 (mno-flush-trap): Use Var.
24076 (msdata=): Use Enum and Var.
24077 (m32r_sdata): New Enum and EnumValue entries.
24078
24079 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24080
24081 * config/m32c/m32c.c: Don't include opts.h.
24082 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24083 m32c_handle_option): Remove.
24084 (m32c_option_override): Check global_options_set.x_target_memregs
24085 instead of target_memregs_set.
24086 * config/m32c/m32c.h (target_memregs): Remove.
24087 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24088 variable.
24089
24090 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24091
24092 * config/iq2000/iq2000-opts.h: New.
24093 * config/iq2000/iq2000.c: Don't include opts.h.
24094 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24095 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24096 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24097 HeaderInclude entry.
24098 (iq2000_tune): New Variable entry.
24099 (march=): Add comment. Use Enum.
24100 (iq2000_arch): New Enum and EnumValue entries.
24101 (mcpu=): Use Enum and Var.
24102 (iq2000_tune): New Enum and EnumValue entries.
24103
24104 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24105
24106 * config/ia64/ia64-opts.h: New.
24107 * config/ia64/ia64.c (ia64_tune): Remove.
24108 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24109 here. Use error_at.
24110 (ia64_option_override): Handle deferred OPT_mfixed_range_.
24111 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24112 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24113 HeaderInclude entry.
24114 (ia64_tune): New Variable entry.
24115 (mfixed-range=): Use Defer and Var.
24116 (mtune=): Use Enum and Var.
24117 (ia64_tune): New Enum and EnumValue entries.
24118
24119 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24120
24121 * config/frv/frv-opts.h: New.
24122 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24123 frv-opts.h.
24124 (frv_cpu_type): Remove.
24125 * config/frv/frv.c: Don't include opts.h.
24126 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24127 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24128 (frv_cpu_type): New Variable entry.
24129 (frv_cpu): New Enum and EnumValue entries.
24130
24131 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24132
24133 * config/cris/cris.c (cris_handle_option): Access target_flags via
24134 opts pointer. Don't assert that global structures are in use.
24135 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24136 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24137
24138 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24139
24140 * config/bfin/bfin-opts.h: New.
24141 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24142 bfin_si_revision, bfin_workarounds): Remove.
24143 (bfin_cpus): Make static const.
24144 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24145 not bfin_lib_id_given.
24146 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24147 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24148 pointer. Use error_at. Don't assert that global structures are in use.
24149 * config/bfin/bfin.h: Include bfin-opts.h.
24150 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24151 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24152 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24153 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24154 entries.
24155
24156 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24157
24158 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24159 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24160 or -msoft-float here.
24161 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24162 -msoft-float and -mhard-float.
24163 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24164 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24165 msoft-float.
24166 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24167 -msoft-float.
24168 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24169 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24170 not mhard-float.
24171 (LIBGCC_SPEC): Don't handle -msoft-float.
24172 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24173 -mhard-float.
24174 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24175 msoft-float.
24176 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24177 -mfloat-abi=*, not -msoft-float and -mhard-float.
24178 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24179 -msoft-float.
24180 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24181 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24182 mhard-float and msoft-float.
24183 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24184 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24185 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24186 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24187 mhard-float.
24188 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24189 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24190 msoft-float.
24191 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24192 not mhard-float.
24193 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24194 not msoft-float.
24195
24196 2011-03-22 Richard Henderson <rth@redhat.com>
24197
24198 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24199 TARGET_ABI_WINDOWS_NT.
24200 (alpha_output_function_end_prologue): Likewise.
24201 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24202 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24203 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24204 (trap, *movsi_nt_vms): Likewise.
24205 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24206 (*tablejump_osf_nt_internal): Remove.
24207 * config/alpha/predicates.md (input_operand): Only test Pmode.
24208
24209 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24210
24211 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24212 via opts pointer. Use error_at. Don't assert that global
24213 structures are in use.
24214
24215 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24216
24217 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24218 (ix86_handle_option): Access ix86_isa_flags and
24219 ix86_isa_flags_explicit via opts pointer. Don't assert that
24220 global structures are in use.
24221 (ix86_function_specific_save, ix86_function_specific_restore):
24222 Update ix86_isa_flags_explicit field name.
24223 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24224 (ix86_isa_flags_explicit): Rename TargetSave entry to
24225 x_ix86_isa_flags_explicit.
24226
24227 2011-03-22 Richard Henderson <rth@redhat.com>
24228
24229 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24230 (alpha_option_override, direct_return): Likewise.
24231 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24232 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24233 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24234 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24235 (alpha_expand_epilogue, alpha_end_function): Likewise.
24236 (alpha_init_libfuncs): Likewise.
24237 (struct machine_function): Remove unicosmk members.
24238 (print_operand) ['t']: Remove.
24239 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24240 unicosmk_output_module_name, unicosmk_output_common,
24241 current_section_align, unicosmk_output_text_section_asm_op,
24242 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24243 unicosmk_section_type_flags, unicosmk_unique_section,
24244 unicosmk_asm_named_section, unicosmk_insert_attributes,
24245 unicosmk_output_align, unicosmk_defer_case_vector,
24246 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24247 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24248 unicosmk_output_ssib, unicosmk_add_call_info_word,
24249 unicosmk_extern_head, unicosmk_output_default_externs,
24250 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24251 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24252 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24253 * config/alpha/alpha-protos.h: Update.
24254 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24255 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24256 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24257 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24258 (*mulsi_se, mulvsi3): Likewise.
24259 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24260 (*divmodsi_internal, call, call_value, realign): Likewise.
24261 (moddi3, umoddi3): Likewise; remove duplicate expander.
24262 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24263 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24264 (*movdi_nofix): Remove r/U alternative.
24265 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24266 * config/alpha/constraints.md ("U"): Remove.
24267 * config/alpha/predicates.md (call_operand"): Don't test
24268 TARGET_ABI_UNICOSMK.
24269
24270 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24271
24272 * target.def (handle_option): Take gcc_options and
24273 cl_decoded_option pointers and location_t.
24274 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24275 * doc/tm.texi: Regenerate.
24276 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24277 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24278 * lto-opts.c (lto_reissue_options): Generate option structure for
24279 targetm.handle_option call.
24280 * opts.c (target_handle_option): Update call to
24281 targetm.handle_option. Remove assertions about values now passed
24282 down to hook.
24283 * targhooks.c (default_target_handle_option): New.
24284 * targhooks.h (default_target_handle_option): Declare.
24285 * config/alpha/alpha.c: Include opts.h.
24286 (alpha_handle_option): Update to new hook interface.
24287 * config/arm/arm.c: Include opts.h.
24288 (arm_handle_option): Update to new hook interface.
24289 * config/arm/t-arm (arm.o): Update dependencies.
24290 * config/bfin/bfin.c: Include opts.h.
24291 (bfin_handle_option): Update to new hook interface.
24292 * config/cris/cris.c: Include opts.h.
24293 (cris_handle_option): Update to new hook interface.
24294 * config/frv/frv.c: Include opts.h.
24295 (frv_handle_option): Update to new hook interface.
24296 * config/i386/i386.c: Include opts.h.
24297 (ix86_handle_option): Update to new hook interface.
24298 (ix86_valid_target_attribute_inner_p): Generate option structure
24299 for call to ix86_handle_option.
24300 * config/i386/t-i386 (i386.o): Update dependencies.
24301 * config/ia64/ia64.c: Include opts.h.
24302 (ia64_handle_option): Update to new hook interface.
24303 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24304 * config/iq2000/iq2000.c: Include opts.h.
24305 (iq2000_handle_option): Update to new hook interface.
24306 * config/m32c/m32c.c: Include opts.h.
24307 (m32c_handle_option): Update to new hook interface.
24308 * config/m32r/m32r.c: Include opts.h.
24309 (m32r_handle_option): Update to new hook interface.
24310 * config/m68k/m68k.c: Include opts.h.
24311 (m68k_handle_option): Update to new hook interface.
24312 * config/mep/mep.c: Include opts.h.
24313 (mep_handle_option): Update to new hook interface.
24314 * config/microblaze/microblaze.c: Include opts.h.
24315 (microblaze_handle_option): Update to new hook interface.
24316 * config/mips/mips.c: Include opts.h.
24317 (mips_handle_option): Update to new hook interface.
24318 * config/mn10300/mn10300.c: Include opts.h.
24319 (mn10300_handle_option): Update to new hook interface.
24320 * config/pa/pa.c: Include opts.h.
24321 (pa_handle_option): Update to new hook interface.
24322 * config/pdp11/pdp11.c: Include opts.h.
24323 (pdp11_handle_option): Update to new hook interface.
24324 * config/rs6000/rs6000.c: Include opts.h.
24325 (rs6000_handle_option): Update to new hook interface.
24326 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24327 * config/rx/rx.c: Include opts.h.
24328 (rx_handle_option): Update to new hook interface.
24329 * config/s390/s390.c: Include opts.h.
24330 (s390_handle_option): Update to new hook interface.
24331 * config/score/score.c: Include opts.h.
24332 (score_handle_option): Update to new hook interface.
24333 * config/sh/sh.c: Include opts.h.
24334 (sh_handle_option): Update to new hook interface.
24335 * config/sparc/sparc.c: Include opts.h.
24336 (sparc_handle_option): Update to new hook interface.
24337 * config/v850/v850.c: Include opts.h.
24338 (v850_handle_option): Update to new hook interface.
24339
24340 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24341
24342 * gcc.c (driver_unknown_option_callback): Only permit and save
24343 unknown -Wno- options.
24344 (driver_wrong_lang_callback): Save options directly instead of via
24345 driver_unknown_option_callback.
24346
24347 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24348
24349 * combine.c (simplify_set): Try harder to find the best CC mode when
24350 simplifying a nested COMPARE on the RHS.
24351
24352 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24353
24354 * config/alpha/gnu.h: Remove.
24355 * config/arc: Remove directory.
24356 * config/arm/netbsd.h: Remove.
24357 * config/arm/t-pe: Remove.
24358 * config/crx: Remove directory.
24359 * config/i386/netbsd.h: Remove.
24360 * config/m68hc11: Remove directory.
24361 * config/m68k/uclinux-oldabi.h: Remove.
24362 * config/mcore/mcore-pe.h: Remove.
24363 * config/mcore/t-mcore-pe: Remove.
24364 * config/netbsd-aout.h: Remove.
24365 * config/rs6000/gnu.h: Remove.
24366 * config/sh/sh-symbian.h: Remove.
24367 * config/sh/symbian-base.c: Remove.
24368 * config/sh/symbian-c.c: Remove.
24369 * config/sh/symbian-cxx.c: Remove.
24370 * config/sh/symbian-post.h: Remove.
24371 * config/sh/symbian-pre.h: Remove.
24372 * config/sh/t-symbian: Remove.
24373 * config/svr3.h: Remove.
24374 * config/vax/netbsd.h: Remove.
24375 * config.build: Don't handle i[34567]86-*-pe.
24376 * config.gcc: Remove handling of deprecations for most deprecated
24377 targets.
24378 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24379 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24380 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24381 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24382 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24383 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24384 Remove cases.
24385 * config.host: Don't handle i[34567]86-*-pe.
24386 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24387 (ASM_SPEC32): Don't handle -mcall-gnu.
24388 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24389 -mcall-gnu.
24390 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24391 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24392 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24393 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24394 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24395 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24396 conditional on SYMBIAN.
24397 * configure.ac: Don't handle powerpc*-*-gnu*.
24398 * configure: Regenerate.
24399 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24400 * doc/install-old.texi (m6811, m6812): Don't mention.
24401 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24402 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24403 (m68k-uclinuxoldabi): Don't mention.
24404 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24405 Remove.
24406 (-mcall-gnu): Remove.
24407 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24408 families): Remove constraint documentation.
24409
24410 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24411
24412 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24413 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24414 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24415
24416 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24417
24418 PR target/48226
24419 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24420 vector when peeking at the next token for vector, don't expand the
24421 keywords.
24422
24423 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24424
24425 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24426 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24427 * config/avr/avr.c (init_cumulative_args)
24428 (avr_function_arg_advance): Use it.
24429 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24430 sibcall epilogues.
24431 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24432 (avr_function_ok_for_sibcall): ...this new function.
24433 (avr_lookup_function_attribute1): New static Function.
24434 (avr_naked_function_p, interrupt_function_p)
24435 (signal_function_p, avr_OS_task_function_p)
24436 (avr_OS_main_function_p): Use it.
24437 * config/avr/avr.md ("sibcall", "sibcall_value")
24438 ("sibcall_epilogue"): New expander.
24439 ("*call_insn", "*call_value_insn"): New insn.
24440 ("call_insn", "call_value_insn"): Remove
24441 ("call", "call_value", "epilogue"): Change expander to handle
24442 sibling calls.
24443
24444 2011-03-21 Nick Clifton <nickc@redhat.com>
24445
24446 * doc/invoke.texi (Overall Options): Move closing brace to end of
24447 options list.
24448 (Optimization Options): Add missing @gol.
24449 (Directory Options): Likewise.
24450 (i386 and x86-64 Options): Likewise.
24451 (RS6000 and PowerPC Options): Likewise.
24452 (i386 and x86-64 Windows Options): Likewise.
24453 (V850 Options): Add text missing from descriptions.
24454
24455 2011-03-22 Richard Henderson <rth@redhat.com>
24456
24457 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24458 (avr_incoming_return_addr_rtx): New.
24459 (emit_push_byte): New.
24460 (expand_prologue): Use it. Remove incorrect dwarf annotation for
24461 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
24462 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
24463 (emit_pop_byte): New.
24464 (expand_epilogue): Use it. Pop frame pointer by bytes.
24465 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24466 (INCOMING_RETURN_ADDR_RTX): New.
24467 (INCOMING_FRAME_SP_OFFSET): New.
24468 (ARG_POINTER_CFA_OFFSET): New.
24469 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24470 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24471 (pophi): Remove.
24472
24473 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24474
24475 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24476
24477 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24478 (FUNCTION_ARG_ADVANCE): Likewise.
24479 * tm.texi.in: Change references to them to hook references.
24480 * tm.texi: Regenerate.
24481 * targhooks.c (default_function_arg): Eliminate check for target
24482 macro.
24483 (default_function_incoming_arg): Likewise.
24484 (default_function_arg_advance): Likewise.
24485 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24486 (function_arg_advance): Likewise.
24487 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24488
24489 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24490
24491 * tree.c (build_call_1): New function.
24492 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24493
24494 2011-03-22 Richard Guenther <rguenther@suse.de>
24495
24496 PR tree-optimization/48228
24497 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24498 for single-arg PHIs.
24499
24500 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
24501
24502 PR rtl-optimization/48143
24503 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24504 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24505 sse2_cvtps2pd): Likewise.
24506
24507 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24508
24509 * recog.c (canonicalize_change_group): Use validate_unshare_change.
24510
24511 2011-03-22 Richard Guenther <rguenther@suse.de>
24512
24513 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24514 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24515 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24516 and REALIGN_LOAD_EXPR.
24517 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24518 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24519 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24520 DOT_PROD_EXPR case ...
24521 (expand_expr_real_2): ... here.
24522 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24523 and REALIGN_LOAD_EXPR.
24524 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24525 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24526 (vect_create_epilog_for_reduction): Likewise.
24527 (vectorizable_reduction): Likewise.
24528 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24529 * tree-vect-stmts.c (vectorizable_load): Likewise.
24530
24531 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24532
24533 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24534
24535 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24536
24537 * config/s390/s390.c (s390_delegitimize_address): Fix offset
24538 handling for PLTOFF/GOTOFF.
24539
24540 2011-03-22 Nick Clifton <nickc@redhat.com>
24541
24542 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24543 trailing backslash from the end of the macro definition.
24544
24545 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24546
24547 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24548 and PLT unspecs.
24549
24550 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
24551
24552 * expr.h (prepare_operand): Move to...
24553 * optabs.h (prepare_operand): ...here and change the insn code
24554 parameter from "int" to "enum insn_code".
24555 (insn_operand_matches): Declare.
24556 * expr.c (init_expr_target): Use insn_operand_matches.
24557 (compress_float_constant): Likewise.
24558 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24559 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24560 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24561 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24562 Likewise.
24563 (gen_cond_trap): Likewise.
24564 (prepare_operand): Likewise. Change icode to an insn_code.
24565 (insn_operand_matches): New function.
24566 * reload.c (find_reloads_address_1): Use insn_operand_matches.
24567 * reload1.c (gen_reload): Likewise.
24568 * targhooks.c (default_secondary_reload): Likewise.
24569
24570 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24571
24572 * config/alpha/alpha.md (unspec): New define_c_enum.
24573 (unspecv): Ditto.
24574
24575 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24576
24577 PR debug/48214
24578 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24579 between a call and its CALL_ARG_LOCATION note.
24580
24581 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
24582
24583 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24584
24585 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24586
24587 PR c/42544
24588 PR c/48197
24589 * c-common.c (shorten_compare): If primopN is first sign-extended
24590 to opN and then zero-extended to result type, set primopN to opN.
24591
24592 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
24593
24594 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24595 for barrier handlers.
24596
24597 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24598
24599 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24600 UNSPEC constants to be in the unspec enumeration, and redefine
24601 all UNSPECV constants to be in the unspecv enumeration, so that
24602 dumps print which unspec/unspec_volatile this is.
24603 * config/rs6000/vector.md (UNSPEC_*): Ditto.
24604 * config/rs6000/paired.md (UNSPEC_*): Ditto.
24605 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24606 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24607 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24608
24609 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24610 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24611 UNSPECV_LWSYNC, since these are used as unspec_volatile.
24612 * config/rs6000/sync.md (isync, lwsync): Ditto.
24613
24614 2011-03-21 Richard Guenther <rguenther@suse.de>
24615
24616 * params.def (lto-min-partition): Fix typo.
24617
24618 2011-03-21 Richard Guenther <rguenther@suse.de>
24619
24620 PR c/47939
24621 * c-decl.c (grokdeclarator): Drop to the main variant only
24622 for array types. Drop flag_gen_aux_info check.
24623
24624 2011-03-21 Richard Guenther <rguenther@suse.de>
24625
24626 PR translation/47911
24627 * params.def (lto-partitions): Fix typo.
24628 (lto-min-partition): Fix wording.
24629
24630 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
24631
24632 * config/rs6000/t-freebsd: Remove duplication from file.
24633
24634 2011-03-21 Richard Guenther <rguenther@suse.de>
24635
24636 PR middle-end/47661
24637 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24638
24639 2011-03-21 Richard Guenther <rguenther@suse.de>
24640
24641 PR lto/48210
24642 * params.def (lto-partitions): Require at least 1 partition.
24643
24644 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24645
24646 * gthr-solaris.h: Remove.
24647 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24648 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24649 (LIB_SPEC): Likewise.
24650 * config/sol2.opt (threads): Remove.
24651 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24652 (sparc*-*-solaris2*): Likewise.
24653 * configure.ac (enable_threads): Enable solaris support.
24654 * configure: Regenerate.
24655 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24656 * doc/install.texi (Configuration, --enable-threads=lib): Remove
24657 solaris.
24658
24659 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24660
24661 * config.gcc: Obsolete *-*-solaris2.8*.
24662 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24663
24664 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24665
24666 PR bootstrap/48135
24667 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24668 reference. Solaris 8 perl works.
24669
24670 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24671
24672 PR bootstrap/48135
24673 * doc/install.texi (Prerequisites): Move jar etc. up.
24674 Explain support library version requirements.
24675
24676 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24677
24678 PR bootstrap/48135
24679 * doc/install.texi (Prerequisites): Move Perl to build
24680 requirements. Always necessary on Solaris 2 with Sun ld.
24681
24682 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24683
24684 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24685 binutils 2.21.
24686 (Specific, i?86-*-solaris2.[89]): Likewise.
24687 (Specific, i?86-*-solaris2.10): Likewise.
24688 (Specific, mips-sgi-irix6): Likewise.
24689 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24690 Update for binutils 2.21.
24691
24692 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24693
24694 * configure.ac (gcc_cv_lto_plugin): Fix typo.
24695 Allow -fuse-linker-plugin for non-default plugin linker.
24696 * configure: Regenerate.
24697
24698 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
24699
24700 PR bootstrap/48167
24701 * gengtype.c (files_rules): Added rule for cp/parser.h.
24702
24703 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24704
24705 PR target/48213
24706 * config/s390/s390.c (s390_delegitimize_address): Don't call
24707 lowpart_subreg if orig_x has BLKmode.
24708
24709 2011-03-21 Kai Tietz <ktietz@redhat.com>
24710
24711 PR target/12171
24712 * doc/plugins.texi: Adjust documentation for plugin register_callback.
24713 * tree.h (attribute_spec): Add new member affects_type_identity.
24714 * attribs.c (empty_attribute_table): Adjust attribute_spec
24715 initializers.
24716 * config/alpha/alpha.c: Likewise.
24717 * config/arc/arc.c: Likewise.
24718 * config/arm/arm.c: Likewise.
24719 * config/avr/avr.c: Likewise.
24720 * config/bfin/bfin.c: Likewise.
24721 * config/crx/crx.c: Likewise.
24722 * config/darwin.h: Likewise.
24723 * config/h8300/h8300.c: Likewise.
24724 * config/i386/cygming.h: Likewise.
24725 * config/i386/i386.c: Likewise.
24726 * config/ia64/ia64.c: Likewise.
24727 * config/m32c/m32c.c: Likewise.
24728 * config/m32r/m32r.c: Likewise.
24729 * config/m68hc11/m68hc11.c: Likewise.
24730 * config/m68k/m68k.c: Likewise.
24731 * config/mcore/mcore.c: Likewise.
24732 * config/mep/mep.c: Likewise.
24733 * config/microblaze/microblaze.c: Likewise.
24734 * config/mips/mips.c: Likewise.
24735 * config/rs6000/rs6000.c: Likewise.
24736 * config/rx/rx.c: Likewise.
24737 * config/sh/sh.c: Likewise.
24738 * config/sol2.h: Likewise.
24739 * config/sparc/sparc.c: Likewise.
24740 * config/spu/spu.c: Likewise.
24741 * config/stormy16/stormy16.c: Likewise.
24742 * config/v850/v850.c: Likewise.
24743
24744 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
24745
24746 * simplify-rtx.c (simplify_binary_operation_1): Handle
24747 (xor (and A B) C) case when B and C are both constants.
24748
24749 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
24750
24751 * tree-dfa.c (add_referenced_var): Fix typo in comment.
24752
24753 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
24754
24755 PR bootstrap/48168
24756 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24757
24758 2011-03-20 Jakub Jelinek <jakub@redhat.com>
24759
24760 PR rtl-optimization/48156
24761 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24762 assume df and df_lr are not NULL.
24763
24764 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24765
24766 PR debug/48023
24767 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24768 between a call and its CALL_ARG_LOCATION note.
24769
24770 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24771
24772 PR debug/48178
24773 * config/sh/sh.c (find_barrier): Don't emit a constant pool
24774 between a call and its corresponding CALL_ARG_LOCATION note.
24775
24776 2011-03-19 Anatoly Sokolov <aesok@post.ru>
24777
24778 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24779 instead of loop. Use HARD_REGISTER_NUM_P predicate.
24780 * haifa-sched.c (setup_ref_regs): Ditto.
24781 * caller-save.c (add_used_regs_1): Ditto.
24782 * dse.c (look_for_hardregs): Ditto.
24783 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24784 * sched-rgn.c (check_live_1): Ditto.
24785
24786 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24787
24788 * c-decl.c (diagnose_mismatched_decls): Give an error for
24789 redefining a typedef with variably modified type.
24790
24791 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24792
24793 * c-decl.c (grokfield): Don't allow typedefs for structures or
24794 unions with no tag by default.
24795 * doc/extend.texi (Unnamed Fields): Update.
24796
24797 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
24798
24799 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24800 Rewrite using indirect functions.
24801 (lwp_slwpcb): Ditto.
24802 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24803 (avx_vinsertf128<mode>): Ditto.
24804
24805 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24806
24807 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24808 unspecs.
24809
24810 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24811
24812 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24813 splitting between a call and its corresponding CALL_ARG_LOCATION note.
24814
24815 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
24816
24817 PR rtl-optimization/48170
24818 * gcse.c (hoist_code): Remove bogus asserts.
24819
24820 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
24821
24822 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24823 computation for prologue/epilogue.
24824
24825 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24826
24827 * Makefile.in (check-consistency): Remove.
24828
24829 2011-03-18 Jakub Jelinek <jakub@redhat.com>
24830
24831 PR debug/48176
24832 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24833 arange_table_in_use is 0, but either text_section_used or
24834 cold_text_section_used is true. Don't call it if
24835 !info_section_emitted.
24836
24837 2011-03-18 Anatoly Sokolov <aesok@post.ru>
24838
24839 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24840 FUNCTION_VALUE_REGNO_P): Remove.
24841 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24842 Remove.
24843 * config/avr/avr.c (avr_ret_register): Make static inline.
24844 (avr_function_value_regno_p): New function.
24845 (avr_libcall_value): Make static. Add 'func' argument.
24846 (avr_function_value): Make static. Rename 'func' argument to
24847 'fn_decl_or_type', forward it to avr_libcall_value. Call
24848 avr_ret_register function instead of RET_REGISTER macro.
24849 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24850
24851 2011-03-18 Jason Merrill <jason@redhat.com>
24852
24853 PR c++/23372
24854 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24855
24856 2011-03-18 Richard Guenther <rguenther@suse.de>
24857
24858 * doc/install.texi (--enable-gold): Remove.
24859 (--with-plugin-ld): Document.
24860 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24861
24862 2011-03-18 Andrew Pinski <pinskia@gmail.com>
24863
24864 PR middle-end/47790
24865 * expr.c (optimize_bitfield_assignment_op): Revamp to work
24866 again after expansion changes.
24867
24868 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
24869
24870 * combine.c (try_combine): Do simplification only call of
24871 subst() on i2 even when i1 is present. Update comments.
24872
24873 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
24874
24875 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24876 and UNSPEC_PCREL_SYMOFF.
24877
24878 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24879
24880 * config/s390/s390.md: Use define_c_enum for the unspec constant
24881 definitions.
24882
24883 2011-03-18 Richard Henderson <rth@redhat.com>
24884 Jakub Jelinek <jakub@redhat.com>
24885
24886 PR bootstrap/48161
24887 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24888 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24889
24890 2011-03-17 Anatoly Sokolov <aesok@post.ru>
24891
24892 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24893 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24894 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24895 Change return type to bool.
24896 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24897
24898 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24899
24900 PR debug/48163
24901 * var-tracking.c (prepare_call_arguments): If CALL target
24902 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24903 pc instead of looking it up using cselib_lookup and use
24904 Pmode for it if x has VOIDmode.
24905 * dwarf2out.c (gen_subprogram_die): If also both first and
24906 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24907
24908 PR debug/48163
24909 * function.c (assign_parms): For data.passed_pointer parms
24910 use MEM of data.entry_parm instead of data.entry_parm itself
24911 as DECL_INCOMING_RTL.
24912 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24913 also when passed and declared mode is the same, DECL_RTL
24914 is a MEM with pseudo as address and DECL_INCOMING_RTL is
24915 a MEM too.
24916
24917 2011-03-16 Jeff Law <law@redhat.com>
24918
24919 PR rtl-optimization/37273
24920 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24921 handle them like argument loads from stack slots. Do not double
24922 count memory for memory constants and argument loads from stack slots.
24923
24924 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24925
24926 PR debug/48160
24927 * var-tracking.c (prepare_call_arguments): Check SUBREG.
24928
24929 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24930
24931 PR target/48171
24932 * config/i386/i386.opt: Add Save to -mavx and -mfma.
24933
24934 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24935
24936 PR bootstrap/48153
24937 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24938 if dwarf_strict.
24939 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24940 Clear call_arg_locations and call_arg_loc_last always.
24941
24942 PR middle-end/48152
24943 * var-tracking.c (prepare_call_arguments): If argument needs to be
24944 passed by reference, adjust argtype and mode.
24945
24946 2011-03-17 Richard Guenther <rguenther@suse.de>
24947
24948 PR middle-end/48134
24949 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24950 a value make sure to fold the statement.
24951
24952 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
24953
24954 PR target/43872
24955 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24956 return condition with !cfun->calls_alloca.
24957
24958 2011-03-17 Richard Guenther <rguenther@suse.de>
24959
24960 PR bootstrap/48148
24961 * lto-cgraph.c (input_overwrite_node): Clear the abstract
24962 origin for decls in other ltrans units.
24963 (input_varpool_node): Likewise.
24964
24965 2011-03-17 Richard Guenther <rguenther@suse.de>
24966
24967 PR middle-end/48165
24968 * tree-object-size.c (compute_object_offset): Properly return
24969 the offset operand of MEM_REFs as sizetype.
24970
24971 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24972
24973 PR rtl-optimization/48141
24974 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24975 * dse.c: Include params.h.
24976 (active_local_stores_len): New variable.
24977 (add_wild_read, dse_step1): Clear it when setting active_local_stores
24978 to NULL.
24979 (record_store, check_mem_read_rtx): Decrease it when removing
24980 from the chain.
24981 (scan_insn): Likewise. Increase it when adding to chain, if it
24982 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24983 set active_local_stores to NULL before the addition.
24984 * Makefile.in (dse.o): Depend on $(PARAMS_H).
24985
24986 PR rtl-optimization/48141
24987 * dse.c (record_store): If no positions are needed in an insn
24988 that cannot be deleted, at least unchain it from active_local_stores.
24989
24990 2011-03-16 Dodji Seketeli <dodji@redhat.com>
24991
24992 PR debug/47510
24993 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24994 (lookup_type_die_strip_naming_typedef): ... here.
24995 (get_context_die): Use it.
24996 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24997 the anonymous struct named by the naming typedef.
24998
24999 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
25000
25001 PR target/48154
25002 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25003 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25004
25005 2011-03-16 Jeff Law <law@redhat.com>
25006
25007 * tree-vrp.c (identify_jump_threads): Slightly simplify type
25008 check for operands of conditional. Allow type to be a pointer.
25009
25010 2011-03-16 Richard Guenther <rguenther@suse.de>
25011
25012 PR tree-optimization/48149
25013 * fold-const.c (fold_binary_loc): Fold
25014 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25015
25016 2011-03-16 Richard Guenther <rguenther@suse.de>
25017
25018 PR tree-optimization/26134
25019 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25020 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25021 (non_rewritable_mem_ref_base): Handle complex type component
25022 accesses, constrain offsets for vector and complex extracts
25023 more properly.
25024
25025 2011-03-16 Richard Guenther <rguenther@suse.de>
25026
25027 PR tree-optimization/48146
25028 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25029 operands avoiding the need for renaming.
25030
25031 2011-03-16 Richard Guenther <rguenther@suse.de>
25032
25033 * gimple-fold.c (maybe_fold_reference): Open-code relevant
25034 constant folding. Move MEM_REF canonicalization first.
25035 Rely on fold_const_aggregate_ref for initializer folding.
25036 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25037
25038 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25039
25040 PR middle-end/48136
25041 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25042 arg0/arg1 or their arguments are always fold converted to matching
25043 types.
25044
25045 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25046 to nargs.
25047
25048 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25049
25050 PR lto/46944
25051 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25052 Handle in-tree gold.
25053 (ld_vers): Extract binutils version for gold.
25054 (gcc_cv_ld_hidden): Handle gold here.
25055 (gcc_cv_lto_plugin): Determine level of linker plugin support.
25056 * configure: Regenerate.
25057 * config.in: Regenerate.
25058 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25059 -fuse-linker-plugin otherwise.
25060 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
25061 (LINK_COMMAND_SPEC): Use it.
25062 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25063
25064 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25065
25066 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25067 * calls.c: Remove debug.h include.
25068 (emit_call_1): Don't call virtual_call_token debug hook.
25069 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25070 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25071 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25072 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25073 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25074 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25075 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25076 dwarf2out_virtual_call): Remove.
25077 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25078 copy_call_info and virtual_call hooks.
25079 (dwarf2out_init): Don't initialize vcall_insn_table,
25080 debug_dcall_section and debug_vcall_section.
25081 (prune_unused_types): Don't mark nodes from dcall_table.
25082 (dwarf2out_finish): Don't output dcall or vcall tables.
25083 * final.c (final_scan_insn): Don't call direct_call or
25084 virtual_call debug hooks.
25085 * debug.h (struct gcc_debug_hooks): Remove direct_call,
25086 virtual_call_token, copy_call_info and virtual_call hooks.
25087 (debug_nothing_uid): Remove prototype.
25088 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25089 copy_call_info and virtual_call hooks.
25090 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25091 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25092 * debug.c (do_nothing_debug_hooks): Likewise.
25093 (debug_nothing_uid): Remove.
25094 * doc/invoke.texi (-fenable-icf-debug): Remove.
25095 * common.opt (-fenable-icf-debug): Likewise.
25096
25097 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25098 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25099 call's MEM. Handle functions returning aggregate through a hidden
25100 first pointer. For virtual calls add clobbered pc to call arguments
25101 chain.
25102 * dwarf2out.c (gen_subprogram_die): Emit
25103 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25104 can't be emitted.
25105
25106 PR debug/45882
25107 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25108 * rtl.h (ENTRY_VALUE_EXP): Define.
25109 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25110 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25111 * print-rtl.c (print_rtx): Likewise.
25112 * gengtype.c (adjust_field_rtx_def): Likewise.
25113 * var-tracking.c (vt_add_function_parameter): Adjust
25114 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25115 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25116 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25117 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25118 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25119
25120 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25121 Call var_location debug hook even on CALL_INSNs.
25122 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25123 * rtl.def (ENTRY_VALUE): New.
25124 * dwarf2out.c: Include cfglayout.h.
25125 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25126 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25127 (struct call_arg_loc_node): New type.
25128 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25129 tail_call_site_count): New variables.
25130 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25131 DW_TAG_GNU_call_site_parameter.
25132 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25133 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25134 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25135 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25136 and DW_AT_GNU_all_source_call_sites.
25137 (mem_loc_descriptor): Handle ENTRY_VALUE.
25138 (add_src_coords_attributes): Don't add enything if
25139 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25140 (dwarf2out_abstract_function): Save and clear call_arg_location,
25141 call_site_count and tail_call_site_count around dwarf2out_decl call.
25142 (gen_call_site_die): New function.
25143 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25144 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25145 (dwarf2out_function_decl): Clear call_arg_locations,
25146 call_arg_loc_last, set call_site_count and tail_call_site_count
25147 to -1 and free block_map.
25148 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25149 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25150 followed by any real instructions.
25151 (dwarf2out_begin_function): Set call_site_count and
25152 tail_call_site_count to 0.
25153 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25154 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25155 attempt to force a DIE for it and worst case remove the attribute.
25156 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25157 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25158 the decl itself.
25159 * var-tracking.c: Include tm_p.h.
25160 (vt_stack_adjustments): For calls call note_register_arguments.
25161 (argument_reg_set): New variable.
25162 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25163 ensure the VALUE is resolved.
25164 (call_arguments): New variable.
25165 (prepare_call_arguments): New function.
25166 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25167 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25168 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25169 always use the best expression.
25170 (vt_expand_loc): Add ignore_cur_loc argument.
25171 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25172 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25173 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25174 note for all calls.
25175 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25176 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25177 argument. Don't call cselib_preserve_only_values and
25178 cselib_reset_table.
25179 (note_register_arguments): New function.
25180 (vt_initialize): Compute argument_reg_set. Call
25181 vt_add_function_parameters before processing basic blocks instead of
25182 afterwards. For calls call prepare_call_arguments before calling
25183 cselib_process_insn.
25184 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25185 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25186 (var-tracking.o): Depend on $(TM_P_H).
25187 * cfglayout.h (insn_scope): New prototype.
25188 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25189 * cfglayout.c (insn_scope): No longer static.
25190 * insn-notes.def (CALL_ARG_LOCATION): New.
25191 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25192 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25193 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25194 nothing for DECL_EXTERNAL BLOCK_VARS.
25195
25196 2011-03-16 Alan Modra <amodra@gmail.com>
25197
25198 PR target/45844
25199 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25200 create invalid offset address for vsx splat insn.
25201 * config/rs6000/predicates.md (splat_input_operand): New.
25202 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25203
25204 2011-03-15 Xinliang David Li <davidxl@google.com>
25205
25206 PR c/47837
25207 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25208 (normalize_preds): New function.
25209 (is_use_properly_guarded): Normalize def predicates.
25210
25211 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25212
25213 PR target/46788
25214 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25215 in the output template.
25216
25217 2011-03-15 Richard Guenther <rguenther@suse.de>
25218
25219 PR middle-end/47650
25220 * tree-pretty-print.c (dump_function_declaration): Properly
25221 dump unprototyped and varargs function types.
25222
25223 2011-03-15 Richard Guenther <rguenther@suse.de>
25224
25225 PR tree-optimization/13954
25226 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25227 and friends.
25228
25229 2011-03-15 Richard Guenther <rguenther@suse.de>
25230
25231 PR tree-optimization/48037
25232 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25233 selects into BIT_FIELD_REFs.
25234 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25235 vector select.
25236
25237 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25238
25239 PR tree-optimization/48129
25240 * builtins.c (fold_builtin_snprintf): Convert to type of
25241 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25242 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25243
25244 2011-03-15 Richard Guenther <rguenther@suse.de>
25245
25246 PR tree-optimization/41490
25247 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25248 value but with VUSE.
25249 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25250 return statements.
25251 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25252 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25253 * tree-tailcall.c (find_tail_calls): Ignore returns.
25254
25255 2011-03-15 Richard Guenther <rguenther@suse.de>
25256
25257 PR middle-end/48031
25258 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25259 or variable-indexed array accesses when in gimple form.
25260
25261 2011-03-15 Richard Guenther <rguenther@suse.de>
25262
25263 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25264
25265 2011-03-15 Alan Modra <amodra@gmail.com>
25266
25267 PR target/48032
25268 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25269 presume symbol_refs without a symbol_ref_decl are suitably
25270 aligned, nor other trees we may see here. Handle anchor symbols.
25271 (legitimate_constant_pool_address_p): Comment. Add mode param.
25272 Check cmodel=medium addresses. Adjust all calls.
25273 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25274 creating cmodel=medium optimized access to locals.
25275 * config/rs6000/constraints.md (R): Pass QImode to
25276 legitimate_constant_pool_address_p.
25277 * config/rs6000/predicates.md (input_operand): Pass mode to
25278 legitimate_constant_pool_address_p.
25279 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25280 Update prototype.
25281
25282 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25283
25284 PR target/48053
25285 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25286 64-bit constants being loaded into registers other than GPRs such
25287 as loading 0 into a VSX register.
25288
25289 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25290
25291 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25292
25293 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25294
25295 PR middle-end/47917
25296 * builtins.c (fold_builtin_snprintf): New function.
25297 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25298 (fold_builtin_4): Likewise.
25299
25300 PR middle-end/38878
25301 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25302 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25303 and C - X == X also strip nops from +/-/p+ operand.
25304 When optimizing -X == C, fold C to arg0's type.
25305
25306 PR debug/47946
25307 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25308 emit it as add_AT_int instead of add_AT_unsigned.
25309
25310 2011-03-14 Tom Tromey <tromey@redhat.com>
25311
25312 * unwind-dw2.c: Include sys/sdt.h if it exists.
25313 (_Unwind_DebugHook): Use STAP_PROBE2.
25314 * config.in, configure: Rebuild.
25315 * configure.ac: Check for sys/sdt.h.
25316
25317 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25318
25319 * config/i386/i386.md (ROUND_FLOOR): New constant.
25320 (ROUND_CEIL): Ditto.
25321 (ROUND_TRUNC): Ditto.
25322 (ROUND_MXCSR): Ditto.
25323 (ROUND_NO_EXC): Ditto.
25324 (rint<mode>2): Use new defines instead of numerical constants.
25325 (floor<mode>2): Ditto.
25326 (ceil<mode>2): Ditto.
25327 (btrunc<mode>2): Ditto.
25328 * config/i386/i386-builtin-types.def: Define ROUND function type
25329 aliases.
25330 * config/i386/i386.c (enum ix86_builtins): Add
25331 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25332 (struct builtin_description): Add
25333 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25334 (ix86_expand_sse_round): New static function.
25335 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25336 function types.
25337 (ix86_builtin_vectorized_function): Handle
25338 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25339
25340 2011-03-14 Tom Tromey <tromey@redhat.com>
25341
25342 * c-parser.c (c_parser_asm_string_literal): Clear
25343 warn_overlength_strings.
25344
25345 2011-03-14 Tom Tromey <tromey@redhat.com>
25346
25347 * c-parser.c (disable_extension_diagnostics): Save
25348 warn_overlength_strings.
25349 (restore_extension_diagnostics): Restore warn_overlength_strings.
25350
25351 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25352
25353 * BASE-VER: Change to 4.7.0.
25354
25355 2011-03-14 Richard Guenther <rguenther@suse.de>
25356
25357 PR middle-end/48098
25358 * tree.c (build_vector_from_val): Adjust assert to requirements
25359 and reality.
25360
25361 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25362
25363 PR bootstrap/48102
25364 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25365
25366 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25367
25368 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25369 terms of target_flags_explicit. Adjust copyright year.
25370
25371 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25372 * config/rs6000/t-freebsd: New file. Add override for
25373 LIB2FUNCS_EXTRA.
25374
25375 2011-03-13 Chris Demetriou <cgd@google.com>
25376
25377 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25378 (-fno-diagnostics-show-option): this, to reflect current default.
25379 (-Werror=): Update text about -fno-diagnostics-show-option.
25380
25381 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25382
25383 PR target/48053
25384 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25385 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25386 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25387 mode is not V2DImode or V2DFmode.
25388 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25389 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25390 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25391 registers to 0.
25392 (movdi_internal64): Likewise.
25393
25394 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25395
25396 PR tree-optimization/47127
25397 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25398 parameter.
25399 (set_cloog_options): Same.
25400 (scop_to_clast): Same.
25401 (print_clast_stmt): Do not call cloog_state_malloc and
25402 cloog_state_free.
25403 (print_generated_program): Same.
25404 (gloog): Same.
25405 * graphite-clast-to-gimple.h (cloog_state): Declared.
25406 (scop_to_clast): Adjust declaration.
25407 * graphite.c (cloog_state): Defined here.
25408 (graphite_initialize): Call cloog_state_malloc.
25409 (graphite_finalize): Call cloog_state_free.
25410
25411 2011-03-11 Jason Merrill <jason@redhat.com>
25412
25413 * attribs.c (lookup_attribute_spec): Take const_tree.
25414 * tree.h: Adjust.
25415
25416 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25417
25418 * config/sparc/sparc.c (sparc_option_override): Use
25419 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25420
25421 2011-03-11 Richard Guenther <rguenther@suse.de>
25422
25423 PR tree-optimization/48067
25424 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25425 multiplication result will be only used once on the target
25426 stmt.
25427
25428 2011-03-11 Richard Guenther <rguenther@suse.de>
25429
25430 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25431
25432 2011-03-11 Richard Guenther <rguenther@suse.de>
25433
25434 PR lto/48073
25435 * tree.c (find_decls_types_r): Do not walk types only reachable
25436 from IDENTIFIER_NODEs.
25437
25438 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25439
25440 PR middle-end/48044
25441 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25442 all vnode->force_output nodes as needed.
25443
25444 2011-03-11 Jason Merrill <jason@redhat.com>
25445
25446 PR c++/48069
25447 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25448 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25449
25450 2011-03-11 Martin Jambor <mjambor@suse.cz>
25451
25452 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25453 cgraph_node.
25454
25455 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25456
25457 PR tree-optimization/48063
25458 * ipa-inline.c (cgraph_decide_inlining): Don't try to
25459 inline functions called once if !tree_can_inline_p (node->callers).
25460
25461 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
25462
25463 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25464 extra_objs.
25465 * config/score/score3.c: Delete.
25466 * config/score/score3.h: Delete.
25467 * config/score/mul-div.S: Delete.
25468 * config/score/sfp-machine.h: Add new file.
25469 * config/score/constraints.md: Add new file.
25470 * config/score/t-score-softfp: Add new file.
25471 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25472 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25473 (score7_extra_constraint): Delete.
25474 (score7_option_override): Remove unused code.
25475 * config/score/score.c: Remove score3 and score5 define and code.
25476 * config/score/score.h: Remove score3 and score5 define and code.
25477 * config/score/score.md: Remove score3 template and unusual insn.
25478 * config/score/score.opt: Remove score3 and score5 options.
25479
25480 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25481
25482 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25483 when _HPUX_SOURCE is defined.
25484 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25485
25486 2011-03-10 Jason Merrill <jason@redhat.com>
25487
25488 PR c++/48029
25489 * stor-layout.c (layout_type): Don't set structural equality
25490 on arrays of incomplete type.
25491 * tree.c (type_hash_eq): Handle comparing them properly.
25492
25493 2011-03-10 Jakub Jelinek <jakub@redhat.com>
25494
25495 PR debug/48043
25496 * config/s390/s390.c (s390_delegitimize_address): Make sure the
25497 result mode matches original rtl mode.
25498
25499 2011-03-10 Nick Clifton <nickc@redhat.com>
25500
25501 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25502 (andsi3, andsi3_flags): Fix timings for three operand alternative.
25503
25504 2011-03-09 Jakub Jelinek <jakub@redhat.com>
25505
25506 PR rtl-optimization/47866
25507 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25508 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25509 if target wasn't scalar.
25510 * function.c (assign_stack_temp_for_type): Assert that neither
25511 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25512 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25513 macro.
25514 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25515
25516 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25517
25518 * config/s390/s390-protos.h (s390_label_align): New prototype.
25519 * config/s390/s390.c (s390_label_align): New function.
25520 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25521
25522 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
25523
25524 PR target/47755
25525 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25526 V2DI/V2DF constants. Only all 0's or all 1's are easy.
25527 (output_vec_const_move): Ditto.
25528
25529 2011-03-08 Anatoly Sokolov <aesok@post.ru>
25530
25531 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25532 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25533 * config/mips/mips.c (mips_preferred_reload_class): Make static.
25534 Change 'rclass' argument and result type to reg_class_t.
25535 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25536
25537 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
25538
25539 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25540 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25541 (TARGET_MEMORY_MOVE_COST): Define.
25542 (avr_register_move_cost, avr_memory_move_cost): New Functions.
25543
25544 2011-03-08 Jakub Jelinek <jakub@redhat.com>
25545
25546 PR debug/47881
25547 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25548 removed anything.
25549
25550 PR tree-optimization/48022
25551 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25552 for EQ/NE_EXPR.
25553
25554 2011-03-07 Jakub Jelinek <jakub@redhat.com>
25555
25556 PR debug/47991
25557 * var-tracking.c (find_use_val): Return NULL for
25558 cui->sets && cui->store_p BLKmode MEMs.
25559
25560 2011-03-07 Anatoly Sokolov <aesok@post.ru>
25561
25562 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25563 Remove.
25564 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25565 xstormy16_print_operand_address): Remove.
25566 * config/stormy16/stormy16.c (xstormy16_print_operand,
25567 xstormy16_print_operand_address): Make static.
25568 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25569
25570 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
25571
25572 PR target/47862
25573 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25574 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25575 before definition.
25576
25577 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
25578
25579 PR bootstrap/48000
25580 * cfgloopmanip.c (fix_bb_placements): Return immediately
25581 if FROM is BASE_LOOP's header.
25582
25583 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
25584
25585 * gimplify.c (gimplify_function_tree): Fix building calls
25586 to __builtin_return_address.
25587
25588 2011-03-07 Alan Modra <amodra@gmail.com>
25589
25590 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25591 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25592 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25593 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25594 return_mode args.
25595 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25596 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25597 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25598 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25599 * config/rs6000/rs6000.c
25600 (rs6000_elf_end_indicate_exec_stack): Rename to..
25601 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
25602 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
25603 (rs6000_file_start): ..here.
25604 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25605 file scope variables.
25606 (call_ABI_of_interest): New function.
25607 (init_cumulative_args): Set above vars when function return value
25608 is a float, vector, or small struct.
25609 (rs6000_function_arg_advance_1): Likewise for function args.
25610 (rs6000_va_start): Set rs6000_passes_float if variable arg function
25611 references float args.
25612
25613 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
25614
25615 * doc/cfg.texi: Remove "See" before @ref.
25616 * doc/invoke.texi: Likewise.
25617
25618 2011-03-05 Jason Merrill <jason@redhat.com>
25619
25620 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25621
25622 2011-03-05 Anthony Green <green@moxielogic.com>
25623
25624 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25625
25626 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
25627
25628 PR rtl-optimization/47899
25629 * cfgloopmanip.c (fix_bb_placements): Fix first argument
25630 to flow_loop_nested_p when moving the loop upward.
25631
25632 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
25633
25634 PR target/47719
25635 * arm.md (movhi_insn_arch4): Accept any immediate constant.
25636
25637 2011-03-05 Jakub Jelinek <jakub@redhat.com>
25638
25639 PR tree-optimization/47967
25640 * ipa-cp.c (build_const_val): Return NULL instead of creating
25641 VIEW_CONVERT_EXPR for mismatching sizes.
25642 (ipcp_create_replace_map): Return NULL if build_const_val failed.
25643 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25644 give up on versioning.
25645
25646 2011-03-05 Alan Modra <amodra@gmail.com>
25647
25648 PR target/47986
25649 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25650 full cmodel medium/large lo_sum + high addresses.
25651
25652 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25653
25654 * config/s390/s390.c (s390_decompose_address): Reject non-literal
25655 pool references in UNSPEC_LTREL_OFFSET.
25656
25657 2011-03-04 Jan Hubicka <jh@suse.cz>
25658
25659 PR lto/47497
25660 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25661 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25662 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25663 Add node pointers.
25664 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25665 cgraph_add_thunk): Add node pointers.
25666 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25667 associated to right node.
25668 (input_node): Update use of cgraph_same_body_alias
25669 and cgraph_add_thunk.
25670
25671 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
25672
25673 * config/i386/i386.opt (mprefer-avx128): New flag.
25674 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25675 modes when the flag -mprefer-avx128 is on.
25676
25677 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
25678
25679 * dwarf2out.c (compare_loc_operands): Fix address handling.
25680
25681 2011-03-04 Alan Modra <amodra@gmail.com>
25682
25683 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25684
25685 2011-03-04 Richard Guenther <rguenther@suse.de>
25686
25687 PR middle-end/47968
25688 * expmed.c (extract_bit_field_1): Prefer vector modes that
25689 vec_extract patterns can handle.
25690
25691 2011-03-04 Richard Guenther <rguenther@suse.de>
25692
25693 PR middle-end/47975
25694 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25695
25696 2011-03-04 Richard Henderson <rth@redhat.com>
25697
25698 * explow.c (emit_stack_save): Remove 'after' parameter.
25699 (emit_stack_restore): Likewise.
25700 * expr.h: Update to match.
25701 * builtins.c, calls.c, stmt.c: Likewise.
25702 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25703 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25704 * function.c (expand_function_end): Insert the emit_stack_save
25705 sequence before parm_birth_insn instead of after.
25706
25707 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
25708
25709 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25710 (ssse3_pmaddubsw128): Ditto.
25711 (ssse3_pmaddubsw): Ditto.
25712
25713 2011-03-03 Steve Ellcey <sje@cup.hp.com>
25714
25715 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25716
25717 2011-03-03 Jakub Jelinek <jakub@redhat.com>
25718
25719 PR c/47963
25720 * gimplify.c (omp_add_variable): Only call omp_notice_variable
25721 on TYPE_SIZE_UNIT if it is a DECL.
25722
25723 PR debug/47283
25724 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25725 first operand is not is_gimple_mem_ref_addr, try to fold it.
25726 If the operand still isn't is_gimple_mem_ref_addr, clear
25727 MEM_EXPR on op0.
25728
25729 2011-03-03 Richard Guenther <rguenther@suse.de>
25730
25731 PR middle-end/47283
25732 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25733 match comment.
25734 (refs_may_alias_p_1): For release branches return true if
25735 we are confused by our input.
25736
25737 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25738
25739 * config/s390/s390.c (s390_function_value): Rename to ...
25740 (s390_function_and_libcall_value): ... this.
25741 (s390_function_value): New function.
25742 (s390_libcall_value): New function.
25743 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25744 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25745 target macro definitions.
25746 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25747
25748 2011-03-02 Joseph Myers <joseph@codesourcery.com>
25749
25750 * config/i386/freebsd64.h (CC1_SPEC): Define.
25751 * config/i386/linux64.h (CC1_SPEC): Define.
25752 * config/i386/x86-64.h (CC1_SPEC): Don't define.
25753
25754 2011-03-02 Anatoly Sokolov <aesok@post.ru>
25755
25756 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25757 Remove.
25758 * config/stormy16/stormy16.c: Include reload.h.
25759 (xstormy16_memory_move_cost): New function.
25760 (TARGET_MEMORY_MOVE_COST): Define.
25761
25762 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
25763
25764 PR rtl-optimization/47925
25765 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25766 with side effects. Remove the more-specific check for volatile asms.
25767
25768 2011-03-02 Alan Modra <amodra@gmail.com>
25769
25770 PR target/47935
25771 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25772 toc relative addresses for valid offsets.
25773
25774 2011-03-01 Richard Guenther <rguenther@suse.de>
25775
25776 PR tree-optimization/47890
25777 * tree-vect-loop.c (get_initial_def_for_induction): Set
25778 related stmt properly.
25779
25780 2011-03-01 Richard Guenther <rguenther@suse.de>
25781
25782 PR lto/47924
25783 * lto-streamer.c (lto_record_common_node): Also register
25784 the canonical type.
25785
25786 2011-03-01 Richard Guenther <rguenther@suse.de>
25787
25788 PR lto/46911
25789 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25790 Do not stream DECL_ABSTRACT_ORIGIN.
25791 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25792 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25793 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25794 Do not stream DECL_ABSTRACT_ORIGIN.
25795 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25796 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25797
25798 2011-02-28 Anatoly Sokolov <aesok@post.ru>
25799
25800 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25801 FUNCTION_VALUE_REGNO_P): Remove.
25802 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25803 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25804 Add 'outgoing' argument.
25805 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25806 function.
25807 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25808 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25809
25810 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
25811
25812 PR debug/28047
25813 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25814 (lookup_filename): Likewise.
25815 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25816
25817 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
25818 Jakub Jelinek <jakub@redhat.com>
25819
25820 PR middle-end/47893
25821 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25822 (assign_stack_local_1): Change last argument type to int.
25823 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25824 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
25825 don't record padding space into frame_space_list nor use those areas.
25826 (assign_stack_local): Adjust caller.
25827 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25828 of assign_stack_local, pass 0 as last argument.
25829 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25830 callers.
25831
25832 2011-02-28 Jakub Jelinek <jakub@redhat.com>
25833
25834 PR debug/47283
25835 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25836 Use target address_mode and pointer_mode hooks instead of hardcoded
25837 Pmode and ptr_mode. Handle some simple cases of extending if
25838 POINTERS_EXTEND_UNSIGNED < 0.
25839 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25840 Call convert_debug_memory_address.
25841 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25842 convert_debug_memory_address.
25843
25844 PR middle-end/46790
25845 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25846 * configure: Regenerated.
25847 * config.in: Regenerated.
25848 * varasm.c (default_function_section): Return NULL
25849 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25850
25851 2011-02-28 Martin Jambor <mjambor@suse.cz>
25852
25853 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25854 the description to match the printed values.
25855
25856 2011-02-28 Richard Guenther <rguenther@suse.de>
25857
25858 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25859 of the copied scope tree.
25860
25861 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25862
25863 * doc/extend.texi (Function Attributes): Avoid deeply (and
25864 wrongly) nested tables.
25865
25866 2011-02-27 Jakub Jelinek <jakub@redhat.com>
25867
25868 PR middle-end/47903
25869 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25870 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25871 r isn't op0 nor op1.
25872
25873 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25874
25875 * config/avr/avr.md: Remove magic comment for emacs.
25876
25877 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25878
25879 PR target/45261
25880 * config/avr/avr.c (avr_option_override): Use error on bad options.
25881 (avr_help): New function.
25882 (TARGET_HELP): Define.
25883
25884 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
25885
25886 PR target/42240
25887 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25888 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25889
25890 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
25891
25892 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25893 (ARM Options): Ditto.
25894 (i386 and x86-64 Options): Ditto.
25895 (RX Options): Ditto.
25896 (SPARC Options): Ditto.
25897
25898 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
25899
25900 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25901 FreeBSD 6 and later. Generally use cpu generic.
25902
25903 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
25904
25905 * doc/cpp.texi: Update copyright years.
25906
25907 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
25908
25909 PR target/46898
25910 * config/lm32/lm32.md (ashrsi3): Added needed variable.
25911
25912 2011-02-25 Jon Beniston <jon@beniston.com>
25913
25914 PR target/46898
25915 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25916 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25917 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25918 (lm32_block_move_inline): Add type cast to remove warning.
25919 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25920 (gen_int_relational): Move declarations to start of function.
25921
25922 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
25923
25924 PR tree-optimization/45470
25925 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25926 can throw internally only.
25927 * tree-vect-stmts.c (vectorizable_call): Likewise.
25928
25929 2011-02-24 Anatoly Sokolov <aesok@post.ru>
25930
25931 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25932 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25933 * config/stormy16/stormy16-protos.h
25934 (xstormy16_preferred_reload_class): Remove.
25935 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25936 static. Change 'rclass' argument and return type to reg_class_t.
25937 (TARGET_PREFERRED_RELOAD_CLASS,
25938 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25939
25940 2011-02-24 Richard Guenther <rguenther@suse.de>
25941
25942 * lto-streamer-in.c (input_bb): Do not find referenced vars
25943 in debug statements.
25944
25945 2011-02-23 Jason Merrill <jason@redhat.com>
25946
25947 * common.opt (fabi-version): Document v5 and v6.
25948
25949 2011-02-23 Richard Guenther <rguenther@suse.de>
25950
25951 PR tree-optimization/47849
25952 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25953
25954 2011-02-23 Jie Zhang <jie@codesourcery.com>
25955
25956 * opts-common.c (decode_cmdline_option): Print empty string
25957 argument as "" in decoded->orig_option_with_args_text.
25958 * gcc.c (execute): Print empty string argument as ""
25959 in the verbose output.
25960 (do_spec_1): Keep empty string argument.
25961
25962 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
25963
25964 * config.gcc: Declare score-* and crx-* obsolete.
25965
25966 2011-02-23 Jie Zhang <jie@codesourcery.com>
25967
25968 PR rtl-optimization/47763
25969 * web.c (web_main): Ignore naked clobber when replacing register.
25970
25971 2011-02-22 Anatoly Sokolov <aesok@post.ru>
25972
25973 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25974 Remove.
25975
25976 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
25977
25978 PR doc/47848
25979 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25980
25981 2011-02-22 Mike Stump <mikestump@comcast.net>
25982
25983 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25984 assembler.
25985 * configure: Regenerate.
25986
25987 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
25988
25989 PR rtl-optimization/46002
25990 * ira-color.c (update_copy_costs): Change class intersection
25991 test to reg_class_contents[] test of 'hard_regno'.
25992
25993 2011-02-21 Joseph Myers <joseph@codesourcery.com>
25994
25995 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25996 than Driver option.
25997 * config/hpux11.opt (mt): Likewise.
25998 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
25999 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26000 * config/vax/elf.opt (mno-asm-pic): Likewise.
26001 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26002
26003 2011-02-21 Mike Stump <mikestump@comcast.net>
26004
26005 PR target/47822
26006 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26007 tree so we can get save the type.
26008 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26009 for CFString instead of trying to use past the end of the builtins.
26010 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26011 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26012 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26013 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26014 Rename to darwin_builtin_cfstring.
26015 (darwin_init_cfstring_builtins): Return the built type.
26016
26017 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
26018
26019 PR target/47840
26020 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26021 (_mm256_insert_epi64): Use _mm_insert_epi64.
26022
26023 2011-02-21 Anatoly Sokolov <aesok@post.ru>
26024
26025 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26026 * config/stormy16/stormy16-protos.h
26027 (xstormy16_mode_dependent_address_p): Remove.
26028 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26029 Make static. Change return type to bool. Change argument type to
26030 const_rtx. Remove dead code.
26031 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26032
26033 2011-02-21 Richard Guenther <rguenther@suse.de>
26034
26035 PR lto/47820
26036 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26037 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26038 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26039 TUs context.
26040 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26041 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26042
26043 2011-02-20 Richard Guenther <rguenther@suse.de>
26044
26045 PR lto/47822
26046 * tree.c (free_lang_data_in_decl): Clean builtins from
26047 the TU decl BLOCK_VARS.
26048
26049 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
26050
26051 PR debug/47620
26052 PR debug/47630
26053 * haifa-sched.c (fix_tick_ready): Skip tick computation
26054 for debug insns.
26055
26056 2011-02-19 Richard Guenther <rguenther@suse.de>
26057
26058 PR lto/47647
26059 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26060 Remove lazy BLOCK_VARS streaming.
26061 (lto_input_ts_block_tree_pointers): Likewise.
26062 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26063
26064 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26065
26066 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26067
26068 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26069
26070 * config/i386/biarch32.h, config/i386/mach.h,
26071 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26072
26073 2011-02-19 Jakub Jelinek <jakub@redhat.com>
26074
26075 PR target/47800
26076 * config/i386/i386.md (peephole2 for shift and plus): Use
26077 operands[1] original mode in the first insn.
26078
26079 2011-02-18 Mike Stump <mikestump@comcast.net>
26080
26081 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26082
26083 2011-02-18 Jan Hubicka <jh@suse.cz>
26084
26085 PR middle-end/47788
26086 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26087 to zero when the function is not inlinable at all.
26088
26089 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26090
26091 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26092 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26093 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26094 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26095 * config/pa/t-pa64: Likewise.
26096 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26097
26098 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26099
26100 PR driver/47787
26101 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26102
26103 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26104
26105 PR target/47792
26106 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26107
26108 2011-02-18 Anatoly Sokolov <aesok@post.ru>
26109
26110 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26111 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26112 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26113 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26114 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26115 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26116 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26117 m32r_load_postinc_p, m32r_store_preinc_predec_p,
26118 m32r_legitimate_address_p): New functions.
26119 * config/m32r/constraints.md (constraint "S"): Don't use
26120 STORE_PREINC_PREDEC_P.
26121 (constraint "U"): Don't use LOAD_POSTINC_P.
26122
26123 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
26124
26125 PR rtl-optimization/46178
26126 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26127 compute ira_hard_regno_cover_class[].
26128
26129 2011-02-18 Richard Guenther <rguenther@suse.de>
26130
26131 PR lto/47798
26132 * lto-streamer.h (lto_global_var_decls): Declare.
26133 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26134 statics for global var processing.
26135
26136 2011-02-18 Richard Guenther <rguenther@suse.de>
26137
26138 PR tree-optimization/47737
26139 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26140 edge dominance check.
26141
26142 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26143
26144 PR debug/47780
26145 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26146 avoid invalid rtx sharing.
26147
26148 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26149
26150 * doc/cpp.texi (Obsolete Features): Add background on the
26151 origin of assertions.
26152
26153 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26154
26155 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26156 objc_abi == 2.
26157 * config/darwin.c (output_objc_section_asm_op): Added support for
26158 ABI v1 and v2.
26159 (is_objc_metadata): New.
26160 (darwin_objc2_section): New.
26161 (darwin_objc1_section): New.
26162 (machopic_select_section): Added support for ABI v1 and v2.
26163 (darwin_emit_objc_zeroed): New.
26164 (darwin_output_aligned_bss): Detect objc metadata and treat it
26165 appropriately.
26166 (darwin_asm_output_aligned_decl_common): Same.
26167 (darwin_asm_output_aligned_decl_local): Same.
26168 * config/darwin-sections.def: Updated for ABI v1 and v2.
26169 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26170 compiling Objective-C code for the NeXT runtime, default to using
26171 ABI version 0 for 32-bit, and version 2 for 64-bit.
26172
26173 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26174
26175 * common.opt (optimize_fast): New Variable.
26176 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26177 instead of local variable ofast.
26178
26179 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26180
26181 * doc/invoke.texi (fobjc-abi-version): Documented.
26182 (fobjc-nilcheck): Documented.
26183 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26184 version.
26185
26186 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26187
26188 PR driver/47390
26189 * common.opt (export-dynamic): New Driver option.
26190 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26191
26192 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26193
26194 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26195
26196 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26197 Jan Hubicka <jh@suse.cz>
26198
26199 PR debug/47106
26200 PR debug/47402
26201 * cfgexpand.c (account_used_vars_for_block): Remove.
26202 (estimated_stack_frame_size): Use referenced vars.
26203 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26204 that were referenced in the original function. Test src_fn
26205 rather than cfun. Drop redundant get_var_ann.
26206 (setup_one_parameter): Drop redundant get_var_ann.
26207 (declare_return_variable): Likewise.
26208 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26209 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26210 * ipa-inline.c (compute_inline_parameters): Do not compute
26211 disregard_inline_limits here.
26212 (compute_inlinable_for_current, pass_inlinable): New.
26213 (pass_inline_parameters): Require PROP_referenced_vars.
26214 * cgraphunit.c (cgraph_process_new_functions): Don't run
26215 compute_inline_parameters explicitly unless function is in SSA form.
26216 (cgraph_analyze_function): Set .disregard_inline_limits.
26217 * tree-sra.c (convert_callers): Compute inliner parameters
26218 only for functions already in SSA form.
26219
26220 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26221
26222 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26223 -mlittle-endian-data.
26224
26225 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26226
26227 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26228 -mno-fpu, not -fpu and -no-fpu.
26229 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26230 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26231
26232 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26233
26234 PR target/43653
26235 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26236 input reload with PLUS RTX.
26237
26238 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26239
26240 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26241 of InverseVar(MDMX).
26242
26243 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26244
26245 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26246 --m4-340.
26247
26248 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26249
26250 * config/mn10300/mn10300.opt (mno-crt0): New.
26251
26252 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26253
26254 * config/m68k/uclinux.opt (static-libc): New Driver option.
26255
26256 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26257
26258 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26259
26260 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26261
26262 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26263 %{muser-extend-enabled}.
26264
26265 2011-02-16 Richard Guenther <rguenther@suse.de>
26266
26267 PR tree-optimization/47738
26268 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26269 the TODO from tree_predictive_commoning.
26270
26271 2011-02-15 Jeff Law <law@redhat.com>
26272
26273 Revert
26274 2011-01-25 Jeff Law <law@redhat.com>
26275
26276 PR rtl-optimization/37273
26277 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26278 handle them like argument loads from stack slots. Do not double
26279 count memory for memory constants and argument loads from stack slots.
26280
26281 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26282
26283 PR target/47755
26284 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26285 mode for vector constants. Remove code that checks for TImode.
26286
26287 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26288
26289 PR debug/47106
26290 PR debug/47402
26291 * cgraph.h (compute_inline_parameters): Return void.
26292 * ipa-inline.c (compute_inline_parameters): Adjust.
26293
26294 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26295
26296 PR debug/47106
26297 PR debug/47402
26298 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26299 rather than decl.
26300 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26301 * ipa-inline.c (compute_inline_parameters): Adjust.
26302
26303 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26304
26305 PR debug/47106
26306 PR debug/47402
26307 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26308 Adjust all users. Pass FN to...
26309 * tree-flow-inline.h (first_referenced_var): ... this. Add
26310 fn argument.
26311 * ipa-struct-reorg.c: Adjust.
26312 * tree-dfa.c: Adjust.
26313 * tree-into-ssa.c: Adjust.
26314 * tree-sra.c: Adjust.
26315 * tree-ssa-alias.c: Adjust.
26316 * tree-ssa-live.c: Adjust.
26317 * tree-ssa.c: Adjust.
26318 * tree-ssanames.c: Adjust.
26319 * tree-tailcall.c: Adjust.
26320
26321 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26322
26323 PR debug/47106
26324 PR debug/47402
26325 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26326 Adjust all callers.
26327 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26328 * tree-flow-inline.h: Adjust.
26329 * gimple-pretty-print.c: Adjust.
26330 * tree-into-ssa.c: Adjust.
26331 * tree-ssa.c: Adjust.
26332 * cfgexpand.c: Adjust.
26333
26334 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26335
26336 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26337 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26338 (EXTRA_CONSTRAINT): Delete.
26339 * config/iq2000/constraints.md: New file.
26340 * config/iq2000/iq2000.md: Include it.
26341 (define_insn ""): Delete.
26342 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26343 unsupported constraint letters from patterns.
26344 (call_value, call_value_internal1): Likewise.
26345 (call_value_multiple_internal1): Likewise.
26346
26347 2011-02-15 Nick Clifton <nickc@redhat.com>
26348
26349 * config/mn10300/mn10300.c: Include tm-constrs.h.
26350 (struct liw_data): New data structure describing an LIW candidate
26351 instruction.
26352 (extract_bundle): Use struct liw_data. Allow small integer
26353 operands for some instructions.
26354 (check_liw_constraints): Use struct liw_data. Remove swapped
26355 parameter. Add comments describing the checks. Fix bug when
26356 assigning the source of liw1 to the source of liw2.
26357 (liw_candidate): Delete. Code moved into extract_bundle.
26358 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26359 before swapping.
26360 * config/mn10300/predicates.md (liw_operand): New predicate.
26361 Allows registers and small integer constants.
26362 * config/mn10300/constraints.md (O): New constraint. Accetps
26363 integers in the range -8 to +7 inclusive.
26364 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26365 for moving a small integer into a register. Give this alternative
26366 LIW attributes.
26367 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26368 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26369 using the J,K,L and M constraints,
26370 (liw): Remove SI mode on second operands to allow for HI and QI
26371 mode values.
26372 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26373 instruction.
26374
26375 2011-02-15 Richard Guenther <rguenther@suse.de>
26376
26377 PR tree-optimization/47743
26378 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26379 for a non-type-compatible VN lookup bail out.
26380
26381 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26382
26383 * config/fr30/constraints.md: New file.
26384 * config/fr30/fr30.md: Include it.
26385 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26386 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26387 (EXTRA_CONSTRAINT): Delete.
26388
26389 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26390
26391 * config/frv/constraints.md: New file.
26392 * config/frv/predicates.md: Include it.
26393 * config/frv/frv.c (reg_class_from_letter): Delete.
26394 (frv_option_override): Don't initialize it.
26395 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26396 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26397 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26398 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26399 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26400 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26401 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26402 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26403 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26404 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26405 (REG_CLASS_FROM_CONSTRAINT): Delete.
26406
26407 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26408
26409 PR middle-end/47581
26410 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26411 if frame size is 0 in a leaf function.
26412
26413 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26414
26415 PR pch/14940
26416 * config/alpha/host-osf.c: New file.
26417 * config/alpha/x-osf: New file.
26418 * config.host (alpha*-dec-osf*): Use it.
26419
26420 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26421
26422 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26423 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26424 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26425 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26426 type to const_rtx.
26427 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26428
26429 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26430
26431 * config/stormy16/constraints.md: New file.
26432 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26433 Use satisfies_constraint_Q and satisfies_constraint_R.
26434 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26435 Delete.
26436 (xstormy16_legitiamte_address_p): Declare.
26437 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26438 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26439 (EXTRA_CONSTRAINT): Delete.
26440 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26441 Un-staticize.
26442 (xstormy16_extra_constraint_p): Delete.
26443
26444 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
26445
26446 PR tree-optimization/46494
26447 * loop-unroll.c (split_edge_and_insert): Adjust comment.
26448 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26449 (pass_rtl_loop_done): Add TODO_verify_flow.
26450 * fwprop.c (pass_rtl_fwprop): Likewise.
26451 * modulo-sched.c (pass_sms): Likewise.
26452 * tree-ssa-dom.c (pass_dominator): Likewise.
26453 * tree-ssa-loop-ch.c (pass_ch): Likewise.
26454 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26455 (pass_tree_loop_done): Likewise.
26456 * tree-ssa-pre.c (execute_pre): Likewise.
26457 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26458 * tree-ssa-sink.c (pass_sink_code): Likewise.
26459 * tree-vrp.c (pass_vrp): Likewise.
26460
26461 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26462
26463 * config/v850/constraints.md: New file.
26464 * config/v850/v850.md: Include it.
26465 * config/v850/predicates.md (reg_or_0_operand): Use
26466 satisfies_constraint_G.
26467 (special_symbolref_operand): Use satisfies_constraint_K.
26468 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26469 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26470 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26471 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26472 (EXTRA_CONSTRAINT): Delete.
26473 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26474 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26475 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26476
26477 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26478
26479 PR target/47696
26480 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26481 description.
26482
26483 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26484
26485 * config/mcore/constraints.md: New file.
26486 * config/mcore/mcore.md: Include it.
26487 * config/mcore/mcore.c (reg_class_from_letter): Delete.
26488 * config/mcore/mcore.h (reg_class_from_letter): Delete.
26489 (REG_CLASS_FROM_LETTER): Delete.
26490 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26491 insn_const_int_ok_for_constraint.
26492 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26493 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26494 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26495 (EXTRA_CONSTRAINT): Delete.
26496
26497 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26498
26499 PR ada/41929
26500 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26501 (IS_SIGHANDLER): Define.
26502 (sparc64_is_sighandler): New function, split off from
26503 sparc64_fallback_frame_state.
26504 (sparc_is_sighandler): New function, split off from
26505 sparc_fallback_frame_state.
26506 (sparc64_fallback_frame_state): Merge with ...
26507 (sparc_fallback_frame_state): ... this into ...
26508 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26509 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
26510 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
26511 stack instead of hardcoded offsets.
26512
26513 2011-02-14 Andriy Gapon <avg@freebsd.org>
26514
26515 PR target/45808
26516 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26517
26518 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26519
26520 * configure: Regenerate.
26521
26522 2011-02-12 Joseph Myers <joseph@codesourcery.com>
26523
26524 PR driver/45731
26525 * gcc.c (asm_options): Correct spec matching --target-help.
26526
26527 2011-02-12 Martin Jambor <mjambor@suse.cz>
26528
26529 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26530 to gimple call error.
26531
26532 2011-02-12 Mike Stump <mikestump@comcast.net>
26533
26534 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26535 comments in backslash regions.
26536
26537 2011-02-12 Mike Stump <mikestump@comcast.net>
26538 Jakub Jelinek <jakub@redhat.com>
26539 Iain Sandoe <iains@gcc.gnu.org>
26540
26541 PR target/47324
26542 * dwarf2out.c (output_cfa_loc): When required, apply the
26543 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26544 (output_loc_sequence): Likewise.
26545 (output_loc_operands_raw): Likewise.
26546 (output_loc_sequence_raw): Likewise.
26547 (output_cfa_loc): Likewise.
26548 (output_loc_list): Suppress register number adjustment when
26549 calling output_loc_sequence()
26550 (output_die): Likewise.
26551
26552 2011-02-12 Anatoly Sokolov <aesok@post.ru>
26553
26554 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26555 Remove macros.
26556 * config/xtensa/xtensa.c (xtensa_register_move_cost,
26557 xtensa_memory_move_cost): New functions.
26558 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26559
26560 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
26561
26562 PR lto/47225
26563 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26564 in the current directory.
26565 * configure: Rebuilt.
26566
26567 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26568
26569 * config/darwin.c (darwin_override_options): Add a hunk missed
26570 from the commit of r168571. Trim comment line lengths and
26571 correct indents of the preceding block.
26572
26573 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26574
26575 * gcc.c (driver_handle_option): Concatenate the argument to -F with
26576 the switch.
26577
26578 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26579
26580 * common.opt (nostartfiles): New Driver option.
26581
26582 2011-02-11 Xinliang David Li <davidxl@google.com>
26583
26584 PR tree-optimization/47707
26585 * tree-chrec.c (convert_affine_scev): Keep type precision.
26586
26587 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
26588
26589 PR tree-optimization/47420
26590 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26591
26592 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
26593
26594 PR rtl-optimization/47614
26595 * rtl.h (check_for_inc_dec): Declare.
26596 * dse.c (check_for_inc_dec): Externalize...
26597 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26598 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26599
26600 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26601
26602 PR driver/47678
26603 * gcc.c (main): Do not compile inputs if there were errors in
26604 option handling.
26605 * opts-common.c (read_cmdline_option): Check for wrong language
26606 after other error checks.
26607
26608 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
26609
26610 * cgraph.c: Fix comment typos.
26611 * cgraph.h: Likewise.
26612 * cgraphunit.c: Likewise.
26613 * ipa-cp.c: Likewise.
26614 * ipa-inline.c: Likewise.
26615 * ipa-prop.c: Likewise.
26616 * ipa-pure-const.c: Likewise.
26617 * ipa-ref.c: Likewise.
26618 * ipa-reference.c: Likewise.
26619
26620 2011-02-11 Jakub Jelinek <jakub@redhat.com>
26621
26622 PR debug/47684
26623 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26624
26625 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26626
26627 PR testsuite/47400
26628 * doc/sourcebuild.texi (Require Support): Document
26629 dg-require-ascii-locale.
26630
26631 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
26632
26633 * doc/lto.texi (Write summary): Fix missing parentheses.
26634
26635 2011-02-10 DJ Delorie <dj@redhat.com>
26636
26637 * config/m32c/m32c.c (m32c_option_override): Disable
26638 -fcombine-stack-adjustments until flag value tracking and compare
26639 optimization can be rewritten.
26640
26641 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
26642
26643 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26644 PROCESSOR_POWER7.
26645 (PROCESSOR_DEFAULT64): Likewise.
26646
26647 2011-02-10 Richard Henderson <rth@redhat.com>
26648
26649 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26650 change from 2011-02-03.
26651 * config/rx/rx.c (flags_from_code): Likewise.
26652 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26653 is valid, n/pz otherwise.
26654 (rx_select_cc_mode): Return CCmode if Y is not zero.
26655
26656 2011-02-10 Richard Guenther <rguenther@suse.de>
26657
26658 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26659
26660 2011-02-10 Richard Guenther <rguenther@suse.de>
26661
26662 PR tree-optimization/47677
26663 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26664
26665 2011-02-10 Jakub Jelinek <jakub@redhat.com>
26666
26667 PR target/47665
26668 * combine.c (make_compound_operation): Only change shifts into
26669 multiplication for SCALAR_INT_MODE_P.
26670
26671 2011-02-10 Jie Zhang <jie@codesourcery.com>
26672
26673 PR testsuite/47622
26674 Revert
26675 2011-02-05 Jie Zhang <jie@codesourcery.com>
26676 PR debug/42631
26677 * web.c (entry_register): Don't clobber the number of the
26678 first uninitialized reference in used[].
26679
26680 2011-02-09 Richard Guenther <rguenther@suse.de>
26681
26682 PR tree-optimization/47664
26683 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26684 all edges again.
26685
26686 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
26687
26688 PR target/46481
26689 PR target/47032
26690 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26691 PROCESSOR_POWER7.
26692 (PROCESSOR_DEFAULT64): Same.
26693 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26694
26695 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26696
26697 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26698
26699 2011-02-09 Martin Jambor <mjambor@suse.cz>
26700
26701 PR middle-end/45505
26702 * tree-sra.c (struct access): New flags grp_scalar_read and
26703 grp_scalar_write. Changed description of assignment read and write
26704 flags.
26705 (dump_access): Dump new flags, reorder all of them.
26706 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26707 to detect multiple scalar reads.
26708 (analyze_access_subtree): Use the new scalar read write flags instead
26709 of the old flags. Adjusted comments.
26710
26711 2011-02-08 DJ Delorie <dj@redhat.com>
26712
26713 PR target/47548
26714 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26715 patterns.
26716
26717 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26718
26719 * config/m68k/uclinux.opt: New.
26720 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26721
26722 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26723
26724 * config/cris/elf.opt (sim): New Driver option.
26725
26726 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26727
26728 * config/xtensa/elf.opt: New.
26729 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26730
26731 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26732
26733 * config/vax/elf.opt: New.
26734 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26735
26736 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26737
26738 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26739
26740 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26741
26742 * config/gnu-user.opt: New.
26743 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26744 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26745 *-*-uclinux*): Use gnu-user.opt.
26746
26747 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
26748
26749 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26750 * config/i386/gnu.h (CPP_SPEC): Likewise.
26751
26752 2011-02-08 Ian Lance Taylor <iant@google.com>
26753
26754 * common.opt (fcx-limited-range): Add SetByCombined flag.
26755 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26756 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26757 (fassociative-math, freciprocal-math): Likewise.
26758 (funsafe-math-optimizations): Likewise.
26759 * opth-gen.awk: Handle SetByCombined.
26760 * optc-gen.awk: Likewise.
26761 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26762 (set_unsafe_math_optimizations_flags): Likewise.
26763 * doc/options.texi (Option properties): Document SetByCombined.
26764
26765 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26766
26767 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26768 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26769 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26770 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26771 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26772
26773 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
26774
26775 PR tree-optimization/46834
26776 PR tree-optimization/46994
26777 PR tree-optimization/46995
26778 * graphite-sese-to-poly.c (used_outside_reduction): New.
26779 (detect_commutative_reduction): Call used_outside_reduction.
26780 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26781 translate_scalar_reduction_to_array only when at least one
26782 loop-phi/close-phi tuple has been detected.
26783
26784 2011-02-08 Richard Guenther <rguenther@suse.de>
26785
26786 PR middle-end/47639
26787 * tree-vect-generic.c (expand_vector_operations_1): Update
26788 stmts here ...
26789 (expand_vector_operations): ... not here. Cleanup EH info
26790 and the CFG if required.
26791
26792 2011-02-08 Richard Guenther <rguenther@suse.de>
26793
26794 PR tree-optimization/47641
26795 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26796 require type compatibility.
26797
26798 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26799
26800 * gimple-low.c (lower_function_body): Don't remove the location of
26801 the return statement here.
26802 (lower_gimple_return): Do it here instead but only if the return
26803 statement is actually used twice.
26804
26805 2011-02-08 Richard Guenther <rguenther@suse.de>
26806
26807 PR tree-optimization/47632
26808 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26809 unused up_to_stmt parameter, return whether cfg-cleanup is
26810 necessary, remove EH info properly.
26811 (forward_propagate_into_gimple_cond): Adjust caller.
26812 (forward_propagate_into_cond): Likewise.
26813 (forward_propagate_comparison): Likewise.
26814 (tree_ssa_forward_propagate_single_use_vars): Make
26815 forward_propagate_comparison case similar to the two others.
26816
26817 2011-02-08 Nick Clifton <nickc@redhat.com>
26818
26819 * config/mn10300/mn10300.opt (mliw): New command line option.
26820 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26821 (liw_bundling): New automaton.
26822 (liw): New attribute.
26823 (liw_op): New attribute.
26824 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26825 (movsi_internal): Add LIW attributes.
26826 (andsi3): Likewise.
26827 (iorsi3): Likewise.
26828 (xorsi3): Likewise.
26829 (addsi3): Separate register and immediate alternatives.
26830 Add LIW attributes.
26831 (subsi3): Likewise.
26832 (cmpsi): Likewise.
26833 (aslsi3): Likewise.
26834 (lshrsi3): Likewise.
26835 (ashrsi3): Likewise.
26836 (liw): New pattern.
26837 * config/mn10300/mn10300.c (liw_op_names): New
26838 (mn10300_print_operand): Handle 'W' operand descriptor.
26839 (extract_bundle): New function.
26840 (check_liw_constraints): New function.
26841 (liw_candidate): New function.
26842 (mn10300_bundle_liw): New function.
26843 (mn10300_reorg): New function.
26844 (TARGET_MACHINE_DEPENDENT_REORG): Define.
26845 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26846 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26847 __LIW__ or __NO_LIW__.
26848 * doc/invoke.texi: Describe the -mliw command line option.
26849
26850 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26851
26852 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26853 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26854 pthread_mutex_unlock): Remove.
26855 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26856 * config/pa/t-pa64: Likewise.
26857 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26858 shared libc if not linking against libpthread.
26859 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26860
26861 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
26862
26863 PR target/47558
26864 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26865 on 10.6 and later to ensure that we always use the unwinder from
26866 the system. Only add -no_compact_unwind when tarteting darwin
26867 10.6 or later.
26868
26869 2011-02-07 Steve Ellcey <sje@cup.hp.com>
26870
26871 PR target/46997
26872 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26873 (vec_interleave_lowv2sf): Ditto.
26874 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26875 (vec_extract_oddv2sf): Ditto.
26876
26877 2011-02-07 Mike Stump <mikestump@comcast.net>
26878
26879 PR target/42333
26880 Add __ieee_divdc3 entry point.
26881 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26882 entry point.
26883 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26884 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26885 * config/darwin.c (darwin_rename_builtins): Add.
26886 * config/darwin-protos.h (darwin_rename_builtins): Add.
26887
26888 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
26889
26890 PR target/47636
26891 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26892 for the condition.
26893
26894 2011-02-07 Mike Stump <mikestump@comcast.net>
26895
26896 * config/darwin.opt (mmacosx-version-min): Update default OS version.
26897
26898 2011-02-07 Denis Chertykov <chertykov@gmail.com>
26899
26900 PR target/47534
26901 * config/avr/libgcc.S (exit): Move .endfunc
26902
26903 2011-02-07 Richard Guenther <rguenther@suse.de>
26904
26905 PR tree-optimization/47615
26906 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26907 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26908 (run_scc_vn): Initialize it.
26909 (visit_reference_op_load): Use it.
26910 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26911
26912 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26913
26914 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26915 DImode trapping arithmetic libfuncs.
26916
26917 2011-02-07 Richard Guenther <rguenther@suse.de>
26918
26919 PR tree-optimization/47621
26920 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26921 two duplicates ...
26922 (execute_update_addresses_taken): ... here. Make it more
26923 conservative in what we accept.
26924
26925 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26926
26927 * config/sparc/freebsd.h (ASM_SPEC): Define.
26928 * config/sparc/vxworks.h (ASM_SPEC): Define.
26929
26930 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26931
26932 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26933
26934 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
26935
26936 * doc/invoke.texi: Remove reference to compiler internals from
26937 user documentation.
26938
26939 * reg-notes.def: Remove REG_VALUE_PROFILE.
26940 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26941
26942 2011-02-05 Jakub Jelinek <jakub@redhat.com>
26943
26944 PR middle-end/47610
26945 * varasm.c (default_section_type_flags): If decl is NULL,
26946 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26947
26948 2011-02-05 Jie Zhang <jie@codesourcery.com>
26949
26950 PR debug/42631
26951 * web.c (entry_register): Don't clobber the number of the
26952 first uninitialized reference in used[].
26953
26954 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
26955
26956 PR tree-optimization/46194
26957 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26958 (build_classic_dist_vector_1): Do not represent classic distance
26959 vectors when the access functions are variating in different loops.
26960
26961 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26962
26963 * config/mips/iris6.opt: New.
26964 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26965
26966 2011-02-04 Richard Henderson <rth@redhat.com>
26967 Steve Ellcey <sje@cup.hp.com>
26968
26969 PR target/46997
26970 * config/ia64/predicates.md (mux1_brcst_element): New.
26971 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26972 * config/ia64/ia64.c (ia64_unpack_assemble): New.
26973 (ia64_unpack_sign): New.
26974 (ia64_expand_unpack): Rewrite using new routines.
26975 (ia64_expand_widen_sum): Ditto.
26976 (ia64_expand_dot_prod_v8qi): Ditto.
26977 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26978 routines, add endian check.
26979 (pmpy2_even): Rename from pmpy2_r, add endian check.
26980 (pmpy2_odd): Rename from pmpy2_l, add endian check.
26981 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26982 (vec_widen_smult_hi_v4hi): Ditto.
26983 (vec_widen_umult_lo_v4hi): Ditto.
26984 (vec_widen_umult_hi_v4hi): Ditto.
26985 (mulv2si3): Change endian checks.
26986 (sdot_prodv4hi): Rewrite with new calls.
26987 (udot_prodv4hi): New.
26988 (vec_pack_ssat_v4hi): Add endian check.
26989 (vec_pack_usat_v4hi): Ditto.
26990 (vec_pack_ssat_v2si): Ditto.
26991 (max1_even): Rename from max1_r, add endian check.
26992 (max1_odd): Rename from max1_l, add endian check.
26993 (*mux1_rev): Format change.
26994 (*mux1_mix): Ditto.
26995 (*mux1_shuf): Ditto.
26996 (*mux1_alt): Ditto.
26997 (*mux1_brcst_v8qi): Use new predicate.
26998 (vec_extract_evenv8qi): Remove endian check.
26999 (vec_extract_oddv8qi): Ditto.
27000 (vec_interleave_lowv4hi): Format change.
27001 (vec_interleave_highv4hi): Ditto.
27002 (mix2_even): Rename from mix2_r, add endian check.
27003 (mix2_odd): Rename from mux2_l, add endian check.
27004 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27005 (vec_extract_evenodd_helper): Format change.
27006 (vec_extract_evenv4hi): Remove endian check.
27007 (vec_extract_oddv4hi): Remove endian check.
27008 (vec_interleave_lowv2si): Format change.
27009 (vec_interleave_highv2si): Format change.
27010 (vec_initv2si): Remove endian check.
27011 (vecinit_v2si): Add endian check.
27012 (reduc_splus_v2sf): Add endian check.
27013 (reduc_smax_v2sf): Ditto.
27014 (reduc_smin_v2sf): Ditto.
27015 (vec_initv2sf): Remove endian check.
27016 (fpack): Add endian check.
27017 (fswap): Add endian check.
27018 (vec_interleave_highv2sf): Add endian check.
27019 (vec_interleave_lowv2sf): Add endian check.
27020 (fmix_lr): Add endian check.
27021 (vec_setv2sf): Format change.
27022 (*vec_extractv2sf_0_be): Use shift to extract operand.
27023 (*vec_extractv2sf_1_be): New.
27024 (vec_pack_trunc_v4hi): Add endian check.
27025 (vec_pack_trunc_v2si): Format change.
27026
27027 2011-02-04 Jakub Jelinek <jakub@redhat.com>
27028
27029 PR inline-asm/23200
27030 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
27031 do bb, locus and block comparison and disallow loads if it is not set.
27032 (stmt_is_replaceable_p): New function.
27033 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27034 callers.
27035 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27036 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27037 SSA_NAME_DEF_STMT.
27038 * tree-flow.h (stmt_is_replaceable_p): New prototype.
27039
27040 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27041
27042 * config/rs6000/xilinx.opt: New.
27043 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27044
27045 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27046
27047 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27048
27049 2011-02-03 Anatoly Sokolov <aesok@post.ru>
27050
27051 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27052 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27053 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27054 secondary_reload_info, xtensa_secondary_reload): Remove.
27055 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27056 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27057 (xtensa_preferred_reload_class): Make static. Change return and
27058 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27059 Use CONST_DOUBLE_P predicate.
27060 (xtensa_preferred_output_reload_class): New function.
27061 (xtensa_secondary_reload): Make static.
27062
27063 2011-02-03 Joseph Myers <joseph@codesourcery.com>
27064
27065 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27066 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27067 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27068
27069 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27070
27071 PR middle-end/31490
27072 * output.h (SECTION_RELRO): Define.
27073 (SECTION_MACH_DEP): Adjust.
27074 (get_variable_section): New prototype.
27075 * varpool.c (varpool_finalize_named_section_flags): New function.
27076 (varpool_assemble_pending_decls): Call it.
27077 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27078 * cgraphunit.c (cgraph_output_in_order): Call
27079 varpool_finalize_named_section_flags.
27080 * varasm.c (get_section): Allow section flags conflicts between
27081 relro and read-only sections if the section hasn't been declared yet.
27082 Set SECTION_OVERRIDE after diagnosing section type conflict.
27083 (get_variable_section): No longer static.
27084 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27085 readonly sections that need relocations.
27086 (decl_readonly_section_1): New function.
27087 (decl_readonly_section): Use it.
27088
27089 Revert:
27090 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
27091 Steve Ellcey <sje@cup.hp.com>
27092
27093 PR middle-end/31490
27094 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27095 if section attribute used.
27096
27097 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27098
27099 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27100 * config/darwin.c (SECTION_NO_ANCHOR): Define.
27101 (darwin_init_sections): Remove assertion.
27102
27103 2011-02-03 Nick Clifton <nickc@redhat.com>
27104
27105 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27106 lt and ge.
27107 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27108 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27109 instead of "n" and "pz".
27110 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27111 CC_FLAG_S.
27112
27113 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27114
27115 PR target/47312
27116 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27117 fma, expand FMA_EXPR as fma{,f,l} call.
27118
27119 PR lto/47274
27120 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27121 copy them into a unsigned char variable and pass address of it to
27122 lto_output_data_stream.
27123
27124 PR target/47564
27125 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27126 around backend_init_target and lang_dependent_init_target calls.
27127 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27128 (verify_cgraph_node): Don't call set_cfun here. Use
27129 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27130 Set error_found for incorrectly represented calls to thunks.
27131
27132 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27133
27134 PR debug/43092
27135 PR rtl-optimization/43494
27136 * rtl.h (for_each_inc_dec_fn): New type.
27137 (for_each_inc_dec): Declare.
27138 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27139 (for_each_inc_dec_find_inc_dec): New fn.
27140 (for_each_inc_dec_find_mem): New fn.
27141 (for_each_inc_dec): New fn.
27142 * dse.c (struct insn_size): Remove.
27143 (replace_inc_dec, replace_inc_dec_mem): Remove.
27144 (emit_inc_dec_insn_before): New fn.
27145 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27146 (canon_address): Pass mem modes to cselib_lookup.
27147 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27148 (cselib_lookup_from_insn): Likewise.
27149 (cselib_subst_to_values): Likewise.
27150 * cselib.c (find_slot_memmode): New var.
27151 (cselib_find_slot): New fn. Use it instead of
27152 htab_find_slot_with_hash everywhere.
27153 (entry_and_rtx_equal_p): Use find_slot_memmode.
27154 (autoinc_split): New fn.
27155 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27156 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27157 Deal with autoinc. Special-case recursion into MEMs.
27158 (cselib_hash_rtx): Likewise.
27159 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27160 address and MEM modes.
27161 (cselib_subst_to_values): Add memmode, pass it on.
27162 Deal with autoinc.
27163 (cselib_lookup): Add memmode argument, pass it on.
27164 (cselib_lookup_from_insn): Add memmode.
27165 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27166 (struct cselib_record_autoinc_data): New.
27167 (cselib_record_autoinc_cb): New fn.
27168 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27169 mode to cselib_lookup. Reset autoinced REGs here instead of...
27170 (cselib_process_insn): ... here.
27171 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27172 to cselib_lookup.
27173 (add_uses): Likewise, also to cselib_subst_to_values.
27174 (add_stores): Likewise.
27175 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27176 cselib_subst_to_values.
27177 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27178 * gcse.c (do_local_cprop): Adjusted.
27179 * postreload.c (reload_cse_simplify_set): Adjusted.
27180 (reload_cse_simplify_operands): Adjusted.
27181 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27182
27183 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27184
27185 PR tree-optimization/45122
27186 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27187 unsafe assumptions when there's more than one loop exit.
27188
27189 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27190
27191 PR target/47272
27192 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27193 Document using vector double with the load/store builtins, and
27194 that the load/store builtins always use Altivec instructions.
27195
27196 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27197 to use altivec memory instructions, even on VSX.
27198 (vector_altivec_store_<mode>): Ditto.
27199
27200 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27201 function.
27202
27203 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27204 V2DF, V2DI support to load/store overloaded builtins.
27205
27206 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27207 altivec load/store builtins for V2DF/V2DI types.
27208
27209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27210 set avoid indexed addresses on power6 if -maltivec.
27211 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27212 vector_altivec_load/vector_altivec_store builtins.
27213 (altivec_expand_st_builtin): Ditto.
27214 (altivec_expand_builtin): Add VSX memory builtins.
27215 (rs6000_init_builtins): Add V2DI types to internal types.
27216 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27217 load/store builtins.
27218 (rs6000_address_for_altivec): Insure memory address is appropriate
27219 for Altivec.
27220
27221 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27222 vec_vsx_ld and vec_vsx_st.
27223 (vsx_store_<mode>): Ditto.
27224
27225 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27226 variables to hold long long types for VSX vector memory builtins.
27227 (RS6000_BTI_unsigned_long_long): Ditto.
27228 (long_long_integer_type_internal_node): Ditti.
27229 (long_long_unsigned_type_internal_node): Ditti.
27230
27231 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27232 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27233 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27234
27235 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27236 short cuts.
27237 (vec_vsx_st): Ditto.
27238
27239 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27240
27241 * config/pa/pa-hpux10.opt: New.
27242 * config/hpux11.opt (pthread): New Driver option.
27243 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27244 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27245
27246 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27247
27248 * config/ia64/vms.opt: New.
27249 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27250
27251 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27252
27253 PR target/47580
27254 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27255 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27256 generator functions.
27257 (vsx_floatuns<VSi><mode>2): Ditto.
27258 (vsx_fix_trunc<mode><VSi>2): Ditto.
27259 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27260
27261 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27262
27263 * config/i386/djgpp.opt (posix): New Driver option.
27264
27265 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27266
27267 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27268 Move to the unsupported targets list.
27269
27270 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27271
27272 PR rtl-optimization/47525
27273 * df-scan.c: Update copyright years.
27274 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27275 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27276
27277 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27278
27279 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27280 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27281 (ASM_OUTPUT_ASCII): Remove.
27282 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27283
27284 2011-02-02 Jeff Law <law@redhat.com>
27285
27286 PR middle-end/47543
27287 * reload.c (find_reloads_address): Handle reg+d address where both
27288 components are invalid by reloading the entire address.
27289
27290 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27291 Richard Guenther <rguenther@suse.de>
27292
27293 PR tree-optimization/40979
27294 PR bootstrap/47044
27295 * passes.c (init_optimization_passes): After LIM call copy_prop
27296 and DCE to clean up.
27297 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27298
27299 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27300
27301 PR tree-optimization/47576
27302 PR tree-optimization/47555
27303 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27304 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27305 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27306 * tree-scalar-evolution.c (follow_ssa_edge): Use
27307 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27308
27309 2011-02-02 Richard Guenther <rguenther@suse.de>
27310
27311 PR tree-optimization/47566
27312 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27313
27314 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27315
27316 PR debug/47106
27317 PR debug/47402
27318 * tree-inline.c (declare_return_variable): Remove unused caller
27319 variable.
27320
27321 PR debug/47106
27322 PR debug/47402
27323 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27324 * cfgexpand.c (account_used_vars_for_block): Use them.
27325 * tree-nrv.c (tree_nrv): Likewise.
27326 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27327 (dump_scope_block): Likewise.
27328 (remove_unused_locals): Likewise.
27329
27330 PR debug/47106
27331 PR debug/47402
27332 * tree-inline.c (declare_return_variable): Add result decl to
27333 local decls only once.
27334 * gimple-low.c (record_vars_into): Mark newly-created variables
27335 as referenced.
27336
27337 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27338
27339 PR debug/47498
27340 PR debug/47501
27341 PR debug/45136
27342 PR debug/45130
27343 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27344 debug insns.
27345 (no_real_insns_p, schedule_block, set_priorities): Drop special
27346 treatment of boundary debug insns.
27347 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27348 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27349 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27350 (BOUNDARY_DEBUG_INSN_P): Likewise.
27351 (SCHEDULE_DEBUG_INSN_P): Likewise.
27352 * sched-rgn.c (init_ready_list): Drop special treatment of
27353 boundary debug insns.
27354 * final.c (rest_of_clean_state): Clear notes' BB.
27355
27356 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27357
27358 * config/openbsd.opt (assert=): New Driver option.
27359
27360 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27361
27362 * config/i386/nto.opt: New.
27363 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27364
27365 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27366
27367 * config/i386/netware.opt: New.
27368 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27369
27370 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27371
27372 * config/interix.opt (posix): New Driver option.
27373
27374 2011-02-01 DJ Delorie <dj@redhat.com>
27375
27376 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27377
27378 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27379 class for A0/A1.
27380
27381 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27382
27383 PR tree-optimization/47561
27384 * toplev.c (process_options): Print the Graphite flags. Add
27385 flag_loop_flatten to the list of options requiring Graphite.
27386
27387 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27388
27389 * config/i386/cygming.opt (posix): New Driver option.
27390
27391 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27392
27393 * config/arm/vxworks.opt: New.
27394 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27395
27396 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27397
27398 * config/alpha/elf.opt: New.
27399 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27400 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27401
27402 2011-02-01 Richard Guenther <rguenther@suse.de>
27403
27404 PR tree-optimization/47559
27405 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27406 store-motion on references that can throw.
27407
27408 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27409
27410 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27411 * tree-pass.h (TDF_CSELIB): New macro.
27412 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27413 cselib_lookup): Check for it rather than for TDF_DETAILS.
27414
27415 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27416
27417 PR driver/47547
27418 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27419 is HOST_BIT_BUCKET.
27420
27421 * opts.c (finish_options): Don't add x_aux_base_name if it is
27422 HOST_BIT_BUCKET.
27423
27424 2011-02-01 Richard Guenther <rguenther@suse.de>
27425
27426 PR tree-optimization/47555
27427 Revert
27428 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27429
27430 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27431
27432 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27433
27434 PR gcc/46692
27435 * config/lm32/t-lm32: Add multilib for all CPU options.
27436
27437 2011-02-01 Richard Guenther <rguenther@suse.de>
27438
27439 PR tree-optimization/47541
27440 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27441 sure to have a field at offset zero.
27442
27443 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27444
27445 * config/arc/arc.opt (EB, EL): New Driver options.
27446
27447 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27448
27449 * config/alpha/osf5.opt: New.
27450 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27451
27452 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27453
27454 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27455
27456 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
27457
27458 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27459 -floop-interchange.
27460 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27461 is an alias of -floop-interchange and that it requires the
27462 Graphite infrastructure.
27463 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27464 flag_loop_interchange based on the value of flag_tree_loop_linear.
27465
27466 2011-01-31 Jakub Jelinek <jakub@redhat.com>
27467 Richard Guenther <rguenther@suse.de>
27468
27469 PR tree-optimization/47538
27470 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27471 type instead of r1type, except for comparisons. For right
27472 shifts and comparisons punt if there are mismatches in
27473 sizetype vs. non-sizetype types.
27474
27475 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27476
27477 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27478 avx_runtime.
27479
27480 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27481
27482 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27483 version number.
27484 * configure: Regenerate.
27485
27486 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27487
27488 * configure.ac (gcc_cv_ld_static_option): Define.
27489 (gcc_cv_ld_dynamic_option): Define.
27490 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27491 instead.
27492 (HAVE_LD_STATIC_DYNAMIC): Update message.
27493 (LD_STATIC_OPTION): Define.
27494 (LD_DYNAMIC_OPTION): Define.
27495 * configure: Regenerate.
27496 * config.in: Regenerate.
27497 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27498 HAVE_LD_STATIC_DYNAMIC]: Use them.
27499
27500 2011-01-31 Nick Clifton <nickc@redhat.com>
27501
27502 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27503 registers inside interrupt handlers if the handler is not a leaf
27504 function.
27505
27506 2011-01-31 Nick Clifton <nickc@redhat.com>
27507
27508 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27509 reg_renumber returning an INVALID_REGNUM.
27510
27511 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27512
27513 PR libgcj/44341
27514 * doc/install.texi: Document host options discarded when cross
27515 configuring target libraries.
27516
27517 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27518
27519 Reverted:
27520 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27521 PR debug/45136
27522 PR debug/45130
27523 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27524 debug insns.
27525 (no_real_insns_p, schedule_block, set_priorities): Drop special
27526 treatment of boundary debug insns.
27527 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27528 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27529 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27530 (BOUNDARY_DEBUG_INSN_P): Likewise.
27531 (SCHEDULE_DEBUG_INSN_P): Likewise.
27532 * sched-rgn.c (init_ready_list): Drop special treatment of
27533 boundary debug insns.
27534 * final.c (rest_of_clean-state): Clear notes' BB.
27535
27536 2011-01-31 Alan Modra <amodra@gmail.com>
27537
27538 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27539 toc relative expressions as we do in print_operand_address.
27540
27541 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
27542
27543 * doc/extend.texi: Follow spelling conventions.
27544 * doc/invoke.texi: Fix a typo.
27545
27546 2011-01-30 Joseph Myers <joseph@codesourcery.com>
27547
27548 * config/hpux11.opt: New.
27549 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27550 ia64*-*-hpux*): Use hpux11.opt.
27551
27552 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
27553
27554 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27555 to tmake_file.
27556
27557 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27558
27559 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27560 support sites.
27561
27562 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27563
27564 * doc/install.texi (Binaries): Remove outdated reference for
27565 Motorola 68HC11/68HC12 downloads.
27566
27567 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27568
27569 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27570 Drepper's paper.
27571
27572 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
27573
27574 PR bootstrap/47147
27575 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27576 used by NetBSD.
27577
27578 2011-01-28 Ahmad Sharif <asharif@google.com>
27579
27580 * value-prof.c (check_counter): Corrected error message.
27581
27582 2011-01-29 Jie Zhang <jie@codesourcery.com>
27583
27584 * config/arm/arm.c (arm_legitimize_reload_address): New.
27585 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27586 arm_legitimize_reload_address.
27587 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27588
27589 2011-01-28 Ian Lance Taylor <iant@google.com>
27590
27591 * godump.c (go_define): Ignore macros whose definitions include
27592 two adjacent operands.
27593
27594 2011-01-28 Jakub Jelinek <jakub@redhat.com>
27595
27596 PR target/42894
27597 * varasm.c (force_const_mem): Store copy of x in desc->constant
27598 instead of x itself.
27599 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27600 itself into REG_EQUAL note.
27601
27602 2011-01-28 Joseph Myers <joseph@codesourcery.com>
27603
27604 * config/freebsd.opt (posix, rdynamic): New Driver options.
27605
27606 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27607
27608 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27609 -Bstatic/-Bdynamic.
27610 * configure: Regenerate.
27611
27612 2011-01-27 Joseph Myers <joseph@codesourcery.com>
27613
27614 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27615 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27616
27617 2011-01-27 Anatoly Sokolov <aesok@post.ru>
27618
27619 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27620 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27621 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27622 (s390_preferred_reload_class): Make static. Change return and
27623 'rclass' argument type to reg_class_t.
27624
27625 2011-01-27 Jan Hubicka <jh@suse.cz>
27626
27627 PR middle-end/46949
27628 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27629 (process_function_and_variable_attributes): Check defined weakrefs.
27630
27631 2011-01-27 Martin Jambor <mjambor@suse.cz>
27632
27633 PR tree-optimization/47228
27634 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27635 build_ref_for_offset.
27636
27637 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27638
27639 * config/spu/spu-elf.h (ASM_SPEC): Remove.
27640
27641 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
27642
27643 PR rtl-optimization/46856
27644 * postreload.c (reload_combine_recognize_const_pattern): Do not
27645 separate cc0 setter and user on cc0 targets.
27646
27647 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
27648
27649 PR c/43082
27650 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27651 passed a VOID_TYPE expression, immediately emit an error and
27652 return error_mark_node.
27653
27654 2011-01-26 Jeff Law <law@redhat.com>
27655
27656 PR rtl-optimization/47464
27657 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27658 rather than may_trap_p as needed.
27659
27660 2011-01-26 DJ Delorie <dj@redhat.com>
27661
27662 PR rtl-optimization/46878
27663 * combine.c (insn_a_feeds_b): Check for the implicit cc0
27664 setter/user dependency as well.
27665
27666 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
27667
27668 PR rtl-optimization/44469
27669 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27670 after removing trivially dead basic blocks.
27671
27672 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27673
27674 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27675 * config/frv/frv.h (LINK_SPEC): Likewise.
27676 * config/i386/netware.h (LINK_SPEC): Likewise.
27677 * config/m68k/linux.h (ASM_SPEC): Likewise.
27678 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27679 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27680 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27681 * config/sparc/linux.h (ASM_SPEC): Likewise.
27682 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27683 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27684
27685 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27686
27687 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27688 * config/frv/frv.h (ASM_SPEC): Likewise.
27689 * config/m68k/linux.h (ASM_SPEC): Likewise.
27690 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27691 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27692 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27693 * config/sparc/linux.h (ASM_SPEC): Likewise.
27694 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27695 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27696
27697 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27698
27699 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27700 * config/frv/frv.h (LINK_SPEC): Likewise.
27701 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27702
27703 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27704
27705 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27706 * config/frv/frv.h (ASM_SPEC): Likewise.
27707 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27708 * config/m68k/linux.h (ASM_SPEC): Likewise.
27709 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27710 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27711 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27712 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27713 * config/sparc/linux.h (ASM_SPEC): Likewise.
27714 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27715 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27716 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27717
27718 2011-01-26 Steve Ellcey <sje@cup.hp.com>
27719
27720 PR target/46997
27721 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27722 (*mux2): Ditto.
27723 (vec_extract_evenodd_help): Ditto.
27724 (vec_extract_evenv4hi): Ditto.
27725 (vec_extract_oddv4hi): Ditto.
27726 (vec_interleave_lowv2si): Ditto.
27727 (vec_interleave_highv2si): Ditto.
27728 (vec_extract_evenv2si): Ditto.
27729 (vec_extract_oddv2si: Ditto.
27730 (vec_pack_trunc_v2si): Ditto.
27731
27732 2011-01-22 Jan Hubicka <jh@suse.cz>
27733
27734 PR target/47237
27735 * cgraph.h (cgraph_local_info): New field can_change_signature.
27736 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27737 signature can change.
27738 (ipcp_estimate_growth): Call sequence simplify only if calle signature
27739 can change.
27740 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27741 (cgraph_function_versioning): We can not change signature of functions
27742 that don't allow that.
27743 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27744 (lto_input_node): Likewise.
27745 * ipa-inline.c (compute_inline_parameters): Compute
27746 local.can_change_signature.
27747 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27748 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27749 functions that can not change signature.
27750 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27751 init_cumulative_args): Do not use local calling conventions
27752 for functions that can not change signature.
27753
27754 2011-01-22 Jan Hubicka <jh@suse.cz>
27755
27756 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27757
27758 2011-01-26 Richard Guenther <rguenther@suse.de>
27759
27760 PR tree-optimization/47190
27761 * cgraphunit.c (process_common_attributes): New function.
27762 (process_function_and_variable_attributes): Use it.
27763
27764 2011-01-26 Richard Guenther <rguenther@suse.de>
27765
27766 PR lto/47423
27767 * cgraphbuild.c (record_eh_tables): Record reference to personality
27768 function.
27769
27770 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
27771
27772 PR debug/45454
27773 * sel-sched.c (moveup_expr): Don't let debug insns prevent
27774 non-debug insns from moving up.
27775
27776 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27777
27778 PR target/40125
27779 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27780 t-dlldir{,-x} fragment for build and add it to tmake_file.
27781 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27782 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27783 * config/i386/t-dlldir: New file.
27784 (SHLIB_DLLDIR): Define.
27785 * config/i386/t-dlldir-x: New file.
27786 (SHLIB_DLLDIR): Define.
27787 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27788 (SHLIB_INSTALL): Use it.
27789
27790 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
27791
27792 PR target/47246
27793 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27794 lower bound of the allowed Thumb-2 coprocessor load/store
27795 index range to -256. Add explaining comment.
27796
27797 2011-01-25 Ian Lance Taylor <iant@google.com>
27798
27799 * godump.c (go_define): Improve lexing of macro expansion to only
27800 accept expressions which match Go spec.
27801
27802 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27803
27804 PR c++/43601
27805 * tree.c (handle_dll_attribute): Handle it.
27806 * doc/extend.texi (@item dllexport): Mention it.
27807 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27808
27809 2011-01-25 Ian Lance Taylor <iant@google.com>
27810
27811 PR tree-optimization/26854
27812 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27813 (decl_jump_unsafe): Move higher in file, with no other change.
27814 (bind): Set has_jump_unsafe_decl if appropriate.
27815 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27816 (check_earlier_gotos): Likewise.
27817 (c_check_switch_jump_warnings): Likewise.
27818
27819 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
27820
27821 * doc/invoke.texi (Warning Options): Add missing hyphen.
27822 (-fprofile-dir): Minor grammatical fixes.
27823 (-fbranch-probabilities): Likewise.
27824
27825 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27826
27827 PR debug/45136
27828 PR debug/45130
27829 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27830 debug insns.
27831 (no_real_insns_p, schedule_block, set_priorities): Drop special
27832 treatment of boundary debug insns.
27833 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27834 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27835 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27836 (BOUNDARY_DEBUG_INSN_P): Likewise.
27837 (SCHEDULE_DEBUG_INSN_P): Likewise.
27838 * sched-rgn.c (init_ready_list): Drop special treatment of
27839 boundary debug insns.
27840 * final.c (rest_of_clean-state): Clear notes' BB.
27841
27842 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27843
27844 * Makefile.in (LAMBDA_H): Removed.
27845 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27846 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27847 lambda-trans.o, and tree-loop-linear.o.
27848 (lto-symtab.o): Remove dependence on LAMBDA_H.
27849 (tree-loop-linear.o): Remove rule.
27850 (lambda-mat.o): Same.
27851 (lambda-trans.o): Same.
27852 (lambda-code.o): Same.
27853 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27854 (tree-vect-slp.o): Same.
27855 * hwint.h (gcd): Moved here.
27856 (least_common_multiple): Same.
27857 * lambda-code.c: Removed.
27858 * lambda-mat.c: Removed.
27859 * lambda-trans.c: Removed.
27860 * lambda.h: Removed.
27861 * tree-loop-linear.c: Removed.
27862 * lto-symtab.c: Do not include lambda.h.
27863 * omega.c (gcd): Removed.
27864 * passes.c (init_optimization_passes): Remove pass_linear_transform.
27865 * tree-data-ref.c (print_lambda_vector): Moved here.
27866 (lambda_vector_copy): Same.
27867 (lambda_matrix_copy): Same.
27868 (lambda_matrix_id): Same.
27869 (lambda_vector_first_nz): Same.
27870 (lambda_matrix_row_add): Same.
27871 (lambda_matrix_row_exchange): Same.
27872 (lambda_vector_mult_const): Same.
27873 (lambda_vector_negate): Same.
27874 (lambda_matrix_row_negate): Same.
27875 (lambda_vector_equal): Same.
27876 (lambda_matrix_right_hermite): Same.
27877 * tree-data-ref.h: Do not include lambda.h.
27878 (lambda_vector): Moved here.
27879 (lambda_matrix): Same.
27880 (dependence_level): Same.
27881 (lambda_transform_legal_p): Removed declaration.
27882 (lambda_collect_parameters): Same.
27883 (lambda_compute_access_matrices): Same.
27884 (lambda_vector_gcd): Same.
27885 (lambda_vector_new): Same.
27886 (lambda_vector_clear): Same.
27887 (lambda_vector_lexico_pos): Same.
27888 (lambda_vector_zerop): Same.
27889 (lambda_matrix_new): Same.
27890 * tree-flow.h (least_common_multiple): Removed declaration.
27891 * tree-parloops.c (lambda_trans_matrix): Moved here.
27892 (LTM_MATRIX): Same.
27893 (LTM_ROWSIZE): Same.
27894 (LTM_COLSIZE): Same.
27895 (LTM_DENOMINATOR): Same.
27896 (lambda_trans_matrix_new): Same.
27897 (lambda_matrix_vector_mult): Same.
27898 (lambda_transform_legal_p): Same.
27899 * tree-pass.h (pass_linear_transform): Removed declaration.
27900 * tree-ssa-loop.c (tree_linear_transform): Removed.
27901 (gate_tree_linear_transform): Removed.
27902 (pass_linear_transform): Removed.
27903 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27904 flag_loop_interchange.
27905
27906 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27907
27908 PR tree-optimization/47265
27909 PR tree-optimization/47443
27910 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27911 if name still has some uses.
27912
27913 2011-01-25 Martin Jambor <mjambor@suse.cz>
27914
27915 PR tree-optimization/47382
27916 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27917 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27918
27919 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
27920
27921 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27922 sjlj_except_unwind_info.
27923
27924 2011-01-25 Richard Guenther <rguenther@suse.de>
27925
27926 PR tree-optimization/47426
27927 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27928 visible functions results escape.
27929
27930 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27931
27932 PR target/45701
27933 * config/arm/arm.c (any_sibcall_uses_r3): New function.
27934 (arm_get_frame_offsets): Use it.
27935
27936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27937 Jakub Jelinek <jakub@redhat.com>
27938
27939 PR tree-optimization/47271
27940 * tree-if-conv.c (bb_postdominates_preds): New.
27941 (if_convertible_bb_p): Call bb_postdominates_preds.
27942 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27943 (predicate_scalar_phi): Call bb_postdominates_preds.
27944
27945 2011-01-25 Nick Clifton <nickc@redhat.com>
27946
27947 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27948 * config/rx/rx.c (rx_function_value): Likewise.
27949 (rx_promote_function_mode): Likewise.
27950 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27951 in order to make it legitimate.
27952 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27953 make sure that the first operand is the same as the result register.
27954 (addsi3_unspec): Delete.
27955 (subdi3): Do not accept immediate operands.
27956 (subdi3_internal): Likewise.
27957
27958 2011-01-25 Jeff Law <law@redhat.com>
27959
27960 PR rtl-optimization/37273
27961 * ira-costs.c (scan_one_insn): Detect constants living in memory and
27962 handle them like argument loads from stack slots. Do not double
27963 count memory for memory constants and argument loads from stack slots.
27964
27965 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27966
27967 PR tree-optimization/47427
27968 PR tree-optimization/47428
27969 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27970 coalesce if the new root var would be TREE_READONLY.
27971
27972 2011-01-25 Richard Guenther <rguenther@suse.de>
27973
27974 PR middle-end/47414
27975 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27976 correct type for TBAA.
27977
27978 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27979
27980 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27981 (close_phi_written_to_memory): Call for_each_index with
27982 dr_indices_valid_in_loop.
27983
27984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27985
27986 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27987 when it is initialized.
27988
27989 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27990
27991 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27992 call to graphite_find_data_references_in_stmt.
27993 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27994 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
27995 call to graphite_find_data_references_in_stmt.
27996 (analyze_drs_in_stmts): Same.
27997 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27998 in which the scalar analysis of indices is performed.
27999 (create_data_ref): Same. Update call to dr_analyze_indices.
28000 (find_data_references_in_stmt): Update call to create_data_ref.
28001 (graphite_find_data_references_in_stmt): Same.
28002 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28003 declaration.
28004 (create_data_ref): Same.
28005 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28006 call to create_data_ref.
28007
28008 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28009
28010 * graphite-sese-to-poly.c (build_poly_scop): Move
28011 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28012
28013 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28014
28015 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28016 VAR_DECL, PARM_DECL, and RESULT_DECL.
28017
28018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28019
28020 * graphite-dependences.c (reduction_dr_1): Allow several reductions
28021 in a reduction PBB.
28022 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28023 that have already been marked as PBB_IS_REDUCTION.
28024
28025 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28026
28027 * graphite-scop-detection.c (same_close_phi_node): New.
28028 (remove_duplicate_close_phi): New.
28029 (make_close_phi_nodes_unique): New.
28030 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28031
28032 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28033
28034 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28035 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28036 of both data references to be the same.
28037
28038 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28039
28040 * graphite-dependences.c (build_lexicographical_constraint): Remove
28041 the gdim parameter.
28042 (build_lexicographical_constraint): Adjust call to
28043 ppl_powerset_is_empty.
28044 (dependence_polyhedron): Same.
28045 (graphite_legal_transform_dr): Same.
28046 (graphite_carried_dependence_level_k): Same.
28047 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28048 parameter.
28049 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28050
28051 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28052
28053 * graphite-sese-to-poly.c
28054 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28055 (close_phi_written_to_memory): New.
28056 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28057 and unshare_expr.
28058
28059 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28060
28061 * doc/install.texi: Update the expected version number of PPL to 0.11.
28062 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28063 #if PPL_VERSION_MINOR < 11.
28064
28065 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28066
28067 * graphite-dependences.c: Include graphite-cloog-util.h.
28068 (new_poly_ddr): Inlined into dependence_polyhedron.
28069 (free_poly_ddr): Moved close by new_poly_ddr.
28070 (dependence_polyhedron_1): Renamed dependence_polyhedron.
28071 Early return NULL when ppl_powerset_is_empty returns true.
28072 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
28073 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
28074 (graphite_legal_transform_dr): Call new_poly_ddr.
28075 (graphite_carried_dependence_level_k): Same.
28076 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
28077 (dot_transformed_deps_stmt_1): Removed.
28078 (dot_deps_stmt_1): Call dot_deps_stmt_2.
28079 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
28080 (dot_deps_1): Call dot_deps_2.
28081 * Makefile.in (graphite-dependences.o): Add missing dependence on
28082 graphite-cloog-util.h.
28083
28084 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28085
28086 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28087 (build_lexicographical_constraint): Same.
28088 (dependence_polyhedron_1): Same.
28089 (graphite_legal_transform_dr): Same.
28090 (graphite_carried_dependence_level_k): Same.
28091 * graphite-ppl.c (ppl_powerset_is_empty): New.
28092 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28093 * tree-data-ref.c (dump_data_reference): Print the basic block index.
28094
28095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28096
28097 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28098 the "a followed by b" relation and document it.
28099
28100 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28101
28102 * graphite-dependences.c (build_lexicographical_constraint): Stop the
28103 iteration when the bag of constraints is empty.
28104
28105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28106
28107 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28108
28109 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28110
28111 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28112 nest and two loop depths as parameters.
28113 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28114 lst_perfect_nestify.
28115
28116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28117
28118 * graphite-dependences.c (print_pddr): Call
28119 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28120
28121 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28122
28123 * graphite-ppl.c (debug_gmp_value): New.
28124 * graphite-ppl.h (debug_gmp_value): Declared.
28125
28126 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
28127
28128 * doc/install.texi: Document availability of cloog-0.16.
28129
28130 2011-01-25 Vladimir Kargov <kargov@gmail.com>
28131
28132 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28133 invalid postdominance info.
28134
28135 2011-01-24 Jan Hubicka <jh@suse.cz>
28136
28137 PR c/21659
28138 * doc/extend.texi (weak pragma): Drop claim that it must
28139 appear before definition.
28140 * varasm.c (merge_weak, declare_weak): Only sanity check
28141 that DECL is not output at a time it is declared weak.
28142
28143 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28144
28145 * machmode.def: Fixed comments.
28146
28147 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28148
28149 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28150
28151 2011-01-24 Paul Koning <ni1d@arrl.net>
28152
28153 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28154 WORDS_BIG_ENDIAN.
28155
28156 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28157
28158 PR target/46519
28159 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28160 (block_info): Add scanned and prev.
28161 (move_or_delete_vzeroupper_2): Return if the basic block
28162 has been scanned and the upper 128bit state is unchanged
28163 from the last scan.
28164 (move_or_delete_vzeroupper_1): Return true if the exit
28165 state is changed.
28166 (move_or_delete_vzeroupper): Visit basic blocks using the
28167 work-list based algorithm based on vt_find_locations in
28168 var-tracking.c.
28169
28170 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28171
28172 2011-01-24 Nick Clifton <nickc@redhat.com>
28173
28174 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28175 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28176 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28177 then define __v850e1__.
28178 * doc/invoke.texi: Document -mv850es.
28179
28180 2011-01-24 Richard Henderson <rth@redhat.com>
28181
28182 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28183 compound unordered comparisons.
28184 * config/rx/rx.c (rx_split_fp_compare): Remove.
28185 * config/rx/rx-protos.h: Update.
28186 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28187 (cbranchsf4): Don't call rx_split_fp_compare.
28188 (*cbranchsf4): Use rx_split_cbranch.
28189 (*cmpsf): Don't accept "i" constraint.
28190 (*conditional_branch): Only valid after reload.
28191 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28192
28193 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28194
28195 PR target/47385
28196 * config/rs6000/altivec.md (vector constant splitters): Add
28197 support for creating vector single precision constants if -mvsx is
28198 used and we would create the constant using Altivec primitives.
28199
28200 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28201 Richard Sandiford <rdsandiford@googlemail.com>
28202
28203 PR rtl-optimization/47166
28204 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28205 mechanism for PRE_MODIFY and POST_MODIFY.
28206 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28207 reloadreg.
28208
28209 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28210
28211 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28212
28213 2011-01-22 Jan Hubicka <jh@suse.cz>
28214
28215 PR lto/47333
28216 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28217
28218 2011-01-22 Jan Hubicka <jh@suse.cz>
28219
28220 PR tree-optimization/43884
28221 PR lto/44334
28222 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28223 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28224
28225 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28226
28227 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28228 * config/s390/s390.c (s390_register_move_cost,
28229 s390_memory_move_cost): New.
28230 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28231
28232 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28233
28234 PR middle-end/47401
28235 * except.c (sjlj_assign_call_site_values): Move setting the
28236 crtl->uses_eh_lsda flag to ...
28237 (sjlj_mark_call_sites): ... here.
28238 (sjlj_emit_function_enter): Support NULL dispatch label.
28239 (sjlj_build_landing_pads): In a function with no landing pads
28240 that still has must-not-throw regions, generate code to register
28241 a personality function with empty LSDA.
28242
28243 2011-01-21 Richard Henderson <rth@redhat.com>
28244
28245 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28246
28247 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28248
28249 * compare-elim.c: New file.
28250 * Makefile.in (OBJS-common): Add it.
28251 (compare-elim.o): New.
28252 * common.opt (fcompare-elim): New.
28253 * opts.c (default_options_table): Add OPT_fcompare_elim.
28254 * tree-pass.h (pass_compare_elim_after_reload): New.
28255 * passes.c (init_optimization_passes): Add it.
28256 * recog.h: Protect against re-inclusion.
28257 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28258 * doc/invoke.texi (-fcompare-elim): Document it.
28259 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28260 * doc/tm.texi: Rebuild.
28261
28262 2011-01-22 Nick Clifton <nickc@redhat.com>
28263
28264 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28265 rx_split_fp_compare.
28266
28267 2011-01-22 Nick Clifton <nickc@redhat.com>
28268
28269 * config/rx/rx.md (UNSPEC_CONST): New.
28270 (deallocate_and_return): Wrap the amount popped off the stack in
28271 an UNSPEC_CONST in order to stop it being rejected by
28272 -mmax-constant-size.
28273 (pop_and_return): Add a "(return)" rtx.
28274 (call): Drop the immediate operand.
28275 (call_internal): Likewise.
28276 (call_value): Likewise.
28277 (call_value_internal): Likewise.
28278 (sibcall_internal): Likewise.
28279 (sibcall_value_internal): Likewise.
28280 (sibcall): Likewise. Generate an explicit call using
28281 sibcall_internal.
28282 (sibcall_value): Likewise.
28283 (mov<>): FAIL if a constant operand is not legitimate.
28284 (addsi3_unpsec): New pattern.
28285
28286 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28287 (ok_for_max_constant): New function.
28288 (gen_safe_add): New function.
28289 (rx_expand_prologue): Use gen_safe_add.
28290 (rx_expand_epilogue): Likewise.
28291 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28292 UNSPEC CONSTs.
28293
28294 2011-01-21 Jeff Law <law@redhat.com>
28295
28296 PR tree-optimization/47053
28297 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28298 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28299 statements are deleted.
28300 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28301 is nonempty, then purge dead edges and cleanup the CFG.
28302
28303 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28304
28305 PR debug/47402
28306 Temporarily revert:
28307 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28308 PR debug/47106
28309 * tree-dfa.c (create_var_ann): Mark variable as used.
28310
28311 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28312
28313 PR middle-end/45566
28314 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28315 notes from other section in hot/cold partitioning even if
28316 last_action is -3. Increment call_site_base.
28317
28318 PR rtl-optimization/47366
28319 * fwprop.c (forward_propagate_into): Return bool. If
28320 any changes are made, -fnon-call-exceptions is used and
28321 REG_EH_REGION note is present, call purge_dead_edges
28322 and return true if it purged anything.
28323 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28324 any EH edges were purged.
28325
28326 2011-01-21 Jeff Law <law@redhat.com>
28327
28328 PR rtl-optimization/41619
28329 * caller-save.c (setup_save_areas): Break out code to determine
28330 which hard regs are live across calls by examining the reload chains
28331 so that it is always used.
28332 Eliminate code which checked REG_N_CALLS_CROSSED.
28333
28334 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28335
28336 PR tree-optimization/47355
28337 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28338 NOP has non-debug uses beyond PHIs in new_bb.
28339
28340 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28341
28342 PR debug/47106
28343 * cfgexpand.c (account_used_vars_for_block): Only account vars
28344 that are annotated as used.
28345 (estimated_stack_frame_size): Don't set TREE_USED.
28346 * tree-dfa.c (create_var_ann): Mark variable as used.
28347
28348 2011-01-21 Richard Guenther <rguenther@suse.de>
28349
28350 PR middle-end/47395
28351 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28352
28353 2011-01-21 Richard Guenther <rguenther@suse.de>
28354
28355 PR tree-optimization/47365
28356 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28357 (vn_reference_lookup_pieces): Adjust.
28358 (vn_reference_lookup): Likewise.
28359 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28360 (vn_reference_lookup_3): Only look through kills if in
28361 VN_WALKREWRITE mode.
28362 (vn_reference_lookup_pieces): Adjust.
28363 (vn_reference_lookup): Likewise.
28364 (visit_reference_op_load): Likewise.
28365 (visit_reference_op_store): Likewise.
28366 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28367 (compute_avail): Likewise.
28368 (eliminate): Likewise.
28369
28370 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28371
28372 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28373 DECL_IGNORED_P non-reg vars if they are used.
28374
28375 PR tree-optimization/47391
28376 * varpool.c (const_value_known_p): Return false if
28377 decl is volatile.
28378
28379 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28380
28381 PR bootstrap/47215
28382 * config/i386/i386.c (ix86_local_alignment): Handle
28383 case for va_list_type_node is nil.
28384 (ix86_canonical_va_list_type): Likewise.
28385
28386 2011-01-21 Alan Modra <amodra@gmail.com>
28387
28388 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28389 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28390
28391 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28392
28393 * config/arm/arm.md (define_attr type): Rename f_load
28394 and f_store to f_fpa_load and f_fpa_store. Update.
28395 (write_conflict): Deal with rename fallout.
28396 (*push_fp_multi): Likewise.
28397 * config/arm/fpa.md (f_load): Use f_fpa_load.
28398 (f_store): Use f_fpa_store.
28399 (*movsf_fpa): Likewise.
28400 (*movdf_fpa): Likewise.
28401 (*movxf_fpa): Likewise.
28402 (*thumb2_movsf_fpa): Likewise.
28403 (*thumb2_movdf_fpa): Likewise.
28404 (*thumb2_movxf_fpa): Likewise.
28405 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28406 f_loadd and f_stored.
28407 (*thumb2_movdi_vfp): Likewise.
28408 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28409 (*thumb2_movsi_vfp): Likewise.
28410 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28411 Use f_loads instead of f_load.
28412 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28413
28414 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28415
28416 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28417 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28418 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28419 (xtensa_mode_dependent_address_p): New function.
28420 (constantpool_address_p): Make static. Change return type to bool.
28421 Change argument type to const_rtx. Use CONST_INT_P predicate.
28422
28423 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28424
28425 PR debug/46583
28426 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28427
28428 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28429
28430 PR debug/47283
28431 * cfgexpand.c (expand_debug_expr): Instead of generating
28432 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28433 etc. handling.
28434
28435 2011-01-20 Richard Guenther <rguenther@suse.de>
28436
28437 PR middle-end/47370
28438 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28439 the pointer operand of MEM_REFs.
28440
28441 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28442
28443 PR tree-optimization/46130
28444 * ipa-split.c (consider_split): If return_bb contains non-virtual
28445 PHIs other than for retval or if split_function would not adjust it,
28446 refuse to split.
28447
28448 2011-01-20 Richard Guenther <rguenther@suse.de>
28449
28450 PR tree-optimization/47167
28451 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28452 Revert previous change, only avoid enumeral type changes.
28453
28454 2011-01-19 Mike Stump <mikestump@comcast.net>
28455
28456 * doc/tm.texi.in (BRANCH_COST): Englishify.
28457 * doc/tm.texi (BRANCH_COST): Likewise.
28458
28459 2011-01-19 Dodji Seketeli <dodji@redhat.com>
28460
28461 PR c++/47291
28462 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28463 (gen_scheduled_generic_parms_dies): New functions.
28464 (gen_struct_or_union_type_die): Schedule template parameters DIEs
28465 generation for the end of CU compilation.
28466 (dwarf2out_finish): Generate template parameters DIEs here.
28467
28468 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28469
28470 PR debug/46240
28471 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28472 debug bind stmt on merge edges.
28473
28474 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28475
28476 PR debug/47079
28477 PR debug/46724
28478 * function.c (instantiate_expr): Instantiate incoming rtl of
28479 implicit arguments, and recurse on VALUE_EXPRs.
28480 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28481 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28482
28483 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28484
28485 * c-parser.c (c_parser_for_statement): Initialize
28486 collection_expression.
28487
28488 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28489
28490 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28491
28492 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28493
28494 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28495 (LINK_SHLIB_SPEC): Don't use %(link_path).
28496 (SUBTARGET_EXTRA_SPECS): Remove link_path.
28497
28498 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28499
28500 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28501 (NO_SHARED_LIB_SUPPORT): Remove.
28502 (LINK_SHLIB_SPEC): Remove one conditional definition.
28503
28504 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28505
28506 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28507 %{call_shared}.
28508 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28509 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28510 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28511 %{call_shared} and conditionals on these options not being passed.
28512 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28513 %{call_shared}.
28514
28515 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28516
28517 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28518 simplify.
28519
28520 * ipa-split.c: Spelling fixes.
28521
28522 2011-01-19 Richard Henderson <rth@redhat.com>
28523
28524 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28525 (*mulsi3): Likewise.
28526
28527 * longlong.h [__mn10300__] (count_leading_zeros): New.
28528 [__mn10300__] (umul_ppmm, smul_ppmm): New.
28529 [__mn10300__] (add_ssaaaa, subddmmss): New.
28530 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28531 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28532
28533 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28534
28535 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28536
28537 2011-01-19 Richard Henderson <rth@redhat.com>
28538
28539 * config/mn10300/mn10300.md (addsi3_flags): New.
28540 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28541 (subsi3_flags, subc_internal, subdi3): New.
28542 (subdi3_internal, *subdi3_degenerate): New.
28543 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28544
28545 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28546 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28547 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
28548 * config/mn10300/mn10300-protos.h: Update.
28549 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28550 (return_ret): Likewise. Rename from return_internal_regs.
28551 (return_internal): Remove.
28552
28553 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28554 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28555 (mn10300_legitimate_constant_p): Likewise.
28556 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28557 (mn10300_frame_size): New.
28558 (mn10300_expand_prologue): Use it.
28559 (mn10300_expand_epilogue): Likewise.
28560 (mn10300_initial_offset): Likewise.
28561 * config/mn10300/mn10300-protos.h: Update.
28562 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28563 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28564 (prologue, epilogue, return_internal): Tidy output code.
28565 (mn10300_store_multiple_operation, return): Likewise.
28566 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28567 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28568 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28569 (load_pic, am33_load_pic): New.
28570 (mn10300_load_pic0, mn10300_load_pic1): New.
28571
28572 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28573 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28574 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28575 (cc_flags_for_mode, cc_flags_for_code): New.
28576 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28577 overflow flag is not valid. Validate that the flags we need
28578 for the comparison are valid.
28579 (mn10300_output_cmp): Remove.
28580 (mn10300_output_add): New.
28581 (mn10300_select_cc_mode): Use cc_flags_for_code.
28582 (mn10300_split_cbranch): New.
28583 (mn10300_match_ccmode): New.
28584 (mn10300_split_and_operand_count): New.
28585 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28586 to the function.
28587 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28588 (addsi3): ... here. Use mn10300_output_add.
28589 (*addsi3_flags): New.
28590 (*am33_subsi3, *mn10300_subsi3): Merge...
28591 (subsi3): ... here. Use attribute isa.
28592 (*subsi3_flags): New.
28593 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
28594 when possible.
28595 (*am33_andsi3, *mn10300_andsi3): Merge...
28596 (andsi3): ... here.
28597 (*andsi3_flags): New.
28598 (andsi3 splitters): New.
28599 (*am33_iorsi3, *mn10300_iorsi3): Merge...
28600 (iorsi3): ... here.
28601 (*iorsi3_flags): New.
28602 (*am33_xorsi3, *mn10300_xorsi3): Merge...
28603 (xorsi3): ... here.
28604 (*xorsi3_flags): New.
28605 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28606 (one_cmplsi2): ... here.
28607 (*one_cmplsi2_flags): New.
28608 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
28609 instead of "dax" in constraints. Use mn10300_split_cbranch.
28610 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
28611 use matching constraints to eliminate a self-comparison.
28612 (*integer_conditional_branch): Rename from integer_conditional_branch.
28613 Use int_mode_flags to match CC_REG.
28614 (*cbranchsi4_btst, *btstsi): New.
28615 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
28616 mn10300_split_cbranch.
28617 (*am33_cmpsf): Rename from am33_cmpsf.
28618 (*float_conditional_branch): Rename from float_conditional_branch.
28619 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28620 (zero_extendqisi2): ... here.
28621 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28622 (zero_extendhisi2): ... here.
28623 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28624 (extendqisi2): ... here.
28625 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28626 (extendhisi2): ... here.
28627 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28628 (ashlsi3): ... here.
28629 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28630 (lshrsi3): ... here.
28631 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28632 (ashrsi3): ... here.
28633 (consecutive add peephole): Remove.
28634 * config/mn10300/predicates.md (label_ref_operand): New.
28635 (int_mode_flags): New.
28636 (CCZN_comparison_operator): New.
28637
28638 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28639 (throughput_42_latency_43): New reservation.
28640 (mulsidi3, umulsidi3): New expanders.
28641 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
28642 the MDR register to allocation; separately allocate the low and
28643 high parts of the DImode result.
28644 (umulsidi3_internal): Similarly.
28645 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28646 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
28647 (udivsi3, umodsi3): Remove.
28648 (udivmodsi4, divmodsi4): New expanders.
28649 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
28650 (*divmodsi4): Simiarly.
28651 (ext_internal): New.
28652
28653 * config/mn10300/constraints.md ("z"): New constraint.
28654 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28655 (FIXED_REGISTERS): Don't fix MDR.
28656 (CALL_USED_REGSITERS): Reformat nicely.
28657 (REG_ALLOC_ORDER): Add MDR.
28658 (enum regclass): Add MDR_REGS.
28659 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28660 (IRA_COVER_CLASSES): Add MDR_REGS.
28661 (REGNO_REG_CLASS): Handle MDR_REG.
28662 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28663 (mn10300_register_move_cost): Likewise.
28664 * config/mn10300/mn10300.md (MDR_REG): New.
28665 (*movsi_internal): Handle moves to/from MDR_REGS.
28666
28667 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28668 POST_MODIFY.
28669 (mn10300_secondary_reload): Tidy combination reload classes.
28670 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28671 addresses for AM33. Allow symbolic offsets for reg+imm.
28672 (mn10300_regno_in_class_p): New.
28673 (mn10300_legitimize_reload_address): New.
28674 * config/mn10300/mn10300.h (enum reg_class): Remove
28675 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28676 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
28677 SP_OR_GENERAL_REGS.
28678 (REG_CLASS_NAMES): Update to match.
28679 (REG_CLASS_CONTENTS): Likewise.
28680 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28681 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28682 (REGNO_IN_RANGE_P): Remove.
28683 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28684 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28685 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28686 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28687 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28688 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28689 (REGNO_GENERAL_P): New.
28690 (HAVE_POST_MODIFY_DISP): New.
28691 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28692 (LEGITIMIZE_RELOAD_ADDRESS): New.
28693 * config/mn10300/mn10300-protos.h: Update.
28694
28695 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28696 DATA_REGS for AM33 stack-pointer destination.
28697 (mn10300_preferred_output_reload_class): Likewise.
28698 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28699 into a form appropriate for ...
28700 (TARGET_SECONDARY_RELOAD): New.
28701 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28702 * config/mn10300/mn10300-protos.h: Update.
28703 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28704 reload_insi; use the "A" constraint for the scratch; handle AM33
28705 moves of sp to non-address registers.
28706
28707 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28708 (*movqi_internal): ... here.
28709 (*am33_movhi, *mn10300_movhi): Merge into...
28710 (*movhi_internal): ... here.
28711 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
28712 as the source/destination of moves from/to SP.
28713 (movsf): Only allow for AM33-2.
28714 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28715 any integer constant constraint. Only allow for AM33-2. Tidy
28716 all of the alternative outputs.
28717 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28718 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
28719 for MN103.
28720 (udivsi3, umodsi3): New patterns for MN103 only.
28721
28722 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
28723
28724 * doc/tm.texi.in: Spell out that a lack of register class unions
28725 can lead to ICEs.
28726 * doc/tm.texi: Regenerate.
28727
28728 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28729
28730 PR rtl-optimization/47337
28731 * dce.c (check_argument_store): New function.
28732 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
28733
28734 PR tree-optimization/47290
28735 * tree-eh.c (infinite_empty_loop_p): New function.
28736 (cleanup_empty_eh): Use it.
28737
28738 2011-01-18 Steve Ellcey <sje@cup.hp.com>
28739
28740 PR target/46997
28741 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28742 (a64_expand_widen_sum): Ditto.
28743 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28744 (vec_extract_evenodd_help): Ditto.
28745 (vec_extract_evenv4hi): Ditto.
28746 (vec_extract_oddv4hi): Ditto.
28747 (vec_extract_evenv2si): Ditto.
28748 (vec_extract_oddv2si): Ditto.
28749 (vec_extract_evenv2sf): Ditto.
28750 (vec_extract_oddv2sf): Ditto.
28751 (vec_pack_trunc_v4hi: Ditto.
28752 (vec_pack_trunc_v2si): Ditto.
28753 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28754 (vec_interleave_highv8qi): Ditto.
28755 (mix1_r): Ditto.
28756 (vec_extract_oddv8qi): Ditto.
28757 (vec_interleave_lowv4hi): Ditto.
28758 (vec_interleave_highv4hi): Ditto.
28759 (vec_interleave_lowv2si): Ditto.
28760 (vec_interleave_highv2si): Ditto.
28761
28762 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28763
28764 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28765 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28766 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
28767 (pa_c_mode_for_suffix): New.
28768 (TARGET_EXPAND_BUILTIN): Define.
28769 (TARGET_C_MODE_FOR_SUFFIX): Define.
28770 (pa_builtins): Define.
28771 (pa_init_builtins): Register __float128 type and init new support
28772 builtins.
28773 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28774 * config/pa/quadlib.c (_U_Qfcopysign): New.
28775
28776 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
28777
28778 PR middle-end/46894
28779 * explow.c (allocate_dynamic_stack_space): Do not assume more than
28780 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28781 are defined.
28782
28783 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28784
28785 PR tree-optimization/47179
28786 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28787 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28788
28789 2011-01-18 Richard Guenther <rguenther@suse.de>
28790
28791 PR rtl-optimization/47216
28792 * emit-rtl.c: Include tree-flow.h.
28793 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28794 of replicating it with different semantics.
28795 * Makefile.in (emit-rtl.o): Adjust.
28796
28797 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28798
28799 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28800 (cortex_a9_dp): Handle neon types correctly.
28801
28802 2011-01-18 Jakub Jelinek <jakub@redhat.com>
28803
28804 PR rtl-optimization/47299
28805 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28806 subtarget. Use normal multiplication if both operands are constants.
28807 * expmed.c (expand_widening_mult): Don't try to optimize constant
28808 multiplication if op0 has VOIDmode. Convert op1 constant to mode
28809 before using it.
28810
28811 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28812
28813 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
28814 spacing after 'e.g.', typos, comma, hyphenation.
28815
28816 2011-01-17 Richard Henderson <rth@redhat.com>
28817
28818 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28819 (rx_restricted_mem_operand): New.
28820 (rx_shift_operand): Use register_operand.
28821 (rx_source_operand, rx_compare_operand): Likewise.
28822 * config/rx/rx.md (addsi3_flags): New expander.
28823 (adddi3): Rewrite as expander.
28824 (adc_internal, *adc_flags, adddi3_internal): New patterns.
28825 (subsi3_flags): New expander.
28826 (subdi3): Rewrite as expander.
28827 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28828
28829 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28830 (rx_init_builtins): Remove sat builtin.
28831 (rx_expand_builtin): Likewise.
28832 * config/rx/rx.md (ssaddsi3): New.
28833 (*sat): Rename from sat. Represent the CC_REG input.
28834
28835 * config/rx/predicates.md (rshift_operator): New.
28836 * config/rx/rx.c (rx_expand_insv): Remove.
28837 * config/rx/rx-protos.h: Update.
28838 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
28839 operand to the canonical position.
28840 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28841 (*bitclr, *bitclr_in_memory): Similarly.
28842 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28843 (insv): Retain the zero_extract in the expansion.
28844
28845 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28846 (bswaphi2, bitinvert, revw): Likewise.
28847
28848 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28849 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28850 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28851 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28852 (bitset, bitset_in_memory): Likewise.
28853 (bitinvert, bitinvert_in_memory): Likewise.
28854 (bitclr, bitclr_in_memory): Likewise.
28855 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28856 (rx_strend, rx_cmpstrn): Likewise.
28857 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
28858 (bitop peep2 patterns): Remove.
28859
28860 * config/rx/rx.c (rx_match_ccmode): New.
28861 * config/rx/rx-protos.h: Update.
28862 * config/rx/rx.md (abssi2): Clobber, don't set flags.
28863 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28864 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28865 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28866 (fix_truncsfsi2, floatsisf2): Likewise.
28867 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28868 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28869 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28870 (*subsi3_flags, *xorsi3_flags): New.
28871
28872 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28873
28874 * config/rx/rx.c (rx_print_operand): Remove workaround for
28875 unsplit comparison operations.
28876
28877 * config/rx/rx.md (movsicc): Split after reload.
28878 (*movsicc): Merge *movsieq and *movsine via match_operator.
28879 (*stcc): New pattern.
28880
28881 * config/rx/rx.c (rx_float_compare_mode): Remove.
28882 * config/rx/rx.h (rx_float_compare_mode): Remove.
28883 * config/rx/rx.md (cstoresi4): Split after reload.
28884 (*sccc): New pattern.
28885
28886 * config/rx/predicates.md (label_ref_operand): New.
28887 (rx_z_comparison_operator): New.
28888 (rx_zs_comparison_operator): New.
28889 (rx_fp_comparison_operator): New.
28890 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28891 Validate that the flags are set properly for the comparison.
28892 (rx_gen_cond_branch_template): Remove.
28893 (rx_cc_modes_compatible): Remove.
28894 (mode_from_flags): New.
28895 (flags_from_code): Rename from flags_needed_for_conditional.
28896 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28897 (rx_select_cc_mode): Likewise.
28898 (rx_split_fp_compare): New.
28899 (rx_split_cbranch): New.
28900 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28901 (*cbranchsi4): Use match_operator and rx_split_cbranch.
28902 (*cbranchsf4): Similarly.
28903 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
28904 match_operator and rx_split_cbranch.
28905 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28906 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
28907 (*cmpsi): Rename from cmpsi.
28908 (*tstsi): Rename from tstsi.
28909 (*cmpsf): Rename from cmpsf; use CC_Fmode.
28910 (*conditional_branch): Rename from conditional_branch.
28911 (*reveresed_conditional_branch): Remove.
28912 (b<code>): Remove expander.
28913 * config/rx/rx-protos.h: Update.
28914
28915 * config/rx/rx.c (rx_compare_redundant): Remove.
28916 * config/rx/rx.md (cmpsi): Don't use it.
28917 * config/rx/rx-protos.h: Update.
28918
28919 * config/rx/rx-modes.def (CC_F): New mode.
28920 * config/rx/rx.c (rx_select_cc_mode): New.
28921 * config/rx/rx.h (SELECT_CC_MODE): Use it.
28922 * config/rx/rx-protos.h: Update.
28923
28924 2011-01-17 Richard Henderson <rth@redhat.com>
28925
28926 * except.c (dump_eh_tree): Fix stray ; after for statement.
28927
28928 2011-01-17 Richard Guenther <rguenther@suse.de>
28929
28930 PR tree-optimization/47313
28931 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28932 handling before copying the body. Properly deal with
28933 by-reference result in SSA form.
28934
28935 2011-01-17 Ian Lance Taylor <iant@google.com>
28936
28937 PR target/47219
28938 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28939 (struct_value_alias_set): Don't define.
28940 (sparc_option_override): Don't set sparc_sr_alias_set and
28941 struct_value_alias_set.
28942 (save_or_restore_regs): Use gen_frame_mem rather than calling
28943 set_mem_alias_set.
28944 (sparc_struct_value_rtx): Likewise.
28945
28946 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
28947
28948 PR target/47318
28949 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28950 (_mm_maskstore_pd): Likewise.
28951 (_mm_maskload_ps): Likewise.
28952 (_mm_maskstore_ps): Likewise.
28953 (_mm256_maskload_pd): Change mask to __m256i.
28954 (_mm256_maskstore_pd): Likewise.
28955 (_mm256_maskload_ps): Likewise.
28956 (_mm256_maskstore_ps): Likewise.
28957
28958 * config/i386/i386-builtin-types.def: Updated.
28959 (ix86_expand_special_args_builtin): Likewise.
28960
28961 * config/i386/i386.c (bdesc_special_args): Update
28962 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28963 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28964 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28965 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28966
28967 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28968 Use <avxpermvecmode> on mask register.
28969 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28970
28971 2011-01-17 Olivier Hainque <hainque@adacore.com>
28972 Michael Haubenwallner <michael.haubenwallner@salomon.at>
28973 Eric Botcazou <ebotcazou@adacore.com>
28974
28975 PR target/46655
28976 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28977 if <= USHRT_MAX in 32-bit mode.
28978
28979 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28980
28981 * doc/install.texi (Configuration, Specific): Wrap long
28982 lines in examples. Allow line wrapping in long options
28983 and URLs where beneficial for PDF output.
28984
28985 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
28986
28987 * config/mips/mips.c (mips_classify_symbol): Don't return
28988 SYMBOL_PC_RELATIVE for nonlocal labels.
28989
28990 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
28991
28992 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28993
28994 2011-01-15 Jan Hubicka <jh@suse.cz>
28995
28996 PR tree-optimization/47276
28997 * ipa.c (function_and_variable_visibility): Do not try to mark alias
28998 declarations as needed.
28999
29000 2011-01-15 Martin Jambor <mjambor@suse.cz>
29001
29002 * common.opt (fdevirtualize): New flag.
29003 * doc/invoke.texi (Option Summary): Document it.
29004 * opts.c (default_options_table): Add devirtualize flag.
29005 * ipa-prop.c (detect_type_change): Return immediately if
29006 devirtualize flag is not set.
29007 (detect_type_change_ssa): Likewise.
29008 (compute_known_type_jump_func): Likewise.
29009 (ipa_analyze_virtual_call_uses): Likewise.
29010
29011 2011-01-14 Martin Jambor <mjambor@suse.cz>
29012
29013 PR tree-optimization/45934
29014 PR tree-optimization/46302
29015 * ipa-prop.c (type_change_info): New type.
29016 (stmt_may_be_vtbl_ptr_store): New function.
29017 (check_stmt_for_type_change): Likewise.
29018 (detect_type_change): Likewise.
29019 (detect_type_change_ssa): Likewise.
29020 (compute_complex_assign_jump_func): Check for dynamic type change.
29021 (compute_complex_ancestor_jump_func): Likewise.
29022 (compute_known_type_jump_func): Likewise.
29023 (compute_scalar_jump_functions): Likewise.
29024 (ipa_analyze_virtual_call_uses): Likewise.
29025 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29026
29027 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29028
29029 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29030 * config/i386/i386.opt (msse5): New Alias.
29031
29032 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29033
29034 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29035 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29036 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29037 * config/sparc/sparc.h (CC1_SPEC): Likewise.
29038
29039 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29040
29041 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29042 -mcpu options.
29043 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29044 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29045 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29046 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29047 Likewise.
29048 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29049
29050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29051
29052 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29053
29054 2011-01-14 Mike Stump <mikestump@comcast.net>
29055
29056 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29057 * config/fr30/fr30.md: Likweise
29058 (movsi_push): Likewise.
29059 (movsi_pop): Likewise.
29060 (enter_func): Likewise.
29061 * config/moxie/moxie.md (movsi_push): Likewise.
29062 (movsi_pop): Likewise.
29063
29064 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29065
29066 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29067 %{no_archive} %{exact_version}.
29068 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29069 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29070 %{no_archive} %{exact_version}.
29071 * config/mips/openbsd.h (LINK_SPEC): Likewise.
29072 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29073 * config/mips/vxworks.h: Likewise.
29074
29075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29076
29077 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29078
29079 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29080
29081 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29082 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29083
29084 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29085
29086 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29087 -nodefaultlib.
29088
29089 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29090
29091 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29092 for mcpu not cpu.
29093 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29094 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29095 not cpu.
29096 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29097 Don't handle -shlib.
29098
29099 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29100
29101 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29102 (CC1_SPEC): Don't handle -profile.
29103
29104 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29105
29106 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29107 * config/mips/mips.h (CC1_SPEC): Likewise.
29108
29109 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29110
29111 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29112 * config/mips/mips.h (CC1_SPEC): Likewise.
29113
29114 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29115
29116 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29117 * config/m32r/linux.h (LINK_SPEC): Likewise.
29118 * config/mips/linux.h (LINK_SPEC): Likewise.
29119 * config/mips/linux64.h (LINK_SPEC): Likewise.
29120 * config/sparc/linux.h (LINK_SPEC): Likewise.
29121 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29122 LINK_SPEC): Likewise.
29123 * config/xtensa/linux.h (LINK_SPEC): Likewise.
29124
29125 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29126
29127 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29128 %{version:-v}.
29129 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29130
29131 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29132
29133 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29134 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29135
29136 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29137
29138 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29139
29140 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29141
29142 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29143 supports -Bstatic/-Bdynamic.
29144 * configure: Regenerate.
29145
29146 2011-01-14 Jan Hubicka <jh@suse.cz>
29147 Jack Howarth <howarth@bromo.med.uc.edu>
29148
29149 PR target/46037
29150 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29151 when checking debug_info_level. Test write_symbols instead of
29152 debug_hooks->var_location when setting flag_var_tracking_uninit.
29153
29154 2011-01-14 Richard Guenther <rguenther@suse.de>
29155
29156 PR tree-optimization/47179
29157 * target.def (ref_may_alias_errno): New target hook.
29158 * targhooks.h (default_ref_may_alias_errno): Declare.
29159 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29160 (default_ref_may_alias_errno): New function.
29161 * target.h (struct ao_ref_s): Declare.
29162 * tree-ssa-alias.c: Include target.h.
29163 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29164 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29165 (targhooks.o): Likewise.
29166 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29167 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29168
29169 2011-01-14 Richard Guenther <rguenther@suse.de>
29170
29171 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29172
29173 2011-01-14 Richard Guenther <rguenther@suse.de>
29174
29175 PR tree-optimization/47280
29176 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29177 return CFG changes.
29178 (tree_ssa_forward_propagate_single_use_vars): Deal with
29179 CFG changes from associate_plusminus.
29180
29181 2011-01-14 Richard Guenther <rguenther@suse.de>
29182
29183 PR middle-end/47281
29184 Revert
29185 2011-01-11 Richard Guenther <rguenther@suse.de>
29186
29187 PR tree-optimization/46076
29188 * tree-ssa.c (useless_type_conversion_p): Conversions from
29189 unprototyped to empty argument list function types are useless.
29190
29191 2011-01-14 Richard Guenther <rguenther@suse.de>
29192
29193 PR tree-optimization/47286
29194 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29195
29196 2011-01-14 Martin Jambor <mjambor@suse.cz>
29197
29198 PR middle-end/46823
29199 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29200
29201 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29202
29203 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29204 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29205 * config/xtensa/xtensa.c (xtensa_libcall_value,
29206 xtensa_function_value_regno_p): New functions.
29207 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29208
29209 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29210
29211 PR c++/47213
29212 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29213 PE specific hook.
29214 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29215 New function prototype.
29216 * config/i386/winnt.c (i386_pe_assemble_visibility):
29217 Warn only if attribute was specified by user.
29218
29219 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29220
29221 PR target/47251
29222 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29223 floating point.
29224 (floatunsdidf2_fcfidu): Ditto.
29225
29226 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29227
29228 * config/s390/s390.c (print_operand_address): Replace 'error' with
29229 'output_operand_lossage'.
29230 (print_operand): Likewise.
29231
29232 2011-01-13 Jeff Law <law@redhat.com>
29233
29234 PR rtl-optimization/39077
29235 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29236 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29237 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29238 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29239 * gcse.c (prune_insertions_deletions): New function.
29240 (compute_pre_data): Use it.
29241
29242 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29243
29244 PR debug/PR46973
29245 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29246 static function.
29247 (prune_unused_types_mark): Use it.
29248
29249 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29250
29251 PR rtl-optimization/45352
29252 * sel-sched.c: Update copyright years.
29253 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29254 in the advancing loop when we have issued issue_rate insns.
29255
29256 2011-01-12 Richard Henderson <rth@redhat.com>
29257
29258 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29259 (TARGET_MD_ASM_CLOBBERS): New.
29260
29261 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29262 (TARGET_DELEGITIMIZE_ADDRESS): New.
29263
29264 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29265 (clzsi2, *bsch): New patterns.
29266
29267 * config/mn10300/mn10300.md (INT): New mode iterator.
29268 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29269
29270 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29271 flag_split_wide_types.
29272
29273 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29274 (mn10300_trampoline_init): Rewrite without a template, an immediate
29275 load and a direct branch.
29276 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29277
29278 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29279
29280 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29281 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29282 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29283 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29284
29285 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29286
29287 PR debug/47209
29288 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29289 of type.
29290
29291 2011-01-12 Jan Hubicka <jh@suse.cz>
29292
29293 PR driver/47244
29294 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29295 (PLUGIN_COND_CLOSE): New macro.
29296 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29297
29298 2011-01-12 Richard Guenther <rguenther@suse.de>
29299
29300 PR lto/47259
29301 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29302 register variables in a MEM_REF.
29303
29304 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29305
29306 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29307 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29308 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29309 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29310 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29311 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29312 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29313 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29314 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29315 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29316 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29317 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29318 * config/gnu-user.h: New. Copied from linux.h.
29319 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29320 GNU_USER_TARGET_STARTFILE_SPEC.
29321 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29322 GNU_USER_TARGET_ENDFILE_SPEC.
29323 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29324 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29325 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29326 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29327 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29328 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29329 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29330 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29331 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29332 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29333 * config/arm/linux-eabi.h (CC1_SPEC): Use
29334 GNU_USER_TARGET_CC1_SPEC.
29335 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29336 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29337 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29338 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29339 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29340 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29341 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29342 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29343
29344 2011-01-12 Richard Guenther <rguenther@suse.de>
29345
29346 PR other/46946
29347 * doc/invoke.texi (ffast-math): Document it is turned on
29348 with -Ofast.
29349
29350 2011-01-12 Jan Hubicka <jh@suse.cz>
29351
29352 PR tree-optimization/47233
29353 * opts.c (common_handle_option): Disable ipa-reference with profile
29354 feedback.
29355
29356 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29357
29358 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29359 error message.
29360
29361 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29362
29363 * c-parser.c (c_lex_one_token): Updated and reindented some
29364 comments. No changes in code.
29365
29366 2011-01-11 Ian Lance Taylor <iant@google.com>
29367
29368 * godump.c (go_output_var): Don't output the variable if there is
29369 already a type with the same name.
29370
29371 2011-01-11 Ian Lance Taylor <iant@google.com>
29372
29373 * godump.c (go_format_type): Don't generate float80.
29374
29375 2011-01-11 Richard Henderson <rth@redhat.com>
29376
29377 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29378 declaration. Rewrite for both speed and size.
29379 (mn10300_address_cost_1): Remove.
29380 (mn10300_register_move_cost): New.
29381 (mn10300_memory_move_cost): New.
29382 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29383 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29384 extensions, shifts, BSWAP, CLZ.
29385 (mn10300_wide_const_load_uses_clr): Remove.
29386 (TARGET_REGISTER_MOVE_COST): New.
29387 (TARGET_MEMORY_MOVE_COST): New.
29388 * config/mn10300/mn10300-protos.h: Update.
29389 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29390
29391 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29392 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29393 * config/mn10300/mn10300-protos.h: Update.
29394 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29395 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29396 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29397 (*test_int_bitfield, *test_byte_bitfield): Remove.
29398 (*bit_test, *subreg_bit_test): Remove.
29399 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29400
29401 * config/mn10300/constraints.md ("c"): Rename from "A".
29402 ("A", "D"): New constraint letters.
29403 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29404 (fmssf4, fnmasf4, fnmssf4): Likewise.
29405
29406 * config/mn10300/mn10300.md (isa): New attribute.
29407 (enabled): New attribute.
29408
29409 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29410 (abssf2, negsf2): Define only for hardware fp.
29411 (sqrtsf2): Reformat.
29412 (addsf3, subsf3, mulsf3): Merge expander and insn.
29413
29414 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29415 (DEBUGGER_AUTO_OFFSET): Remove.
29416 (DEBUGGER_ARG_OFFSET): Remove.
29417
29418 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29419 Emit register stores with the same offsets as the hardware.
29420 (mn10300_store_multiple_operation): Don't check that the register
29421 save offsets are monotonic.
29422 * config/mn10300/mn10300-protos.h: Update.
29423
29424 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29425
29426 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29427 in terms of the value on the stack, not the MDR register.
29428
29429 2011-01-11 Jan Hubicka <jh@suse.cz>
29430
29431 PR lto/45721
29432 PR lto/45375
29433 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29434 (symbol_alias_set_destroy, symbol_alias_set_contains,
29435 propagate_aliases_backward): Declare.
29436 * lto-streamer-out.c (struct sets): New sturcture.
29437 (trivally_defined_alias): New function.
29438 (output_alias_pair_p): Rewrite.
29439 (output_unreferenced_globals): Fix output of alias pairs.
29440 (produce_symtab): Likewise.
29441 * ipa.c (function_and_variable_visibility): Set weak alias destination
29442 as needed in lto.
29443 * varasm.c (symbol_alias_set_t): Remove.
29444 (symbol_alias_set_destroy): Export.
29445 (propagate_aliases_forward, propagate_aliases_backward): New functions
29446 based on ...
29447 (compute_visible_aliases): ... this one; remove.
29448 (trivially_visible_alias): New
29449 (trivially_defined_alias): New.
29450 (remove_unreachable_alias_pairs): Rewrite.
29451 (finish_aliases_1): Reorganize code checking if alias is defined.
29452 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29453 in LTO mode.
29454
29455 2011-01-11 Richard Guenther <rguenther@suse.de>
29456
29457 PR tree-optimization/46076
29458 * tree-ssa.c (useless_type_conversion_p): Conversions from
29459 unprototyped to empty argument list function types are useless.
29460
29461 2011-01-11 Richard Guenther <rguenther@suse.de>
29462
29463 PR middle-end/45235
29464 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29465 volatile MEMs as MEM_READONLY_P.
29466
29467 2011-01-11 Richard Guenther <rguenther@suse.de>
29468
29469 PR tree-optimization/47239
29470 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29471
29472 2011-01-11 Jeff Law <law@redhat.com>
29473
29474 PR tree-optimization/47086
29475 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29476 IVs from statements that might throw.
29477
29478 2011-01-10 Jan Hubicka <jh@suse.cz>
29479
29480 PR lto/45375
29481 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29482
29483 2011-01-10 Jan Hubicka <jh@suse.cz>
29484
29485 PR lto/45375
29486 * profile.c (read_profile_edge_counts): Ignore profile inconistency
29487 when correcting profile.
29488
29489 2011-01-10 Jan Hubicka <jh@suse.cz>
29490
29491 PR lto/46083
29492 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29493 DECL_FINI_PRIORITY.
29494 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29495 Restore DECL_FINI_PRIORITY.
29496
29497 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29498
29499 * doc/gimple.texi: Fix quoting of multi-word return values in
29500 @deftypefn statements. Ensure presence of return value. Wrap
29501 overlong @deftypefn lines.
29502 (is_gimple_operand, is_gimple_min_invariant_address): Remove
29503 descriptions of removed functions.
29504 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29505 of multi-word return value in @deftypefn statement.
29506
29507 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29508
29509 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29510 (Conditional Expressions, Logical Operators)
29511 (Statement and operand traversals): Do not indent smallexample
29512 code. Fix duplicate function argument in example.
29513
29514 2011-01-10 Jeff Law <law@redhat.com>
29515
29516 PR tree-optimization/47141
29517 * ipa-split.c (split_function): Handle case where we are
29518 returning a value and the return block has a virtual operand phi.
29519
29520 2011-01-10 Jan Hubicka <jh@suse.cz>
29521
29522 PR tree-optimization/47234
29523 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29524 (pass_feedback_split_functions): Declare.
29525 * passes.c (init_optimization_passes): Add ipa-split as subpass of
29526 tree-profile.
29527 * ipa-split.c (gate_split_functions): Update comments; disable
29528 split-functions for profile_arc_flag and branch_probabilities.
29529 (gate_feedback_split_functions): New function.
29530 (execute_feedback_split_functions): New function.
29531 (pass_feedback_split_functions): New global var.
29532
29533 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
29534
29535 PR lto/46760
29536 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29537 calling gimple_call_set_cannot_inline.
29538
29539 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
29540
29541 * config/darwin-sections.def: Remove unused section.
29542
29543 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
29544
29545 PR c++/47218
29546 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29547
29548 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
29549
29550 PR objc/47232
29551 * c-parser.c (c_parser_declaration_or_fndef): Improved
29552 error message.
29553
29554 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
29555
29556 * config/i386/winnt.c (i386_pe_start_function): Make sure
29557 to switch back to function's section.
29558
29559 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
29560
29561 PR gcc/46902
29562 PR testsuite/46912
29563 * plugin.c: Move include of dlfcn.h from here...
29564 * system.h: ... to here.
29565
29566 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29567
29568 * doc/cpp.texi (C++ Named Operators): Fix markup for header
29569 file name.
29570 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29571 two extra empty pages in PDF output.
29572
29573 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
29574
29575 PR objc/47078
29576 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29577 for error recovery purposes behave as if it was not specified so
29578 that the default type is usd.
29579
29580 2011-01-07 Jan Hubicka <jh@suse.cz>
29581
29582 PR tree-optmization/46469
29583 * ipa.c (function_and_variable_visibility): Clear needed flags on
29584 nodes with external decls; handle weakrefs merging correctly.
29585
29586 2011-01-07 Joseph Myers <joseph@codesourcery.com>
29587
29588 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29589 not false.
29590
29591 2011-01-07 Jan Hubicka <jh@suse.cz>
29592
29593 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29594 and no longer claim that gold is required for linker plugin.
29595 * configure: Regenerate.
29596 * gcc.c (PLUGIN_COND): New macro.
29597 (LINK_COMMAND_SPEC): Use it.
29598 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29599 * config.in (HAVE_LTO_PLUGIN): New.
29600 * configure.ac (--with-lto-plugin): New parameter; autodetect
29601 HAVE_LTO_PLUGIN.
29602
29603 2011-01-07 Jan Hubicka <jh@suse.cz>
29604
29605 PR tree-optimization/46367
29606 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29607 when we can update original.
29608 (cgraph_mark_inline_edge): Sanity check.
29609 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29610
29611 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29612
29613 * config/spu/spu.h (ASM_COMMENT_START): Define.
29614
29615 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
29616
29617 PR driver/42445
29618 * gcc.c (%>S): New.
29619 (SWITCH_KEEP_FOR_GCC): Likewise.
29620 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29621 (do_spec_1): Handle "%>".
29622
29623 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29624
29625 2011-01-07 Jakub Jelinek <jakub@redhat.com>
29626
29627 PR target/47201
29628 * config/i386/i386.c (ix86_delegitimize_address): If
29629 simplify_gen_subreg fails, return orig_x.
29630
29631 PR bootstrap/47187
29632 * value-prof.c (gimple_stringop_fixed_value): Handle
29633 lhs of the call properly.
29634
29635 2011-01-07 Jan Hubicka <jh@suse.cz>
29636
29637 PR lto/45375
29638 * lto-opt.c (lto_reissue_options): Set flag_shlib.
29639
29640 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29641
29642 * target.def (function_switched_text_sections): New hook.
29643 * doc/tm.texi: Regenerated.
29644 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29645 * final.c (default_function_switched_text_sections): New.
29646 (final_scan_insn): Call function_switched_text_sections when a
29647 mid-function section change occurs.
29648 * output.h (default_function_switched_text_sections): Declare.
29649 * config/darwin-protos.h (darwin_function_switched_text_sections):
29650 Likewise.
29651 * config/darwin.c (darwin_function_switched_text_sections): New.
29652 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29653
29654 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29655
29656 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
29657 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
29658 the secondary code fragment when outputting for DWARF == 2.
29659
29660 2011-01-07 Anatoly Sokolov <aesok@post.ru>
29661
29662 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29663 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29664 Remove.
29665 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29666 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29667
29668 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
29669
29670 PR debug/46704
29671 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29672 when it is not empty.
29673
29674 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
29675
29676 Bobcat Enablement
29677 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29678 (case ${target}): Add btver1.
29679 * config/i386/driver-i386.c (host_detect_local_cpu): Let
29680 -march=native recognize btver1 processors.
29681 * config/i386/i386-c.c (ix86_target_macros_internal): Add
29682 btver1 def_and_undef
29683 * config/i386/i386.c (struct processor_costs btver1_cost): New
29684 btver1 cost table.
29685 (m_BTVER1): New definition.
29686 (m_AMD_MULTIPLE): Includes m_BTVER1.
29687 (initial_ix86_tune_features): Add btver1 tune.
29688 (processor_target_table): Add btver1 entry.
29689 (static const char *const cpu_names): Add btver1 entry.
29690 (software_prefetching_beneficial_p): Add btver1.
29691 (ix86_option_override_internal): Add btver1 instruction sets.
29692 (ix86_issue_rate): Add btver1.
29693 (ix86_adjust_cost): Add btver1.
29694 * config/i386/i386.h (TARGET_BTVER1): New definition.
29695 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29696 (enum processor_type): Add PROCESSOR_BTVER1.
29697 * config/i386/i386.md (define_attr "cpu"): Add btver1.
29698
29699 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29700
29701 PR target/43309
29702 * config/i386/i386.c (legitimize_tls_address)
29703 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29704 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29705 (tls_initial_exec_64_sun): New pattern.
29706
29707 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
29708
29709 * doc/invoke.texi (Overall Options): Improve wording and markup
29710 of the description of -wrapper.
29711
29712 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29713
29714 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29715 rdynamic, threads): New Driver options.
29716
29717 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29718
29719 PR target/38118
29720 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29721 if coming from .tdata.
29722 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29723
29724 2011-01-06 Jan Hubicka <jh@suse.cz>
29725
29726 PR lto/47188
29727 * collect2.c (main): Do not enable LTOmode when plugin is active.
29728
29729 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29730
29731 PR other/45915
29732 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29733 --version output if supported.
29734 * configure: Regenerate.
29735
29736 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29737
29738 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29739 Driver options.
29740
29741 2011-01-06 Jakub Jelinek <jakub@redhat.com>
29742
29743 PR c/47150
29744 * c-convert.c (convert): When converting a complex expression
29745 other than COMPLEX_EXPR to a different complex type, ensure
29746 c_save_expr is called instead of save_expr, unless in_late_binary_op.
29747 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29748 when converting COMPLEX_TYPE.
29749
29750 2011-01-06 Ira Rosen <irar@il.ibm.com>
29751
29752 PR tree-optimization/47139
29753 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29754 only the last reduction value is used outside the loop. Update
29755 documentation.
29756
29757 2011-01-05 Joseph Myers <joseph@codesourcery.com>
29758
29759 * config/rtems.opt: New.
29760 * config.gcc (*-*-rtems*): Use rtems.opt.
29761
29762 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
29763
29764 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29765 processors do not support 3DNow instructions.
29766
29767 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29768
29769 * config/spu/spu.c (spu_option_override): Set parameter
29770 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29771
29772 2011-01-05 Jan Hubicka <jh@suse.cz>
29773
29774 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29775 at the command line.
29776
29777 2011-01-05 Martin Jambor <mjambor@suse.cz>
29778
29779 PR lto/47162
29780 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29781 deltas on streamed outgoing edges.
29782 (output_node_opt_summary): Output info for outgoing edges only when
29783 the node is in new parameter set.
29784 (output_cgraph_opt_summary): New parameter set, passed to the two
29785 aforementioned functions. Update its forward declaration and its
29786 callee too.
29787
29788 2011-01-05 Tom Tromey <tromey@redhat.com>
29789
29790 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29791 operator to c_finish_omp_atomic.
29792 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29793 (build_unary_op): Update.
29794 (build_modify_expr): Update.
29795 (build_asm_expr): Update.
29796
29797 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29798
29799 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29800 newly inserted insns.
29801 (pad_bb): Likewise.
29802 (spu_emit_branch_hint): Likewise.
29803 (insert_hbrp_for_ilb_runout): Likewise.
29804 (spu_machine_dependent_reorg): Call df_finish_pass after
29805 schedule_insns returns.
29806
29807 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29808
29809 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29810
29811 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
29812
29813 PR tree-optimization/47005
29814 * tree-sra.c (struct access): Add 'non_addressable' bit.
29815 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29816 (decide_one_param_reduction): Return 0 if the parameter is passed by
29817 reference and one of the accesses in the group is non_addressable.
29818
29819 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29820
29821 PR tree-optimization/47056
29822 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29823 (mark_load): Likewise. Handle FUNCTION_DECL specially.
29824 (mark_store): Likewise. Pass STMT to ipa_record_reference.
29825
29826 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29827
29828 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29829 initializer. Skip view conversions from aggregate types.
29830
29831 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
29832
29833 PR bootstrap/47055
29834 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29835
29836 2011-01-04 Philipp Thomas <pth@suse.de>
29837
29838 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29839 obvious typo.
29840
29841 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29842
29843 * function.c (thread_prologue_and_epilogue_insns): Do not crash
29844 on empty epilogue sequences.
29845
29846 2011-01-04 Joseph Myers <joseph@codesourcery.com>
29847
29848 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29849 non-static): New Driver options.
29850
29851 2011-01-04 Jie Zhang <jie@codesourcery.com>
29852
29853 PR driver/47137
29854 * gcc.c (default_compilers[]): Set combinable field to 0
29855 for all assembly languages.
29856
29857 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
29858
29859 * config/mips/loongson3a.md: New file.
29860 * config/mips/mips.md: Include loongson3a.md.
29861 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29862 TUNE_LOONGSON_3A.
29863
29864 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
29865
29866 PR middle-end/47017
29867 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29868 instead of convert_memory_address_addr_space on the base expression.
29869
29870 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29871
29872 * config/spu/spu.c (spu_option_override): Update error text
29873 for bad -march= / -mtune= values.
29874
29875 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29876
29877 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29878 if branch-hint optimization will be performed.
29879
29880 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29881
29882 PR tree-optimization/47148
29883 * ipa-split.c (split_function): Convert arguments to
29884 DECL_ARG_TYPE if possible.
29885
29886 PR tree-optimization/47155
29887 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29888 when computing uns.
29889
29890 PR rtl-optimization/47157
29891 * combine.c (try_combine): If undobuf.other_insn becomes
29892 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29893 and set *new_direct_jump_p too.
29894
29895 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
29896
29897 PR tree-optimization/47021
29898 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29899
29900 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29901
29902 * gcc.c (process_command): Update copyright notice dates.
29903 * gcov.c (print_version): Likewise.
29904 * gcov-dump.c (print_version): Likewise.
29905 * mips-tfile.c (main): Likewise.
29906 * mips-tdump.c (main): Likewise.
29907
29908 2011-01-03 Martin Jambor <mjambor@suse.cz>
29909
29910 PR tree-optimization/46801
29911 * tree-sra.c (type_internals_preclude_sra_p): Check whether
29912 aggregate fields start at byte boundary instead of the bit-field flag.
29913
29914 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
29915
29916 PR driver/47137
29917 * gcc.c (main): Revert revision 168407.
29918
29919 2011-01-03 Martin Jambor <mjambor@suse.cz>
29920
29921 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29922
29923 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29924
29925 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29926 vector optab to expand vector/scalar shift, update gimple to vector.
29927
29928 2011-01-03 Martin Jambor <mjambor@suse.cz>
29929
29930 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29931 a thunk.
29932
29933 2011-01-03 Martin Jambor <mjambor@suse.cz>
29934
29935 PR tree-optimization/46984
29936 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29937 HOST_WIDE_INT.
29938 (cgraph_create_indirect_edge): Fixed line length.
29939 (cgraph_indirect_call_info): Declare.
29940 (cgraph_make_edge_direct) Update declaration.
29941 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29942 (cgraph_create_indirect_edge): Use it.
29943 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
29944 callees.
29945 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29946 the new thunk_delta representation.
29947 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29948 HOST_WIDE_INT.
29949 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29950 (ipa_read_indirect_edge_info): Likewise.
29951 * lto-cgraph.c (output_edge_opt_summary): New function.
29952 (output_node_opt_summary): Call it on all outgoing edges.
29953 (input_edge_opt_summary): New function.
29954 (input_node_opt_summary): Call it on all outgoing edges.
29955
29956 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
29957
29958 PR driver/47137
29959 * gcc.c (main): Don't check have_o when settting combine_inputs.
29960
29961 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
29962
29963 * regrename.c: Add general comment describing the pass.
29964 (struct du_head): Remove 'length' field.
29965 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29966 (regrename_optimize): Do not sort chains. Rework comments, add others.
29967 Force renaming to the preferred class (if any) in the first pass and do
29968 not consider registers that belong to it in the second pass.
29969 (create_new_chain): Do not set 'length' field.
29970 (scan_rtx_reg): Likewise.
29971
29972 2011-01-02 Jakub Jelinek <jakub@redhat.com>
29973
29974 PR tree-optimization/47140
29975 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29976 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29977 to bit_value_binop.
29978
29979 PR rtl-optimization/47028
29980 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29981 parm_birth_insn instead of at the beginning of first bb.
29982
29983 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
29984
29985 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29986 Remove the word "see" before "@pxref".
29987 * doc/rtl.texi: Remove the word "see" before "@pxref".
29988
29989 2011-01-01 Jan Hubicka <jh@suse.cz>
29990
29991 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29992 memory.
29993
29994 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
29995
29996 PR target/38662
29997 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
29998
29999 \f
30000 Copyright (C) 2011 Free Software Foundation, Inc.
30001
30002 Copying and distribution of this file, with or without modification,
30003 are permitted in any medium without royalty provided the copyright
30004 notice and this notice are preserved.